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

View File

@ -79,6 +79,7 @@
:element="item.content"
:filters="filterMap[item.content.propValue && item.content.propValue.viewId] || []"
:out-style="outStyle"
:canvas-style-data="canvasStyleData"
/>
</div>
@ -233,7 +234,8 @@ export default {
...mapState([
'componentData',
'curComponent',
'mobileLayoutStatus'
'mobileLayoutStatus',
'canvasStyleData'
]),
fontColor() {
return this.element && this.element.style && this.element.style.headFontColor || 'none'