@gx-design-vue/pro-table 0.2.0-beta.46 → 0.2.0-beta.47
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 +38 -4
- package/dist/_utils/ant-design-vue/table/props.d.ts +8 -0
- package/dist/context/TableContext.d.ts +1 -1
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/pro-table.js +656 -642
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +8 -0
- package/dist/types/SlotsTypings.d.ts +1 -1
- package/dist/types/TableTypings.d.ts +5 -5
- package/dist/utils/utils.d.ts +2 -0
- package/package.json +4 -4
package/dist/ProTable.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
112
112
|
type: import("vue").PropType<boolean | undefined>;
|
|
113
113
|
default: boolean;
|
|
114
114
|
};
|
|
115
|
-
scrollBreakpoint: import("vue").PropType<number | import("@gx-design-vue/pro-utils").Breakpoint | undefined>;
|
|
115
|
+
scrollBreakpoint: import("vue").PropType<number | import("@gx-design-vue/pro-utils/dist").Breakpoint | undefined>;
|
|
116
116
|
modalScroll: import("vue").PropType<boolean | undefined>;
|
|
117
117
|
neverScroll: import("vue").PropType<boolean | undefined>;
|
|
118
118
|
columnEmptyText: {
|
|
@@ -268,7 +268,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
268
268
|
};
|
|
269
269
|
locale: {
|
|
270
270
|
type: import("vue").PropType<import("ant-design-vue/es/table/interface").TableLocale>;
|
|
271
|
-
default: undefined;
|
|
271
|
+
default: undefined; /**
|
|
272
|
+
* @Author gx12358
|
|
273
|
+
* @DateTime 2022/1/21
|
|
274
|
+
* @lastTime 2022/1/21
|
|
275
|
+
* @description Tabel-size hooks 方法
|
|
276
|
+
*/
|
|
272
277
|
};
|
|
273
278
|
onChange: {
|
|
274
279
|
type: import("vue").PropType<(pagination: import("./types/TableTypings").ProTablePagination, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void>;
|
|
@@ -328,6 +333,14 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
328
333
|
type: BooleanConstructor;
|
|
329
334
|
default: any;
|
|
330
335
|
};
|
|
336
|
+
arrow: {
|
|
337
|
+
type: import("vue").PropType<boolean | {
|
|
338
|
+
pointAtCenter?: boolean | undefined;
|
|
339
|
+
}>;
|
|
340
|
+
default: boolean | {
|
|
341
|
+
pointAtCenter?: boolean | undefined;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
331
344
|
autoAdjustOverflow: {
|
|
332
345
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
333
346
|
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
@@ -465,7 +478,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
465
478
|
type: import("vue").PropType<boolean | undefined>;
|
|
466
479
|
default: boolean;
|
|
467
480
|
};
|
|
468
|
-
scrollBreakpoint: import("vue").PropType<number | import("@gx-design-vue/pro-utils").Breakpoint | undefined>;
|
|
481
|
+
scrollBreakpoint: import("vue").PropType<number | import("@gx-design-vue/pro-utils/dist").Breakpoint | undefined>;
|
|
469
482
|
modalScroll: import("vue").PropType<boolean | undefined>;
|
|
470
483
|
neverScroll: import("vue").PropType<boolean | undefined>;
|
|
471
484
|
columnEmptyText: {
|
|
@@ -621,7 +634,12 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
621
634
|
};
|
|
622
635
|
locale: {
|
|
623
636
|
type: import("vue").PropType<import("ant-design-vue/es/table/interface").TableLocale>;
|
|
624
|
-
default: undefined;
|
|
637
|
+
default: undefined; /**
|
|
638
|
+
* @Author gx12358
|
|
639
|
+
* @DateTime 2022/1/21
|
|
640
|
+
* @lastTime 2022/1/21
|
|
641
|
+
* @description Tabel-size hooks 方法
|
|
642
|
+
*/
|
|
625
643
|
};
|
|
626
644
|
onChange: {
|
|
627
645
|
type: import("vue").PropType<(pagination: import("./types/TableTypings").ProTablePagination, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void>;
|
|
@@ -681,6 +699,14 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
681
699
|
type: BooleanConstructor;
|
|
682
700
|
default: any;
|
|
683
701
|
};
|
|
702
|
+
arrow: {
|
|
703
|
+
type: import("vue").PropType<boolean | {
|
|
704
|
+
pointAtCenter?: boolean | undefined;
|
|
705
|
+
}>;
|
|
706
|
+
default: boolean | {
|
|
707
|
+
pointAtCenter?: boolean | undefined;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
684
710
|
autoAdjustOverflow: {
|
|
685
711
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
686
712
|
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
@@ -814,6 +840,14 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
814
840
|
type: BooleanConstructor;
|
|
815
841
|
default: any;
|
|
816
842
|
};
|
|
843
|
+
arrow: {
|
|
844
|
+
type: import("vue").PropType<boolean | {
|
|
845
|
+
pointAtCenter?: boolean | undefined;
|
|
846
|
+
}>;
|
|
847
|
+
default: boolean | {
|
|
848
|
+
pointAtCenter?: boolean | undefined;
|
|
849
|
+
};
|
|
850
|
+
};
|
|
817
851
|
autoAdjustOverflow: {
|
|
818
852
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
819
853
|
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
@@ -217,6 +217,14 @@ export declare const tableProps: () => {
|
|
|
217
217
|
type: BooleanConstructor;
|
|
218
218
|
default: any;
|
|
219
219
|
};
|
|
220
|
+
arrow: {
|
|
221
|
+
type: PropType<boolean | {
|
|
222
|
+
pointAtCenter?: boolean | undefined;
|
|
223
|
+
}>;
|
|
224
|
+
default: boolean | {
|
|
225
|
+
pointAtCenter?: boolean | undefined;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
220
228
|
autoAdjustOverflow: {
|
|
221
229
|
type: PropType<boolean | import("ant-design-vue/es/tooltip").AdjustOverflow>;
|
|
222
230
|
default: boolean | import("ant-design-vue/es/tooltip").AdjustOverflow;
|
|
@@ -21,6 +21,6 @@ export interface TableContextProps {
|
|
|
21
21
|
changeColumns: (map: Record<string, ColumnsState>, fixed: boolean) => void;
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}
|
|
24
|
-
export declare const useContext: <T>(contextInjectKey?: string | InjectionKey<T>, defaultValue?: T
|
|
24
|
+
export declare const useContext: <T>(contextInjectKey?: string | InjectionKey<T>, defaultValue?: T) => T;
|
|
25
25
|
export declare const provideTableContext: (value: TableContextProps) => void;
|
|
26
26
|
export declare const useTableContext: (defaultValue?: Required<TableContextProps>) => Required<TableContextProps>;
|
|
@@ -30,9 +30,9 @@ export declare function useFetchData({ polling, request, postData, dataSource, w
|
|
|
30
30
|
isTreeDataRef: ComputedRef<boolean>;
|
|
31
31
|
reSetDataList: (list: RecordType[]) => void;
|
|
32
32
|
changeDataValue: ({ key, params, type }: {
|
|
33
|
-
key?: string
|
|
33
|
+
key?: string;
|
|
34
34
|
params: RecordType;
|
|
35
|
-
type?:
|
|
35
|
+
type?: 'update' | 'add' | 'delete';
|
|
36
36
|
}) => void;
|
|
37
37
|
handleTableChange: (pagination: ProTablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
|
|
38
38
|
reload: (info?: ProTabelFeachParams) => Promise<void>;
|