{"size": 2346, "ext": "js", "max_stars_repo_path": "unpackage/dist/build/.tmp/app-plus/components/uni-number-box/uni-number-box.js", "max_stars_repo_name": "truthiswong/cuncun-uni", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "unpackage/dist/build/.tmp/app-plus/components/uni-number-box/uni-number-box.js", "max_issues_repo_name": "truthiswong/cuncun-uni", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "unpackage/dist/build/.tmp/app-plus/components/uni-number-box/uni-number-box.js", "max_forks_repo_name": "truthiswong/cuncun-uni", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 213.2727272727, "max_line_length": 1915, "alphanum_fraction": 0.6675191816}
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-number-box/uni-number-box"],{"1c94":function(t,e,n){"use strict";var i=n("8406"),u=n.n(i);u.a},"3a0f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"UniNumberBox",props:{value:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1}},data:function(){return{inputValue:0}},watch:{value:function(t){this.inputValue=+t},inputValue:function(t,e){+t!==+e&&this.$emit("change",t)}},created:function(){this.inputValue=+this.value},methods:{_calcValue:function(t){if(!this.disabled){var e=this._getDecimalScale(),n=this.inputValue*e,i=this.step*e;if("minus"===t){if(n-=i,n<this.min)return;n>this.max&&(n=this.max)}else if("plus"===t){if(n+=i,n>this.max)return;n<this.min&&(n=this.min)}this.inputValue=String(n/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)}}};e.default=i},8406:function(t,e,n){},"85b1":function(t,e,n){"use strict";n.r(e);var i=n("3a0f"),u=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a},a6c6:function(t,e,n){"use strict";n.r(e);var i=n("e9d3"),u=n("85b1");for(var a in u)"default"!==a&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("1c94");var r,s=n("f0c5"),l=Object(s["a"])(u["default"],i["b"],i["c"],!1,null,"bcd7fb04",null,!1,i["a"],r);e["default"]=l.exports},e9d3:function(t,e,n){"use strict";var i,u=function(){var t=this,e=t.$createElement;t._self._c},a=[];n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}))}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uni-number-box/uni-number-box-create-component',
    {
        'components/uni-number-box/uni-number-box-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('6e42')['createComponent'](__webpack_require__("a6c6"))
        })
    },
    [['components/uni-number-box/uni-number-box-create-component']]
]);
