1 |
- "use strict";const t=require("../../../../common/vendor.js"),e=t.defineComponent({__name:"wd-swiper-nav",props:t.swiperNavprops,emits:["change"],setup(e,{emit:o}){const n=o;function s(t){n("change",{dir:t,source:"nav"})}return(e,o)=>t.e({a:e.showControls},e.showControls?{b:t.o((t=>s("prev"))),c:t.o((t=>s("next")))}:{},{d:e.total>=e.minShowNum},e.total>=e.minShowNum?t.e({e:"dots"===e.type||"dots-bar"===e.type},"dots"===e.type||"dots-bar"===e.type?{f:t.f(e.total,((o,n,s)=>({a:n,b:t.n(`wd-swiper-nav__item--${e.type} ${e.current===n?"is-active":""} is-${e.direction}`)})))}:{},{g:"fraction"===e.type},"fraction"===e.type?{h:t.t(e.current+1),i:t.t(e.total)}:{},{j:t.s(e.customStyle),k:t.n(`wd-swiper-nav wd-swiper-nav--${e.direction} wd-swiper-nav--${e.type} wd-swiper-nav--${e.indicatorPosition} ${e.customClass}`)}):{})}}),o=t._export_sfc(e,[["__scopeId","data-v-30cb510a"]]);wx.createComponent(o);
|