-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[comp: popover]: add component popover #193
Comments
@danranVm 请review |
trigger这个配置不应该是全局的,浮层的触发方式应该是根据业务来决定 |
其实只是想给调用方提供一个可以选择的能力,也许某些平台是更倾向于hover的方式显示浮层,某些平台更倾向于click显示浮层 |
不是的,用click还是用hover是根据业务来的,比如有些popover的内容是要靠后台请求得来的,那这时候会使用click,有些是一次性提前全部返回的,那么用hover; |
autoAdjustPopover这个应该不会有false的场景,悬浮的可视无遮挡应该是基本要求; |
表格、长列表、虚拟滚动的场景可能会不需要这个 |
这两个 API Tooltip、Popconfirm 应该也是可以共享的,命名上精简一些吧。 |
@huangtenghui @danranVm 更新了API |
|
我觉得这种需要展示这么多详细信息的,更适合点击的场景,我目前做的这个需求就是这样。 |
ok |
@danranVm 重新review |
Popover API
What problem does this feature solve?
弹出浮层显示更详细的信息,又避免使用弹窗这种直接影响用户操作的重量级视图。
What does the proposed API look like?
何时使用
需要展示一些详细信息,但又不想被弹窗打断当前其他操作。
API
ix-overlay
Props
title
string | v-slot:title
content
string | v-slot:default
placement
Placement
top
visible
boolean
false
trigger
OverlayTrigger
click
showDelay
number
hideDelay
number
destroyOnHide
boolean
false
autoAdjust
boolean
true
Emits
visibleChange
(visible: boolean) => void
The text was updated successfully, but these errors were encountered: