mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🎨 Improve #commonMenu menu (#16141)
* 改进菜单的 data-name 属性值和选项的 data-id 属性值 fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133 * 改进菜单的 data-name 属性值和选项的 data-id 属性值 fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133 * 更新数据库排序菜单文案 * 改进菜单的 data-name 属性值和选项的 data-id 属性值 fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133 使用正则 (?:get|set)Attribute\("data-name"|new Menu\((?:"|Constants) 来搜索 * 改进菜单的 data-name 属性值和选项的 data-subname 属性值 fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075 * 改进菜单的 data-name 属性值和选项的 data-subname 属性值 fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075
This commit is contained in:
parent
3e7177d22f
commit
8725e5daa8
52 changed files with 209 additions and 75 deletions
|
|
@ -272,7 +272,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
|
|||
if (!keys || keys.length === 0 || (keys.length === 1 && keys[0] === inputElement.value)) {
|
||||
return;
|
||||
}
|
||||
const menu = new Menu("move-path-history");
|
||||
const menu = new Menu(Constants.MENU_MOVE_PATH_HISTORY);
|
||||
if (menu.isOpen) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -364,7 +364,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
|
|||
toggleMovePathHistory();
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.menus.menu.element.getAttribute("data-name") === "move-path-history") {
|
||||
if (window.siyuan.menus.menu.element.getAttribute("data-name") === Constants.MENU_MOVE_PATH_HISTORY) {
|
||||
return;
|
||||
}
|
||||
const currentPanelElement = searchListElement.classList.contains("fn__none") ? searchTreeElement : searchListElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue