Vanessa 2024-09-16 12:17:45 +08:00
parent 1d37134df2
commit 07553bbc35
4 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ export const initMessage = () => {
target = target.parentElement;
}
});
const tempMessageElement = document.getElementById("tempMessage")
const tempMessageElement = document.getElementById("tempMessage");
if (tempMessageElement) {
showMessage(tempMessageElement.innerHTML);
tempMessageElement.remove();

View file

@ -6,7 +6,6 @@ import {
reloadSync, setDefRefCount, setRefDynamicText,
transactionError
} from "../../dialog/processSystem";
import {Constants} from "../../constants";
import {App} from "../../index";
import {reloadPlugin} from "../../plugin/loader";
import {reloadEmoji} from "../../emoji";

View file

@ -62,7 +62,8 @@ export const genAVValueHTML = (value: IAVCellValue) => {
html = `<textarea style="resize: vertical" rows="${value.text.content.split("\n").length}" class="b3-text-field b3-text-field--text fn__flex-1">${value.text.content}</textarea>`;
break;
case "number":
html = `<input value="${typeof value.number.content === "number" ? value.number.content : ""}" type="number" class="b3-text-field b3-text-field--text fn__flex-1">`;
html = `<input value="${typeof value.number.content === "number" ? value.number.content : ""}" type="number" class="b3-text-field b3-text-field--text fn__flex-1">
<span class="fn__space"></span><span class="fn__flex-center ft__on-surface b3-tooltips__w b3-tooltips" aria-label="${window.siyuan.languages.format}">${value.number.formattedContent}</span><span class="fn__space"></span>`;
break;
case "mSelect":
case "select":

View file

@ -179,7 +179,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
}
});
const oldScroll = menuElement.querySelector(".b3-menu__items").scrollTop;
const selectedElement = menuElement.querySelector(".b3-chips")
const selectedElement = menuElement.querySelector(".b3-chips");
const oldChipsHeight = selectedElement ? selectedElement.clientHeight : 0;
if (!cellElements) {
menuElement.innerHTML = getEditHTML({protyle, data, colId, isCustomAttr});
@ -259,7 +259,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
}
});
const oldScroll = menuElement.querySelector(".b3-menu__items").scrollTop;
const selectedElement = menuElement.querySelector(".b3-chips")
const selectedElement = menuElement.querySelector(".b3-chips");
const oldChipsHeight = selectedElement?selectedElement.clientHeight:0;
if (!cellElements) {
menuElement.innerHTML = getEditHTML({protyle, data, colId, isCustomAttr});