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

"use strict";
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{ name: "LlFormItem", inheritAttrs: false },
  __name: "form-item",
  setup(__props) {
    const attrs = useAttrs();
    const bem = createNamespace("form-item");
    return (_ctx, _cache) => {
      const _component_a_form_item = resolveComponent("a-form-item");
      return openBlock(), createBlock(_component_a_form_item, mergeProps(unref(attrs), {
        class: unref(bem).b()
      }), createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        renderList(Object.keys(_ctx.$slots), (item) => {
          return {
            name: item,
            fn: withCtx((data) => [
              renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
            ])
          };
        })
      ]), 1040, ["class"]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=form-item.vue2.mjs.map
