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

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;
}

export { withInstall as default };
//# sourceMappingURL=withInstall.mjs.map
