// tsconifg.json{"include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue","./auto-imports.d.ts","./components.d.ts"]} 配置完成后,antd组件和项目中src/components目录(可以通过dirs配置项修改目录)下的组件都可以直接使用,无需写import语句了. image.png 打包结果对...
wangchuan95 / unplugin-vue-components-antd1.x enterpriseih / unplugin-vue-components-antd1.x waynzh / unplugin-vue-components webwl / unplugin-vue-components wenfangdu / unplugin-vue-components winchesHe / unplugin-vue-components windsonR / unplugin-vue-components wkeylin / unplu...
var: 'antd', jsdeliver: { path: 'dist/antd.min.js', css: 'dist/antd.min.css', }, }, ahooks: { var: 'ahooks', jsdeliver: { path: 'dist/ahooks.js', }, }, '@ant-design/charts': { var: 'charts', jsdeliver: { path: 'dist/charts.min.js', }, }, vue: { var: 'Vu...
['src/components'],// 按需加载的文件夹resolvers:[ElementPlusResolver(),AntDesignVueResolver({// 参数配置可参考:https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/antdv.ts// 自动引入 ant-design/icons-vue中的图标,需要安装@ant-design/icons-vueresolveIcons:true,})]...