-
Notifications
You must be signed in to change notification settings - Fork 507
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
Labels
to be published
to be published
Comments
👋 @wandoupeas,感谢给 TDesign 提出了 issue。 |
|
16 tasks
Vue2 resolved in Tencent/tdesign-vue#1254 Vue3 resolved in #1357 |
This was referenced Aug 9, 2022
Merged
0.19.1 已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个功能解决了什么问题
实际业务场景中,表格编辑功能经常会有批量编辑提交的需求,例如:

这时候提交表单需要校验
table
每行内的校验条件,返回校验结果,然后执行后续操作你建议的方案是什么
建议
PrimaryTableInstanceFunctions
expose一个validateDataList: (rowKeys?: any[]) => Promise<xxx>
方法,不传值则校验所有editableRowKeys
,然后调用的时候根据rules
配置好的校验规则显示错误提示,并返回包含错误信息的Promise
对象The text was updated successfully, but these errors were encountered: