From 019a60119ac50b173cb9f2491bcc94a092ed6cf9 Mon Sep 17 00:00:00 2001 From: Javey Date: Fri, 12 Apr 2024 16:16:16 +0800 Subject: [PATCH] feat(Input): support number type as placeholder, close #988 --- components/input/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/input/index.ts b/components/input/index.ts index 9bce83794..b30b397ad 100644 --- a/components/input/index.ts +++ b/components/input/index.ts @@ -56,7 +56,7 @@ export interface InputProps extends InputHTMLAttributes type?: HTMLInputTypes value?: V defaultValue?: string | number - placeholder?: string + placeholder?: string | number readonly?: boolean clearable?: boolean disabled?: boolean @@ -98,7 +98,7 @@ const typeDefs: Required>> type: String, value: [String, Number], defaultValue: [String, Number], - placeholder: String, + placeholder: [String, Number], readonly: Boolean, clearable: Boolean, disabled: Boolean,