UNPKG

mobile-more

Version:

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

41 lines (40 loc) 1.32 kB
import { RadioGroupProps, RadioProps, SpaceProps } from 'antd-mobile'; import * as React from 'react'; import { BizFormItemProps } from './FormItem'; type Option = { label?: React.ReactNode; value?: RadioProps['value']; disabled?: boolean; [key: string]: any; }; export interface BizFormItemRadioProps extends Omit<BizFormItemProps, 'children'>, Pick<RadioProps, 'block' | 'icon'> { /** * @description 可选项。 */ options: Option[]; /** * @description 自定义 `label` `value` `disabled` 字段名。 */ fieldNames?: { label?: string; value?: string; disabled?: string; }; /** * @description 透传 Space 组件属性。 * @see {@link https://mobile.ant.design/zh/components/space#属性|SpaceProps} */ spaceProps?: SpaceProps; /** * @description 透传 Radio 组件属性。 * @see {@link https://mobile.ant.design/zh/components/radio#radio|RadioProps} */ radioProps?: RadioProps; /** * @description 透传 Radio.Group 组件属性。 * @see {@link https://mobile.ant.design/zh/components/radio#radiogroup|RadioGroupProps} */ radioGroupProps?: RadioGroupProps; } declare const BizFormItemRadio: React.FC<BizFormItemRadioProps>; export default BizFormItemRadio;