mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 05:50:18 +08:00
feat(projects): 添加SvgIcon,配置vite plugin
This commit is contained in:
7
src/plugins/svg-icon.ts
Normal file
7
src/plugins/svg-icon.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user