u-swiper.js 5.0 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-swiper/u-swiper"],{170:function(e,t,n){"use strict";n.r(t);var i=n(171),r=n(173);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n(176);var u,a=n(11),c=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"7b038a67",null,!1,i["components"],u);c.options.__file="node_modules/uview-ui/components/u-swiper/u-swiper.vue",t["default"]=c.exports},171:function(e,t,n){"use strict";n.r(t);var i=n(172);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"]}))},172: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("node-modules/uview-ui/components/u-loading-icon/u-loading-icon")]).then(n.bind(null,195))},uSwiperIndicator:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-swiper-indicator/u-swiper-indicator")]).then(n.bind(null,203))}}}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)]);e.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:r,g3:o,g4:u,l0:a,s1:c}})},o=!1,u=[];r._withStripped=!0},173:function(e,t,n){"use strict";n.r(t);var i=n(174),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},174:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(175));function r(e){return e&&e.__esModule?e:{default:e}}var o={name:"u-swiper",mixins:[e.$u.mpMixin,e.$u.mixin,i.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"===typeof 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"===typeof 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"===typeof e&&e.poster?e.poster:""},clickHandler:function(e){this.$emit("click",e)}}};t.default=o}).call(this,n(1)["default"])},176:function(e,t,n){"use strict";n.r(t);var i=n(177),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},177:function(e,t,n){}}]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-ui/components/u-swiper/u-swiper.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'node-modules/uview-ui/components/u-swiper/u-swiper-create-component',
    {
        'node-modules/uview-ui/components/u-swiper/u-swiper-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(170))
        })
    },
    [['node-modules/uview-ui/components/u-swiper/u-swiper-create-component']]
]);