hongluan-business-ui
Version:
Hongluan Business Component Library for Vue 3
21 lines (18 loc) • 552 B
JavaScript
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