import * as React from "react"; import CheckableTag from "./CheckableTag"; import { ConfigConsumerProps } from "../Config"; interface IProps { /** * 标签色 * * @default "" **/ color?: string; /** * 标签是否可以关闭 * * @default false **/ closable?: boolean; /** * 关闭时的回调 * * @default **/ onClose?: (e: any) => void; /** * 是否显示标签 * * @default true **/ visible?: boolean; /** * 自定义样式 * * @default **/ style?: React.CSSProperties; /** * 样式前缀 * * @default "lg" **/ prefixCls?: string; /** * 展示形状 * * @default "ellipse" **/ type?: "ellipse" | string; /** * 是否实心演示 * * @default false **/ isFull?: boolean; /** * 展示形状 * * @default **/ shape?: "word" | "hot" | "abnormity1" | "abnormity2" | string; /** * 自定义class * * @default '' **/ className?: string; } interface IState { showTag: boolean; } export default class Tag extends React.PureComponent { static CheckableTag: typeof CheckableTag; static defaultProps: { visible: boolean; type: string; color: string; isFull: boolean; }; constructor(props: any); handleClose: (e: any) => void; renderTag: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element | null; render(): JSX.Element; } export {};