props.d.ts 736 B

123456789101112131415161718192021222324
  1. import { IBaseProps } from '../_util/base';
  2. /**
  3. * @description 头像,可展示头像以及用户名等简要信息。
  4. */
  5. export interface IAvatarProps extends IBaseProps {
  6. /**
  7. * @description 尺寸,x-small(80*80) small(88*88) medium(104*104) large(120*120)
  8. * @default "medium"
  9. */
  10. size: 'x-small' | 'small' | 'medium' | 'large';
  11. /**
  12. * @description 头像地址,默认为灰色的内置图片
  13. */
  14. src: string;
  15. /**
  16. * @description 第一行信息
  17. */
  18. name: string;
  19. /**
  20. * @description 第二行补充信息,当 name 不存在时,不显示;当 size=x-small,不显示
  21. */
  22. desc: string;
  23. }
  24. export declare const AvatarDefaultProps: Partial<IAvatarProps>;