hookehuyr

fix 组件字段调整

<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-08-30 13:29:43
* @LastEditTime: 2022-08-30 13:54:02
* @FilePath: /data-table/src/components/CheckboxField/index.vue
* @Description: 文件描述
-->
......@@ -11,7 +11,7 @@
<van-field :name="item.key">
<template #input>
<van-checkbox-group v-model="item.value">
<van-checkbox v-for="x in item.sub" :key="index" :name="x.key" icon-size="1rem" shape="square"
<van-checkbox v-for="x in item.options" :key="index" :name="x.key" icon-size="1rem" shape="square"
style="margin-bottom: 0.25rem;">{{ x.value }}</van-checkbox>
</van-checkbox-group>
</template>
......
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-08-30 11:42:03
* @LastEditTime: 2022-08-30 13:54:06
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 文件描述
-->
......@@ -11,7 +11,8 @@
<van-field :name="item.key">
<template #input>
<van-radio-group v-model="item.value">
<van-radio v-for="x in item.sub" :key="index" :name="x.key" icon-size="1rem" style="margin-bottom: 0.25rem;">{{ x.value }}</van-radio>
<van-radio v-for="x in item.options" :key="index" :name="x.key" icon-size="1rem"
style="margin-bottom: 0.25rem;">{{ x.value }}</van-radio>
</van-radio-group>
</template>
</van-field>
......