mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
feat: 额外图标(比如这个是新加的页面,路由菜单右上角显示个新图标)
This commit is contained in:
12
src/components/ReIcon/index.ts
Normal file
12
src/components/ReIcon/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { App } from "vue";
|
||||
import icon from "./src/Icon.vue";
|
||||
|
||||
export const Icon = Object.assign(icon, {
|
||||
install(app: App) {
|
||||
app.component(icon.name, icon);
|
||||
}
|
||||
});
|
||||
|
||||
export default {
|
||||
Icon
|
||||
};
|
||||
Reference in New Issue
Block a user