From 99b7b70cbcdd3e3f69731834212637bdda0e1dc6 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Wed, 23 Mar 2022 16:12:07 +0800 Subject: [PATCH] 修复CSwitchRadio在小程序中显示异常的问题 --- forms/switch/CSwitchRadio.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/forms/switch/CSwitchRadio.vue b/forms/switch/CSwitchRadio.vue index ae626e5..93feb20 100644 --- a/forms/switch/CSwitchRadio.vue +++ b/forms/switch/CSwitchRadio.vue @@ -14,25 +14,25 @@ class="c-switch-radio-item" @tap="evt => handleChange(true)" > - <text + <view class="c-switch-radio-icon" :class="current === true ? 'checked' : ''" > <AtIcon value="check" /> - </text> - <text>{{checkedLabel}}</text> + </view> + <view class="c-switch-radio-label">{{checkedLabel}}</view> </view> <view class="c-switch-radio-item" @tap="evt => handleChange(false)" > - <text + <view class="c-switch-radio-icon" :class="current === false ? 'checked' : ''" > <AtIcon value="check" /> - </text> - <text>{{uncheckedLabel}}</text> + </view> + <view class="c-switch-radio-label">{{uncheckedLabel}}</view> </view> </view> </view> -- Gitblit v1.9.1