Skip to content

Commit

Permalink
improvement: grid-item条件编译优化
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Aug 8, 2024
1 parent 34ccc10 commit 94839a6
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
// #endif
itemStyle() {
const style = {
background: this.bgColor,
// #ifndef MP
width: this.width
// #endif
// #ifdef MP
width: '100%'
// #endif
background: this.bgColor
}
// #ifndef MP
style['width'] = this.width
// #endif
// #ifdef MP
style['width'] = '100%'
// #endif
return deepMerge(style, addStyle(this.customStyle))
}
},
Expand Down

0 comments on commit 94839a6

Please sign in to comment.