Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix: input can accept number type
Browse files Browse the repository at this point in the history
  • Loading branch information
codebender828 committed Mar 14, 2023
1 parent 534bb08 commit d5451ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/c-input/src/c-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface CInputProps
export const CInput = defineComponent({
name: "CInput",
props: {
modelValue: String as PropType<string>,
modelValue: [String, Number] as PropType<string | number>,
...formControlProps,
focusBorderColor: SAO as PropType<CInputProps["focusBorderColor"]>,
isFullWidth: [Boolean, Array] as PropType<CInputProps["isFullWidth"]>,
Expand Down

0 comments on commit d5451ff

Please sign in to comment.