Browse Source
* 增加AvatarList d.ts说明文件 * 修改 axis的链接 , g2修改了新的官网 * AvatarList 增加判断是否为必须属性 * 删除无用的空行. 优化格式 * 修改错误的图表文档. 增加几处漏写的文档 * 添加图表的 描述文件chart.d.ts * 改了个错别字! * 增加CountDown d.ts描述文件 * 增加 DescriptionList d.ts描述文件 * 增加所有剩余对外开发的组件 .d.ts 完善一些文档 * fontWeight 推荐使用 number 来表示数字pull/309/merge
committed by
偏右
16 changed files with 167 additions and 5 deletions
@ -0,0 +1,11 @@ |
|||||
|
import React from "react"; |
||||
|
export interface ExceptionProps { |
||||
|
type?: "403" | "404" | "500"; |
||||
|
title?: React.ReactNode; |
||||
|
desc?: React.ReactNode; |
||||
|
img?: string; |
||||
|
actions?: React.ReactNode; |
||||
|
linkElement?: string | React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export default class Exception extends React.Component<ExceptionProps, any> {} |
||||
@ -0,0 +1,9 @@ |
|||||
|
import React from "react"; |
||||
|
export interface FooterToolbarProps { |
||||
|
extra: React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export default class FooterToolbar extends React.Component< |
||||
|
FooterToolbarProps, |
||||
|
any |
||||
|
> {} |
||||
@ -0,0 +1,14 @@ |
|||||
|
import React from "react"; |
||||
|
export interface GlobalFooterProps { |
||||
|
links: Array<{ |
||||
|
title: string | React.ReactNode; |
||||
|
href: string; |
||||
|
blankTarget?: boolean; |
||||
|
}>; |
||||
|
copyright: React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export default class GlobalFooter extends React.Component< |
||||
|
GlobalFooterProps, |
||||
|
any |
||||
|
> {} |
||||
@ -0,0 +1,13 @@ |
|||||
|
import React from "react"; |
||||
|
export interface HeaderSearchProps { |
||||
|
placeholder?: string; |
||||
|
dataSource?: Array<string>; |
||||
|
onSearch?: (value: string) => void; |
||||
|
onChange?: (value: string) => void; |
||||
|
onPressEnter?: (value: string) => void; |
||||
|
} |
||||
|
|
||||
|
export default class HeaderSearch extends React.Component< |
||||
|
HeaderSearchProps, |
||||
|
any |
||||
|
> {} |
||||
@ -0,0 +1,42 @@ |
|||||
|
import React from "react"; |
||||
|
export interface NoticeIconData { |
||||
|
avatar: string; |
||||
|
title: React.ReactNode; |
||||
|
description: React.ReactNode; |
||||
|
datetime: React.ReactNode; |
||||
|
extra: React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export interface NoticeIconProps { |
||||
|
count?: number; |
||||
|
className?: string; |
||||
|
loading?: boolean; |
||||
|
onClear?: (tableTile: string) => void; |
||||
|
onItemClick?: (item: NoticeIconData, tabProps: NoticeIconProps) => void; |
||||
|
onTabChange?: (tableTile: string) => void; |
||||
|
popupAlign?: { |
||||
|
points?: [string, string]; |
||||
|
offset?: [number, number]; |
||||
|
targetOffset?: [number, number]; |
||||
|
overflow?: any; |
||||
|
useCssRight?: boolean; |
||||
|
useCssBottom?: boolean; |
||||
|
useCssTransform?: boolean; |
||||
|
}; |
||||
|
onPopupVisibleChange?: (visible: boolean) => void; |
||||
|
popupVisible?: boolean; |
||||
|
locale?: { emptyText: string; clear: string }; |
||||
|
} |
||||
|
|
||||
|
export interface NoticeIconTabProps { |
||||
|
list: Array<NoticeIconData>; |
||||
|
title: string; |
||||
|
emptyText?: React.ReactNode; |
||||
|
emptyImage?: string; |
||||
|
} |
||||
|
|
||||
|
export class NoticeIconTab extends React.Component<NoticeIconTabProps, any> {} |
||||
|
|
||||
|
export default class NoticeIcon extends React.Component<NoticeIconProps, any> { |
||||
|
static Tab: typeof NoticeIconTab; |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
import React from "react"; |
||||
|
export interface NumberInfoProps { |
||||
|
title: React.ReactNode | string; |
||||
|
subTitle: React.ReactNode | string; |
||||
|
total: React.ReactNode | string; |
||||
|
status: "up" | "down"; |
||||
|
theme: string; |
||||
|
gap: number; |
||||
|
} |
||||
|
|
||||
|
export default class NumberInfo extends React.Component<NumberInfoProps, any> {} |
||||
@ -0,0 +1,16 @@ |
|||||
|
import React from "react"; |
||||
|
export interface PageHeaderProps { |
||||
|
title?: React.ReactNode | string; |
||||
|
logo?: React.ReactNode | string; |
||||
|
action?: React.ReactNode | string; |
||||
|
content?: React.ReactNode; |
||||
|
extraContent?: React.ReactNode; |
||||
|
routes?: Array<any>; |
||||
|
params: any; |
||||
|
breadcrumbList?: Array<{ title: React.ReactNode; href?: string }>; |
||||
|
tabList?: Array<{ key: string; tab: React.ReactNode }>; |
||||
|
onTabChange?: (key: string) => void; |
||||
|
linkElement?: string | React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export default class PageHeader extends React.Component<PageHeaderProps, any> {} |
||||
@ -0,0 +1,10 @@ |
|||||
|
import React from "react"; |
||||
|
export interface ResultProps { |
||||
|
type: "success" | "error"; |
||||
|
title: React.ReactNode; |
||||
|
description?: React.ReactNode; |
||||
|
extra?: React.ReactNode; |
||||
|
actions?: React.ReactNode; |
||||
|
} |
||||
|
|
||||
|
export default class Result extends React.Component<ResultProps, any> {} |
||||
@ -0,0 +1,20 @@ |
|||||
|
import React from "react"; |
||||
|
export interface TagSelectProps { |
||||
|
onChange?: (value: Array<string>) => void; |
||||
|
expandable?: boolean; |
||||
|
} |
||||
|
export interface TagSelectOptionProps { |
||||
|
value: string; |
||||
|
} |
||||
|
|
||||
|
export class TagSelectOption extends React.Component< |
||||
|
TagSelectOptionProps, |
||||
|
any |
||||
|
> {} |
||||
|
|
||||
|
export default class TagSelect extends React.Component<TagSelectProps, any> { |
||||
|
static Option: typeof TagSelectOption; |
||||
|
children: |
||||
|
| React.ReactElement<TagSelectOption> |
||||
|
| Array<React.ReactElement<TagSelectOption>>; |
||||
|
} |
||||
@ -0,0 +1,8 @@ |
|||||
|
import React from "react"; |
||||
|
|
||||
|
export interface TrendProps { |
||||
|
colorful?: boolean; |
||||
|
flag: "up" | "down"; |
||||
|
} |
||||
|
|
||||
|
export default class Trend extends React.Component<TrendProps, any> {} |
||||
Loading…
Reference in new issue