/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

import mixins from '../../utils/mixins.js';
import { getClassPrefixMixins } from '../config-provider/config-receiver.js';
import { BreadcrumbProps } from './props.js';
import _BreadcrumbItem from './breadcrumb-item.js';
import 'vue';
import 'lodash/mergeWith';
import '../config-provider/context.js';
import 'lodash/merge';
import '../../_chunks/dep-b4fd1955.js';
import '../../_chunks/dep-b0f1ed22.js';
import '@ldesign/icons-vue';
import '../tooltip/index.js';
import '../../utils/map-props.js';
import '../../utils/withInstall.js';
import 'lodash/capitalize';
import '../../config.js';
import '../tooltip/tooltip.js';
import 'lodash/isFunction';
import '../popup/props.js';
import '../popup/popup.js';
import '@popperjs/core';
import '../../_chunks/dep-c68dc4b6.js';
import '../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../_chunks/dep-eaa95999.js';
import '../../_chunks/dep-102361be.js';
import '../../utils/easing.js';
import '../../utils/render-node.js';
import 'lodash';
import '../../utils/helper.js';
import 'lodash/camelCase';
import '../popup/container.js';
import '../tooltip/props.js';

var _Breadcrumb = mixins(getClassPrefixMixins("breadcrumb")).extend({
  name: "LBreadcrumb",
  props: {
    ...BreadcrumbProps
  },
  components: {
    LBreadcrumbItem: _BreadcrumbItem
  },
  provide() {
    return {
      LBreadcrumb: this
    };
  },
  render() {
    const h = arguments[0];
    let content = this.$slots.default;
    if (this.options && this.options.length) {
      content = this.options.map((option, index) => h("l-breadcrumb-item", {
        "key": index,
        "attrs": {
          "maxWidth": option.maxWidth,
          "disabled": option.disabled,
          "href": option.href,
          "target": option.target,
          "to": option.to,
          "router": option.router,
          "replace": option.replace
        }
      }, [option.default || option.content]));
    }
    return h("div", {
      "class": this.componentName
    }, [content]);
  }
});

export { _Breadcrumb as default };
//# sourceMappingURL=breadcrumb.js.map
