Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/8694

Vanessa60317e2a0d96
diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts
index 4f5b8c492c..335920a99c 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 39401283a6..401b536470 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