We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
场景:可编辑表格某一 column 的校验逻辑依赖于另一个 column 的值, 在 column.edit.rules 配置自定义 validator 时,callback 只接受当前 cell 的值,无法获取当前行,故无法做当前行数据的联动校验
在自定义 validator 的 callback 传入当前 row 的数据 eg:
rules: [{ validator: (val, rowData) => val.length && rowData.orderType === 'xxx' > 0, message: 'xxxxxx' }],
The text was updated successfully, but these errors were encountered:
👋 @DevQiao,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
♥️ 有劳 @yunfeic @tengcaifeng @Yacent @basecss 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @DevQiao 。
chaishi
No branches or pull requests
这个功能解决了什么问题
场景:可编辑表格某一 column 的校验逻辑依赖于另一个 column 的值, 在 column.edit.rules 配置自定义 validator 时,callback 只接受当前 cell 的值,无法获取当前行,故无法做当前行数据的联动校验
你建议的方案是什么
在自定义 validator 的 callback 传入当前 row 的数据
eg:
The text was updated successfully, but these errors were encountered: