JsonEditor.vue 920 Bytes
<template>
  <div>
    <el-input type="textarea" :rows="6" :disabled="$store.state.business.Edit" placeholder="配置参数" v-model="resultInfo">
    </el-input>
    <div class="d-center" v-if="!$store.state.business.Edit">
      <btn nativeType="cz" @click="dialogVisible = false">取 消</btn>
      <btn nativeType="cx" @click="submitForm">确 定</btn>
    </div>
  </div>
</template>
<script>
// 引入json编译器
export default {
  props: {
    resultInfo: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      myValue: this.value,
    }
  },
  methods: {
    onJsonChange (value) {
    },
    onJsonSave (value) {
    }
  }
}

</script>

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