UNPKG

mine-h5-ui

Version:

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

37 lines (36 loc) 818 B
import { ref as u, watch as l, nextTick as r } from "vue"; /*! * mine-h5-ui v2.16.0 * Copyright (c) 2025 biaov * @license MIT */ const i = ({ visibleModel: a }) => { const e = u(!1), s = u(!1), n = 400, t = () => { e.value = !0, r(() => { setTimeout(() => { s.value = !0; }, 0); }); }, o = () => { s.value = !1, setTimeout(() => { e.value = !1, a.value = !1; }, n); }; return l( a, (c) => { c ? t() : o(); }, { immediate: !0 } ), { isShowMask: e, isShow: s, hideMask: o, animationDuration: n }; }, h = ({ emit: a, visibleModel: e }) => ({ onLi: (t) => { e.value = !1, a("change", t); }, onCancel: (t) => { e.value = !1, a("cancel", t); } }); export { h as useBtns, i as useShowSheet };