mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 rm nodeID
This commit is contained in:
parent
859a541155
commit
f85e1178c4
3 changed files with 3 additions and 13 deletions
|
|
@ -27,10 +27,8 @@ export const openMenuPanel = (options: {
|
|||
}
|
||||
window.siyuan.menus.menu.remove();
|
||||
const avID = options.blockElement.getAttribute("data-av-id");
|
||||
const nodeID = options.blockElement.getAttribute("data-node-id");
|
||||
fetchPost("/api/av/renderAttributeView", {
|
||||
id: avID,
|
||||
nodeID
|
||||
}, (response) => {
|
||||
const data = response.data as IAV;
|
||||
let html;
|
||||
|
|
@ -238,7 +236,7 @@ export const openMenuPanel = (options: {
|
|||
} else {
|
||||
targetElement.after(sourceElement);
|
||||
}
|
||||
const replaceValue: IAVCellAssetValue[] = []
|
||||
const replaceValue: IAVCellAssetValue[] = [];
|
||||
Array.from(targetElement.parentElement.children).forEach((item: HTMLElement) => {
|
||||
if (item.dataset.content) {
|
||||
replaceValue.push({
|
||||
|
|
@ -628,7 +626,6 @@ export const openMenuPanel = (options: {
|
|||
type: colData.type,
|
||||
avID,
|
||||
colId,
|
||||
nodeID,
|
||||
newValue: colData.name
|
||||
});
|
||||
avPanelElement.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue