'use strict';

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

var vue = require('vue');
require('../../../utils/index.js');
var treeSelect = require('./tree-select.js');
var createNamespace = require('../../../utils/create-namespace.js');

"use strict";
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{ name: "LlTreeSelect" },
  __name: "tree-select",
  props: treeSelect.treeSelectProps,
  setup(__props) {
    const attrs = vue.useAttrs();
    const bem = createNamespace.createNamespace("tree-select");
    return (_ctx, _cache) => {
      const _component_a_tree_select = vue.resolveComponent("a-tree-select");
      return vue.openBlock(), vue.createBlock(_component_a_tree_select, vue.mergeProps(vue.unref(attrs), {
        class: [vue.unref(bem).b(), vue.unref(bem).is(_ctx.isGray ? "gray-tree-select" : "")],
        "tree-line": _ctx.treeLine && { showLeafIcon: _ctx.showLeafIcon }
      }), vue.createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        vue.renderList(Object.keys(_ctx.$slots), (item) => {
          return {
            name: item,
            fn: vue.withCtx((data) => [
              vue.renderSlot(_ctx.$slots, item, vue.normalizeProps(vue.guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class", "tree-line"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=tree-select.vue2.js.map
