mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
import{V as a,a as l}from"./index.bb5818e1.js";import{V as x}from"./index.45d743b7.js";import{c as d}from"./index.d8fe3225.js";import{a as p}from"./use-translate.d2900b8c.js";import{z as f,r as _,o as i,a as c,e,w as o,B as t,F as m,b as s}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./constant.80c6de18.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";const v=f({__name:"index",setup(h){const u=p({"zh-CN":{text:"\u6587\u5B57",route:"\u9875\u9762\u5BFC\u822A",gutter:"\u683C\u5B50\u95F4\u8DDD",square:"\u6B63\u65B9\u5F62\u683C\u5B50",columnNum:"\u81EA\u5B9A\u4E49\u5217\u6570",customContent:"\u81EA\u5B9A\u4E49\u5185\u5BB9",urlRoute:"URL \u8DF3\u8F6C",vueRoute:"\u8DEF\u7531\u8DF3\u8F6C",showBadge:"\u5FBD\u6807\u63D0\u793A",horizontal:"\u5185\u5BB9\u6A2A\u6392"},"en-US":{text:"Text",route:"Route",gutter:"Gutter",square:"Square",columnNum:"Column Num",customContent:"Custom Content",urlRoute:"URL",vueRoute:"Vue Router",showBadge:"Show Badge",horizontal:"Horizontal"}});return(B,g)=>{const n=_("demo-block");return i(),c(m,null,[e(n,{title:t(u)("basicUsage")},{default:o(()=>[e(t(a),null,{default:o(()=>[(i(),c(m,null,s(4,r=>e(t(l),{key:r,icon:"photo-o",text:t(u)("text")},null,8,["text"])),64))]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("columnNum")},{default:o(()=>[e(t(a),{"column-num":3},{default:o(()=>[(i(),c(m,null,s(6,r=>e(t(l),{key:r,icon:"photo-o",text:t(u)("text")},null,8,["text"])),64))]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("customContent")},{default:o(()=>[e(t(a),{border:!1,"column-num":3},{default:o(()=>[e(t(l),null,{default:o(()=>[e(t(x),{fit:"contain",src:t(d)("apple-1.jpeg")},null,8,["src"])]),_:1}),e(t(l),null,{default:o(()=>[e(t(x),{fit:"contain",src:t(d)("apple-2.jpeg")},null,8,["src"])]),_:1}),e(t(l),null,{default:o(()=>[e(t(x),{fit:"contain",src:t(d)("apple-3.jpeg")},null,8,["src"])]),_:1})]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("square")},{default:o(()=>[e(t(a),{square:""},{default:o(()=>[(i(),c(m,null,s(8,r=>e(t(l),{key:r,icon:"photo-o",text:t(u)("text")},null,8,["text"])),64))]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("gutter")},{default:o(()=>[e(t(a),{gutter:10},{default:o(()=>[(i(),c(m,null,s(8,r=>e(t(l),{key:r,icon:"photo-o",text:t(u)("text")},null,8,["text"])),64))]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("horizontal")},{default:o(()=>[e(t(a),{direction:"horizontal","column-num":3},{default:o(()=>[e(t(l),{icon:"photo-o",text:t(u)("text")},null,8,["text"]),e(t(l),{icon:"photo-o",text:t(u)("text")},null,8,["text"]),e(t(l),{icon:"photo-o",text:t(u)("text")},null,8,["text"])]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("route")},{default:o(()=>[e(t(a),{clickable:"","column-num":2},{default:o(()=>[e(t(l),{icon:"home-o",text:t(u)("vueRoute"),to:"/"},null,8,["text"]),e(t(l),{icon:"search",text:t(u)("urlRoute"),url:"https://github.com/vant-ui/vant"},null,8,["text"])]),_:1})]),_:1},8,["title"]),e(n,{title:t(u)("showBadge")},{default:o(()=>[e(t(a),{"column-num":2},{default:o(()=>[e(t(l),{icon:"home-o",text:t(u)("text"),dot:""},null,8,["text"]),e(t(l),{icon:"search",text:t(u)("text"),badge:"99+"},null,8,["text"])]),_:1})]),_:1},8,["title"])],64)}}});export{v as default};
|