UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

42 lines (41 loc) 1.43 kB
import * as React from 'react'; import { Omit } from '../_utils/types'; export interface NumberKeyboardProps { prefixCls?: string; className?: string; style?: React.CSSProperties; show: boolean; theme?: string; header?: () => React.ReactElement; transition?: boolean; zIndex?: number; input: (value: string) => void; delete: () => void; confirm?: () => void; } export default class NumberKeyboard extends React.PureComponent<NumberKeyboardProps, any> { static defaultProps: { prefixCls: string; style: {}; show: boolean; theme: string; transition: boolean; zIndex: number; input: () => void; delete: () => void; confirm: () => void; }; constructor(props: NumberKeyboardProps); onKeyboardClick: (e: React.MouseEvent<HTMLTableDataCellElement, MouseEvent>, value?: string) => null | undefined; renderKeyboardItem: (item: string, index: number) => JSX.Element; renderDefault(): React.ReactNode; renderCustom(): React.ReactNode; render(): JSX.Element; } export declare type HTMLTableDataProps = Omit<React.HTMLProps<HTMLTableDataCellElement>, 'onClick'>; export interface KeyboardItemProps extends HTMLTableDataProps { prefixCls?: string; className?: string; style?: React.CSSProperties; onClick: (event: React.MouseEvent<HTMLTableDataCellElement>, value: string) => void; }