Skip to content

Commit 587fa32

Browse files
committed
docs: 更新 README;修复文档的 playground 页面切换图标不生效的问题;
1 parent e0dba97 commit 587fa32

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# json-tree
2-
JSON tree view for Vue
2+
3+
JSON tree view for Vue.
4+
5+
[Demo | Docs](https://mathink12.github.io/json-tree/)
6+
7+
![demo](./docs/imgs/json-tree.gif)

docs/.vuepress/components/JsonTreeDemo.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@
4343
:json-data="jsonData"
4444
:show-line="showLine"
4545
:indent="indent"
46-
:expand-deep="deep"
47-
/>
46+
:expand-deep="deep">
47+
<template v-if="toggle !== 'default'" #toggle="{ collapse }">
48+
<i :class="calcToggleClass(collapse)"></i>
49+
</template>
50+
</JsonTree>
4851
</div>
4952
</template>
5053

docs/imgs/json-tree.gif

156 KB
Loading

0 commit comments

Comments
 (0)