Commit 6bd2f956 by howie

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

parent c35138c7
......@@ -60,12 +60,12 @@ Component({
if (this.data.datas.componentData.isChange) {
if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) {
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
} else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) {
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
}
......@@ -75,7 +75,7 @@ Component({
return
} else {
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
}
......
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