UNPKG

mine-h5-ui

Version:

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

18 lines (17 loc) 561 B
import { ref as u, onMounted as c, watch as C } from "vue"; /*! * mine-h5-ui v2.15.0 * Copyright (c) 2025 biaov * @license MIT */ const f = ({ props: a, emit: n, isActived: l }) => { const o = u(""), r = (t) => { a.disabled || (!a.async && (l.value = !l.value), n("click", t)); }, e = () => { o.value = a.activeColor && l.value ? a.activeColor : a.inactiveColor && !l.value ? a.inactiveColor : ""; }; return c(e), C(l, e), { isActived: l, background: o, handleClick: r }; }; export { f as useHandler };