mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 06:18:49 +01:00
This commit is contained in:
parent
eea13b713d
commit
ee95f9bf6f
3 changed files with 61 additions and 46 deletions
|
|
@ -1039,8 +1039,14 @@ const renderRollup = (cellValue: IAVCellValue) => {
|
|||
}
|
||||
} else if (cellValue.type === "number") {
|
||||
text = cellValue?.number.formattedContent || cellValue?.number.content.toString() || "";
|
||||
} else if (cellValue.type === "date") {
|
||||
const dataValue = cellValue ? cellValue.date : null;
|
||||
} else if (["date", "updated", "created"].includes(cellValue.type)) {
|
||||
let dataValue = cellValue ? cellValue.date : null;
|
||||
if (!dataValue) {
|
||||
dataValue = cellValue.updated;
|
||||
}
|
||||
if (!dataValue) {
|
||||
dataValue = cellValue.created;
|
||||
}
|
||||
if (dataValue.formattedContent) {
|
||||
text = dataValue.formattedContent;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue