fix: tabs选项卡不能选择视图

This commit is contained in:
fit2cloud-chenyw
2022-05-27 12:49:24 +08:00
parent 75c1bc62cc
commit ade22509ec
2 changed files with 5 additions and 3 deletions

View File

@@ -308,10 +308,10 @@ export default {
return this.outStyle.width * this.outStyle.height
},
resultMode() {
return this.canvasStyleData.panel.resultMode
return this.canvasStyleData.panel && this.canvasStyleData.panel.resultMode || null
},
resultCount() {
return this.canvasStyleData.panel.resultCount
return this.canvasStyleData.panel && this.canvasStyleData.panel.resultCount || null
},
innerPadding() {
return this.element.commonBackground && this.element.commonBackground.innerPadding || 0