mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
This commit is contained in:
parent
7cbf14a42f
commit
69a795b99b
8 changed files with 46 additions and 44 deletions
|
|
@ -121,7 +121,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
|
|||
if (name === inputElement.value || !inputElement.value) {
|
||||
return;
|
||||
}
|
||||
let hasName = false
|
||||
let hasName = false;
|
||||
data.view.columns.find(column => {
|
||||
if (column.id === colId) {
|
||||
column.options.find((item) => {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
|
|||
}
|
||||
}).catch(() => {
|
||||
renderEmbed([], protyle, item, top);
|
||||
})
|
||||
});
|
||||
} else if (Array.isArray(includeIDs)) {
|
||||
fetchPost("/api/search/getEmbedBlock", {
|
||||
embedBlockID: item.getAttribute("data-node-id"),
|
||||
|
|
@ -85,7 +85,7 @@ export const blockRender = (protyle: IProtyle, element: Element, top?: number) =
|
|||
excludeIDs: [item.getAttribute("data-node-id"), protyle.block.rootID],
|
||||
breadcrumb
|
||||
}, (response) => {
|
||||
renderEmbed(response.data.blocks, protyle, item, top)
|
||||
renderEmbed(response.data.blocks, protyle, item, top);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
@ -135,4 +135,4 @@ const renderEmbed = (blocks: {
|
|||
});
|
||||
}
|
||||
item.style.height = "";
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue