This commit is contained in:
Vanessa 2022-10-08 16:13:24 +08:00
parent dd8ff3c430
commit 720d5df2fc
2 changed files with 11 additions and 9 deletions

View file

@ -1276,6 +1276,9 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
// 没有子列表或多个块的列表项不进行折叠
return -1;
}
if (nodeElement.getAttribute("data-type") === "NodeThematicBreak") {
return -1;
}
// 0 正常1 折叠
let fold = "0";
if (nodeElement.getAttribute("fold") === "1") {