|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-dialog
|
|
|
:visible="visible"
|
|
|
- width="550px"
|
|
|
+ :width="componentType === 'richtext' ? '550px' : '400px'"
|
|
|
top="20vh"
|
|
|
:show-close="false"
|
|
|
:close-on-click-modal="false"
|
|
@@ -37,6 +37,7 @@
|
|
|
<el-input v-model="numberPinyin" autocomplete="off" placeholder="请输入正确的拼音" @blur="convertTonePinyin" />
|
|
|
<span class="tips">一到四声分别用数字1-4表示,轻声用0表示,拼音间用空格隔开。</span>
|
|
|
<RichText
|
|
|
+ v-if="componentType === 'richtext'"
|
|
|
v-model="dataContent.note"
|
|
|
toolbar="fontselect fontsizeselect forecolor backcolor|underline|bold italic strikethrough alignleft aligncenter alignright"
|
|
|
:wordlimit-num="false"
|
|
@@ -70,6 +71,10 @@ export default {
|
|
|
type: Object,
|
|
|
required: true,
|
|
|
},
|
|
|
+ componentType: {
|
|
|
+ type: String,
|
|
|
+ default: '',
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
data() {
|