UNPKG

@scalar/api-client

Version:

the open source API testing client

22 lines (21 loc) 422 B
import { defineComponent as m, watch as o, onBeforeUnmount as a } from "vue"; const r = { name: "ValueEmitter" }, s = /* @__PURE__ */ m({ ...r, props: { value: {} }, emits: ["change", "unmount"], setup(n, { emit: u }) { const e = u; return o( () => n.value, (t) => e("change", t), { immediate: !0 } ), a(() => e("unmount")), (t, c) => null; } }); export { s as default };