Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-json-editor

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-json-editor - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

5

package.json
{
"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",

26

README.md
# 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc