dm-vue3-ui
Version:
This Components Library will help get you started developing in Vue 3.
24 lines (23 loc) • 539 B
JavaScript
import * as components from "./components";
export * from "./components";
import * as directives from "./directives";
export * from "./directives";
const install = (app) => {
Object.keys(components).forEach((key) => {
const component = components[key];
if (component.install) {
app.use(component);
}
});
Object.keys(directives).forEach((key) => {
const directive = directives[key];
app.directive(directive.name, directive);
});
return app;
};
const index = {
install
};
export {
index as default
};