@gx-design-vue/pro-table 0.2.0-beta.43 → 0.2.0-beta.44
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 +8 -8
- package/dist/_utils/ant-design-vue/table/props.d.ts +1 -1
- package/dist/components/ColumnSetting/index.d.ts +2 -2
- package/dist/components/Form/index.d.ts +5 -5
- package/dist/components/ListToolBar/index.d.ts +4 -4
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -1
- package/dist/components/ToolBar/index.d.ts +2 -2
- package/dist/hooks/useColums.d.ts +2 -2
- package/dist/hooks/useFetchData.d.ts +1 -1
- package/dist/hooks/useTableForm.d.ts +1 -1
- package/dist/{pro-table.mjs → pro-table.js} +243 -243
- package/dist/pro-table.umd.cjs +1 -0
- package/dist/props.d.ts +2 -2
- package/package.json +36 -33
- package/dist/pro-table.umd.js +0 -1
- package/dist/types/ColumnTypings.d.ts +0 -91
- package/dist/types/TableTypings.d.ts +0 -154
package/dist/ProTable.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { ProColumnsType } from './types/ColumnTypings';
|
|
|
5
5
|
import type { HeaderTitleRender, TitleTipRender, ToolBarBtnRender, CustomizeRender, SettingExtraRender, OptionsExtraRender } from './types/SlotsTypings';
|
|
6
6
|
declare const GProTable: import("vue").DefineComponent<{
|
|
7
7
|
rowSelection: {
|
|
8
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection
|
|
8
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
11
|
columns: {
|
|
@@ -44,7 +44,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
44
44
|
default: () => SearchConfig;
|
|
45
45
|
};
|
|
46
46
|
searchMap: {
|
|
47
|
-
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap
|
|
47
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap[] | undefined>;
|
|
48
48
|
default: () => never[];
|
|
49
49
|
};
|
|
50
50
|
customRender: {
|
|
@@ -362,9 +362,9 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
362
362
|
type: import("vue").PropType<import("ant-design-vue/es/vc-table/interface").TransformCellText<any> | undefined>;
|
|
363
363
|
default: undefined;
|
|
364
364
|
};
|
|
365
|
-
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "
|
|
365
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("loadingChange" | "sizeChange" | "change" | "requestError" | "reload" | "reset" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange")[], "loadingChange" | "sizeChange" | "change" | "requestError" | "reload" | "reset" | "submit" | "expandedRowsChange" | "expand" | "beforeSearchSubmit" | "columnsStateChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
366
366
|
rowSelection: {
|
|
367
|
-
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection
|
|
367
|
+
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
368
368
|
default: undefined;
|
|
369
369
|
};
|
|
370
370
|
columns: {
|
|
@@ -403,7 +403,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
403
403
|
default: () => SearchConfig;
|
|
404
404
|
};
|
|
405
405
|
searchMap: {
|
|
406
|
-
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap
|
|
406
|
+
type: import("vue").PropType<import("./types/ColumnTypings").ProSearchMap[] | undefined>;
|
|
407
407
|
default: () => never[];
|
|
408
408
|
};
|
|
409
409
|
customRender: {
|
|
@@ -791,7 +791,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
791
791
|
locale: import("ant-design-vue/es/table/interface").TableLocale;
|
|
792
792
|
onChange: (pagination: import("./types/TableTypings").ProTablePagination, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
|
|
793
793
|
onResizeColumn: (w: number, col: import("ant-design-vue").TableColumnType<any>) => void;
|
|
794
|
-
rowSelection: import("./types/TableTypings").ProTableRowSelection
|
|
794
|
+
rowSelection: import("./types/TableTypings").ProTableRowSelection;
|
|
795
795
|
getPopupContainer: import("ant-design-vue/es/table/interface").GetPopupContainer;
|
|
796
796
|
sortDirections: import("ant-design-vue/es/table/interface").SortOrder[];
|
|
797
797
|
showSorterTooltip: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
@@ -862,7 +862,7 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
862
862
|
pageNum?: number | undefined;
|
|
863
863
|
}> | undefined;
|
|
864
864
|
search: boolean | SearchConfig | undefined;
|
|
865
|
-
searchMap: import("./types/ColumnTypings").ProSearchMap
|
|
865
|
+
searchMap: import("./types/ColumnTypings").ProSearchMap[] | undefined;
|
|
866
866
|
titleTip: TitleTipRender;
|
|
867
867
|
headerTitle: HeaderTitleRender;
|
|
868
868
|
toolBarBtn: ToolBarBtnRender;
|
|
@@ -871,5 +871,5 @@ declare const GProTable: import("vue").DefineComponent<{
|
|
|
871
871
|
settingExtra: SettingExtraRender;
|
|
872
872
|
pageItemRender: import("./types/SlotsTypings").PageItemRender | undefined;
|
|
873
873
|
'onUpdate:expandedRowKeys': ((expandedKeys: Key[]) => void) | undefined;
|
|
874
|
-
}>;
|
|
874
|
+
}, {}>;
|
|
875
875
|
export default GProTable;
|
|
@@ -17,7 +17,7 @@ declare const ColumnSetting: import("vue").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
checkedReset: PropType<boolean | undefined>;
|
|
19
19
|
extra: PropType<SettingExtraRender>;
|
|
20
|
-
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
20
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
draggable: {
|
|
22
22
|
type: PropType<boolean | undefined>;
|
|
23
23
|
default: undefined;
|
|
@@ -31,5 +31,5 @@ declare const ColumnSetting: import("vue").DefineComponent<{
|
|
|
31
31
|
}>>, {
|
|
32
32
|
checkable: boolean | undefined;
|
|
33
33
|
draggable: boolean | undefined;
|
|
34
|
-
}>;
|
|
34
|
+
}, {}>;
|
|
35
35
|
export default ColumnSetting;
|
|
@@ -9,20 +9,20 @@ declare const ProTableForm: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
modal: PropType<boolean | undefined>;
|
|
11
11
|
searchMap: {
|
|
12
|
-
type: PropType<ProSearchMap
|
|
12
|
+
type: PropType<ProSearchMap[]>;
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
15
|
loading: PropType<boolean>;
|
|
16
16
|
prefixCls: PropType<string>;
|
|
17
17
|
defaultParams: PropType<RecordType>;
|
|
18
|
-
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "search"[], "search", import("vue").
|
|
18
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "search"[], "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
search: {
|
|
20
20
|
type: PropType<SearchConfig>;
|
|
21
21
|
default: () => SearchConfig;
|
|
22
22
|
};
|
|
23
23
|
modal: PropType<boolean | undefined>;
|
|
24
24
|
searchMap: {
|
|
25
|
-
type: PropType<ProSearchMap
|
|
25
|
+
type: PropType<ProSearchMap[]>;
|
|
26
26
|
default: () => never[];
|
|
27
27
|
};
|
|
28
28
|
loading: PropType<boolean>;
|
|
@@ -32,6 +32,6 @@ declare const ProTableForm: import("vue").DefineComponent<{
|
|
|
32
32
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
search: SearchConfig;
|
|
35
|
-
searchMap: ProSearchMap
|
|
36
|
-
}>;
|
|
35
|
+
searchMap: ProSearchMap[];
|
|
36
|
+
}, {}>;
|
|
37
37
|
export default ProTableForm;
|
|
@@ -11,7 +11,7 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
11
11
|
type: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
12
12
|
default: () => undefined;
|
|
13
13
|
};
|
|
14
|
-
settings: PropType<
|
|
14
|
+
settings: PropType<import("vue").VNodeChild[]>;
|
|
15
15
|
titleTip: {
|
|
16
16
|
type: PropType<import("../../types/SlotsTypings").TitleTipRender>;
|
|
17
17
|
default: () => undefined;
|
|
@@ -29,12 +29,12 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
29
29
|
type: PropType<import("../../types/SlotsTypings").OptionsExtraRender>;
|
|
30
30
|
default: () => undefined;
|
|
31
31
|
};
|
|
32
|
-
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
32
|
+
}, () => import("ant-design-vue/es/_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
33
|
actions: {
|
|
34
34
|
type: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
35
35
|
default: () => undefined;
|
|
36
36
|
};
|
|
37
|
-
settings: PropType<
|
|
37
|
+
settings: PropType<import("vue").VNodeChild[]>;
|
|
38
38
|
titleTip: {
|
|
39
39
|
type: PropType<import("../../types/SlotsTypings").TitleTipRender>;
|
|
40
40
|
default: () => undefined;
|
|
@@ -58,5 +58,5 @@ declare const ListToolBar: import("vue").DefineComponent<{
|
|
|
58
58
|
headerTitle: import("../../types/SlotsTypings").HeaderTitleRender;
|
|
59
59
|
optionsExtra: import("../../types/SlotsTypings").OptionsExtraRender;
|
|
60
60
|
actions: import("../../types/SlotsTypings").ToolBarBtnRender;
|
|
61
|
-
}>;
|
|
61
|
+
}, {}>;
|
|
62
62
|
export default ListToolBar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const FullScreenIcon: import("vue").DefineComponent<{}, () =>
|
|
1
|
+
declare const FullScreenIcon: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default FullScreenIcon;
|
|
@@ -18,7 +18,7 @@ declare const ToolbarRender: import("vue").DefineComponent<{
|
|
|
18
18
|
titleTipText: PropType<string | undefined>;
|
|
19
19
|
toolBarBtn: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
20
20
|
headerTitle: PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
|
|
21
|
-
}, () =>
|
|
21
|
+
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
options: PropType<boolean | OptionConfig | undefined>;
|
|
23
23
|
titleTip: PropType<import("../../types/SlotsTypings").TitleTipRender>;
|
|
24
24
|
settingExtra: PropType<import("../../types/SlotsTypings").SettingExtraRender>;
|
|
@@ -26,5 +26,5 @@ declare const ToolbarRender: import("vue").DefineComponent<{
|
|
|
26
26
|
titleTipText: PropType<string | undefined>;
|
|
27
27
|
toolBarBtn: PropType<import("../../types/SlotsTypings").ToolBarBtnRender>;
|
|
28
28
|
headerTitle: PropType<import("../../types/SlotsTypings").HeaderTitleRender>;
|
|
29
|
-
}>>, {}>;
|
|
29
|
+
}>>, {}, {}>;
|
|
30
30
|
export default ToolbarRender;
|
|
@@ -16,8 +16,8 @@ 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
18
|
getProColumns: ComputedRef<ProColumnType<import("../typing").DefaultRecordType>[]>;
|
|
19
|
-
cacheProColumns: Ref<ProColumnsType
|
|
20
|
-
setColumns: (columnList: ProColumnsType
|
|
19
|
+
cacheProColumns: Ref<ProColumnsType>;
|
|
20
|
+
setColumns: (columnList: ProColumnsType) => void;
|
|
21
21
|
changeColumns: (columnState: Record<string, ColumnsState>) => void;
|
|
22
22
|
resizeColumnWidth: (w: number, col: ProColumnType) => void;
|
|
23
23
|
};
|
|
@@ -32,7 +32,7 @@ export declare function useFetchData({ polling, request, postData, dataSource, w
|
|
|
32
32
|
changeDataValue: ({ key, params, type }: {
|
|
33
33
|
key?: string | undefined;
|
|
34
34
|
params: RecordType;
|
|
35
|
-
type?: "
|
|
35
|
+
type?: "delete" | "add" | "update" | undefined;
|
|
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>;
|
|
@@ -10,7 +10,7 @@ export declare function useTableForm({ search, searchMap, params, columns, setPa
|
|
|
10
10
|
columns: ComputedRef<ProTableProps['columns']>;
|
|
11
11
|
setPagination: (info: Partial<ProTablePagination>) => void;
|
|
12
12
|
}): {
|
|
13
|
-
formDataRef: Ref<ProSearchMap
|
|
13
|
+
formDataRef: Ref<ProSearchMap[]>;
|
|
14
14
|
formParamsRef: RecordType;
|
|
15
15
|
defaultParamsRef: RecordType;
|
|
16
16
|
setFormParams: (params: any) => void;
|