mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 01:38:50 +01:00
This commit is contained in:
parent
a5faf5c4e9
commit
0910f52a9d
2 changed files with 7 additions and 0 deletions
|
|
@ -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>`;
|
||||
|
|
|
|||
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
|
|
@ -1143,6 +1143,9 @@ interface IAVCellValue {
|
|||
blockIDs: string[]
|
||||
contents?: string[]
|
||||
}
|
||||
rollup?: {
|
||||
contents?: string[]
|
||||
}
|
||||
date?: IAVCellDateValue
|
||||
created?: IAVCellDateValue
|
||||
updated?: IAVCellDateValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue