Skip to content

Commit

Permalink
fix(Switch): resolved loading state style (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jun 8, 2023
1 parent d6f34fc commit 5794711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch/switch.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
aria-role="switch"
>
<view
class="{{_.cls(classPrefix + '__body', [['checked', checked], ['disabled', disabled], size])}} {{prefix}}-class-body"
class="{{_.cls(classPrefix + '__body', [['checked', checked], ['disabled', disabled || loading], size])}} {{prefix}}-class-body"
>
<view
class="{{_.cls(classPrefix + '__dot', [['checked', checked], ['plain', label.length != 2 && icon.length != 2 && !loading], size])}} {{prefix}}-class-dot"
Expand Down

0 comments on commit 5794711

Please sign in to comment.