mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-06-23 20:40:38 +03:00
merge
This commit is contained in:
@@ -1,20 +1,24 @@
|
|||||||
# vue-json-viewer
|
# vue-json-viewer
|
||||||
|
|
||||||
简单json展示工具,基于vue框架开发的展示组件
|
Simple json display component, based on vue
|
||||||
|
|
||||||
Examples:
|
## Installing:
|
||||||
|
Using npm:
|
||||||
安装:
|
```
|
||||||
|
$ npm install vue-json-viewer
|
||||||
``` cli
|
|
||||||
npm install vue-json-viewer
|
|
||||||
```
|
```
|
||||||
or
|
Using bower:
|
||||||
``` cli
|
|
||||||
yarn add vue-json-viewer
|
|
||||||
|
```
|
||||||
|
$ yarn add vue-json-viewer
|
||||||
```
|
```
|
||||||
|
|
||||||
使用:
|
## Example:
|
||||||
|
|
||||||
|
``` html
|
||||||
|
<json-viewer :value="jsonData" :show-copy="true" icon-prefix="ion" :show-bigger="true"></json-viewer>
|
||||||
|
```
|
||||||
|
|
||||||
``` js
|
``` js
|
||||||
export default {
|
export default {
|
||||||
@@ -36,4 +40,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
<<<<<<< HEAD
|
||||||
|
```
|
||||||
|
=======
|
||||||
|
```
|
||||||
|
## Result
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## Options:
|
||||||
|
|
||||||
|
| Property | Description |
|
||||||
|
| ----------- |:-------------|
|
||||||
|
| value | json data |
|
||||||
|
| show-copy | display the copy button |
|
||||||
|
| show-bigger | display the bigger button |
|
||||||
|
| icon-prefix | Custom Font icon prefix |
|
||||||
|
>>>>>>> eb16800904be1193c3eb7b87ff67048f22011a5b
|
||||||
|
|||||||
Reference in New Issue
Block a user