🎨 rollup render
This commit is contained in:
parent
239dbe5d2c
commit
68a720db83
2 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
@ -1145,7 +1145,7 @@ interface IAVCellValue {
|
|||
contents?: string[]
|
||||
}
|
||||
rollup?: {
|
||||
contents?: string[]
|
||||
contents?: IAVCellValue[]
|
||||
}
|
||||
date?: IAVCellDateValue
|
||||
created?: IAVCellDateValue
|
||||
|
|
Loading…
Add table
Reference in a new issue