12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/numberScroll"],{"0040d":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={props:{num:[String,Number],color:{type:String,default:"#000000"},width:{type:String,default:"30"},height:{type:String,default:"30"},fontSize:{type:String,default:"30"},fontWeight:{type:[String,Number],default:500}},data:function(){return{indexArr:[]}},created:function(){var t=this.num,n=new Array(t.toString().length);n.fill(0),this.indexArr=n},watch:{num:function(t,n){var e=Array.prototype.slice.apply(this.indexArr),r=t.toString().length,i=n.toString().length;if(r>i){for(var u=0;u<r-i;u++)e.push(0);this.indexArr=e}if(r<i){for(var a=0;a<i-r;a++)e.pop();this.indexArr=e}this.numChange(t)}},mounted:function(){var t=this;this._time=setTimeout((function(){t.numChange(t.num),clearTimeout(t._time)}),50)},methods:{numChange:function(t){var n=this;this.$nextTick((function(){for(var e=n.indexArr,r=Array.prototype.slice.apply(e),i=t.toString(),u=0;u<i.length;u++)"."===i[u]?r[u]=10:r[u]=Number(i[u]);n.indexArr=r}))}}};n.default=r},"0599":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var r=function(){var t=this.$createElement;this._self._c},i=[]},"1ad3":function(t,n,e){"use strict";var r=e("ea6f"),i=e.n(r);i.a},"3acc":function(t,n,e){"use strict";e.r(n);var r=e("0040d"),i=e.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);n["default"]=i.a},b756:function(t,n,e){"use strict";e.r(n);var r=e("0599"),i=e("3acc");for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("1ad3");var a=e("f0c5"),o=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=o.exports},ea6f:function(t,n,e){}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/numberScroll-create-component',
- {
- 'components/numberScroll-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("b756"))
- })
- },
- [['components/numberScroll-create-component']]
- ]);
|