mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat(icon): findIcon function (#107)
* feat(icon): findIcon function 支持ElementPlus icon组件和 FontAwesomeIcon * fix(menu): 支持第三方icon组件
This commit is contained in:
@@ -93,9 +93,10 @@ const components = [
|
||||
ElDescriptions,
|
||||
ElDescriptionsItem,
|
||||
ElBacktop,
|
||||
ElSwitch,
|
||||
|
||||
// icon
|
||||
ElSwitch
|
||||
];
|
||||
// icon
|
||||
export const iconComponents = [
|
||||
Check,
|
||||
Menu,
|
||||
HomeFilled,
|
||||
@@ -115,6 +116,7 @@ const components = [
|
||||
const plugins = [ElLoading];
|
||||
|
||||
export function useElementPlus(app: App) {
|
||||
components.push(...iconComponents);
|
||||
components.forEach((component: Component) => {
|
||||
app.component(component.name, component);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user