UNPKG

mine-h5-ui

Version:

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

19 lines (18 loc) 452 B
import { ref as o, computed as r, watch as c } from "vue"; 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 };