0.7.7 • Published 5 years ago

vue-json-editors v0.7.7

Weekly downloads
34
License
MIT
Repository
github
Last release
5 years ago

vue-json-editors

Vue Json Editor for Vue. 基于Codemirror 使用于Vue的Web Json编辑器。

Installation

NPM
npm install vue-json-editors

Mount

global
import Vue from 'vue'
import VueJsonEditors from 'vue-json-editors'

// you can set default global options and events when use
Vue.use(VueJsonEditors, /* { 
  options: { theme: 'rubyblue', lineNumbers:true, ... },
  events: ['scroll', ...]
} */)

Usage

<template>
  <div>
    <vue-json-editor v-model="json" :options="options"/>
  </div>
</template>

<script>
  export default {
    name: 'home',
    data() {
      return {
        json: '{}',
        options: {
          //theme:'rubyblue',        //default
          //lineNumbers:true,        //default
          mode: 'application/json',
          readOnly: true
        },
      }
    },
  }
</script>
MethodsDescription
validate(valid)验证json格式是否正确
关羽
张飞

Author

JeeSky

0.7.7

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.9

5 years ago

0.6.7

5 years ago

0.6.6

5 years ago

0.6.8

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago