mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
🎨 The database rollup field supports using the updated/created field https://github.com/siyuan-note/siyuan/issues/15662
This commit is contained in:
parent
ee95f9bf6f
commit
9bb6f4d134
6 changed files with 54 additions and 44 deletions
|
|
@ -35,6 +35,8 @@ const genAVRollupHTML = (value: IAVCellValue) => {
|
|||
html = value.number.formattedContent || value.number.content.toString();
|
||||
break;
|
||||
case "date":
|
||||
case "updated":
|
||||
case "created":
|
||||
if (value[value.type] && value[value.type].isNotEmpty) {
|
||||
html = dayjs(value[value.type].content).format(value[value.type].isNotTime ? "YYYY-MM-DD" : "YYYY-MM-DD HH:mm");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue