UNPKG

@fmdevui/fm-dev

Version:

Page level components developed based on Element Plus.

18 lines (15 loc) 427 B
import * as svg from '@element-plus/icons-vue'; import './svgicon.vue.mjs'; import _sfc_main from './svgicon.vue2.mjs'; function elSvg(app) { const icons = svg; for (const i in icons) { if (!app._context.components[`ele-${icons[i].name}`]) { app.component(`ele-${icons[i].name}`, icons[i]); } } if (!app._context.components[`SvgIcon`]) { app.component("SvgIcon", _sfc_main); } } export { elSvg };