(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-number-box/u-number-box"],{264:function(t,n,e){"use strict";e.r(n);var i=e(265),r=e(267);for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e(269);var a,o=e(32),s=Object(o["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"a54b45c0",null,!1,i["components"],a);s.options.__file="uview-ui/components/u-number-box/u-number-box.vue",n["default"]=s.exports},265:function(t,n,e){"use strict";e.r(n);var i=e(266);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},266:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return a})),e.d(n,"recyclableRender",(function(){return u})),e.d(n,"components",(function(){return i}));try{i={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,295))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var t=this,n=t.$createElement;t._self._c},u=!1,a=[];r._withStripped=!0},267:function(t,n,e){"use strict";e.r(n);var i=e(268),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=r.a},268:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"u-number-box",props:{value:{type:Number,default:1},bgColor:{type:String,default:"#F2F3F5"},min:{type:Number,default:0},max:{type:Number,default:99999},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:26},color:{type:String,default:"#323233"},inputWidth:{type:[Number,String],default:80},inputHeight:{type:[Number,String],default:50},index:{type:[Number,String],default:""},disabledInput:{type:Boolean,default:!1},cursorSpacing:{type:[Number,String],default:100},longPress:{type:Boolean,default:!0},pressTime:{type:[Number,String],default:250},positiveInteger:{type:Boolean,default:!0}},watch:{value:function(t,n){this.changeFromInner||(this.inputVal=t,this.$nextTick((function(){this.changeFromInner=!1})))},inputVal:function(t,n){var e=this;if(""!=t){var i=0,r=this.$u.test.number(t);i=r&&t>=this.min&&t<=this.max?t:n,this.positiveInteger&&(t<0||-1!==String(t).indexOf("."))&&(i=n,this.$nextTick((function(){e.inputVal=n}))),this.handleChange(i,"change")}}},data:function(){return{inputVal:1,timer:null,changeFromInner:!1,innerChangeTimer:null}},created:function(){this.inputVal=Number(this.value)},computed:{getCursorSpacing:function(){return Number(t.upx2px(this.cursorSpacing))}},methods:{btnTouchStart:function(t){var n=this;this[t](),this.longPress&&(clearInterval(this.timer),this.timer=null,this.timer=setInterval((function(){n[t]()}),this.pressTime))},clearTimer:function(){var t=this;this.$nextTick((function(){clearInterval(t.timer),t.timer=null}))},minus:function(){this.computeVal("minus")},plus:function(){this.computeVal("plus")},calcPlus:function(t,n){var e,i,r;try{i=t.toString().split(".")[1].length}catch(a){i=0}try{r=n.toString().split(".")[1].length}catch(a){r=0}e=Math.pow(10,Math.max(i,r));var u=i>=r?i:r;return((t*e+n*e)/e).toFixed(u)},calcMinus:function(t,n){var e,i,r;try{i=t.toString().split(".")[1].length}catch(a){i=0}try{r=n.toString().split(".")[1].length}catch(a){r=0}e=Math.pow(10,Math.max(i,r));var u=i>=r?i:r;return((t*e-n*e)/e).toFixed(u)},computeVal:function(n){if(t.hideKeyboard(),!this.disabled){var e=0;"minus"===n?e=this.calcMinus(this.inputVal,this.step):"plus"===n&&(e=this.calcPlus(this.inputVal,this.step)),e<this.min||e>this.max||(this.inputVal=e,this.handleChange(e,n))}},onBlur:function(t){var n=this,e=0,i=t.detail.value;/(^\d+$)/.test(i)&&0!=i[0]||(e=this.min),e=+i,e>this.max?e=this.max:e<this.min&&(e=this.min),this.$nextTick((function(){n.inputVal=e})),this.handleChange(e,"blur")},onFocus:function(){this.$emit("focus")},handleChange:function(t,n){var e=this;this.disabled||(this.innerChangeTimer&&(clearTimeout(this.innerChangeTimer),this.innerChangeTimer=null),this.changeFromInner=!0,this.innerChangeTimer=setTimeout((function(){e.changeFromInner=!1}),150),this.$emit("input",Number(t)),this.$emit(n,{value:Number(t),index:this.index}))}}};n.default=e}).call(this,e(2)["default"])},269:function(t,n,e){"use strict";e.r(n);var i=e(270),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=r.a},270:function(t,n,e){}}]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-number-box/u-number-box.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uview-ui/components/u-number-box/u-number-box-create-component',
    {
        'uview-ui/components/u-number-box/u-number-box-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(264))
        })
    },
    [['uview-ui/components/u-number-box/u-number-box-create-component']]
]);
