import { default as React } from 'react'; import { ButtonProps as AntButtonProps } from 'antd'; import { BaseComponentProps } from '../../types/common'; /** * AndButton Props 接口 */ export interface AndButtonProps extends Omit, BaseComponentProps { /** 按钮显示文本 */ text?: string; /** 鼠标滑过按钮时显示的文字提示 */ tooltip?: string; /** 图标名称,对应 @ant-design/icons 中的图标 */ iconName?: string; /** 点击动作字符串,如 "submit"、"handleClick(@id)" 或 "moveUp(@index)"(迭代器内可用 @index/@dataSet/@dataSetField) */ clickAction?: string; /** 是否阻止点击冒泡;未设置时,若存在 clickAction 则默认 true,避免外层行/容器 onClick 覆盖子区域动作 */ stopClickPropagation?: boolean; /** 自定义点击处理函数 */ onClick?: (e: React.MouseEvent) => void; /** 迭代器内传入的当前索引,供 clickAction 中 @index 解析 */ index?: number; /** 迭代器内传入的 dataSet,供 clickAction 中 @dataSet 解析 */ dataSet?: string; /** 迭代器内传入的 dataSetField,供 clickAction 中 @dataSetField 解析 */ dataSetField?: string; /** Design Token */ token?: Record; } /** * AndButton 组件 * 封装 Ant Design Button,支持动态图标和动作解析 */ export declare const AndButton: React.FC; export default AndButton; //# sourceMappingURL=index.d.ts.map