Showing
2 changed files
with
5 additions
and
4 deletions
| 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: 2022-08-30 13:29:43 | 4 | + * @LastEditTime: 2022-08-30 13:54:02 |
| 5 | * @FilePath: /data-table/src/components/CheckboxField/index.vue | 5 | * @FilePath: /data-table/src/components/CheckboxField/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
| 11 | <van-field :name="item.key"> | 11 | <van-field :name="item.key"> |
| 12 | <template #input> | 12 | <template #input> |
| 13 | <van-checkbox-group v-model="item.value"> | 13 | <van-checkbox-group v-model="item.value"> |
| 14 | - <van-checkbox v-for="x in item.sub" :key="index" :name="x.key" icon-size="1rem" shape="square" | 14 | + <van-checkbox v-for="x in item.options" :key="index" :name="x.key" icon-size="1rem" shape="square" |
| 15 | style="margin-bottom: 0.25rem;">{{ x.value }}</van-checkbox> | 15 | style="margin-bottom: 0.25rem;">{{ x.value }}</van-checkbox> |
| 16 | </van-checkbox-group> | 16 | </van-checkbox-group> |
| 17 | </template> | 17 | </template> | ... | ... |
| 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: 2022-08-30 11:42:03 | 4 | + * @LastEditTime: 2022-08-30 13:54:06 |
| 5 | * @FilePath: /data-table/src/components/RadioField/index.vue | 5 | * @FilePath: /data-table/src/components/RadioField/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -11,7 +11,8 @@ | ... | @@ -11,7 +11,8 @@ |
| 11 | <van-field :name="item.key"> | 11 | <van-field :name="item.key"> |
| 12 | <template #input> | 12 | <template #input> |
| 13 | <van-radio-group v-model="item.value"> | 13 | <van-radio-group v-model="item.value"> |
| 14 | - <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> | 14 | + <van-radio v-for="x in item.options" :key="index" :name="x.key" icon-size="1rem" |
| 15 | + style="margin-bottom: 0.25rem;">{{ x.value }}</van-radio> | ||
| 15 | </van-radio-group> | 16 | </van-radio-group> |
| 16 | </template> | 17 | </template> |
| 17 | </van-field> | 18 | </van-field> | ... | ... |
-
Please register or login to post a comment