@gx-design-vue/pro-table 0.2.0-beta.51 → 0.2.0-beta.52
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 +21 -11
- package/dist/components/ColumnSetting/index.d.ts +2 -2
- package/dist/components/ListToolBar/index.d.ts +4 -4
- package/dist/context/TableContext.d.ts +10 -10
- package/dist/hooks/usePagination.d.ts +2 -1
- package/dist/pro-table.js +847 -858
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/types/ColumnTypings.d.ts +3 -3
- package/dist/types/SlotsTypings.d.ts +11 -8
- package/dist/types/TableTypings.d.ts +7 -7
- package/package.json +5 -5
- package/dist/utils/config.d.ts +0 -1
package/dist/ProTable.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue';
|
|
1
|
+
import type { CSSProperties, SlotsType } from 'vue';
|
|
2
2
|
import type { FilterValue, Key, SorterResult, SpinProps, TableCurrentDataSource } from './_utils';
|
|
3
3
|
import type { OptionConfig, ProTableProps, SearchConfig } from './types/TableTypings';
|
|
4
4
|
import type { ProColumnsType } from './types/ColumnTypings';
|
|
5
|
-
import type {
|
|
5
|
+
import type { DefaultRender } from './types/SlotsTypings';
|
|
6
6
|
declare const GProTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
rowSelection: {
|
|
8
8
|
type: import("vue").PropType<import("./types/TableTypings").ProTableRowSelection>;
|
|
@@ -588,6 +588,14 @@ declare const GProTable: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
588
588
|
onBeforeSearchSubmit?: ((...args: any[]) => any) | undefined;
|
|
589
589
|
onColumnsStateChange?: ((...args: any[]) => any) | undefined;
|
|
590
590
|
}>, {
|
|
591
|
+
search: boolean | SearchConfig | undefined;
|
|
592
|
+
headerTitle: DefaultRender;
|
|
593
|
+
toolBarBtn: DefaultRender;
|
|
594
|
+
titleTip: DefaultRender;
|
|
595
|
+
settingExtra: DefaultRender;
|
|
596
|
+
optionsExtra: DefaultRender;
|
|
597
|
+
pageItemRender: import("./types/SlotsTypings").PageItemRender | undefined;
|
|
598
|
+
customRender: import("./types/SlotsTypings").CustomDataRender | undefined;
|
|
591
599
|
columns: ProColumnsType<any> | undefined;
|
|
592
600
|
scroll: {
|
|
593
601
|
x?: number | true | string;
|
|
@@ -720,15 +728,17 @@ declare const GProTable: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
720
728
|
waitRequest: boolean | undefined;
|
|
721
729
|
debounceTime: number | undefined;
|
|
722
730
|
request: import("./types/TableTypings").RequsetFunction<any, undefined> | undefined;
|
|
723
|
-
search: boolean | SearchConfig | undefined;
|
|
724
731
|
searchMap: import("./types/ColumnTypings").ProSearchMap[] | undefined;
|
|
725
|
-
titleTip: TitleTipRender;
|
|
726
|
-
headerTitle: HeaderTitleRender;
|
|
727
|
-
toolBarBtn: ToolBarBtnRender;
|
|
728
|
-
customRender: CustomizeRender | undefined;
|
|
729
|
-
optionsExtra: OptionsExtraRender;
|
|
730
|
-
settingExtra: SettingExtraRender;
|
|
731
|
-
pageItemRender: import("./types/SlotsTypings").PageItemRender | undefined;
|
|
732
732
|
'onUpdate:expandedRowKeys': ((expandedKeys: Key[]) => void) | undefined;
|
|
733
|
-
}, {
|
|
733
|
+
}, SlotsType<{
|
|
734
|
+
search(): void;
|
|
735
|
+
optionsExtra(): void;
|
|
736
|
+
settingExtra(): void;
|
|
737
|
+
titleTip(): void;
|
|
738
|
+
toolBarBtn(): void;
|
|
739
|
+
headerTitle(): void;
|
|
740
|
+
default(): void;
|
|
741
|
+
pageItemRender(): void;
|
|
742
|
+
customRender(currenData: any[], dataSource: any[]): void;
|
|
743
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
734
744
|
export default GProTable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DefaultRender } from '../../types/SlotsTypings';
|
|
3
3
|
export type ColumnSettingProps = {
|
|
4
4
|
draggable?: boolean;
|
|
5
5
|
checkable?: boolean;
|
|
6
|
-
extra?:
|
|
6
|
+
extra?: DefaultRender;
|
|
7
7
|
checkedReset?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const ColumnSetting: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -53,10 +53,10 @@ declare const ListToolBar: import("vue").DefineComponent<import("vue").ExtractPr
|
|
|
53
53
|
default: () => undefined;
|
|
54
54
|
};
|
|
55
55
|
}>> & Readonly<{}>, {
|
|
56
|
+
headerTitle: import("../../types/SlotsTypings").DefaultRender;
|
|
57
|
+
titleTip: import("../../types/SlotsTypings").DefaultRender;
|
|
58
|
+
optionsExtra: import("../../types/SlotsTypings").DefaultRender;
|
|
56
59
|
titleTipText: string | undefined;
|
|
57
|
-
|
|
58
|
-
headerTitle: import("../../types/SlotsTypings").HeaderTitleRender;
|
|
59
|
-
optionsExtra: import("../../types/SlotsTypings").OptionsExtraRender;
|
|
60
|
-
actions: import("../../types/SlotsTypings").ToolBarBtnRender;
|
|
60
|
+
actions: import("../../types/SlotsTypings").DefaultRender;
|
|
61
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
62
|
export default ListToolBar;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type { ComputedRef,
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { SizeType } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import type { ProColumnsType } from '../types/ColumnTypings';
|
|
4
|
+
import type { Slots } from '../types/SlotsTypings';
|
|
4
5
|
import type { ColumnsState, SettingsAction } from '../hooks/useColumnSetting';
|
|
5
6
|
import type { PaginationProps } from '../_utils';
|
|
6
|
-
export interface
|
|
7
|
-
columns
|
|
8
|
-
isMobile
|
|
9
|
-
cacheColumns
|
|
10
|
-
tableSize
|
|
11
|
-
action
|
|
7
|
+
export interface ProTableContextProps {
|
|
8
|
+
columns: ComputedRef<ProColumnsType>;
|
|
9
|
+
isMobile: ComputedRef<boolean>;
|
|
10
|
+
cacheColumns: ComputedRef<ProColumnsType>;
|
|
11
|
+
tableSize: Ref<SizeType>;
|
|
12
|
+
action: {
|
|
12
13
|
/** @name 刷新 */
|
|
13
14
|
reload: (info?: any) => void;
|
|
14
15
|
toggle: () => Promise<void>;
|
|
@@ -20,6 +21,5 @@ export interface TableContextProps {
|
|
|
20
21
|
changeColumns: (map: Record<string, ColumnsState>, fixed: boolean) => void;
|
|
21
22
|
[key: string]: any;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
export declare const useTableContext: (defaultValue?: Required<TableContextProps>) => Required<TableContextProps>;
|
|
24
|
+
declare const provideTableContext: (value: ProTableContextProps) => void, useTableContext: (injectDefaultValue?: ProTableContextProps | undefined) => ProTableContextProps;
|
|
25
|
+
export { provideTableContext, useTableContext, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ComputedRef, Ref
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { Slots } from '../types/SlotsTypings';
|
|
2
3
|
import type { ProTablePagination, ProTableProps } from '../types/TableTypings';
|
|
3
4
|
export declare function usePagination({ slots, props, pagination }: {
|
|
4
5
|
slots: Slots;
|