-
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
useAntdTable #11
Comments
建议 changeTable 不仅仅代理 current, 在我们的业务场景中还需要 pageSize,filters,sorter。 |
focusUpdate 不是很理解, Table 的 onChange 没有这个属性,我们需要代理一下吗? |
为了保持一致,建议用法变为
|
原来是为了解决当前分页的操作问题加的。比如 table 中有一列是 switch,状态改变后需要刷新当前页码的数据,但这种情况下 current、pageSize 都没变。用 deps 实现还不如暴露 table.reload 方法给用户来的直接 |
pageSize 加了,但 filter、sorter 项目中暂时没用到,留作以后的 feature 吧(主要原因是现在还没空写 demo 测些业务中暂时用不到的这些功能) |
form,id 改成了必填 |
feat: useAntdTable submit add preventDefault
集成了常见的 包含 精简搜索,复杂搜索,分页 等的 列表页。
功能
用法
例子
参数说明
约定
current
useTable
调用service
时,会把分页参数(current
)和搜索表单的查询参数合并返回值
simple
、advance
,用于切换搜索表单The text was updated successfully, but these errors were encountered: