import Tooltip from '../tooltip' import abstractTooltipProps from '../tooltip/abstractTooltipProps' import PropTypes from '../_util/vue-types' import { getOptionProps, getComponentFromProp } from '../_util/props-util' const props = abstractTooltipProps() export default { name: 'APopover', props: { ...props, prefixCls: PropTypes.string.def('ant-popover'), transitionName: PropTypes.string.def('zoom-big'), content: PropTypes.any, title: PropTypes.any, }, model: { prop: 'visible', event: 'change', }, methods: { getPopupDomNode () { return this.$refs.tooltip.getPopupDomNode() }, }, render (h) { const { title, prefixCls, $slots } = this const props = getOptionProps(this) delete props.title delete props.content const tooltipProps = { props: { ...props, }, ref: 'tooltip', on: this.$listeners, } return ( {this.$slots.default} ) }, }