提交 07a1184d 编写于 作者: D dolymood

build: package

上级 ca81be18
此差异已折叠。
......@@ -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
......@@ -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();
......@@ -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;
}
},
......@@ -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;
},
......@@ -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",
......
......@@ -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;
}
},
......@@ -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;
},
......@@ -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",
......
......@@ -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;
}
},
......@@ -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;
},
......@@ -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",
......@@ -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();
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册