feat(projects): 添加SvgIcon,配置vite plugin

This commit is contained in:
Liushengqun
2022-02-25 17:56:00 +08:00
parent 50c8b9daa1
commit 378d55ac0e
29 changed files with 1121 additions and 3 deletions

7
src/plugins/svg-icon.ts Normal file
View File

@@ -0,0 +1,7 @@
import type { App } from 'vue';
import { SvgIcon } from '@/components';
/** 注册全局svg-icon组件 */
export default function setupNaiveUI(app: App) {
app.component('SvgIcon', SvgIcon);
}