🚨
This commit is contained in:
parent
b40ad3552b
commit
681489bc24
4 changed files with 6 additions and 6 deletions
|
@ -185,5 +185,5 @@ export const copyPNGByLink = (link:string) => {
|
|||
};
|
||||
tempElement.src = link;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ export const updateAssetCell = (options: {
|
|||
} else {
|
||||
cellValue.mAsset = mAssetValue;
|
||||
}
|
||||
const avID = options.blockElement.getAttribute("data-av-id")
|
||||
const avID = options.blockElement.getAttribute("data-av-id");
|
||||
cellDoOperations.push({
|
||||
action: "updateAttrViewCell",
|
||||
id: cellValue.id,
|
||||
|
@ -248,7 +248,7 @@ ${window.siyuan.languages.title}
|
|||
copyPNGByLink(linkAddress);
|
||||
}
|
||||
});
|
||||
menu.addSeparator()
|
||||
menu.addSeparator();
|
||||
}
|
||||
menu.addItem({
|
||||
icon: "iconTrashcan",
|
||||
|
|
|
@ -191,7 +191,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"]
|
|||
<div class="fn__space"></div><div class="fn__space"></div>
|
||||
<button data-type="addColumn" class="b3-button b3-button--outline"><svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}</button>
|
||||
</div><div class="fn__hr--b"></div>`;
|
||||
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView">${innerHTML}</div>`
|
||||
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView">${innerHTML}</div>`;
|
||||
|
||||
if (element.innerHTML) {
|
||||
// 防止 blockElement 找不到
|
||||
|
|
|
@ -1557,7 +1557,7 @@ export class WYSIWYG {
|
|||
index = i;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
editAssetItem({
|
||||
protyle,
|
||||
cellElements: [avCellElement],
|
||||
|
@ -1567,7 +1567,7 @@ export class WYSIWYG {
|
|||
name: target.tagName === "IMG" ? "" : target.textContent,
|
||||
index,
|
||||
rect: target.getBoundingClientRect()
|
||||
})
|
||||
});
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue