Skip to content

Commit 416d5cf

Browse files
committed
build: package
1 parent a966479 commit 416d5cf

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

lib/cube.min.js

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

lib/index-list/index-list.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/index-list/index.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6611,8 +6611,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
66116611
titleClick: function titleClick() {
66126612
this.$emit(EVENT_TITLE_CLICK, this.title);
66136613
},
6614-
forceUpdate: function forceUpdate() {
6615-
this.$refs.scroll.forceUpdate();
6614+
forceUpdate: function forceUpdate(dirty) {
6615+
var _this2 = this;
6616+
6617+
this.$refs.scroll.forceUpdate(dirty);
6618+
dirty && this.$nextTick(function () {
6619+
_this2._calculateHeight();
6620+
});
66166621
},
66176622
onShortcutTouchStart: function onShortcutTouchStart(e) {
66186623
var target = (0, _dom.getMatchedTarget)(e, 'cube-index-list-nav-item');
@@ -6671,18 +6676,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
66716676
},
66726677
watch: {
66736678
data: function data() {
6674-
var _this2 = this;
6679+
var _this3 = this;
66756680

66766681
this.$nextTick(function () {
6677-
_this2._calculateHeight();
6682+
_this3._calculateHeight();
66786683
});
66796684
},
66806685
title: function title(newVal) {
6681-
var _this3 = this;
6686+
var _this4 = this;
66826687

66836688
this.$nextTick(function () {
6684-
_this3._caculateTitleHeight();
6685-
_this3._calculateHeight();
6689+
_this4._caculateTitleHeight();
6690+
_this4._calculateHeight();
66866691
});
66876692
},
66886693
diff: function diff(newVal) {

lib/index.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6911,7 +6911,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
69116911
}
69126912

69136913
var Cube = {
6914-
version: "1.12.21",
6914+
version: "1.12.22",
69156915
install: install,
69166916
BScroll: _module.BetterScroll,
69176917
createAPI: _module.createAPI
@@ -20848,8 +20848,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2084820848
titleClick: function titleClick() {
2084920849
this.$emit(EVENT_TITLE_CLICK, this.title);
2085020850
},
20851-
forceUpdate: function forceUpdate() {
20852-
this.$refs.scroll.forceUpdate();
20851+
forceUpdate: function forceUpdate(dirty) {
20852+
var _this2 = this;
20853+
20854+
this.$refs.scroll.forceUpdate(dirty);
20855+
dirty && this.$nextTick(function () {
20856+
_this2._calculateHeight();
20857+
});
2085320858
},
2085420859
onShortcutTouchStart: function onShortcutTouchStart(e) {
2085520860
var target = (0, _dom.getMatchedTarget)(e, 'cube-index-list-nav-item');
@@ -20908,18 +20913,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2090820913
},
2090920914
watch: {
2091020915
data: function data() {
20911-
var _this2 = this;
20916+
var _this3 = this;
2091220917

2091320918
this.$nextTick(function () {
20914-
_this2._calculateHeight();
20919+
_this3._calculateHeight();
2091520920
});
2091620921
},
2091720922
title: function title(newVal) {
20918-
var _this3 = this;
20923+
var _this4 = this;
2091920924

2092020925
this.$nextTick(function () {
20921-
_this3._caculateTitleHeight();
20922-
_this3._calculateHeight();
20926+
_this4._caculateTitleHeight();
20927+
_this4._calculateHeight();
2092320928
});
2092420929
},
2092520930
diff: function diff(newVal) {

0 commit comments

Comments
 (0)