import type { Option, PickClassStyleType, ReactPropsBase, SchemaExpression } from 'jamis-core'; import type { FormBaseControlSchema, FormControlProps } from '../types'; export type InputNumberRendererEvent = 'blur' | 'focus' | 'change'; export type InputNumberRendererAction = 'clear'; /** * 数字输入框 * */ export interface NumberControlSchema extends FormBaseControlSchema { type: 'input-number'; /** * 最大值 */ max?: number; maxExpr?: SchemaExpression; /** * 最小值 */ min?: number; minExpr?: SchemaExpression; /** * 步长 */ step?: number; /** * 精度 */ precision?: number; /** * 默认当然是 */ showSteps?: boolean; /** * 边框模式,全边框,还是半边框,或者没边框。 */ borderMode?: 'full' | 'half' | 'none'; /** * 前缀 */ prefix?: string; /** * 后缀 */ suffix?: string; /** * 单位列表 */ unitOptions?: string | Array