UNPKG

lwx-test-ui

Version:

lwx-test-ui

16 lines (15 loc) 279 B
import { getCurrentInstance as o, computed as n } from "vue"; function m(t) { const { emit: e } = o() ?? {}; return { modelValue: n({ set(u) { e && e("update:modelValue", u); }, get() { return t.modelValue; } }) }; } export { m as useInput };