2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-11 18:02:29 +03:00
陈峰 1dee72499f merge
2018-07-02 17:25:49 +08:00
2018-07-02 17:25:09 +08:00
2017-10-18 14:39:10 +08:00
2017-10-18 11:45:31 +08:00
2017-10-18 11:45:31 +08:00
2017-10-19 17:40:24 +08:00
2017-10-18 14:39:10 +08:00
2017-10-19 17:40:24 +08:00
2017-10-19 17:40:39 +08:00
2018-07-02 17:25:49 +08:00
2017-10-18 11:45:31 +08:00

vue-json-viewer

Simple json display component, based on vue

Installing

Using npm:

$ npm install vue-json-viewer

Using bower:

$ yarn add vue-json-viewer

Example

<json-viewer :value="jsonData" :show-copy="true" icon-prefix="ion" :show-bigger="true"></json-viewer>
export default {
  name: 'Page',
  data() {
    return {
      jsonData: {
        name: [
          {key: 2},
          {key: 'hello word'},
        ],
        val: {
          b: 'a',
          a: 'hello word',
          asd2: 1,
          asd: false
        }
      }
    }
  }
}
<<<<<<< HEAD

=======

## Result
![ABC](http://oxqqtdux0.bkt.clouddn.com/WX20180702-172158.png) 


## 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
S
Description
Simple JSON viewer component
Readme MIT 1.2 MiB
Languages
Vue 66.2%
JavaScript 32.7%
HTML 0.9%
CSS 0.2%