Skip to content

Commit

Permalink
feat(Input): support number type as placeholder, close #988
Browse files Browse the repository at this point in the history
  • Loading branch information
Javey committed Apr 12, 2024
1 parent d0d063d commit 019a601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface InputProps<V extends Value = Value> extends InputHTMLAttributes
type?: HTMLInputTypes
value?: V
defaultValue?: string | number
placeholder?: string
placeholder?: string | number
readonly?: boolean
clearable?: boolean
disabled?: boolean
Expand Down Expand Up @@ -98,7 +98,7 @@ const typeDefs: Required<TypeDefs<Omit<InputProps, keyof InputHTMLAttributes>>>
type: String,
value: [String, Number],
defaultValue: [String, Number],
placeholder: String,
placeholder: [String, Number],
readonly: Boolean,
clearable: Boolean,
disabled: Boolean,
Expand Down

0 comments on commit 019a601

Please sign in to comment.