From d3e6dd6b3032c119676efa1e9fcee3a8a8043fc5 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 07 三月 2025 13:40:44 +0800
Subject: [PATCH] ‘’
---
src/uni_modules/uview-plus/components/u-radio/u-radio.vue | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/uni_modules/uview-plus/components/u-radio/u-radio.vue b/src/uni_modules/uview-plus/components/u-radio/u-radio.vue
index ef8ce9c..7ce5923 100644
--- a/src/uni_modules/uview-plus/components/u-radio/u-radio.vue
+++ b/src/uni_modules/uview-plus/components/u-radio/u-radio.vue
@@ -11,7 +11,7 @@
:class="iconClasses"
:style="[iconWrapStyle]"
>
- <slot name="icon">
+ <slot name="icon" :elIconSize="elIconSize" :elIconColor="elIconColor">
<u-icon
class="u-radio__icon-wrap__icon"
name="checkbox-mark"
@@ -20,15 +20,18 @@
/>
</slot>
</view>
- <text
- class="u-radio__text"
- @tap.stop="labelClickHandler"
- :style="{
- color: elDisabled ? elInactiveColor : elLabelColor,
- fontSize: elLabelSize,
- lineHeight: elLabelSize
- }"
- >{{label}}</text>
+ <view class="u-radio__label-wrap cursor-pointer" @tap.stop="labelClickHandler">
+ <slot name="label" :label="label" :elDisabled="elDisabled">
+ <text
+ class="u-radio__text"
+ :style="{
+ color: elDisabled ? elInactiveColor : elLabelColor,
+ fontSize: elLabelSize,
+ lineHeight: elLabelSize
+ }"
+ >{{label}}</text>
+ </slot>
+ </view>
</view>
</template>
--
Gitblit v1.9.1