Skip to content

Commit

Permalink
fix(types): AtInputProps
Browse files Browse the repository at this point in the history
  • Loading branch information
limichange authored Sep 4, 2018
1 parent cc8a9bb commit 41970a6
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions @types/input.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AtInputProps>
Expand Down

0 comments on commit 41970a6

Please sign in to comment.