UNPKG

zarm

Version:

基于 React 的移动端UI库

18 lines (17 loc) 474 B
import * as React from 'react'; export interface KeyBoardKey { value?: string | number; text?: React.ReactNode; rowSpan?: number; colSpan?: number; disabled?: boolean; } export interface KeyBoardDataSource { columns?: number; keys?: KeyBoardKey['text'][] | KeyBoardKey[]; } export interface BaseKeyBoardProps { type?: 'number' | 'price' | 'idcard'; onKeyClick?: (key: KeyBoardKey['value']) => void; dataSource?: KeyBoardDataSource; }