xdesign-vue-next
Version:
XDesign Component for vue-next
18 lines (15 loc) • 466 B
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
/* unplugin-vue-components disabled */function withInstall(comp, alias, directive) {
var componentPlugin = comp;
componentPlugin.install = function (app, name) {
app.component(alias || name || componentPlugin.name, comp);
directive && app.directive(directive.name, directive.comp);
};
return componentPlugin;
}
export { withInstall as default };
//# sourceMappingURL=withInstall.js.map