import { FC, MouseEvent, ReactNode } from "react"; import { XHComponentCommonProps } from "../../types"; export declare type NumberKeyboardProps = { show: boolean; /** * 是否支持小数,小数保留小数点后两位,默认不支持 */ decimal?: boolean; showClose?: boolean; closeOnClickSpace?: boolean; maxLength?: number; onBlur?: (e: MouseEvent | Event) => void; onClose?: (e: MouseEvent | Event) => void; onChange?: (value: string) => void; value: string; header?: ReactNode; /** * * @param value 输入值 * @param recommend 是否是点击推荐金额触发 * @returns void */ onConfirm?: (value: string, recommend?: boolean) => void; recommend?: Array; tip?: ReactNode; disabled?: boolean; dataTrackId?: string; } & XHComponentCommonProps; export declare type KeyType = "number" | "delete" | "string" | "none" | "close"; export interface IKey { text: number | string; value: number | string; type: KeyType; } declare const AmountKeyboard: FC; export default AmountKeyboard;