Skip to content

Commit

Permalink
fix(Progress): fix label slot duplication (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Aug 19, 2024
1 parent 9c8d535 commit 0d31830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/progress/progress.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<view wx:if="{{label && computedProgress > 10}}" class="{{classPrefix }}__info {{prefix}}-class-label">
<text>{{ _.isString(label)? label: computedProgress + '%' }}</text>
</view>
<slot name="label" />
<slot wx:if="{{computedProgress > 10}}" name="label" />
</view>
<view
wx:if="{{label && computedProgress <= 10}}"
Expand All @@ -61,7 +61,7 @@
>
<text>{{ _.isString(label)? label: computedProgress + '%' }}</text>
</view>
<slot name="label" />
<slot wx:if="{{computedProgress <= 10}}" name="label" />
</view>

<view
Expand Down

0 comments on commit 0d31830

Please sign in to comment.