🎨 Add Default fill specific time switch to database date field https://github.com/siyuan-note/siyuan/issues/12089

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-25 21:01:30 +08:00
parent 15d651713c
commit 7beb2aa978
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 14 additions and 14 deletions

View file

@ -96,11 +96,11 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
}
tableRow.ID = rowID
filedDateAutoFill := false
filedDateIsTime := false
if nil != col.Date {
filedDateAutoFill = col.Date.AutoFillNow
filedDateIsTime = col.Date.FillSpecificTime
}
fillAttributeViewBaseValue(tableCell.BaseValue, col.ID, rowID, col.NumberFormat, col.Template, filedDateAutoFill)
fillAttributeViewBaseValue(tableCell.BaseValue, col.ID, rowID, col.NumberFormat, col.Template, filedDateIsTime)
tableRow.Cells = append(tableRow.Cells, tableCell)
}
ret.Rows = append(ret.Rows, &tableRow)