feat(popover): add popover component with scrollable content#645
Open
LuckyFBB wants to merge 1 commit into
Open
feat(popover): add popover component with scrollable content#645LuckyFBB wants to merge 1 commit into
LuckyFBB wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更类型
请选择以下选项以描述 PR 的类型:
相关问题
#642
变更内容
新增 Popover 组件,基于 antd Popover 封装并默认注入 dtc-popover 浮层类名,保留 antd 原有属性透传能力。
样式上补充 Popover 浮层宽度限制,最小宽度 220px,最大宽度 400px;内容区域默认最大高度 400px,超出后内部滚动,并支持通过 CSS 变量自定义最大高度。同时调整标题与内容区域的 padding、标题字号和圆角样式。
新增 Popover 文档与示例,包括基本使用、无标题内容、长内容滚动、自定义高度和最大宽度示例;修复 demo 标签间空行导致 dumi 多列展示不生效的问题。
新增 Popover 单测,覆盖默认 overlayClassName、用户自定义 overlayClassName 合并,以及 overlayInnerStyle 透传。
详细描述
对应 Previewer