captain-order-coupon
Advanced tools
Comparing version 0.3.12 to 0.3.13
@@ -599,2 +599,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// | ||
// | ||
@@ -662,2 +663,6 @@ var _vant = __webpack_require__(7); | ||
default: '不可用优惠' | ||
}, | ||
inputPlaceholder: { | ||
type: String, | ||
default: '请输入优惠码' | ||
} | ||
@@ -770,3 +775,4 @@ }, | ||
closeButtonText: String, | ||
disabledListTitle: String | ||
disabledListTitle: String, | ||
inputPlaceholder: String | ||
}, | ||
@@ -780,3 +786,3 @@ | ||
this.$emit('input', val); | ||
val && this.scrollToShowCoupon(this.chosenCoupon); | ||
this.scrollToTop(); | ||
}, | ||
@@ -826,2 +832,9 @@ displayedCouponIndex: function displayedCouponIndex(val) { | ||
}); | ||
}, | ||
scrollToTop: function scrollToTop() { | ||
var list = this.$refs.list; | ||
if (list && 'scrollTop' in list) { | ||
list.scrollTop = 0; | ||
} | ||
} | ||
@@ -1097,3 +1110,4 @@ } | ||
"closeButtonText": _vm.closeButtonText, | ||
"disabledListTitle": _vm.disabledListTitle | ||
"disabledListTitle": _vm.disabledListTitle, | ||
"inputPlaceholder": _vm.inputPlaceholder | ||
}, | ||
@@ -1100,0 +1114,0 @@ on: { |
@@ -648,2 +648,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// | ||
// | ||
@@ -703,2 +704,6 @@ exports.default = { | ||
default: '不可用优惠' | ||
}, | ||
inputPlaceholder: { | ||
type: String, | ||
default: '请输入优惠码' | ||
} | ||
@@ -841,3 +846,4 @@ }, | ||
closeButtonText: String, | ||
disabledListTitle: String | ||
disabledListTitle: String, | ||
inputPlaceholder: String | ||
}, | ||
@@ -851,3 +857,3 @@ | ||
this.$emit('input', val); | ||
val && this.scrollToShowCoupon(this.chosenCoupon); | ||
this.scrollToTop(); | ||
}, | ||
@@ -897,2 +903,9 @@ displayedCouponIndex: function displayedCouponIndex(val) { | ||
}); | ||
}, | ||
scrollToTop: function scrollToTop() { | ||
var list = this.$refs.list; | ||
if (list && 'scrollTop' in list) { | ||
list.scrollTop = 0; | ||
} | ||
} | ||
@@ -1172,3 +1185,4 @@ } | ||
"closeButtonText": _vm.closeButtonText, | ||
"disabledListTitle": _vm.disabledListTitle | ||
"disabledListTitle": _vm.disabledListTitle, | ||
"inputPlaceholder": _vm.inputPlaceholder | ||
}, | ||
@@ -1175,0 +1189,0 @@ on: { |
{ | ||
"name": "captain-order-coupon", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"description": "下单页优惠券组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87767
2033