mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
This commit is contained in:
parent
33f8def8ce
commit
3464708aae
5 changed files with 30 additions and 27 deletions
|
|
@ -522,7 +522,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
});
|
||||
if (rowElements.length === 1) {
|
||||
if (keyCellElement.getAttribute("data-detached") !== "true") {
|
||||
menu.addSeparator(undefined, undefined, "1");
|
||||
menu.addSeparator({id: "separator_1"});
|
||||
}
|
||||
menu.addItem({
|
||||
id: "insertRowBefore",
|
||||
|
|
@ -570,7 +570,7 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", `<span class="fn__space
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addSeparator(undefined, undefined, "2");
|
||||
menu.addSeparator({id: "separator_2"});
|
||||
if (keyCellElement.getAttribute("data-detached") !== "true") {
|
||||
menu.addItem({
|
||||
id: "unbindBlock",
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ export const editAssetItem = (options: {
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addSeparator(undefined, undefined, "1");
|
||||
menu.addSeparator({id: "separator_1"});
|
||||
menu.addItem({
|
||||
id: "copy",
|
||||
label: window.siyuan.languages.copy,
|
||||
|
|
@ -280,7 +280,7 @@ export const editAssetItem = (options: {
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addSeparator(undefined, undefined, "1");
|
||||
menu.addSeparator({id: "separator_1"});
|
||||
menu.addItem({
|
||||
id: "copy",
|
||||
label: window.siyuan.languages.copy,
|
||||
|
|
@ -324,7 +324,7 @@ export const editAssetItem = (options: {
|
|||
}
|
||||
const openSubMenu = openMenu(options.protyle ? options.protyle.app : window.siyuan.ws.app, linkAddress, true, false);
|
||||
if (type !== "file" || openSubMenu.length > 0) {
|
||||
menu.addSeparator(undefined, undefined, "2");
|
||||
menu.addSeparator({id: "separator_2"});
|
||||
}
|
||||
if (type !== "file") {
|
||||
menu.addItem({
|
||||
|
|
|
|||
|
|
@ -761,7 +761,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addSeparator(undefined, undefined, "1");
|
||||
menu.addSeparator({id: "separator_1"});
|
||||
|
||||
// 行号 类型不参与 排序和筛选
|
||||
if (type !== "lineNumber") {
|
||||
|
|
@ -851,7 +851,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
|
|||
}
|
||||
});
|
||||
}
|
||||
menu.addSeparator(undefined, undefined, "2");
|
||||
menu.addSeparator({id: "separator_2"});
|
||||
}
|
||||
menu.addItem({
|
||||
id: "insertColumnLeft",
|
||||
|
|
@ -1034,7 +1034,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
|
|||
});
|
||||
}
|
||||
});
|
||||
menu.addSeparator(undefined, undefined, "3");
|
||||
menu.addSeparator({id: "separator_3"});
|
||||
}
|
||||
menu.addItem({
|
||||
id: "wrap",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue