UNPKG

@aplus-frontend/utils

Version:

Utils for Aplus frontend team.

11 lines (10 loc) 179 B
function withInstall(comp) { comp.install = (app) => { const name = comp.name || comp.__name; app.component(name, comp); }; return comp; } export { withInstall };