mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{V as l}from"./index.8e37fe56.js";import{c as o}from"./index.d8fe3225.js";import{a as p}from"./use-translate.d2900b8c.js";import{z as s,r as d,o as m,a as c,e,w as a,d as y,B as t,h as n,t as r,F as x}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./constant.80c6de18.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";import"./index.4e4daaac.js";const _={class:"demo-button-row"},v=s({__name:"index",setup(g){const u=p({"zh-CN":{type:"\u6309\u94AE\u7C7B\u578B",size:"\u6309\u94AE\u5C3A\u5BF8",icon:"\u56FE\u6807\u6309\u94AE",loading:"\u52A0\u8F7D\u72B6\u6001",shape:"\u6309\u94AE\u5F62\u72B6",default:"\u9ED8\u8BA4\u6309\u94AE",primary:"\u4E3B\u8981\u6309\u94AE",success:"\u6210\u529F\u6309\u94AE",danger:"\u5371\u9669\u6309\u94AE",warning:"\u8B66\u544A\u6309\u94AE",large:"\u5927\u53F7\u6309\u94AE",normal:"\u666E\u901A\u6309\u94AE",small:"\u5C0F\u578B\u6309\u94AE",mini:"\u8FF7\u4F60\u6309\u94AE",plain:"\u6734\u7D20\u6309\u94AE",square:"\u65B9\u5F62\u6309\u94AE",round:"\u5706\u5F62\u6309\u94AE",hairline:"\u7EC6\u8FB9\u6846",hairlineButton:"\u7EC6\u8FB9\u6846\u6309\u94AE",loadingText:"\u52A0\u8F7D\u4E2D...",router:"\u9875\u9762\u5BFC\u822A",urlRoute:"URL \u8DF3\u8F6C",vueRoute:"\u8DEF\u7531\u8DF3\u8F6C",customColor:"\u81EA\u5B9A\u4E49\u989C\u8272",pure:"\u5355\u8272\u6309\u94AE",gradient:"\u6E10\u53D8\u8272\u6309\u94AE",blockElement:"\u5757\u7EA7\u5143\u7D20"},"en-US":{type:"Type",size:"Size",icon:"Icon",loading:"Loading",shape:"Shape",default:"Default",primary:"Primary",success:"Success",danger:"Danger",warning:"Warning",large:"Large",normal:"Normal",small:"Small",mini:"Mini",plain:"Plain",square:"Square",round:"Round",hairline:"Hairline",hairlineButton:"Hairline",loadingText:"Loading...",router:"Router",urlRoute:"URL",vueRoute:"Vue Router",customColor:"Custom Color",pure:"Pure",gradient:"Gradient",blockElement:"Block Element"}});return(E,f)=>{const i=d("demo-block");return m(),c(x,null,[e(i,{title:t(u)("type")},{default:a(()=>[y("div",_,[e(t(l),{type:"primary"},{default:a(()=>[n(r(t(u)("primary")),1)]),_:1}),e(t(l),{type:"success"},{default:a(()=>[n(r(t(u)("success")),1)]),_:1}),e(t(l),{type:"default"},{default:a(()=>[n(r(t(u)("default")),1)]),_:1})]),e(t(l),{type:"danger"},{default:a(()=>[n(r(t(u)("danger")),1)]),_:1}),e(t(l),{type:"warning"},{default:a(()=>[n(r(t(u)("warning")),1)]),_:1})]),_:1},8,["title"]),e(i,{title:t(u)("plain")},{default:a(()=>[e(t(l),{plain:"",type:"primary",text:t(u)("plain")},null,8,["text"]),e(t(l),{plain:"",type:"success",text:t(u)("plain")},null,8,["text"])]),_:1},8,["title"]),e(i,{title:t(u)("hairline")},{default:a(()=>[e(t(l),{plain:"",hairline:"",type:"primary",text:t(u)("hairlineButton")},null,8,["text"]),e(t(l),{plain:"",hairline:"",type:"success",text:t(u)("hairlineButton")},null,8,["text"])]),_:1},8,["title"]),e(i,{title:t(u)("disabled")},{default:a(()=>[e(t(l),{disabled:"",type:"primary",text:t(u)("disabled")},null,8,["text"]),e(t(l),{disabled:"",type:"success",text:t(u)("disabled")},null,8,["text"])]),_:1},8,["title"]),e(i,{title:t(u)("loadingStatus")},{default:a(()=>[e(t(l),{loading:"",type:"primary"}),e(t(l),{loading:"",type:"primary","loading-type":"spinner"}),e(t(l),{loading:"","loading-text":t(u)("loadingText"),type:"success"},null,8,["loading-text"])]),_:1},8,["title"]),e(i,{title:t(u)("shape")},{default:a(()=>[e(t(l),{type:"primary",square:"",text:t(u)("square")},null,8,["text"]),e(t(l),{type:"success",round:"",text:t(u)("round")},null,8,["text"])]),_:1},8,["title"]),e(i,{title:t(u)("icon")},{default:a(()=>[e(t(l),{type:"primary",icon:"plus"}),e(t(l),{type:"primary",icon:"plus",text:t(u)("button")},null,8,["text"]),e(t(l),{plain:"",type:"primary",icon:t(o)("user-active.png"),text:t(u)("button")},null,8,["icon","text"])]),_:1},8,["title"]),e(i,{title:t(u)("size")},{default:a(()=>[e(t(l),{type:"primary",size:"large"},{default:a(()=>[n(r(t(u)("large")),1)]),_:1}),e(t(l),{type:"primary",size:"normal"},{default:a(()=>[n(r(t(u)("normal")),1)]),_:1}),e(t(l),{type:"primary",size:"small"},{default:a(()=>[n(r(t(u)("small")),1)]),_:1}),e(t(l),{type:"primary",size:"mini"},{default:a(()=>[n(r(t(u)("mini")),1)]),_:1})]),_:1},8,["title"]),e(i,{title:t(u)("blockElement")},{default:a(()=>[e(t(l),{type:"primary",block:""},{default:a(()=>[n(r(t(u)("blockElement")),1)]),_:1})]),_:1},8,["title"]),e(i,{title:t(u)("router")},{default:a(()=>[e(t(l),{text:t(u)("urlRoute"),type:"primary",url:"https://github.com/vant-ui/vant"},null,8,["text"]),e(t(l),{text:t(u)("vueRoute"),type:"primary",to:"index"},null,8,["text"])]),_:1},8,["title"]),e(i,{title:t(u)("customColor")},{default:a(()=>[e(t(l),{color:"#7232dd",text:t(u)("pure")},null,8,["text"]),e(t(l),{plain:"",color:"#7232dd",text:t(u)("pure")},null,8,["text"]),e(t(l),{color:"linear-gradient(to right, #ff6034, #ee0a24)",text:t(u)("gradient")},null,8,["text"])]),_:1},8,["title"])],64)}}});export{v as default};
|