zent
Version:
一套前端设计语言和基于React的实现
30 lines (25 loc) • 675 B
TypeScript
/// <reference types="react" />
declare module 'zent/lib/number-input' {
interface INumberInputProps {
value?: number
onChange?: (e: INumberInputChangeEvent) => any
showStepper?: boolean
decimal?: number
min?: number
max?: number
placeholder?: string
disabled?: boolean
className?: string
prefix?: string
}
interface INumberInputTarget extends INumberInputProps {
type: 'number'
value: number
}
interface INumberInputChangeEvent {
target: INumberInputTarget
preventDefault: Function
stopPropagation: Function
}
export default class NumberInput extends React.Component<INumberInputProps, any> {}
}