Skip to content

Commit

Permalink
fix(ui/checkbox, radio): fix prop types
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Oct 17, 2021
1 parent d08a718 commit 219cab8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/varlet-ui/src/checkbox/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ export type ValidateTriggers = 'onChange'

export const props = {
modelValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: false,
},
checkedValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: true,
},
uncheckedValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: false,
},
checkedColor: {
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/radio-group/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function directionValidator(direction: string) {

export const props = {
modelValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: undefined,
},
direction: {
Expand Down
3 changes: 3 additions & 0 deletions packages/varlet-ui/src/radio/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ export type ValidateTriggers = 'onChange'

export const props = {
modelValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: false,
},
checkedValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: true,
},
uncheckedValue: {
type: [String, Number, Boolean, Object, Array] as PropType<any>,
default: false,
},
disabled: {
Expand Down

0 comments on commit 219cab8

Please sign in to comment.