@opentinyvue/vue-grid 3.24.0 → 3.25.0
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/lib/index.js +4702 -5495
- package/package.json +17 -17
- package/src/body/src/body.d.ts +26 -12
- package/src/body/src/usePool.d.ts +6 -0
- package/src/cell/index.d.ts +4 -1
- package/src/cell/src/cell.d.ts +4 -1
- package/src/column/src/column.d.ts +12 -6
- package/src/composable/index.d.ts +5 -0
- package/src/composable/useCellEvent.d.ts +16 -0
- package/src/composable/useCellSpan.d.ts +5 -0
- package/src/composable/useCellStatus.d.ts +3 -0
- package/src/composable/useData.d.ts +7 -0
- package/src/composable/useDrag/index.d.ts +2 -2
- package/src/composable/useHeader.d.ts +10 -0
- package/src/composable/useRowGroup.d.ts +3 -2
- package/src/config.d.ts +35 -0
- package/src/edit/src/methods.d.ts +1 -1
- package/src/grid/grid.d.ts +4 -2
- package/src/mobile-first/index.vue.d.ts +2 -17
- package/src/table/src/methods.d.ts +41 -17
- package/src/table/src/strategy.d.ts +13 -23
- package/src/table/src/table.d.ts +238 -50
- package/src/table/src/utils/autoCellWidth.d.ts +6 -31
- package/src/table/src/utils/updateStyle.d.ts +1 -5
- package/src/tree/src/methods.d.ts +1 -1
- package/src/footer/index.d.ts +0 -26
- package/src/footer/src/footer.d.ts +0 -63
- package/src/header/index.d.ts +0 -26
- package/src/header/src/header.d.ts +0 -51
- package/src/table/src/utils/handleFixedColumn.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-grid",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.25.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opentinyvue/vue-common": "~3.
|
|
12
|
-
"@opentinyvue/vue-directive": "~3.
|
|
13
|
-
"@opentinyvue/vue-dropdown": "~3.
|
|
14
|
-
"@opentinyvue/vue-dropdown-item": "~3.
|
|
15
|
-
"@opentinyvue/vue-dropdown-menu": "~3.
|
|
16
|
-
"@opentinyvue/vue-exception": "~3.
|
|
17
|
-
"@opentinyvue/vue-icon": "~3.
|
|
18
|
-
"@opentinyvue/vue-loading": "~3.
|
|
19
|
-
"@opentinyvue/vue-locale": "~3.
|
|
20
|
-
"@opentinyvue/vue-modal": "~3.
|
|
21
|
-
"@opentinyvue/vue-pager": "~3.
|
|
22
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
23
|
-
"@opentinyvue/vue-tag": "~3.
|
|
24
|
-
"@opentinyvue/vue-theme": "~3.
|
|
25
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
26
|
-
"@opentinyvue/utils": "~3.
|
|
11
|
+
"@opentinyvue/vue-common": "~3.25.0",
|
|
12
|
+
"@opentinyvue/vue-directive": "~3.25.0",
|
|
13
|
+
"@opentinyvue/vue-dropdown": "~3.25.0",
|
|
14
|
+
"@opentinyvue/vue-dropdown-item": "~3.25.0",
|
|
15
|
+
"@opentinyvue/vue-dropdown-menu": "~3.25.0",
|
|
16
|
+
"@opentinyvue/vue-exception": "~3.25.0",
|
|
17
|
+
"@opentinyvue/vue-icon": "~3.25.0",
|
|
18
|
+
"@opentinyvue/vue-loading": "~3.25.0",
|
|
19
|
+
"@opentinyvue/vue-locale": "~3.25.0",
|
|
20
|
+
"@opentinyvue/vue-modal": "~3.25.0",
|
|
21
|
+
"@opentinyvue/vue-pager": "~3.25.0",
|
|
22
|
+
"@opentinyvue/vue-renderless": "~3.25.0",
|
|
23
|
+
"@opentinyvue/vue-tag": "~3.25.0",
|
|
24
|
+
"@opentinyvue/vue-theme": "~3.25.0",
|
|
25
|
+
"@opentinyvue/vue-tooltip": "~3.25.0",
|
|
26
|
+
"@opentinyvue/utils": "~3.25.0"
|
|
27
27
|
},
|
|
28
28
|
"types": "index.d.ts",
|
|
29
29
|
"scripts": {
|
package/src/body/src/body.d.ts
CHANGED
|
@@ -25,27 +25,41 @@
|
|
|
25
25
|
import { hooks } from '@opentinyvue/vue-common';
|
|
26
26
|
declare const _default: hooks.DefineComponent<{
|
|
27
27
|
collectColumn: ArrayConstructor;
|
|
28
|
-
fixedColumn: ArrayConstructor;
|
|
29
|
-
isGroup: BooleanConstructor;
|
|
30
|
-
size: StringConstructor;
|
|
31
28
|
tableColumn: ArrayConstructor;
|
|
29
|
+
tableNode: ArrayConstructor;
|
|
32
30
|
tableData: ArrayConstructor;
|
|
33
|
-
|
|
31
|
+
footerData: ArrayConstructor;
|
|
34
32
|
}, {
|
|
35
33
|
slots: Readonly<{
|
|
36
34
|
[name: string]: hooks.Slot<any> | undefined;
|
|
37
35
|
}>;
|
|
36
|
+
rowHeight: hooks.ComputedRef<any>;
|
|
37
|
+
headerTable: hooks.Ref<never[]>;
|
|
38
|
+
columnPool: hooks.Ref<never[]>;
|
|
39
|
+
rowPool: hooks.Ref<never[]>;
|
|
40
|
+
isNoData: hooks.Ref<boolean>;
|
|
41
|
+
wrapperScrollLeft: hooks.Ref<number>;
|
|
42
|
+
wrapperScrollTop: hooks.Ref<number>;
|
|
43
|
+
stickyWrapper: hooks.Ref<any>;
|
|
44
|
+
table: hooks.Ref<any>;
|
|
45
|
+
body: hooks.Ref<any>;
|
|
46
|
+
customFooter: hooks.Ref<any>;
|
|
47
|
+
colgroup: hooks.Ref<any>;
|
|
48
|
+
thead: hooks.Ref<any>;
|
|
49
|
+
tbody: hooks.Ref<any>;
|
|
50
|
+
ySpace: hooks.Ref<any>;
|
|
51
|
+
normalRows: hooks.ShallowRef<{}>;
|
|
52
|
+
footerRows: hooks.ShallowRef<{}>;
|
|
53
|
+
resetStickyWrapperScrollPos: () => void;
|
|
38
54
|
}, unknown, {}, {
|
|
39
|
-
|
|
55
|
+
handleScroll(event: any): void;
|
|
56
|
+
resizeMousedown(event: any, params: any): void;
|
|
57
|
+
handleScrollLoad(e: any): void;
|
|
40
58
|
}, hooks.ComponentOptionsMixin, hooks.ComponentOptionsMixin, {}, string, hooks.PublicProps, Readonly<hooks.ExtractPropTypes<{
|
|
41
59
|
collectColumn: ArrayConstructor;
|
|
42
|
-
fixedColumn: ArrayConstructor;
|
|
43
|
-
isGroup: BooleanConstructor;
|
|
44
|
-
size: StringConstructor;
|
|
45
60
|
tableColumn: ArrayConstructor;
|
|
61
|
+
tableNode: ArrayConstructor;
|
|
46
62
|
tableData: ArrayConstructor;
|
|
47
|
-
|
|
48
|
-
}>>, {
|
|
49
|
-
isGroup: boolean;
|
|
50
|
-
}, {}>;
|
|
63
|
+
footerData: ArrayConstructor;
|
|
64
|
+
}>>, {}, {}>;
|
|
51
65
|
export default _default;
|
package/src/cell/index.d.ts
CHANGED
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import CellDefault from './src/cell';
|
|
13
13
|
export declare const Cell: {
|
|
14
|
-
createColumn($table: any, colProps: any):
|
|
14
|
+
createColumn($table: any, colProps: any): {
|
|
15
|
+
fixed: any;
|
|
16
|
+
readonly fixedDetails: any;
|
|
17
|
+
};
|
|
15
18
|
renderHeader(h: any, params: any, type?: string | undefined): any[];
|
|
16
19
|
renderCell(h: any, params: any): any;
|
|
17
20
|
renderTreeCell(h: any, params: any): any[];
|
package/src/cell/src/cell.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare const runRender: (render: any, ...params: any[]) => any;
|
|
2
2
|
export declare const Cell: {
|
|
3
|
-
createColumn($table: any, colProps: any):
|
|
3
|
+
createColumn($table: any, colProps: any): {
|
|
4
|
+
fixed: any;
|
|
5
|
+
readonly fixedDetails: any;
|
|
6
|
+
};
|
|
4
7
|
renderHeader(h: any, params: any, type?: string): any[];
|
|
5
8
|
renderCell(h: any, params: any): any;
|
|
6
9
|
renderTreeCell(h: any, params: any): any[];
|
|
@@ -88,13 +88,19 @@ declare const _default: hooks.DefineComponent<{
|
|
|
88
88
|
tiny_mcp_config: ObjectConstructor;
|
|
89
89
|
tiny_chart_theme: ObjectConstructor;
|
|
90
90
|
}, {
|
|
91
|
-
columnConfig:
|
|
91
|
+
columnConfig: {
|
|
92
|
+
fixed: any;
|
|
93
|
+
readonly fixedDetails: any;
|
|
94
|
+
};
|
|
92
95
|
slots: Readonly<{
|
|
93
96
|
[name: string]: hooks.Slot<any> | undefined;
|
|
94
97
|
}>;
|
|
95
98
|
firstRow: any;
|
|
96
99
|
}, unknown, {}, {
|
|
97
|
-
createColumn($table: any, colProps: any):
|
|
100
|
+
createColumn($table: any, colProps: any): {
|
|
101
|
+
fixed: any;
|
|
102
|
+
readonly fixedDetails: any;
|
|
103
|
+
};
|
|
98
104
|
renderHeader(h: any, params: any, type?: string | undefined): any[];
|
|
99
105
|
renderCell(h: any, params: any): any;
|
|
100
106
|
renderTreeCell(h: any, params: any): any[];
|
|
@@ -219,14 +225,14 @@ declare const _default: hooks.DefineComponent<{
|
|
|
219
225
|
showIcon: boolean;
|
|
220
226
|
group: boolean;
|
|
221
227
|
showTip: boolean;
|
|
222
|
-
formatConfig: Record<string, any>;
|
|
223
|
-
showHeaderTip: boolean;
|
|
224
228
|
resizable: boolean;
|
|
225
|
-
showHeaderOverflow: string | boolean;
|
|
226
229
|
showOverflow: string | boolean;
|
|
227
|
-
|
|
230
|
+
showHeaderOverflow: string | boolean;
|
|
231
|
+
showHeaderTip: boolean;
|
|
228
232
|
sortable: boolean;
|
|
229
233
|
remoteSort: boolean;
|
|
230
234
|
filterMultiple: boolean;
|
|
235
|
+
treeNode: boolean;
|
|
236
|
+
formatConfig: Record<string, any>;
|
|
231
237
|
}, {}>;
|
|
232
238
|
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const getConfigOverflow: (column: any, $table: any) => {
|
|
2
|
+
cellTip: any;
|
|
3
|
+
cellOverflowTitle: boolean;
|
|
4
|
+
cellOverflowTooltip: boolean;
|
|
5
|
+
cellOverflowEllipsis: boolean;
|
|
6
|
+
cellOverflowHint: boolean;
|
|
7
|
+
headerTip: any;
|
|
8
|
+
headerOverflowTitle: boolean;
|
|
9
|
+
headerOverflowTooltip: boolean;
|
|
10
|
+
headerOverflowEllipsis: boolean;
|
|
11
|
+
headerOverflowHint: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const useCellEvent: ({ table, $table }: {
|
|
14
|
+
table: any;
|
|
15
|
+
$table: any;
|
|
16
|
+
}) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { hooks } from '@opentinyvue/vue-common';
|
|
2
|
+
export declare const buildRenderGraph: ($table: any) => void;
|
|
3
|
+
export declare const tileFullData: ($table: any) => void;
|
|
4
|
+
export declare const graphFullData: ($table: any) => void;
|
|
5
|
+
export declare const useData: (props: any) => {
|
|
6
|
+
tiledLength: hooks.Ref<number>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { hooks } from '@opentinyvue/vue-common';
|
|
2
|
+
export declare const calcHeader: (collectColumn: any) => {
|
|
3
|
+
leafColumns: never[];
|
|
4
|
+
headerTable: never[];
|
|
5
|
+
rowspanMap: WeakMap<object, any>;
|
|
6
|
+
maxLevel: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useHeader: (props: any, bodyVm: any, headerRowHeight: any) => {
|
|
9
|
+
headerTable: hooks.Ref<never[]>;
|
|
10
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const useRowGroup: ({
|
|
2
|
-
|
|
1
|
+
export declare const useRowGroup: ({ props, visibleColumn, tableFullColumn, tableColumn, columnStore }: {
|
|
2
|
+
props: any;
|
|
3
3
|
visibleColumn: any;
|
|
4
4
|
tableFullColumn: any;
|
|
5
5
|
tableColumn: any;
|
|
6
|
+
columnStore: any;
|
|
6
7
|
}) => void;
|
package/src/config.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ declare const GlobalConfig: {
|
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
|
|
7
7
|
};
|
|
8
|
+
editConfig: {
|
|
9
|
+
trigger: string;
|
|
10
|
+
mode: string;
|
|
11
|
+
showStatus: boolean;
|
|
12
|
+
};
|
|
8
13
|
sortConfig: {
|
|
9
14
|
multipleColumnSort: boolean;
|
|
10
15
|
};
|
|
@@ -24,6 +29,7 @@ declare const GlobalConfig: {
|
|
|
24
29
|
optimization: {
|
|
25
30
|
animat: boolean;
|
|
26
31
|
delayHover: number;
|
|
32
|
+
scrollDelay: number;
|
|
27
33
|
scrollX: {
|
|
28
34
|
gt: number;
|
|
29
35
|
};
|
|
@@ -208,6 +214,35 @@ declare const GlobalConfig: {
|
|
|
208
214
|
TINY: string;
|
|
209
215
|
SAAS: string;
|
|
210
216
|
};
|
|
217
|
+
rowHeight: {
|
|
218
|
+
tiny: {
|
|
219
|
+
mini: number;
|
|
220
|
+
small: number;
|
|
221
|
+
default: number;
|
|
222
|
+
medium: number;
|
|
223
|
+
};
|
|
224
|
+
saas: {
|
|
225
|
+
mini: number;
|
|
226
|
+
small: number;
|
|
227
|
+
default: number;
|
|
228
|
+
medium: number;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
headerRowHeight: {
|
|
232
|
+
tiny: {
|
|
233
|
+
mini: number;
|
|
234
|
+
small: number;
|
|
235
|
+
default: number;
|
|
236
|
+
medium: number;
|
|
237
|
+
};
|
|
238
|
+
saas: {
|
|
239
|
+
mini: number;
|
|
240
|
+
small: number;
|
|
241
|
+
default: number;
|
|
242
|
+
medium: number;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
emptyMinHeight: number;
|
|
211
246
|
columnLevelKey: string;
|
|
212
247
|
defaultColumnName: string;
|
|
213
248
|
};
|
package/src/grid/grid.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ declare const _default: hooks.DefineComponent<any, {
|
|
|
64
64
|
tasks: {};
|
|
65
65
|
fullScreenClass: string;
|
|
66
66
|
isInitialLoading: boolean;
|
|
67
|
+
_delayActivateAnchor: undefined;
|
|
67
68
|
}, {
|
|
68
69
|
isMsg(): boolean;
|
|
69
70
|
tableProps(): {};
|
|
@@ -74,6 +75,9 @@ declare const _default: hooks.DefineComponent<any, {
|
|
|
74
75
|
isModeMobileFirst(): boolean;
|
|
75
76
|
isViewGantt(): boolean;
|
|
76
77
|
isViewCustom(): boolean;
|
|
78
|
+
optimizOpt(): any;
|
|
79
|
+
editConfigOpt(): any;
|
|
80
|
+
tooltipOpt(): any;
|
|
77
81
|
}, {
|
|
78
82
|
updateParentHeight(): void;
|
|
79
83
|
connect({ name, vm }: {
|
|
@@ -87,8 +91,6 @@ declare const _default: hooks.DefineComponent<any, {
|
|
|
87
91
|
handleActiveMethod(params: any): any;
|
|
88
92
|
sortChangeEvent(params: any): void;
|
|
89
93
|
viewCls(module: any): any;
|
|
90
|
-
addIntersectionObserver(): void;
|
|
91
|
-
removeIntersectionObserver(): void;
|
|
92
94
|
filterChangeEvent(params: any): void;
|
|
93
95
|
}, hooks.ComponentOptionsMixin, hooks.ComponentOptionsMixin, {}, string, hooks.PublicProps, Readonly<any>, {} | {
|
|
94
96
|
[x: string]: any;
|
|
@@ -6,13 +6,6 @@ declare const _default: hooks.DefineComponent<{
|
|
|
6
6
|
listConfig: ObjectConstructor;
|
|
7
7
|
ganttConfig: ObjectConstructor;
|
|
8
8
|
customConfig: ObjectConstructor;
|
|
9
|
-
tiny_mode: StringConstructor;
|
|
10
|
-
tiny_mode_root: BooleanConstructor;
|
|
11
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
12
|
-
tiny_renderless: FunctionConstructor;
|
|
13
|
-
tiny_theme: StringConstructor;
|
|
14
|
-
tiny_mcp_config: ObjectConstructor;
|
|
15
|
-
tiny_chart_theme: ObjectConstructor;
|
|
16
9
|
}, unknown, {
|
|
17
10
|
primaryColumn: null;
|
|
18
11
|
contentColumns: null;
|
|
@@ -41,6 +34,7 @@ declare const _default: hooks.DefineComponent<{
|
|
|
41
34
|
rowClass(): string;
|
|
42
35
|
wrapperStyle(): string;
|
|
43
36
|
exceptionVisible(): boolean;
|
|
37
|
+
isLoading(): any;
|
|
44
38
|
}, {
|
|
45
39
|
mapColumns(): void;
|
|
46
40
|
typeColumns(columns: Array<Column>, types: Array<String>, field?: string): Column[];
|
|
@@ -66,14 +60,5 @@ declare const _default: hooks.DefineComponent<{
|
|
|
66
60
|
listConfig: ObjectConstructor;
|
|
67
61
|
ganttConfig: ObjectConstructor;
|
|
68
62
|
customConfig: ObjectConstructor;
|
|
69
|
-
|
|
70
|
-
tiny_mode_root: BooleanConstructor;
|
|
71
|
-
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
72
|
-
tiny_renderless: FunctionConstructor;
|
|
73
|
-
tiny_theme: StringConstructor;
|
|
74
|
-
tiny_mcp_config: ObjectConstructor;
|
|
75
|
-
tiny_chart_theme: ObjectConstructor;
|
|
76
|
-
}>>, {
|
|
77
|
-
tiny_mode_root: boolean;
|
|
78
|
-
}, {}>;
|
|
63
|
+
}>>, {}, {}>;
|
|
79
64
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { handleGlobalMousedownEvent, handleGlobalBlurEvent, handleGlobalMousewheelEvent, handleArrowKeyDown, handleCopyKeyDown, handleCtxMenu, handleDelKeyDown, handleEnterKeyDown, handleEscKeyDown, handleF2KeyDown, handleOtherKeyDown, handleSpaceKeyDown, handleTabKeyDown, handleGlobalKeydownEvent, handleGlobalResizeEvent, handleGlobalMousedownCaptureEvent } from './events';
|
|
2
2
|
declare const Methods: {
|
|
3
|
+
addIntersectionObserver(): void;
|
|
4
|
+
removeIntersectionObserver(): void;
|
|
3
5
|
getParentElem(): any;
|
|
4
6
|
updateParentHeight(): void;
|
|
5
7
|
getParentHeight(): any;
|
|
@@ -11,22 +13,40 @@ declare const Methods: {
|
|
|
11
13
|
loadTableData(datas: any, notRefresh: any): any;
|
|
12
14
|
reloadData(datas: any): any;
|
|
13
15
|
loadData(datas: any): Promise<unknown>;
|
|
16
|
+
getOriginRow(row: any): any;
|
|
17
|
+
setOriginRow(row: any, record: any): void;
|
|
14
18
|
reloadRow(row: any, record: any, field: any): any;
|
|
15
19
|
reloadColumn(columns: any): any;
|
|
16
20
|
loadColumn(columns: any): Promise<any>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
/** 设置数据查找缓存,对数据进行备份,深度克隆 */
|
|
22
|
+
updateCache(backup?: boolean, deepCopy?: boolean): void;
|
|
23
|
+
cacheColumnMap(options: any): void;
|
|
24
|
+
getRowNode(tr: any): {
|
|
25
|
+
item: any;
|
|
26
|
+
index: any;
|
|
27
|
+
items: any;
|
|
28
|
+
} | null;
|
|
29
|
+
getColumnNode(cell: any): {
|
|
30
|
+
index: any;
|
|
31
|
+
item: any;
|
|
32
|
+
items: any;
|
|
33
|
+
} | null;
|
|
21
34
|
getRowIndex(row: any): any;
|
|
22
35
|
getColumnIndex(column: any): any;
|
|
23
|
-
hasIndexColumn(column: any):
|
|
36
|
+
hasIndexColumn(column: any): boolean;
|
|
24
37
|
defineField(row: any, copy: any): any;
|
|
25
38
|
isTemporaryRow(row: any): any;
|
|
26
39
|
createData(records: any, copy: any): Promise<unknown>;
|
|
27
40
|
createRow(records: any): Promise<unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* 清空单元格内容:
|
|
43
|
+
* 如果不传参数,则清空整个表格内容;
|
|
44
|
+
* 如果传row,则清空一行内容;
|
|
45
|
+
* 如果传rows,则清空多行内容;
|
|
46
|
+
* 如果还额外传了field,则清空指定单元格内容;
|
|
47
|
+
*/
|
|
28
48
|
clearData(rows: any, field: any): any;
|
|
29
|
-
hasRowInsert(row: any):
|
|
49
|
+
hasRowInsert(row: any): any;
|
|
30
50
|
compareRow(row: any, originalRow: any, field: any): any;
|
|
31
51
|
hasRowChange(row: any, field: any): any;
|
|
32
52
|
getColumns(columnIndex: any): any;
|
|
@@ -41,6 +61,12 @@ declare const Methods: {
|
|
|
41
61
|
getData(rowIndex: any): any;
|
|
42
62
|
getSelectRecords(notCopy: any): any;
|
|
43
63
|
updateAfterFullData(): any;
|
|
64
|
+
/** 处理后数据,构建分组数据和构建渲染图 */
|
|
65
|
+
handleAfterFullData(): void;
|
|
66
|
+
/** 处理外部过滤和重置,区别于表头过滤 */
|
|
67
|
+
handleExternalFilter(value: any, filter: any): Promise<unknown>;
|
|
68
|
+
updateSelectionStatus(): void;
|
|
69
|
+
getRowCount(): any;
|
|
44
70
|
getRowById(rowid: any): any;
|
|
45
71
|
getTableData(): {
|
|
46
72
|
visibleData: any;
|
|
@@ -51,10 +77,10 @@ declare const Methods: {
|
|
|
51
77
|
handleDefault(): void;
|
|
52
78
|
mergeCustomColumn(customColumns: any, sort: any, colWidth: any): void;
|
|
53
79
|
resetAll(): void;
|
|
54
|
-
|
|
55
|
-
|
|
80
|
+
showColumn(column: any): any;
|
|
81
|
+
hideColumn(column: any): any;
|
|
82
|
+
handleVisibleColumn(column: any, visible: any): any;
|
|
56
83
|
resetCustoms(): any;
|
|
57
|
-
handleVisibleColumn(tableColumn: any, visible: any): any;
|
|
58
84
|
reloadCustoms(customColumns: any, sort: any, colWidth: any): any;
|
|
59
85
|
watchColumn(value: any): void;
|
|
60
86
|
refreshColumn(): any;
|
|
@@ -64,10 +90,9 @@ declare const Methods: {
|
|
|
64
90
|
* 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
|
|
65
91
|
*/
|
|
66
92
|
recalculate(): any;
|
|
67
|
-
autoCellWidth(
|
|
68
|
-
syncHeaderHeight(): void;
|
|
93
|
+
autoCellWidth(): void;
|
|
69
94
|
resetResizable(): any;
|
|
70
|
-
updateStyle():
|
|
95
|
+
updateStyle(): void;
|
|
71
96
|
preventEvent(event: any, type: any, args: any, next: any, end: any): void;
|
|
72
97
|
blurOutside({ row, args, column }: {
|
|
73
98
|
row: any;
|
|
@@ -133,8 +158,6 @@ declare const Methods: {
|
|
|
133
158
|
getRowHeight(): any;
|
|
134
159
|
computeScrollLoad(): any;
|
|
135
160
|
updateScrollXData(): void;
|
|
136
|
-
updateScrollXSpace(): void;
|
|
137
|
-
debounceRaf(handlerKey: any, callback: any): void;
|
|
138
161
|
updateScrollYData(): void;
|
|
139
162
|
updateScrollYSpace(): void;
|
|
140
163
|
updateScrollLoadBar(event: any): void;
|
|
@@ -165,14 +188,15 @@ declare const Methods: {
|
|
|
165
188
|
targetElem?: undefined;
|
|
166
189
|
};
|
|
167
190
|
handleVisibilityChange(visible: any, entry: any): void;
|
|
168
|
-
updateTableBodyHeight(): void;
|
|
169
191
|
toggleColumnOrder(column: any): "asc" | "desc" | null;
|
|
170
|
-
|
|
192
|
+
handleDataChange(): void;
|
|
171
193
|
getVm(name: any): any;
|
|
172
194
|
assembleColumns(): void;
|
|
173
195
|
isValidCustomColumn(columnName: any): any;
|
|
174
196
|
computeCollectKey(): string;
|
|
175
197
|
getAllSelection(): any;
|
|
176
|
-
|
|
198
|
+
attemptRestoreScroll(options: any): any;
|
|
199
|
+
updateRowStatus(row: any): void;
|
|
200
|
+
getCellStatus(row: any, column: any): any;
|
|
177
201
|
};
|
|
178
202
|
export default Methods;
|
|
@@ -1,34 +1,24 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const setTableRowKey: ($table: any) => any;
|
|
3
|
-
declare const getTableRowKey: ($table: any) => any;
|
|
4
|
-
declare const getTableCellKey: ({ $table, column, row }: {
|
|
5
|
-
$table: any;
|
|
6
|
-
column: any;
|
|
7
|
-
row: any;
|
|
8
|
-
}) => string;
|
|
9
|
-
declare const setTreeScrollYCache: (_vm: any) => void;
|
|
10
|
-
declare const sliceFullData: (_vm: any) => any;
|
|
11
|
-
declare const getTotalRows: (_vm: any) => any;
|
|
12
|
-
declare const getTreeChildrenKey: ({ scrollYLoad, treeConfig }: {
|
|
13
|
-
scrollYLoad: any;
|
|
14
|
-
treeConfig: any;
|
|
15
|
-
}) => any;
|
|
16
|
-
declare const getTreeShowKey: ({ scrollYLoad, treeConfig }: {
|
|
17
|
-
scrollYLoad: any;
|
|
18
|
-
treeConfig: any;
|
|
19
|
-
}) => string | undefined;
|
|
20
|
-
declare const sliceVisibleColumn: (tableVm: any) => {
|
|
1
|
+
declare const sliceVisibleColumn: (args: any) => {
|
|
21
2
|
tableColumn: any;
|
|
22
3
|
lastStartIndex: any;
|
|
23
4
|
visibleColumnChanged: any;
|
|
24
5
|
sliced: boolean;
|
|
6
|
+
addedColumn: never[];
|
|
25
7
|
};
|
|
26
|
-
declare const clearOnTableUnmount: ($table: any) => void;
|
|
27
|
-
declare const setSliceColumnTree: (_vm: any) => any;
|
|
28
8
|
/** 判断是否是虚拟行 */
|
|
29
9
|
declare const isVirtualRow: (row: any) => any;
|
|
30
10
|
/** 普通表分组场景,在全量数据筛选排序之后,进行分组处理生成虚拟行 */
|
|
31
11
|
declare const buildRowGroupFullData: (fullData: any, _vm: any) => void;
|
|
32
12
|
/** 普通表分组场景,分组行点击处理 */
|
|
33
13
|
declare const handleRowGroupFold: (row: any, _vm: any) => void;
|
|
34
|
-
|
|
14
|
+
declare const getFixedStyle: ({ fixedDetails }: {
|
|
15
|
+
fixedDetails: any;
|
|
16
|
+
}, { overflowX }: {
|
|
17
|
+
overflowX: any;
|
|
18
|
+
}) => any;
|
|
19
|
+
declare const getFixedClass: ({ fixedDetails }: {
|
|
20
|
+
fixedDetails: any;
|
|
21
|
+
}, { overflowX }: {
|
|
22
|
+
overflowX: any;
|
|
23
|
+
}) => any;
|
|
24
|
+
export { sliceVisibleColumn, buildRowGroupFullData, handleRowGroupFold, isVirtualRow, getFixedStyle, getFixedClass };
|