All Projects → yansenlei → VJsoneditor

yansenlei / VJsoneditor

Licence: Apache-2.0 License
🔷 vue use jsoneditor

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to VJsoneditor

layui-vue
layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库
Stars: ✭ 112 (-29.56%)
Mutual labels:  vue-component
vue-next-level-scroll
Bring your scroll game to the next level!
Stars: ✭ 49 (-69.18%)
Mutual labels:  vue-component
v-clappr
👏🏻Vue.js wrapper for Clappr media player
Stars: ✭ 18 (-88.68%)
Mutual labels:  vue-component
vue-tiny-pagination
A Vue component for create a tiny pagination with Flexbox
Stars: ✭ 20 (-87.42%)
Mutual labels:  vue-component
vue-music
基于Laravel5.3+Vue2.0的网易云音乐的SPA应用
Stars: ✭ 85 (-46.54%)
Mutual labels:  vue-component
vue-digital-transform
A vue component for better digital transform animation
Stars: ✭ 52 (-67.3%)
Mutual labels:  vue-component
vue-ele-import
超简单、好用的 element-ui Excel 导入组件
Stars: ✭ 50 (-68.55%)
Mutual labels:  vue-component
files
Laravel Enso file management add-on for smoothing out some of common cases found when working with files
Stars: ✭ 15 (-90.57%)
Mutual labels:  vue-component
vue-g2
基于 Vue 和 AntV/G2 的可视化组件库 📈
Stars: ✭ 73 (-54.09%)
Mutual labels:  vue-component
v-bucket
📦 Fast, Simple, and Lightweight State Manager for Vue 3.0 built with composition API, inspired by Vuex.
Stars: ✭ 42 (-73.58%)
Mutual labels:  vue-component
vue-dictaphone
🎙️ Vue.js dictaphone component to record audio from the user
Stars: ✭ 22 (-86.16%)
Mutual labels:  vue-component
vue-magnify
vue-magnify / vue放大镜组件
Stars: ✭ 14 (-91.19%)
Mutual labels:  vue-component
vue-form-container
👜 A Provider Component that encapsulate your forms and handle their states and validations.
Stars: ✭ 23 (-85.53%)
Mutual labels:  vue-component
vue-github-activity
A Vue based github feed activity component.
Stars: ✭ 28 (-82.39%)
Mutual labels:  vue-component
x-vue-carousel
Vue component of an awesome configurable carousel
Stars: ✭ 20 (-87.42%)
Mutual labels:  vue-component
vue-telegram-login
Vue component for Telegram login
Stars: ✭ 73 (-54.09%)
Mutual labels:  vue-component
vue-money-button
An unofficial Vue.js component for MoneyButton.
Stars: ✭ 22 (-86.16%)
Mutual labels:  vue-component
vue-resize-split-pane
Splittable and resizable panes for Vue.js
Stars: ✭ 54 (-66.04%)
Mutual labels:  vue-component
v-tostini
Toast plugin for Vue.js 2.x
Stars: ✭ 12 (-92.45%)
Mutual labels:  vue-component
vue-justified-layout
A component to use Flickr justified layout with Vue.
Stars: ✭ 26 (-83.65%)
Mutual labels:  vue-component

npm version Build Status license license

v-jsoneditor

Vue JSONEditor

Try the demo

https://yansenlei.github.io/VJsoneditor/

demo

Installation

npm install v-jsoneditor

Using

Import globally

import Vue from 'vue'
import VJsoneditor from 'v-jsoneditor'

Vue.use(VJsoneditor)

Import

import VJsoneditor from 'v-jsoneditor'

export default {
    name: 'app',
    components: {
        VJsoneditor
    },
    data() {
        return {
            json: {
                "hello": "vue"
            }
        }
    },
    methods: {
        onError() {
            console.log('error')
        }
    }
}

Browser

<script src='https://unpkg.com/vue@latest'></script>
<script src="./dist/v-jsoneditor.min.js"></script>

Use in template

<v-jsoneditor v-model="json" :options="options" :plus="false" height="400px" @error="onError">

Options

Name Description type default
options Jsoneditor params, You can look at the detailed configuration Object { mode: 'code' }
value(v-model) Object value Object { }
plus Whether full screen switching is added Boolean true
height Default height String -

Events

Name Description
error Error callback

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].