UNPKG

mine-h5-ui

Version:

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

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