mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
9df352efdb
commit
2b19d903b4
2 changed files with 5 additions and 4 deletions
|
@ -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>`;
|
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) => {
|
cells.forEach((item) => {
|
||||||
if (!hasIds.includes(item.block.id)) {
|
if (!hasIds.includes(item.blockID)) {
|
||||||
html += genSelectItemHTML("unselect", item.block.id, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
|
html += genSelectItemHTML("unselect", item.blockID, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
menuElement.querySelector(".b3-menu__items").innerHTML = `${selectHTML}
|
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>`;
|
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) => {
|
cells.forEach((item) => {
|
||||||
if (!hasIds.includes(item.block.id)) {
|
if (!hasIds.includes(item.blockID)) {
|
||||||
html += genSelectItemHTML("unselect", item.block.id, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
|
html += genSelectItemHTML("unselect", item.blockID, item.isDetached, Lute.EscapeHTMLStr(item.block.content || window.siyuan.languages.untitled));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
options.menuElement.querySelector(".b3-menu__items").innerHTML = `${selectHTML}
|
options.menuElement.querySelector(".b3-menu__items").innerHTML = `${selectHTML}
|
||||||
|
|
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
@ -964,6 +964,7 @@ interface IAVCell {
|
||||||
interface IAVCellValue {
|
interface IAVCellValue {
|
||||||
keyID?: string,
|
keyID?: string,
|
||||||
id?: string,
|
id?: string,
|
||||||
|
blockID?: string // 为 row id
|
||||||
type: TAVCol,
|
type: TAVCol,
|
||||||
isDetached?: boolean,
|
isDetached?: boolean,
|
||||||
text?: {
|
text?: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue