import type { RecordType, ShowConfigType } from "../CommonTableNew/type";

export interface PropsType {
  // ref: React.RefObject<any>;
  form: any;
  showConfig: ShowConfigType;
  onSave?: (data: RecordType) => void;
  onChange: (tableName: string, sName: string, returnValue: RecordType, sId: string, dropDownData: RecordType[]) => void;
  getDropDownData: (params?: { searchValue?: string; pageNum?: number }) => void;
  [key: string]: any;
}

export type FormItemTypeKey = "s" | "i" | "b" | "d" | "t";

export interface StateType {
  // 下拉搜索框的值
  searchValue?: string; // 搜索条件
  pageNum?: number; // 当前页码
  totalPageCount?: number; // 总页数
  totalCount?: number; // 总条数
  dropDownData?: RecordType[]; // 下拉框数据
  // 其他可能的字段也可以在这里添加
}
