UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

32 lines (31 loc) 773 B
import { shallowRef as p, defineComponent as i, computed as n, provide as l, watch as c, unref as a, triggerRef as d, inject as m } from "vue"; import { objectType as f } from "../_util/type.mjs"; const u = Symbol("GroupTitleContext"), o = p(), x = (e) => { l(u, e), c( e, () => { o.value = a(e), d(o); }, { immediate: !0, deep: !0 } ); }, G = () => m( u, n(() => o.value || {}) ), v = i({ props: { value: f() }, setup(e, { slots: t }) { return x(n(() => e.value)), () => { var r; return (r = t.default) == null ? void 0 : r.call(t); }; } }); export { v as GroupTitleContextProvider, v as default, o as globalGroupTitleContextApi, G as useGroupTitleContextInject, x as useGroupTitleContextProvider };