mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Add polyfill
This commit is contained in:
parent
4ac0277813
commit
1c2385de98
@ -3,6 +3,7 @@ import * as ReactDOM from 'react-dom';
|
||||
import Animate from 'rc-animate';
|
||||
import classNames from 'classnames';
|
||||
import omit from 'omit.js';
|
||||
import { polyfill } from 'react-lifecycles-compat';
|
||||
import Icon from '../icon';
|
||||
import CheckableTag from './CheckableTag';
|
||||
|
||||
@ -28,7 +29,7 @@ export interface TagState {
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
export default class Tag extends React.Component<TagProps, TagState> {
|
||||
class Tag extends React.Component<TagProps, TagState> {
|
||||
static CheckableTag = CheckableTag;
|
||||
static defaultProps = {
|
||||
prefixCls: 'ant-tag',
|
||||
@ -152,3 +153,7 @@ export default class Tag extends React.Component<TagProps, TagState> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
polyfill(Tag);
|
||||
|
||||
export default Tag;
|
||||
|
@ -80,6 +80,7 @@
|
||||
"rc-upload": "~2.5.0",
|
||||
"rc-util": "^4.0.4",
|
||||
"react-lazy-load": "^3.0.12",
|
||||
"react-lifecycles-compat": "^3.0.4",
|
||||
"react-slick": "~0.23.1",
|
||||
"shallowequal": "^1.0.1",
|
||||
"warning": "~4.0.1"
|
||||
|
2
typings/custom-typings.d.ts
vendored
2
typings/custom-typings.d.ts
vendored
@ -102,3 +102,5 @@ declare module "lodash/uniqBy";
|
||||
declare module 'intersperse';
|
||||
|
||||
declare module "raf";
|
||||
|
||||
declare module "react-lifecycles-compat";
|
||||
|
Loading…
Reference in New Issue
Block a user