diff --git a/components/popconfirm/index.tsx b/components/popconfirm/index.tsx index 8914763066..5edc44f27a 100644 --- a/components/popconfirm/index.tsx +++ b/components/popconfirm/index.tsx @@ -40,8 +40,6 @@ export interface PopconfirmContext { } export default class Popconfirm extends React.Component { - context: PopconfirmContext; - static defaultProps = { transitionName: 'zoom-big', placement: 'top', @@ -56,6 +54,8 @@ export default class Popconfirm extends React.Component { antLocale: React.PropTypes.object, }; + context: PopconfirmContext; + constructor(props) { super(props); this.state = {