@gx-design-vue/pro-table 0.2.0-beta.105 → 0.2.0-beta.106
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 +16 -7
- package/dist/_utils/ant-design-vue/table/typings.d.ts +1 -1
- package/dist/hooks/useColums.d.ts +1 -4
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/pro-table.js +957 -955
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +1 -1
- package/dist/types/ColumnTypings.d.ts +19 -7
- package/dist/types/TableTypings.d.ts +1 -1
- package/package.json +3 -3
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, SlotsType } from 'vue';
|
|
2
2
|
import type { Key, SpinProps } from './_utils';
|
|
3
|
-
import type { ProColumnsType } from './types/ColumnTypings';
|
|
4
3
|
import type { OptionConfig, ProTableProps, SearchConfig } from './types/TableTypings';
|
|
5
4
|
import { type RecordType } from '@gx-design-vue/pro-utils';
|
|
6
5
|
import { AntTabelSlotsType, DefaultRender } from './types/SlotsTypings';
|
|
@@ -11,7 +10,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
10
|
};
|
|
12
11
|
columns: {
|
|
13
12
|
type: import("vue").PropType<ProTableProps["columns"]>;
|
|
14
|
-
default: never[];
|
|
13
|
+
default: () => never[];
|
|
15
14
|
};
|
|
16
15
|
pagination: {
|
|
17
16
|
type: import("vue").PropType<ProTableProps["pagination"]>;
|
|
@@ -163,7 +162,12 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
163
162
|
default: undefined;
|
|
164
163
|
};
|
|
165
164
|
'onUpdate:expandedRowKeys': {
|
|
166
|
-
type: import("vue"
|
|
165
|
+
type: import("vue" /**
|
|
166
|
+
* @Author gx12358
|
|
167
|
+
* @DateTime 2022/1/21
|
|
168
|
+
* @lastTime 2022/1/21
|
|
169
|
+
* @description Tabel-loading hooks 方法
|
|
170
|
+
*/).PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
167
171
|
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
168
172
|
};
|
|
169
173
|
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "reset" | "submit" | "change" | "requestError" | "reload" | "loadingChange" | "sizeChange" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -173,7 +177,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
173
177
|
};
|
|
174
178
|
columns: {
|
|
175
179
|
type: import("vue").PropType<ProTableProps["columns"]>;
|
|
176
|
-
default: never[];
|
|
180
|
+
default: () => never[];
|
|
177
181
|
};
|
|
178
182
|
pagination: {
|
|
179
183
|
type: import("vue").PropType<ProTableProps["pagination"]>;
|
|
@@ -325,7 +329,12 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
325
329
|
default: undefined;
|
|
326
330
|
};
|
|
327
331
|
'onUpdate:expandedRowKeys': {
|
|
328
|
-
type: import("vue"
|
|
332
|
+
type: import("vue" /**
|
|
333
|
+
* @Author gx12358
|
|
334
|
+
* @DateTime 2022/1/21
|
|
335
|
+
* @lastTime 2022/1/21
|
|
336
|
+
* @description Tabel-loading hooks 方法
|
|
337
|
+
*/).PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
|
|
329
338
|
default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
330
339
|
};
|
|
331
340
|
}>> & Readonly<{
|
|
@@ -341,7 +350,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
341
350
|
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
342
351
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
343
352
|
}>, {
|
|
344
|
-
columns: ProColumnsType<RecordType, RecordType> | undefined;
|
|
353
|
+
columns: import("./types/ColumnTypings").ProColumnsType<RecordType, RecordType> | undefined;
|
|
345
354
|
scroll: {
|
|
346
355
|
x?: number | true | string;
|
|
347
356
|
y?: number | string;
|
|
@@ -367,8 +376,8 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
367
376
|
bordered: boolean | undefined;
|
|
368
377
|
rowSelection: import("./types/TableTypings").ProTableRowSelection;
|
|
369
378
|
'onUpdate:expandedRowKeys': (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
379
|
+
align: import("ant-design-vue/es/vc-table/interface").AlignType | undefined;
|
|
370
380
|
customRender: import("./types/SlotsTypings").CustomDataRender | undefined;
|
|
371
|
-
align: "center" | "left" | "right" | undefined;
|
|
372
381
|
autoScroll: boolean | undefined;
|
|
373
382
|
tableProps: {
|
|
374
383
|
class?: string;
|
|
@@ -3,7 +3,7 @@ import type { ColumnType, TableProps } from 'ant-design-vue/es/table';
|
|
|
3
3
|
import type { ColumnsType, FilterValue, GetPopupContainer, SorterResult, SortOrder, TableCurrentDataSource, TableLocale } from 'ant-design-vue/es/table/interface';
|
|
4
4
|
import type { TableProps as RcTableProps } from 'ant-design-vue/es/vc-table/Table';
|
|
5
5
|
export type { SelectionSelectFn, TablePaginationConfig, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
6
|
-
export type { DataIndex, Key, RenderExpandIconProps } from 'ant-design-vue/es/vc-table/interface';
|
|
6
|
+
export type { AlignType, DataIndex, Key, RenderExpandIconProps } from 'ant-design-vue/es/vc-table/interface';
|
|
7
7
|
export type TableFilters = Record<string, FilterValue | null>;
|
|
8
8
|
export type TableSorterRecord = SorterResult<RecordType>;
|
|
9
9
|
export type TableSorter = TableSorterRecord | TableSorterRecord[];
|
|
@@ -15,9 +15,8 @@ type UseColumnsType = {
|
|
|
15
15
|
export declare function useConfigColumns(props: ProTableProps): ConfigColumns;
|
|
16
16
|
export declare function useColumns({ scroll, columns, breakpoint, draggabled, autoScroll, neverScroll }: UseColumnsType): {
|
|
17
17
|
breakpoint: ComputedRef<boolean | undefined>;
|
|
18
|
-
proColumns: ComputedRef<(import("@gx-design-vue/pro-utils/dist").
|
|
18
|
+
proColumns: ComputedRef<(import("../types/ColumnTypings").DefaultProColumnWithKeyOrDataIndex<import("@gx-design-vue/pro-utils/dist").RecordType> & Omit<import("ant-design-vue/es/table/interface").ColumnType<import("@gx-design-vue/pro-utils/dist").RecordType>, keyof import("../types/ColumnTypings").DefaultProColumn | "key" | "dataIndex"> & {
|
|
19
19
|
children?: ProColumnsType<import("@gx-design-vue/pro-utils/dist").RecordType, import("@gx-design-vue/pro-utils/dist").RecordType> | undefined;
|
|
20
|
-
uuid?: string | number;
|
|
21
20
|
index?: number;
|
|
22
21
|
copyText?: string | ((record: ProColumnType) => string);
|
|
23
22
|
tooltip?: false | (Partial<import("vue").ExtractPropTypes<{
|
|
@@ -88,8 +87,6 @@ export declare function useColumns({ scroll, columns, breakpoint, draggabled, au
|
|
|
88
87
|
class?: string;
|
|
89
88
|
}) | undefined;
|
|
90
89
|
show?: boolean;
|
|
91
|
-
key?: string | undefined;
|
|
92
|
-
dataIndex?: string | undefined;
|
|
93
90
|
order?: number;
|
|
94
91
|
hideInSetting?: boolean;
|
|
95
92
|
searchConfig?: import("../types/ColumnTypings").ProSearchMap<undefined, string> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils
|
|
2
|
+
import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils';
|
|
3
3
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
4
4
|
import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
|
|
5
5
|
import { type RecordType } from '@gx-design-vue/pro-utils';
|
|
@@ -32,7 +32,7 @@ export declare function useFetchData({ rowKey, polling, request, postData, dataS
|
|
|
32
32
|
isTreeDataRef: ComputedRef<boolean>;
|
|
33
33
|
reSetDataList: (list: RecordType[]) => void;
|
|
34
34
|
changeDataValue: ({ key, type, params, value }: {
|
|
35
|
-
params
|
|
35
|
+
params?: Partial<RecordType> | undefined;
|
|
36
36
|
key?: string | undefined;
|
|
37
37
|
value?: any;
|
|
38
38
|
type?: "update" | "push" | "delete" | "unshift";
|