This commit is contained in:
Vanessa 2022-11-19 10:49:43 +08:00
parent 1f391d7f50
commit b542a80f56
8 changed files with 13 additions and 14 deletions

View file

@ -58,8 +58,8 @@ export const exportImage = (id: string) => {
}
});
previewElement.querySelectorAll(".li > .protyle-action > svg").forEach(item => {
const id = item.firstElementChild.getAttribute("xlink:href")
const symbolElements = document.querySelectorAll(id)
const id = item.firstElementChild.getAttribute("xlink:href");
const symbolElements = document.querySelectorAll(id);
let viewBox = "0 0 32 32";
if (id === "#iconDot") {
viewBox = "0 0 20 20";