Skip to content

Commit ece89d2

Browse files
author
yaroslav8765
committed
feat: Add JsonViewer documentation and example
1 parent e8d7679 commit ece89d2

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,3 +1726,46 @@ import { MixedChart } from '@/afcl'
17261726
</div>
17271727
</div>
17281728

1729+
## Json Viever
1730+
1731+
```ts
1732+
import { JsonViever } from '@/afcl'
1733+
```
1734+
1735+
### Basic
1736+
1737+
<div class="split-screen" >
1738+
1739+
<div>
1740+
```html
1741+
<JsonViewer
1742+
:value="[
1743+
{
1744+
id: 1,
1745+
name: 'Alice',
1746+
meta: {
1747+
age: 30,
1748+
hobbies: ['reading', 'biking'],
1749+
location: { city: 'Kyiv', country: 'Ukraine' }
1750+
}
1751+
},
1752+
{
1753+
id: 2,
1754+
name: 'Bob',
1755+
meta: {
1756+
age: 25,
1757+
active: true,
1758+
scores: { math: 92, english: 88 }
1759+
}
1760+
}
1761+
]"
1762+
:expandDepth="4"
1763+
/>
1764+
```
1765+
</div>
1766+
<div>
1767+
![Mixed Chart](image-93.png)
1768+
</div>
1769+
</div>
1770+
1771+
29.6 KB
Loading

0 commit comments

Comments
 (0)