This commit is contained in:
Vanessa 2023-11-23 11:35:26 +08:00
parent 7cbf14a42f
commit 69a795b99b
8 changed files with 46 additions and 44 deletions

View file

@ -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) => {

View file

@ -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 = "";
}
};