vxe-table 3.4.9 → 3.4.10-beta.0
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/lib/index.umd.js
CHANGED
|
@@ -30316,6 +30316,7 @@ var Keyboard = {
|
|
|
30316
30316
|
|
|
30317
30317
|
|
|
30318
30318
|
|
|
30319
|
+
|
|
30319
30320
|
/**
|
|
30320
30321
|
* 校验规则
|
|
30321
30322
|
*/
|
|
@@ -30522,14 +30523,19 @@ function validErrorRuleValue(rule, val) {
|
|
|
30522
30523
|
}
|
|
30523
30524
|
});
|
|
30524
30525
|
}).catch(function (firstErrParams) {
|
|
30525
|
-
return new Promise(function (resolve) {
|
|
30526
|
+
return new Promise(function (resolve, reject) {
|
|
30526
30527
|
var finish = function finish() {
|
|
30527
30528
|
_this2.$nextTick(function () {
|
|
30528
30529
|
if (cb) {
|
|
30529
30530
|
cb(validRest);
|
|
30530
30531
|
resolve();
|
|
30531
30532
|
} else {
|
|
30532
|
-
|
|
30533
|
+
if (conf.validToReject) {
|
|
30534
|
+
// 已废弃,校验失败将不会执行catch
|
|
30535
|
+
reject(validRest);
|
|
30536
|
+
} else {
|
|
30537
|
+
resolve(validRest);
|
|
30538
|
+
}
|
|
30533
30539
|
}
|
|
30534
30540
|
});
|
|
30535
30541
|
};
|