UNPKG

mobile-more

Version:

基于 antd-mobile v5 扩展移动端 UI 组件

30 lines (29 loc) 1.32 kB
import * as React from 'react'; import { BizFormItemProps } from '../FormItem'; import { SuperInputProps, InputRef } from './SuperInput'; export type { InputRef }; export interface BizFormItemInputProps extends Omit<BizFormItemProps, 'children'>, Pick<SuperInputProps, 'clearable' | 'placeholder' | 'type' | 'maxLength' | 'max' | 'min' | 'precision' | 'disabledWhiteSpace' | 'format' | 'useFloor' | 'readOnly'> { /** * @description 内置校验宽松模式。仅在 `type=bankCard|idCard` 时生效。 * @default false */ loose?: boolean; /** * @description 透传 Input 组件属性。 * @see {@link https://mobile.ant.design/zh/components/input#属性|InputProps} */ inputProps?: SuperInputProps; /** * @description 是否显示密码切换显示按钮。仅在 `type=password` 时生效。 * @default true */ visibilityToggle?: boolean; /** * @description 自定义密码切换显示按钮。仅在 `type=password` 时生效。 * @param visibilityPassword 是否显示密码切换按钮。 * @returns */ iconRender?: (visibilityPassword: boolean) => React.ReactNode; } declare const BizFormItemInput: React.ForwardRefExoticComponent<BizFormItemInputProps & React.RefAttributes<InputRef>>; export default BizFormItemInput;