-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d903b1b
commit 7332cb5
Showing
10 changed files
with
396 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 数据格式 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 展开/折叠 | ||
|
||
`LiteTree`组件支持通过`+`和`-`前置符号来控制节点的默认展开/折叠状态。 | ||
|
||
```ts | ||
<LiteTree> | ||
根节点 | ||
+ 节点1 // 默认展开状态 | ||
- 节点1.1 | ||
- 节点1.2 | ||
- 节点2 // 默认折叠状态 | ||
- 节点2.1 | ||
- 节点2.2 | ||
</LiteTree> | ||
``` | ||
|
||
**渲染效果如下:** | ||
|
||
<LiteTree> | ||
根节点 | ||
+ 节点1 // 默认展开状态 | ||
节点1.1 | ||
节点1.2 | ||
- 节点2 // 默认折叠状态 | ||
节点2.1 | ||
节点2.2 | ||
</LiteTree> |
Oops, something went wrong.