Skip to content

Commit

Permalink
feat(core): edit radio-group 调整 radio-group 组件
Browse files Browse the repository at this point in the history
  • Loading branch information
ephemeras246 committed May 16, 2024
1 parent e392740 commit 8995d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/components/radio-group/examples/usage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"options": [
{ "label": "option1", "value": "1" },
{ "label": "option2", "value": "2" },
{ "label": "option3", "value": "3" },
{ "label": "option4", "value": "4" }
{ "label": "option3", "value": "3" }
]
}
3 changes: 3 additions & 0 deletions packages/core/src/components/radio-group/radio-group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
:size="size"
:type="type"
:shape="shape"
:cancelable="clearable"
:content="item.label"
v-bind="radioProps ?? {}"
:value="radioGroupValue === item.value"
:checked="radioGroupValue === item.value"
@change="checked => handleItemChange(checked, item.value)"
/>
<div
Expand Down Expand Up @@ -64,6 +66,7 @@ const props = withDefaults(
options: () => []
}
)
defineEmits<Emits & WithValueEmits<string | number>>()
defineSlots<Slots>()
Expand Down

0 comments on commit 8995d1b

Please sign in to comment.