import React from 'react'; import Tooltip from 'rc-tooltip'; const prefixCls = 'ant-popover'; export default React.createClass({ getInitialState() { return { visible: false }; }, getDefaultProps() { return { transitionName: '', placement: 'top', trigger: 'click', onConfirm: function() {}, onCancel: function() {} }; }, confirm: function() { this.props.onConfirm.call(this); this.setState({ visible: false }); }, cancel: function() { this.props.onCancel.call(this); this.setState({ visible: false }); }, render() { const overlay =
{this.props.title}