- node
- yarn
- webpack
- eslint
- @vue/cli ~3
- ant-design-vue - Ant Design Of Vue
- vue-cropper - Picture edit
- @antv/g2 - AntV G2
- Viser-vue - Antv/G2 of Vue
Note: Yarn package management is recommended, the exact same version loaded with the demo site of this project (yarn.lock) . but you can also use npm
- Clone repo
git clone https://github.com/vueComponent/ant-design-vue-pro.git
cd ant-design-vue-pro- Install dependencies
yarn install
- Compiles and hot-reloads for development
yarn run serve
- Compiles and minifies for production
yarn run build
- Lints and fixes files
yarn run lint
-
IMPORTANT : About Issue feedback !! when opening Issue read Issue / PR Contributing
-
Vue-cli3 used by the project.
-
Disable Eslint (not recommended): remove
eslintConfigfield inpackage.jsonandvue.config.jsfieldlintOnSave: false -
Load on Demand
/src/main.jsL14, inimport './core/lazy_use',import './core/use''. more load-on-demand.md -
Customize Theme: Custom Theme Config (@kokoroli)
-
I18n: locales (@musnow)
-
Production env
mockis disabled. usesrc/mock/index.js -
pls use
releaseversion
- src/api 目录增加文件, 注意要export
- src/store/modules 目录增加文件
- src/store/index.js import新增的内容
使用时:
import { mapActions } from 'vuex'
...mapActions(['CostCategories', 'CreateCost', 'UpdateCost']), # methods第一条
const { form: { validateFields }, UpdateCost, CreateCost } = this # 执行的方法中