mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +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 Animate from 'rc-animate';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import omit from 'omit.js';
|
import omit from 'omit.js';
|
||||||
|
import { polyfill } from 'react-lifecycles-compat';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import CheckableTag from './CheckableTag';
|
import CheckableTag from './CheckableTag';
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ export interface TagState {
|
|||||||
visible: boolean;
|
visible: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Tag extends React.Component<TagProps, TagState> {
|
class Tag extends React.Component<TagProps, TagState> {
|
||||||
static CheckableTag = CheckableTag;
|
static CheckableTag = CheckableTag;
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
prefixCls: 'ant-tag',
|
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-upload": "~2.5.0",
|
||||||
"rc-util": "^4.0.4",
|
"rc-util": "^4.0.4",
|
||||||
"react-lazy-load": "^3.0.12",
|
"react-lazy-load": "^3.0.12",
|
||||||
|
"react-lifecycles-compat": "^3.0.4",
|
||||||
"react-slick": "~0.23.1",
|
"react-slick": "~0.23.1",
|
||||||
"shallowequal": "^1.0.1",
|
"shallowequal": "^1.0.1",
|
||||||
"warning": "~4.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 'intersperse';
|
||||||
|
|
||||||
declare module "raf";
|
declare module "raf";
|
||||||
|
|
||||||
|
declare module "react-lifecycles-compat";
|
||||||
|
Loading…
Reference in New Issue
Block a user