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

2 lines
2.8 KiB
JavaScript

import{V as e,a}from"./index.b70c9b40.js";import{a as d}from"./use-translate.d2900b8c.js";import{z as i,r as u,o as _,a as m,e as t,w as l,B as o,F as f,d as n}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";const h=n("div",{class:"child"},null,-1),r=n("div",{class:"child"},null,-1),C=n("div",{class:"child"},null,-1),p=n("div",{class:"child"},null,-1),v=n("div",{class:"child"},null,-1),x=n("div",{class:"child"},null,-1),B=n("div",{class:"child"},null,-1),g=n("div",{class:"child"},null,-1),E=n("div",{class:"child"},null,-1),b=n("div",{class:"child"},null,-1),A=n("div",{class:"child"},null,-1),F=n("div",{class:"child"},null,-1),V=n("div",{class:"child"},null,-1),k=n("div",{class:"child"},null,-1),y=n("div",{class:"child"},null,-1),P=n("div",{class:"child"},null,-1),I=i({__name:"index",setup(w){const s=d({"zh-CN":{max:"\u6700\u5927\u503C",standalone:"\u72EC\u7ACB\u5C55\u793A",customColor:"\u81EA\u5B9A\u4E49\u989C\u8272",customContent:"\u81EA\u5B9A\u4E49\u5FBD\u6807\u5185\u5BB9",customPosition:"\u81EA\u5B9A\u4E49\u5FBD\u6807\u4F4D\u7F6E"},"en-US":{max:"Max",standalone:"Standalone",customColor:"Custom Color",customContent:"Custom Content",customPosition:"Custom Position"}});return(D,N)=>{const c=u("demo-block");return _(),m(f,null,[t(c,{title:o(s)("basicUsage")},{default:l(()=>[t(o(e),{content:"5"},{default:l(()=>[h]),_:1}),t(o(e),{content:"10"},{default:l(()=>[r]),_:1}),t(o(e),{content:"Hot"},{default:l(()=>[C]),_:1}),t(o(e),{dot:""},{default:l(()=>[p]),_:1})]),_:1},8,["title"]),t(c,{title:o(s)("max")},{default:l(()=>[t(o(e),{content:"20",max:"9"},{default:l(()=>[v]),_:1}),t(o(e),{content:"50",max:"20"},{default:l(()=>[x]),_:1}),t(o(e),{content:"200",max:"99"},{default:l(()=>[B]),_:1})]),_:1},8,["title"]),t(c,{title:o(s)("customColor")},{default:l(()=>[t(o(e),{content:"5",color:"#1989fa"},{default:l(()=>[g]),_:1}),t(o(e),{content:"10",color:"#1989fa"},{default:l(()=>[E]),_:1}),t(o(e),{dot:"",color:"#1989fa"},{default:l(()=>[b]),_:1})]),_:1},8,["title"]),t(c,{title:o(s)("customContent")},{default:l(()=>[t(o(e),null,{content:l(()=>[t(o(a),{name:"success",class:"badge-icon"})]),default:l(()=>[A]),_:1}),t(o(e),null,{content:l(()=>[t(o(a),{name:"cross",class:"badge-icon"})]),default:l(()=>[F]),_:1}),t(o(e),null,{content:l(()=>[t(o(a),{name:"down",class:"badge-icon"})]),default:l(()=>[V]),_:1})]),_:1},8,["title"]),t(c,{title:o(s)("customPosition")},{default:l(()=>[t(o(e),{content:"10",position:"top-left"},{default:l(()=>[k]),_:1}),t(o(e),{content:"10",position:"bottom-left"},{default:l(()=>[y]),_:1}),t(o(e),{content:"10",position:"bottom-right"},{default:l(()=>[P]),_:1})]),_:1},8,["title"]),t(c,{title:o(s)("standalone")},{default:l(()=>[t(o(e),{content:"20",style:{"margin-left":"16px"}}),t(o(e),{content:"200",max:"99",style:{"margin-left":"16px"}})]),_:1},8,["title"])],64)}}});export{I as default};