This commit is contained in:
Vanessa 2024-03-05 23:18:11 +08:00
parent c2a2e17b00
commit d9c30ae4ff
3 changed files with 4 additions and 4 deletions

View file

@ -656,7 +656,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => {
}
files.getLeaf(liElement, notebookId);
window.siyuan.menus.menu.remove();
}
};
/// #if !BROWSER
const importstdmd = (label: string, isDoc?: boolean) => {
return {

View file

@ -80,7 +80,7 @@ const setPage = (blockElement: Element) => {
blockElement.setAttribute("data-page-size", currentCount.toString());
}
}
}
};
/**
*
@ -119,7 +119,7 @@ ${(item.getAttribute("data-block-id") || item.dataset.dtype === "block") ? ' dat
// https://github.com/siyuan-note/siyuan/issues/10517
let hideTextCell = false;
response.data.filters.find((item: IAVFilter) => {
const headerElement = blockElement.querySelector(`.av__cell--header[data-col-id="${item.column}"]`)
const headerElement = blockElement.querySelector(`.av__cell--header[data-col-id="${item.column}"]`);
if (headerElement && ["relation", "rollup", "template", "created", "updated"].includes(headerElement.getAttribute("dtype"))) {
hideTextCell = true;
return true;

View file

@ -2040,7 +2040,7 @@ export class WYSIWYG {
// https://github.com/siyuan-note/siyuan/issues/10513
const virtualRefElement = hasClosestByAttribute(event.target, "data-type", "virtual-block-ref");
if (virtualRefElement) {
const blockElement = hasClosestBlock(virtualRefElement)
const blockElement = hasClosestBlock(virtualRefElement);
if (blockElement) {
fetchPost("/api/block/getBlockDefIDsByRefText", {
anchor: virtualRefElement.textContent,