hookehuyr

fix 单选控件新增border样式

...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
13 </div> 13 </div>
14 <van-field :name="item.key" :rules="item.rules"> 14 <van-field :name="item.key" :rules="item.rules">
15 <template #input> 15 <template #input>
16 - <van-radio-group v-model="item.value" :direction="item.component_props.direction"> 16 + <van-radio-group
17 + v-model="item.value"
18 + :direction="item.component_props.direction"
19 + style="width: 100%"
20 + >
17 <van-radio 21 <van-radio
18 v-for="x in item.component_props.options" 22 v-for="x in item.component_props.options"
19 :key="index" 23 :key="index"
...@@ -45,4 +49,11 @@ const props = defineProps({ ...@@ -45,4 +49,11 @@ const props = defineProps({
45 } 49 }
46 } 50 }
47 } 51 }
52 +
53 +:deep(.van-radio) {
54 + border: 1px solid #eaeaea;
55 + border-radius: 0.25rem;
56 + padding: 0.25rem 0.5rem;
57 + // width: 100vw;
58 +}
48 </style> 59 </style>
......