/**
 * ldesign v0.4.2
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

function withInstall(comp, alias, directive) {
  var componentPlugin = comp;
  componentPlugin.install = function (app, name) {
    var componentName = componentPlugin.name;
    var realName = alias || name || componentName;
    app.component(realName.replace(/^T/, "L"), comp);
    directive && app.directive(directive.name, directive.comp);
  };
  return componentPlugin;
}

exports["default"] = withInstall;
//# sourceMappingURL=withInstall.js.map
