mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
Fix context types
This commit is contained in:
parent
3543cdc1cf
commit
7a52a6fafe
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user