fix(menu): refactor menu system to use pure config objects and fix submenu click events
This commit is contained in:
@@ -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",
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,6 +23,10 @@ export interface TranslationDictionary {
|
||||
testTitle: string;
|
||||
testContent: string;
|
||||
};
|
||||
menu: {
|
||||
info: string;
|
||||
home: string;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,4 +21,8 @@ export const zhCN: TranslationDictionary = {
|
||||
testTitle: '测试弹窗',
|
||||
testContent: '<div style="padding: 10px;">这是一个 <b>可拖拽</b> 且 <b>可缩放</b> 的弹窗。<br><br>你可以尝试拖动标题栏,或者拖动右下角改变大小。</div>',
|
||||
},
|
||||
menu: {
|
||||
info: "信息",
|
||||
home: "首页"
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user