Unverified 提交 556cd551 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #2333 from dataease/pr@dev@fix_tabs

fix: tabs选项卡不能选择视图
...@@ -308,10 +308,10 @@ export default { ...@@ -308,10 +308,10 @@ export default {
return this.outStyle.width * this.outStyle.height return this.outStyle.width * this.outStyle.height
}, },
resultMode() { resultMode() {
return this.canvasStyleData.panel.resultMode return this.canvasStyleData.panel && this.canvasStyleData.panel.resultMode || null
}, },
resultCount() { resultCount() {
return this.canvasStyleData.panel.resultCount return this.canvasStyleData.panel && this.canvasStyleData.panel.resultCount || null
}, },
innerPadding() { innerPadding() {
return this.element.commonBackground && this.element.commonBackground.innerPadding || 0 return this.element.commonBackground && this.element.commonBackground.innerPadding || 0
......
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
:element="item.content" :element="item.content"
:filters="filterMap[item.content.propValue && item.content.propValue.viewId] || []" :filters="filterMap[item.content.propValue && item.content.propValue.viewId] || []"
:out-style="outStyle" :out-style="outStyle"
:canvas-style-data="canvasStyleData"
/> />
</div> </div>
...@@ -233,7 +234,8 @@ export default { ...@@ -233,7 +234,8 @@ export default {
...mapState([ ...mapState([
'componentData', 'componentData',
'curComponent', 'curComponent',
'mobileLayoutStatus' 'mobileLayoutStatus',
'canvasStyleData'
]), ]),
fontColor() { fontColor() {
return this.element && this.element.style && this.element.style.headFontColor || 'none' return this.element && this.element.style && this.element.style.headFontColor || 'none'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论