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:
+15
-1
@@ -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: {
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user