mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-05-30 15:24:09 +03:00
28 lines
598 B
JavaScript
28 lines
598 B
JavaScript
import Vue from 'vue';
|
|
import JsonViewer from '../lib';
|
|
import './css/ionicons.css';
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
data() {
|
|
return {
|
|
jsonData: {
|
|
name: [
|
|
{key: 2},
|
|
{key: 'hello word'},
|
|
],
|
|
val: {
|
|
c: function() {},
|
|
b: 'a',
|
|
a: 'hello word',
|
|
asd2: 1,
|
|
asd: false,
|
|
foo: null,
|
|
bar: undefined
|
|
}
|
|
}
|
|
}
|
|
},
|
|
components: {JsonViewer}
|
|
})
|