### 参考:[ https://www.antdv.com/docs/vue/use-with-vue-cli-cn/]() * 版本: "ant-design-vue": "^1.4.12" * vue-cli3 * vue2.6.2 ### babel.config.js配置 ![](https://img.kancloud.cn/f0/33/f0332965c4ed22c2ce4946443b810d15_1278x588.png) ### ant-design-vue ``` import Vue from 'vue' import {Button, Form, Message, ......} from 'ant-design-vue' import 'ant-design-vue/dist/antd.css' Vue.use(Button) ... // 全局使用 Vue.prototype.$message = Message ``` ### main.js按需引入 ``` // ant-desgin-vue按需引入 import '../src/components/antDesignVue/index.js' ```