From 25169ce636329332155e60ece46c195c5c7cea5c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 10 Nov 2025 18:13:54 +0800 Subject: [PATCH] :sparkles: https://github.com/siyuan-note/siyuan/issues/12091 --- app/src/protyle/render/av/col.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index ae3560247..ae6adbd93 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -187,6 +187,13 @@ export const getEditHTML = (options: { ${window.siyuan.languages.fillSpecificTime} +`; + } else if (["updated", "created"].includes(colData.type)) { + html += ` +`; } html += ` @@ -365,6 +372,24 @@ export const bindEditEvent = (options: { }); } + const includeTimeElement = options.menuElement.querySelector('.b3-switch[data-type="includeTime"]') as HTMLInputElement; + if (includeTimeElement) { + includeTimeElement.addEventListener("change", () => { + transaction(options.protyle, [{ + action: "setAttrViewUpdatedIncludeTime", + id: colId, + avID, + data: includeTimeElement.checked, + }], [{ + action: "setAttrViewUpdatedIncludeTime", + id: colId, + avID, + data: !includeTimeElement.checked, + }]); + colData.includeTime = includeTimeElement.checked; + }); + } + const wrapElement = options.menuElement.querySelector('.b3-switch[data-type="wrap"]') as HTMLInputElement; if (wrapElement) { wrapElement.addEventListener("change", () => {