'use strict';

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

var vue = require('vue');
var tableColumnPro = require('./tableColumnPro.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: tableColumnPro.TableColumnProName
  },
  __name: "TableColumnPro",
  props: tableColumnPro.tableColumnProProps,
  setup(__props) {
    const slots = vue.useSlots();
    const props = __props;
    const proSortable = vue.computed(() => props.isSort ? "custom" : props.sortable);
    return (_ctx, _cache) => {
      const _component_gm_table_column = vue.resolveComponent("gm-table-column");
      return vue.openBlock(), vue.createBlock(_component_gm_table_column, vue.mergeProps(props, { sortable: proSortable.value }), vue.createSlots({
        _: 2
        /* DYNAMIC */
      }, [
        vue.unref(slots).default ? {
          name: "default",
          fn: vue.withCtx((scope) => [
            vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(scope)))
          ]),
          key: "0"
        } : void 0,
        vue.unref(slots).header ? {
          name: "header",
          fn: vue.withCtx((scope) => [
            vue.renderSlot(_ctx.$slots, "header", vue.normalizeProps(vue.guardReactiveProps(scope)))
          ]),
          key: "1"
        } : void 0
      ]), 1040, ["sortable"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=TableColumnPro.vue2.js.map
