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