From 41970a6f86048a6736d95058ef534d5a525a98ec Mon Sep 17 00:00:00 2001 From: Limichange Date: Tue, 4 Sep 2018 10:48:30 +0800 Subject: [PATCH] fix(types): AtInputProps --- @types/input.d.ts | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/@types/input.d.ts b/@types/input.d.ts index 1d679417b..6da5a0317 100644 --- a/@types/input.d.ts +++ b/@types/input.d.ts @@ -5,45 +5,45 @@ declare type InputValue = string | number declare type InputFunction = (value: string | number, event: BaseEvent) => void export interface AtInputProps { - name: string + name?: string - title: string + title?: string - type: string + type?: string - error: boolean + error?: boolean - clear: boolean + clear?: boolean - border: boolean + border?: boolean - disabled: boolean + disabled?: boolean - maxlength: number + maxlength?: number - value: InputValue + value?: InputValue - placeholder: string + placeholder?: string - editable: boolean + editable?: boolean - confirmType: string + confirmType?: string - cursorSpacing: number + cursorSpacing?: number - backgroundColor: string + backgroundColor?: string - autoFocus: boolean + autoFocus?: boolean - onBlur: InputFunction + onBlur?: InputFunction - onFocus: InputFunction + onFocus?: InputFunction - onChange: InputFunction + onChange?: InputFunction - onConfirm: InputFunction + onConfirm?: InputFunction - onErrorClick: BaseEventFunction + onErrorClick?: BaseEventFunction } declare const AtInput: ComponentClass