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