import { defineComponent, createBlock, openBlock, resolveDynamicComponent } from 'vue';

var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{
    name: "RenderCol"
  },
  __name: "renderCol",
  props: {
    row: Object,
    render: Function,
    index: Number,
    column: {
      type: Object,
      default: null
    }
  },
  setup(__props) {
    const props = __props;
    const renderComponent = () => {
      return props.render(props?.row[props?.column?.prop], props.row, props.index);
    };
    return (_ctx, _cache) => {
      return openBlock(), createBlock(resolveDynamicComponent(renderComponent));
    };
  }
});

export { _sfc_main as default };
