index.vue 729 Bytes
<template>
  <el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="resultInfo">
  </el-input>
</template>
<script>
// 引入json编译器
export default {
  props: {
    resultInfo: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      myValue: this.value,
    }
  },
  methods: {
    onJsonChange (value) {
      console.log('value:', value);
    },
    onJsonSave (value) {
      console.log('value:', value);
    }
  }
}

</script>

<style scoped lang="scss">
/* jsoneditor右上角默认有一个链接,加css去掉了 */
/deep/.el-textarea__inner {
  min-height: 73vh !important;
  background-color: #08346F !important;
  color: #ffffff;
  border: none !important;
}
</style>