mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: Implement customize menus (#297)
This commit is contained in:
18
src/types/app.d.ts
vendored
18
src/types/app.d.ts
vendored
@@ -46,3 +46,21 @@ export type EventParams = {
|
||||
color: string;
|
||||
event: any;
|
||||
};
|
||||
|
||||
export interface MenuOptions extends SubItem {
|
||||
hasGroup?: boolean;
|
||||
subItems: SubItem[];
|
||||
}
|
||||
|
||||
export interface SubItem {
|
||||
layer: string;
|
||||
icon: string;
|
||||
title: string;
|
||||
activate: boolean;
|
||||
name?: string;
|
||||
path?: string;
|
||||
notShow?: boolean;
|
||||
id?: string;
|
||||
description: string;
|
||||
documentLink: string;
|
||||
}
|
||||
|
2
src/types/components.d.ts
vendored
2
src/types/components.d.ts
vendored
@@ -7,6 +7,7 @@ declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
DateCalendar: typeof import('./../components/DateCalendar.vue')['default']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElCard: typeof import('element-plus/es')['ElCard']
|
||||
ElCollapse: typeof import('element-plus/es')['ElCollapse']
|
||||
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
@@ -17,6 +18,7 @@ declare module '@vue/runtime-core' {
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||
ElLink: typeof import('element-plus/es')['ElLink']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup']
|
||||
|
Reference in New Issue
Block a user