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: {
-3
View File
@@ -13,9 +13,6 @@ module.exports = {
},
resolve: {
extensions: ['.js', '.vue'],
alias: {
vue$: 'vue/dist/vue.esm.js'
},
modules: [
path.join(__dirname, '../'),
'node_modules'
+1 -10
View File
@@ -8,16 +8,7 @@
</head>
<body>
<div id="app">
<json-viewer :value="jsonData"></json-viewer>
<hr />
<json-viewer
:value="jsonData"
:expand-depth=5
copyable
boxed
sort></json-viewer>
</div>
</body>
</html>