Skip to content

Commit

Permalink
build: package
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Jul 12, 2019
1 parent ca81be1 commit 07a1184
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/cube.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7171,7 +7171,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}

var Cube = {
version: "1.12.26",
version: "1.12.27",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
Expand Down Expand Up @@ -24026,6 +24026,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},

methods: {
scrollTo: function scrollTo() {
this.$refs.scroll && this.$refs.scroll.scrollTo.apply(this.$refs.scroll, arguments);
},
refresh: function refresh() {
this.navBar && this.navBar.refresh();
this.$refs.sticky.refresh();
Expand Down Expand Up @@ -24184,6 +24187,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts: {
type: Array,
default: function _default() {
this._defaultTxts = true;

return this.labels;
}
},
Expand All @@ -24194,11 +24199,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data: function data() {
return {
active: this.current
active: this.current,
usedTxts: this.txts
};
},

watch: {
labels: function labels(newLabels) {
if (this._defaultTxts) {
this.usedTxts = newLabels;
}
},
txts: function txts(newTxts) {
this.usedTxts = newTxts;
},
current: function current(newVal) {
this.active = newVal;
},
Expand Down Expand Up @@ -24286,7 +24300,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}, [_c('div', {
ref: "items",
staticClass: "cube-scroll-nav-bar-items"
}, _vm._l((_vm.txts), function(txt, index) {
}, _vm._l((_vm.usedTxts), function(txt, index) {
return _c('div', {
key: index,
staticClass: "cube-scroll-nav-bar-item",
Expand Down
15 changes: 13 additions & 2 deletions lib/scroll-nav-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8003,6 +8003,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts: {
type: Array,
default: function _default() {
this._defaultTxts = true;

return this.labels;
}
},
Expand All @@ -8013,11 +8015,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data: function data() {
return {
active: this.current
active: this.current,
usedTxts: this.txts
};
},

watch: {
labels: function labels(newLabels) {
if (this._defaultTxts) {
this.usedTxts = newLabels;
}
},
txts: function txts(newTxts) {
this.usedTxts = newTxts;
},
current: function current(newVal) {
this.active = newVal;
},
Expand Down Expand Up @@ -8105,7 +8116,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}, [_c('div', {
ref: "items",
staticClass: "cube-scroll-nav-bar-items"
}, _vm._l((_vm.txts), function(txt, index) {
}, _vm._l((_vm.usedTxts), function(txt, index) {
return _c('div', {
key: index,
staticClass: "cube-scroll-nav-bar-item",
Expand Down
4 changes: 2 additions & 2 deletions lib/scroll-nav-bar/scroll-nav-bar.min.js

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions lib/scroll-nav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8360,6 +8360,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts: {
type: Array,
default: function _default() {
this._defaultTxts = true;

return this.labels;
}
},
Expand All @@ -8370,11 +8372,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data: function data() {
return {
active: this.current
active: this.current,
usedTxts: this.txts
};
},

watch: {
labels: function labels(newLabels) {
if (this._defaultTxts) {
this.usedTxts = newLabels;
}
},
txts: function txts(newTxts) {
this.usedTxts = newTxts;
},
current: function current(newVal) {
this.active = newVal;
},
Expand Down Expand Up @@ -8462,7 +8473,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}, [_c('div', {
ref: "items",
staticClass: "cube-scroll-nav-bar-items"
}, _vm._l((_vm.txts), function(txt, index) {
}, _vm._l((_vm.usedTxts), function(txt, index) {
return _c('div', {
key: index,
staticClass: "cube-scroll-nav-bar-item",
Expand Down Expand Up @@ -8791,6 +8802,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},

methods: {
scrollTo: function scrollTo() {
this.$refs.scroll && this.$refs.scroll.scrollTo.apply(this.$refs.scroll, arguments);
},
refresh: function refresh() {
this.navBar && this.navBar.refresh();
this.$refs.sticky.refresh();
Expand Down
2 changes: 1 addition & 1 deletion lib/scroll-nav/scroll-nav.min.js

Large diffs are not rendered by default.

0 comments on commit 07a1184

Please sign in to comment.