Improve menu

This commit is contained in:
Yang Luo
2023-08-05 17:41:35 +08:00
parent 9fd2421564
commit 56c808c091
3 changed files with 55 additions and 152 deletions

View File

@ -1043,13 +1043,7 @@ export function getLabel(text, tooltip) {
}
export function getItem(label, key, icon, children, type) {
return {
key,
icon,
children,
label,
type,
};
return {label: label, key: key, icon: icon, children: children, type: type};
}
export function getOption(label, value) {