UNPKG

@layui/layui-vue

Version:

a component library for Vue 3 base on layui-vue

14 lines (13 loc) 299 B
import { unref as t } from "vue"; import { useTimeoutFn as e } from "@vueuse/core"; const m = ({ showAfter: r, hideAfter: n, show: s, hidden: d }) => { let o; return { onShow: () => { o && o(), e(s, t(r)); }, onHidden: () => { o = e(d, t(n)).stop; } }; }; export { m as default };