(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/x-skeleton/components/x-skeleton/x-skeleton"],{1226:function(t,n,e){"use strict";e.r(n);var i=e("dbda"),o=e("df51");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("6ff6");var a=e("828b"),s=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"67adcfb6",null,!1,i["a"],void 0);n["default"]=s.exports},5884:function(t,n,e){},"6ff6":function(t,n,e){"use strict";var i=e("5884"),o=e.n(i);o.a},"7b33":function(t,n,e){"use strict";var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("52c5")),r={name:"x-skeleton",mixins:[o.default],props:{type:{type:String,default:""},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},animateTime:{type:Number|String,default:1.8},fadeOut:{type:Boolean,default:!0},fadeOutTime:{type:Number|String,default:.5},bgColor:{type:String,default:"#EAEDF5"},highlightBgColor:{type:String,default:"#F9FAFF"},configs:{type:Object,default:function(){return{}}}},computed:{gridRowsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridRows)||[]))},gridColumnsArr:function(){var t;return new Array(Number((null===(t=this.skeletonConfigs)||void 0===t?void 0:t.gridColumns)||[]))},textRowsArr:function(){var t;if(null===(t=this.skeletonConfigs)||void 0===t||!t.textShow)return[];/%$/.test(this.skeletonConfigs.textHeight)&&console.error("x-skeleton: textHeight参数不支持百分比单位");for(var n=[],e=0;e<this.skeletonConfigs.textRows;e++){var i=this.skeletonConfigs,o=i.gridRows,r=i.textWidth,a=i.textHeight,s={},u=this.isArray(r)?r[e]||(e===o-1?"70%":"100%"):e===o-1?"70%":r,l=this.isArray(a)?a[e]||"30rpx":a;/%$/.test(u)?s.width=u:s.width=this.addUnit(u),s.height=this.addUnit(l),n.push(s)}return n},variableStr:function(){var t=this,n=["animateTime","fadeOutTime","bgColor","highlightBgColor"].map((function(n){return n.indexOf("Time")>-1?"--".concat(n,":").concat(t[n],"s"):"--".concat(n,":").concat(t[n])})).join(";");return n}},watch:{loading:{immediate:!0,handler:function(t){var n=this;t?this.skeletonLoading=!0:this.fadeOut?(this.startFadeOut=!0,setTimeout((function(){n.skeletonLoading=!1,n.startFadeOut=!1}),1e3*this.fadeOutTime)):this.skeletonLoading=!1}},type:{immediate:!0,handler:function(t){this.skeletonConfigs="banner"===t?this.bannerConfigs():"info"===t?this.infoConfigs():"text"===t?this.textConfigs():"menu"===t?this.menuConfigs():"list"===t?this.listConfigs():"waterfall"===t?this.waterfallConfigs():this.configs||{}}}},data:function(){return{skeletonConfigs:this.configs||{},skeletonLoading:this.loading,startFadeOut:!1,width:0}},mounted:function(){},methods:{isArray:function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},addUnit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return t=String(t),/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(t)?"".concat(t).concat(n):t}}};n.default=r},dbda:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.skeletonLoading?t.__map(t.gridRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.gridRowsArr.length,r=t.gridColumnsArr.length,a=t.__map(t.gridColumnsArr,(function(n,e){var i=t.__get_orig(n),o=t.skeletonConfigs.textShow?t.__map(t.textRowsArr,(function(n,e){var i=t.__get_orig(n),o=t.textRowsArr.length;return{$orig:i,g2:o}})):null;return{$orig:i,l0:o}}));return{$orig:i,g0:o,g1:r,l1:a}})):null);t.$mp.data=Object.assign({},{$root:{l2:e}})},o=[]},df51:function(t,n,e){"use strict";e.r(n);var i=e("7b33"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/x-skeleton/components/x-skeleton/x-skeleton-create-component',
    {
        'uni_modules/x-skeleton/components/x-skeleton/x-skeleton-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("1226"))
        })
    },
    [['uni_modules/x-skeleton/components/x-skeleton/x-skeleton-create-component']]
]);
