Daniel 2025-08-22 21:00:43 +08:00
parent eea13b713d
commit ee95f9bf6f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 61 additions and 46 deletions

View file

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