@gx-design-vue/pro-table 0.2.0-beta.90 → 0.2.0-beta.92
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 +10 -3
- package/dist/components/Form/index.d.ts +4 -14
- package/dist/context/TableContext.d.ts +4 -1
- package/dist/hooks/useFetchData.d.ts +2 -2
- package/dist/pro-table.js +1114 -1104
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +4 -1
- package/dist/types/TableTypings.d.ts +7 -3
- package/package.json +2 -2
package/dist/ProTable.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
default: null;
|
|
26
26
|
};
|
|
27
27
|
virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
|
|
28
|
-
params:
|
|
28
|
+
params: {
|
|
29
|
+
type: import("vue").PropType<ProTableProps["params"]>;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
29
32
|
waitRequest: {
|
|
30
33
|
type: import("vue").PropType<ProTableProps["waitRequest"]>;
|
|
31
34
|
default: boolean;
|
|
@@ -172,7 +175,10 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
172
175
|
default: null;
|
|
173
176
|
};
|
|
174
177
|
virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
|
|
175
|
-
params:
|
|
178
|
+
params: {
|
|
179
|
+
type: import("vue").PropType<ProTableProps["params"]>;
|
|
180
|
+
default: () => {};
|
|
181
|
+
};
|
|
176
182
|
waitRequest: {
|
|
177
183
|
type: import("vue").PropType<ProTableProps["waitRequest"]>;
|
|
178
184
|
default: boolean;
|
|
@@ -338,7 +344,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
338
344
|
'onUpdate:expandedRowKeys': (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
|
|
339
345
|
customRender: import("./types/SlotsTypings").CustomDataRender | undefined;
|
|
340
346
|
align: "left" | "right" | "center" | undefined;
|
|
341
|
-
search:
|
|
347
|
+
search: false | SearchConfig | undefined;
|
|
342
348
|
headerTitle: DefaultRender;
|
|
343
349
|
toolBarBtn: DefaultRender;
|
|
344
350
|
titleTip: DefaultRender;
|
|
@@ -363,6 +369,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
363
369
|
waitRequest: boolean | undefined;
|
|
364
370
|
debounceTime: number | undefined;
|
|
365
371
|
request: import("./types/TableTypings").RequsetFunction<import("./typing").DefaultRecordType, import("./typing").DefaultRecordType> | undefined;
|
|
372
|
+
params: import("./typing").DefaultRecordType | undefined;
|
|
366
373
|
searchMap: import("./types/ColumnTypings").ProSearchMap<undefined, string>[] | undefined;
|
|
367
374
|
}, SlotsType<{
|
|
368
375
|
search(): void;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { RecordType } from '@gx-design-vue/pro-utils';
|
|
3
|
-
import type { SearchConfig } from '../../types/TableTypings';
|
|
4
3
|
import type { ProSearchMap } from '../../types/ColumnTypings';
|
|
5
4
|
declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
search: {
|
|
7
|
-
type: PropType<SearchConfig>;
|
|
8
|
-
default: () => SearchConfig;
|
|
9
|
-
};
|
|
10
5
|
modal: PropType<boolean | undefined>;
|
|
11
6
|
searchMap: {
|
|
12
7
|
type: PropType<ProSearchMap[]>;
|
|
@@ -15,11 +10,8 @@ declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
15
10
|
loading: PropType<boolean>;
|
|
16
11
|
prefixCls: PropType<string>;
|
|
17
12
|
defaultParams: PropType<RecordType>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: PropType<SearchConfig>;
|
|
21
|
-
default: () => SearchConfig;
|
|
22
|
-
};
|
|
13
|
+
onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
|
|
14
|
+
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
15
|
modal: PropType<boolean | undefined>;
|
|
24
16
|
searchMap: {
|
|
25
17
|
type: PropType<ProSearchMap[]>;
|
|
@@ -28,10 +20,8 @@ declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
28
20
|
loading: PropType<boolean>;
|
|
29
21
|
prefixCls: PropType<string>;
|
|
30
22
|
defaultParams: PropType<RecordType>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}>, {
|
|
34
|
-
search: SearchConfig;
|
|
23
|
+
onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
|
|
24
|
+
}>> & Readonly<{}>, {
|
|
35
25
|
searchMap: ProSearchMap[];
|
|
36
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
27
|
export default ProTableForm;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { SizeType } from '@gx-design-vue/pro-utils';
|
|
3
|
+
import type { SearchConfig } from '../types/TableTypings';
|
|
3
4
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
4
5
|
import type { Slots } from '../types/SlotsTypings';
|
|
5
6
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
@@ -7,6 +8,9 @@ import type { PaginationProps } from '../_utils';
|
|
|
7
8
|
export interface ProTableContextProps {
|
|
8
9
|
columns: ComputedRef<ProColumnsType>;
|
|
9
10
|
isMobile: ComputedRef<boolean>;
|
|
11
|
+
searchConfig: ComputedRef<SearchConfig>;
|
|
12
|
+
searchActions: ComputedRef<SearchConfig['actions']>;
|
|
13
|
+
manualSearch: ComputedRef<boolean>;
|
|
10
14
|
cacheColumns: ComputedRef<ProColumnsType>;
|
|
11
15
|
tableSize: Ref<SizeType>;
|
|
12
16
|
action: {
|
|
@@ -19,7 +23,6 @@ export interface ProTableContextProps {
|
|
|
19
23
|
settingsAction: SettingsAction;
|
|
20
24
|
slots: Slots;
|
|
21
25
|
changeColumns: (map: Record<string, ColumnsState>, fixed: boolean) => void;
|
|
22
|
-
[key: string]: any;
|
|
23
26
|
}
|
|
24
27
|
declare const provideTableContext: (value: ProTableContextProps) => void, useTableContext: (injectDefaultValue?: ProTableContextProps | undefined) => ProTableContextProps;
|
|
25
28
|
export { provideTableContext, useTableContext, };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils/ant-design-vue/table/typings';
|
|
3
|
-
import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps } from '../types/TableTypings';
|
|
3
|
+
import type { ProTabelFeachParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
|
|
4
4
|
import type { DefaultRecordType } from '../typing';
|
|
5
5
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
6
6
|
interface ActionType {
|
|
7
7
|
loading: ComputedRef<boolean | undefined>;
|
|
8
|
-
search:
|
|
8
|
+
search: ComputedRef<SearchConfig | false>;
|
|
9
9
|
paginationInfo: Ref<ProTablePagination>;
|
|
10
10
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
11
11
|
setLoading: (loading: boolean) => void;
|