Browse Source
* 增加AvatarList d.ts说明文件 * 修改 axis的链接 , g2修改了新的官网 * AvatarList 增加判断是否为必须属性 * 删除无用的空行. 优化格式pull/310/head
committed by
偏右
2 changed files with 23 additions and 2 deletions
@ -0,0 +1,21 @@ |
|||||
|
import React from "react"; |
||||
|
export interface AvatarItemProps { |
||||
|
tips: string | React.ReactNode; |
||||
|
src: string; |
||||
|
} |
||||
|
|
||||
|
export interface AvatarListProps { |
||||
|
size?: "large" | "small" | "mini" | "default"; |
||||
|
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; |
||||
|
} |
||||
Loading…
Reference in new issue