UNPKG

hongluan-business-ui

Version:
21 lines (18 loc) 552 B
import { provideGlobalConfig } from 'hongluan-ui'; import { version } from './version.mjs'; const INSTALLED_KEY_HB = Symbol("INSTALLED_KEY_HB"); const makeInstaller = (components = []) => { const install = (app, options = {}) => { if (app[INSTALLED_KEY_HB]) return; app[INSTALLED_KEY_HB] = true; components.forEach((c) => app.use(c)); Object.keys(options).length && provideGlobalConfig(options, app, true); }; return { version, install }; }; export { makeInstaller }; //# sourceMappingURL=make-installer.mjs.map