Skip to content

Commit

Permalink
fix(Rate): fixed gap unit error (#3259)
Browse files Browse the repository at this point in the history
* fix(Rate): fixed gap unit error

* fix(Rate): fixed gap unit error
  • Loading branch information
jarmywang authored Nov 8, 2024
1 parent 55bfcf0 commit e4bc5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rate/rate.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
wx:for="{{ count }}"
wx:key="*this"
class="{{classPrefix }}__icon {{utils.getIconClass(classPrefix + '__icon', defaultValue, value, index, allowHalf, disabled, scaleIndex)}}"
style="margin-right:{{ count - index > 1 ? gap : 0 }}px; {{utils.getColor(color)}}"
style="margin-right: {{ count - index > 1 ? _.addUnit(gap) : 0 }}; {{utils.getColor(color)}}"
t-class="{{prefix}}-class-icon"
name="{{utils.getIconName(defaultValue, value, index, icon)}}"
size="{{ size }}"
Expand Down

0 comments on commit e4bc5d1

Please sign in to comment.