UNPKG

@slan-health/taro-vueuse

Version:

taro vue版本hooks

19 lines (18 loc) 409 B
const GLOBAL_OPTIONS = {}; const GLOBAL_OPTIONS_PROVIDE_KEY = Symbol( "GLOBAL_OPTIONS_PROVIDE_KEY" ); const setGlobalOptions = (config) => { Object.keys(config).forEach((key) => { GLOBAL_OPTIONS[key] = config[key]; }); }; const getGlobalOptions = () => { return GLOBAL_OPTIONS; }; export { GLOBAL_OPTIONS_PROVIDE_KEY, getGlobalOptions, setGlobalOptions }; //# sourceMappingURL=config.js.map