Comparing version 0.9.8 to 0.9.9
@@ -224,3 +224,3 @@ 'use strict'; | ||
var version = '0.9.8'; | ||
var version = '0.9.9'; | ||
var components = [_actionsheet2.default, _addressList2.default, _area2.default, _badge2.default, _badgeGroup2.default, _button2.default, _card2.default, _cell2.default, _cellGroup2.default, _cellSwipe2.default, _checkbox2.default, _checkboxGroup2.default, _col2.default, _couponCell2.default, _couponList2.default, _datetimePicker2.default, _field2.default, _goodsAction2.default, _goodsActionBigBtn2.default, _goodsActionMiniBtn2.default, _icon2.default, _loading2.default, _navBar2.default, _noticeBar2.default, _numberKeyboard2.default, _panel2.default, _passwordInput2.default, _picker2.default, _popup2.default, _progress2.default, _pullRefresh2.default, _radio2.default, _radioGroup2.default, _row2.default, _search2.default, _sku2.default, _step2.default, _stepper2.default, _steps2.default, _submitBar2.default, _swipe2.default, _swipeItem2.default, _switch2.default, _switchCell2.default, _tab2.default, _tabs2.default, _tag2.default, _treeSelect2.default, _uploader2.default]; | ||
@@ -227,0 +227,0 @@ |
@@ -19,3 +19,3 @@ 'use strict'; | ||
render: function render() { | ||
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "van-sku-stepper-stock" }, [_c('div', { staticClass: "van-sku-stepper-container" }, [_c('div', { staticClass: "van-sku__stepper-title" }, [_vm._v(_vm._s(_vm.stepperTitle) + ":")]), _c('van-stepper', { staticClass: "van-sku__stepper", attrs: { "min": 1, "max": _vm.stepperLimit }, on: { "overlimit": _vm.handleOverLimit }, model: { value: _vm.currentNum, callback: function callback($$v) { | ||
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "van-sku-stepper-stock" }, [_c('div', { staticClass: "van-sku-stepper-container" }, [_c('div', { staticClass: "van-sku__stepper-title" }, [_vm._v(_vm._s(_vm.stepperTitle) + ":")]), _c('van-stepper', { staticClass: "van-sku__stepper", attrs: { "min": 1, "max": _vm.stepperLimit, "disableInput": _vm.disableStepperInput }, on: { "overlimit": _vm.handleOverLimit }, model: { value: _vm.currentNum, callback: function callback($$v) { | ||
_vm.currentNum = $$v; | ||
@@ -41,2 +41,6 @@ }, expression: "currentNum" } })], 1), !_vm.hideStock ? _c('div', { staticClass: "van-sku__stock" }, [_vm._v("剩余" + _vm._s(_vm.stock) + "件")]) : _vm._e(), _vm.quota > 0 ? _c('div', { staticClass: "van-sku__quota" }, [_vm._v("每人限购" + _vm._s(_vm.quota) + "件")]) : _vm._e()]); | ||
}, | ||
disableStepperInput: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
stepperTitle: { | ||
@@ -43,0 +47,0 @@ type: String, |
@@ -62,3 +62,3 @@ 'use strict'; | ||
}))], 1); | ||
})) : _vm._e()], { selectedSku: _vm.selectedSku }), _vm._t("extra-sku-group", null, { skuEventBus: _vm.skuEventBus }), _vm._t("sku-stepper", [_c('van-sku-stepper', { ref: "skuStepper", attrs: { "skuEventBus": _vm.skuEventBus, "selectedSku": _vm.selectedSku, "selectedSkuComb": _vm.selectedSkuComb, "selectedNum": _vm.selectedNum, "stepperTitle": _vm.stepperTitle, "skuStockNum": _vm.sku.stock_num, "quota": _vm.quota, "quotaUsed": _vm.quotaUsed, "hideStock": _vm.hideStock } })], { skuEventBus: _vm.skuEventBus, selectedSku: _vm.selectedSku, selectedSkuComb: _vm.selectedSkuComb, selectedNum: _vm.selectedNum }), _vm._t("sku-messages", [_c('van-sku-messages', { ref: "skuMessages", attrs: { "goodsId": _vm.goodsId, "messagePlaceholderMap": _vm.messagePlaceholderMap, "messages": _vm.sku.messages } })])], 2), _vm._t("sku-actions", [_c('van-sku-actions', { attrs: { "skuEventBus": _vm.skuEventBus, "buyText": _vm.buyText, "showAddCartBtn": _vm.showAddCartBtn } })], { skuEventBus: _vm.skuEventBus })], 2)])]) : _vm._e(); | ||
})) : _vm._e()], { selectedSku: _vm.selectedSku }), _vm._t("extra-sku-group", null, { skuEventBus: _vm.skuEventBus }), _vm._t("sku-stepper", [_c('van-sku-stepper', { ref: "skuStepper", attrs: { "skuEventBus": _vm.skuEventBus, "selectedSku": _vm.selectedSku, "selectedSkuComb": _vm.selectedSkuComb, "selectedNum": _vm.selectedNum, "stepperTitle": _vm.stepperTitle, "skuStockNum": _vm.sku.stock_num, "quota": _vm.quota, "quotaUsed": _vm.quotaUsed, "disableStepperInput": _vm.disableStepperInput, "hideStock": _vm.hideStock } })], { skuEventBus: _vm.skuEventBus, selectedSku: _vm.selectedSku, selectedSkuComb: _vm.selectedSkuComb, selectedNum: _vm.selectedNum }), _vm._t("sku-messages", [_c('van-sku-messages', { ref: "skuMessages", attrs: { "goodsId": _vm.goodsId, "messagePlaceholderMap": _vm.messagePlaceholderMap, "messages": _vm.sku.messages } })])], 2), _vm._t("sku-actions", [_c('van-sku-actions', { attrs: { "skuEventBus": _vm.skuEventBus, "buyText": _vm.buyText, "showAddCartBtn": _vm.showAddCartBtn } })], { skuEventBus: _vm.skuEventBus })], 2)])]) : _vm._e(); | ||
}, | ||
@@ -106,2 +106,3 @@ | ||
resetStepperOnHide: Boolean, | ||
disableStepperInput: Boolean, | ||
messagePlaceholderMap: { | ||
@@ -108,0 +109,0 @@ type: Object, |
'use strict'; | ||
exports.__esModule = true; | ||
var _isNan = require('babel-runtime/core-js/number/is-nan'); | ||
var _isNan2 = _interopRequireDefault(_isNan); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = { | ||
@@ -10,3 +17,3 @@ render: function render() { | ||
_vm.handleChange('minus'); | ||
} } }), _c('input', { staticClass: "van-stepper__input", attrs: { "type": "text", "disabled": _vm.disabled }, domProps: { "value": _vm.currentValue }, on: { "input": _vm.handleInputChange } }), _c('button', { staticClass: "van-stepper__stepper van-stepper__plus", class: { | ||
} } }), _c('input', { staticClass: "van-stepper__input", attrs: { "type": "number", "disabled": _vm.disabled || _vm.disableInput }, domProps: { "value": _vm.currentValue }, on: { "input": _vm.handleInputChange } }), _c('button', { staticClass: "van-stepper__stepper van-stepper__plus", class: { | ||
'van-stepper__plus--disabled': _vm.isPlusDisabled | ||
@@ -35,2 +42,3 @@ }, on: { "click": function click($event) { | ||
disabled: Boolean, | ||
disableInput: Boolean, | ||
defaultValue: { | ||
@@ -86,4 +94,9 @@ type: [String, Number], | ||
correctValue: function correctValue(value) { | ||
value = Math.max(this.min, value); | ||
value = Math.min(this.max, value); | ||
if ((0, _isNan2.default)(value)) { | ||
value = this.min; | ||
} else { | ||
value = Math.max(this.min, value); | ||
value = Math.min(this.max, value); | ||
} | ||
return value; | ||
@@ -90,0 +103,0 @@ }, |
@@ -80,3 +80,3 @@ 'use strict'; | ||
if (element === scrollEventTarget) { | ||
needLoadMoreToLower = scrollEventTarget.scollHeight - targetBottom < this.offset; | ||
needLoadMoreToLower = scrollEventTarget.scrollHeight - targetBottom < this.offset; | ||
} else { | ||
@@ -83,0 +83,0 @@ var elementBottom = _scroll2.default.getElementTop(element) - _scroll2.default.getElementTop(scrollEventTarget) + _scroll2.default.getVisibleHeight(element); |
{ | ||
"name": "vant", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"description": "有赞vue wap组件库", | ||
@@ -44,3 +44,3 @@ "main": "lib/vant.js", | ||
"author": "youzanfe", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -47,0 +47,0 @@ "babel-runtime": "6.x", |
@@ -56,3 +56,3 @@ import Actionsheet from './actionsheet'; | ||
const version = '0.9.8'; | ||
const version = '0.9.9'; | ||
const components = [ | ||
@@ -59,0 +59,0 @@ Actionsheet, |
{ | ||
"name": "vant-css", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"description": "vant css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.css", |
@@ -45,3 +45,3 @@ import Utils from '../utils/scroll'; | ||
if (element === scrollEventTarget) { | ||
needLoadMoreToLower = scrollEventTarget.scollHeight - targetBottom < this.offset; | ||
needLoadMoreToLower = scrollEventTarget.scrollHeight - targetBottom < this.offset; | ||
} else { | ||
@@ -48,0 +48,0 @@ const elementBottom = Utils.getElementTop(element) - Utils.getElementTop(scrollEventTarget) + Utils.getVisibleHeight(element); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1354389
0
23428