Ant Design Pro Vue 默认编码工作并不支持按需引入,不过可以通过以下操作结合 Ant Design Of Vue 官方文档来进行按需引入。
增加按需引入所需依赖  babel-plugin-import
并且修改文件 babel.config.js
module.exports = {
 presets: [
   '@vue/app'
 ],
 plugins: [
   [ "import", {
     "libraryName": "ant-design-vue",
     "libraryDirectory": "es",
     "style": "css"
   } ]
 ]
}
文件 @/core/lazy_lib/component_use.js
import Vue from 'vue'
import {
   Input, 
   Button, 
   Select, 
   Card, 
   Form, 
   Row, 
   Col, 
   Modal, 
   Table, 
   notification
} from 'ant-design-vue'
   
Vue.use(Input)
Vue.use(Button)
Vue.use(Select)
Vue.use(Card)
Vue.use(Form)
Vue.use(Row)
Vue.use(Col)
Vue.use(Modal)
Vue.use(Table)
Vue.use(notification)
   
Vue.prototype.$notification = notification;
最后在 main.js 中引入 @/core/lazy_use.js 文件即可,如下
   
   import Vue from 'vue'
   import App from './App'
   
   // 引入 按需组件的统一引入文件
   import './core/lazy_use'
   
   import './style/index.less'
   
   
   Vue.config.productionTip = false
   
   new Vue({
     render: h => h(App),
   }).$mount('#app')