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-11-29 16:20:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af09f1dc894724f1f209b9766995786a3f9adaf6
af09f1dc
1 parent
694f98fd
fix 单选控件新增border样式
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
src/components/RadioField/index.vue
src/components/RadioField/index.vue
View file @
af09f1d
...
...
@@ -13,7 +13,11 @@
</div>
<van-field :name="item.key" :rules="item.rules">
<template #input>
<van-radio-group v-model="item.value" :direction="item.component_props.direction">
<van-radio-group
v-model="item.value"
:direction="item.component_props.direction"
style="width: 100%"
>
<van-radio
v-for="x in item.component_props.options"
:key="index"
...
...
@@ -45,4 +49,11 @@ const props = defineProps({
}
}
}
:deep(.van-radio) {
border: 1px solid #eaeaea;
border-radius: 0.25rem;
padding: 0.25rem 0.5rem;
// width: 100vw;
}
</style>
...
...
Please
register
or
login
to post a comment