UNPKG

mine-h5-ui

Version:

一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍

40 lines (39 loc) 1.27 kB
import { defineComponent as p, mergeModels as u, useModel as k, withDirectives as c, createElementBlock as v, openBlock as M, normalizeStyle as b, unref as e, normalizeClass as t, renderSlot as w, withModifiers as y, vShow as B } from "vue"; import { useHandler as C } from "./hooks.js"; /*! * mine-h5-ui v2.15.0 * Copyright (c) 2025 biaov * @license MIT */ const x = /* @__PURE__ */ p({ name: "MeMask", __name: "index", props: /* @__PURE__ */ u({ visible: { type: Boolean }, maskClose: { type: Boolean, default: !1 } }, { visible: { type: Boolean, default: !1 }, visibleModifiers: {} }), emits: ["update:visible"], setup(s) { const n = s, a = k(s, "visible"), { isShowMask: r, isShow: i, clickMask: l, animationDuration: m } = C({ props: n, visibleModel: a }); return (d, o) => c((M(), v("div", { class: t(["me-mask", { show: e(i) }]), onClick: o[1] || (o[1] = //@ts-ignore (...f) => e(l) && e(l)(...f)), style: b(`--animation-duration:${e(m)}ms;`) }, [ w(d.$slots, "default", { class: t({ on: e(i) }), onClick: o[0] || (o[0] = y(() => { }, ["stop"])) }) ], 6)), [ [B, e(r)] ]); } }); export { x as default };