mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 12:50:16 +01:00
This commit is contained in:
parent
743f4eecbf
commit
2232320919
2 changed files with 16 additions and 16 deletions
|
|
@ -82,7 +82,7 @@ export const openMenuPanel = (options: {
|
|||
const blockID = options.blockElement.getAttribute("data-node-id");
|
||||
|
||||
const isCustomAttr = !options.blockElement.classList.contains("av");
|
||||
const data = response.data as IAV;
|
||||
let data = response.data as IAV;
|
||||
let html;
|
||||
const fields = getFieldsByData(data);
|
||||
if (options.type === "config") {
|
||||
|
|
@ -511,7 +511,7 @@ export const openMenuPanel = (options: {
|
|||
document.querySelector(".av__panel").dispatchEvent(new CustomEvent("click", {detail: "close"}));
|
||||
}
|
||||
});
|
||||
avPanelElement.addEventListener("click", (event: MouseEvent) => {
|
||||
avPanelElement.addEventListener("click", async (event: MouseEvent) => {
|
||||
let type: string;
|
||||
let target = event.target as HTMLElement;
|
||||
if (typeof event.detail === "string") {
|
||||
|
|
@ -1405,7 +1405,7 @@ export const openMenuPanel = (options: {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "set-layout") {
|
||||
updateLayout({
|
||||
data = await updateLayout({
|
||||
target,
|
||||
protyle: options.protyle,
|
||||
nodeElement: options.blockElement,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue