ant-design-x-vue-next
Version:
Ant Design X for Vue — community continuation aligned with @ant-design/x
27 lines (26 loc) • 526 B
JavaScript
import { defineComponent as c, provide as i, computed as n, inject as p } from "vue";
const o = Symbol("ActionsContext"), d = () => p(
o,
n(() => ({}))
), m = c({
name: "AXActionsContextProvider",
props: {
value: {
type: Object,
required: !0
}
},
setup(r, { slots: e }) {
return i(
o,
n(() => r.value)
), () => {
var t;
return (t = e.default) == null ? void 0 : t.call(e);
};
}
});
export {
m as ActionsContextProvider,
d as useActionsContextInject
};