From 60317e2a0d962f9c0c878bccf70e046640975e32 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 8 Jul 2023 22:12:44 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8694 --- app/src/protyle/index.ts | 4 +--- app/src/protyle/render/av/addCol.ts | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 4f5b8c492..335920a99 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -104,9 +104,7 @@ export class Protyle { case "refreshAttributeView": Array.from(this.protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${data.data.id}"]`)).forEach((item: HTMLElement) => { item.removeAttribute("data-render"); - avRender(item, () => { - showColMenu(this.protyle, item, item.querySelector(".av__row--header").lastElementChild.previousElementSibling as HTMLElement); - }); + avRender(item); }); break; case "addLoading": diff --git a/app/src/protyle/render/av/addCol.ts b/app/src/protyle/render/av/addCol.ts index 39401283a..401b53647 100644 --- a/app/src/protyle/render/av/addCol.ts +++ b/app/src/protyle/render/av/addCol.ts @@ -46,7 +46,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => { const id = Lute.NewNodeID(); transaction(protyle, [{ action: "addAttrViewCol", - name: "Text", + name: "Select", parentID: blockElement.getAttribute("data-av-id"), type: "select", id @@ -64,7 +64,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => { const id = Lute.NewNodeID(); transaction(protyle, [{ action: "addAttrViewCol", - name: "Text", + name: "Multi-select", parentID: blockElement.getAttribute("data-av-id"), type: "mSelect", id @@ -82,7 +82,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => { const id = Lute.NewNodeID(); transaction(protyle, [{ action: "addAttrViewCol", - name: "Text", + name: "Date", parentID: blockElement.getAttribute("data-av-id"), type: "date", id