Commit 6a818ce0 by 李伟康

提交代码

1 parent 2310cd9b
...@@ -19,6 +19,10 @@ export default { ...@@ -19,6 +19,10 @@ export default {
excludeMenus: { excludeMenus: {
type: Array, type: Array,
default: () => ['code'] default: () => ['code']
},
boxHeight:{
type: Number,
default: 240
} }
}, },
mounted() { mounted() {
...@@ -31,7 +35,7 @@ export default { ...@@ -31,7 +35,7 @@ export default {
this.editor.config.uploadImgShowBase64 = true this.editor.config.uploadImgShowBase64 = true
this.editor.config.showMenuTooltips = true this.editor.config.showMenuTooltips = true
this.editor.config.menuTooltipPosition = 'down' this.editor.config.menuTooltipPosition = 'down'
this.editor.config.height = 400 this.editor.config.height = this.boxHeight
this.editor.config.width = 500 this.editor.config.width = 500
this.editor.config.excludeMenus = this.excludeMenus this.editor.config.excludeMenus = this.excludeMenus
this.editor.config.onchange = html => { this.editor.config.onchange = html => {
...@@ -112,7 +116,7 @@ export default { ...@@ -112,7 +116,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
#div-demo { #div-demo {
margin: 16px 300px 0 0; // margin: 16px 300px 0 0;
} }
.el-form .editor { .el-form .editor {
margin-top: 20px; margin-top: 20px;
......
...@@ -1287,7 +1287,8 @@ export default { ...@@ -1287,7 +1287,8 @@ export default {
name: 'activityDetail', name: 'activityDetail',
tips: '展示活动的详细内容', tips: '展示活动的详细内容',
type: 'textBox', type: 'textBox',
excludeMenus: ['video', 'code'] excludeMenus: ['video', 'code'],
boxHeight:240
}, },
{ {
label: '音乐文件', label: '音乐文件',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!