Ant-design 源码分析之数据展示(十四)Popover
2021SC@SDUSC
Popover功能实现参见Tooltip
一、组件结构
1、ant代码结构
2、组件结构
ant中Popover的index.tsx中引入了Tooltip
二、antd组件调用关系
1、index.tsx
导入相应模块以及相应的ICON图标
import * as React from 'react';
import Tooltip, {
AbstractTooltipProps, TooltipPlacement } from '../tooltip';
import {
ConfigContext } from '../config-provider';
import {
getRenderPropValue, RenderFunction } from '../_util/getRenderPropValue';
import {
getTransitionName } from '../_util/motion';
声明PopoverProps接口