From 81ae569e34a7c299155e1398ec1ace445fee7bda Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 13 Jul 2023 11:07:33 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8664 --- app/src/protyle/render/av/select.ts | 1 + app/src/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts index 603ff64a1..cb5e9f7cc 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 f4c8babc3..8cdebd599 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 }[]