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

2 lines
3.7 KiB
JavaScript

import{V as u}from"./index.bbd81525.js";import{V as o}from"./index.4d1fb3f9.js";import{a as c}from"./use-translate.d2900b8c.js";import{z as d,C as _,r as p,o as C,a as g,e as l,w as a,B as e,h as i,t as r,F as y}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";import"./constant.80c6de18.js";const h=d({__name:"index",setup(f){const t=c({"zh-CN":{type:"\u7C7B\u578B",mark:"\u6807\u8BB0\u6837\u5F0F",plain:"\u7A7A\u5FC3\u6837\u5F0F",round:"\u5706\u89D2\u6837\u5F0F",tagStyle:"\u6837\u5F0F\u98CE\u683C",closeable:"\u53EF\u5173\u95ED\u6807\u7B7E",smallSize:"\u5C0F\u53F7\u6807\u7B7E",largeSize:"\u5927\u53F7\u6807\u7B7E",mediumSize:"\u4E2D\u53F7\u6807\u7B7E",customSize:"\u6807\u7B7E\u5927\u5C0F",customColor:"\u81EA\u5B9A\u4E49\u989C\u8272",customBgColor:"\u80CC\u666F\u989C\u8272",customTextColor:"\u6587\u5B57\u989C\u8272",customPlainColor:"\u7A7A\u5FC3\u989C\u8272"},"en-US":{mark:"Mark style",plain:"Plain style",round:"Round style",tagStyle:"Tag Style",closeable:"Closeable",smallSize:"Small Size",largeSize:"Large Size",mediumSize:"Medium Size",customColor:"Custom Color",customSize:"Custom Size",customBgColor:"Background Color",customTextColor:"Text Color",customPlainColor:"Plain Color"}}),m=_(!0),n=()=>{m.value=!1};return(S,z)=>{const s=p("demo-block");return C(),g(y,null,[l(s,{card:"",title:e(t)("basicUsage")},{default:a(()=>[l(e(u),{title:`primary ${e(t)("type")}`},{value:a(()=>[l(e(o),{type:"primary"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:`success ${e(t)("type")}`},{value:a(()=>[l(e(o),{type:"success"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:`danger ${e(t)("type")}`},{value:a(()=>[l(e(o),{type:"danger"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:`warning ${e(t)("type")}`},{value:a(()=>[l(e(o),{type:"warning"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),l(s,{card:"",title:e(t)("tagStyle")},{default:a(()=>[l(e(u),{title:e(t)("plain")},{value:a(()=>[l(e(o),{plain:"",type:"primary"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("round")},{value:a(()=>[l(e(o),{round:"",type:"primary"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("mark")},{value:a(()=>[l(e(o),{mark:"",type:"primary"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("closeable")},{value:a(()=>[l(e(o),{closeable:"",show:m.value,size:"medium",type:"primary",onClose:n},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1},8,["show"])]),_:1},8,["title"])]),_:1},8,["title"]),l(s,{card:"",title:e(t)("customSize")},{default:a(()=>[l(e(u),{title:e(t)("smallSize")},{value:a(()=>[l(e(o),{type:"primary"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("mediumSize")},{value:a(()=>[l(e(o),{type:"primary",size:"medium"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("largeSize")},{value:a(()=>[l(e(o),{type:"primary",size:"large"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),l(s,{card:"",title:e(t)("customColor")},{default:a(()=>[l(e(u),{title:e(t)("customBgColor")},{value:a(()=>[l(e(o),{color:"#7232dd"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("customTextColor")},{value:a(()=>[l(e(o),{color:"#ffe1e1","text-color":"#ad0000"},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"]),l(e(u),{title:e(t)("customPlainColor")},{value:a(()=>[l(e(o),{color:"#7232dd",plain:""},{default:a(()=>[i(r(e(t)("tag")),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["title"])],64)}}});export{h as default};