hlyc-web-pack 3.5.19 → 3.5.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,19 @@ import { EditableColumnsType } from './EditableCell';
4
4
  import { AnyObjectType, PromiseAxiosResultType } from '../unrelated/typings';
5
5
  import './index.less';
6
6
  export declare type TableColumns<T = AnyObjectType> = ColumnType<T> & Partial<EditableColumnsType>;
7
+ export interface getTableListQueryType {
8
+ /** 分页值 */
9
+ current?: number;
10
+ /** 是否清空选中项(ids和rows) */
11
+ clearSelectIds?: boolean;
12
+ /** 传此参数不重置分页 */
13
+ pagination?: 'not-reset';
14
+ [key: string]: any;
15
+ }
7
16
  export interface TableCallType {
8
17
  setTableLoading: (data: boolean) => void;
9
- /** 调用接口手动加载数据,传入{ pagination: 'not-reset' }不会重置分页 */
10
- getTableList: (values?: AnyObjectType, callBack?: () => void) => void;
18
+ /** 调用接口手动加载数据 */
19
+ getTableList: (values?: getTableListQueryType, callBack?: () => void) => void;
11
20
  /** 获取分页数据 */
12
21
  getPages: () => TablePaginationType | undefined;
13
22
  /** 设置选中,当设置original=true时,不会重置selectRowIds,会在原有的selectRowIds扩展 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlyc-web-pack",
3
- "version": "3.5.19",
3
+ "version": "3.5.20",
4
4
  "description": "华旅云创web端组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",