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/12491

Vanessabb0889cbc502
diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts
index 208a2a1f07..d30aa6024e 100644
--- a/app/src/protyle/render/av/blockAttr.ts
+++ b/app/src/protyle/render/av/blockAttr.ts
@@ -62,7 +62,7 @@ export const genAVValueHTML = (value: IAVCellValue) => {
html = `<textarea style="resize: vertical" rows="${value.text.content.split("\n").length}" class="b3-text-field b3-text-field--text fn__flex-1">${value.text.content}</textarea>`;
break;
case "number":
- html = `<input data-format="${value.number.format}" value="${value.number.isNotEmpty ? typeof value.number.content : ""}" type="number" class="b3-text-field b3-text-field--text fn__flex-1">
+ html = `<input value="${value.number.isNotEmpty ? value.number.content : ""}" type="number" class="b3-text-field b3-text-field--text fn__flex-1">
<span class="fn__space"></span><span class="fn__flex-center ft__on-surface b3-tooltips__w b3-tooltips" aria-label="${window.siyuan.languages.format}">${value.number.formattedContent}</span><span class="fn__space"></span>`;
break;
case "mSelect":
@@ -343,9 +343,9 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
rowID: item.parentElement.dataset.blockId,
cellID: item.parentElement.dataset.id,
value
- }, (response) => {
+ }, (setResponse) => {
if (type === "number") {
- item.parentElement.querySelector(".fn__flex-center").textContent = response.data.formattedContent;
+ item.parentElement.querySelector(".fn__flex-center").textContent = setResponse.data.value.number.formattedContent;
}
});
});