UNPKG

tdesign-vue-next

Version:
22 lines (17 loc) 507 B
/** * tdesign v1.11.5 * (c) 2025 tdesign * @license MIT */ 'use strict'; 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