(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-number-box"],{624:function(t,e,n){"use strict";n.r(e);var i=n(625),a=n(627);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n(629);var s,r=n(39),l=Object(r["default"])(a["default"],i["render"],i["staticRenderFns"],!1,null,"75f95e3f",null,!1,i["components"],s);l.options.__file="components/uni-number-box.vue",e["default"]=l.exports},625:function(t,e,n){"use strict";n.r(e);var i=n(626);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},626:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return a})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return u})),n.d(e,"components",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},u=!1,s=[];a._withStripped=!0},627:function(t,e,n){"use strict";n.r(e);var i=n(628),a=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=a.a},628:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-number-box",props:{isMax:{type:Boolean,default:!1},isMin:{type:Boolean,default:!1},index:{type:Number,default:0},value:{type:Number,default:0},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:Number,default:1},disabled:{type:Boolean,default:!1}},data:function(){return{inputValue:this.value,minDisabled:!1,maxDisabled:!1}},created:function(){this.maxDisabled=this.isMax,this.minDisabled=this.isMin},computed:{},watch:{inputValue:function(t){var e={number:t,index:this.index};this.$emit("eventChange",e)}},methods:{_calcValue:function(t){var e=this._getDecimalScale(),n=this.inputValue*e,i=0,a=this.step*e;console.log(this.min,this.max),"subtract"===t?(i=n-a,i<=this.min&&(this.minDisabled=!0),i<this.min&&(i=this.min),i<this.max&&!0===this.maxDisabled&&(this.maxDisabled=!1)):"add"===t&&(i=n+a,i>=this.max&&(this.maxDisabled=!0),i>this.max&&(i=this.max),i>this.min&&!0===this.minDisabled&&(this.minDisabled=!1)),i!==n&&(this.inputValue=i/e)},_getDecimalScale:function(){var t=1;return~~this.step!==this.step&&(t=Math.pow(10,(this.step+"").split(".")[1].length)),t},_onBlur:function(t){var e=t.detail.value;e?(e=+e,e>this.max?e=this.max:e<this.min&&(e=this.min),this.inputValue=e):this.inputValue=0}}};e.default=i},629:function(t,e,n){"use strict";n.r(e);var i=n(630),a=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=a.a},630:function(t,e,n){}}]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/uni-number-box.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uni-number-box-create-component',
    {
        'components/uni-number-box-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(624))
        })
    },
    [['components/uni-number-box-create-component']]
]);
