From 30be05e57019625a9e22ea9a244022b558f83c69 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 1 Apr 2016 01:36:42 +0800 Subject: [PATCH] Fix popover prefixCls --- components/popover/index.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/popover/index.jsx b/components/popover/index.jsx index 1998f1d37e..abf4e7c852 100644 --- a/components/popover/index.jsx +++ b/components/popover/index.jsx @@ -3,16 +3,15 @@ import Tooltip from 'rc-tooltip'; import getPlacements from './placements'; const placements = getPlacements(); -const prefixCls = 'ant-popover'; export default class Popover extends React.Component { static defaultProps = { - prefixCls, + prefixCls: 'ant-popover', placement: 'top', trigger: 'hover', mouseEnterDelay: 0.1, mouseLeaveDelay: 0.1, - overlayStyle: {} + overlayStyle: {}, } render() { @@ -47,11 +46,12 @@ export default class Popover extends React.Component { } getOverlay() { + const { title, prefixCls, overlay } = this.props; return (
- {this.props.title &&
{this.props.title}
} + {title &&
{title}
}
- {this.props.overlay} + {overlay}
);