<!-- 新格式的富文本组件 --> <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) { this.$emit('input', newVal) } } }, data() { return {}; }, methods: { blurEvent () { this.$emit('blur', this.model) } }, }; </script> <style> </style>