bkui-vue 2.0.2-beta.36 → 2.0.2-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +2 -2
- package/lib/form/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/form/index.js
CHANGED
@@ -2221,7 +2221,7 @@ var isValid = function isValid(value) {
|
|
2221
2221
|
});
|
2222
2222
|
}
|
2223
2223
|
// 同步验证失败
|
2224
|
-
if (result
|
2224
|
+
if (Boolean(result) === false || typeof result === 'string') {
|
2225
2225
|
var errorMessage = typeof result === 'string' ? result : getRuleMessage(rule);
|
2226
2226
|
if (showError) {
|
2227
2227
|
state.isError = true;
|
package/lib/index.js
CHANGED