vue-json-editor
Advanced tools
Comparing version 1.3.2 to 1.4.0
{ | ||
"name": "vue-json-editor", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "A json editor of vue", | ||
@@ -31,3 +31,4 @@ "main": "vue-json-editor.vue", | ||
"alexmgillis (https://github.com/alexmgillis)", | ||
"DrCoc (https://github.com/DrCoc)" | ||
"DrCoc (https://github.com/DrCoc)", | ||
"Aymeric Hermant (https://github.com/ahermant/)" | ||
], | ||
@@ -34,0 +35,0 @@ "license": "ISC", |
# vue-json-editor | ||
A json editor of vue.js | ||
## Component properties | ||
v-model:bind the [json object] | ||
:show-btns: boolean, show the save button, default: true | ||
v-model:bind the [json object] | ||
:show-btns: boolean, show the save button, default: true | ||
:expandedOnStart: boolean, expand the JSON editor on start for the modes 'tree', 'view', and 'form', default: false | ||
:mode: string, default: tree | ||
:lang: string, default: en | ||
@json-change: on json changed | ||
@json-save: on json save | ||
:lang: string, default: en | ||
@json-change: on json changed | ||
@json-save: on json save | ||
@has-error: on error | ||
# How to use | ||
## 1. Install using npm | ||
``` | ||
npm install vue-json-editor --save | ||
``` | ||
## 2. Use vue-json-editor in the vue component | ||
```vue | ||
@@ -23,3 +30,3 @@ <template> | ||
<p>vue-json-editor</p> | ||
<vue-json-editor v-model="json" :show-btns="true" @json-change="onJsonChange"></vue-json-editor> | ||
<vue-json-editor v-model="json" :show-btns="true" :exapndedOnStart:"true" @json-change="onJsonChange"></vue-json-editor> | ||
<div> | ||
@@ -30,3 +37,3 @@ </template> | ||
import vueJsonEditor from 'vue-json-editor' | ||
export default{ | ||
@@ -38,3 +45,3 @@ data () { | ||
}, | ||
components: { | ||
@@ -52,4 +59,1 @@ vueJsonEditor | ||
``` | ||
# Contributors | ||
Stefano Valenzano <valenzano.stefano99@gmail.com> (https://tuttarealstep.github.io/) |
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
56
4605575