mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
perf: 优化文档打开时或刷新时样式闪动问题
This commit is contained in:
parent
97bcf03125
commit
33e5f22afd
@ -173,7 +173,7 @@ func getSelectedNode(array []*DocumentTree, parent_id int) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getDocumentTree(array []*DocumentTree, parentId int, selectedId int, selectedParentId int, buf *bytes.Buffer) {
|
func getDocumentTree(array []*DocumentTree, parentId int, selectedId int, selectedParentId int, buf *bytes.Buffer) {
|
||||||
buf.WriteString("<ul>")
|
buf.WriteString("<ul style='display:none;'>")
|
||||||
|
|
||||||
for _, item := range array {
|
for _, item := range array {
|
||||||
pid := 0
|
pid := 0
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
.jstree-wholerow-ul {
|
.jstree-wholerow-ul {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
|
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user