1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-skeleton/u-skeleton"],{333:function(t,n,e){"use strict";e.r(n);var i=e(334),r=e(336);for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e(339);var a,o=e(36),s=Object(o["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"3bb5bf6e",null,!1,i["components"],a);s.options.__file="uni_modules/uview-ui/components/u-skeleton/u-skeleton.vue",n["default"]=s.exports},334:function(t,n,e){"use strict";e.r(n);var i=e(335);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"]}))},335: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}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.loading&&t.avatar?t.$u.addUnit(t.avatarSize):null),i=t.loading&&t.avatar?t.$u.addUnit(t.avatarSize):null,r=t.loading&&t.title?t.$u.addUnit(t.titleHeight):null;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:r}})},u=!1,a=[];r._withStripped=!0},336:function(t,n,e){"use strict";e.r(n);var i=e(337),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},337:function(t,n,e){"use strict";(function(t){var i=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(30)),u=i(e(32)),a=i(e(338)),o={name:"u-skeleton",mixins:[t.$u.mpMixin,t.$u.mixin,a.default],data:function(){return{width:0}},watch:{loading:function(){this.getComponentWidth()}},computed:{rowsArray:function(){/%$/.test(this.rowsHeight)&&t.$u.error("rowsHeight参数不支持百分比单位");for(var n=[],e=0;e<this.rows;e++){var i={},r=t.$u.test.array(this.rowsWidth)?this.rowsWidth[e]||(e===this.row-1?"70%":"100%"):e===this.rows-1?"70%":this.rowsWidth,u=t.$u.test.array(this.rowsHeight)?this.rowsHeight[e]||"18px":this.rowsHeight;i.marginTop=this.title||0!==e?this.title&&0===e?"20px":"12px":0,/%$/.test(r)?i.width=t.$u.addUnit(this.width*parseInt(r)/100):i.width=t.$u.addUnit(r),i.height=t.$u.addUnit(u),n.push(i)}return n},uTitleWidth:function(){var n=0;return n=/%$/.test(this.titleWidth)?t.$u.addUnit(this.width*parseInt(this.titleWidth)/100):t.$u.addUnit(this.titleWidth),t.$u.addUnit(n)}},mounted:function(){this.init()},methods:{init:function(){this.getComponentWidth()},setNvueAnimation:function(){return(0,u.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},getComponentWidth:function(){var n=this;return(0,u.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$u.sleep(20);case 2:n.$uGetRect(".u-skeleton__wrapper__content").then((function(t){n.width=t.width}));case 3:case"end":return e.stop()}}),e)})))()}}};n.default=o}).call(this,e(2)["default"])},339:function(t,n,e){"use strict";e.r(n);var i=e(340),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},340:function(t,n,e){}}]);
- //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-skeleton/u-skeleton.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'uni_modules/uview-ui/components/u-skeleton/u-skeleton-create-component',
- {
- 'uni_modules/uview-ui/components/u-skeleton/u-skeleton-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(333))
- })
- },
- [['uni_modules/uview-ui/components/u-skeleton/u-skeleton-create-component']]
- ]);
|