vue-json-editor
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -0,0 +0,0 @@ # Which files do I need? |
import Vue from 'vue' | ||
import vueJsonEditor from '../vue-json-editor.vue' | ||
import App from './App.vue' | ||
new Vue({ | ||
el: '#app', | ||
components: { vueJsonEditor }, | ||
components: { App }, | ||
render (h) { | ||
return h('vueJsonEditor') | ||
return h('App') | ||
} | ||
}) |
{ | ||
"name": "vue-json-editor", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "A json editor of vue", | ||
@@ -16,10 +16,9 @@ "main": "vue-json-editor.vue", | ||
"keywords": [ | ||
"vue-json-editor", | ||
"vuejsoneditor", | ||
"json-editor", | ||
"jsoneditor", | ||
"json", | ||
"eidtor", | ||
"jsoneditor\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D", | ||
"\u001b[B\u001b[B\u001b[B\u001b[A\u001b[A\u001b[A\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C\u001b[C", | ||
"json-editor", | ||
"vue-json-editor", | ||
"vue", | ||
"jsoneditor" | ||
"vue" | ||
], | ||
@@ -26,0 +25,0 @@ "author": "liuqi41", |
@@ -8,3 +8,5 @@ # vue-json-editor | ||
## 组件属性 | ||
v-model:必须,组件的json对象 | ||
v-model:必须,[json对象]组件的json对象 | ||
:showBtns: boolean,是否显示保存按钮,默认为true | ||
@json-change: json发生变化后的事件 | ||
@@ -22,3 +24,3 @@ # 怎么使用 | ||
<!--在模板中使用vue-json-editor--> | ||
<vue-json-editor v-model="json"></vue-json-editor | ||
<vue-json-editor v-model="json" :showBtns="true" @json-change="onJsonChange"></vue-json-editor | ||
<div> | ||
@@ -40,2 +42,8 @@ </template> | ||
vueJsonEditor | ||
}, | ||
methods: { | ||
onJsonChange (value) { | ||
console.log('value:', value) | ||
} | ||
} | ||
@@ -42,0 +50,0 @@ } |
@@ -42,3 +42,3 @@ var path = require('path') | ||
contentBase: path.join(__dirname), | ||
port: 80, | ||
port: 8080, | ||
open: true, | ||
@@ -45,0 +45,0 @@ inline: true |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4602352
19
50