perf: 优化文档打开时或刷新时样式闪动问题

This commit is contained in:
zhanzhenping 2024-07-03 14:41:02 +08:00
parent 97bcf03125
commit 33e5f22afd
3 changed files with 3 additions and 3 deletions

View File

@ -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) {
buf.WriteString("<ul>")
buf.WriteString("<ul style='display:none;'>")
for _, item := range array {
pid := 0

View File

@ -86,7 +86,7 @@
.jstree-wholerow-ul {
position: relative;
display: inline-block;
min-width: 100%;
width: 100%;
}
.jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
cursor: pointer;

File diff suppressed because one or more lines are too long