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

Vanessa81ae569e34a7
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index 603ff64a1e..cb5e9f7ccf 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -386,6 +386,7 @@ export const addSelectColAndCell = (protyle: IProtyle, data: IAV, options: {
bgColor: "",
id: Lute.NewNodeID(),
value: {
+ type: colData.type,
mSelect: []
},
valueType: colData.type
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index f4c8babc39..8cdebd5995 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -912,7 +912,7 @@ interface IAVCell {
}
interface IAVCellValue {
- type?: TAVCol,
+ type: TAVCol,
text?: { content: string },
number?: { content?: number, isNotEmpty: boolean },
mSelect?: { content: string, color: string }[]