/**
 * @description: 排序设置
 * @return {*}
 */
var SORT_SETTINGS = {
  show: true,
  list: [{
    columnKey: 'display_name',
    key: 'display_name',
    type: 'string',
    localFilter: false
  }, {
    columnKey: 'create_time',
    key: 'create_time',
    type: 'date',
    localFilter: false
  }
  // {
  //   columnKey: 'total_rent_count',
  //   key: 'total_rent_count',
  //   type: 'number',
  //   localFilter: false,
  // },
  // {
  //   columnKey: 'total_return_count',
  //   key: 'total_return_count',
  //   type: 'number',
  //   localFilter: false,
  // },
  ]
};

/**
 * @description: 列配置
 * @return {*}
 */
var COLUMN_SETTING = {
  show: true,
  storageMode: 'localStorage'
};
var FILTER = function FILTER(locales) {
  return {
    show: true,
    quickFilterMaxLength: 3,
    // sortButtonShow: true,
    // storageMode: 'localStorage',
    list: [{
      key: 'search',
      type: 'search',
      columnKey: '',
      sort: true,
      localFilter: false,
      isCustom: true,
      name: 'search',
      other: {
        size: 'large',
        allowClear: true,
        placeholder: locales.getText('pisell2.text.ecocup.customer.list.search.placeholder'),
        trigger: ['onChange', 'onPressEnter'],
        style: {
          width: 240
        }
      }
    }]
  };
};
export { SORT_SETTINGS, COLUMN_SETTING, FILTER };