mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{V as s,b as o}from"./index.1461a543.js";import{c as _}from"./index.d8fe3225.js";import{T as E}from"./function-call.509e41a7.js";import{a as y}from"./use-translate.d2900b8c.js";import{z as C,r as S,o as c,a as r,e,w as t,B as l,F as p,b as x,d as f,t as m,h as i}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./use-touch.04ca7093.js";import"./use-expose.c942d5f8.js";import"./on-popup-reopen.138c77eb.js";import"./mount-component.f3744995.js";import"./index.b70c9b40.js";import"./index.e6e790ed.js";import"./constant.80c6de18.js";import"./interceptor.f0c85874.js";import"./use-lazy-render.f712e85e.js";import"./index.d46e53a8.js";import"./index.4e4daaac.js";const A=i("1"),F=i("2"),B=i("3"),D=i("4"),v=["src"],V=i("1"),b=i("2"),k=i("3"),z=i("4"),j=i("1"),N=i("2"),T=i("3"),L=i("4"),U=i("1"),I=i("2"),R=i("3"),q=i("4"),G=i("1"),H=i("2"),J=i("3"),K=i("4"),M={class:"custom-indicator"},ct=C({__name:"index",setup(O){const a=y({"zh-CN":{title2:"\u61D2\u52A0\u8F7D",title3:"\u76D1\u542C change \u4E8B\u4EF6",title4:"\u7EB5\u5411\u6EDA\u52A8",title5:"\u81EA\u5B9A\u4E49\u6ED1\u5757\u5927\u5C0F",title6:"\u81EA\u5B9A\u4E49\u6307\u793A\u5668",message:"\u5F53\u524D Swipe \u7D22\u5F15\uFF1A"},"en-US":{title2:"Lazy Render",title3:"Change Event",title4:"Vertical Scrolling",title5:"Set SwipeItem Size",title6:"Custom indicator",message:"Current Swipe index:"}}),h=[_("apple-1.jpeg"),_("apple-2.jpeg"),_("apple-3.jpeg"),_("apple-4.jpeg")],g=d=>E(a("message")+d);return(d,P)=>{const u=S("demo-block");return c(),r(p,null,[e(u,{title:l(a)("basicUsage")},{default:t(()=>[e(l(s),{autoplay:3e3,"indicator-color":"white"},{default:t(()=>[e(l(o),null,{default:t(()=>[A]),_:1}),e(l(o),null,{default:t(()=>[F]),_:1}),e(l(o),null,{default:t(()=>[B]),_:1}),e(l(o),null,{default:t(()=>[D]),_:1})]),_:1})]),_:1},8,["title"]),e(u,{title:l(a)("title2")},{default:t(()=>[e(l(s),{autoplay:3e3,"lazy-render":""},{default:t(()=>[(c(),r(p,null,x(h,n=>e(l(o),{key:n},{default:t(()=>[f("img",{src:n},null,8,v)]),_:2},1024)),64))]),_:1})]),_:1},8,["title"]),e(u,{title:l(a)("title3")},{default:t(()=>[e(l(s),{"indicator-color":"white",onChange:g},{default:t(()=>[e(l(o),null,{default:t(()=>[V]),_:1}),e(l(o),null,{default:t(()=>[b]),_:1}),e(l(o),null,{default:t(()=>[k]),_:1}),e(l(o),null,{default:t(()=>[z]),_:1})]),_:1})]),_:1},8,["title"]),e(u,{title:l(a)("title4")},{default:t(()=>[e(l(s),{vertical:"",autoplay:3e3,"indicator-color":"white",style:{height:"200px"},class:"demo-swipe--vertical"},{default:t(()=>[e(l(o),null,{default:t(()=>[j]),_:1}),e(l(o),null,{default:t(()=>[N]),_:1}),e(l(o),null,{default:t(()=>[T]),_:1}),e(l(o),null,{default:t(()=>[L]),_:1})]),_:1})]),_:1},8,["title"]),e(u,{title:l(a)("title5")},{default:t(()=>[e(l(s),{width:300,loop:!1,"indicator-color":"white"},{default:t(()=>[e(l(o),null,{default:t(()=>[U]),_:1}),e(l(o),null,{default:t(()=>[I]),_:1}),e(l(o),null,{default:t(()=>[R]),_:1}),e(l(o),null,{default:t(()=>[q]),_:1})]),_:1})]),_:1},8,["title"]),e(u,{title:l(a)("title6")},{default:t(()=>[e(l(s),null,{indicator:t(({active:n,total:w})=>[f("div",M,m(n+1)+"/"+m(w),1)]),default:t(()=>[e(l(o),null,{default:t(()=>[G]),_:1}),e(l(o),null,{default:t(()=>[H]),_:1}),e(l(o),null,{default:t(()=>[J]),_:1}),e(l(o),null,{default:t(()=>[K]),_:1})]),_:1})]),_:1},8,["title"])],64)}}});export{ct as default};
|