feat: 🎸 初始化项目

This commit is contained in:
chenkl
2020-12-14 17:32:37 +08:00
commit 26d4c7c568
221 changed files with 23505 additions and 0 deletions

12
src/assets/icons/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import type { App } from 'vue'
import SvgIcon from '@/components/SvgIcon/index.vue'// svg组件
const req: any = require.context('./svg', false, /\.svg$/)
const requireAll: any = (requireContext: any) => {
requireContext.keys().map(requireContext)
}
requireAll(req)
export function setupSvgIcon(app: App<Element>): void {
app.component('SvgIcon', SvgIcon)
}