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
2025-03-03 15:28:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7033c4ce327ca8b2d8c6d4477b34ce728ca6910f
7033c4ce
1 parent
fac0ebda
fix
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
src/components/CheckboxField/index.vue
src/components/GenderField/index.vue
src/components/RadioField/index.vue
src/components/CheckboxField/index.vue
View file @
7033c4c
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-0
2-25 15:41:38
* @LastEditTime: 2025-0
3-03 15:27:44
* @FilePath: /data-table/src/components/CheckboxField/index.vue
* @Description: 多项选择控件
-->
...
...
@@ -31,7 +31,7 @@
<van-checkbox @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square"
:checked-color="themeVars.radioColor">
<template #default>
<
span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span
>
<
div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div
>
</template>
</van-checkbox>
</van-config-provider>
...
...
src/components/GenderField/index.vue
View file @
7033c4c
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-03 15:
03:48
* @LastEditTime: 2025-03-03 15:
27:53
* @FilePath: /data-table/src/components/GenderField/index.vue
* @Description: 性别选择控件
-->
...
...
@@ -32,7 +32,7 @@
<van-config-provider :theme-vars="{ radioLabelColor: x.color }">
<van-radio :name="x.value" icon-size="1rem" :checked-color="themeVars.radioColor" style="margin-bottom: 0rem">
<template #default>
<
span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span
>
<
div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div
>
</template>
</van-radio>
</van-config-provider>
...
...
src/components/RadioField/index.vue
View file @
7033c4c
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-0
2-25 15:17:2
8
* @LastEditTime: 2025-0
3-03 15:27:5
8
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 单项选择控件
-->
...
...
@@ -31,7 +31,7 @@
:checked-color="themeVars.radioColor"
>
<template #default>
<
span :style="{ backgroundColor: x.background_color || '', padding: '0.25rem', borderRadius: '0.25rem' }">{{ x.title }}</span
>
<
div :style="{ backgroundColor: x.background_color || '', padding: '0.15rem 0.5rem', borderRadius: '0.25rem' }">{{ x.title }}</div
>
</template>
</van-radio>
</van-config-provider>
...
...
Please
register
or
login
to post a comment