/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 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 'lodash';
import '../config-provider/context.js';
import '../../_chunks/dep-def4c2ce.js';
import '../../_chunks/dep-29915b8e.js';
import '@ldesign/icons-vue';
import '../tooltip/index.js';
import '../../utils/map-props.js';
import '../../utils/with-install.js';
import '../../config.js';
import '../tooltip/tooltip.js';
import 'lodash/isFunction';
import '../popup/props.js';
import '../popup/popup.js';
import '@popperjs/core';
import '../../_chunks/dep-cf772670.js';
import '../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../_chunks/dep-70c789e5.js';
import '../../_chunks/dep-5210251b.js';
import '../../utils/easing.js';
import '../../utils/render-node.js';
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
