hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-02-25 15:41:38 4 + * @LastEditTime: 2025-03-03 15:27:44
5 * @FilePath: /data-table/src/components/CheckboxField/index.vue 5 * @FilePath: /data-table/src/components/CheckboxField/index.vue
6 * @Description: 多项选择控件 6 * @Description: 多项选择控件
7 --> 7 -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 <van-checkbox @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square" 31 <van-checkbox @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square"
32 :checked-color="themeVars.radioColor"> 32 :checked-color="themeVars.radioColor">
33 <template #default> 33 <template #default>
34 - <span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span> 34 + <div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div>
35 </template> 35 </template>
36 </van-checkbox> 36 </van-checkbox>
37 </van-config-provider> 37 </van-config-provider>
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-03-03 15:03:48 4 + * @LastEditTime: 2025-03-03 15:27:53
5 * @FilePath: /data-table/src/components/GenderField/index.vue 5 * @FilePath: /data-table/src/components/GenderField/index.vue
6 * @Description: 性别选择控件 6 * @Description: 性别选择控件
7 --> 7 -->
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
32 <van-config-provider :theme-vars="{ radioLabelColor: x.color }"> 32 <van-config-provider :theme-vars="{ radioLabelColor: x.color }">
33 <van-radio :name="x.value" icon-size="1rem" :checked-color="themeVars.radioColor" style="margin-bottom: 0rem"> 33 <van-radio :name="x.value" icon-size="1rem" :checked-color="themeVars.radioColor" style="margin-bottom: 0rem">
34 <template #default> 34 <template #default>
35 - <span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span> 35 + <div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div>
36 </template> 36 </template>
37 </van-radio> 37 </van-radio>
38 </van-config-provider> 38 </van-config-provider>
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-02-25 15:17:28 4 + * @LastEditTime: 2025-03-03 15:27:58
5 * @FilePath: /data-table/src/components/RadioField/index.vue 5 * @FilePath: /data-table/src/components/RadioField/index.vue
6 * @Description: 单项选择控件 6 * @Description: 单项选择控件
7 --> 7 -->
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 :checked-color="themeVars.radioColor" 31 :checked-color="themeVars.radioColor"
32 > 32 >
33 <template #default> 33 <template #default>
34 - <span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span> 34 + <div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div>
35 </template> 35 </template>
36 </van-radio> 36 </van-radio>
37 </van-config-provider> 37 </van-config-provider>
......