mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 00:34:20 +01:00
This commit is contained in:
parent
2c40963e5e
commit
f21ecce2a3
2 changed files with 3 additions and 3 deletions
|
|
@ -237,7 +237,7 @@ export const bindRelationEvent = (options: {
|
|||
if (hasId) {
|
||||
avData.view.rows.find((item) => {
|
||||
if (item.id === hasId) {
|
||||
selectHTML += genSelectItemHTML("selected", item.id, item.cells[cellIndex].value.block.content || item.cells[cellIndex].value.block.id);
|
||||
selectHTML += genSelectItemHTML("selected", item.id, item.cells[cellIndex].value.block.content || "Untitled");
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
@ -245,7 +245,7 @@ export const bindRelationEvent = (options: {
|
|||
});
|
||||
avData.view.rows.forEach((item) => {
|
||||
if (!hasIds.includes(item.id)) {
|
||||
html += genSelectItemHTML("unselect", item.id, item.cells[cellIndex].value.block.content || item.cells[cellIndex].value.block.id);
|
||||
html += genSelectItemHTML("unselect", item.id, item.cells[cellIndex].value.block.content || "Untitled");
|
||||
}
|
||||
});
|
||||
options.menuElement.innerHTML = `<div class="b3-menu__items">${selectHTML || genSelectItemHTML("empty")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue