@gx-design-vue/pro-table 0.2.0-beta.69 → 0.2.0-beta.70
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.
- package/dist/ProTable.d.ts +7 -21
- package/dist/_utils/ant-design-vue/table/typings.d.ts +1 -1
- package/dist/hooks/useRowSelection.d.ts +7 -6
- package/dist/hooks/useTable.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +2 -2
- package/dist/pro-table.js +765 -758
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +2 -2
- package/package.json +1 -1
package/dist/ProTable.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
17
|
default: () => undefined;
|
|
18
18
|
};
|
|
19
19
|
rowKey: {
|
|
20
|
-
type: import("vue").PropType<
|
|
21
|
-
default:
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
default: string;
|
|
22
22
|
};
|
|
23
23
|
request: {
|
|
24
24
|
type: import("vue").PropType<ProTableProps["request"]>;
|
|
@@ -281,14 +281,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
281
281
|
};
|
|
282
282
|
scroll: {
|
|
283
283
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
284
|
-
scrollToFirstRowOnChange
|
|
285
|
-
/**
|
|
286
|
-
* @Author gx12358
|
|
287
|
-
* @DateTime 2022/1/21
|
|
288
|
-
* @lastTime 2022/1/21
|
|
289
|
-
* @description Tabel-scroll hooks 方法
|
|
290
|
-
*/
|
|
291
|
-
?: boolean;
|
|
284
|
+
scrollToFirstRowOnChange?: boolean;
|
|
292
285
|
}>;
|
|
293
286
|
default: undefined;
|
|
294
287
|
};
|
|
@@ -318,8 +311,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
318
311
|
default: () => undefined;
|
|
319
312
|
};
|
|
320
313
|
rowKey: {
|
|
321
|
-
type: import("vue").PropType<
|
|
322
|
-
default:
|
|
314
|
+
type: import("vue").PropType<string>;
|
|
315
|
+
default: string;
|
|
323
316
|
};
|
|
324
317
|
request: {
|
|
325
318
|
type: import("vue").PropType<ProTableProps["request"]>;
|
|
@@ -582,14 +575,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
582
575
|
};
|
|
583
576
|
scroll: {
|
|
584
577
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/Table").TableProps["scroll"] & {
|
|
585
|
-
scrollToFirstRowOnChange
|
|
586
|
-
/**
|
|
587
|
-
* @Author gx12358
|
|
588
|
-
* @DateTime 2022/1/21
|
|
589
|
-
* @lastTime 2022/1/21
|
|
590
|
-
* @description Tabel-scroll hooks 方法
|
|
591
|
-
*/
|
|
592
|
-
?: boolean;
|
|
578
|
+
scrollToFirstRowOnChange?: boolean;
|
|
593
579
|
}>;
|
|
594
580
|
default: undefined;
|
|
595
581
|
};
|
|
@@ -701,7 +687,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
701
687
|
};
|
|
702
688
|
emptyText: DefaultRender;
|
|
703
689
|
prefixCls: string;
|
|
704
|
-
rowKey: string
|
|
690
|
+
rowKey: string;
|
|
705
691
|
tableLayout: import("ant-design-vue/es/vc-table/interface").TableLayout | undefined;
|
|
706
692
|
rowClassName: string | import("ant-design-vue/es/vc-table/interface").RowClassName<any> | undefined;
|
|
707
693
|
footer: import("ant-design-vue/es/vc-table/interface").PanelRender<any> | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ColumnType, TableProps } from 'ant-design-vue/es/table';
|
|
|
2
2
|
import type { ColumnsType, FilterValue, GetPopupContainer, SortOrder, SorterResult, TableCurrentDataSource, TableLocale } from 'ant-design-vue/es/table/interface';
|
|
3
3
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
4
4
|
import type { TableProps as RcTableProps } from 'ant-design-vue/es/vc-table/Table';
|
|
5
|
-
export type { TablePaginationConfig, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
5
|
+
export type { TablePaginationConfig, TableRowSelection, SelectionSelectFn } from 'ant-design-vue/es/table/interface';
|
|
6
6
|
export type { Key, RenderExpandIconProps, DataIndex } from 'ant-design-vue/es/vc-table/interface';
|
|
7
7
|
export type TableFilters = Record<string, FilterValue | null>;
|
|
8
8
|
export type TableSorterRecord = SorterResult<RecordType>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import type { Key, SelectionSelectFn } from '../_utils';
|
|
4
|
+
import type { ProTableRowSelection } from '../types/TableTypings';
|
|
5
|
+
export declare function useRowSelection(rowKey: Ref<string>, rowSelection: Ref<ProTableRowSelection | undefined>): {
|
|
6
|
+
selectedKey: Ref<Key[], Key[]>;
|
|
6
7
|
selectedItem: Ref<RecordType[], RecordType[]>;
|
|
7
|
-
selectRowKey:
|
|
8
|
-
selectAllRowKey: (selected:
|
|
8
|
+
selectRowKey: SelectionSelectFn<RecordType>;
|
|
9
|
+
selectAllRowKey: (selected: boolean, selectedRows: RecordType[], changeRows: RecordType[]) => void;
|
|
9
10
|
removeRowKeys: (keyList: (string | number)[]) => void;
|
|
10
11
|
changeRowKey: () => void;
|
|
11
|
-
syncSelectedRows: (dataList:
|
|
12
|
+
syncSelectedRows: (dataList: RecordType[]) => void;
|
|
12
13
|
clearAllRowKeys: () => void;
|
|
13
14
|
};
|
package/dist/hooks/useTable.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { BaseTableProps } from '../props';
|
|
3
|
-
import { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequsetConfig, RequsetFunction } from '../types/TableTypings';
|
|
4
3
|
import type { ProSearchMap } from '../types/ColumnTypings';
|
|
4
|
+
import { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequsetConfig, RequsetFunction } from '../types/TableTypings';
|
|
5
5
|
export declare function useTable<T extends object = Record<string, any>, R extends object = Record<string, any>>(tableRef: Ref<ProTableRef<T> | undefined>, options?: {
|
|
6
6
|
defaultValue?: Omit<ProTableProps<T, R>, 'request'>;
|
|
7
7
|
request?: RequsetFunction<T, R>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type
|
|
2
|
+
import { type RecordType } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import type { ProTablePagination, ProTableProps } from '../types/TableTypings';
|
|
4
4
|
import type { ProSearchMap } from '../types/ColumnTypings';
|
|
5
5
|
export declare function handleFormDefaultValue(data: ProSearchMap[]): any;
|
|
@@ -13,5 +13,5 @@ export declare function useTableForm({ search, searchMap, params, columns, setPa
|
|
|
13
13
|
formDataRef: Ref<ProSearchMap[], ProSearchMap[]>;
|
|
14
14
|
formParamsRef: RecordType;
|
|
15
15
|
defaultParamsRef: RecordType;
|
|
16
|
-
setFormParams: (params:
|
|
16
|
+
setFormParams: (params: RecordType) => void;
|
|
17
17
|
};
|