vant/v3/assets/mount-component.f3744995.js
2024-04-20 08:49:23 +00:00

2 lines
509 B
JavaScript

import{s as r,H as u}from"./vue-libs.b44bc779.js";import{e as a}from"./use-translate.d2900b8c.js";import{u as m}from"./use-expose.c942d5f8.js";function d(){const e=u({show:!1}),t=n=>{e.show=n},o=n=>{a(e,n,{transitionAppear:!0}),t(!0)},s=()=>t(!1);return m({open:o,close:s,toggle:t}),{open:o,close:s,state:e,toggle:t}}function f(e){const t=r(e),o=document.createElement("div");return document.body.appendChild(o),{instance:t.mount(o),unmount(){t.unmount(),document.body.removeChild(o)}}}export{f as m,d as u};