Skip to content

Commit

Permalink
build: package
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Oct 18, 2019
1 parent ca3dc1d commit 95a4c61
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions lib/cube.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/form/form.min.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions lib/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7346,6 +7346,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_this.$emit(EVENT_VALID, _this.validity);
_this.$emit(EVENT_SUBMIT, e, _this.model, _this.fieldsModel);
} else {
if (_this.options.scrollToInvalidField && _this.firstInvalidField) {
_this.firstInvalidField.$el.scrollIntoView();
}
e.preventDefault();
_this.$emit(EVENT_INVALID, _this.validity);
}
Expand All @@ -7367,11 +7370,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var _this2 = this;

this.validate(function () {
if (_this2.invalid) {
if (_this2.options.scrollToInvalidField && _this2.firstInvalidField) {
_this2.firstInvalidField.$el.scrollIntoView();
}
}
cb && cb(_this2.valid);
});
},
Expand Down
10 changes: 4 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7226,7 +7226,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}

var Cube = {
version: "1.12.31",
version: "1.12.32",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
Expand Down Expand Up @@ -14847,6 +14847,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
_this.$emit(EVENT_VALID, _this.validity);
_this.$emit(EVENT_SUBMIT, e, _this.model, _this.fieldsModel);
} else {
if (_this.options.scrollToInvalidField && _this.firstInvalidField) {
_this.firstInvalidField.$el.scrollIntoView();
}
e.preventDefault();
_this.$emit(EVENT_INVALID, _this.validity);
}
Expand All @@ -14868,11 +14871,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var _this2 = this;

this.validate(function () {
if (_this2.invalid) {
if (_this2.options.scrollToInvalidField && _this2.firstInvalidField) {
_this2.firstInvalidField.$el.scrollIntoView();
}
}
cb && cb(_this2.valid);
});
},
Expand Down

0 comments on commit 95a4c61

Please sign in to comment.