康来智慧冷链-后端
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.
 
 
 
 
 
 

19 lines
551 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(isBuild: boolean) {
if (!isBuild) return [];
const comps = Components({
resolvers: [AntDesignVueResolver()]
});
return comps;
}