|
|
|
@ -8,6 +8,7 @@ import { withInstall } from '../_util/type';
|
|
|
|
|
import useConfigInject from '../_util/hooks/useConfigInject'; |
|
|
|
|
import omit from '../_util/omit'; |
|
|
|
|
import { getTransitionName } from '../_util/transition'; |
|
|
|
|
import { tooltipDefaultProps } from '../tooltip/Tooltip'; |
|
|
|
|
|
|
|
|
|
export const popoverProps = () => ({ |
|
|
|
|
...abstractTooltipProps(), |
|
|
|
@ -20,6 +21,7 @@ export type PopoverProps = Partial<ExtractPropTypes<ReturnType<typeof popoverPro
|
|
|
|
|
const Popover = defineComponent({ |
|
|
|
|
name: 'APopover', |
|
|
|
|
props: initDefaultProps(popoverProps(), { |
|
|
|
|
...tooltipDefaultProps, |
|
|
|
|
trigger: 'hover', |
|
|
|
|
transitionName: 'zoom-big', |
|
|
|
|
placement: 'top', |
|
|
|
|