/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

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

var utils_mixins = require('../../utils/mixins.js');
var components_configProvider_configReceiver = require('../config-provider/config-receiver.js');
var components_breadcrumb_props = require('./props.js');
var components_breadcrumb_breadcrumbItem = require('./breadcrumb-item.js');
require('vue');
require('lodash/mergeWith');
require('lodash');
require('../config-provider/context.js');
require('../../chunks/zh_CN.js');
require('../../chunks/helper.js');
require('@ldesign/icons-vue');
require('../tooltip/index.js');
require('../../utils/map-props.js');
require('../../utils/with-install.js');
require('../../config.js');
require('../tooltip/tooltip.js');
require('lodash/isFunction');
require('../popup/props.js');
require('../popup/popup.js');
require('@popperjs/core');
require('../../chunks/set-style.js');
require('../../utils/dom.js');
require('raf');
require('lodash/isString');
require('../../chunks/log.js');
require('../../chunks/_commonjsHelpers-2e6815bd.js');
require('../../utils/easing.js');
require('../../utils/render-node.js');
require('../../utils/helper.js');
require('lodash/camelCase');
require('../popup/container.js');
require('../tooltip/props.js');

var _Breadcrumb = utils_mixins["default"](components_configProvider_configReceiver.getClassPrefixMixins("breadcrumb")).extend({
  name: "LBreadcrumb",
  props: {
    ...components_breadcrumb_props.BreadcrumbProps
  },
  components: {
    LBreadcrumbItem: components_breadcrumb_breadcrumbItem["default"]
  },
  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]);
  }
});

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