2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-17 19:21:24 +03:00

dist main file & jsx

This commit is contained in:
陈峰
2018-09-20 10:33:05 +08:00
parent a340304521
commit 8aa567dc8e
8 changed files with 332 additions and 175 deletions
+15 -1
View File
@@ -1,10 +1,24 @@
import Vue from 'vue'
import JsonViewer from '../lib'
import JsonViewer from '../dist/vue-json-viewer'
Vue.use(JsonViewer)
new Vue({
el: '#app',
render() {
return (
<div>
<json-viewer value={this.jsonData}></json-viewer>
<hr />
<json-viewer
value={this.jsonData}
expand-depth={5}
copyable
boxed
sort></json-viewer>
</div>
)
},
data() {
return {
jsonData: {