UNPKG

dtd

Version:

根据数梦工场视觉规范打造的组件库,感谢react-components和ant design

34 lines (33 loc) 992 B
import * as React from 'react'; import CheckableTag from './CheckableTag'; export { CheckableTagProps } from './CheckableTag'; export interface TagProps { prefixCls?: string; className?: string; color?: string; /** 是否带小角 */ angle?: boolean; /** 标签是否可以关闭 */ closable?: boolean; /** 关闭时的回调 */ onClose?: Function; /** 动画关闭后的回调 */ afterClose?: Function; style?: React.CSSProperties; } export interface TagState { closing: boolean; closed: boolean; } export default class Tag extends React.Component<TagProps, TagState> { static CheckableTag: typeof CheckableTag; static defaultProps: { prefixCls: string; closable: boolean; }; constructor(props: TagProps); close: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void; animationEnd: (_: string, existed: boolean) => void; isPresetColor(color?: string): boolean; render(): JSX.Element; }