mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
de933fe79b
commit
d93bd7cfe5
3 changed files with 10 additions and 6 deletions
|
|
@ -27,7 +27,11 @@ export const initBlockPopover = (app: App) => {
|
|||
}
|
||||
if (aElement.classList.contains("av__celltext")) {
|
||||
if (aElement.scrollWidth > aElement.parentElement.clientWidth - 11) {
|
||||
if (aElement.querySelector(".av__cellicon")) {
|
||||
tip = `${aElement.firstChild.textContent} ➡️ ${aElement.lastChild.textContent}`
|
||||
} else {
|
||||
tip = aElement.textContent;
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export const openWechatNotify = (nodeElement: Element) => {
|
|||
<div class="fn__flex">
|
||||
<span class="ft__on-surface fn__flex-center" style="text-align: right;white-space: nowrap;width: 100px">${window.siyuan.languages.notifyTime}</span>
|
||||
<div class="fn__space"></div>
|
||||
<input class="b3-text-field fn__flex-1" type="datetime-local" value="${reminderFormat}">
|
||||
<input class="b3-text-field fn__flex-1" type="datetime-local" max="9999-12-31 23:59" value="${reminderFormat}">
|
||||
</div>
|
||||
<div class="b3-label__text" style="text-align: center">${window.siyuan.languages.wechatTip}</div>
|
||||
</div>
|
||||
|
|
@ -110,7 +110,7 @@ export const openFileWechatNotify = (protyle: IProtyle) => {
|
|||
<div class="fn__flex">
|
||||
<span class="ft__on-surface fn__flex-center" style="text-align: right;white-space: nowrap;width: 100px">${window.siyuan.languages.notifyTime}</span>
|
||||
<div class="fn__space"></div>
|
||||
<input class="b3-text-field fn__flex-1" type="datetime-local" value="${reminderFormat}">
|
||||
<input class="b3-text-field fn__flex-1" type="datetime-local" max="9999-12-31 23:59" value="${reminderFormat}">
|
||||
</div>
|
||||
<div class="b3-label__text" style="text-align: center">${window.siyuan.languages.wechatTip}</div>
|
||||
</div>
|
||||
|
|
@ -162,7 +162,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||
notifyHTML = `<label class="b3-label b3-label--noborder">
|
||||
${window.siyuan.languages.wechatReminder}
|
||||
<div class="fn__hr"></div>
|
||||
<input class="b3-text-field fn__block" type="datetime-local" readonly data-name="${item}" value="${dayjs(attrs[item]).format("YYYY-MM-DD HH:mm")}">
|
||||
<input class="b3-text-field fn__block" type="datetime-local" max="9999-12-31 23:59" readonly data-name="${item}" value="${dayjs(attrs[item]).format("YYYY-MM-DD HH:mm")}">
|
||||
</label>`;
|
||||
} else if (item.indexOf("custom-av") > -1) {
|
||||
hasAV = true;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ export const getDateHTML = (data: IAVTable, cellElements: HTMLElement[]) => {
|
|||
}
|
||||
return `<div class="b3-menu__items">
|
||||
<div>
|
||||
<input type="${(!cellValue || cellValue?.value?.date?.isNotTime) ? "date" : "datetime-local"}" value="${value}" data-value="${value ? dayjs(cellValue.value.date.content).format("YYYY-MM-DD HH:mm") : ""}" class="b3-text-field fn__size200"><br>
|
||||
<input type="${(!cellValue || cellValue?.value?.date?.isNotTime) ? "date" : "datetime-local"}" value="${value2}" data-value="${value2 ? dayjs(cellValue.value.date.content2).format("YYYY-MM-DD HH:mm") : ""}" style="margin-top: 8px" class="b3-text-field fn__size200${hasEndDate ? "" : " fn__none"}">
|
||||
<input type="${(!cellValue || cellValue?.value?.date?.isNotTime) ? "date" : "datetime-local"}" max="9999-12-31 23:59" value="${value}" data-value="${value ? dayjs(cellValue.value.date.content).format("YYYY-MM-DD HH:mm") : ""}" class="b3-text-field fn__size200"><br>
|
||||
<input type="${(!cellValue || cellValue?.value?.date?.isNotTime) ? "date" : "datetime-local"}" max="9999-12-31 23:59" value="${value2}" data-value="${value2 ? dayjs(cellValue.value.date.content2).format("YYYY-MM-DD HH:mm") : ""}" style="margin-top: 8px" class="b3-text-field fn__size200${hasEndDate ? "" : " fn__none"}">
|
||||
<button class="b3-menu__separator"></button>
|
||||
<label class="b3-menu__item">
|
||||
<span>${window.siyuan.languages.endDate}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue