index.d.ts 623 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1
import * as React from "react";
jim chen's avatar
jim chen committed
2
export interface AvatarItemProps {
3
  tips: React.ReactNode;
jim chen's avatar
jim chen committed
4
  src: string;
jim's avatar
jim committed
5
  style?: React.CSSProperties;
jim chen's avatar
jim chen committed
6 7 8 9
}

export interface AvatarListProps {
  size?: "large" | "small" | "mini" | "default";
jim's avatar
jim committed
10
  style?: React.CSSProperties;
jim chen's avatar
jim chen committed
11 12 13 14 15 16 17 18 19 20 21 22 23
  children:
    | React.ReactElement<AvatarItem>
    | Array<React.ReactElement<AvatarItem>>;
}

declare class AvatarItem extends React.Component<AvatarItemProps, any> {
  constructor(props: AvatarItemProps);
}

export default class AvatarList extends React.Component<AvatarListProps, any> {
  constructor(props: AvatarListProps);
  static Item: typeof AvatarItem;
}