UNPKG

@pit-front-end/components

Version:

湖南创智艾泰克科技有限公司

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