tdesign-vue-next
Version:
TDesign Component for vue-next
22 lines (17 loc) • 507 B
JavaScript
/**
* tdesign v1.11.5
* (c) 2025 tdesign
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
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