Skip to content

Commit aaaca62

Browse files
committed
build: package
1 parent cb94dbd commit aaaca62

File tree

10 files changed

+35
-17
lines changed

10 files changed

+35
-17
lines changed

lib/cube.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cube.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/form/form.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/form/index.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7227,6 +7227,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
72277227
submitHandler: function submitHandler(e) {
72287228
var _this = this;
72297229

7230+
this.syncValidatorValues();
72307231
if (this.skipValidate) {
72317232
this.$emit(EVENT_SUBMIT, e, this.model);
72327233
return;
@@ -7273,6 +7274,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
72737274
this.setValidating();
72747275
this.setPending();
72757276
},
7277+
syncValidatorValues: function syncValidatorValues() {
7278+
this.fields.forEach(function (fieldComponent) {
7279+
fieldComponent.syncValidatorValue();
7280+
});
7281+
},
72767282
validate: function validate(cb) {
72777283
var _this3 = this;
72787284

@@ -7646,9 +7652,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
76467652
}
76477653
if (!debounceTime && debounceTime !== 0 || debounceTime < 0 || this.fieldValue.trigger === 'blur') return;
76487654
this.getValidatorModel = (0, _util.debounce)(function (modelValue) {
7649-
_this2.pending = false;
7650-
_this2.validatorModel[_this2.validatorModelKey] = modelValue;
7651-
_this2.form.updatePending();
7655+
_this2.syncValidatorValue();
76527656
_this2.validate();
76537657
return modelValue;
76547658
}, debounceTime, false, this.validatorModel[this.validatorModelKey]);
@@ -7692,6 +7696,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
76927696
this.originValid = undefined;
76937697
}
76947698
},
7699+
syncValidatorValue: function syncValidatorValue() {
7700+
this.pending = false;
7701+
this.validatorModel[this.validatorModelKey] = this.modelValue;
7702+
this.form.updatePending();
7703+
},
76957704
validatorChangeHandler: function validatorChangeHandler() {
76967705
if (this.validatorDisabled || this.originValid && this.lastOriginValid) {
76977706
return;

lib/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6907,7 +6907,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
69076907
}
69086908

69096909
var Cube = {
6910-
version: "1.12.12",
6910+
version: "1.12.13",
69116911
install: install,
69126912
BScroll: _module.BetterScroll,
69136913
createAPI: _module.createAPI
@@ -14573,6 +14573,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1457314573
submitHandler: function submitHandler(e) {
1457414574
var _this = this;
1457514575

14576+
this.syncValidatorValues();
1457614577
if (this.skipValidate) {
1457714578
this.$emit(EVENT_SUBMIT, e, this.model);
1457814579
return;
@@ -14619,6 +14620,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1461914620
this.setValidating();
1462014621
this.setPending();
1462114622
},
14623+
syncValidatorValues: function syncValidatorValues() {
14624+
this.fields.forEach(function (fieldComponent) {
14625+
fieldComponent.syncValidatorValue();
14626+
});
14627+
},
1462214628
validate: function validate(cb) {
1462314629
var _this3 = this;
1462414630

@@ -14992,9 +14998,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1499214998
}
1499314999
if (!debounceTime && debounceTime !== 0 || debounceTime < 0 || this.fieldValue.trigger === 'blur') return;
1499415000
this.getValidatorModel = (0, _util.debounce)(function (modelValue) {
14995-
_this2.pending = false;
14996-
_this2.validatorModel[_this2.validatorModelKey] = modelValue;
14997-
_this2.form.updatePending();
15001+
_this2.syncValidatorValue();
1499815002
_this2.validate();
1499915003
return modelValue;
1500015004
}, debounceTime, false, this.validatorModel[this.validatorModelKey]);
@@ -15038,6 +15042,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1503815042
this.originValid = undefined;
1503915043
}
1504015044
},
15045+
syncValidatorValue: function syncValidatorValue() {
15046+
this.pending = false;
15047+
this.validatorModel[this.validatorModelKey] = this.modelValue;
15048+
this.form.updatePending();
15049+
},
1504115050
validatorChangeHandler: function validatorChangeHandler() {
1504215051
if (this.validatorDisabled || this.originValid && this.lastOriginValid) {
1504315052
return;

lib/scroll-nav-bar/scroll-nav-bar.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)