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

Commit d5451ff

Browse files
committed
fix: input can accept number type
1 parent 534bb08 commit d5451ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/c-input/src/c-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface CInputProps
6969
export const CInput = defineComponent({
7070
name: "CInput",
7171
props: {
72-
modelValue: String as PropType<string>,
72+
modelValue: [String, Number] as PropType<string | number>,
7373
...formControlProps,
7474
focusBorderColor: SAO as PropType<CInputProps["focusBorderColor"]>,
7575
isFullWidth: [Boolean, Array] as PropType<CInputProps["isFullWidth"]>,

0 commit comments

Comments
 (0)