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.
12 lines
388 B
12 lines
388 B
import components from "unplugin-vue-components/vite"; // 全局导入组件库
|
|
import { VantResolver } from "unplugin-vue-components/resolvers"; // 导入内置库插件
|
|
|
|
const Components = (viteEnv = {}) => {
|
|
return components({
|
|
resolvers: [VantResolver()], // 自动导入vant库
|
|
dirs: ["src/components"],
|
|
extensions: ["vue"], // 文件扩展名
|
|
});
|
|
};
|
|
|
|
export { Components };
|
|
|