mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-09 13:47:25 +08:00
lint
This commit is contained in:
parent
7389dbbbb8
commit
d4e07e357c
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user