vxe-table 4.23.19 → 4.24.0-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/README.md +2 -0
- package/dist/all.esm.js +631 -343
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +85 -13
- package/dist/style.mini.css +1 -1
- package/es/components.d.ts +1 -3
- package/es/components.js +1 -2
- package/es/style.css +85 -13
- package/es/style.mini.css +1 -1
- package/es/table/module/custom/panel.js +2 -2
- package/es/table/module/edit/hook.js +95 -5
- package/es/table/src/body.d.ts +2 -2
- package/es/table/src/body.js +26 -49
- package/es/table/src/table.js +256 -35
- package/es/table/style.css +82 -13
- package/es/table/style.mini.css +1 -1
- package/es/ui/abandon.d.ts +82 -0
- package/es/ui/abandon.js +90 -0
- package/es/ui/index.d.ts +1 -82
- package/es/ui/index.js +6 -91
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +82 -13
- package/es/vxe-table/style.mini.css +1 -1
- package/lib/components.d.ts +1 -3
- package/lib/components.js +1 -2
- package/lib/index.umd.js +630 -340
- package/lib/index.umd.min.js +3 -3
- package/lib/style.css +85 -13
- package/lib/style.mini.css +1 -1
- package/lib/table/module/custom/panel.js +2 -2
- package/lib/table/module/edit/hook.js +95 -5
- package/lib/table/src/body.d.ts +2 -2
- package/lib/table/src/body.js +26 -49
- package/lib/table/src/table.js +256 -35
- package/lib/table/style/style.css +82 -13
- package/lib/table/style/style.mini.css +1 -1
- package/lib/ui/abandon.d.ts +82 -0
- package/lib/ui/abandon.js +110 -0
- package/lib/ui/index.d.ts +1 -82
- package/lib/ui/index.js +7 -91
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-table/style/style.css +82 -13
- package/lib/vxe-table/style/style.mini.css +1 -1
- package/package.json +2 -2
- package/packages/components.ts +2 -5
- package/packages/table/module/custom/panel.ts +2 -2
- package/packages/table/module/edit/hook.ts +95 -5
- package/packages/table/src/body.ts +28 -50
- package/packages/table/src/table.ts +292 -34
- package/packages/ui/abandon.ts +136 -0
- package/packages/ui/index.ts +12 -122
- package/styles/components/table.scss +141 -87
- package/styles/theme/base.scss +3 -0
- /package/dist/{iconfont.1794474448348.ttf → iconfont.1794559626301.ttf} +0 -0
- /package/dist/{iconfont.1794474448348.woff → iconfont.1794559626301.woff} +0 -0
- /package/dist/{iconfont.1794474448348.woff2 → iconfont.1794559626301.woff2} +0 -0
- /package/es/{iconfont.1794474448348.ttf → iconfont.1794559626301.ttf} +0 -0
- /package/es/{iconfont.1794474448348.woff → iconfont.1794559626301.woff} +0 -0
- /package/es/{iconfont.1794474448348.woff2 → iconfont.1794559626301.woff2} +0 -0
- /package/lib/{iconfont.1794474448348.ttf → iconfont.1794559626301.ttf} +0 -0
- /package/lib/{iconfont.1794474448348.woff → iconfont.1794559626301.woff} +0 -0
- /package/lib/{iconfont.1794474448348.woff2 → iconfont.1794559626301.woff2} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { VxeUploadDefines, VxePrintDefines, VxeGlobalConfig } from 'vxe-pc-ui';
|
|
2
|
+
/**
|
|
3
|
+
* 已废弃,兼容老版本
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export declare const setup: (options?: VxeGlobalConfig) => import("vxe-pc-ui").VxeUIExport;
|
|
7
|
+
/**
|
|
8
|
+
* 已废弃,兼容老版本
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
11
|
+
export declare const config: (options?: VxeGlobalConfig) => import("vxe-pc-ui").VxeUIExport;
|
|
12
|
+
/**
|
|
13
|
+
* 已废弃,兼容老版本
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
export declare const t: (key: string, args?: any) => string;
|
|
17
|
+
/**
|
|
18
|
+
* 已废弃,兼容老版本
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
export declare const _t: (content: string | number | boolean | null | undefined, args?: any) => string;
|
|
22
|
+
/**
|
|
23
|
+
* 已废弃,兼容老版本
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
export declare const VXETable: import("vxe-pc-ui").VxeUIExport;
|
|
27
|
+
/**
|
|
28
|
+
* 已废弃,兼容老版本
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
31
|
+
export declare const saveFile: VxeUploadDefines.SaveFileFunction;
|
|
32
|
+
/**
|
|
33
|
+
* 已废弃,兼容老版本
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
export declare const readFile: VxeUploadDefines.ReadFileFunction;
|
|
37
|
+
/**
|
|
38
|
+
* 已废弃,兼容老版本
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
41
|
+
export declare const print: VxePrintDefines.PrintFunction;
|
|
42
|
+
/**
|
|
43
|
+
* 已废弃,兼容老版本
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
46
|
+
export declare const modal: {
|
|
47
|
+
/**
|
|
48
|
+
* 已废弃,兼容老版本
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
get(id: any): import("vxe-pc-ui").VxeModalConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* 已废弃,兼容老版本
|
|
54
|
+
* @deprecated
|
|
55
|
+
*/
|
|
56
|
+
close(id: any): Promise<any>;
|
|
57
|
+
/**
|
|
58
|
+
* 已废弃,兼容老版本
|
|
59
|
+
* @deprecated
|
|
60
|
+
*/
|
|
61
|
+
open(options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
62
|
+
/**
|
|
63
|
+
* 已废弃,兼容老版本
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
66
|
+
alert(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
67
|
+
/**
|
|
68
|
+
* 已废弃,兼容老版本
|
|
69
|
+
* @deprecated
|
|
70
|
+
*/
|
|
71
|
+
confirm(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
72
|
+
/**
|
|
73
|
+
* 已废弃,兼容老版本
|
|
74
|
+
* @deprecated
|
|
75
|
+
*/
|
|
76
|
+
message(content: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
77
|
+
/**
|
|
78
|
+
* 已废弃,兼容老版本
|
|
79
|
+
* @deprecated
|
|
80
|
+
*/
|
|
81
|
+
notification(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
82
|
+
};
|
package/es/ui/abandon.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
2
|
+
import { getFuncText } from "./src/utils";
|
|
3
|
+
const setup = (options) => {
|
|
4
|
+
return VxeUI.setConfig(options);
|
|
5
|
+
};
|
|
6
|
+
VxeUI.setup = setup;
|
|
7
|
+
const config = (options) => {
|
|
8
|
+
return VxeUI.setConfig(options);
|
|
9
|
+
};
|
|
10
|
+
VxeUI.config = config;
|
|
11
|
+
const t = (key, args) => {
|
|
12
|
+
return VxeUI.getI18n(key, args);
|
|
13
|
+
};
|
|
14
|
+
VxeUI.t = t;
|
|
15
|
+
const _t = (content, args) => {
|
|
16
|
+
return getFuncText(content, args);
|
|
17
|
+
};
|
|
18
|
+
VxeUI._t = _t;
|
|
19
|
+
const VXETable = VxeUI;
|
|
20
|
+
const saveFile = (options) => {
|
|
21
|
+
return VxeUI.saveFile(options);
|
|
22
|
+
};
|
|
23
|
+
const readFile = (options) => {
|
|
24
|
+
return VxeUI.readFile(options);
|
|
25
|
+
};
|
|
26
|
+
const print = (options) => {
|
|
27
|
+
return VxeUI.print(options);
|
|
28
|
+
};
|
|
29
|
+
const modal = {
|
|
30
|
+
/**
|
|
31
|
+
* 已废弃,兼容老版本
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
34
|
+
get(id) {
|
|
35
|
+
return VxeUI.modal.get(id);
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* 已废弃,兼容老版本
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
41
|
+
close(id) {
|
|
42
|
+
return VxeUI.modal.close(id);
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* 已废弃,兼容老版本
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
48
|
+
open(options) {
|
|
49
|
+
return VxeUI.modal.open(options);
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* 已废弃,兼容老版本
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
55
|
+
alert(content, title, options) {
|
|
56
|
+
return VxeUI.modal.alert(content, title, options);
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* 已废弃,兼容老版本
|
|
60
|
+
* @deprecated
|
|
61
|
+
*/
|
|
62
|
+
confirm(content, title, options) {
|
|
63
|
+
return VxeUI.modal.confirm(content, title, options);
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* 已废弃,兼容老版本
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
69
|
+
message(content, options) {
|
|
70
|
+
return VxeUI.modal.message(content, options);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* 已废弃,兼容老版本
|
|
74
|
+
* @deprecated
|
|
75
|
+
*/
|
|
76
|
+
notification(content, title, options) {
|
|
77
|
+
return VxeUI.modal.notification(content, title, options);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
VXETable,
|
|
82
|
+
_t,
|
|
83
|
+
config,
|
|
84
|
+
modal,
|
|
85
|
+
print,
|
|
86
|
+
readFile,
|
|
87
|
+
saveFile,
|
|
88
|
+
setup,
|
|
89
|
+
t
|
|
90
|
+
};
|
package/es/ui/index.d.ts
CHANGED
|
@@ -1,86 +1,5 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
|
-
import type { VxeUploadDefines, VxePrintDefines, VxeGlobalConfig } from 'vxe-pc-ui';
|
|
3
2
|
export declare const version: string;
|
|
4
|
-
/**
|
|
5
|
-
* 已废弃
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare const setup: (options?: VxeGlobalConfig) => import("vxe-pc-ui").VxeUIExport;
|
|
9
|
-
/**
|
|
10
|
-
* 已废弃
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
export declare const config: (options?: VxeGlobalConfig) => import("vxe-pc-ui").VxeUIExport;
|
|
14
|
-
/**
|
|
15
|
-
* 已废弃
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
export declare const t: (key: string, args?: any) => string;
|
|
19
|
-
/**
|
|
20
|
-
* 已废弃
|
|
21
|
-
* @deprecated
|
|
22
|
-
*/
|
|
23
|
-
export declare const _t: (content: string | number | boolean | null | undefined, args?: any) => string;
|
|
24
|
-
/**
|
|
25
|
-
* 已废弃,兼容老版本
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
export declare const VXETable: import("vxe-pc-ui").VxeUIExport;
|
|
29
|
-
/**
|
|
30
|
-
* 已废弃,兼容老版本
|
|
31
|
-
* @deprecated
|
|
32
|
-
*/
|
|
33
|
-
export declare const saveFile: VxeUploadDefines.SaveFileFunction;
|
|
34
|
-
/**
|
|
35
|
-
* 已废弃,兼容老版本
|
|
36
|
-
* @deprecated
|
|
37
|
-
*/
|
|
38
|
-
export declare const readFile: VxeUploadDefines.ReadFileFunction;
|
|
39
|
-
/**
|
|
40
|
-
* 已废弃,兼容老版本
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
export declare const print: VxePrintDefines.PrintFunction;
|
|
44
|
-
/**
|
|
45
|
-
* 已废弃,兼容老版本
|
|
46
|
-
* @deprecated
|
|
47
|
-
*/
|
|
48
|
-
export declare const modal: {
|
|
49
|
-
/**
|
|
50
|
-
* 已废弃,兼容老版本
|
|
51
|
-
* @deprecated
|
|
52
|
-
*/
|
|
53
|
-
get(id: any): import("vxe-pc-ui").VxeModalConstructor;
|
|
54
|
-
/**
|
|
55
|
-
* 已废弃,兼容老版本
|
|
56
|
-
* @deprecated
|
|
57
|
-
*/
|
|
58
|
-
close(id: any): Promise<any>;
|
|
59
|
-
/**
|
|
60
|
-
* 已废弃,兼容老版本
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
open(options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
64
|
-
/**
|
|
65
|
-
* 已废弃,兼容老版本
|
|
66
|
-
* @deprecated
|
|
67
|
-
*/
|
|
68
|
-
alert(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
69
|
-
/**
|
|
70
|
-
* 已废弃,兼容老版本
|
|
71
|
-
* @deprecated
|
|
72
|
-
*/
|
|
73
|
-
confirm(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
74
|
-
/**
|
|
75
|
-
* 已废弃,兼容老版本
|
|
76
|
-
* @deprecated
|
|
77
|
-
*/
|
|
78
|
-
message(content: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
79
|
-
/**
|
|
80
|
-
* 已废弃,兼容老版本
|
|
81
|
-
* @deprecated
|
|
82
|
-
*/
|
|
83
|
-
notification(content: any, title: any, options: any): Promise<import("vxe-pc-ui").ModalEventTypes>;
|
|
84
|
-
};
|
|
85
3
|
export { VxeUI };
|
|
4
|
+
export * from './abandon';
|
|
86
5
|
export default VxeUI;
|
package/es/ui/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
|
-
|
|
3
|
-
const version = "4.23.18";
|
|
4
|
-
VxeUI.version = version;
|
|
2
|
+
const version = "4.24.0-beta.1";
|
|
5
3
|
VxeUI.tableVersion = version;
|
|
4
|
+
VxeUI.version = version;
|
|
6
5
|
VxeUI.setConfig({
|
|
7
6
|
emptyCell: " ",
|
|
8
7
|
table: {
|
|
@@ -176,7 +175,7 @@ VxeUI.setConfig({
|
|
|
176
175
|
parentField: "_X_ROW_PARENT_KEY",
|
|
177
176
|
childrenField: "_X_ROW_CHILDREN",
|
|
178
177
|
mapChildrenField: "_X_ROW_CHILD_LIST",
|
|
179
|
-
indent:
|
|
178
|
+
indent: 28,
|
|
180
179
|
showIcon: true,
|
|
181
180
|
maxGroupSize: 4,
|
|
182
181
|
showAggFuncTitle: true
|
|
@@ -188,8 +187,9 @@ VxeUI.setConfig({
|
|
|
188
187
|
childrenField: "children",
|
|
189
188
|
hasChildField: "hasChild",
|
|
190
189
|
mapChildrenField: "_X_ROW_CHILD",
|
|
191
|
-
indent:
|
|
190
|
+
indent: 28,
|
|
192
191
|
showIcon: true,
|
|
192
|
+
// lineType: 'dashed',
|
|
193
193
|
showRootLine: true
|
|
194
194
|
},
|
|
195
195
|
expandConfig: {
|
|
@@ -390,95 +390,10 @@ VxeUI.setIcon({
|
|
|
390
390
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
391
391
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
392
392
|
});
|
|
393
|
-
|
|
394
|
-
return VxeUI.setConfig(options);
|
|
395
|
-
};
|
|
396
|
-
VxeUI.setup = setup;
|
|
397
|
-
const config = (options) => {
|
|
398
|
-
return VxeUI.setConfig(options);
|
|
399
|
-
};
|
|
400
|
-
VxeUI.config = config;
|
|
401
|
-
const t = (key, args) => {
|
|
402
|
-
return VxeUI.getI18n(key, args);
|
|
403
|
-
};
|
|
404
|
-
VxeUI.t = t;
|
|
405
|
-
const _t = (content, args) => {
|
|
406
|
-
return getFuncText(content, args);
|
|
407
|
-
};
|
|
408
|
-
VxeUI._t = _t;
|
|
409
|
-
const VXETable = VxeUI;
|
|
410
|
-
const saveFile = (options) => {
|
|
411
|
-
return VxeUI.saveFile(options);
|
|
412
|
-
};
|
|
413
|
-
const readFile = (options) => {
|
|
414
|
-
return VxeUI.readFile(options);
|
|
415
|
-
};
|
|
416
|
-
const print = (options) => {
|
|
417
|
-
return VxeUI.print(options);
|
|
418
|
-
};
|
|
419
|
-
const modal = {
|
|
420
|
-
/**
|
|
421
|
-
* 已废弃,兼容老版本
|
|
422
|
-
* @deprecated
|
|
423
|
-
*/
|
|
424
|
-
get(id) {
|
|
425
|
-
return VxeUI.modal.get(id);
|
|
426
|
-
},
|
|
427
|
-
/**
|
|
428
|
-
* 已废弃,兼容老版本
|
|
429
|
-
* @deprecated
|
|
430
|
-
*/
|
|
431
|
-
close(id) {
|
|
432
|
-
return VxeUI.modal.close(id);
|
|
433
|
-
},
|
|
434
|
-
/**
|
|
435
|
-
* 已废弃,兼容老版本
|
|
436
|
-
* @deprecated
|
|
437
|
-
*/
|
|
438
|
-
open(options) {
|
|
439
|
-
return VxeUI.modal.open(options);
|
|
440
|
-
},
|
|
441
|
-
/**
|
|
442
|
-
* 已废弃,兼容老版本
|
|
443
|
-
* @deprecated
|
|
444
|
-
*/
|
|
445
|
-
alert(content, title, options) {
|
|
446
|
-
return VxeUI.modal.alert(content, title, options);
|
|
447
|
-
},
|
|
448
|
-
/**
|
|
449
|
-
* 已废弃,兼容老版本
|
|
450
|
-
* @deprecated
|
|
451
|
-
*/
|
|
452
|
-
confirm(content, title, options) {
|
|
453
|
-
return VxeUI.modal.confirm(content, title, options);
|
|
454
|
-
},
|
|
455
|
-
/**
|
|
456
|
-
* 已废弃,兼容老版本
|
|
457
|
-
* @deprecated
|
|
458
|
-
*/
|
|
459
|
-
message(content, options) {
|
|
460
|
-
return VxeUI.modal.message(content, options);
|
|
461
|
-
},
|
|
462
|
-
/**
|
|
463
|
-
* 已废弃,兼容老版本
|
|
464
|
-
* @deprecated
|
|
465
|
-
*/
|
|
466
|
-
notification(content, title, options) {
|
|
467
|
-
return VxeUI.modal.notification(content, title, options);
|
|
468
|
-
}
|
|
469
|
-
};
|
|
393
|
+
export * from "./abandon";
|
|
470
394
|
var ui_default = VxeUI;
|
|
471
395
|
export {
|
|
472
|
-
VXETable,
|
|
473
396
|
VxeUI,
|
|
474
|
-
_t,
|
|
475
|
-
config,
|
|
476
397
|
ui_default as default,
|
|
477
|
-
modal,
|
|
478
|
-
print,
|
|
479
|
-
readFile,
|
|
480
|
-
saveFile,
|
|
481
|
-
setup,
|
|
482
|
-
t,
|
|
483
398
|
version
|
|
484
399
|
};
|
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const tableVersion = `table v${"4.
|
|
3
|
+
const tableVersion = `table v${"4.24.0-beta.1"}`;
|
|
4
4
|
function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : "";
|
package/es/vxe-table/style.css
CHANGED
|
@@ -1868,26 +1868,32 @@
|
|
|
1868
1868
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-default);
|
|
1869
1869
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-default);
|
|
1870
1870
|
--vxe-ui-table-current-row-line-height: var(--vxe-ui-table-row-line-height);
|
|
1871
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-default);
|
|
1871
1872
|
}
|
|
1872
1873
|
.vxe-table.size--xlarge {
|
|
1873
1874
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-xlarge);
|
|
1874
1875
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-xlarge);
|
|
1876
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-xlarge);
|
|
1875
1877
|
}
|
|
1876
1878
|
.vxe-table.size--large {
|
|
1877
1879
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-large);
|
|
1878
1880
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-large);
|
|
1881
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-large);
|
|
1879
1882
|
}
|
|
1880
1883
|
.vxe-table.size--medium {
|
|
1881
1884
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-medium);
|
|
1882
1885
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-medium);
|
|
1886
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-medium);
|
|
1883
1887
|
}
|
|
1884
1888
|
.vxe-table.size--small {
|
|
1885
1889
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-small);
|
|
1886
1890
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-small);
|
|
1891
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-small);
|
|
1887
1892
|
}
|
|
1888
1893
|
.vxe-table.size--mini {
|
|
1889
1894
|
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-mini);
|
|
1890
1895
|
--vxe-ui-table-current-cell-padding: var(--vxe-ui-table-cell-padding-mini);
|
|
1896
|
+
--vxe-ui-table-current-row-height: var(--vxe-ui-table-row-height-mini);
|
|
1891
1897
|
}
|
|
1892
1898
|
|
|
1893
1899
|
.vxe-table-slots,
|
|
@@ -3562,21 +3568,84 @@
|
|
|
3562
3568
|
.vxe-table--render-default {
|
|
3563
3569
|
/*树形节点*/
|
|
3564
3570
|
}
|
|
3565
|
-
.vxe-table--render-default .vxe-tree--line
|
|
3566
|
-
|
|
3567
|
-
display: block;
|
|
3568
|
-
height: 0;
|
|
3571
|
+
.vxe-table--render-default .vxe-tree--line {
|
|
3572
|
+
--vxe-ui-table-current-line-gap: calc((var(--vxe-ui-table-cell-height, var(--vxe-ui-table-current-row-height)) - var(--vxe-ui-table-tree-node-btn-width)) / 2);
|
|
3569
3573
|
}
|
|
3570
3574
|
.vxe-table--render-default .vxe-tree--line {
|
|
3571
|
-
content: "";
|
|
3572
3575
|
position: absolute;
|
|
3573
|
-
bottom: -1.5em;
|
|
3574
|
-
width: 0.8em;
|
|
3575
|
-
border-width: 0 0 1px 1px;
|
|
3576
|
-
border-style: var(--vxe-ui-table-tree-node-line-style);
|
|
3577
|
-
border-color: var(--vxe-ui-table-tree-node-line-color);
|
|
3578
3576
|
pointer-events: none;
|
|
3579
3577
|
}
|
|
3578
|
+
.vxe-table--render-default .vxe-tree--line.v {
|
|
3579
|
+
width: var(--vxe-ui-table-tree-node-line-width);
|
|
3580
|
+
transform: translateX(-50%);
|
|
3581
|
+
/* 伪元素基础尺寸和位置,不含背景 */
|
|
3582
|
+
}
|
|
3583
|
+
.vxe-table--render-default .vxe-tree--line.v.cut-full::before, .vxe-table--render-default .vxe-tree--line.v.cut-top::before, .vxe-table--render-default .vxe-tree--line.v.cut-full::after, .vxe-table--render-default .vxe-tree--line.v.cut-bottom::after {
|
|
3584
|
+
content: "";
|
|
3585
|
+
position: absolute;
|
|
3586
|
+
left: 0;
|
|
3587
|
+
width: var(--vxe-ui-table-tree-node-line-width);
|
|
3588
|
+
}
|
|
3589
|
+
.vxe-table--render-default .vxe-tree--line.v.cut-full::before, .vxe-table--render-default .vxe-tree--line.v.cut-top::before {
|
|
3590
|
+
top: 0;
|
|
3591
|
+
height: var(--vxe-ui-table-current-line-gap);
|
|
3592
|
+
}
|
|
3593
|
+
.vxe-table--render-default .vxe-tree--line.v.cut-full::after, .vxe-table--render-default .vxe-tree--line.v.cut-bottom::after {
|
|
3594
|
+
top: calc(100% - var(--vxe-ui-table-current-line-gap));
|
|
3595
|
+
height: var(--vxe-ui-table-current-line-gap);
|
|
3596
|
+
}
|
|
3597
|
+
.vxe-table--render-default .vxe-tree--line.h {
|
|
3598
|
+
height: var(--vxe-ui-table-tree-node-line-width);
|
|
3599
|
+
transform: translateY(-50%);
|
|
3600
|
+
}
|
|
3601
|
+
.vxe-table--render-default .vxe-tree--line.type--solid.v {
|
|
3602
|
+
background-color: var(--vxe-ui-table-tree-node-line-color);
|
|
3603
|
+
}
|
|
3604
|
+
.vxe-table--render-default .vxe-tree--line.type--solid.v.cut-full, .vxe-table--render-default .vxe-tree--line.type--solid.v.cut-top, .vxe-table--render-default .vxe-tree--line.type--solid.v.cut-bottom {
|
|
3605
|
+
background: none;
|
|
3606
|
+
}
|
|
3607
|
+
.vxe-table--render-default .vxe-tree--line.type--solid.v.cut-full::before, .vxe-table--render-default .vxe-tree--line.type--solid.v.cut-top::before, .vxe-table--render-default .vxe-tree--line.type--solid.v.cut-full::after, .vxe-table--render-default .vxe-tree--line.type--solid.v.cut-bottom::after {
|
|
3608
|
+
background-color: var(--vxe-ui-table-tree-node-line-color);
|
|
3609
|
+
}
|
|
3610
|
+
.vxe-table--render-default .vxe-tree--line.type--solid.h {
|
|
3611
|
+
background-color: var(--vxe-ui-table-tree-node-line-color);
|
|
3612
|
+
}
|
|
3613
|
+
.vxe-table--render-default .vxe-tree--line.type--dashed.v {
|
|
3614
|
+
background-color: transparent;
|
|
3615
|
+
background-image: linear-gradient(to bottom, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3616
|
+
background-size: var(--vxe-ui-table-tree-node-line-width) calc(var(--vxe-ui-table-tree-node-line-width) * 4);
|
|
3617
|
+
}
|
|
3618
|
+
.vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-full, .vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-top, .vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-bottom {
|
|
3619
|
+
background: none;
|
|
3620
|
+
}
|
|
3621
|
+
.vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-full::before, .vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-top::before, .vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-full::after, .vxe-table--render-default .vxe-tree--line.type--dashed.v.cut-bottom::after {
|
|
3622
|
+
background-color: transparent;
|
|
3623
|
+
background-image: linear-gradient(to bottom, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3624
|
+
background-size: var(--vxe-ui-table-tree-node-line-width) calc(var(--vxe-ui-table-tree-node-line-width) * 4);
|
|
3625
|
+
}
|
|
3626
|
+
.vxe-table--render-default .vxe-tree--line.type--dashed.h {
|
|
3627
|
+
background-color: transparent;
|
|
3628
|
+
background-image: linear-gradient(to right, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3629
|
+
background-size: calc(var(--vxe-ui-table-tree-node-line-width) * 4) var(--vxe-ui-table-tree-node-line-width);
|
|
3630
|
+
}
|
|
3631
|
+
.vxe-table--render-default .vxe-tree--line.type--dotted.v {
|
|
3632
|
+
background-color: transparent;
|
|
3633
|
+
background-image: linear-gradient(to bottom, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3634
|
+
background-size: var(--vxe-ui-table-tree-node-line-width) calc(var(--vxe-ui-table-tree-node-line-width) * 2);
|
|
3635
|
+
}
|
|
3636
|
+
.vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-full, .vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-top, .vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-bottom {
|
|
3637
|
+
background: none;
|
|
3638
|
+
}
|
|
3639
|
+
.vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-full::before, .vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-top::before, .vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-full::after, .vxe-table--render-default .vxe-tree--line.type--dotted.v.cut-bottom::after {
|
|
3640
|
+
background-color: transparent;
|
|
3641
|
+
background-image: linear-gradient(to bottom, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3642
|
+
background-size: var(--vxe-ui-table-tree-node-line-width) calc(var(--vxe-ui-table-tree-node-line-width) * 2);
|
|
3643
|
+
}
|
|
3644
|
+
.vxe-table--render-default .vxe-tree--line.type--dotted.h {
|
|
3645
|
+
background-color: transparent;
|
|
3646
|
+
background-image: linear-gradient(to right, var(--vxe-ui-table-tree-node-line-color) 50%, transparent 50%);
|
|
3647
|
+
background-size: calc(var(--vxe-ui-table-tree-node-line-width) * 2) var(--vxe-ui-table-tree-node-line-width);
|
|
3648
|
+
}
|
|
3580
3649
|
.vxe-table--render-default .vxe-row-group--tree-node,
|
|
3581
3650
|
.vxe-table--render-default .vxe-cell--tree-node {
|
|
3582
3651
|
position: relative;
|
|
@@ -3592,14 +3661,14 @@
|
|
|
3592
3661
|
.vxe-table--render-default .vxe-row-group-cell,
|
|
3593
3662
|
.vxe-table--render-default .vxe-tree-cell {
|
|
3594
3663
|
display: block;
|
|
3595
|
-
padding-left:
|
|
3664
|
+
padding-left: var(--vxe-ui-table-tree-node-indent);
|
|
3596
3665
|
}
|
|
3597
3666
|
.vxe-table--render-default .vxe-cell--tree-btn,
|
|
3598
3667
|
.vxe-table--render-default .vxe-row-group--node-btn {
|
|
3599
3668
|
position: absolute;
|
|
3600
3669
|
top: 50%;
|
|
3601
|
-
width:
|
|
3602
|
-
height:
|
|
3670
|
+
width: var(--vxe-ui-table-tree-node-btn-width);
|
|
3671
|
+
height: var(--vxe-ui-table-tree-node-btn-width);
|
|
3603
3672
|
text-align: center;
|
|
3604
3673
|
transform: translateY(-50%);
|
|
3605
3674
|
z-index: 1;
|