(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/plugin/number-box"],{"1b1f":function(t,e,u){"use strict";var i=u("73ae"),n=u.n(i);n.a},"1bfd":function(t,e,u){"use strict";u.r(e);var i=u("96de"),n=u("78e1");for(var a in n)["default"].indexOf(a)<0&&function(t){u.d(e,t,(function(){return n[t]}))}(a);u("1b1f");var r,l=u("0095"),s=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=s.exports},"5d5b":function(t,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"tuiNumberbox",props:{value:{type:Number,default:1},min:{type:Number,default:1},max:{type:Number,default:99},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},iconSize:{type:Number,default:26},iconColor:{type:String,default:"#666666"},height:{type:Number,default:42},width:{type:Number,default:80},size:{type:Number,default:28},bgcolor:{type:String,default:"#F5F5F5"},color:{type:String,default:"#333"},index:{type:[Number,String],default:0},custom:{type:[Number,String],default:0}},created:function(){this.inputValue=+this.value},data:function(){return{inputValue:0}},watch:{value:function(t){this.inputValue=+t}},methods:{getScale:function(){var t=1;return Number.isInteger(this.step)||(t=Math.pow(10,(this.step+"").split(".")[1].length)),t},calcNum:function(t){if(!this.disabled){var e=this.getScale(),u=this.value*e,i=this.step*e;"reduce"===t?u-=i:"plus"===t&&(u+=i);var n=u/e;"plus"===t&&n<this.min?n=this.min:"reduce"===t&&n>this.max&&(n=this.max),n<this.min||n>this.max||this.handleChange(n,t)}},plus:function(){this.calcNum("plus")},reduce:function(){this.calcNum("reduce")},blur:function(t){var e=t.detail.value;e?(~e.indexOf(".")&&Number.isInteger(this.step)&&(e=e.split(".")[0]),e=Number(e),e>this.max?e=this.max:e<this.min&&(e=this.min)):e=this.min,e==this.value&&e!=this.inputValue&&(this.inputValue=e),this.handleChange(e,"blur")},handleChange:function(t,e){this.disabled||this.$emit("change",{value:t,type:e,index:this.index,custom:this.custom})}}};e.default=i},"73ae":function(t,e,u){},"78e1":function(t,e,u){"use strict";u.r(e);var i=u("5d5b"),n=u.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){u.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},"96de":function(t,e,u){"use strict";var i;u.d(e,"b",(function(){return n})),u.d(e,"c",(function(){return a})),u.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement;t._self._c},a=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/plugin/number-box-create-component',
    {
        'components/plugin/number-box-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('f3be')['createComponent'](__webpack_require__("1bfd"))
        })
    },
    [['components/plugin/number-box-create-component']]
]);
