You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
508 B
18 lines
508 B
/** |
|
* @program: kicc-ui |
|
* @description: unplugin-vue-components配置 |
|
* 提供对vite的按需引入antd组件功能 |
|
* 文档: https://github.com/anncwb/vite-plugin-style-import |
|
* @author: entfrm开发团队-王翔 |
|
* @create: 2022/4/5 |
|
*/ |
|
|
|
import Components from 'unplugin-vue-components/vite'; |
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'; |
|
|
|
export function compImportPlugin() { |
|
const comps = Components({ |
|
resolvers: [AntDesignVueResolver()] |
|
}); |
|
return comps; |
|
}
|
|
|