Skip to content
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

[table] 希望增加行编辑表格批量提交功能 #1341

Closed
wandoupeas opened this issue Aug 4, 2022 · 4 comments
Closed

[table] 希望增加行编辑表格批量提交功能 #1341

wandoupeas opened this issue Aug 4, 2022 · 4 comments
Assignees
Labels
to be published to be published

Comments

@wandoupeas
Copy link

这个功能解决了什么问题

实际业务场景中,表格编辑功能经常会有批量编辑提交的需求,例如:
image
这时候提交表单需要校验table每行内的校验条件,返回校验结果,然后执行后续操作

你建议的方案是什么

建议PrimaryTableInstanceFunctionsexpose一个validateDataList: (rowKeys?: any[]) => Promise<xxx>方法,不传值则校验所有editableRowKeys,然后调用的时候根据rules配置好的校验规则显示错误提示,并返回包含错误信息的Promise对象

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

👋 @wandoupeas,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

♥️ 有劳 @realyuyanan @Louiszhai @PengYYYYY @chaishi 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @wandoupeas

@chaishi
Copy link
Collaborator

chaishi commented Aug 6, 2022

Vue2 resolved in Tencent/tdesign-vue#1254

Vue3 resolved in #1357

@chaishi chaishi added the 🏃 in progress someone is developing label Aug 6, 2022
@chaishi chaishi mentioned this issue Aug 7, 2022
16 tasks
@PengYYYYY PengYYYYY added to be published to be published and removed 🏃 in progress someone is developing labels Aug 9, 2022
@PengYYYYY
Copy link
Collaborator

0.19.1 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants