Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: rollup render

Vanessa68a720db8343
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 6f2e520f43..fb1b71e22f 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -645,7 +645,7 @@ export const renderCell = (cellValue: IAVCellValue, wrap: boolean) => {
text += `<svg class="av__checkbox"><use xlink:href="#icon${cellValue?.checkbox?.checked ? "Check" : "Uncheck"}"></use></svg>`;
} else if (cellValue.type === "rollup") {
cellValue?.rollup?.contents?.forEach((item) => {
- text += `<span class="av__celltext--ref" style="margin-right: 8px">${item}</span>`;
+ text += renderCell(item, wrap);
});
} else if (cellValue.type === "relation") {
cellValue?.relation?.contents?.forEach((item, index) => {
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index 1ab99bb2a9..22f41b05b0 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -1145,7 +1145,7 @@ interface IAVCellValue {
contents?: string[]
}
rollup?: {
- contents?: string[]
+ contents?: IAVCellValue[]
}
date?: IAVCellDateValue
created?: IAVCellDateValue