@molejs/mole-components-web
Version:
React组件库
30 lines (29 loc) • 1.14 kB
TypeScript
import React from 'react';
import { Omit } from '../_util/types';
export declare type HTMLTableDataProps = Omit<React.HTMLProps<HTMLTableDataCellElement>, 'onClick'>;
export interface KeyboardItemProps extends HTMLTableDataProps {
prefixCls?: string;
tdRef?: React.Ref<HTMLTableDataCellElement>;
onClick: (event: React.MouseEvent<HTMLTableDataCellElement>, value: string) => void;
}
export declare class KeyboardItem extends React.Component<KeyboardItemProps, any> {
static defaultProps: {
prefixCls: string;
onClick: () => void;
disabled: boolean;
};
render(): JSX.Element;
}
declare class CustomKeyboard extends React.Component<any, any> {
static defaultProps: {
prefixCls: string;
};
linkedInput: any;
antmKeyboard: HTMLDivElement | null;
confirmDisabled: boolean;
confirmKeyboardItem: HTMLTableDataCellElement | null;
onKeyboardClick: (e: React.MouseEvent<HTMLTableDataCellElement>, value: string) => null | undefined;
renderKeyboardItem: (item: string, index: number) => JSX.Element;
render(): JSX.Element;
}
export default CustomKeyboard;