31 changed files with 144 additions and 119 deletions
@ -0,0 +1,10 @@ |
|||||
|
import * as React from 'react'; |
||||
|
export interface IAvatarItemProps { |
||||
|
tips: React.ReactNode; |
||||
|
src: string; |
||||
|
style?: React.CSSProperties; |
||||
|
} |
||||
|
|
||||
|
export default class AvatarItem extends React.Component<IAvatarItemProps, any> { |
||||
|
constructor(props: IAvatarItemProps); |
||||
|
} |
||||
@ -1,23 +1,14 @@ |
|||||
import * as React from "react"; |
import * as React from 'react'; |
||||
export interface AvatarItemProps { |
import AvatarItem from './AvatarItem'; |
||||
tips: React.ReactNode; |
|
||||
src: string; |
|
||||
style?: React.CSSProperties; |
|
||||
} |
|
||||
|
|
||||
export interface AvatarListProps { |
export interface IAvatarListProps { |
||||
size?: "large" | "small" | "mini" | "default"; |
size?: 'large' | 'small' | 'mini' | 'default'; |
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
children: |
children: |
||||
| React.ReactElement<AvatarItem> |
| React.ReactElement<AvatarItem> |
||||
| Array<React.ReactElement<AvatarItem>>; |
| Array<React.ReactElement<AvatarItem>>; |
||||
} |
} |
||||
|
|
||||
declare class AvatarItem extends React.Component<AvatarItemProps, any> { |
export default class AvatarList extends React.Component<IAvatarListProps, any> { |
||||
constructor(props: AvatarItemProps); |
public static Item: typeof AvatarItem; |
||||
} |
|
||||
|
|
||||
export default class AvatarList extends React.Component<AvatarListProps, any> { |
|
||||
constructor(props: AvatarListProps); |
|
||||
static Item: typeof AvatarItem; |
|
||||
} |
} |
||||
|
|||||
@ -1,8 +1,8 @@ |
|||||
import * as React from "react"; |
import * as React from "react"; |
||||
export interface FieldProps { |
export interface IFieldProps { |
||||
label: React.ReactNode; |
label: React.ReactNode; |
||||
value: React.ReactNode; |
value: React.ReactNode; |
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
} |
} |
||||
|
|
||||
export default class Field extends React.Component<FieldProps, any> {} |
export default class Field extends React.Component<IFieldProps, any> {} |
||||
|
|||||
@ -1,9 +1,9 @@ |
|||||
import * as React from "react"; |
import * as React from "react"; |
||||
export interface CountDownProps { |
export interface ICountDownProps { |
||||
format?: (time: number) => void; |
format?: (time: number) => void; |
||||
target: Date | number; |
target: Date | number; |
||||
onEnd?: () => void; |
onEnd?: () => void; |
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
} |
} |
||||
|
|
||||
export default class CountDown extends React.Component<CountDownProps, any> {} |
export default class CountDown extends React.Component<ICountDownProps, any> {} |
||||
|
|||||
@ -0,0 +1,9 @@ |
|||||
|
import * as React from 'react'; |
||||
|
|
||||
|
export default class Description extends React.Component< |
||||
|
{ |
||||
|
term: React.ReactNode; |
||||
|
style?: React.CSSProperties; |
||||
|
}, |
||||
|
any |
||||
|
> {} |
||||
@ -1,10 +1,10 @@ |
|||||
import * as React from 'react'; |
import * as React from 'react'; |
||||
export interface FooterToolbarProps { |
export interface IFooterToolbarProps { |
||||
extra: React.ReactNode; |
extra: React.ReactNode; |
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
} |
} |
||||
|
|
||||
export default class FooterToolbar extends React.Component< |
export default class FooterToolbar extends React.Component< |
||||
FooterToolbarProps, |
IFooterToolbarProps, |
||||
any |
any |
||||
> {} |
> {} |
||||
|
|||||
@ -0,0 +1,22 @@ |
|||||
|
import * as React from 'react'; |
||||
|
export interface INoticeIconData { |
||||
|
avatar?: string; |
||||
|
title?: React.ReactNode; |
||||
|
description?: React.ReactNode; |
||||
|
datetime?: React.ReactNode; |
||||
|
extra?: React.ReactNode; |
||||
|
style?: React.CSSProperties; |
||||
|
} |
||||
|
|
||||
|
export interface INoticeIconTabProps { |
||||
|
list?: INoticeIconData[]; |
||||
|
title?: string; |
||||
|
emptyText?: React.ReactNode; |
||||
|
emptyImage?: string; |
||||
|
style?: React.CSSProperties; |
||||
|
} |
||||
|
|
||||
|
export default class NoticeIconTab extends React.Component< |
||||
|
INoticeIconTabProps, |
||||
|
any |
||||
|
> {} |
||||
@ -0,0 +1,11 @@ |
|||||
|
import * as React from 'react'; |
||||
|
|
||||
|
export interface ITagSelectOptionProps { |
||||
|
value: string | number; |
||||
|
style?: React.CSSProperties; |
||||
|
} |
||||
|
|
||||
|
export default class TagSelectOption extends React.Component< |
||||
|
ITagSelectOptionProps, |
||||
|
any |
||||
|
> {} |
||||
@ -1,23 +1,16 @@ |
|||||
import * as React from 'react'; |
import * as React from 'react'; |
||||
export interface TagSelectProps { |
import TagSelectOption from './TagSelectOption'; |
||||
onChange?: (value: Array<string>) => void; |
|
||||
|
export interface ITagSelectProps { |
||||
|
onChange?: (value: string[]) => void; |
||||
expandable?: boolean; |
expandable?: boolean; |
||||
value?: Array<string>| Array<number>; |
value?: string[] | number[]; |
||||
style?: React.CSSProperties; |
|
||||
} |
|
||||
export interface TagSelectOptionProps { |
|
||||
value: string| number; |
|
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
} |
} |
||||
|
|
||||
export class TagSelectOption extends React.Component< |
export default class TagSelect extends React.Component<ITagSelectProps, any> { |
||||
TagSelectOptionProps, |
public static Option: typeof TagSelectOption; |
||||
any |
private children: |
||||
> {} |
|
||||
|
|
||||
export default class TagSelect extends React.Component<TagSelectProps, any> { |
|
||||
static Option: typeof TagSelectOption; |
|
||||
children: |
|
||||
| React.ReactElement<TagSelectOption> |
| React.ReactElement<TagSelectOption> |
||||
| Array<React.ReactElement<TagSelectOption>>; |
| Array<React.ReactElement<TagSelectOption>>; |
||||
} |
} |
||||
|
|||||
@ -1,9 +1,9 @@ |
|||||
import * as React from 'react'; |
import * as React from 'react'; |
||||
|
|
||||
export interface TrendProps { |
export interface ITrendProps { |
||||
colorful?: boolean; |
colorful?: boolean; |
||||
flag: 'up' | 'down'; |
flag: 'up' | 'down'; |
||||
style?: React.CSSProperties; |
style?: React.CSSProperties; |
||||
} |
} |
||||
|
|
||||
export default class Trend extends React.Component<TrendProps, any> {} |
export default class Trend extends React.Component<ITrendProps, any> {} |
||||
|
|||||
Loading…
Reference in new issue