1.6.1 • Published 6 months ago

vue-json-editable v1.6.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

vue-json-editable

Visual JSON Editor built as an vue component. Provides a basic GUI

开始

npm install vue-json-editable --save

使用

//import it in your project At your entry point

import Vue from 'vue'
import JsonEditor from 'vue-json-editable'
  
Vue.use(JsonEditor)

参数

  • objData: json data
  • options
    • confirmText: strings of the confirm button
    • cancelText: strings of the cancel button
  • event
    • key click event
    • value click event
    • blur click event

样例

<template>
    <JsonEditor
        :options="{
            confirmText: '确认',
            cancelText: '取消',
        }"
        @keyEvent="keyEvent"
        @valEvent="valEvent"
        @blurEvent="blurEvent"
        :objData="jsonData" 
        v-model="jsonData" >
    </JsonEditor>
</template>
<script>
export default {
    ...
    data: function() {
        return {
            jsonData: {
                name: 'Bill',
                age: 23,
                city: 'Seattle'
            }
        }
    }
}
</script> 
1.6.1

6 months ago

1.6.0

6 months ago

1.5.9

7 months ago

1.5.8

7 months ago

1.5.7

7 months ago

1.5.5

7 months ago

1.5.4

7 months ago

1.5.3

9 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

10 months ago

1.4.9

10 months ago

1.4.8

10 months ago

1.5.6

7 months ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.7

1 year ago

1.4.4

1 year ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.1-beta2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1-beta1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago