🎨 rollup render

This commit is contained in:
Vanessa 2024-01-01 15:50:17 +08:00
parent 239dbe5d2c
commit 68a720db83
2 changed files with 2 additions and 2 deletions

View file

@ -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) => {

View file

@ -1145,7 +1145,7 @@ interface IAVCellValue {
contents?: string[]
}
rollup?: {
contents?: string[]
contents?: IAVCellValue[]
}
date?: IAVCellDateValue
created?: IAVCellDateValue