Commit 6bd2f956 by howie

feat:公告组件优化标题去掉上下留白

parent c35138c7
...@@ -60,12 +60,12 @@ Component({ ...@@ -60,12 +60,12 @@ Component({
if (this.data.datas.componentData.isChange) { if (this.data.datas.componentData.isChange) {
if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) { if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.imageWidth < 40 ? '40px' : this.data.datas.componentData.imageWidth + 'px' CommonHeight: this.data.datas.componentData.imageWidth < 24 ? '24px' : this.data.datas.componentData.imageWidth + 'px'
}) })
return return
} else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) { } else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.noticeWidth < 40 ? '40px' : this.data.datas.componentData.noticeWidth + 'px' CommonHeight: this.data.datas.componentData.noticeWidth < 24 ? '24px' : this.data.datas.componentData.noticeWidth + 'px'
}) })
return return
} }
...@@ -75,7 +75,7 @@ Component({ ...@@ -75,7 +75,7 @@ Component({
return return
} else { } else {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.noticeWidth < 40 ? '40px' : this.data.datas.componentData.noticeWidth + 'px' CommonHeight: this.data.datas.componentData.noticeWidth < 24 ? '24px' : this.data.datas.componentData.noticeWidth + 'px'
}) })
return return
} }
......
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 to comment