From fd1671200e37446f4a2d8015b685b851997f5275 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 29 Dec 2023 09:30:14 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9993 --- app/src/protyle/render/av/col.ts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index 4184172a2..1bdd10dc0 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -627,6 +627,21 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen }); } menu.addSeparator(); + + menu.addItem({ + icon: "iconInsertLeft", + label: window.siyuan.languages.insertColumnLeft, + click() { + + } + }); + menu.addItem({ + icon: "iconInsertRight", + label: window.siyuan.languages.insertColumnRight, + click() { + + } + }); if (type !== "block") { menu.addItem({ icon: "iconEyeoff", @@ -743,7 +758,7 @@ const genUpdateColItem = (type: TAVCol, oldType: TAVCol, name: string) => { `; }; -export const addCol = (protyle: IProtyle, blockElement: Element) => { +export const addCol = (protyle: IProtyle, blockElement: Element, previousId: string) => { const menu = new Menu("av-header-add"); const avID = blockElement.getAttribute("data-av-id"); menu.addItem({ @@ -1046,7 +1061,6 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => { }); } }); - /* menu.addItem({ icon: "iconSearch", label: window.siyuan.languages.rollup, @@ -1071,7 +1085,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => { id }); } - });*/ + }); menu.addItem({ icon: "iconClock", label: window.siyuan.languages.createdTime,