Skip to content

Commit

Permalink
add: radio增加label插槽
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Dec 9, 2024
1 parent 9c50b06 commit 8a38211
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/uni_modules/uview-plus/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 3.3.51(2024-12-09)
add: radio增加label插槽
## 3.3.50(2024-12-05)
fix: 优化popup等对禁止背景滚动机制

Expand Down
21 changes: 12 additions & 9 deletions src/uni_modules/uview-plus/components/u-radio/u-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/uni_modules/uview-plus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "uview-plus",
"name": "uview-plus",
"displayName": "uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
"version": "3.3.50",
"version": "3.3.51",
"description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"keywords": [
"uview",
Expand Down

0 comments on commit 8a38211

Please sign in to comment.