1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-09 13:47:25 +08:00
This commit is contained in:
Pan 2018-08-19 16:26:15 +08:00
parent 7389dbbbb8
commit d4e07e357c

View File

@ -1,6 +1,6 @@
<template>
<div class="json-editor">
<textarea ref="textarea"></textarea>
<textarea ref="textarea"/>
</div>
</template>
@ -16,12 +16,13 @@ import 'codemirror/addon/lint/json-lint'
export default {
name: 'JsonEditor',
/* eslint-disable vue/require-prop-types */
props: ['value'],
data() {
return {
jsonEditor: false
}
},
props: ['value'],
watch: {
value(value) {
const editor_value = this.jsonEditor.getValue()