From 0910f52a9d350bcc64e6168edf9dc2147d26c804 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 30 Dec 2023 22:07:24 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9958 --- app/src/protyle/render/av/cell.ts | 4 ++++ app/src/types/index.d.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 0810e9535..6f2e520f4 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -643,6 +643,10 @@ export const renderCell = (cellValue: IAVCellValue, wrap: boolean) => { }); } else if (cellValue.type === "checkbox") { text += ``; + } else if (cellValue.type === "rollup") { + cellValue?.rollup?.contents?.forEach((item) => { + text += `${item}`; + }); } else if (cellValue.type === "relation") { cellValue?.relation?.contents?.forEach((item, index) => { text += `${item}`; diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index 8b5f95f8b..d391e1f6c 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -1143,6 +1143,9 @@ interface IAVCellValue { blockIDs: string[] contents?: string[] } + rollup?: { + contents?: string[] + } date?: IAVCellDateValue created?: IAVCellDateValue updated?: IAVCellDateValue