🎨 Add Include time switch to database creation time field and update time field https://github.com/siyuan-note/siyuan/issues/12091

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-10 19:09:08 +08:00
parent 8e853fe66f
commit 67231dbf6a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -193,7 +193,7 @@ export const getEditHTML = (options: {
<label class="b3-menu__item">
<span class="fn__flex-center">${window.siyuan.languages.includeTime}</span>
<span class="fn__space fn__flex-1"></span>
<input data-type="includeTime" type="checkbox" class="b3-switch b3-switch--menu" ${colData[colData.type as "updated"].includeTime ? "checked" : ""}>
<input data-type="includeTime" type="checkbox" class="b3-switch b3-switch--menu" ${colData[colData.type as "updated"]?.includeTime ? "checked" : ""}>
</label>`;
}
html += `<button class="b3-menu__separator" data-id="separator_3"></button>