Skip to content

Commit

Permalink
fix(Checkbox): mapping value (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
uxuip authored Dec 8, 2023
1 parent 40772c2 commit 82895d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ const CheckboxGroup = connect(
})
)

export const Checkbox = composeExport(connect(CheckboxOption), {
const InnerCheckbox = connect(CheckboxOption, mapProps({
value: 'modelValue',
}))

export const Checkbox = composeExport(InnerCheckbox, {
Group: CheckboxGroup,
})

Expand Down

0 comments on commit 82895d8

Please sign in to comment.