xdesign-vue-next
Version:
XDesign Component for vue-next
22 lines (17 loc) • 544 B
JavaScript
/**
* xdesign v1.0.6
* (c) 2023 xdesign
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
/* 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;
}
exports["default"] = withInstall;
//# sourceMappingURL=withInstall.js.map