Vanessa 2025-06-23 11:39:19 +08:00
parent 3dd1bd8eee
commit 1c59aa2243

View file

@ -84,7 +84,7 @@ export const openMenuPanel = (options: {
const isCustomAttr = !options.blockElement.classList.contains("av"); const isCustomAttr = !options.blockElement.classList.contains("av");
let data = response.data as IAV; let data = response.data as IAV;
let html; let html;
const fields = getFieldsByData(data); let fields = getFieldsByData(data);
if (options.type === "config") { if (options.type === "config") {
html = getViewHTML(data); html = getViewHTML(data);
} else if (options.type === "properties") { } else if (options.type === "properties") {
@ -1416,6 +1416,7 @@ export const openMenuPanel = (options: {
nodeElement: options.blockElement, nodeElement: options.blockElement,
data: data data: data
}); });
fields = getFieldsByData(data);
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
break; break;