From 309cc3fe6303d8464951063e89fc9d623915501e Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 10 三月 2025 16:23:35 +0800
Subject: [PATCH] -
---
src/uni_modules/uview-plus/components/u-checkbox/u-checkbox.vue | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/uni_modules/uview-plus/components/u-checkbox/u-checkbox.vue b/src/uni_modules/uview-plus/components/u-checkbox/u-checkbox.vue
index fa1b88b..adc3945 100644
--- a/src/uni_modules/uview-plus/components/u-checkbox/u-checkbox.vue
+++ b/src/uni_modules/uview-plus/components/u-checkbox/u-checkbox.vue
@@ -11,7 +11,7 @@
:class="iconClasses"
:style="[iconWrapStyle]"
>
- <slot name="icon">
+ <slot name="icon" :elIconSize="elIconSize" :elIconColor="elIconColor">
<u-icon
class="u-checkbox__icon-wrap__icon"
name="checkbox-mark"
@@ -20,16 +20,17 @@
/>
</slot>
</view>
- <slot name="label" :label="label" :elDisabled="elDisabled">
- <text
- @tap.stop="labelClickHandler"
- :style="{
- color: elDisabled ? elInactiveColor : elLabelColor,
- fontSize: elLabelSize,
- lineHeight: elLabelSize
- }"
- >{{label}}</text>
- </slot>
+ <view class="u-checkbox__label-wrap cursor-pointer" @tap.stop="labelClickHandler">
+ <slot name="label" :label="label" :elDisabled="elDisabled">
+ <text
+ :style="{
+ color: elDisabled ? elInactiveColor : elLabelColor,
+ fontSize: elLabelSize,
+ lineHeight: elLabelSize
+ }"
+ >{{label}}</text>
+ </slot>
+ </view>
</view>
</template>
--
Gitblit v1.9.1