XmlFormatEditorNew.vue 610 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<!-- 新格式的富文本组件 -->
<template>
  <c-rich-text-editor
    v-model="model"
    v-bind="$attrs"
    @blur="blurEvent"
  ></c-rich-text-editor>
</template>

<script>
// 保函文本
export default {
  name: "XmlFormatEditorNew",
  props: {
    value: {
      type: String,
      default: ''
    }
  },
  computed: {
    model: {
      get () {
        return this.value
      }, 
      set (newVal) {
李少勇 committed
26
        this.$emit('input', newVal)
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
      }
    }
  },
  data() {
    return {};
  },
  methods: {
    blurEvent () {
      this.$emit('blur', this.model)
    }
  },
};
</script>

<style>
</style>