mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
dd8ff3c430
commit
720d5df2fc
2 changed files with 11 additions and 9 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue