Wot Design Uni 版本号
1.3.12
平台
微信小程序
复现Demo地址(如不提供,issue将被直接关闭)
https://github.com/soxft/wot-ui-bug-report
重现步骤
输入 1-5 长度的字符
期望的结果是什么?
输出 正确的 错误信息
实际的结果是什么?
toast 为空
环境信息
No response
其他补充信息
RT, wd-form 中 rules, 当 Promise.reject 参数为 Error 时, toast 将显示空提示
Eslint 建议使用 Error 作为 reject 的参数 http://eslint.cn/docs/rules/prefer-promise-reject-errors
因为
|
message: error || rule.message |
将整个 Error 作为 message 进行返回
Wot Design Uni 版本号
1.3.12
平台
微信小程序
复现Demo地址(如不提供,issue将被直接关闭)
https://github.com/soxft/wot-ui-bug-report
重现步骤
输入 1-5 长度的字符
期望的结果是什么?
输出 正确的 错误信息
实际的结果是什么?
toast 为空
环境信息
No response
其他补充信息
RT, wd-form 中 rules, 当 Promise.reject 参数为 Error 时, toast 将显示空提示
Eslint 建议使用 Error 作为 reject 的参数 http://eslint.cn/docs/rules/prefer-promise-reject-errors
因为
wot-design-uni/src/uni_modules/wot-design-uni/components/wd-form/wd-form.vue
Line 100 in 31353ce