// import componentSetting from "@/settings/componentSetting";

const table = {
  apiSetting: {
    // 当前页的字段名
    pageField: "current",
    // 每页数量字段名
    sizeField: "size",
    // 接口返回的数据字段名
    listField: "records",
    // 接口返回总页数字段名
    totalField: "pages",
    //总数字段名
    countField: "total",
  },
  //默认分页数量
  defaultPageSize: 10,
  //可切换每页数量集合
  pageSizes: [10, 20, 30, 40, 50],
};

const { apiSetting, defaultPageSize, pageSizes } = table;

export const DEFAULTPAGESIZE = defaultPageSize;

export const APISETTING = apiSetting;

export const PAGESIZES = pageSizes;
