vue-json-editor
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "vue-json-editor", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A json editor of vue", | ||
@@ -5,0 +5,0 @@ "main": "vue-json-editor.vue", |
# vue-json-editor | ||
A jsoneditor of vue.js | ||
## dependencies | ||
## 依赖 | ||
vue.js | ||
# How to use | ||
## 1. Install the editor | ||
In the directory of your vue project, just run: | ||
## 组件属性 | ||
v-model:必须,组件的json对象 | ||
# 怎么使用 | ||
## 1. 使用npm安装vue-json-editor | ||
``` | ||
npm install vue-json-editor | ||
npm install vue-json-editor --save | ||
``` | ||
## 2. Use it in your vue component | ||
## 2. 在vue组件中使用vue-json-editor | ||
``` | ||
<template> | ||
<div> | ||
<p>vue-json-editor使用</p> | ||
<!--在模板中使用vue-json-editor--> | ||
<vue-json-editor v-model="json"></vue-json-editor | ||
<div> | ||
</template> | ||
<script> | ||
// 引入vue-json-editor模块 | ||
import vueJsonEditor from 'vue-json-editor' | ||
export default { | ||
data () { | ||
json: { | ||
msg: 'demo of jsoneditor' | ||
} | ||
}, | ||
// 注入vueJsonEditor组件 | ||
components: { | ||
vueJsonEditor | ||
} | ||
} | ||
</script> | ||
``` |
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
4553730
42