UNPKG

mine-h5-ui

Version:

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

24 lines (23 loc) 562 B
import { ref as o, computed as r, watch as c } from "vue"; /*! * mine-h5-ui v2.15.0 * Copyright (c) 2025 biaov * @license MIT */ const f = ({ props: t, emit: l, visibleModel: a }) => { const e = o(0), s = r(() => t.list[e.value]), u = () => { e.value++, e.value >= t.list.length ? (!t.disabledClose && (a.value = !1), l("finish")) : l("step", e.value); }; return c( a, (n) => { n && (e.value = 0); }, { immediate: !0 } ), { url: s, onStep: u }; }; export { f as useHandler };