mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{V as m}from"./index.8e37fe56.js";import{V as u}from"./index.d46e53a8.js";import{a as v}from"./use-translate.d2900b8c.js";import{z as f,C as i,r as C,o as _,a as w,e as o,w as r,B as t,F as y,d as p}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";import"./use-lazy-render.f712e85e.js";const x=p("div",{class:"wrapper"},[p("div",{class:"block"})],-1),z=f({__name:"index",setup(c){const n=v({"zh-CN":{showOverlay:"\u663E\u793A\u906E\u7F69\u5C42",embeddedContent:"\u5D4C\u5165\u5185\u5BB9"},"en-US":{showOverlay:"Show Overlay",embeddedContent:"Embedded Content"}}),l=i(!1),s=i(!1);return(b,e)=>{const d=C("demo-block");return _(),w(y,null,[o(d,{title:t(n)("basicUsage")},{default:r(()=>[o(t(m),{type:"primary",text:t(n)("showOverlay"),style:{"margin-left":"16px"},onClick:e[0]||(e[0]=a=>l.value=!0)},null,8,["text"]),o(t(u),{show:l.value,onClick:e[1]||(e[1]=a=>l.value=!1)},null,8,["show"])]),_:1},8,["title"]),o(d,{title:t(n)("embeddedContent")},{default:r(()=>[o(t(m),{type:"primary",text:t(n)("embeddedContent"),style:{"margin-left":"16px"},onClick:e[2]||(e[2]=a=>s.value=!0)},null,8,["text"]),o(t(u),{show:s.value,onClick:e[3]||(e[3]=a=>s.value=!1)},{default:r(()=>[x]),_:1},8,["show"])]),_:1},8,["title"])],64)}}});export{z as default};
|