编辑器增加高度参数 默认300

This commit is contained in:
sakuya 2021-05-29 18:42:58 +08:00
parent c2198cf65c
commit 20599c859e
2 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,10 @@
type: String,
default: ""
},
height: {
type: Number,
default: 300,
},
disabled: {
type: Boolean,
default: false
@ -57,7 +61,7 @@
plugins: this.plugins,
toolbar: this.toolbar,
fontsize_formats: '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px',
height: 500,
height: this.height,
placeholder: this.placeholder,
branding: false,
resize: true,

View File

@ -1,7 +1,7 @@
<template>
<el-main>
<el-card shadow="never">
<sc-editor v-model="html" placeholder="请输入"></sc-editor>
<sc-editor v-model="html" placeholder="请输入" :height="400"></sc-editor>
</el-card>
</el-main>
</template>