TODO: 基于ant-design-vue3封装的组件库,具有更多拿到即用的组件,通过json配置快速搭建页面。
$ npm install antd-pro-vue --save
$ yarn add antd-pro-vue
main.js:
import antdProVue from 'antd-pro-vue';
app.use(antdProVue, {
routesConfig: {
history: 'hash', // 默认history模式
routes, // 路由
beforeEach: (router, { to, from, next }) => { next() }
afterEach: (router, { to, from }) => {}
}
});
import { BasicLayout, FormPanel, SearchPanel, TablePanel } from "antd-pro-vue";
export default: {
components: {
BasicLayout,
FormPanel,
SearchPanel,
TablePanel
}
}
QQ交流群: 411121858