import { default as React } from 'react'; import { CheckboxProps as AntCheckboxProps } from 'antd'; import { BaseComponentProps, DataSetConfig, ValidationDisplayConfig } from '../../types/common'; interface CheckboxOption { label: string; value: string | number; disabled?: boolean; } interface OptionsCfg { url?: string; codeKey?: string; labelKey?: string; } /** * AndCheckbox Props 接口 */ export interface AndCheckboxProps extends Omit, BaseComponentProps, DataSetConfig, ValidationDisplayConfig { /** 选项列表 (用于多选模式) */ options?: CheckboxOption[]; /** 远程选项配置 */ optionsCfg?: OptionsCfg; /** 是否为多选模式 */ multiple?: boolean; /** 变更动作 */ changeAction?: string; /** 校验规则 */ rules?: any[]; /** 失焦时校验 */ validateOnBlur?: boolean; /** 修改时校验 */ validateOnChange?: boolean; /** 自定义变更处理函数 (多选) */ onChangeMultiple?: (values: (string | number)[]) => void; /** 自定义变更处理函数 (单选) */ onChange?: (checked: boolean) => void; /** 多选值 */ values?: (string | number)[]; /** 字典编码 */ dictCode?: string; /** 远程数据URL(自定义属性) */ remoteUrl?: string; /** 排列方向 */ direction?: 'horizontal' | 'vertical'; /** 迭代器内当前行序号,供 propsStore 隔离与动作参数使用 */ index?: number; } /** * AndCheckbox 组件 * 封装 Ant Design Checkbox,支持单选和多选模式 */ export declare const AndCheckbox: React.FC; export default AndCheckbox; //# sourceMappingURL=index.d.ts.map