hlyc-web-pack 3.5.18 → 3.5.21

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扩展 */
@@ -4,7 +4,7 @@ import { ColProps } from 'antd/lib/col';
4
4
  import { TableProps } from 'antd/es/table';
5
5
  import { FormProps } from 'antd/es/form';
6
6
  import { FormListType, FormCallType } from '../GenerateForm';
7
- import { TableCallType, GenerateTableProp, TableColumns } from '../GenerateTable';
7
+ import { TableCallType, GenerateTableProp, TableColumns, getTableListQueryType } from '../GenerateTable';
8
8
  import { AnyObjectType, PromiseAxiosResultType } from '../unrelated/typings';
9
9
  import './index.less';
10
10
  export declare type LayoutTableModalCallType = TableCallType & FormCallType & {
@@ -31,6 +31,8 @@ export interface LayoutTableModalPropType {
31
31
  searchFormList?: FormListType[];
32
32
  /** 表单方法 */
33
33
  formConfig?: FormProps;
34
+ /** 查询时是否清除选中项 */
35
+ clearSelectIds?: getTableListQueryType['clearSelectIds'];
34
36
  /** rowType=checkbox多选 radio单选 list=表格头 tableConfig=自定义配置,支持antd官方表格所有参数*/
35
37
  tableColumnsList: {
36
38
  /** checkbox多选 radio单选 */