import React, { KeyboardEvent } from 'react'; import './index.scss'; interface NumberPropsI { value?: string; onChange: (val: string) => string; className?: string; style?: object; width: number; align: 'left' | 'right'; placeholder: string; onFocus: () => void; onBlur: () => void; onEnter: (value: any, e: KeyboardEvent) => void; min: number; max: number; format: (value: any) => any; onCorrect?: (currentValue: string, oldValue: string) => void; } /** * * @param props * @returns * 格式化顺序和优先级 * 1、通用格式化 --- 会先做简单的格式处理,过滤一些非数字信息或者写法不正确的情况 * 2、自定义格式化 --- 优先级是 format 》 min|max */ export default function Number(props: NumberPropsI): React.JSX.Element; export {};