-
-
Notifications
You must be signed in to change notification settings - Fork 145
feat: add api to change visibility of popup overlay when finishing ca… #176
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
feat: add api to change visibility of popup overlay when finishing ca… #176
Conversation
README.md
Outdated
| <td>specific the default loading icon</td> | ||
| </tr> | ||
| <tr> | ||
| <td>popupVisibleAfterSelect</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <td>popupVisibleAfterSelect</td> | |
| <td>hidePopupOnSelect</td> |
|
来一些测试用例。 |
加了 |
| .hasClass('rc-cascader-menu-item-active'), | ||
| ).toBe(true); | ||
|
|
||
| expect(wrapper.state().popupVisible).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
开启 hidePopupOnSelect 后,还是可以 blur 隐藏的吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
补充一个用例?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,稍等
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加了
Codecov Report
@@ Coverage Diff @@
## master #176 +/- ##
=======================================
Coverage 92.96% 92.96%
=======================================
Files 4 4
Lines 270 270
Branches 94 94
=======================================
Hits 251 251
Misses 19 19
Continue to review full report at Codecov.
|
添加 api 以在完成级联选择时更改弹窗的可见性
弹窗默认在选中最后一级后自动关闭。这一逻辑导致级联选择不能实现多选的功能。
想增加一个api: popupVisibleAfterSelect,如果为true,handleChange 后不会默认关闭。点击弹窗之外依然会关闭。
点击最后一级后自动关闭示意图:
