-
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
[cdk: overlay] add cdk overlay #113
Comments
@coolyuantao @danranVm 负责此组件的 review, API 设计完成后请 |
@coolyuantao @danranVm 请review API |
跟 @danranVm 讨论后一些结论,一起看下吧
|
@danranVm @coolyuantao 请重新Review API |
|
还有另外一个需求: |
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Jan 30, 2021
13 tasks
@coolyuantao @danranVm 请重新review API |
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Jan 30, 2021
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Jan 31, 2021
13 tasks
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Feb 4, 2021
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Feb 5, 2021
LaamGinghong
added a commit
to LaamGinghong/idux
that referenced
this issue
Feb 5, 2021
danranVm
pushed a commit
that referenced
this issue
Feb 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[cdk: overlay] add cdk overlay
对外暴露一个函数,允许调用方调用函数来创建一个浮层,且允许调用方还合适的范围内对浮层进行自定义。
特性
通过函数可以创建浮层并返回该浮层对应的实例;
调用方可以通过函数返回的浮层实例,对视图进行绑定;
调用方可以通过返回的实例,控制浮层的初始化、显示、隐藏和销毁;
浮层的滚动策略有四种:
close
:滚动时自动关闭浮层;reposition
:默认行为,滚动时重新定位。浮层定位依赖于
@popperjs/core
cdk会对外抛出以下事件,需要调用方在使用时将事件绑定到视图上,使得cdk可以对浮层行为进行控制:
OverlayTriggerEvents
onClick
onMouseEnter
onMouseLeave
onFocus
onBlur
OverlayPopperEvents
onMouseEnter
onMouseLeave
API
overlay
Portal
Props
disable
boolean
target
HTMLElement | string
Slots
default
DEMO
The text was updated successfully, but these errors were encountered: