/// import { SparkButtonProps } from '../Button'; export interface SparkEmptyProps { /** * @description 空状态类型 * @descriptionEn type of the empty * @default 'noData' */ type?: 'noData' | 'networkError' | '404' | 'arrears' | 'desktopOnly' | 'noAudio' | 'noImage' | 'noVideo' | 'noAccess' | 'error' | 'noChat' | 'noModel' | 'noApp' | 'success' | 'failed' | 'inProgress' | 'stayTuned'; /** * @description 是否显示纹理 * @descriptionEn whether to show texture * @default true */ texture?: boolean; /** * @description 图片地址 * @descriptionEn image url * @default 默认是no data的图片 */ image?: string; /** * @description 图片样式 * @descriptionEn image style */ imageStyle?: React.CSSProperties; /** * @description 标题内容 * @descriptionEn title content */ title?: React.ReactNode; /** * @description 自定义描述内容 * @descriptionEn custom description content */ description?: React.ReactNode; /** * @description ok按钮的点击事件 * @descriptionEn ok button click event */ onOk?: (e: React.MouseEvent) => void; /** * @description ok按钮的文本 * @descriptionEn ok button text */ okText?: React.ReactNode; /** * @description ok按钮的类型 * @descriptionEn ok button type * @default 'primary' */ okType?: SparkButtonProps['type']; /** * @description ok按钮的props * @descriptionEn ok button props */ okButtonProps?: SparkButtonProps; /** * @description 自定义空状态的内容 * @descriptionEn custom empty content */ children?: React.ReactNode; /** * @description 自定义空状态的类名 * @descriptionEn custom empty class name */ className?: string; /** * @description 自定义空状态的样式 * @descriptionEn custom empty style */ style?: React.CSSProperties; /** * @description 自定义空状态的大小 * @descriptionEn custom empty size */ size?: React.CSSProperties['width']; /** * @description 是否自适应容器宽度,当容器宽度小于 size 时自动缩放 * @descriptionEn whether to auto fit the container width, auto scale when container width is less than size * @default false */ autoFit?: boolean; } declare const Empty: (props: SparkEmptyProps) => import("react/jsx-runtime").JSX.Element; export default Empty;