vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
20 lines (19 loc) • 422 B
JavaScript
import { ref as i, watch as a, onMounted as c, nextTick as f } from "vue";
function v(t, u) {
const n = i(t.value);
function l(e) {
var o;
u.value ? n.value = e ?? ((o = u.value.textContent) == null ? void 0 : o.trim()) ?? null : n.value = e;
}
return a(t, (e) => {
l(e);
}), c(() => {
f(() => {
l(t.value);
});
}), n;
}
export {
v as useLabel
};
//# sourceMappingURL=hooks.mjs.map