Vanessa 2023-12-30 22:07:24 +08:00
parent a5faf5c4e9
commit 0910f52a9d
2 changed files with 7 additions and 0 deletions

View file

@ -643,6 +643,10 @@ export const renderCell = (cellValue: IAVCellValue, wrap: boolean) => {
});
} else if (cellValue.type === "checkbox") {
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>`;
});
} else if (cellValue.type === "relation") {
cellValue?.relation?.contents?.forEach((item, index) => {
text += `<span class="av__celltext--ref" style="margin-right: 8px" data-id="${cellValue?.relation?.blockIDs[index]}">${item}</span>`;

View file

@ -1143,6 +1143,9 @@ interface IAVCellValue {
blockIDs: string[]
contents?: string[]
}
rollup?: {
contents?: string[]
}
date?: IAVCellDateValue
created?: IAVCellDateValue
updated?: IAVCellDateValue