import React from 'react'; import XBaseDisplay, { XBaseDisplayProps } from "../base/XBaseDisplay"; import { Avatar } from "antd"; import { AvatarProps } from 'antd/lib'; export interface XAvatarProps extends XBaseDisplayProps { /** * 头像地址 * @defaultValue undefined */ src?: string; /** * 点击事件 */ onClick?: any; /** * img alt */ alt?: string; avatarProps?: AvatarProps; } /** * 显示一个或者一组头像,圆的那种 * @name 头像组件 * @groupName 图像 */ export default class XAvatar extends XBaseDisplay { static ComponentName: string; static Avatar: typeof Avatar; static Group: typeof Avatar.Group; static defaultProps: { isAvatar: boolean; src: any; imageWidth: string; imageHeight: string; preview: boolean; onClick: any; alt: any; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: any); componentDidMount(): void; useStateSRC: boolean; /** * 获取src */ GetSrc(): any; /** * 设置 src * @param src */ SetSrc(src: any): void; Refresh(filter?: object, isnew?: boolean): Promise; renderDisplay(): React.JSX.Element; }