编辑器增加高度参数 默认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, type: String,
default: "" default: ""
}, },
height: {
type: Number,
default: 300,
},
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false
@ -57,7 +61,7 @@
plugins: this.plugins, plugins: this.plugins,
toolbar: this.toolbar, toolbar: this.toolbar,
fontsize_formats: '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px', fontsize_formats: '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px',
height: 500, height: this.height,
placeholder: this.placeholder, placeholder: this.placeholder,
branding: false, branding: false,
resize: true, resize: true,

View File

@ -1,7 +1,7 @@
<template> <template>
<el-main> <el-main>
<el-card shadow="never"> <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-card>
</el-main> </el-main>
</template> </template>