Vanessa 2025-08-10 16:51:18 +08:00
parent 9df352efdb
commit 2b19d903b4
2 changed files with 5 additions and 4 deletions

View file

@ -255,8 +255,8 @@ class="b3-menu__item ariaLabel${item.textContent.indexOf(keyword) > -1 ? "" : "
draggable="true">${genSelectItemHTML("selected", item.dataset.id, !item.classList.contains("av__celltext--ref"), Lute.EscapeHTMLStr(item.textContent || window.siyuan.languages.untitled))}</button>`;
});
cells.forEach((item) => {
if (!hasIds.includes(item.block.id)) {
html += genSelectItemHTML("unselect", item.block.id, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
if (!hasIds.includes(item.blockID)) {
html += genSelectItemHTML("unselect", item.blockID, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
}
});
menuElement.querySelector(".b3-menu__items").innerHTML = `${selectHTML}
@ -288,8 +288,8 @@ export const bindRelationEvent = (options: {
draggable="true">${genSelectItemHTML("selected", item.dataset.id, !item.classList.contains("av__celltext--ref"), Lute.EscapeHTMLStr(item.textContent || window.siyuan.languages.untitled))}</button>`;
});
cells.forEach((item) => {
if (!hasIds.includes(item.block.id)) {
html += genSelectItemHTML("unselect", item.block.id, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
if (!hasIds.includes(item.blockID)) {
html += genSelectItemHTML("unselect", item.blockID, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
}
});
options.menuElement.querySelector(".b3-menu__items").innerHTML = `${selectHTML}

View file

@ -964,6 +964,7 @@ interface IAVCell {
interface IAVCellValue {
keyID?: string,
id?: string,
blockID?: string // 为 row id
type: TAVCol,
isDetached?: boolean,
text?: {