编辑器增加高度参数 默认300
This commit is contained in:
parent
c2198cf65c
commit
20599c859e
|
@ -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,
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue