ele-admin-plus 1.1.5-beta.2 → 1.1.6-beta.1
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/es/ele-app/index.d.ts +1 -1
- package/es/ele-app/types/components.d.ts +32 -0
- package/es/ele-app/types/index.d.ts +3 -3
- package/es/ele-basic-select/index.d.ts +2 -2
- package/es/ele-config-provider/receiver.js +1 -1
- package/es/ele-data-table/index.d.ts +6 -6
- package/es/ele-data-table/props.d.ts +5 -5
- package/es/ele-data-table/util.d.ts +5 -0
- package/es/ele-data-table/util.js +10 -0
- package/es/ele-menus/style/index.scss +1 -0
- package/es/ele-popconfirm/index.d.ts +31 -31
- package/es/ele-popconfirm/props.d.ts +11 -11
- package/es/ele-popover/index.d.ts +31 -31
- package/es/ele-popover/props.d.ts +11 -11
- package/es/ele-pro-layout/index.js +1 -1
- package/es/ele-pro-layout/style/sidebar.scss +7 -0
- package/es/ele-pro-table/index.d.ts +9 -9
- package/es/ele-pro-table/index.js +1 -5
- package/es/ele-pro-table/props.d.ts +3 -3
- package/es/ele-pro-table/util.js +7 -9
- package/es/ele-tabs/style/index.scss +1 -1
- package/es/ele-tooltip/index.d.ts +37 -37
- package/es/ele-tooltip/props.d.ts +14 -14
- package/es/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/es/ele-virtual-table/components/body-row.d.ts +2 -2
- package/es/ele-virtual-table/components/cell-filter.js +3 -1
- package/es/ele-virtual-table/props.d.ts +3 -3
- package/es/ele-virtual-table/util.js +14 -4
- package/es/ele-watermark/index.js +1 -0
- package/es/style/themes/default.scss +2 -2
- package/lib/ele-app/index.d.ts +1 -1
- package/lib/ele-app/types/components.d.ts +32 -0
- package/lib/ele-app/types/index.d.ts +3 -3
- package/lib/ele-basic-select/index.d.ts +2 -2
- package/lib/ele-config-provider/receiver.js +1 -1
- package/lib/ele-data-table/index.d.ts +6 -6
- package/lib/ele-data-table/props.d.ts +5 -5
- package/lib/ele-data-table/util.d.ts +5 -0
- package/lib/ele-data-table/util.js +10 -0
- package/lib/ele-menus/style/index.scss +1 -0
- package/lib/ele-popconfirm/index.d.ts +31 -31
- package/lib/ele-popconfirm/props.d.ts +11 -11
- package/lib/ele-popover/index.d.ts +31 -31
- package/lib/ele-popover/props.d.ts +11 -11
- package/lib/ele-pro-layout/index.js +1 -1
- package/lib/ele-pro-layout/style/sidebar.scss +7 -0
- package/lib/ele-pro-table/index.d.ts +9 -9
- package/lib/ele-pro-table/index.js +0 -4
- package/lib/ele-pro-table/props.d.ts +3 -3
- package/lib/ele-pro-table/util.js +7 -9
- package/lib/ele-tabs/style/index.scss +1 -1
- package/lib/ele-tooltip/index.d.ts +37 -37
- package/lib/ele-tooltip/props.d.ts +14 -14
- package/lib/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/lib/ele-virtual-table/components/body-row.d.ts +2 -2
- package/lib/ele-virtual-table/components/cell-filter.js +2 -0
- package/lib/ele-virtual-table/props.d.ts +3 -3
- package/lib/ele-virtual-table/util.js +13 -3
- package/lib/ele-watermark/index.js +1 -0
- package/lib/style/themes/default.scss +2 -2
- package/package.json +1 -1
|
@@ -55,14 +55,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
rowHeight: NumberConstructor;
|
|
56
56
|
locale: import("vue").PropType<Partial<import("./types").TableLocale>>;
|
|
57
57
|
size: {
|
|
58
|
-
/** 表格组件属性 */
|
|
59
58
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
60
59
|
readonly required: false;
|
|
61
60
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
61
|
__epPropKey: true;
|
|
63
62
|
};
|
|
64
63
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
65
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
66
64
|
fit: {
|
|
67
65
|
type: BooleanConstructor;
|
|
68
66
|
default: boolean;
|
|
@@ -71,6 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
69
|
type: StringConstructor;
|
|
72
70
|
default: string;
|
|
73
71
|
};
|
|
72
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
74
73
|
lazy: BooleanConstructor;
|
|
75
74
|
rowKey: import("vue").PropType<string | ((row: any) => string) | undefined>;
|
|
76
75
|
columns: {
|
|
@@ -86,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
85
|
type: BooleanConstructor;
|
|
87
86
|
default: boolean;
|
|
88
87
|
};
|
|
89
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
88
|
+
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
90
89
|
stripe: {
|
|
91
90
|
type: BooleanConstructor;
|
|
92
91
|
default: null;
|
|
@@ -117,7 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
116
|
defaultExpandAll: BooleanConstructor;
|
|
118
117
|
defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
119
118
|
tooltipEffect: StringConstructor;
|
|
120
|
-
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
119
|
+
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
121
120
|
spanMethod: import("vue").PropType<((data: {
|
|
122
121
|
row: any;
|
|
123
122
|
rowIndex: number;
|
|
@@ -213,9 +212,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
212
|
'update:selections': (_selections: DataItem[]) => boolean;
|
|
214
213
|
'update:current': (_current?: DataItem | null | undefined) => boolean;
|
|
215
214
|
columnsChange: (_columns: Columns) => boolean;
|
|
215
|
+
/** 每页显示数量 */
|
|
216
216
|
sizeChange: (_size: "" | "default" | "small" | "large" | undefined) => boolean;
|
|
217
217
|
maximizedChange: (_maximized: boolean) => boolean;
|
|
218
|
-
|
|
218
|
+
/** 数据总数量 */
|
|
219
|
+
refresh: () => boolean;
|
|
219
220
|
select: (_selection: DataItem[], _row: DataItem) => boolean;
|
|
220
221
|
selectAll: (_selection: DataItem[]) => boolean;
|
|
221
222
|
selectionChange: (_selection: DataItem[]) => boolean;
|
|
@@ -284,14 +285,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
284
285
|
rowHeight: NumberConstructor;
|
|
285
286
|
locale: import("vue").PropType<Partial<import("./types").TableLocale>>;
|
|
286
287
|
size: {
|
|
287
|
-
/** 表格组件属性 */
|
|
288
288
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
289
289
|
readonly required: false;
|
|
290
290
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
291
291
|
__epPropKey: true;
|
|
292
292
|
};
|
|
293
293
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
294
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
295
294
|
fit: {
|
|
296
295
|
type: BooleanConstructor;
|
|
297
296
|
default: boolean;
|
|
@@ -300,6 +299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
299
|
type: StringConstructor;
|
|
301
300
|
default: string;
|
|
302
301
|
};
|
|
302
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
303
303
|
lazy: BooleanConstructor;
|
|
304
304
|
rowKey: import("vue").PropType<string | ((row: any) => string) | undefined>;
|
|
305
305
|
columns: {
|
|
@@ -315,7 +315,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
315
315
|
type: BooleanConstructor;
|
|
316
316
|
default: boolean;
|
|
317
317
|
};
|
|
318
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
318
|
+
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
319
319
|
stripe: {
|
|
320
320
|
type: BooleanConstructor;
|
|
321
321
|
default: null;
|
|
@@ -346,7 +346,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
346
|
defaultExpandAll: BooleanConstructor;
|
|
347
347
|
defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
348
348
|
tooltipEffect: StringConstructor;
|
|
349
|
-
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
349
|
+
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
350
350
|
spanMethod: import("vue").PropType<((data: {
|
|
351
351
|
row: any;
|
|
352
352
|
rowIndex: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps as mergeProps$1, renderSlot, createCommentVNode, createSlots, renderList, createElementBlock, normalizeStyle } from "vue";
|
|
2
2
|
import { pick } from "../utils/core";
|
|
3
3
|
import { useLicense, useGlobalProps } from "../ele-config-provider/receiver";
|
|
4
4
|
import EleLoading from "../ele-loading/index";
|
|
@@ -390,10 +390,6 @@ const _sfc_main = defineComponent({
|
|
|
390
390
|
reload();
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
|
-
onBeforeUnmount(() => {
|
|
394
|
-
updateSelections([]);
|
|
395
|
-
updateCurrent(null);
|
|
396
|
-
});
|
|
397
393
|
return {
|
|
398
394
|
...methods,
|
|
399
395
|
tableViewRef,
|
|
@@ -85,7 +85,6 @@ export declare const proTableProps: {
|
|
|
85
85
|
__epPropKey: true;
|
|
86
86
|
};
|
|
87
87
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
88
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
89
88
|
fit: {
|
|
90
89
|
type: BooleanConstructor;
|
|
91
90
|
default: boolean;
|
|
@@ -94,6 +93,7 @@ export declare const proTableProps: {
|
|
|
94
93
|
type: StringConstructor;
|
|
95
94
|
default: string;
|
|
96
95
|
};
|
|
96
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
97
97
|
lazy: BooleanConstructor;
|
|
98
98
|
rowKey: PropType<string | ((row: any) => string) | undefined>;
|
|
99
99
|
columns: {
|
|
@@ -109,7 +109,7 @@ export declare const proTableProps: {
|
|
|
109
109
|
type: BooleanConstructor;
|
|
110
110
|
default: boolean;
|
|
111
111
|
};
|
|
112
|
-
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
112
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
113
113
|
stripe: {
|
|
114
114
|
type: BooleanConstructor;
|
|
115
115
|
default: null;
|
|
@@ -140,7 +140,7 @@ export declare const proTableProps: {
|
|
|
140
140
|
defaultExpandAll: BooleanConstructor;
|
|
141
141
|
defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
142
142
|
tooltipEffect: StringConstructor;
|
|
143
|
-
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
143
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
144
144
|
spanMethod: PropType<((data: {
|
|
145
145
|
row: any;
|
|
146
146
|
rowIndex: number;
|
package/es/ele-pro-table/util.js
CHANGED
|
@@ -241,6 +241,7 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
241
241
|
eachTree(cols, (t) => {
|
|
242
242
|
if (t.uid === colId) {
|
|
243
243
|
temp = t;
|
|
244
|
+
return false;
|
|
244
245
|
}
|
|
245
246
|
});
|
|
246
247
|
if (temp && !temp.checked) {
|
|
@@ -273,32 +274,29 @@ function getCheckedColumns(columns, cols, sortable) {
|
|
|
273
274
|
if (c.uid === bColId) {
|
|
274
275
|
bi = i;
|
|
275
276
|
}
|
|
276
|
-
if (ai != null && bi != null) {
|
|
277
|
-
return false;
|
|
278
|
-
}
|
|
279
277
|
i++;
|
|
280
278
|
});
|
|
281
279
|
if (ai == null && a.hideInSetting && a.fixed === "right") {
|
|
282
|
-
ai =
|
|
280
|
+
ai = i;
|
|
283
281
|
}
|
|
284
282
|
if (ai == null) {
|
|
285
283
|
ai = -1;
|
|
286
284
|
}
|
|
287
285
|
if (a.fixed === true || a.fixed === "left") {
|
|
288
|
-
ai -=
|
|
286
|
+
ai -= i;
|
|
289
287
|
} else if (a.fixed === "right" || a.hideInSetting && !a.fixed) {
|
|
290
|
-
ai +=
|
|
288
|
+
ai += i;
|
|
291
289
|
}
|
|
292
290
|
if (bi == null && b.hideInSetting && b.fixed === "right") {
|
|
293
|
-
bi =
|
|
291
|
+
bi = i;
|
|
294
292
|
}
|
|
295
293
|
if (bi == null) {
|
|
296
294
|
bi = -1;
|
|
297
295
|
}
|
|
298
296
|
if (b.fixed === true || b.fixed === "left") {
|
|
299
|
-
bi -=
|
|
297
|
+
bi -= i;
|
|
300
298
|
} else if (b.fixed === "right" || b.hideInSetting && !b.fixed) {
|
|
301
|
-
bi +=
|
|
299
|
+
bi += i;
|
|
302
300
|
}
|
|
303
301
|
return ai - bi;
|
|
304
302
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElTooltipInstance, ElPopperInstance } from '../ele-app/types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
4
4
|
bg: StringConstructor;
|
|
@@ -15,21 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "menu" | "group" | "listbox" | "grid" | "tooltip" | "dialog" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
16
16
|
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
17
17
|
strategy: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
18
|
-
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
19
|
-
transition: StringConstructor;
|
|
20
|
-
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
21
|
-
popperStyle: {
|
|
22
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
23
|
-
readonly required: false;
|
|
24
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
-
__epPropKey: true;
|
|
26
|
-
};
|
|
27
|
-
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
28
|
-
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
29
|
-
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
30
|
-
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
31
18
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
32
|
-
persistent: BooleanConstructor;
|
|
33
19
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
34
20
|
triggerKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
35
21
|
virtualRef: {
|
|
@@ -46,11 +32,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
32
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
33
|
__epPropKey: true;
|
|
48
34
|
};
|
|
35
|
+
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
49
36
|
rawContent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
37
|
+
persistent: BooleanConstructor;
|
|
50
38
|
ariaLabel: StringConstructor;
|
|
39
|
+
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
40
|
+
transition: StringConstructor;
|
|
41
|
+
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
51
42
|
pure: BooleanConstructor;
|
|
52
43
|
focusOnShow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
53
44
|
trapping: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
45
|
+
popperStyle: {
|
|
46
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
47
|
+
readonly required: false;
|
|
48
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
|
+
__epPropKey: true;
|
|
50
|
+
};
|
|
54
51
|
referenceEl: {
|
|
55
52
|
readonly type: import("vue").PropType<HTMLElement>;
|
|
56
53
|
readonly required: false;
|
|
@@ -68,11 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
65
|
boundariesPadding: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
69
66
|
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, undefined, boolean>;
|
|
70
67
|
gpuAcceleration: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
68
|
+
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
69
|
+
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
70
|
+
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
71
71
|
popperClass: StringConstructor;
|
|
72
72
|
className: StringConstructor;
|
|
73
73
|
}, {
|
|
74
74
|
tooltipRef: import("vue").Ref<ElTooltipInstance | undefined>;
|
|
75
|
-
rootProps: import("vue").ComputedRef<ElTooltipProps
|
|
75
|
+
rootProps: import("vue").ComputedRef<Partial<import("element-plus").ElTooltipProps>>;
|
|
76
76
|
popperRef: import("vue").ComputedRef<ElPopperInstance>;
|
|
77
77
|
contentRef: import("vue").ComputedRef<any>;
|
|
78
78
|
isFocusInsideContent: () => void;
|
|
@@ -103,21 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "menu" | "group" | "listbox" | "grid" | "tooltip" | "dialog" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
104
104
|
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
105
105
|
strategy: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
106
|
-
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
107
|
-
transition: StringConstructor;
|
|
108
|
-
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
109
|
-
popperStyle: {
|
|
110
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
111
|
-
readonly required: false;
|
|
112
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
113
|
-
__epPropKey: true;
|
|
114
|
-
};
|
|
115
|
-
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
116
|
-
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
117
|
-
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
118
|
-
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
119
106
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
120
|
-
persistent: BooleanConstructor;
|
|
121
107
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
122
108
|
triggerKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
123
109
|
virtualRef: {
|
|
@@ -134,11 +120,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
120
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
121
|
__epPropKey: true;
|
|
136
122
|
};
|
|
123
|
+
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
137
124
|
rawContent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
125
|
+
persistent: BooleanConstructor;
|
|
138
126
|
ariaLabel: StringConstructor;
|
|
127
|
+
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
128
|
+
transition: StringConstructor;
|
|
129
|
+
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
139
130
|
pure: BooleanConstructor;
|
|
140
131
|
focusOnShow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
141
132
|
trapping: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
133
|
+
popperStyle: {
|
|
134
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
135
|
+
readonly required: false;
|
|
136
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
137
|
+
__epPropKey: true;
|
|
138
|
+
};
|
|
142
139
|
referenceEl: {
|
|
143
140
|
readonly type: import("vue").PropType<HTMLElement>;
|
|
144
141
|
readonly required: false;
|
|
@@ -156,6 +153,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
153
|
boundariesPadding: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
157
154
|
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, undefined, boolean>;
|
|
158
155
|
gpuAcceleration: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
156
|
+
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
157
|
+
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
158
|
+
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
159
159
|
popperClass: StringConstructor;
|
|
160
160
|
className: StringConstructor;
|
|
161
161
|
}>> & {
|
|
@@ -176,19 +176,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
176
|
role: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "menu" | "group" | "listbox" | "grid" | "tooltip" | "dialog" | "navigation" | "tree", unknown>;
|
|
177
177
|
teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
178
178
|
strategy: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
|
179
|
-
visible: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
180
|
-
content: string;
|
|
181
|
-
enterable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
182
|
-
showAfter: number;
|
|
183
|
-
hideAfter: number;
|
|
184
|
-
autoClose: number;
|
|
185
179
|
showArrow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
186
|
-
persistent: boolean;
|
|
187
180
|
arrowOffset: number;
|
|
188
181
|
triggerKeys: string[];
|
|
189
182
|
virtualTriggering: boolean;
|
|
190
183
|
open: boolean;
|
|
184
|
+
content: string;
|
|
191
185
|
rawContent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
186
|
+
persistent: boolean;
|
|
187
|
+
visible: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
|
188
|
+
enterable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
192
189
|
pure: boolean;
|
|
193
190
|
focusOnShow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
194
191
|
trapping: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -196,6 +193,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
193
|
boundariesPadding: number;
|
|
197
194
|
fallbackPlacements: import("element-plus").Placement[];
|
|
198
195
|
gpuAcceleration: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
196
|
+
showAfter: number;
|
|
197
|
+
hideAfter: number;
|
|
198
|
+
autoClose: number;
|
|
199
199
|
isPopover: boolean;
|
|
200
200
|
}, {}>;
|
|
201
201
|
export default _default;
|
|
@@ -23,21 +23,7 @@ export declare const tooltipProps: {
|
|
|
23
23
|
role: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "menu" | "group" | "listbox" | "grid" | "tooltip" | "dialog" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
24
24
|
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
25
25
|
strategy: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
26
|
-
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
27
|
-
transition: StringConstructor;
|
|
28
|
-
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
29
|
-
popperStyle: {
|
|
30
|
-
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
31
|
-
readonly required: false;
|
|
32
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
|
-
__epPropKey: true;
|
|
34
|
-
};
|
|
35
|
-
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
36
|
-
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
37
|
-
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
38
|
-
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
39
26
|
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
40
|
-
persistent: BooleanConstructor;
|
|
41
27
|
arrowOffset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 5, boolean>;
|
|
42
28
|
triggerKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
43
29
|
virtualRef: {
|
|
@@ -54,11 +40,22 @@ export declare const tooltipProps: {
|
|
|
54
40
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
41
|
__epPropKey: true;
|
|
56
42
|
};
|
|
43
|
+
content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
57
44
|
rawContent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
45
|
+
persistent: BooleanConstructor;
|
|
58
46
|
ariaLabel: StringConstructor;
|
|
47
|
+
visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
48
|
+
transition: StringConstructor;
|
|
49
|
+
enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
59
50
|
pure: BooleanConstructor;
|
|
60
51
|
focusOnShow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
61
52
|
trapping: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
53
|
+
popperStyle: {
|
|
54
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown>>;
|
|
55
|
+
readonly required: false;
|
|
56
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
|
+
__epPropKey: true;
|
|
58
|
+
};
|
|
62
59
|
referenceEl: {
|
|
63
60
|
readonly type: PropType<HTMLElement>;
|
|
64
61
|
readonly required: false;
|
|
@@ -76,6 +73,9 @@ export declare const tooltipProps: {
|
|
|
76
73
|
boundariesPadding: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
77
74
|
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, undefined, boolean>;
|
|
78
75
|
gpuAcceleration: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
|
+
showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
77
|
+
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
78
|
+
autoClose: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
79
79
|
popperClass: StringConstructor;
|
|
80
80
|
className: StringConstructor;
|
|
81
81
|
};
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
colspan: number;
|
|
31
31
|
} | undefined) | undefined>;
|
|
32
32
|
/** 溢出提示组件全局属性 */
|
|
33
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
33
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
34
34
|
/** 序号列起始编号 */
|
|
35
35
|
pageIndex: NumberConstructor;
|
|
36
36
|
/** 表格行高 */
|
|
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
colspan: number;
|
|
111
111
|
} | undefined) | undefined>;
|
|
112
112
|
/** 溢出提示组件全局属性 */
|
|
113
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
113
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
114
114
|
/** 序号列起始编号 */
|
|
115
115
|
pageIndex: NumberConstructor;
|
|
116
116
|
/** 表格行高 */
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
colspan: number;
|
|
30
30
|
} | undefined) | undefined>;
|
|
31
31
|
/** 溢出提示组件全局属性 */
|
|
32
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
32
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
33
33
|
/** 序号列起始编号 */
|
|
34
34
|
pageIndex: NumberConstructor;
|
|
35
35
|
/** 表格行高 */
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
colspan: number;
|
|
110
110
|
} | undefined) | undefined>;
|
|
111
111
|
/** 溢出提示组件全局属性 */
|
|
112
|
-
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
112
|
+
tableTooltipProps: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
113
113
|
/** 序号列起始编号 */
|
|
114
114
|
pageIndex: NumberConstructor;
|
|
115
115
|
/** 表格行高 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, normalizeClass } from "vue";
|
|
2
|
-
import { ElIcon, ElButton, ElScrollbar, useLocale } from "element-plus";
|
|
2
|
+
import { ElIcon, ElButton, ElScrollbar, ElCheckboxGroup, ElCheckbox, useLocale } from "element-plus";
|
|
3
3
|
import EleTooltip from "../../ele-tooltip/index";
|
|
4
4
|
import { FilterFilled } from "../../icons";
|
|
5
5
|
const _sfc_main = defineComponent({
|
|
@@ -8,6 +8,8 @@ const _sfc_main = defineComponent({
|
|
|
8
8
|
ElIcon,
|
|
9
9
|
ElButton,
|
|
10
10
|
ElScrollbar,
|
|
11
|
+
ElCheckboxGroup,
|
|
12
|
+
ElCheckbox,
|
|
11
13
|
EleTooltip,
|
|
12
14
|
FilterFilled
|
|
13
15
|
},
|
|
@@ -44,7 +44,6 @@ export declare const virtualTableProps: {
|
|
|
44
44
|
__epPropKey: true;
|
|
45
45
|
};
|
|
46
46
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
47
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
48
47
|
fit: {
|
|
49
48
|
type: BooleanConstructor;
|
|
50
49
|
default: boolean;
|
|
@@ -53,6 +52,7 @@ export declare const virtualTableProps: {
|
|
|
53
52
|
type: StringConstructor;
|
|
54
53
|
default: string;
|
|
55
54
|
};
|
|
55
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
56
56
|
lazy: BooleanConstructor;
|
|
57
57
|
rowKey: import("vue").PropType<string | ((row: any) => string) | undefined>;
|
|
58
58
|
data: {
|
|
@@ -64,7 +64,7 @@ export declare const virtualTableProps: {
|
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
67
|
+
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
68
68
|
showHeader: {
|
|
69
69
|
type: BooleanConstructor;
|
|
70
70
|
default: boolean;
|
|
@@ -87,7 +87,7 @@ export declare const virtualTableProps: {
|
|
|
87
87
|
defaultExpandAll: BooleanConstructor;
|
|
88
88
|
defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
89
89
|
tooltipEffect: StringConstructor;
|
|
90
|
-
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
90
|
+
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
91
91
|
spanMethod: import("vue").PropType<((data: {
|
|
92
92
|
row: any;
|
|
93
93
|
rowIndex: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, onMounted, onBeforeMount, onActivated, onDeactivated } from "vue";
|
|
2
2
|
import { TableV2SortOrder } from "element-plus";
|
|
3
3
|
import { omit, mapTree, eachTree, getCurrentStyle, debounce } from "../utils/core";
|
|
4
|
-
import { getValue } from "../ele-data-table/util";
|
|
4
|
+
import { getColFixedNumber, getValue } from "../ele-data-table/util";
|
|
5
5
|
function getRowHeight(size, rowHeight) {
|
|
6
6
|
if (rowHeight != null && rowHeight > 0) {
|
|
7
7
|
return rowHeight;
|
|
@@ -99,7 +99,11 @@ function analyseColumns(columns) {
|
|
|
99
99
|
if (!columns || !columns.length) {
|
|
100
100
|
return { cols, rows };
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
const sortedCols = [...columns];
|
|
103
|
+
sortedCols.sort((a, b) => {
|
|
104
|
+
return getColFixedNumber(a.fixed) - getColFixedNumber(b.fixed);
|
|
105
|
+
});
|
|
106
|
+
generateRowCols(sortedCols, cols, rows, 0);
|
|
103
107
|
computeFixedCols(cols);
|
|
104
108
|
rows.forEach((row, i) => {
|
|
105
109
|
row.forEach((col) => {
|
|
@@ -107,7 +111,6 @@ function analyseColumns(columns) {
|
|
|
107
111
|
col.rowspan = rows.length - i;
|
|
108
112
|
}
|
|
109
113
|
});
|
|
110
|
-
computeFixedCols(row);
|
|
111
114
|
});
|
|
112
115
|
for (let i = 0; i < rows.length; i++) {
|
|
113
116
|
for (let j = 0; j < rows[i].length; j++) {
|
|
@@ -119,11 +122,18 @@ function analyseColumns(columns) {
|
|
|
119
122
|
}
|
|
120
123
|
if (row.rowspan != null && row.rowspan > 1) {
|
|
121
124
|
for (let n = 1; n < row.rowspan; n++) {
|
|
122
|
-
rows[i + n].splice(j, 0, {
|
|
125
|
+
rows[i + n].splice(j, 0, {
|
|
126
|
+
colspan: 1,
|
|
127
|
+
rowspan: 0,
|
|
128
|
+
originalCol: row.originalCol
|
|
129
|
+
});
|
|
123
130
|
}
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
}
|
|
134
|
+
rows.forEach((row) => {
|
|
135
|
+
computeFixedCols(row);
|
|
136
|
+
});
|
|
127
137
|
return { cols, rows };
|
|
128
138
|
}
|
|
129
139
|
function getColWidth(col, tableWidth, colsWidth, colsMinWidth) {
|
|
@@ -327,13 +327,13 @@ $ele: map.deep-merge(
|
|
|
327
327
|
'arrow-margin': 0 -4px 0 6px,
|
|
328
328
|
'bg': elVar('bg-color'),
|
|
329
329
|
'border-color': elVar('border-color', 'light'),
|
|
330
|
-
'padding':
|
|
330
|
+
'padding': 4px 0,
|
|
331
331
|
'base-level': 16px,
|
|
332
332
|
'child-bg': rgba(0, 0, 0, 0.02),
|
|
333
333
|
'collapse-width': 58px,
|
|
334
334
|
'collapse-icon-size': 18px,
|
|
335
335
|
'item-height': 40px,
|
|
336
|
-
'item-margin':
|
|
336
|
+
'item-margin': 6px,
|
|
337
337
|
'item-padding': 0,
|
|
338
338
|
'item-radius': 0,
|
|
339
339
|
'item-color': elVar('text-color', 'primary'),
|
package/lib/ele-app/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ComponentProps } from './types';
|
|
1
|
+
export type { ComponentProps } from './types/components';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../ele-app/types';
|
|
2
|
+
import type { TooltipProps } from '../../ele-tooltip/props';
|
|
3
|
+
import type EleTooltip from "../../ele-tooltip/index";
|
|
4
|
+
import type { PopoverProps } from '../../ele-popover/props';
|
|
5
|
+
import type ElePopover from "../ele-popover/index";
|
|
6
|
+
import type EleText from "../../ele-text/index";
|
|
7
|
+
import type { DropdownProps } from '../../ele-dropdown/props';
|
|
8
|
+
import type EleDropdown from "../../ele-dropdown/index";
|
|
9
|
+
import type EleTabs from "../../ele-tabs/index";
|
|
10
|
+
import type EleProTable from "../ele-pro-table/index";
|
|
11
|
+
import type EleBasicSelect from "../ele-basic-select/index";
|
|
12
|
+
import type EleDataTable from '../../ele-data-table/index';
|
|
13
|
+
import type EleVirtualTable from "../../ele-virtual-table/index";
|
|
14
|
+
export type { ComponentProps };
|
|
15
|
+
/**
|
|
16
|
+
* 组件属性
|
|
17
|
+
*/
|
|
18
|
+
export type EleDropdownProps = ComponentProps<DropdownProps>;
|
|
19
|
+
export type ElePopoverProps = Partial<PopoverProps>;
|
|
20
|
+
export type EleTooltipProps = Partial<TooltipProps>;
|
|
21
|
+
/**
|
|
22
|
+
* 组件实例
|
|
23
|
+
*/
|
|
24
|
+
export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
|
|
25
|
+
export type EleDataTableInstance = InstanceType<typeof EleDataTable>;
|
|
26
|
+
export type EleDropdownInstance = InstanceType<typeof EleDropdown> | null;
|
|
27
|
+
export type ElePopoverInstance = InstanceType<typeof ElePopover> | null;
|
|
28
|
+
export type EleProTableInstance = InstanceType<typeof EleProTable> | null;
|
|
29
|
+
export type EleTabsInstance = InstanceType<typeof EleTabs> | null;
|
|
30
|
+
export type EleTextInstance = InstanceType<typeof EleText> | null;
|
|
31
|
+
export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
|
|
32
|
+
export type EleVirtualTableInstance = InstanceType<typeof EleVirtualTable>;
|