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
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var abandon_exports = {};
|
|
20
|
+
__export(abandon_exports, {
|
|
21
|
+
VXETable: () => VXETable,
|
|
22
|
+
_t: () => _t,
|
|
23
|
+
config: () => config,
|
|
24
|
+
modal: () => modal,
|
|
25
|
+
print: () => print,
|
|
26
|
+
readFile: () => readFile,
|
|
27
|
+
saveFile: () => saveFile,
|
|
28
|
+
setup: () => setup,
|
|
29
|
+
t: () => t
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(abandon_exports);
|
|
32
|
+
var import_core = require("@vxe-ui/core");
|
|
33
|
+
var import_utils = require("./src/utils");
|
|
34
|
+
const setup = (options) => {
|
|
35
|
+
return import_core.VxeUI.setConfig(options);
|
|
36
|
+
};
|
|
37
|
+
import_core.VxeUI.setup = setup;
|
|
38
|
+
const config = (options) => {
|
|
39
|
+
return import_core.VxeUI.setConfig(options);
|
|
40
|
+
};
|
|
41
|
+
import_core.VxeUI.config = config;
|
|
42
|
+
const t = (key, args) => {
|
|
43
|
+
return import_core.VxeUI.getI18n(key, args);
|
|
44
|
+
};
|
|
45
|
+
import_core.VxeUI.t = t;
|
|
46
|
+
const _t = (content, args) => {
|
|
47
|
+
return (0, import_utils.getFuncText)(content, args);
|
|
48
|
+
};
|
|
49
|
+
import_core.VxeUI._t = _t;
|
|
50
|
+
const VXETable = import_core.VxeUI;
|
|
51
|
+
const saveFile = (options) => {
|
|
52
|
+
return import_core.VxeUI.saveFile(options);
|
|
53
|
+
};
|
|
54
|
+
const readFile = (options) => {
|
|
55
|
+
return import_core.VxeUI.readFile(options);
|
|
56
|
+
};
|
|
57
|
+
const print = (options) => {
|
|
58
|
+
return import_core.VxeUI.print(options);
|
|
59
|
+
};
|
|
60
|
+
const modal = {
|
|
61
|
+
/**
|
|
62
|
+
* 已废弃,兼容老版本
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
get(id) {
|
|
66
|
+
return import_core.VxeUI.modal.get(id);
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* 已废弃,兼容老版本
|
|
70
|
+
* @deprecated
|
|
71
|
+
*/
|
|
72
|
+
close(id) {
|
|
73
|
+
return import_core.VxeUI.modal.close(id);
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* 已废弃,兼容老版本
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
open(options) {
|
|
80
|
+
return import_core.VxeUI.modal.open(options);
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* 已废弃,兼容老版本
|
|
84
|
+
* @deprecated
|
|
85
|
+
*/
|
|
86
|
+
alert(content, title, options) {
|
|
87
|
+
return import_core.VxeUI.modal.alert(content, title, options);
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* 已废弃,兼容老版本
|
|
91
|
+
* @deprecated
|
|
92
|
+
*/
|
|
93
|
+
confirm(content, title, options) {
|
|
94
|
+
return import_core.VxeUI.modal.confirm(content, title, options);
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* 已废弃,兼容老版本
|
|
98
|
+
* @deprecated
|
|
99
|
+
*/
|
|
100
|
+
message(content, options) {
|
|
101
|
+
return import_core.VxeUI.modal.message(content, options);
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* 已废弃,兼容老版本
|
|
105
|
+
* @deprecated
|
|
106
|
+
*/
|
|
107
|
+
notification(content, title, options) {
|
|
108
|
+
return import_core.VxeUI.modal.notification(content, title, options);
|
|
109
|
+
}
|
|
110
|
+
};
|
package/lib/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/lib/ui/index.js
CHANGED
|
@@ -15,28 +15,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
var ui_exports = {};
|
|
20
21
|
__export(ui_exports, {
|
|
21
|
-
VXETable: () => VXETable,
|
|
22
22
|
VxeUI: () => import_core.VxeUI,
|
|
23
|
-
_t: () => _t,
|
|
24
|
-
config: () => config,
|
|
25
23
|
default: () => ui_default,
|
|
26
|
-
modal: () => modal,
|
|
27
|
-
print: () => print,
|
|
28
|
-
readFile: () => readFile,
|
|
29
|
-
saveFile: () => saveFile,
|
|
30
|
-
setup: () => setup,
|
|
31
|
-
t: () => t,
|
|
32
24
|
version: () => version
|
|
33
25
|
});
|
|
34
26
|
module.exports = __toCommonJS(ui_exports);
|
|
35
27
|
var import_core = require("@vxe-ui/core");
|
|
36
|
-
|
|
37
|
-
const version = "4.
|
|
38
|
-
import_core.VxeUI.version = version;
|
|
28
|
+
__reExport(ui_exports, require("./abandon"), module.exports);
|
|
29
|
+
const version = "4.24.0-beta.1";
|
|
39
30
|
import_core.VxeUI.tableVersion = version;
|
|
31
|
+
import_core.VxeUI.version = version;
|
|
40
32
|
import_core.VxeUI.setConfig({
|
|
41
33
|
emptyCell: " ",
|
|
42
34
|
table: {
|
|
@@ -210,7 +202,7 @@ import_core.VxeUI.setConfig({
|
|
|
210
202
|
parentField: "_X_ROW_PARENT_KEY",
|
|
211
203
|
childrenField: "_X_ROW_CHILDREN",
|
|
212
204
|
mapChildrenField: "_X_ROW_CHILD_LIST",
|
|
213
|
-
indent:
|
|
205
|
+
indent: 28,
|
|
214
206
|
showIcon: true,
|
|
215
207
|
maxGroupSize: 4,
|
|
216
208
|
showAggFuncTitle: true
|
|
@@ -222,8 +214,9 @@ import_core.VxeUI.setConfig({
|
|
|
222
214
|
childrenField: "children",
|
|
223
215
|
hasChildField: "hasChild",
|
|
224
216
|
mapChildrenField: "_X_ROW_CHILD",
|
|
225
|
-
indent:
|
|
217
|
+
indent: 28,
|
|
226
218
|
showIcon: true,
|
|
219
|
+
// lineType: 'dashed',
|
|
227
220
|
showRootLine: true
|
|
228
221
|
},
|
|
229
222
|
expandConfig: {
|
|
@@ -424,81 +417,4 @@ import_core.VxeUI.setIcon({
|
|
|
424
417
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
425
418
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
426
419
|
});
|
|
427
|
-
const setup = (options) => {
|
|
428
|
-
return import_core.VxeUI.setConfig(options);
|
|
429
|
-
};
|
|
430
|
-
import_core.VxeUI.setup = setup;
|
|
431
|
-
const config = (options) => {
|
|
432
|
-
return import_core.VxeUI.setConfig(options);
|
|
433
|
-
};
|
|
434
|
-
import_core.VxeUI.config = config;
|
|
435
|
-
const t = (key, args) => {
|
|
436
|
-
return import_core.VxeUI.getI18n(key, args);
|
|
437
|
-
};
|
|
438
|
-
import_core.VxeUI.t = t;
|
|
439
|
-
const _t = (content, args) => {
|
|
440
|
-
return (0, import_utils.getFuncText)(content, args);
|
|
441
|
-
};
|
|
442
|
-
import_core.VxeUI._t = _t;
|
|
443
|
-
const VXETable = import_core.VxeUI;
|
|
444
|
-
const saveFile = (options) => {
|
|
445
|
-
return import_core.VxeUI.saveFile(options);
|
|
446
|
-
};
|
|
447
|
-
const readFile = (options) => {
|
|
448
|
-
return import_core.VxeUI.readFile(options);
|
|
449
|
-
};
|
|
450
|
-
const print = (options) => {
|
|
451
|
-
return import_core.VxeUI.print(options);
|
|
452
|
-
};
|
|
453
|
-
const modal = {
|
|
454
|
-
/**
|
|
455
|
-
* 已废弃,兼容老版本
|
|
456
|
-
* @deprecated
|
|
457
|
-
*/
|
|
458
|
-
get(id) {
|
|
459
|
-
return import_core.VxeUI.modal.get(id);
|
|
460
|
-
},
|
|
461
|
-
/**
|
|
462
|
-
* 已废弃,兼容老版本
|
|
463
|
-
* @deprecated
|
|
464
|
-
*/
|
|
465
|
-
close(id) {
|
|
466
|
-
return import_core.VxeUI.modal.close(id);
|
|
467
|
-
},
|
|
468
|
-
/**
|
|
469
|
-
* 已废弃,兼容老版本
|
|
470
|
-
* @deprecated
|
|
471
|
-
*/
|
|
472
|
-
open(options) {
|
|
473
|
-
return import_core.VxeUI.modal.open(options);
|
|
474
|
-
},
|
|
475
|
-
/**
|
|
476
|
-
* 已废弃,兼容老版本
|
|
477
|
-
* @deprecated
|
|
478
|
-
*/
|
|
479
|
-
alert(content, title, options) {
|
|
480
|
-
return import_core.VxeUI.modal.alert(content, title, options);
|
|
481
|
-
},
|
|
482
|
-
/**
|
|
483
|
-
* 已废弃,兼容老版本
|
|
484
|
-
* @deprecated
|
|
485
|
-
*/
|
|
486
|
-
confirm(content, title, options) {
|
|
487
|
-
return import_core.VxeUI.modal.confirm(content, title, options);
|
|
488
|
-
},
|
|
489
|
-
/**
|
|
490
|
-
* 已废弃,兼容老版本
|
|
491
|
-
* @deprecated
|
|
492
|
-
*/
|
|
493
|
-
message(content, options) {
|
|
494
|
-
return import_core.VxeUI.modal.message(content, options);
|
|
495
|
-
},
|
|
496
|
-
/**
|
|
497
|
-
* 已废弃,兼容老版本
|
|
498
|
-
* @deprecated
|
|
499
|
-
*/
|
|
500
|
-
notification(content, title, options) {
|
|
501
|
-
return import_core.VxeUI.modal.notification(content, title, options);
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
420
|
var ui_default = import_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(log_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(log_exports);
|
|
26
26
|
var import_core = require("@vxe-ui/core");
|
|
27
27
|
const { log } = import_core.VxeUI;
|
|
28
|
-
const tableVersion = `table v${"4.
|
|
28
|
+
const tableVersion = `table v${"4.24.0-beta.1"}`;
|
|
29
29
|
function createComponentLog(name) {
|
|
30
30
|
const uiVersion = import_core.VxeUI.uiVersion ? `ui v${import_core.VxeUI.uiVersion}` : "";
|
|
31
31
|
const ganttVersion = import_core.VxeUI.ganttVersion ? `gantt v${import_core.VxeUI.ganttVersion}` : "";
|
|
@@ -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;
|