Commit d5fe3d65 by wusiyi

fix: 修改富文本编辑器高度

parent 291b895c
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
:defaultConfig="toolbarConfig" :defaultConfig="toolbarConfig"
:mode="mode" /> :mode="mode" />
<Editor <Editor
style="height: 300px; overflow-y: hidden" :style="{ height: height, overflowY: 'hidden' }"
v-model="html" v-model="html"
:defaultConfig="editorConfig" :defaultConfig="editorConfig"
:mode="mode" :mode="mode"
...@@ -46,6 +46,11 @@ export default { ...@@ -46,6 +46,11 @@ export default {
type: Boolean, type: Boolean,
default: true default: true
}, },
/** 编辑区高度(px) */
height: {
type: String,
default: '300px'
},
isInsert: { isInsert: {
type: Boolean, type: Boolean,
default: false default: false
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
:title="operateType" :title="operateType"
:visible.sync="addDialog" :visible.sync="addDialog"
width="45%" width="45%"
top="2vh"
:close-on-click-modal="false"> :close-on-click-modal="false">
<el-form <el-form
:model="addFormData" :model="addFormData"
...@@ -161,6 +162,7 @@ ...@@ -161,6 +162,7 @@
v-model="addFormData.accountInfo" v-model="addFormData.accountInfo"
ref="wangeditor" ref="wangeditor"
:editable="!isFormReadonly" :editable="!isFormReadonly"
height="200px"
placeholder="请输入账户信息" /> placeholder="请输入账户信息" />
</div> </div>
</el-form-item> </el-form-item>
...@@ -172,6 +174,7 @@ ...@@ -172,6 +174,7 @@
v-model="addFormData.remark" v-model="addFormData.remark"
ref="wangeditor2" ref="wangeditor2"
:editable="!isFormReadonly" :editable="!isFormReadonly"
height="200px"
placeholder="请输入备注,如给客户的账户充值说明" /> placeholder="请输入备注,如给客户的账户充值说明" />
</el-form-item> </el-form-item>
</el-form> </el-form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment