vant/v3/assets/index.e656ebd6.js
2024-04-20 08:49:23 +00:00

2 lines
2.3 KiB
JavaScript

import{z as f,C as v,r as _,o as F,a as x,e as i,w as a,d as o,t as B,B as e,j as c,v as h,T as C,F as k}from"./vue-libs.b44bc779.js";import{V as n}from"./index.bbd81525.js";import{a as E}from"./use-translate.d2900b8c.js";import"./with-install.19a35764.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";const A={class:"van-ellipsis"},g={class:"van-multi-ellipsis--l2"},w=o("div",{class:"van-hairline--top"},null,-1),S={class:"demo-animate-block"},z=f({__name:"index",setup(T){const u=E({"zh-CN":{hairline:"1px \u8FB9\u6846",ellipsis:"\u6587\u5B57\u7701\u7565",animation:"\u52A8\u753B",toggle:"\u5207\u6362\u52A8\u753B",text1:"\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E00\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565",text2:"\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E24\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565\u3002\u8FD9\u662F\u4E00\u6BB5\u6700\u591A\u663E\u793A\u4E24\u884C\u7684\u6587\u5B57\uFF0C\u540E\u9762\u7684\u5185\u5BB9\u4F1A\u7701\u7565"},"en-US":{hairline:"Hairline",ellipsis:"Text Ellipsis",animation:"Animation",toggle:"Switch animation",text1:"This is a paragraph that displays up to one line of text, and the rest of the text will be omitted.",text2:"This is a paragraph that displays up to two lines of text, and the rest of the text will be omitted."}}),r=v(!1),p=v(""),l=m=>{r.value=!0,p.value=m,setTimeout(()=>{r.value=!1},500)};return(m,t)=>{const d=_("demo-block");return F(),x(k,null,[i(d,{title:e(u)("ellipsis")},{default:a(()=>[o("div",A,B(e(u)("text1")),1),o("div",g,B(e(u)("text2")),1)]),_:1},8,["title"]),i(d,{card:"",title:e(u)("hairline")},{default:a(()=>[w]),_:1},8,["title"]),i(d,{card:"",title:e(u)("animation")},{default:a(()=>[i(e(n),{"is-link":"",title:"Fade",onClick:t[0]||(t[0]=s=>l("van-fade"))}),i(e(n),{"is-link":"",title:"Slide Up",onClick:t[1]||(t[1]=s=>l("van-slide-up"))}),i(e(n),{"is-link":"",title:"Slide Down",onClick:t[2]||(t[2]=s=>l("van-slide-down"))}),i(e(n),{"is-link":"",title:"Slide Left",onClick:t[3]||(t[3]=s=>l("van-slide-left"))}),i(e(n),{"is-link":"",title:"Slide Right",onClick:t[4]||(t[4]=s=>l("van-slide-right"))})]),_:1},8,["title"]),i(C,{name:p.value},{default:a(()=>[c(o("div",S,null,512),[[h,r.value]])]),_:1},8,["name"])],64)}}});export{z as default};