@gx-design-vue/pro-table 0.2.0-beta.115 → 0.2.0-beta.117
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 +12 -9
- package/dist/components/Form/index.d.ts +6 -36
- package/dist/hooks/useFetchData.d.ts +1 -1
- package/dist/hooks/useTable.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/pro-table.js +451 -436
- package/dist/pro-table.umd.cjs +12 -1
- package/dist/types/ColumnTypings.d.ts +4 -4
- package/dist/types/SlotsTypings.d.ts +6 -1
- package/dist/types/TableTypings.d.ts +1 -0
- package/package.json +5 -5
package/dist/ProTable.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
|
2
2
|
import type { CSSProperties, SlotsType } from 'vue';
|
|
3
3
|
import type { Key, SpinProps } from './_utils';
|
|
4
4
|
import type { OptionConfig, ProTableProps, SearchConfig } from './types/TableTypings';
|
|
5
|
-
import { AntTableSlotsType, DefaultRender } from './types/SlotsTypings';
|
|
6
5
|
declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
6
|
rowSelection: {
|
|
8
7
|
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
@@ -346,7 +345,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
346
345
|
} & {
|
|
347
346
|
scrollToFirstRowOnChange?: boolean;
|
|
348
347
|
};
|
|
349
|
-
emptyText: DefaultRender;
|
|
348
|
+
emptyText: import("./types/SlotsTypings").DefaultRender;
|
|
350
349
|
rowKey: string;
|
|
351
350
|
pagination: ((false | import("ant-design-vue").TablePaginationConfig) & import("./types/TableTypings").ProTablePagination) | undefined;
|
|
352
351
|
loading: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
@@ -391,11 +390,11 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
391
390
|
params: RecordType | undefined;
|
|
392
391
|
search: false | SearchConfig | undefined;
|
|
393
392
|
searchMap: import("./types/ColumnTypings").ProSearchMap<undefined, string>[] | undefined;
|
|
394
|
-
titleTip: DefaultRender;
|
|
395
|
-
headerTitle: DefaultRender;
|
|
396
|
-
toolBarBtn: DefaultRender;
|
|
397
|
-
optionsExtra: DefaultRender;
|
|
398
|
-
settingExtra: DefaultRender;
|
|
393
|
+
titleTip: import("./types/SlotsTypings").DefaultRender;
|
|
394
|
+
headerTitle: import("./types/SlotsTypings").DefaultRender;
|
|
395
|
+
toolBarBtn: import("./types/SlotsTypings").DefaultRender;
|
|
396
|
+
optionsExtra: import("./types/SlotsTypings").DefaultRender;
|
|
397
|
+
settingExtra: import("./types/SlotsTypings").DefaultRender;
|
|
399
398
|
pageItemRender: import("./types/SlotsTypings").PageItemRender | undefined;
|
|
400
399
|
}, SlotsType<{
|
|
401
400
|
search(): void;
|
|
@@ -406,10 +405,14 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
406
405
|
toolBarBtn(): void;
|
|
407
406
|
headerTitle(): void;
|
|
408
407
|
default(): void;
|
|
409
|
-
pageItemRender(
|
|
408
|
+
pageItemRender(params: {
|
|
409
|
+
page: number;
|
|
410
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
411
|
+
originalElement: any;
|
|
412
|
+
}): void;
|
|
410
413
|
customRender(params: {
|
|
411
414
|
currentData: any[];
|
|
412
415
|
dataSource: any[];
|
|
413
416
|
}): void;
|
|
414
|
-
}
|
|
417
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
415
418
|
export default ProTable;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { DefineComponent, ExtractPropTypes, PropType } from 'vue';
|
|
2
3
|
import type { ProSearchMap } from '../../types/ColumnTypings';
|
|
3
|
-
|
|
4
|
-
declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
declare const tableForm: {
|
|
5
5
|
modal: PropType<boolean | undefined>;
|
|
6
6
|
searchMap: {
|
|
7
7
|
type: PropType<ProSearchMap[]>;
|
|
@@ -18,37 +18,7 @@ declare const ProTableForm: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
18
18
|
prefixCls: PropType<string>;
|
|
19
19
|
defaultParams: PropType<RecordType>;
|
|
20
20
|
onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type: PropType<ProSearchMap[]>;
|
|
25
|
-
default: () => never[];
|
|
26
|
-
};
|
|
27
|
-
loading: {
|
|
28
|
-
type: PropType<boolean | import("ant-design-vue").SpinProps>;
|
|
29
|
-
default: undefined;
|
|
30
|
-
};
|
|
31
|
-
cardBordered: {
|
|
32
|
-
type: PropType<import("../../types/TableTypings").ProTableProps["showIndex"]>;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
prefixCls: PropType<string>;
|
|
36
|
-
defaultParams: PropType<RecordType>;
|
|
37
|
-
onSearch: PropType<(formState: any, buttonActions?: "reset" | "submit") => any>;
|
|
38
|
-
}>> & Readonly<{}>, {
|
|
39
|
-
loading: boolean | Partial<import("vue").ExtractPropTypes<{
|
|
40
|
-
prefixCls: StringConstructor;
|
|
41
|
-
spinning: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
default: any;
|
|
44
|
-
};
|
|
45
|
-
size: PropType<import("ant-design-vue/es/spin/Spin").SpinSize>;
|
|
46
|
-
wrapperClassName: StringConstructor;
|
|
47
|
-
tip: import("vue-types").VueTypeValidableDef<any>;
|
|
48
|
-
delay: NumberConstructor;
|
|
49
|
-
indicator: import("vue-types").VueTypeValidableDef<any>;
|
|
50
|
-
}>>;
|
|
51
|
-
cardBordered: boolean | undefined;
|
|
52
|
-
searchMap: ProSearchMap<"text", string>[];
|
|
53
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
};
|
|
22
|
+
export type ProTableFormProps = ExtractPropTypes<typeof tableForm>;
|
|
23
|
+
declare const ProTableForm: DefineComponent<ProTableFormProps>;
|
|
54
24
|
export default ProTableForm;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
3
|
import type { FilterValue, SorterResult, TableCurrentDataSource } from '../_utils';
|
|
3
4
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
4
5
|
import type { ProTableFetchParams, ProTablePagination, ProTablePaginationConfig, ProTableProps, SearchConfig } from '../types/TableTypings';
|
|
5
|
-
import { ComputedRef, Ref } from 'vue';
|
|
6
6
|
interface ActionType {
|
|
7
7
|
loading: ComputedRef<boolean | undefined>;
|
|
8
8
|
search: ComputedRef<SearchConfig | false>;
|
package/dist/hooks/useTable.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
1
2
|
import type { ComputedRef, MaybeRef, Ref } from 'vue';
|
|
2
3
|
import type { BaseTableProps } from '../props';
|
|
3
4
|
import type { ProColumnsType, ProSearchMap } from '../types/ColumnTypings';
|
|
4
5
|
import type { ProCoreActionType, ProCoreFormType, ProTableProps, ProTableRef, ProTableRowSelection, RequestConfig, RequestFunction } from '../types/TableTypings';
|
|
5
|
-
import { RecordType } from '@gx-design-vue/pro-utils';
|
|
6
6
|
export type ProTableState<T extends object = RecordType, R extends object = RecordType> = BaseTableProps & {
|
|
7
7
|
params: R;
|
|
8
8
|
columns: ProColumnsType<T, R>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import ProTable from './ProTable';
|
|
1
2
|
export * from './hooks/useTable';
|
|
2
|
-
export type { BaseTableProps } from './props';
|
|
3
3
|
export { proTableProps } from './props';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
4
|
+
export { ProTable as GProTable };
|
|
5
|
+
export type { BaseTableProps } from './props';
|
|
6
6
|
export type { ProColumnsType, ProColumnType, ProFieldValueType, ProSearchMap } from './types/ColumnTypings';
|
|
7
7
|
export type { CustomRenderResult, ProTableBodyCellProps } from './types/SlotsTypings';
|
|
8
8
|
export type { PageState, ProTableProps } from './types/TableTypings';
|