import { default as React } from 'react'; import { RadioGroupProps as AntRadioGroupProps } from 'antd'; import { BaseComponentProps, DataSetConfig, ValidationDisplayConfig } from '../../types/common'; interface RadioOption { label: string; value: string | number; disabled?: boolean; } interface OptionsCfg { url?: string; codeKey?: string; labelKey?: string; } /** * AndRadio Props 接口 */ export interface AndRadioProps extends Omit, BaseComponentProps, DataSetConfig, ValidationDisplayConfig { /** 选项列表 */ options?: RadioOption[]; /** 远程选项配置 */ optionsCfg?: OptionsCfg; /** 变更动作 */ changeAction?: string; /** 是否使用按钮样式 */ buttonStyle?: 'outline' | 'solid'; /** 是否使用按钮模式 */ optionType?: 'default' | 'button'; /** 校验规则 */ rules?: any[]; /** 失焦时校验 */ validateOnBlur?: boolean; /** 修改时校验 */ validateOnChange?: boolean; /** 自定义变更处理函数 */ onChange?: (value: any) => void; /** 字典编码 */ dictCode?: string; /** 远程数据URL(自定义属性) */ remoteUrl?: string; /** 排列方向 */ direction?: 'horizontal' | 'vertical'; /** 当前未选中时,options 有值后是否自动选中第一个 */ autoSelectFirst?: boolean; /** 迭代器内当前行序号,供 propsStore 隔离与动作参数使用 */ index?: number; } /** * AndRadio 组件 * 封装 Ant Design Radio.Group,支持数据绑定和动作解析 */ export declare const AndRadio: React.FC; export default AndRadio; //# sourceMappingURL=index.d.ts.map