Skip to content

Commit

Permalink
fix: radio disabled style
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Nov 8, 2022
1 parent 67abe27 commit de328f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/view/components/radio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
<uni-radio
:disabled="disabled"
v-on="$listeners"
@click="_onClick"
@click="_onClick"
>
<div class="uni-radio-wrapper">
<div
:class="radioChecked ? 'uni-radio-input-checked' : ''"
:class="{
'uni-radio-input-checked': radioChecked,
'uni-radio-input-disabled': disabled,
}"
:style="radioChecked ? checkedStyle : ''"
class="uni-radio-input"
class="uni-radio-input"
/>
<slot />
</div>
Expand Down

0 comments on commit de328f4

Please sign in to comment.