2021-09-07 11:57:35 +08:00
|
|
|
|
import Icons from 'unplugin-icons/vite'; // iconify图标
|
|
|
|
|
import IconsResolver from 'unplugin-icons/resolver';
|
|
|
|
|
import Components from 'unplugin-vue-components/vite'; // 从指定目录自动导入组件
|
2021-05-28 02:22:49 +08:00
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
Components({
|
2021-09-07 11:57:35 +08:00
|
|
|
|
resolvers: [IconsResolver({ componentPrefix: 'icon' })]
|
2021-05-28 02:22:49 +08:00
|
|
|
|
}),
|
2021-09-07 11:57:35 +08:00
|
|
|
|
Icons()
|
2021-05-28 02:22:49 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* iconify用法(安装对应的vscode智能提示的插件: Iconify IntelliSense)
|
|
|
|
|
* 找图标:网址 https://icones.js.org/ 或者 vscode安装 icones插件
|
2021-09-07 11:57:35 +08:00
|
|
|
|
* 确定图标名字:找到图标后复制名字 如:mdi:ab-testing 组件为: <icon-mdi:ab-testing />
|
2021-05-28 02:22:49 +08:00
|
|
|
|
* 样式:同html标签一样直接应用style属性或者class属性; 通过设置color和font-size属性设置对应的颜色和大小
|
|
|
|
|
*/
|