Fix context types

This commit is contained in:
afc163 2016-07-25 11:35:51 +08:00
parent 3543cdc1cf
commit 7a52a6fafe

View File

@ -9,7 +9,6 @@ const prefixCls = 'ant-popover';
const noop = () => {};
export interface PopconfirmProps {
/**
* Position of popup-container, options:`top`, `left`, `right`, `bottom`
*/
@ -34,7 +33,15 @@ export interface PopconfirmProps {
prefixCls?: string;
}
export interface PopconfirmContext {
antLocale?: {
Popconfirm?: any,
};
}
export default class Popconfirm extends React.Component<PopconfirmProps, any> {
context: PopconfirmContext;
static defaultProps = {
transitionName: 'zoom-big',
placement: 'top',