/**
 * 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/zh_CN.js';
import '../config-provider/type.js';
import '../../chunks/helper.js';
import '../../chunks/_commonjsHelpers.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/set-style.js';
import '../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../chunks/index.js';
import '../../chunks/log.js';
import '../../chunks/_commonjsHelpers-2e6815bd.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';
import '../tooltip/style';
import '../tooltip/type.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
