UNPKG

@aplus-frontend/ui

Version:

22 lines (21 loc) 862 B
import { InputNumberProps } from '@aplus-frontend/antdv/es/input-number'; type ApInputProps = Pick<InputNumberProps, 'disabled' | 'stringMode' | 'precision' | 'max' | 'min' | 'step' | 'bordered' | 'autofocus' | 'decimalSeparator' | 'controls' | 'formatter' | 'onInput' | 'onChange' | 'onPressEnter' | 'onStep' | 'onBlur' | 'onFocus'>; export type ApInputValType = { value?: { inputVal: string | number; radioVal: string | number; }; }; export type ApInputRadioOptions = Array<{ value: string | number; label: string; }>; export type ApInputRadioProps = ApInputProps & ApInputValType & { options: ApInputRadioOptions; onInputRadioChange?: (value: { inputVal: string | number; radioVal: string | number; }) => void; setRadioValCallback?: (radioVal: string | number) => string | number; }; export {};