Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-08-30 14:29:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
925f91e3b82bce38e472a7a8fac08d4415b3d767
925f91e3
1 parent
36ef74fd
fix 组件字段调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/components/CheckboxField/index.vue
src/components/RadioField/index.vue
src/components/CheckboxField/index.vue
View file @
925f91e
<!--
* @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>
...
...
src/components/RadioField/index.vue
View file @
925f91e
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-08-30 1
1:42:03
* @LastEditTime: 2022-08-30 1
3: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>
...
...
Please
register
or
login
to post a comment