import { defineComponent, useAttrs, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
import '../../../utils/index.mjs';
import { Cascader } from 'ant-design-vue';
import { cascaderProps } from './cascader.mjs';
import { createNamespace } from '../../../utils/create-namespace.mjs';

"use strict";
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{ name: "LlCascader" },
  __name: "cascader",
  props: cascaderProps,
  setup(__props) {
    const bem = createNamespace("cascader");
    const attrs = useAttrs();
    return (_ctx, _cache) => {
      return openBlock(), createBlock(unref(Cascader), mergeProps(unref(attrs), {
        class: [unref(bem).b(), unref(bem).is(_ctx.isGray ? "gray-cascader" : "")],
        "popup-class-name": unref(bem).e("dropdown")
      }), createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        renderList(Object.keys(_ctx.$slots), (item) => {
          return {
            name: item,
            fn: withCtx((data) => [
              renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class", "popup-class-name"]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=cascader.vue2.mjs.map
