UNPKG

@opentiny/vue-renderless

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

15 lines (14 loc) 285 B
import "../../chunk-G2ADBYYC.js"; const ContextKey = Symbol(""); const createContext = (data, hooks) => { hooks.provide(ContextKey, data); return data; }; const useContext = (hooks) => { return hooks.inject(ContextKey); }; export { ContextKey, createContext, useContext };