@gx-design-vue/pro-table 0.2.0-beta.113 → 0.2.0-beta.115
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 +4 -4
- package/dist/components/ColumnSetting/index.d.ts +1 -1
- package/dist/hooks/useColumns.d.ts +2 -2
- package/dist/pro-table.js +1272 -1437
- package/dist/pro-table.umd.cjs +1 -1
- package/dist/props.d.ts +2 -2
- package/dist/types/TableTypings.d.ts +1 -1
- package/package.json +6 -5
package/dist/ProTable.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
22
|
};
|
|
23
23
|
request: {
|
|
24
24
|
type: import("vue").PropType<ProTableProps["request"]>;
|
|
25
|
-
default:
|
|
25
|
+
default: undefined;
|
|
26
26
|
};
|
|
27
27
|
virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
|
|
28
28
|
params: {
|
|
@@ -125,7 +125,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
125
125
|
type: import("vue").PropType<ProTableProps["align"]>;
|
|
126
126
|
default: string;
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
draggable: import("vue").PropType<ProTableProps["draggable"]>;
|
|
129
129
|
autoScroll: {
|
|
130
130
|
type: import("vue").PropType<ProTableProps["autoScroll"]>;
|
|
131
131
|
default: boolean;
|
|
@@ -184,7 +184,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
184
184
|
};
|
|
185
185
|
request: {
|
|
186
186
|
type: import("vue").PropType<ProTableProps["request"]>;
|
|
187
|
-
default:
|
|
187
|
+
default: undefined;
|
|
188
188
|
};
|
|
189
189
|
virtualScroll: import("vue").PropType<ProTableProps["virtualScroll"]>;
|
|
190
190
|
params: {
|
|
@@ -287,7 +287,7 @@ declare const ProTable: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
287
287
|
type: import("vue").PropType<ProTableProps["align"]>;
|
|
288
288
|
default: string;
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
draggable: import("vue").PropType<ProTableProps["draggable"]>;
|
|
291
291
|
autoScroll: {
|
|
292
292
|
type: import("vue").PropType<ProTableProps["autoScroll"]>;
|
|
293
293
|
default: boolean;
|
|
@@ -29,7 +29,7 @@ declare const ColumnSetting: import("vue").DefineComponent<import("vue").Extract
|
|
|
29
29
|
checkedReset: PropType<ColumnSettingProps["checkedReset"]>;
|
|
30
30
|
extra: PropType<ColumnSettingProps["extra"]>;
|
|
31
31
|
}>> & Readonly<{}>, {
|
|
32
|
-
checkable: boolean | undefined;
|
|
33
32
|
draggable: boolean | undefined;
|
|
33
|
+
checkable: boolean | undefined;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
35
|
export default ColumnSetting;
|
|
@@ -3,7 +3,7 @@ import type { ProColumnsType, ProColumnType } from '../types/ColumnTypings';
|
|
|
3
3
|
import type { ProTableProps } from '../types/TableTypings';
|
|
4
4
|
import type { ColumnsState } from './useColumnSetting';
|
|
5
5
|
export interface ConfigColumns {
|
|
6
|
-
|
|
6
|
+
draggable: ComputedRef<ProTableProps['draggable']>;
|
|
7
7
|
neverScroll: ComputedRef<ProTableProps['neverScroll']>;
|
|
8
8
|
autoScroll: ComputedRef<ProTableProps['autoScroll']>;
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ type UseColumnsType = {
|
|
|
13
13
|
columns: ComputedRef<ProColumnsType>;
|
|
14
14
|
} & ConfigColumns;
|
|
15
15
|
export declare function useConfigColumns(props: ProTableProps): ConfigColumns;
|
|
16
|
-
export declare function useColumns({ scroll, columns, breakpoint,
|
|
16
|
+
export declare function useColumns({ scroll, columns, breakpoint, draggable, autoScroll, neverScroll }: UseColumnsType): {
|
|
17
17
|
breakpoint: ComputedRef<boolean | undefined>;
|
|
18
18
|
proColumns: ComputedRef<(import("../types/ColumnTypings").DefaultProColumnWithKeyOrDataIndex<import("@gx-design-vue/pro-utils/dist").RecordType> & Omit<import("ant-design-vue/es/table/interface").ColumnType<import("@gx-design-vue/pro-utils/dist").RecordType>, keyof import("../types/ColumnTypings").DefaultProColumn | "key" | "dataIndex"> & {
|
|
19
19
|
children?: ProColumnsType<import("@gx-design-vue/pro-utils/dist").RecordType, import("@gx-design-vue/pro-utils/dist").RecordType> | undefined;
|