const defaultTableConfig = {
  fieldsData: [
    {
      fieldType: "text",
      label: "文本",
      fieldName: "fieldName",
      format: "number",
      hasDecimalPlaces: true,
      decimalPlaces: 2,
      optionStyle: "default",
      dateType: "date",
      widthMode: "auto",
      minWidth: 80,
      headerAlign: "center",
      align: "center",
      isShow: true,
      id: 1770347203793,
      type: "widgets"
    }
  ],
  showTitle: true,
  isOptBtns: true,
  optBtns: [
    // {
    //     "id": 1770347228880,
    //     "label": "修改",
    //     "type": "optBtn",
    //     "btnStyle": "default"
    // },
    // {
    //     "id": 1770347229785,
    //     "label": "删除",
    //     "type": "optBtn",
    //     "btnStyle": "default"
    // }
  ],
  customBtns: {
    left: [
      // {
      //     "id": 1770347217788,
      //     "label": "新增",
      //     "type": "customBtn",
      //     "btnType": "custom",
      //     "btnStyle": "default"
      // }
    ],
    right: []
  },
  selectMode: "none",
  showIndex: false,
  heightMode: "auto",
  height: 500,
  editable: false,
  events: {},
  dataSourceId: "",
  sortRules: [],
  paginationConfig: {
    enabled: true,
    pageSize: 15,
    pageSizes: [15, 20, 50, 100, 200, 500],
    layout: "full",
    background: true,
    size: "small"
  },
  mode: [],
  dataSources: [],
  dialogs: [],
  queryConfig: {
    enabled: true,
    mode: "fixed",
    columnCount: 4,
    collapseRows: 2,
    filterFields: []
  },
  summaryConfig: {
    enabled: false,
    mode: "current",
    summaryFields: []
  }
};
const defaultCustomBtn = {
  label: "按钮",
  type: "customBtn",
  btnType: "custom",
  btnStyle: "default"
};
const defaultOptBtn = {
  label: "按钮",
  type: "optBtn",
  btnStyle: "default"
};
({
  ...defaultTableConfig
});
export {
  defaultCustomBtn,
  defaultOptBtn,
  defaultTableConfig
};
