Skip to content

Commit ca6a171

Browse files
committed
build: package
1 parent 0a3fe42 commit ca6a171

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
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.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7226,7 +7226,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
72267226
}
72277227

72287228
var Cube = {
7229-
version: "1.12.30",
7229+
version: "1.12.31",
72307230
install: install,
72317231
BScroll: _module.BetterScroll,
72327232
createAPI: _module.createAPI
@@ -17520,13 +17520,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1752017520
if (this.isVisible || !this.data.length) {
1752117521
return;
1752217522
}
17523+
this.isVisible = true;
1752317524
this.currentPicker.show();
1752417525
},
1752517526
hide: function hide() {
1752617527
if (!this.isVisible || !this.data.length) {
1752717528
return;
1752817529
}
17529-
this.$refs.currentPicker.hide();
17530+
this.isVisible = false;
17531+
this.currentPicker.hide();
1753017532
},
1753117533
_select: function _select() {
1753217534
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
@@ -17542,6 +17544,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1754217544
this.current++;
1754317545
this.currentPicker.show();
1754417546
} else {
17547+
this.isVisible = false;
1754517548
this.$emit(EVENT_SELECT, this.selectedVal, this.selectedIndex, this.selectedText);
1754617549
this.current = 0;
1754717550
}
@@ -17556,6 +17559,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1755617559
this.current--;
1755717560
this.currentPicker.show();
1755817561
} else {
17562+
this.isVisible = false;
1755917563
this.$emit(EVENT_CANCEL);
1756017564
}
1756117565
},
@@ -17577,6 +17581,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1757717581

1757817582
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
1757917583
return _c('div', {
17584+
directives: [{
17585+
name: "show",
17586+
rawName: "v-show",
17587+
value: (_vm.isVisible),
17588+
expression: "isVisible"
17589+
}],
1758017590
staticClass: "cube-segment-picker"
1758117591
}, _vm._l((_vm.data), function(item, index) {
1758217592
return _c(item.is || 'cube-picker', _vm._b({

lib/segment-picker/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8061,13 +8061,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
80618061
if (this.isVisible || !this.data.length) {
80628062
return;
80638063
}
8064+
this.isVisible = true;
80648065
this.currentPicker.show();
80658066
},
80668067
hide: function hide() {
80678068
if (!this.isVisible || !this.data.length) {
80688069
return;
80698070
}
8070-
this.$refs.currentPicker.hide();
8071+
this.isVisible = false;
8072+
this.currentPicker.hide();
80718073
},
80728074
_select: function _select() {
80738075
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
@@ -8083,6 +8085,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
80838085
this.current++;
80848086
this.currentPicker.show();
80858087
} else {
8088+
this.isVisible = false;
80868089
this.$emit(EVENT_SELECT, this.selectedVal, this.selectedIndex, this.selectedText);
80878090
this.current = 0;
80888091
}
@@ -8097,6 +8100,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
80978100
this.current--;
80988101
this.currentPicker.show();
80998102
} else {
8103+
this.isVisible = false;
81008104
this.$emit(EVENT_CANCEL);
81018105
}
81028106
},
@@ -8118,6 +8122,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
81188122

81198123
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
81208124
return _c('div', {
8125+
directives: [{
8126+
name: "show",
8127+
rawName: "v-show",
8128+
value: (_vm.isVisible),
8129+
expression: "isVisible"
8130+
}],
81218131
staticClass: "cube-segment-picker"
81228132
}, _vm._l((_vm.data), function(item, index) {
81238133
return _c(item.is || 'cube-picker', _vm._b({

0 commit comments

Comments
 (0)