mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
14 lines (13 loc) • 391 B
JavaScript
import { inject as l, ref as o, watch as r } from "vue";
import { MeTabKey as n } from "../MeTab/token.js";
const b = (e) => {
const { name: m, currentValue: a, getLabelName: i } = l(n, {});
i({ label: e.label, name: e.name });
const t = o(!1);
return r(a, () => {
t.value = m === n && e.name === a.value;
}, { immediate: !0 }), { isShow: t };
};
export {
b as useHandler
};