mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 00:36:10 +01:00
* Add `data-id` attribute to the button of the common MenuItem * Add `data-id` attribute to the button of the common Menu Item * Add `data-id` attribute to the button of the common Menu Item * Add `data-id` attribute to the button of the common Menu Item * Add `data-id` attribute to the button of the doc tree menu * rename * openBy * sort menu * riff Card Menu
This commit is contained in:
parent
273b55dbf8
commit
8b0d10bbd4
5 changed files with 122 additions and 20 deletions
|
|
@ -40,16 +40,17 @@ export const emitOpenMenu = (options: {
|
|||
});
|
||||
if (pluginSubMenu.menus.length > 0) {
|
||||
if (options.separatorPosition === "top") {
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({id: "separator_pluginTop", type: "separator"}).element);
|
||||
}
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
id: "plugin",
|
||||
label: window.siyuan.languages.plugin,
|
||||
icon: "iconPlugin",
|
||||
type: "submenu",
|
||||
submenu: pluginSubMenu.menus,
|
||||
}).element);
|
||||
if (options.separatorPosition === "bottom") {
|
||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({id: "separator_pluginBottom", type: "separator"}).element);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue