An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 改进数据库
Vanessa540af4051b7c
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.tsindex f5fb09df2b..14887c8abb 100644--- a/app/src/protyle/render/av/col.ts+++ b/app/src/protyle/render/av/col.ts@@ -439,10 +439,11 @@ const addAttrViewColAnimation = (options: {}let html = "";if (index === 0) {+ // av__pulse 用于检测是否新增,和 render 中 isPulse 配合弹出菜单html = `<div class="av__cell av__cell--header" draggable="true" data-icon="${options.icon || ""}" data-col-id="${options.id}" data-dtype="${options.type}" data-wrap="false" style="width: 200px;">${options.icon ? unicode2Emoji(options.icon, "av__cellheadericon", true) : `<svg class="av__cellheadericon"><use xlink:href="#${getColIconByType(options.type)}"></use></svg>`}<span class="av__celltext fn__flex-1">${options.name}</span>- <div class="av__widthdrag"></div>+ <div class="av__widthdrag av__pulse"></div></div>`;} else {html = '<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>';diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 310af17033..ab26f7ce26 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -290,8 +290,9 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {} else {Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.avID}"]`)).forEach((item: HTMLElement) => {item.removeAttribute("data-render");+ const isPulse = item.querySelector(".av__pulse");avRender(item, protyle, () => {- if (operation.action === "addAttrViewCol" && item.querySelector(".av__pulse")) {+ if (operation.action === "addAttrViewCol" && isPulse) {openMenuPanel({protyle, blockElement: item, type: "edit", colId: operation.id});}}, ["addAttrViewView", "duplicateAttrViewView"].includes(operation.action) ? operation.id :