Commit 8dfa3606 by Mr. Lan

fix bug.

parent 251356b3
...@@ -300,8 +300,7 @@ export default { ...@@ -300,8 +300,7 @@ export default {
// label width // label width
if (this.widget.options.labelWidthDisabled) { if (this.widget.options.labelWidthDisabled) {
this.widgetLabelWidth = this.widget.options.labelWidth this.widgetLabelWidth = this.widget.options.labelWidth
} else if (this.widget.type==='grid' || } else if (this.widget.type==='divider' ||
this.widget.type==='divider' ||
(this.widget.type==='text' && this.widget.options.textLabelStatus===false)) { (this.widget.type==='text' && this.widget.options.textLabelStatus===false)) {
this.widgetLabelWidth = 0 this.widgetLabelWidth = 0
} else { } else {
......
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
} }
if (status) { if (status) {
this.elementLabelWidth = this.element.options.labelWidth this.elementLabelWidth = this.element.options.labelWidth
} else if (this.element.type==='grid' || this.element.type==='divider' || (this.element.type==='text' && element.options.textLabelStatus===false)) { } else if (this.element.type==='divider' || (this.element.type==='text' && element.options.textLabelStatus===false)) {
this.elementLabelWidth = 0 this.elementLabelWidth = 0
} else { } else {
// 全局 // 全局
......
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 sign in to comment