u-swiper.js 4.9 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-swiper/u-swiper"],{877:function(e,t,n){"use strict";n.r(t);var i=n(878),r=n(880);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(883);var u,a=n(37),c=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"a5b2d580",null,!1,i["components"],u);c.options.__file="uview-ui/components/u-swiper/u-swiper.vue",t["default"]=c.exports},878:function(e,t,n){"use strict";n.r(t);var i=n(879);n.d(t,"render",(function(){return i["render"]})),n.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(t,"components",(function(){return i["components"]}))},879:function(e,t,n){"use strict";var i;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return i}));try{i={uLoadingIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-loading-icon/u-loading-icon")]).then(n.bind(null,1458))},uSwiperIndicator:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-swiper-indicator/u-swiper-indicator")]).then(n.bind(null,1466))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$u.addUnit(e.height)),i=e.$u.addUnit(e.radius),r=e.loading?null:e.$u.addUnit(e.height),o=e.loading?null:e.$u.addUnit(e.previousMargin),u=e.loading?null:e.$u.addUnit(e.nextMargin),a=e.loading?null:e.__map(e.list,(function(t,n){var i=e.__get_orig(t),r=e.__get_style([e.itemStyle(n)]),o=e.getItemType(t),u="image"===o?e.$u.addUnit(e.height):null,a="image"===o?e.$u.addUnit(e.radius):null,c="image"===o?e.getSource(t):null,d=e.getItemType(t),s="video"===d?e.$u.addUnit(e.height):null,l="video"===d?e.getSource(t):null,f="video"===d?e.getPoster(t):null,g="video"===d?e.showTitle&&e.$u.test.object(t)&&t.title:null,m=e.showTitle&&e.$u.test.object(t)&&t.title&&e.$u.test.image(e.getSource(t));return{$orig:i,s0:r,m0:o,g5:u,g6:a,m1:c,m2:d,g7:s,m3:l,m4:f,g8:g,g9:m}})),c=e.__get_style([e.$u.addStyle(e.indicatorStyle)]),d=e.loading||!e.indicator||e.showTitle?null:e.list.length;e.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:r,g3:o,g4:u,l0:a,s1:c,g10:d}})},o=!1,u=[];r._withStripped=!0},880:function(e,t,n){"use strict";n.r(t);var i=n(881),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},881:function(e,t,n){"use strict";(function(e){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(13)),o=i(n(882)),u={name:"u-swiper",mixins:[e.$u.mpMixin,e.$u.mixin,o.default],data:function(){return{currentIndex:0}},watch:{current:function(e,t){e!==t&&(this.currentIndex=e)}},computed:{itemStyle:function(){var t=this;return function(n){var i={};return t.nextMargin&&t.previousMargin&&(i.borderRadius=e.$u.addUnit(t.radius),n!==t.currentIndex&&(i.transform="scale(0.92)")),i}}},methods:{getItemType:function(t){return"string"===typeof t?e.$u.test.video(this.getSource(t))?"video":"image":"object"===(0,r.default)(t)&&this.keyName?t.type?"image"===t.type?"image":"video"===t.type?"video":"image":e.$u.test.video(this.getSource(t))?"video":"image":void 0},getSource:function(t){return"string"===typeof t?t:"object"===(0,r.default)(t)&&this.keyName?t[this.keyName]:(e.$u.error("请按格式传递列表参数"),"")},change:function(e){var t=e.detail.current;this.pauseVideo(this.currentIndex),this.currentIndex=t,this.$emit("change",e.detail)},pauseVideo:function(t){var n=this.getSource(this.list[t]);if(e.$u.test.video(n)){var i=e.createVideoContext("video-".concat(t),this);i.pause()}},getPoster:function(e){return"object"===(0,r.default)(e)&&e.poster?e.poster:""},clickHandler:function(e){this.$emit("click",e)}}};t.default=u}).call(this,n(2)["default"])},883:function(e,t,n){"use strict";n.r(t);var i=n(884),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},884:function(e,t,n){}}]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-swiper/u-swiper.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uview-ui/components/u-swiper/u-swiper-create-component',
  5. {
  6. 'uview-ui/components/u-swiper/u-swiper-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(877))
  8. })
  9. },
  10. [['uview-ui/components/u-swiper/u-swiper-create-component']]
  11. ]);