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: https://github.com/siyuan-note/siyuan/issues/10419
Vanessaa16affeb9c8e
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 427b522540..065b77b4ca 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -178,7 +178,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;e.firstElementChild.outerHTML = `<div class="av__container" style="--av-background:${e.style.backgroundColor || "var(--b3-theme-background)"}"><div class="av__header">- <div class="fn__flex av__views${isSearching ? " av__views--show" : ""}">+ <div class="fn__flex av__views${isSearching || query ? " av__views--show" : ""}"><div class="layout-tab-bar fn__flex">${tabHTML}</div>@@ -206,7 +206,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;<svg><use xlink:href="#iconSearch"></use></svg></span><div style="position: relative">- <input style="${isSearching ? "width:128px" : "width:0;padding-left: 0;padding-right: 0;"}" data-type="av-search" class="b3-text-field b3-text-field--text" placeholder="${window.siyuan.languages.search}">+ <input style="${isSearching || query ? "width:128px" : "width:0;padding-left: 0;padding-right: 0;"}" data-type="av-search" class="b3-text-field b3-text-field--text" placeholder="${window.siyuan.languages.search}"></div><div class="fn__space"></div><span data-type="av-more" class="block__icon">@@ -332,6 +332,8 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value)}</div>`;searchInputElement.style.width = "0";searchInputElement.style.paddingLeft = "0";searchInputElement.style.paddingRight = "0";+ focusBlock(e);+ updateSearch(e, protyle);}});});diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.tsindex d4f099b30b..f9c7084f74 100644--- a/app/src/protyle/render/av/row.ts+++ b/app/src/protyle/render/av/row.ts@@ -89,9 +89,13 @@ const setPage = (blockElement: Element) => {* @param blockElement* @param srcIDs* @param previousId- * @param avId 还用于判断是否是插入的 block+ * @param avId 存在为新增否则为拖拽插入*/export const insertAttrViewBlockAnimation = (protyle: IProtyle, blockElement: Element, srcIDs: string[], previousId: string, avId?: string,) => {+ if ((blockElement.querySelector('[data-type="av-search"]') as HTMLInputElement).value !== "") {+ showMessage(window.siyuan.languages.insertRowTip);+ return+ }let previousElement = blockElement.querySelector(`.av__row[data-id="${previousId}"]`) || blockElement.querySelector(".av__row--header");// 有排序需要加入最后一行if (blockElement.querySelector('.av__views [data-type="av-sort"]').classList.contains("block__icon--active")) {