Skip to content

Commit

Permalink
body:radio增加一个默认插槽用于自定义修改label内容 (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikai authored Sep 24, 2022
1 parent 71e897c commit 7c2c4f5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions uni_modules/uview-ui/components/u-radio/u-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
/>
</slot>
</view>
<text
class="u-radio__text"
@tap.stop="labelClickHandler"
:style="{
color: elDisabled ? elInactiveColor : elLabelColor,
fontSize: elLabelSize,
lineHeight: elLabelSize
}"
>{{label}}</text>
<slot>
<text
class="u-radio__text"
@tap.stop="labelClickHandler"
:style="{
color: elDisabled ? elInactiveColor : elLabelColor,
fontSize: elLabelSize,
lineHeight: elLabelSize
}"
>{{label}}</text>
</slot>
</view>
</template>

Expand Down

0 comments on commit 7c2c4f5

Please sign in to comment.