import "../../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                                */
/* empty css                                                                     */
/* empty css                                                                        */
/* empty css                                                                        */
/* empty css                                                                     */
/* empty css                                                                  */
/* empty css                                                                     */
/* empty css                                                                           */
/* empty css                                                                     */
import { computed, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createElementVNode } from "vue";
import { getEditConfigDataFields } from "../../../utils/common.mjs";
/* empty css                       */
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
import { ElSelect, ElOption } from "../../../../../../node_modules/element-plus/es/components/select/index.mjs";
import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
const _sfc_main = {
  __name: "TableChildRefresh",
  props: {
    formData: Object
  },
  setup(__props) {
    const fieldList = computed(() => {
      return getEditConfigDataFields().filter(
        (item) => item.fieldType == "subTable"
      );
    });
    return (_ctx, _cache) => {
      const _component_el_option = ElOption;
      const _component_el_select = ElSelect;
      const _component_el_form_item = ElFormItem;
      const _component_el_switch = ElSwitch;
      return openBlock(), createElementBlock(Fragment, null, [
        createVNode(_component_el_form_item, { label: "选择子列表" }, {
          default: withCtx(() => [
            createVNode(_component_el_select, {
              modelValue: __props.formData.selectSubTableFieldId,
              "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.selectSubTableFieldId = $event),
              filterable: "",
              size: "small",
              clearable: ""
            }, {
              default: withCtx(() => [
                (openBlock(true), createElementBlock(Fragment, null, renderList(unref(fieldList), (item) => {
                  return openBlock(), createBlock(_component_el_option, {
                    key: item.id,
                    label: item.label,
                    value: item.id
                  }, null, 8, ["label", "value"]);
                }), 128))
              ]),
              _: 1
            }, 8, ["modelValue"])
          ]),
          _: 1
        }),
        createVNode(_component_el_form_item, { label: "重置排序" }, {
          default: withCtx(() => [
            createVNode(_component_el_switch, {
              modelValue: __props.formData.resetSort,
              "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.resetSort = $event)
            }, null, 8, ["modelValue"]),
            _cache[4] || (_cache[4] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置表格排序", -1))
          ]),
          _: 1
        }),
        createVNode(_component_el_form_item, { label: "重置筛选" }, {
          default: withCtx(() => [
            createVNode(_component_el_switch, {
              modelValue: __props.formData.resetFilter,
              "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.resetFilter = $event)
            }, null, 8, ["modelValue"]),
            _cache[5] || (_cache[5] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置筛选条件", -1))
          ]),
          _: 1
        }),
        createVNode(_component_el_form_item, { label: "重置翻页" }, {
          default: withCtx(() => [
            createVNode(_component_el_switch, {
              modelValue: __props.formData.resetPagination,
              "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.resetPagination = $event)
            }, null, 8, ["modelValue"]),
            _cache[6] || (_cache[6] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置页码到第一页", -1))
          ]),
          _: 1
        })
      ], 64);
    };
  }
};
const TableChildRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4bc691cb"]]);
export {
  TableChildRefresh as default
};
