mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
Add attribute "data-key" for Dialog (#10138)
This commit is contained in:
parent
b669d1a19c
commit
291211bd00
29 changed files with 103 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ export const exportImage = (id: string) => {
|
|||
width: isMobile() ? "92vw" : "990px",
|
||||
height: "70vh"
|
||||
});
|
||||
exportDialog.element.setAttribute("data-key", Constants.DIALOG_EXPORTIMAGE);
|
||||
const btnsElement = exportDialog.element.querySelectorAll(".b3-button");
|
||||
btnsElement[0].addEventListener("click", () => {
|
||||
exportDialog.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue