mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
8baf8291e3
commit
3d9e3ffea9
1 changed files with 8 additions and 2 deletions
|
|
@ -52,14 +52,20 @@ export const openMenuPanel = (options: {
|
||||||
avPanelElement.remove();
|
avPanelElement.remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.siyuan.menus.menu.remove();
|
|
||||||
const avID = options.blockElement.getAttribute("data-av-id");
|
const avID = options.blockElement.getAttribute("data-av-id");
|
||||||
const blockID = options.blockElement.getAttribute("data-node-id");
|
|
||||||
fetchPost("/api/av/renderAttributeView", {
|
fetchPost("/api/av/renderAttributeView", {
|
||||||
id: avID,
|
id: avID,
|
||||||
pageSize: parseInt(options.blockElement.getAttribute("data-page-size")) || undefined,
|
pageSize: parseInt(options.blockElement.getAttribute("data-page-size")) || undefined,
|
||||||
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW)
|
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW)
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
|
avPanelElement = document.querySelector(".av__panel");
|
||||||
|
if (avPanelElement) {
|
||||||
|
avPanelElement.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.siyuan.menus.menu.remove();
|
||||||
|
const blockID = options.blockElement.getAttribute("data-node-id");
|
||||||
|
|
||||||
const isCustomAttr = !options.blockElement.classList.contains("av");
|
const isCustomAttr = !options.blockElement.classList.contains("av");
|
||||||
const data = response.data as IAV;
|
const data = response.data as IAV;
|
||||||
let html;
|
let html;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue