import { default as React } from 'react'; import { TextProps } from 'antd/es/typography/Text'; import { FormatType, FormatOptions } from '../../utils/ReactFormatter'; import { BaseComponentProps, DataSetConfig } from '../../types/common'; /** * AndText Props 接口 */ export interface AndTextProps extends TextProps, BaseComponentProps, DataSetConfig { /** 文本内容 */ content?: string; /** * 迭代器 / Masonry 单元下标:参与 clickAction 占位解析;与 DataSetInheritContext 一并传入 * `deriveScopedComponentId`,与 AndRadio 及 Extend `setProps` 键一致。 */ index?: number; /** 点击动作 */ clickAction?: string; /** 是否阻止点击冒泡;未设置时,若存在 clickAction 则默认 true,避免外层行/容器 onClick 覆盖子区域动作 */ stopClickPropagation?: boolean; /** 字体大小 */ fontSize?: number | string; /** 字体颜色 */ color?: string; /** 字典编码 - 用于将 value 转换为 label 显示 */ dictCode?: string; /** 格式化类型 */ formatType?: FormatType | string; /** 格式化参数 */ formatValue?: FormatOptions | string; /** 当值为空时是否显示 content 作为缺省值 */ fallbackDisplay?: boolean; /** 组件样式配置 */ styles?: React.CSSProperties; /** Design Token(通过 ConfigProvider theme.token 方式生效) */ token?: Record | string; } /** * AndText 组件 * 封装 Ant Design Typography.Text,支持数据绑定、字典转换和数据格式化 */ export declare const AndText: React.FC; export default AndText; //# sourceMappingURL=index.d.ts.map