ComponentOverview.cc27cc47.js 2.6 KB

1
  1. import{_ as O,d as Z,i as A,r as f,u as D,c as I,o as S,g as b,S as $,a as _,b as o,t as u,e as v,f as s,w as a,F as w,h as E,G as U,j as n,k as c,l as z}from"./index.c1b9962e.js";const G=Z({name:"ComponentOverview",setup(){const e=A(U),t=f(""),m=f(),{dataSource:h}=D(),C=I(()=>h.value.filter(r=>r.order>-1).map(r=>{const d=r.children.filter(p=>!t.value.trim()||p.title.toLowerCase().includes(t.value.trim().toLowerCase())||(p.subtitle||"").toLowerCase().includes(t.value.trim().toLowerCase()));return{...r,children:d}}).filter(r=>r.children.length));return S(()=>{m.value.focus()}),{globalConfig:e,search:t,menuItems:C,getLocalizedPathname:b,inputRef:m,isZhCN:e==null?void 0:e.isZhCN}},components:{SearchOutlined:$}}),V={class:"markdown"},j={class:"markdown"},M={class:"ant-typography components-overview-group-title"},P={class:"components-overview-title"},R={class:"components-overview-img"},T=["src","alt"];function W(e,t,m,h,C,r){const d=n("a-divider"),p=n("SearchOutlined"),F=n("a-input"),y=n("a-tag"),g=n("a-space"),k=n("a-card"),N=n("router-link"),B=n("a-col"),L=n("a-row");return c(),_("section",V,[o("h1",null,u(e.isZhCN?"\u7EC4\u4EF6\u603B\u89C8":"Overview"),1),o("section",j,[o("p",null,[t[1]||(t[1]=o("code",null,"ant-design-vue",-1)),v(" "+u(e.isZhCN?"\u4E3A Web \u5E94\u7528\u63D0\u4F9B\u4E86\u4E30\u5BCC\u7684\u57FA\u7840 UI \u7EC4\u4EF6\uFF0C\u6211\u4EEC\u8FD8\u5C06\u6301\u7EED\u63A2\u7D22\u4F01\u4E1A\u7EA7\u5E94\u7528\u7684\u6700\u4F73 UI \u5B9E\u8DF5\u3002":"provides plenty of UI components to enrich your web applications, and we will improve components experience consistently. "),1)])]),s(d),s(F,{ref:"inputRef",value:e.search,"onUpdate:value":t[0]||(t[0]=i=>e.search=i),placeholder:e.$t("app.components.overview.search"),class:"components-overview-search",autoFocus:""},{suffix:a(()=>[s(p)]),_:1},8,["value","placeholder"]),s(d),(c(!0),_(w,null,E(e.menuItems,i=>(c(),_("div",{key:i.title,class:"components-overview"},[o("h2",M,[s(g,{align:"center"},{default:a(()=>[v(u(e.isZhCN?i.title:i.enTitle)+" ",1),s(y,{style:{display:"block"}},{default:a(()=>[v(u(i.children.length),1)]),_:2},1024)]),_:2},1024)]),s(L,{gutter:[24,24]},{default:a(()=>[(c(!0),_(w,null,E(i.children,l=>(c(),z(B,{key:l.title,xs:24,sm:12,lg:8,xl:6},{default:a(()=>[s(N,{to:e.getLocalizedPathname(l.path,e.isZhCN)},{default:a(()=>[s(k,{size:"small",class:"components-overview-card"},{title:a(()=>[o("div",P,u(l.title)+" "+u(e.isZhCN?l.subtitle:""),1)]),default:a(()=>[o("div",R,[o("img",{src:l.cover,alt:l.title},null,8,T)])]),_:2},1024)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:2},1024)]))),128))])}var x=O(G,[["render",W]]);export{x as default};