1 | import * as React from 'react';
|
2 | import { TagPropsType } from './PropsType';
|
3 | export interface TagProps extends TagPropsType {
|
4 | prefixCls?: string;
|
5 | className?: string;
|
6 | style?: React.CSSProperties;
|
7 | }
|
8 | export default class Tag extends React.Component<TagProps, any> {
|
9 | static defaultProps: {
|
10 | prefixCls: string;
|
11 | disabled: boolean;
|
12 | selected: boolean;
|
13 | closable: boolean;
|
14 | small: boolean;
|
15 | onChange(): void;
|
16 | onClose(): void;
|
17 | afterClose(): void;
|
18 | };
|
19 | constructor(props: TagProps);
|
20 | componentWillReceiveProps(nextProps: TagProps): void;
|
21 | onClick: () => void;
|
22 | onTagClose: () => void;
|
23 | render(): JSX.Element | null;
|
24 | }
|