import { _ as _extends } from './extends.js';
import React__default from 'react';
import { BF_Wrap2, MyBaseList } from '@lm_fe/pages';
import { get_global_happy_arg } from '@lm_fe/utils';
import { defineFormConfig } from '@lm_fe/service';
function MyConfigTable2(props) {
  var _a;
  var title = (_a = get_global_happy_arg('usr1')) !== null && _a !== void 0 ? _a : props.configId;
  if (!title) return /*#__PURE__*/React__default.createElement("div", null, "\u8BF7\u914D\u7F6Etitle");
  var _b = BF_Wrap2({
      default_conf: {
        title: "\u52A8\u6001\u8868\u683C-".concat(title),
        name: '/api/pregnancies',
        showAction: 1,
        initialSearchValue: {
          nationality: '中'
        },
        searchParams: {
          args: 'abcd'
        },
        searchConfig: defineFormConfig([{
          label: '国籍',
          name: 'nationality',
          inputType: 'Input'
        }]),
        tableColumns: defineFormConfig([{
          label: '姓名',
          name: 'name',
          inputType: 'Input',
          layout: '1/3'
        }, {
          label: '出生日期',
          name: 'dob',
          inputType: 'MyDatePicker',
          layout: '1/3'
        }, {
          label: '胎方位',
          name: 'fetalPosition',
          inputType: 'MC',
          inputProps: {
            options: '左枕前,左枕后,其他i'
          },
          layout: '1/3'
        }, {
          label: '国籍',
          name: 'nationality',
          inputType: 'MA',
          inputProps: {
            optionKey: '国家s'
          },
          layout: '1/3'
        }, {
          label: '证件类型',
          name: 'idType',
          inputType: 'MS',
          inputProps: {
            optionKey: '证件类型',
            marshal: 1
          },
          layout: '1/3'
        }, {
          inputType: 'check_invert_button',
          layout: '1/3',
          hidden: true
        }])
      }
    }),
    config = _b.config,
    Wrap = _b.Wrap;
  console.log('config', config);
  return /*#__PURE__*/React__default.createElement(Wrap, null, /*#__PURE__*/React__default.createElement(MyBaseList, _extends({
    baseTitle: config === null || config === void 0 ? void 0 : config.title
  }, props, {
    showExport: true,
    isJSONConfig: true,
    size: "small",
    modalFormConfig: {
      width: '80vw',
      modal_data: {
        targetLabelCol: 4
      }
    }
  }, config)));
}
export { MyConfigTable2 as default };
//# sourceMappingURL=pages.config-table.list2.js.map
