mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +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
|
|
@ -6,6 +6,7 @@ import {getFieldsByData} from "./view";
|
|||
import {fetchSyncPost} from "../../../util/fetch";
|
||||
import {Menu} from "../../../plugin/Menu";
|
||||
import {objEquals} from "../../../util/functions";
|
||||
import {Constants} from "../../../constants";
|
||||
|
||||
export const getPageSize = (blockElement: Element) => {
|
||||
const groupPageSize: {
|
||||
|
|
@ -304,7 +305,7 @@ export const goGroupsDate = (options: {
|
|||
data: IAV;
|
||||
blockElement: Element;
|
||||
}) => {
|
||||
const menu = new Menu("avGroupDate");
|
||||
const menu = new Menu(Constants.MENU_AV_GROUP_DATE);
|
||||
if (menu.isOpen) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -351,7 +352,7 @@ export const goGroupsSort = (options: {
|
|||
menuElement: HTMLElement;
|
||||
blockElement: Element;
|
||||
}) => {
|
||||
const menu = new Menu("avGroupSort");
|
||||
const menu = new Menu(Constants.MENU_AV_GROUP_SORT);
|
||||
if (menu.isOpen) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue