Skip to content

feat(popover): add popover component with scrollable content#645

Open
LuckyFBB wants to merge 1 commit into
DTStack:masterfrom
LuckyFBB:faet_642_popover
Open

feat(popover): add popover component with scrollable content#645
LuckyFBB wants to merge 1 commit into
DTStack:masterfrom
LuckyFBB:faet_642_popover

Conversation

@LuckyFBB

Copy link
Copy Markdown
Collaborator

变更类型

请选择以下选项以描述 PR 的类型:

  • Bug 修复(修复现有问题)
  • 新功能(添加了一个功能)
  • 代码优化(性能改进、代码重构)
  • 文档更新
  • 单测新增或修改
  • 其他(请说明):

相关问题

#642

变更内容

新增 Popover 组件,基于 antd Popover 封装并默认注入 dtc-popover 浮层类名,保留 antd 原有属性透传能力。

样式上补充 Popover 浮层宽度限制,最小宽度 220px,最大宽度 400px;内容区域默认最大高度 400px,超出后内部滚动,并支持通过 CSS 变量自定义最大高度。同时调整标题与内容区域的 padding、标题字号和圆角样式。

新增 Popover 文档与示例,包括基本使用、无标题内容、长内容滚动、自定义高度和最大宽度示例;修复 demo 标签间空行导致 dumi 多列展示不生效的问题。

新增 Popover 单测,覆盖默认 overlayClassName、用户自定义 overlayClassName 合并,以及 overlayInnerStyle 透传。

详细描述

对应 Previewer

@LuckyFBB LuckyFBB requested a review from jin-sir June 29, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant