-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix: transfer、transferPicker分页和搜索相关的问题修复和优化 #9195
Closed
Closed
Conversation
This file contains 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
* fix: 支持刷新表格时,清空表格状态 * fix: 支持刷新表格时,清空表格状态
…u#8981) * revert: baidu#8553 * fix: 修复 combo 中有 pipeIn & pipeOut 场景时报错 Close: baidu#8970
Co-authored-by: wutong25 <wutong25@baidu.com>
👍 Thanks for this! Please review the labels and make any necessary changes. |
…into feat-3.6.1-transfer
This reverts commit e7c6fd8.
…into feat-3.6.1-transfer
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.
What
新增TransferPicker的分页支持
修复Transfer组件开发分页时,搜索不支持分页的问题
新增TransferPicker和TabsTransferPicker支持placeholder配置项
修复TabsTransfer在多tab状态下搜索问题
Transfer组件及相关的Tabs和Picker,增加tree模式下的initiallyOpen支持
修复CRUD组件在loading状态下按钮仍然可以触发操作
Why
在3.6.1版本Transfer新增了分页功能,但是TransferPicker以及TabsTransferPicker并不支持
Transfer组件在开启分页和搜索时,用户进行搜索操作;请求接口搜索到结果时页码组件并未刷新,仍然使用默认数据的分页而不是使用搜索结果的分页
TransferPicker和TabsTransferPicker目前并不支持配置placeholder,作为表单的组件应该统一支持这个配置项
在TabsTransfer组件下,如果数据是静态的、多个tabs并且开启了搜索,当用户停留在某个tab下时,搜索出来的内容时全部tab的,而且内容显示错乱
Transfer组件在tree模式下,当前默认是展开所有选项的,而用户可能会出现数据量过多默认需要收起的情况,所以希望新增tree组件的initiallyOpen配置项来支持
CRUD组件在加载中状态时所有按钮本应该被遮罩住的,但是发现代码有关于遮罩会导致弹层被影响所以去掉了按钮的遮罩,导致用户可以加载中时操作按钮重复触发行为
How
参考Transfer的实现方式,差别的地方是在TransferPicker中选择选项并不会直接修改表单值,必须在用户点击确定后,所以这里在组件中新增了临时状态存储。
提交编号: 71192e5
临时状态在每次确定或者取消时清理
提交编号: 6ae1a56
Transfer组件新增搜索分页的存储和分页逻辑。
提交编号: 6ae1a56
placeholder配置转递给UI组件
提交编号: 33c30d5
修复成只能搜索到当前tab下的数据
提交编号: f0e1757
修改Transfer、TransferPicker、TabsTransferPicker将initiallyOpen传递给tree组件
提交编号: 5791ae3
因为不熟悉被注解掉的代码影响范围不好去修复该问题,所以使用临时解决方案,在用户点击按钮时发现是加载中时跳出逻辑
提交编号: 01c4c63