Giter VIP home page Giter VIP logo

arco-design-pro-vue's Introduction

Arco Design

A comprehensive React UI components library based on the Arco Design system.

license Awesome

English | 简体中文

arco-video.mp4

Features

Comprehensive

With more than 60 crafted components that you can use out of the box.

Customizable theme

Extensive design tokens can be customized to build your own theme. Two ways of customization are supported:

Reusable custom materials

Material market provides a one-stop solution for materials management. Reuse customized modules to make a breakthrough in efficiency.

TypeScript friendly

All components are written in TypeScript so it's type friendly.

Installation

Available as an npm package

// with npm
npm install @arco-design/web-react

// with yarn
yarn add @arco-design/web-react

Examples

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@arco-design/web-react';
import '@arco-design/web-react/dist/css/arco.css';

function App() {
  return (
    <Button type='secondary'>
      Hello World
    </Button>
  );
}

ReactDOM.render(<App />, document.getElementById('app'));

Useful Links

Ecosystems

Project Description
Vue Component Library A comprehensive Vue UI components library based on the Arco Design system
Design Lab A platform to create and manage your themes with ease.
Material Market A platform that provides massive high-quality customized materials to greatly boost development efficiency.
Icon Box One-stop platform to manage your icons.
Arco Pro A solution to quickly building applications from scratch.

Browser Support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Electron
Electron
Edge 16 31 49 31 36 last 2 versions

Contributing

Developers interested in contributing should read the Code of Conduct and the Contributing Guide.

Thank you to all the people who already contributed to ArcoDesign!

License

This project is MIT licensed.

arco-design-pro-vue's People

Contributors

blackcater avatar bytealan avatar chanzhaoyu avatar cuiyiming1998 avatar deluxebear avatar developeryvan avatar dyggod avatar flsion avatar hehehai avatar hikariming avatar ipumpkin17 avatar kirazxyun avatar kirklin avatar kurumifrost avatar lxqxh avatar motian avatar ofseed avatar orozot avatar overtree avatar pengjiyuan avatar qianphong avatar show8e avatar tamarous avatar wehuss avatar wynn-w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arco-design-pro-vue's Issues

初始化项目失败,不支持可选链(Unexpected token '.')

基本信息

预期结果

能顺利的初始化

复现步骤

初始化pro项目直接报错,显示的是不能识别可选链语法。
\node_modules\arco-design-pro-vue\scripts\vite.js:123
option.excludes?.find((name) =>
^SyntaxError: Unexpected token '.

关闭暗夜模式

Basic Info

What are the similar cases of this feature

修改导航颜色,或者主题颜色

What problem does this feature solve?

这个是不是有自动切换主题模式的功能,如果只用Light,如何永久关闭Dark,或者我自定义了颜色从哪里添加css样式哈

A-Row组件里,响应值为0时能否设置为元素隐藏?

基本信息

现有案例

参考案例 https://www.naiveui.com/zh-CN/os-theme/components/grid#responsive-item.vue

预期解决问题

<a-col :xs="0" :sm="4" :md="6" :lg="8" :xl="10" :xxl="8">
  Col
</a-col>
<a-col :xs="20" :sm="16" :md="12" :lg="8" :xl="4" :xxl="8">
  Col
</a-col>
<a-col :xs="4" :sm="4" :md="6" :lg="8" :xl="10" :xxl="8">
  Col
</a-col>

比如xs小屏幕下,xs值为0时应该设为元素隐藏显示。现状是换行显示,希望值为0时能隐藏

增加多页签功能

Basic Info

What are the similar cases of this feature

国内的ERP厂商如金蝶、用户、管家婆的bs版本都有多页签功能

What problem does this feature solve?

多页签的模式对于做企业管理软件很受欢迎,特别是很多用户是从winform迁移过来的,多页签变的非常重要,希望增加多页签

增加全屏按钮

Basic Info

What are the similar cases of this feature

vue-element-admin

What problem does this feature solve?

增加全屏按钮,可以让页面在显示器全屏展示

需要能增加一个表格自定义列是否显示隐藏的功能

现有案例

目前我们表格的需求是 需要用到 自定义列显示隐藏,合计行, 分组表头 功能结合使用

我在做上述的需求的时候 自定义列的显示隐藏 是通过 v-if(key.show) 来控制显示隐藏。 用这个方法在 "@arco-design/web-vue": "2.18.1" 中是不会有任何问题。

因为需要用到合计行 所以将版本升到2.25.0 。 升到2.25.0 之后 fixed:left 的表头顺序就会一直在最右边。

后面实在没有啥解决方案 就将合计行功能通过分组表头去实现。。。但又加上了一个排序需求后 在父级表头 sortable 无法进行排序,只能在children表头进行排序 (父级表头是我的字段名 子级表头是我的统计值 因为子级表头排序太丑 所以最后换成了 select 排序)

npm install 失败

Basic Info

Extra info

What is expected?

如何解决

Steps to reproduce

Node v14.19.0
Npm 6.14.16
arco 1.26.1

使用arco创建完文件后,自动npm install失败
于是手动npm install,报错如下:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm install failed

Basic Info

What is expected?

npm install success

Steps to reproduce

Node v12.13.1
Npm 8.5.5
arco 1.26.1

$ npm i arco-cli@latest yarn -g
$ arco init my-project
This step failed when npm install

Then I did the following steps:
$ cd my-project
$ npm i


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"8.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.16.0 || ^6.8.0 || ^7.2.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"^14.2.1" from the root project

Then I modify the package.json
update "eslint": "^8.7.0" to "eslint": "^7.2.0"

Then npm install again, but fialed with the following issue:

npm ERR! code 1
npm ERR! path F:\XXX2022\vue-blender-lib\node_modules\jpegtran-bin
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node lib/install.js
npm ERR! F:\App2022\vue-blender-lib\node_modules\jpegtran-bin\lib\install.js:1
npm ERR! import process from 'node:process';
npm ERR! ^^^^^^
npm ERR!
npm ERR! SyntaxError: Cannot use import statement outside a module
npm ERR! at Module._compile (internal/modules/cjs/loader.js:895:18)
npm ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
npm ERR! at Module.load (internal/modules/cjs/loader.js:815:32)
npm ERR! at Function.Module._load (internal/modules/cjs/loader.js:727:14)
npm ERR! at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
npm ERR! at internal/main/run_main_module.js:17:11

运行报错

基本信息

额外补充

不知道为什么报错

预期结果

yarn run v1.22.17
warning package.json: "dependencies" has dependency "@arco-design/web-vue" with range "^2.13.0" that collides with a dependency in "devDependencies" of the same name with version "^2.0.0-beta.7"
$ vite --config ./config/vite.config.dev.ts
Pre-bundling dependencies:
vue
@arco-design/web-vue
@arco-design/web-vue/es/icon
echarts/core
vue-router
(...and 13 more)
(this will be run only when your dependencies or config have changed)

vite v2.7.12 dev server running at:

Local: http://localhost:3000/
Network: use --host to expose

ready in 11873ms.

10:46:11 [vite] Internal server error:
G:\desktop\workspace\halfCooked\my-project\src\router\index.ts
6:1 error @/layout/page-layout.vue import should occur before import of ./modules/login import/order

✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the --fix option.

Plugin: vite:eslint
File: G:/desktop/workspace/halfCooked/my-project/src/router/index.ts
at formatError (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36769:46)
at TransformContext.error (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36765:19)
at TransformContext.transform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite-plugin-eslint\dist\index.js:87:14)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.transform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36985:30)
at async doTransform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:52057:29)
10:46:11 [vite] Internal server error:
G:\desktop\workspace\halfCooked\my-project\src\store\index.ts
16:1 error @/utils/env import should occur before import of ./interface import/order

✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the --fix option.

Plugin: vite:eslint
File: G:/desktop/workspace/halfCooked/my-project/src/store/index.ts
at formatError (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36769:46)
at TransformContext.error (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36765:19)
at TransformContext.transform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite-plugin-eslint\dist\index.js:87:14)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.transform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:36985:30)
at async doTransform (G:\desktop\workspace\halfCooked\my-project\node_modules\vite\dist\node\chunks\dep-0351185a.js:52057:29)

复现步骤

yarn dev

开发时候样式正常,打包后样式顺序有误或样式文件多了一份

基本信息

预期结果

全局样式应覆盖框架样式

复现步骤

新建一个pro项目,直接打包即可

全局样式文件global.less

截屏2022-05-08 16 35 43

main.ts样式导入顺序

截屏2022-05-08 17 12 59

打包后样式被覆盖,似乎多出了一份样式

截屏2022-05-08 17 18 18

二级菜单隐藏后,折叠问题。

Basic Info

What are the similar cases of this feature

What problem does this feature solve?

应用场景:比如一级菜单【商品管理】下,有一个二级导航【品牌管理】,品牌管理下面有很多产品【产品管理】,产品管理必须用品牌的ID参数获取,才可以管理,这时需要将【产品管理】菜单导航隐藏,目前的情况是隐藏后,左侧整体的二级菜单全部会隐藏,类似动态路由,添加query参数。
最好能够实现将将产品管理作为三级导航,三级导航可选是否隐藏,隐藏后,导航选中状态为二级【品牌管理】反之选中状态为三级【产品管理】。

适配ESLint最新版本

Basic Info

What are the similar cases of this feature

What problem does this feature solve?

eslint升级到最新版8.7.0后,一共产生3类error、1类warning。
【error】:vue/multi-word-component-names、prefer-regex-literals、default-param-last
【warning】:warning xxxx must be hyphenated. 此警告为某些绑定对象不能用驼峰命名,需要使用abc-def格式。

Extra info

首先特别感谢有如此伟大的UI组件库和脚手架项目,希望TA越来越好,希望尽快完善。👍

<a-dropdown-button>组件无法正常打包

基本信息

额外补充

[vite]: Rollup failed to resolve import "@arco-design/web-vue/es/dropdown-button/style/css.js" from "src/views/employee/index.vue".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
error during build:
Error: [vite]: Rollup failed to resolve import "@arco-design/web-vue/es/dropdown-button/style/css.js" from "src/views/employee/index.vue".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
at onRollupWarning (D:\CODE\arcoPro\test\new\node_modules\vite\dist\node\chunks\dep-76613303.js:37915:19)
at onwarn (D:\CODE\arcoPro\test\new\node_modules\vite\dist\node\chunks\dep-76613303.js:37693:13)
at Object.onwarn (D:\CODE\arcoPro\test\new\node_modules\rollup\dist\shared\rollup.js:23129:13)
at ModuleLoader.handleResolveId (D:\CODE\arcoPro\test\new\node_modules\rollup\dist\shared\rollup.js:22419:26)
at D:\CODE\arcoPro\test\new\node_modules\rollup\dist\shared\rollup.js:22380:26

预期结果

可以正常打包

升级 vue 3.2.16 --> 3.2.31

Basic Info

What is expected?

修复

Steps to reproduce

采用arco-cli 创建Vue工程,

1:升级所有版本
2:登录后,任意点击2个菜单
3:用户注销,页面路由无法正常处理,同时控制台异常

其他:
默认不升级 vue ,使用3.2.16 版本,其他依赖升级最新,无此异常

List 组件的视觉缺陷

基本信息

现有案例

Message notifications in official presentations

预期解决问题

Empty state components inside the list components are expected to be custom rather than mandatory in the absence of data

用CLI构建的"完整版本"无法正常运行

基本信息

  • 依赖包名 及 版本: [email protected]
  • 浏览器版本: chrome100.0.4896.60
  • 最新的Arco CLI工具, NPM 2.6x

npm run dev后出现如下错误信息

The following dependencies are imported but could not be resolved:

@arco-design/web-vue/es/upload/interfaces (imported by D:/Project/vue/pro_sample/src/views/user/setting/components/user-panel.vue?id=0)

Are they installed?

额外补充:
CLI选项里面选择"单个页面"后构建的项目就可以正常运行.

"完整版本"不行,希望可以解决问题.

在page-layout.vue组件中,定义了两个<router-view>

Basic Info

What is expected?

根据定义的路由层级,正常显示组件

Steps to reproduce

在page-layout.vue组件中,定义了两个router-view 。导致做路由配置的时候需要配置多个层级才能显示
在 src/views/dashboard/index.vue 中也定义了一个router-view,当我需要在其中增加自定义内容,显示一些额外的信息时,发现不生效。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.