fix(menu): refactor menu system to use pure config objects and fix submenu click events

This commit is contained in:
yuding
2025-12-09 18:34:43 +08:00
parent c112c87dad
commit 9ae1d9d809
38 changed files with 6756 additions and 2575 deletions

View File

@@ -21,4 +21,8 @@ export const enUS: TranslationDictionary = {
testTitle: 'Test Dialog',
testContent: '<div style="padding: 10px;">This is a <b>draggable</b> and <b>resizable</b> dialog.<br><br>Try dragging the title bar or resizing from the bottom-right corner.</div>',
},
menu: {
info: "info",
home: "home",
}
};

View File

@@ -23,6 +23,10 @@ export interface TranslationDictionary {
testTitle: string;
testContent: string;
};
menu: {
info: string;
home: string;
}
}
/**

View File

@@ -21,4 +21,8 @@ export const zhCN: TranslationDictionary = {
testTitle: '测试弹窗',
testContent: '<div style="padding: 10px;">这是一个 <b>可拖拽</b> 且 <b>可缩放</b> 的弹窗。<br><br>你可以尝试拖动标题栏,或者拖动右下角改变大小。</div>',
},
menu: {
info: "信息",
home: "首页"
}
};