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
package/dist/all.esm.js
CHANGED
|
@@ -30,7 +30,6 @@ __export(index_exports, {
|
|
|
30
30
|
VxeGrid: () => VxeGrid,
|
|
31
31
|
VxeTable: () => VxeTable,
|
|
32
32
|
VxeToolbar: () => VxeToolbar,
|
|
33
|
-
VxeUI: () => VxeUI32,
|
|
34
33
|
_t: () => _t,
|
|
35
34
|
config: () => config,
|
|
36
35
|
default: () => index_default,
|
|
@@ -40,8 +39,7 @@ __export(index_exports, {
|
|
|
40
39
|
readFile: () => readFile,
|
|
41
40
|
saveFile: () => saveFile,
|
|
42
41
|
setup: () => setup,
|
|
43
|
-
t: () => t
|
|
44
|
-
version: () => version
|
|
42
|
+
t: () => t
|
|
45
43
|
});
|
|
46
44
|
|
|
47
45
|
// packages_temp/components.ts
|
|
@@ -58,7 +56,6 @@ __export(components_exports, {
|
|
|
58
56
|
VxeGrid: () => VxeGrid,
|
|
59
57
|
VxeTable: () => VxeTable,
|
|
60
58
|
VxeToolbar: () => VxeToolbar,
|
|
61
|
-
VxeUI: () => VxeUI32,
|
|
62
59
|
_t: () => _t,
|
|
63
60
|
config: () => config,
|
|
64
61
|
install: () => install,
|
|
@@ -67,12 +64,14 @@ __export(components_exports, {
|
|
|
67
64
|
readFile: () => readFile,
|
|
68
65
|
saveFile: () => saveFile,
|
|
69
66
|
setup: () => setup,
|
|
70
|
-
t: () => t
|
|
71
|
-
version: () => version
|
|
67
|
+
t: () => t
|
|
72
68
|
});
|
|
73
|
-
import { VxeUI as
|
|
69
|
+
import { VxeUI as VxeUI33 } from "@vxe-ui/core";
|
|
74
70
|
|
|
75
71
|
// packages_temp/ui/index.ts
|
|
72
|
+
import { VxeUI as VxeUI3 } from "@vxe-ui/core";
|
|
73
|
+
|
|
74
|
+
// packages_temp/ui/abandon.ts
|
|
76
75
|
import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
77
76
|
|
|
78
77
|
// packages_temp/ui/src/utils.ts
|
|
@@ -122,11 +121,90 @@ function getDefaultConfig(val1, def1) {
|
|
|
122
121
|
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
123
122
|
}
|
|
124
123
|
|
|
124
|
+
// packages_temp/ui/abandon.ts
|
|
125
|
+
var setup = (options) => {
|
|
126
|
+
return VxeUI2.setConfig(options);
|
|
127
|
+
};
|
|
128
|
+
VxeUI2.setup = setup;
|
|
129
|
+
var config = (options) => {
|
|
130
|
+
return VxeUI2.setConfig(options);
|
|
131
|
+
};
|
|
132
|
+
VxeUI2.config = config;
|
|
133
|
+
var t = (key, args) => {
|
|
134
|
+
return VxeUI2.getI18n(key, args);
|
|
135
|
+
};
|
|
136
|
+
VxeUI2.t = t;
|
|
137
|
+
var _t = (content, args) => {
|
|
138
|
+
return getFuncText(content, args);
|
|
139
|
+
};
|
|
140
|
+
VxeUI2._t = _t;
|
|
141
|
+
var VXETable = VxeUI2;
|
|
142
|
+
var saveFile = (options) => {
|
|
143
|
+
return VxeUI2.saveFile(options);
|
|
144
|
+
};
|
|
145
|
+
var readFile = (options) => {
|
|
146
|
+
return VxeUI2.readFile(options);
|
|
147
|
+
};
|
|
148
|
+
var print = (options) => {
|
|
149
|
+
return VxeUI2.print(options);
|
|
150
|
+
};
|
|
151
|
+
var modal = {
|
|
152
|
+
/**
|
|
153
|
+
* 已废弃,兼容老版本
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
156
|
+
get(id) {
|
|
157
|
+
return VxeUI2.modal.get(id);
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* 已废弃,兼容老版本
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
163
|
+
close(id) {
|
|
164
|
+
return VxeUI2.modal.close(id);
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* 已废弃,兼容老版本
|
|
168
|
+
* @deprecated
|
|
169
|
+
*/
|
|
170
|
+
open(options) {
|
|
171
|
+
return VxeUI2.modal.open(options);
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* 已废弃,兼容老版本
|
|
175
|
+
* @deprecated
|
|
176
|
+
*/
|
|
177
|
+
alert(content, title, options) {
|
|
178
|
+
return VxeUI2.modal.alert(content, title, options);
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* 已废弃,兼容老版本
|
|
182
|
+
* @deprecated
|
|
183
|
+
*/
|
|
184
|
+
confirm(content, title, options) {
|
|
185
|
+
return VxeUI2.modal.confirm(content, title, options);
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* 已废弃,兼容老版本
|
|
189
|
+
* @deprecated
|
|
190
|
+
*/
|
|
191
|
+
message(content, options) {
|
|
192
|
+
return VxeUI2.modal.message(content, options);
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* 已废弃,兼容老版本
|
|
196
|
+
* @deprecated
|
|
197
|
+
*/
|
|
198
|
+
notification(content, title, options) {
|
|
199
|
+
return VxeUI2.modal.notification(content, title, options);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
125
203
|
// packages_temp/ui/index.ts
|
|
126
|
-
var version = "4.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
204
|
+
var version = "4.24.0-beta.1";
|
|
205
|
+
VxeUI3.tableVersion = version;
|
|
206
|
+
VxeUI3.version = version;
|
|
207
|
+
VxeUI3.setConfig({
|
|
130
208
|
emptyCell: " ",
|
|
131
209
|
table: {
|
|
132
210
|
fit: true,
|
|
@@ -299,7 +377,7 @@ VxeUI2.setConfig({
|
|
|
299
377
|
parentField: "_X_ROW_PARENT_KEY",
|
|
300
378
|
childrenField: "_X_ROW_CHILDREN",
|
|
301
379
|
mapChildrenField: "_X_ROW_CHILD_LIST",
|
|
302
|
-
indent:
|
|
380
|
+
indent: 28,
|
|
303
381
|
showIcon: true,
|
|
304
382
|
maxGroupSize: 4,
|
|
305
383
|
showAggFuncTitle: true
|
|
@@ -311,8 +389,9 @@ VxeUI2.setConfig({
|
|
|
311
389
|
childrenField: "children",
|
|
312
390
|
hasChildField: "hasChild",
|
|
313
391
|
mapChildrenField: "_X_ROW_CHILD",
|
|
314
|
-
indent:
|
|
392
|
+
indent: 28,
|
|
315
393
|
showIcon: true,
|
|
394
|
+
// lineType: 'dashed',
|
|
316
395
|
showRootLine: true
|
|
317
396
|
},
|
|
318
397
|
expandConfig: {
|
|
@@ -451,7 +530,7 @@ VxeUI2.setConfig({
|
|
|
451
530
|
gantt: {}
|
|
452
531
|
});
|
|
453
532
|
var iconPrefix = "vxe-table-icon-";
|
|
454
|
-
|
|
533
|
+
VxeUI3.setIcon({
|
|
455
534
|
// table
|
|
456
535
|
TABLE_SORT_ASC: iconPrefix + "caret-up",
|
|
457
536
|
TABLE_SORT_DESC: iconPrefix + "caret-down",
|
|
@@ -513,86 +592,9 @@ VxeUI2.setIcon({
|
|
|
513
592
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
514
593
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
515
594
|
});
|
|
516
|
-
var setup = (options) => {
|
|
517
|
-
return VxeUI2.setConfig(options);
|
|
518
|
-
};
|
|
519
|
-
VxeUI2.setup = setup;
|
|
520
|
-
var config = (options) => {
|
|
521
|
-
return VxeUI2.setConfig(options);
|
|
522
|
-
};
|
|
523
|
-
VxeUI2.config = config;
|
|
524
|
-
var t = (key, args) => {
|
|
525
|
-
return VxeUI2.getI18n(key, args);
|
|
526
|
-
};
|
|
527
|
-
VxeUI2.t = t;
|
|
528
|
-
var _t = (content, args) => {
|
|
529
|
-
return getFuncText(content, args);
|
|
530
|
-
};
|
|
531
|
-
VxeUI2._t = _t;
|
|
532
|
-
var VXETable = VxeUI2;
|
|
533
|
-
var saveFile = (options) => {
|
|
534
|
-
return VxeUI2.saveFile(options);
|
|
535
|
-
};
|
|
536
|
-
var readFile = (options) => {
|
|
537
|
-
return VxeUI2.readFile(options);
|
|
538
|
-
};
|
|
539
|
-
var print = (options) => {
|
|
540
|
-
return VxeUI2.print(options);
|
|
541
|
-
};
|
|
542
|
-
var modal = {
|
|
543
|
-
/**
|
|
544
|
-
* 已废弃,兼容老版本
|
|
545
|
-
* @deprecated
|
|
546
|
-
*/
|
|
547
|
-
get(id) {
|
|
548
|
-
return VxeUI2.modal.get(id);
|
|
549
|
-
},
|
|
550
|
-
/**
|
|
551
|
-
* 已废弃,兼容老版本
|
|
552
|
-
* @deprecated
|
|
553
|
-
*/
|
|
554
|
-
close(id) {
|
|
555
|
-
return VxeUI2.modal.close(id);
|
|
556
|
-
},
|
|
557
|
-
/**
|
|
558
|
-
* 已废弃,兼容老版本
|
|
559
|
-
* @deprecated
|
|
560
|
-
*/
|
|
561
|
-
open(options) {
|
|
562
|
-
return VxeUI2.modal.open(options);
|
|
563
|
-
},
|
|
564
|
-
/**
|
|
565
|
-
* 已废弃,兼容老版本
|
|
566
|
-
* @deprecated
|
|
567
|
-
*/
|
|
568
|
-
alert(content, title, options) {
|
|
569
|
-
return VxeUI2.modal.alert(content, title, options);
|
|
570
|
-
},
|
|
571
|
-
/**
|
|
572
|
-
* 已废弃,兼容老版本
|
|
573
|
-
* @deprecated
|
|
574
|
-
*/
|
|
575
|
-
confirm(content, title, options) {
|
|
576
|
-
return VxeUI2.modal.confirm(content, title, options);
|
|
577
|
-
},
|
|
578
|
-
/**
|
|
579
|
-
* 已废弃,兼容老版本
|
|
580
|
-
* @deprecated
|
|
581
|
-
*/
|
|
582
|
-
message(content, options) {
|
|
583
|
-
return VxeUI2.modal.message(content, options);
|
|
584
|
-
},
|
|
585
|
-
/**
|
|
586
|
-
* 已废弃,兼容老版本
|
|
587
|
-
* @deprecated
|
|
588
|
-
*/
|
|
589
|
-
notification(content, title, options) {
|
|
590
|
-
return VxeUI2.modal.notification(content, title, options);
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
595
|
|
|
594
596
|
// packages_temp/column/index.ts
|
|
595
|
-
import { VxeUI as
|
|
597
|
+
import { VxeUI as VxeUI7 } from "@vxe-ui/core";
|
|
596
598
|
|
|
597
599
|
// packages_temp/table/src/column.ts
|
|
598
600
|
import { h as h2, onUnmounted, inject, ref, provide, onMounted, createCommentVNode } from "vue";
|
|
@@ -607,7 +609,7 @@ import XEUtils4 from "xe-utils";
|
|
|
607
609
|
|
|
608
610
|
// packages_temp/table/src/columnInfo.ts
|
|
609
611
|
import XEUtils3 from "xe-utils";
|
|
610
|
-
import { VxeUI as
|
|
612
|
+
import { VxeUI as VxeUI5 } from "@vxe-ui/core";
|
|
611
613
|
|
|
612
614
|
// packages_temp/ui/src/dom.ts
|
|
613
615
|
import XEUtils2 from "xe-utils";
|
|
@@ -950,13 +952,13 @@ function getPopupAppendElement(appendTo) {
|
|
|
950
952
|
}
|
|
951
953
|
|
|
952
954
|
// packages_temp/ui/src/log.ts
|
|
953
|
-
import { VxeUI as
|
|
954
|
-
var { log } =
|
|
955
|
-
var tableVersion = `table v${"4.
|
|
955
|
+
import { VxeUI as VxeUI4 } from "@vxe-ui/core";
|
|
956
|
+
var { log } = VxeUI4;
|
|
957
|
+
var tableVersion = `table v${"4.24.0-beta.1"}`;
|
|
956
958
|
function createComponentLog(name) {
|
|
957
|
-
const uiVersion =
|
|
958
|
-
const ganttVersion =
|
|
959
|
-
const designVersion =
|
|
959
|
+
const uiVersion = VxeUI4.uiVersion ? `ui v${VxeUI4.uiVersion}` : "";
|
|
960
|
+
const ganttVersion = VxeUI4.ganttVersion ? `gantt v${VxeUI4.ganttVersion}` : "";
|
|
961
|
+
const designVersion = VxeUI4.designVersion ? `design v${VxeUI4.designVersion}` : "";
|
|
960
962
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
961
963
|
return {
|
|
962
964
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -968,7 +970,7 @@ var errLog = log.create("error", tableVersion);
|
|
|
968
970
|
|
|
969
971
|
// packages_temp/table/src/columnInfo.ts
|
|
970
972
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("table");
|
|
971
|
-
var { getI18n, formats, renderer } =
|
|
973
|
+
var { getI18n, formats, renderer } = VxeUI5;
|
|
972
974
|
var ColumnInfo = class {
|
|
973
975
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
974
976
|
constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
@@ -2241,7 +2243,7 @@ function handleCustomStoreConfig($xeTable) {
|
|
|
2241
2243
|
// packages_temp/table/src/cell.ts
|
|
2242
2244
|
import { h } from "vue";
|
|
2243
2245
|
import XEUtils6 from "xe-utils";
|
|
2244
|
-
import { VxeUI as
|
|
2246
|
+
import { VxeUI as VxeUI6 } from "@vxe-ui/core";
|
|
2245
2247
|
|
|
2246
2248
|
// packages_temp/ui/src/vn.ts
|
|
2247
2249
|
import XEUtils5 from "xe-utils";
|
|
@@ -2293,7 +2295,7 @@ function getSlotVNs(vns) {
|
|
|
2293
2295
|
}
|
|
2294
2296
|
|
|
2295
2297
|
// packages_temp/table/src/cell.ts
|
|
2296
|
-
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } =
|
|
2298
|
+
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = VxeUI6;
|
|
2297
2299
|
function renderTitlePrefixIcon(params) {
|
|
2298
2300
|
const { $table, column } = params;
|
|
2299
2301
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
@@ -3894,15 +3896,15 @@ var VxeColumn = Object.assign({}, column_default, {
|
|
|
3894
3896
|
app.component("VxeTableColumn", column_default);
|
|
3895
3897
|
}
|
|
3896
3898
|
});
|
|
3897
|
-
if (
|
|
3898
|
-
|
|
3899
|
-
|
|
3899
|
+
if (VxeUI7.dynamicApp) {
|
|
3900
|
+
VxeUI7.dynamicApp.component(column_default.name, column_default);
|
|
3901
|
+
VxeUI7.dynamicApp.component("VxeTableColumn", column_default);
|
|
3900
3902
|
}
|
|
3901
|
-
|
|
3903
|
+
VxeUI7.component(column_default);
|
|
3902
3904
|
var Column = VxeColumn;
|
|
3903
3905
|
|
|
3904
3906
|
// packages_temp/colgroup/index.ts
|
|
3905
|
-
import { VxeUI as
|
|
3907
|
+
import { VxeUI as VxeUI8 } from "@vxe-ui/core";
|
|
3906
3908
|
|
|
3907
3909
|
// packages_temp/table/src/group.ts
|
|
3908
3910
|
import { h as h3, onUnmounted as onUnmounted2, provide as provide2, inject as inject2, ref as ref2, onMounted as onMounted2, createCommentVNode as createCommentVNode2 } from "vue";
|
|
@@ -3964,27 +3966,27 @@ var VxeColgroup = Object.assign({}, group_default, {
|
|
|
3964
3966
|
app.component("VxeTableColgroup", group_default);
|
|
3965
3967
|
}
|
|
3966
3968
|
});
|
|
3967
|
-
if (
|
|
3968
|
-
|
|
3969
|
-
|
|
3969
|
+
if (VxeUI8.dynamicApp) {
|
|
3970
|
+
VxeUI8.dynamicApp.component(group_default.name, group_default);
|
|
3971
|
+
VxeUI8.dynamicApp.component("VxeTableColgroup", group_default);
|
|
3970
3972
|
}
|
|
3971
|
-
|
|
3973
|
+
VxeUI8.component(group_default);
|
|
3972
3974
|
var Colgroup = VxeColgroup;
|
|
3973
3975
|
|
|
3974
3976
|
// packages_temp/grid/index.ts
|
|
3975
|
-
import { VxeUI as
|
|
3977
|
+
import { VxeUI as VxeUI32 } from "@vxe-ui/core";
|
|
3976
3978
|
|
|
3977
3979
|
// packages_temp/grid/src/grid.ts
|
|
3978
3980
|
import { h as h15, ref as ref13, computed as computed7, provide as provide5, reactive as reactive9, onBeforeUnmount as onBeforeUnmount3, watch as watch4, nextTick as nextTick15, onMounted as onMounted7 } from "vue";
|
|
3979
|
-
import { VxeUI as
|
|
3981
|
+
import { VxeUI as VxeUI31 } from "@vxe-ui/core";
|
|
3980
3982
|
import XEUtils27 from "xe-utils";
|
|
3981
3983
|
|
|
3982
3984
|
// packages_temp/grid/src/props.ts
|
|
3983
|
-
import { VxeUI as
|
|
3985
|
+
import { VxeUI as VxeUI10 } from "@vxe-ui/core";
|
|
3984
3986
|
|
|
3985
3987
|
// packages_temp/table/src/props.ts
|
|
3986
|
-
import { VxeUI as
|
|
3987
|
-
var { getConfig: getConfig3 } =
|
|
3988
|
+
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
3989
|
+
var { getConfig: getConfig3 } = VxeUI9;
|
|
3988
3990
|
var tableComponenProps = {
|
|
3989
3991
|
/** 基本属性 */
|
|
3990
3992
|
id: [String, Function],
|
|
@@ -4314,7 +4316,7 @@ var tableComponenProps = {
|
|
|
4314
4316
|
};
|
|
4315
4317
|
|
|
4316
4318
|
// packages_temp/grid/src/props.ts
|
|
4317
|
-
var { getConfig: getConfig4 } =
|
|
4319
|
+
var { getConfig: getConfig4 } = VxeUI10;
|
|
4318
4320
|
var gridComponeProps = {
|
|
4319
4321
|
...tableComponenProps,
|
|
4320
4322
|
layouts: Array,
|
|
@@ -4460,12 +4462,12 @@ var tableComponenEmits = [
|
|
|
4460
4462
|
var gridComponeEmits = [...tableComponenEmits, "page-change", "form-submit", "form-submit-invalid", "form-reset", "form-collapse", "form-toggle-collapse", "proxy-query", "proxy-delete", "proxy-save", "toolbar-button-click", "toolbar-tool-click", "zoom"];
|
|
4461
4463
|
|
|
4462
4464
|
// packages_temp/table/index.ts
|
|
4463
|
-
import { VxeUI as
|
|
4465
|
+
import { VxeUI as VxeUI28 } from "@vxe-ui/core";
|
|
4464
4466
|
|
|
4465
4467
|
// packages_temp/table/src/table.ts
|
|
4466
4468
|
import { h as h13, reactive as reactive7, ref as ref11, provide as provide4, inject as inject11, nextTick as nextTick13, Teleport as Teleport3, onActivated, onDeactivated, onBeforeUnmount, onUnmounted as onUnmounted7, watch as watch3, computed as computed4, onMounted as onMounted6 } from "vue";
|
|
4467
4469
|
import XEUtils24 from "xe-utils";
|
|
4468
|
-
import { VxeUI as
|
|
4470
|
+
import { VxeUI as VxeUI27 } from "@vxe-ui/core";
|
|
4469
4471
|
|
|
4470
4472
|
// packages_temp/ui/src/anime.ts
|
|
4471
4473
|
import XEUtils7 from "xe-utils";
|
|
@@ -4520,8 +4522,8 @@ function getCrossTableDragRowInfo() {
|
|
|
4520
4522
|
// packages_temp/table/src/body.ts
|
|
4521
4523
|
import { h as h4, ref as ref3, inject as inject3, nextTick, onMounted as onMounted3, onUnmounted as onUnmounted3 } from "vue";
|
|
4522
4524
|
import XEUtils8 from "xe-utils";
|
|
4523
|
-
import { VxeUI as
|
|
4524
|
-
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } =
|
|
4525
|
+
import { VxeUI as VxeUI11 } from "@vxe-ui/core";
|
|
4526
|
+
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = VxeUI11;
|
|
4525
4527
|
var sourceType = "table";
|
|
4526
4528
|
var renderType = "body";
|
|
4527
4529
|
var body_default = (
|
|
@@ -4561,7 +4563,8 @@ var body_default = (
|
|
|
4561
4563
|
computeVirtualXOpts,
|
|
4562
4564
|
computeVirtualYOpts,
|
|
4563
4565
|
computeIsBodyRenderOptimize,
|
|
4564
|
-
computeRendererOpts
|
|
4566
|
+
computeRendererOpts,
|
|
4567
|
+
computeShowTreeLine
|
|
4565
4568
|
} = $xeTable.getComputeMaps();
|
|
4566
4569
|
const refElem = ref3();
|
|
4567
4570
|
const refBodyScroll = ref3();
|
|
@@ -4577,60 +4580,33 @@ var body_default = (
|
|
|
4577
4580
|
const { lastSTime } = tableInternalData;
|
|
4578
4581
|
return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
|
|
4579
4582
|
};
|
|
4580
|
-
const renderLine = (rowid, params
|
|
4583
|
+
const renderLine = (rowid, params) => {
|
|
4581
4584
|
const { column } = params;
|
|
4582
4585
|
const { treeConfig } = tableProps;
|
|
4583
|
-
const cellOpts = computeCellOpts.value;
|
|
4584
|
-
const rowOpts = computeRowOpts.value;
|
|
4585
|
-
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
4586
|
-
const treeOpts = computeTreeOpts.value;
|
|
4587
4586
|
const { slots, treeNode } = column;
|
|
4588
|
-
const
|
|
4589
|
-
if (treeConfig && treeNode
|
|
4587
|
+
const lineVNs = [];
|
|
4588
|
+
if (treeConfig && treeNode) {
|
|
4590
4589
|
if (slots && slots.line) {
|
|
4591
4590
|
return $xeTable.callSlot(slots.line, params);
|
|
4592
4591
|
}
|
|
4592
|
+
const treeOpts = computeTreeOpts.value;
|
|
4593
|
+
const { fullAllDataRowIdData } = tableInternalData;
|
|
4594
|
+
const { lineType } = treeOpts;
|
|
4593
4595
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
}
|
|
4603
|
-
if (!rLevel && !treeOpts.showRootLine) {
|
|
4604
|
-
return [];
|
|
4605
|
-
}
|
|
4606
|
-
if (prevRow) {
|
|
4607
|
-
const prevRowRest = fullAllDataRowIdData[getRowid($xeTable, prevRow)] || {};
|
|
4608
|
-
lineHeight = `${prevRowRest.lineHeight || 0}px`;
|
|
4609
|
-
} else if (rLevel && parentRow) {
|
|
4610
|
-
const parentRowRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)] || {};
|
|
4611
|
-
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
|
|
4612
|
-
}
|
|
4613
|
-
return [
|
|
4614
|
-
h4(
|
|
4615
|
-
"div",
|
|
4616
|
-
{
|
|
4617
|
-
key: "tl",
|
|
4618
|
-
class: "vxe-tree--line-wrapper"
|
|
4619
|
-
},
|
|
4620
|
-
[
|
|
4621
|
-
h4("div", {
|
|
4622
|
-
class: "vxe-tree--line",
|
|
4623
|
-
style: {
|
|
4624
|
-
height: lineHeight,
|
|
4625
|
-
bottom: `-${Math.floor(cellHeight / 2)}px`,
|
|
4626
|
-
left: `calc(${rLevel * treeOpts.indent}px + 1em)`
|
|
4627
|
-
}
|
|
4596
|
+
const treeLines = rowRest.treeLines;
|
|
4597
|
+
if (treeLines) {
|
|
4598
|
+
treeLines.forEach((item, i) => {
|
|
4599
|
+
lineVNs.push(
|
|
4600
|
+
h4("span", {
|
|
4601
|
+
key: "le" + i,
|
|
4602
|
+
class: ["vxe-tree--line", `type--${lineType || "solid"}`, item.type],
|
|
4603
|
+
style: item.style
|
|
4628
4604
|
})
|
|
4629
|
-
|
|
4630
|
-
)
|
|
4631
|
-
|
|
4605
|
+
);
|
|
4606
|
+
});
|
|
4607
|
+
}
|
|
4632
4608
|
}
|
|
4633
|
-
return
|
|
4609
|
+
return lineVNs;
|
|
4634
4610
|
};
|
|
4635
4611
|
const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
|
|
4636
4612
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -4638,6 +4614,7 @@ var body_default = (
|
|
|
4638
4614
|
const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
|
|
4639
4615
|
const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
|
|
4640
4616
|
const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
|
|
4617
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
4641
4618
|
const cellOpts = computeCellOpts.value;
|
|
4642
4619
|
const validOpts = computeValidOpts.value;
|
|
4643
4620
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
@@ -4831,6 +4808,7 @@ var body_default = (
|
|
|
4831
4808
|
}
|
|
4832
4809
|
}
|
|
4833
4810
|
}
|
|
4811
|
+
const tdStyle = {};
|
|
4834
4812
|
const tcStyle = {};
|
|
4835
4813
|
if (maxHeight) {
|
|
4836
4814
|
tcStyle.maxHeight = maxHeight + "px";
|
|
@@ -4849,6 +4827,7 @@ var body_default = (
|
|
|
4849
4827
|
}
|
|
4850
4828
|
if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
4851
4829
|
tcStyle.height = cellHeight + "px";
|
|
4830
|
+
tdStyle["--vxe-ui-table-cell-height"] = cellHeight + "px";
|
|
4852
4831
|
} else {
|
|
4853
4832
|
tcStyle.minHeight = cellHeight + "px";
|
|
4854
4833
|
}
|
|
@@ -4872,8 +4851,8 @@ var body_default = (
|
|
|
4872
4851
|
})
|
|
4873
4852
|
);
|
|
4874
4853
|
} else {
|
|
4875
|
-
if (treeConfig) {
|
|
4876
|
-
tdVNs.push(...renderLine(rowid, cellParams
|
|
4854
|
+
if (treeConfig && showTreeLine) {
|
|
4855
|
+
tdVNs.push(...renderLine(rowid, cellParams));
|
|
4877
4856
|
}
|
|
4878
4857
|
const clVNs = [];
|
|
4879
4858
|
if (!isVNPreEmptyStatus) {
|
|
@@ -5014,7 +4993,7 @@ var body_default = (
|
|
|
5014
4993
|
],
|
|
5015
4994
|
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
|
|
5016
4995
|
...tdAttrs,
|
|
5017
|
-
style: Object.assign(
|
|
4996
|
+
style: Object.assign(tdStyle, XEUtils8.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, XEUtils8.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
|
|
5018
4997
|
...tdOns
|
|
5019
4998
|
},
|
|
5020
4999
|
isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
|
|
@@ -5507,8 +5486,8 @@ var body_default = (
|
|
|
5507
5486
|
// packages_temp/table/src/header.ts
|
|
5508
5487
|
import { h as h5, ref as ref4, inject as inject4, nextTick as nextTick2, watch as watch2, onMounted as onMounted4, onUnmounted as onUnmounted4 } from "vue";
|
|
5509
5488
|
import XEUtils9 from "xe-utils";
|
|
5510
|
-
import { VxeUI as
|
|
5511
|
-
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } =
|
|
5489
|
+
import { VxeUI as VxeUI12 } from "@vxe-ui/core";
|
|
5490
|
+
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = VxeUI12;
|
|
5512
5491
|
var sourceType2 = "table";
|
|
5513
5492
|
var renderType2 = "header";
|
|
5514
5493
|
var header_default = (
|
|
@@ -6106,8 +6085,8 @@ var header_default = (
|
|
|
6106
6085
|
// packages_temp/table/src/footer.ts
|
|
6107
6086
|
import { h as h6, ref as ref5, inject as inject5, nextTick as nextTick3, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
|
|
6108
6087
|
import XEUtils10 from "xe-utils";
|
|
6109
|
-
import { VxeUI as
|
|
6110
|
-
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } =
|
|
6088
|
+
import { VxeUI as VxeUI13 } from "@vxe-ui/core";
|
|
6089
|
+
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = VxeUI13;
|
|
6111
6090
|
var sourceType3 = "table";
|
|
6112
6091
|
var renderType3 = "footer";
|
|
6113
6092
|
var footer_default = (
|
|
@@ -6493,10 +6472,10 @@ var footer_default = (
|
|
|
6493
6472
|
|
|
6494
6473
|
// packages_temp/table/module/custom/panel.ts
|
|
6495
6474
|
import { h as h7, inject as inject6, ref as ref6, provide as provide3, nextTick as nextTick4, TransitionGroup, reactive as reactive3, onUnmounted as onUnmounted6 } from "vue";
|
|
6496
|
-
import { VxeUI as
|
|
6475
|
+
import { VxeUI as VxeUI14 } from "@vxe-ui/core";
|
|
6497
6476
|
import XEUtils11 from "xe-utils";
|
|
6498
6477
|
var { errLog: errLog3 } = createComponentLog("table");
|
|
6499
|
-
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } =
|
|
6478
|
+
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = VxeUI14;
|
|
6500
6479
|
function createInternalData2() {
|
|
6501
6480
|
return {
|
|
6502
6481
|
// teleportTo: undefined,
|
|
@@ -6520,11 +6499,11 @@ var panel_default = (
|
|
|
6520
6499
|
},
|
|
6521
6500
|
setup(props, context) {
|
|
6522
6501
|
const xID = XEUtils11.uniqueId();
|
|
6523
|
-
const VxeUIModalComponent =
|
|
6524
|
-
const VxeUIDrawerComponent =
|
|
6525
|
-
const VxeUIButtonComponent =
|
|
6526
|
-
const VxeUINumberInputComponent =
|
|
6527
|
-
const VxeUIRadioGroupComponent =
|
|
6502
|
+
const VxeUIModalComponent = VxeUI14.getComponent("VxeModal");
|
|
6503
|
+
const VxeUIDrawerComponent = VxeUI14.getComponent("VxeDrawer");
|
|
6504
|
+
const VxeUIButtonComponent = VxeUI14.getComponent("VxeButton");
|
|
6505
|
+
const VxeUINumberInputComponent = VxeUI14.getComponent("VxeNumberInput");
|
|
6506
|
+
const VxeUIRadioGroupComponent = VxeUI14.getComponent("VxeRadioGroup");
|
|
6528
6507
|
const $xeTable = inject6("$xeTable", {});
|
|
6529
6508
|
const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
6530
6509
|
const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
|
|
@@ -6593,8 +6572,8 @@ var panel_default = (
|
|
|
6593
6572
|
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
6594
6573
|
};
|
|
6595
6574
|
const resetCustomEvent = ({ $event }) => {
|
|
6596
|
-
if (
|
|
6597
|
-
|
|
6575
|
+
if (VxeUI14.modal) {
|
|
6576
|
+
VxeUI14.modal.confirm({
|
|
6598
6577
|
content: getI18n4("vxe.custom.cstmConfirmRestore"),
|
|
6599
6578
|
className: "vxe-table--ignore-clear",
|
|
6600
6579
|
escClosable: true
|
|
@@ -6833,8 +6812,8 @@ var panel_default = (
|
|
|
6833
6812
|
const { prevDragCol, prevDragGroupField, prevDragAggFnColid, prevDragPos, prevDragToChild } = customPanelInternalData;
|
|
6834
6813
|
const dragOffsetIndex = prevDragPos === "bottom" ? 1 : 0;
|
|
6835
6814
|
if (prevDragGroupField || prevDragAggFnColid) {
|
|
6836
|
-
if ($xeTable.
|
|
6837
|
-
$xeTable.
|
|
6815
|
+
if ($xeTable.handlePivotTableAggPanelDgedEvent) {
|
|
6816
|
+
$xeTable.handlePivotTableAggPanelDgedEvent(evnt);
|
|
6838
6817
|
}
|
|
6839
6818
|
} else if (prevDragCol && dragCol) {
|
|
6840
6819
|
if (prevDragCol !== dragCol) {
|
|
@@ -6873,8 +6852,8 @@ var panel_default = (
|
|
|
6873
6852
|
if (oldAllMaps[newColumn.id]) {
|
|
6874
6853
|
isSelfToChildStatus = true;
|
|
6875
6854
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6876
|
-
if (
|
|
6877
|
-
|
|
6855
|
+
if (VxeUI14.modal) {
|
|
6856
|
+
VxeUI14.modal.message({
|
|
6878
6857
|
status: "error",
|
|
6879
6858
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6880
6859
|
});
|
|
@@ -6894,8 +6873,8 @@ var panel_default = (
|
|
|
6894
6873
|
if (oldAllMaps[newColumn.id]) {
|
|
6895
6874
|
isSelfToChildStatus = true;
|
|
6896
6875
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6897
|
-
if (
|
|
6898
|
-
|
|
6876
|
+
if (VxeUI14.modal) {
|
|
6877
|
+
VxeUI14.modal.message({
|
|
6899
6878
|
status: "error",
|
|
6900
6879
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6901
6880
|
});
|
|
@@ -8266,10 +8245,10 @@ var panel_default = (
|
|
|
8266
8245
|
|
|
8267
8246
|
// packages_temp/table/module/filter/panel.ts
|
|
8268
8247
|
import { h as h8, ref as ref7, computed, inject as inject7, Teleport } from "vue";
|
|
8269
|
-
import { VxeUI as
|
|
8248
|
+
import { VxeUI as VxeUI15 } from "@vxe-ui/core";
|
|
8270
8249
|
import XEUtils12 from "xe-utils";
|
|
8271
8250
|
var { warnLog: warnLog3 } = createComponentLog("table");
|
|
8272
|
-
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } =
|
|
8251
|
+
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = VxeUI15;
|
|
8273
8252
|
var panel_default2 = (
|
|
8274
8253
|
/* define-vxe-component start */
|
|
8275
8254
|
defineVxeComponent({
|
|
@@ -8282,7 +8261,7 @@ var panel_default2 = (
|
|
|
8282
8261
|
},
|
|
8283
8262
|
setup(props, context) {
|
|
8284
8263
|
const xID = XEUtils12.uniqueId();
|
|
8285
|
-
const VxeUIScrollbarComponent =
|
|
8264
|
+
const VxeUIScrollbarComponent = VxeUI15.getComponent("VxeScrollbar");
|
|
8286
8265
|
const $xeTable = inject7("$xeTable", {});
|
|
8287
8266
|
const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
|
|
8288
8267
|
const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
|
|
@@ -8581,10 +8560,10 @@ var panel_default2 = (
|
|
|
8581
8560
|
|
|
8582
8561
|
// packages_temp/table/module/export/import-panel.ts
|
|
8583
8562
|
import { h as h9, ref as ref8, computed as computed2, inject as inject8, reactive as reactive4, nextTick as nextTick5 } from "vue";
|
|
8584
|
-
import { VxeUI as
|
|
8563
|
+
import { VxeUI as VxeUI16 } from "@vxe-ui/core";
|
|
8585
8564
|
import XEUtils13 from "xe-utils";
|
|
8586
8565
|
var { errLog: errLog4 } = createComponentLog("table");
|
|
8587
|
-
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } =
|
|
8566
|
+
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = VxeUI16;
|
|
8588
8567
|
var import_panel_default = (
|
|
8589
8568
|
/* define-vxe-component start */
|
|
8590
8569
|
defineVxeComponent({
|
|
@@ -8600,9 +8579,9 @@ var import_panel_default = (
|
|
|
8600
8579
|
}
|
|
8601
8580
|
},
|
|
8602
8581
|
setup(props) {
|
|
8603
|
-
const VxeUIModalComponent =
|
|
8604
|
-
const VxeUIButtonComponent =
|
|
8605
|
-
const VxeUISelectComponent =
|
|
8582
|
+
const VxeUIModalComponent = VxeUI16.getComponent("VxeModal");
|
|
8583
|
+
const VxeUIButtonComponent = VxeUI16.getComponent("VxeButton");
|
|
8584
|
+
const VxeUISelectComponent = VxeUI16.getComponent("VxeSelect");
|
|
8606
8585
|
const $xeTable = inject8("$xeTable", {});
|
|
8607
8586
|
const { computeImportOpts } = $xeTable.getComputeMaps();
|
|
8608
8587
|
const reactData = reactive4({
|
|
@@ -8857,10 +8836,10 @@ var import_panel_default = (
|
|
|
8857
8836
|
|
|
8858
8837
|
// packages_temp/table/module/export/export-panel.ts
|
|
8859
8838
|
import { h as h10, ref as ref9, computed as computed3, reactive as reactive5, inject as inject9, nextTick as nextTick6 } from "vue";
|
|
8860
|
-
import { VxeUI as
|
|
8839
|
+
import { VxeUI as VxeUI17 } from "@vxe-ui/core";
|
|
8861
8840
|
import XEUtils14 from "xe-utils";
|
|
8862
8841
|
var { errLog: errLog5 } = createComponentLog("table");
|
|
8863
|
-
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } =
|
|
8842
|
+
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = VxeUI17;
|
|
8864
8843
|
var export_panel_default = (
|
|
8865
8844
|
/* define-vxe-component start */
|
|
8866
8845
|
defineVxeComponent({
|
|
@@ -8876,11 +8855,11 @@ var export_panel_default = (
|
|
|
8876
8855
|
}
|
|
8877
8856
|
},
|
|
8878
8857
|
setup(props) {
|
|
8879
|
-
const VxeUIModalComponent =
|
|
8880
|
-
const VxeUIButtonComponent =
|
|
8881
|
-
const VxeUISelectComponent =
|
|
8882
|
-
const VxeUIInputComponent =
|
|
8883
|
-
const VxeUICheckboxComponent =
|
|
8858
|
+
const VxeUIModalComponent = VxeUI17.getComponent("VxeModal");
|
|
8859
|
+
const VxeUIButtonComponent = VxeUI17.getComponent("VxeButton");
|
|
8860
|
+
const VxeUISelectComponent = VxeUI17.getComponent("VxeSelect");
|
|
8861
|
+
const VxeUIInputComponent = VxeUI17.getComponent("VxeInput");
|
|
8862
|
+
const VxeUICheckboxComponent = VxeUI17.getComponent("VxeCheckbox");
|
|
8884
8863
|
const $xeTable = inject9("$xeTable", {});
|
|
8885
8864
|
const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
|
|
8886
8865
|
const reactData = reactive5({
|
|
@@ -9468,8 +9447,8 @@ var export_panel_default = (
|
|
|
9468
9447
|
// packages_temp/table/module/menu/panel.ts
|
|
9469
9448
|
import { h as h11, Teleport as Teleport2, inject as inject10, ref as ref10 } from "vue";
|
|
9470
9449
|
import XEUtils15 from "xe-utils";
|
|
9471
|
-
import { VxeUI as
|
|
9472
|
-
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } =
|
|
9450
|
+
import { VxeUI as VxeUI18 } from "@vxe-ui/core";
|
|
9451
|
+
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = VxeUI18;
|
|
9473
9452
|
var panel_default3 = (
|
|
9474
9453
|
/* define-vxe-component start */
|
|
9475
9454
|
defineVxeComponent({
|
|
@@ -9707,8 +9686,8 @@ var panel_default3 = (
|
|
|
9707
9686
|
// packages_temp/table/module/filter/hook.ts
|
|
9708
9687
|
import { nextTick as nextTick7 } from "vue";
|
|
9709
9688
|
import XEUtils16 from "xe-utils";
|
|
9710
|
-
import { VxeUI as
|
|
9711
|
-
var { renderer: renderer7, hooks } =
|
|
9689
|
+
import { VxeUI as VxeUI19 } from "@vxe-ui/core";
|
|
9690
|
+
var { renderer: renderer7, hooks } = VxeUI19;
|
|
9712
9691
|
var tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
|
|
9713
9692
|
var sourceType4 = "table";
|
|
9714
9693
|
hooks.add("tableFilterModule", {
|
|
@@ -10187,8 +10166,8 @@ hooks.add("tableFilterModule", {
|
|
|
10187
10166
|
// packages_temp/table/module/menu/hook.ts
|
|
10188
10167
|
import { nextTick as nextTick8 } from "vue";
|
|
10189
10168
|
import XEUtils17 from "xe-utils";
|
|
10190
|
-
import { VxeUI as
|
|
10191
|
-
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } =
|
|
10169
|
+
import { VxeUI as VxeUI20 } from "@vxe-ui/core";
|
|
10170
|
+
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI20;
|
|
10192
10171
|
var tableMenuMethodKeys = ["closeMenu"];
|
|
10193
10172
|
hooks2.add("tableMenuModule", {
|
|
10194
10173
|
setupTable($xeTable) {
|
|
@@ -10491,9 +10470,9 @@ hooks2.add("tableMenuModule", {
|
|
|
10491
10470
|
// packages_temp/table/module/edit/hook.ts
|
|
10492
10471
|
import { reactive as reactive6, nextTick as nextTick9 } from "vue";
|
|
10493
10472
|
import XEUtils18 from "xe-utils";
|
|
10494
|
-
import { VxeUI as
|
|
10473
|
+
import { VxeUI as VxeUI21 } from "@vxe-ui/core";
|
|
10495
10474
|
var { warnLog: warnLog4, errLog: errLog6 } = createComponentLog("table");
|
|
10496
|
-
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } =
|
|
10475
|
+
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = VxeUI21;
|
|
10497
10476
|
var tableEditMethodKeys = [
|
|
10498
10477
|
"insert",
|
|
10499
10478
|
"insertAt",
|
|
@@ -10591,7 +10570,25 @@ hooks3.add("tableEditModule", {
|
|
|
10591
10570
|
}
|
|
10592
10571
|
pChilds[funcName](item);
|
|
10593
10572
|
pMapChilds[funcName](item);
|
|
10594
|
-
const rest = {
|
|
10573
|
+
const rest = {
|
|
10574
|
+
row: item,
|
|
10575
|
+
rowid,
|
|
10576
|
+
_seq: -1,
|
|
10577
|
+
seq: -1,
|
|
10578
|
+
index: -1,
|
|
10579
|
+
_index: -1,
|
|
10580
|
+
$index: -1,
|
|
10581
|
+
treeIndex: -1,
|
|
10582
|
+
_tIndex: -1,
|
|
10583
|
+
items: pChilds,
|
|
10584
|
+
parent: parentRow,
|
|
10585
|
+
level: parentLevel + 1,
|
|
10586
|
+
linesMask: 0,
|
|
10587
|
+
height: 0,
|
|
10588
|
+
resizeHeight: 0,
|
|
10589
|
+
oTop: 0,
|
|
10590
|
+
expandHeight: 0
|
|
10591
|
+
};
|
|
10595
10592
|
fullDataRowIdData[rowid] = rest;
|
|
10596
10593
|
fullAllDataRowIdData[rowid] = rest;
|
|
10597
10594
|
} else {
|
|
@@ -10600,7 +10597,25 @@ hooks3.add("tableEditModule", {
|
|
|
10600
10597
|
}
|
|
10601
10598
|
afterFullData[funcName](item);
|
|
10602
10599
|
tableFullTreeData[funcName](item);
|
|
10603
|
-
const rest = {
|
|
10600
|
+
const rest = {
|
|
10601
|
+
row: item,
|
|
10602
|
+
rowid,
|
|
10603
|
+
_seq: -1,
|
|
10604
|
+
seq: -1,
|
|
10605
|
+
index: -1,
|
|
10606
|
+
_index: -1,
|
|
10607
|
+
$index: -1,
|
|
10608
|
+
treeIndex: -1,
|
|
10609
|
+
_tIndex: -1,
|
|
10610
|
+
items: tableFullTreeData,
|
|
10611
|
+
parent: null,
|
|
10612
|
+
level: 0,
|
|
10613
|
+
linesMask: 0,
|
|
10614
|
+
height: 0,
|
|
10615
|
+
resizeHeight: 0,
|
|
10616
|
+
oTop: 0,
|
|
10617
|
+
expandHeight: 0
|
|
10618
|
+
};
|
|
10604
10619
|
fullDataRowIdData[rowid] = rest;
|
|
10605
10620
|
fullAllDataRowIdData[rowid] = rest;
|
|
10606
10621
|
}
|
|
@@ -10643,7 +10658,25 @@ hooks3.add("tableEditModule", {
|
|
|
10643
10658
|
} else {
|
|
10644
10659
|
newRecords.forEach((item) => {
|
|
10645
10660
|
const rowid = getRowid($xeTable, item);
|
|
10646
|
-
const rest = {
|
|
10661
|
+
const rest = {
|
|
10662
|
+
row: item,
|
|
10663
|
+
rowid,
|
|
10664
|
+
_seq: -1,
|
|
10665
|
+
seq: -1,
|
|
10666
|
+
index: -1,
|
|
10667
|
+
_index: -1,
|
|
10668
|
+
$index: -1,
|
|
10669
|
+
treeIndex: -1,
|
|
10670
|
+
_tIndex: -1,
|
|
10671
|
+
items: afterFullData,
|
|
10672
|
+
parent: null,
|
|
10673
|
+
level: 0,
|
|
10674
|
+
linesMask: 0,
|
|
10675
|
+
height: 0,
|
|
10676
|
+
resizeHeight: 0,
|
|
10677
|
+
oTop: 0,
|
|
10678
|
+
expandHeight: 0
|
|
10679
|
+
};
|
|
10647
10680
|
fullDataRowIdData[rowid] = rest;
|
|
10648
10681
|
fullAllDataRowIdData[rowid] = rest;
|
|
10649
10682
|
afterFullData.unshift(item);
|
|
@@ -10668,7 +10701,25 @@ hooks3.add("tableEditModule", {
|
|
|
10668
10701
|
} else {
|
|
10669
10702
|
newRecords.forEach((item) => {
|
|
10670
10703
|
const rowid = getRowid($xeTable, item);
|
|
10671
|
-
const rest = {
|
|
10704
|
+
const rest = {
|
|
10705
|
+
row: item,
|
|
10706
|
+
rowid,
|
|
10707
|
+
_seq: -1,
|
|
10708
|
+
seq: -1,
|
|
10709
|
+
index: -1,
|
|
10710
|
+
_index: -1,
|
|
10711
|
+
treeIndex: -1,
|
|
10712
|
+
_tIndex: -1,
|
|
10713
|
+
$index: -1,
|
|
10714
|
+
items: afterFullData,
|
|
10715
|
+
parent: null,
|
|
10716
|
+
level: 0,
|
|
10717
|
+
linesMask: 0,
|
|
10718
|
+
height: 0,
|
|
10719
|
+
resizeHeight: 0,
|
|
10720
|
+
oTop: 0,
|
|
10721
|
+
expandHeight: 0
|
|
10722
|
+
};
|
|
10672
10723
|
fullDataRowIdData[rowid] = rest;
|
|
10673
10724
|
fullAllDataRowIdData[rowid] = rest;
|
|
10674
10725
|
afterFullData.push(item);
|
|
@@ -10707,7 +10758,25 @@ hooks3.add("tableEditModule", {
|
|
|
10707
10758
|
treeRecords,
|
|
10708
10759
|
(item) => {
|
|
10709
10760
|
const rowid = getRowid($xeTable, item);
|
|
10710
|
-
const rest = {
|
|
10761
|
+
const rest = {
|
|
10762
|
+
row: item,
|
|
10763
|
+
rowid,
|
|
10764
|
+
_seq: -1,
|
|
10765
|
+
seq: -1,
|
|
10766
|
+
index: -1,
|
|
10767
|
+
_index: -1,
|
|
10768
|
+
$index: -1,
|
|
10769
|
+
treeIndex: -1,
|
|
10770
|
+
_tIndex: -1,
|
|
10771
|
+
items: parentMapChilds,
|
|
10772
|
+
parent: parentRow,
|
|
10773
|
+
level: parentLevel + 1,
|
|
10774
|
+
linesMask: 0,
|
|
10775
|
+
height: 0,
|
|
10776
|
+
resizeHeight: 0,
|
|
10777
|
+
oTop: 0,
|
|
10778
|
+
expandHeight: 0
|
|
10779
|
+
};
|
|
10711
10780
|
if (item[childrenField]) {
|
|
10712
10781
|
item[mapChildrenField] = item[childrenField];
|
|
10713
10782
|
}
|
|
@@ -11607,7 +11676,7 @@ hooks3.add("tableEditModule", {
|
|
|
11607
11676
|
// packages_temp/table/module/export/hook.ts
|
|
11608
11677
|
import { nextTick as nextTick10 } from "vue";
|
|
11609
11678
|
import XEUtils19 from "xe-utils";
|
|
11610
|
-
import { VxeUI as
|
|
11679
|
+
import { VxeUI as VxeUI22 } from "@vxe-ui/core";
|
|
11611
11680
|
|
|
11612
11681
|
// packages_temp/table/module/export/util.ts
|
|
11613
11682
|
var defaultHtmlStyle = 'body{padding:0;color:rgba(0,0,0,0.7);font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table.is--default-width,.vxe-table.is--auto-width{width:100%}.vxe-table.is--scale-width{table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{white-space:pre-line;word-break:break-all;border-color:#D0D0D0;border-style:solid;border-width:0}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:0.5em 0.4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:0.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
|
|
@@ -11632,7 +11701,7 @@ function createHtmlPage(opts, content) {
|
|
|
11632
11701
|
|
|
11633
11702
|
// packages_temp/table/module/export/hook.ts
|
|
11634
11703
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
11635
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
11704
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI22;
|
|
11636
11705
|
var htmlCellElem;
|
|
11637
11706
|
var csvBOM = "\uFEFF";
|
|
11638
11707
|
var enterSymbol = "\r\n";
|
|
@@ -12596,11 +12665,11 @@ hooks4.add("tableExportModule", {
|
|
|
12596
12665
|
const blob = getExportBlobByContent(content, opts);
|
|
12597
12666
|
return Promise.resolve({ type, content, blob });
|
|
12598
12667
|
}
|
|
12599
|
-
if (
|
|
12600
|
-
|
|
12668
|
+
if (VxeUI22.saveFile) {
|
|
12669
|
+
VxeUI22.saveFile({ filename, type, content }).then(() => {
|
|
12601
12670
|
if (opts.message !== false) {
|
|
12602
|
-
if (
|
|
12603
|
-
|
|
12671
|
+
if (VxeUI22.modal) {
|
|
12672
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
12604
12673
|
}
|
|
12605
12674
|
}
|
|
12606
12675
|
});
|
|
@@ -12687,8 +12756,8 @@ hooks4.add("tableExportModule", {
|
|
|
12687
12756
|
loadRest = $xeTable.reloadData(data);
|
|
12688
12757
|
}
|
|
12689
12758
|
if (opts.message !== false) {
|
|
12690
|
-
if (
|
|
12691
|
-
|
|
12759
|
+
if (VxeUI22.modal) {
|
|
12760
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
12692
12761
|
}
|
|
12693
12762
|
}
|
|
12694
12763
|
return loadRest.then(() => {
|
|
@@ -12699,8 +12768,8 @@ hooks4.add("tableExportModule", {
|
|
|
12699
12768
|
});
|
|
12700
12769
|
} else {
|
|
12701
12770
|
if (opts.message !== false) {
|
|
12702
|
-
if (
|
|
12703
|
-
|
|
12771
|
+
if (VxeUI22.modal) {
|
|
12772
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
12704
12773
|
}
|
|
12705
12774
|
}
|
|
12706
12775
|
if (_importReject) {
|
|
@@ -12714,8 +12783,8 @@ hooks4.add("tableExportModule", {
|
|
|
12714
12783
|
const importOpts = computeImportOpts.value;
|
|
12715
12784
|
if (!importMethod && !XEUtils19.includes(XEUtils19.keys(importOpts._typeMaps), type)) {
|
|
12716
12785
|
if (opts.message !== false) {
|
|
12717
|
-
if (
|
|
12718
|
-
|
|
12786
|
+
if (VxeUI22.modal) {
|
|
12787
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
|
|
12719
12788
|
}
|
|
12720
12789
|
}
|
|
12721
12790
|
const params = { status: false, msg: "type error" };
|
|
@@ -12959,8 +13028,8 @@ hooks4.add("tableExportModule", {
|
|
|
12959
13028
|
return nextTick10();
|
|
12960
13029
|
};
|
|
12961
13030
|
const handleCloseExport = () => {
|
|
12962
|
-
if (
|
|
12963
|
-
return
|
|
13031
|
+
if (VxeUI22.modal) {
|
|
13032
|
+
return VxeUI22.modal.close("VXE_EXPORT_MODAL");
|
|
12964
13033
|
}
|
|
12965
13034
|
return Promise.resolve();
|
|
12966
13035
|
};
|
|
@@ -13321,7 +13390,7 @@ hooks4.add("tableExportModule", {
|
|
|
13321
13390
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
13322
13391
|
}
|
|
13323
13392
|
}
|
|
13324
|
-
return
|
|
13393
|
+
return VxeUI22.readFile(opts).catch((e) => {
|
|
13325
13394
|
if (afterImportMethod) {
|
|
13326
13395
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
13327
13396
|
}
|
|
@@ -13332,10 +13401,10 @@ hooks4.add("tableExportModule", {
|
|
|
13332
13401
|
});
|
|
13333
13402
|
},
|
|
13334
13403
|
saveFile(options) {
|
|
13335
|
-
return
|
|
13404
|
+
return VxeUI22.saveFile(options);
|
|
13336
13405
|
},
|
|
13337
13406
|
readFile(options) {
|
|
13338
|
-
return
|
|
13407
|
+
return VxeUI22.readFile(options);
|
|
13339
13408
|
},
|
|
13340
13409
|
print(options) {
|
|
13341
13410
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -13376,10 +13445,10 @@ hooks4.add("tableExportModule", {
|
|
|
13376
13445
|
const printMethod = opts.printMethod;
|
|
13377
13446
|
const tableHtml = opts.html || opts.content;
|
|
13378
13447
|
return new Promise((resolve, reject) => {
|
|
13379
|
-
if (
|
|
13448
|
+
if (VxeUI22.print) {
|
|
13380
13449
|
if (tableHtml) {
|
|
13381
13450
|
resolve(
|
|
13382
|
-
|
|
13451
|
+
VxeUI22.print({
|
|
13383
13452
|
title: printTitle,
|
|
13384
13453
|
html: tableHtml,
|
|
13385
13454
|
customStyle: opts.style,
|
|
@@ -13418,7 +13487,7 @@ hooks4.add("tableExportModule", {
|
|
|
13418
13487
|
} else {
|
|
13419
13488
|
resolve(
|
|
13420
13489
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
13421
|
-
return
|
|
13490
|
+
return VxeUI22.print({
|
|
13422
13491
|
title: printTitle,
|
|
13423
13492
|
html: content,
|
|
13424
13493
|
customStyle: opts.style,
|
|
@@ -13486,8 +13555,8 @@ hooks4.add("tableExportModule", {
|
|
|
13486
13555
|
});
|
|
13487
13556
|
},
|
|
13488
13557
|
closeImport() {
|
|
13489
|
-
if (
|
|
13490
|
-
return
|
|
13558
|
+
if (VxeUI22.modal) {
|
|
13559
|
+
return VxeUI22.modal.close("VXE_IMPORT_MODAL");
|
|
13491
13560
|
}
|
|
13492
13561
|
return Promise.resolve();
|
|
13493
13562
|
},
|
|
@@ -13510,8 +13579,8 @@ hooks4.add("tableExportModule", {
|
|
|
13510
13579
|
const isTree = !!treeConfig;
|
|
13511
13580
|
if (isTree) {
|
|
13512
13581
|
if (defOpts.message) {
|
|
13513
|
-
if (
|
|
13514
|
-
|
|
13582
|
+
if (VxeUI22.modal) {
|
|
13583
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
13515
13584
|
}
|
|
13516
13585
|
}
|
|
13517
13586
|
return;
|
|
@@ -13597,8 +13666,8 @@ hooks4.add("tableExportModule", {
|
|
|
13597
13666
|
|
|
13598
13667
|
// packages_temp/table/module/keyboard/hook.ts
|
|
13599
13668
|
import XEUtils20 from "xe-utils";
|
|
13600
|
-
import { VxeUI as
|
|
13601
|
-
var { hooks: hooks5 } =
|
|
13669
|
+
import { VxeUI as VxeUI23 } from "@vxe-ui/core";
|
|
13670
|
+
var { hooks: hooks5 } = VxeUI23;
|
|
13602
13671
|
hooks5.add("tableKeyboardModule", {
|
|
13603
13672
|
setupTable($xeTable) {
|
|
13604
13673
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -14065,9 +14134,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
14065
14134
|
// packages_temp/table/module/validator/hook.ts
|
|
14066
14135
|
import { nextTick as nextTick11 } from "vue";
|
|
14067
14136
|
import XEUtils21 from "xe-utils";
|
|
14068
|
-
import { VxeUI as
|
|
14137
|
+
import { VxeUI as VxeUI24 } from "@vxe-ui/core";
|
|
14069
14138
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
14070
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
14139
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI24;
|
|
14071
14140
|
var Rule = class {
|
|
14072
14141
|
constructor(rule) {
|
|
14073
14142
|
Object.assign(this, {
|
|
@@ -14619,11 +14688,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
14619
14688
|
|
|
14620
14689
|
// packages_temp/table/module/custom/hook.ts
|
|
14621
14690
|
import { nextTick as nextTick12 } from "vue";
|
|
14622
|
-
import { VxeUI as
|
|
14691
|
+
import { VxeUI as VxeUI25 } from "@vxe-ui/core";
|
|
14623
14692
|
import XEUtils22 from "xe-utils";
|
|
14624
14693
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
14625
14694
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
14626
|
-
|
|
14695
|
+
VxeUI25.hooks.add("tableCustomModule", {
|
|
14627
14696
|
setupTable($xeTable) {
|
|
14628
14697
|
const { reactData, internalData } = $xeTable;
|
|
14629
14698
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -15096,9 +15165,9 @@ VxeUI24.hooks.add("tableCustomModule", {
|
|
|
15096
15165
|
// packages_temp/table/render/index.ts
|
|
15097
15166
|
import { h as h12, resolveComponent } from "vue";
|
|
15098
15167
|
import XEUtils23 from "xe-utils";
|
|
15099
|
-
import { VxeUI as
|
|
15168
|
+
import { VxeUI as VxeUI26 } from "@vxe-ui/core";
|
|
15100
15169
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
15101
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
15170
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI26;
|
|
15102
15171
|
var componentDefaultModelProp = "modelValue";
|
|
15103
15172
|
var defaultCompProps = {};
|
|
15104
15173
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -16734,7 +16803,7 @@ renderer10.mixin({
|
|
|
16734
16803
|
|
|
16735
16804
|
// packages_temp/table/src/table.ts
|
|
16736
16805
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
16737
|
-
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } =
|
|
16806
|
+
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } = VxeUI27;
|
|
16738
16807
|
var supportMaxRow = 5e6;
|
|
16739
16808
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
16740
16809
|
var maxYHeight = 5e6;
|
|
@@ -16752,8 +16821,8 @@ var table_default = (
|
|
|
16752
16821
|
const xID = XEUtils24.uniqueId();
|
|
16753
16822
|
const browseObj = XEUtils24.browse();
|
|
16754
16823
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
16755
|
-
const VxeUILoadingComponent =
|
|
16756
|
-
const VxeUITooltipComponent =
|
|
16824
|
+
const VxeUILoadingComponent = VxeUI27.getComponent("VxeLoading");
|
|
16825
|
+
const VxeUITooltipComponent = VxeUI27.getComponent("VxeTooltip");
|
|
16757
16826
|
const $xeModal = inject11("$xeModal", null);
|
|
16758
16827
|
const $xeTabs = inject11("$xeTabs", null);
|
|
16759
16828
|
const $xeParentTable = inject11("$xeTable", null);
|
|
@@ -17253,6 +17322,14 @@ var table_default = (
|
|
|
17253
17322
|
const computeTreeOpts = computed4(() => {
|
|
17254
17323
|
return Object.assign({}, getConfig8().table.treeConfig, props.treeConfig);
|
|
17255
17324
|
});
|
|
17325
|
+
const computeShowTreeLine = computed4(() => {
|
|
17326
|
+
const treeOpts = computeTreeOpts.value;
|
|
17327
|
+
return getDefaultConfig(treeOpts.showLine, treeOpts.line);
|
|
17328
|
+
});
|
|
17329
|
+
const computeShowTreeRootLine = computed4(() => {
|
|
17330
|
+
const treeOpts = computeTreeOpts.value;
|
|
17331
|
+
return treeOpts.showRootLine;
|
|
17332
|
+
});
|
|
17256
17333
|
const computeEmptyOpts = computed4(() => {
|
|
17257
17334
|
return Object.assign({}, getConfig8().table.emptyRender, props.emptyRender);
|
|
17258
17335
|
});
|
|
@@ -17286,8 +17363,11 @@ var table_default = (
|
|
|
17286
17363
|
return "";
|
|
17287
17364
|
});
|
|
17288
17365
|
const computeTableStyle = computed4(() => {
|
|
17366
|
+
const { treeConfig } = props;
|
|
17289
17367
|
const barWidth = computeScrollYWidth.value;
|
|
17290
17368
|
const barHeight = computeScrollXHeight.value;
|
|
17369
|
+
const treeOpts = computeTreeOpts.value;
|
|
17370
|
+
const { indent, lineWidth, lineColor } = treeOpts;
|
|
17291
17371
|
const stys = {};
|
|
17292
17372
|
if (barWidth || barHeight) {
|
|
17293
17373
|
stys["--vxe-ui-table-view-scrollbar-width"] = toCssUnit(barWidth || barHeight);
|
|
@@ -17295,6 +17375,15 @@ var table_default = (
|
|
|
17295
17375
|
stys["--vxe-ui-table-view-scrollbar-height"] = toCssUnit(barHeight || barWidth);
|
|
17296
17376
|
stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
|
|
17297
17377
|
}
|
|
17378
|
+
if (treeConfig) {
|
|
17379
|
+
stys["--vxe-ui-table-tree-node-indent"] = toCssUnit(indent);
|
|
17380
|
+
}
|
|
17381
|
+
if (lineWidth) {
|
|
17382
|
+
stys["--vxe-ui-table-tree-node-line-width"] = toCssUnit(lineWidth);
|
|
17383
|
+
}
|
|
17384
|
+
if (lineColor) {
|
|
17385
|
+
stys["--vxe-ui-table-tree-node-line-color"] = toCssUnit(lineColor);
|
|
17386
|
+
}
|
|
17298
17387
|
return stys;
|
|
17299
17388
|
});
|
|
17300
17389
|
const computeTableRowExpandedList = computed4(() => {
|
|
@@ -17539,6 +17628,7 @@ var table_default = (
|
|
|
17539
17628
|
computePrintOpts,
|
|
17540
17629
|
computeExpandOpts,
|
|
17541
17630
|
computeTreeOpts,
|
|
17631
|
+
computeShowTreeLine,
|
|
17542
17632
|
computeEmptyOpts,
|
|
17543
17633
|
computeLoadingOpts,
|
|
17544
17634
|
computeCellOffsetWidth,
|
|
@@ -18722,9 +18812,9 @@ var table_default = (
|
|
|
18722
18812
|
if (!el || !el.clientWidth) {
|
|
18723
18813
|
return;
|
|
18724
18814
|
}
|
|
18725
|
-
const treeOpts = computeTreeOpts.value;
|
|
18726
18815
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
18727
|
-
|
|
18816
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
18817
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && showTreeLine)) {
|
|
18728
18818
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18729
18819
|
const rowWrapperMaps = {};
|
|
18730
18820
|
el.querySelectorAll(".vxe-cell--wrapper[rowid]").forEach((wrapperElem) => {
|
|
@@ -18785,36 +18875,174 @@ var table_default = (
|
|
|
18785
18875
|
return cellValue;
|
|
18786
18876
|
};
|
|
18787
18877
|
};
|
|
18878
|
+
function getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) {
|
|
18879
|
+
const lines = [];
|
|
18880
|
+
for (let col = 1; col <= depth; col++) {
|
|
18881
|
+
const leftVal = `var(--vxe-ui-table-tree-node-btn-width) + var(--vxe-ui-table-tree-node-indent) * ${col - 1}`;
|
|
18882
|
+
const through = (linesMask & 1 << col - 1) !== 0;
|
|
18883
|
+
if (col === 1 && !showRootLine) {
|
|
18884
|
+
continue;
|
|
18885
|
+
}
|
|
18886
|
+
if (col < depth) {
|
|
18887
|
+
if (through) {
|
|
18888
|
+
let top = "0";
|
|
18889
|
+
let height = "100%";
|
|
18890
|
+
if (isFirstRow) {
|
|
18891
|
+
top = "50%";
|
|
18892
|
+
height = "50%";
|
|
18893
|
+
} else if (isLastRow) {
|
|
18894
|
+
top = "0";
|
|
18895
|
+
height = "50%";
|
|
18896
|
+
}
|
|
18897
|
+
lines.push({
|
|
18898
|
+
type: "v",
|
|
18899
|
+
style: {
|
|
18900
|
+
left: `calc(${leftVal})`,
|
|
18901
|
+
top,
|
|
18902
|
+
height
|
|
18903
|
+
}
|
|
18904
|
+
});
|
|
18905
|
+
}
|
|
18906
|
+
} else {
|
|
18907
|
+
let vTop = "0";
|
|
18908
|
+
let vHeight = through ? "100%" : "50%";
|
|
18909
|
+
if (isFirstRow && isLastRow) {
|
|
18910
|
+
vTop = "50%";
|
|
18911
|
+
vHeight = "0px";
|
|
18912
|
+
} else if (isFirstRow) {
|
|
18913
|
+
vTop = "50%";
|
|
18914
|
+
vHeight = "50%";
|
|
18915
|
+
} else if (isLastRow) {
|
|
18916
|
+
vTop = "0";
|
|
18917
|
+
vHeight = "50%";
|
|
18918
|
+
}
|
|
18919
|
+
if (isExpandable && vHeight !== "0px") {
|
|
18920
|
+
let cutType = "v cut";
|
|
18921
|
+
if (vTop === "0" && vHeight === "50%") {
|
|
18922
|
+
cutType = "v cut-top";
|
|
18923
|
+
} else if (vTop === "50%" && vHeight === "50%") {
|
|
18924
|
+
cutType = "v cut-bottom";
|
|
18925
|
+
} else if (vHeight === "100%") {
|
|
18926
|
+
cutType = "v cut-full";
|
|
18927
|
+
}
|
|
18928
|
+
lines.push({
|
|
18929
|
+
type: cutType,
|
|
18930
|
+
style: {
|
|
18931
|
+
left: `calc(${leftVal})`,
|
|
18932
|
+
top: vTop,
|
|
18933
|
+
height: vHeight
|
|
18934
|
+
}
|
|
18935
|
+
});
|
|
18936
|
+
} else {
|
|
18937
|
+
if (vHeight !== "0px") {
|
|
18938
|
+
lines.push({
|
|
18939
|
+
type: "v",
|
|
18940
|
+
style: {
|
|
18941
|
+
left: `calc(${leftVal})`,
|
|
18942
|
+
top: vTop,
|
|
18943
|
+
height: vHeight
|
|
18944
|
+
}
|
|
18945
|
+
});
|
|
18946
|
+
}
|
|
18947
|
+
}
|
|
18948
|
+
if (isExpandable) {
|
|
18949
|
+
lines.push({
|
|
18950
|
+
type: "h",
|
|
18951
|
+
style: {
|
|
18952
|
+
left: `calc(${leftVal} + var(--vxe-ui-table-tree-node-btn-width) / 2 + 1px)`,
|
|
18953
|
+
top: "50%",
|
|
18954
|
+
width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width) - 0.25em)"
|
|
18955
|
+
}
|
|
18956
|
+
});
|
|
18957
|
+
} else {
|
|
18958
|
+
lines.push({
|
|
18959
|
+
type: "h",
|
|
18960
|
+
style: {
|
|
18961
|
+
left: `calc(${leftVal})`,
|
|
18962
|
+
top: "50%",
|
|
18963
|
+
width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width))"
|
|
18964
|
+
}
|
|
18965
|
+
});
|
|
18966
|
+
}
|
|
18967
|
+
}
|
|
18968
|
+
}
|
|
18969
|
+
return lines;
|
|
18970
|
+
}
|
|
18788
18971
|
const updateAfterTreeIndex = () => {
|
|
18789
18972
|
const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData;
|
|
18790
18973
|
const treeOpts = computeTreeOpts.value;
|
|
18791
|
-
const { transform, mapChildrenField } = treeOpts;
|
|
18974
|
+
const { lazy, transform, showRootLine, mapChildrenField } = treeOpts;
|
|
18792
18975
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
18976
|
+
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
18977
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
18793
18978
|
const fullMaps = {};
|
|
18794
|
-
|
|
18979
|
+
const treeFullSize = afterTreeFullData.length;
|
|
18980
|
+
const rowNum = 0;
|
|
18795
18981
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18803
|
-
|
|
18804
|
-
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18982
|
+
function handleTreeDFS(row, index, items, parentRow, depth, isFirstRow, isLastRow, isLastChild, stackMask, seq) {
|
|
18983
|
+
const rowid = handleGetRowId(row);
|
|
18984
|
+
let rowRest = fullAllDataRowIdData[rowid];
|
|
18985
|
+
const rowChilds = row[transform ? mapChildrenField : childrenField];
|
|
18986
|
+
if (rowRest) {
|
|
18987
|
+
rowRest.seq = seq;
|
|
18988
|
+
rowRest._seq = rowNum;
|
|
18989
|
+
rowRest.items = items;
|
|
18990
|
+
rowRest.treeIndex = index;
|
|
18991
|
+
rowRest._index = rowNum;
|
|
18992
|
+
rowRest._tIndex = rowNum;
|
|
18993
|
+
} else {
|
|
18994
|
+
rowRest = {
|
|
18995
|
+
row,
|
|
18996
|
+
rowid,
|
|
18997
|
+
_seq: rowNum,
|
|
18998
|
+
seq,
|
|
18999
|
+
index,
|
|
19000
|
+
$index: -1,
|
|
19001
|
+
_index: rowNum,
|
|
19002
|
+
treeIndex: index,
|
|
19003
|
+
_tIndex: rowNum,
|
|
19004
|
+
items,
|
|
19005
|
+
parent: parentRow,
|
|
19006
|
+
level: 0,
|
|
19007
|
+
linesMask: 0,
|
|
19008
|
+
height: 0,
|
|
19009
|
+
resizeHeight: 0,
|
|
19010
|
+
oTop: 0,
|
|
19011
|
+
expandHeight: 0
|
|
19012
|
+
};
|
|
19013
|
+
fullAllDataRowIdData[rowid] = rowRest;
|
|
19014
|
+
fullDataRowIdData[rowid] = rowRest;
|
|
19015
|
+
}
|
|
19016
|
+
let linesMask = stackMask >> 1;
|
|
19017
|
+
if (!isLastChild) {
|
|
19018
|
+
linesMask |= 1 << depth - 1;
|
|
19019
|
+
}
|
|
19020
|
+
rowRest.seq = seq;
|
|
19021
|
+
rowRest._seq = rowNum;
|
|
19022
|
+
rowRest.level = depth - 1;
|
|
19023
|
+
rowRest.linesMask = linesMask;
|
|
19024
|
+
const hasChild = rowChilds && rowChilds.length;
|
|
19025
|
+
let hasLazyChilds = false;
|
|
19026
|
+
let isLazyLoaded = false;
|
|
19027
|
+
if (lazy) {
|
|
19028
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
19029
|
+
hasLazyChilds = row[hasChildField];
|
|
19030
|
+
isLazyLoaded = !!rest.treeLoaded;
|
|
19031
|
+
}
|
|
19032
|
+
const isExpandable = lazy ? isLazyLoaded ? hasChild : hasChild || hasLazyChilds : hasChild;
|
|
19033
|
+
rowRest.treeLines = showTreeLine && treeFullSize > 1 ? getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) : [];
|
|
19034
|
+
let nextStackMask = stackMask;
|
|
19035
|
+
if (!isLastChild) {
|
|
19036
|
+
nextStackMask |= 1 << depth;
|
|
19037
|
+
}
|
|
19038
|
+
fullMaps[rowid] = row;
|
|
19039
|
+
for (let i = 0; i < rowChilds.length; i++) {
|
|
19040
|
+
handleTreeDFS(rowChilds[i], i, rowChilds, row, depth + 1, false, false, i === rowChilds.length - 1, nextStackMask, `${seq}.${i + 1}`);
|
|
19041
|
+
}
|
|
19042
|
+
}
|
|
19043
|
+
for (let i = 0; i < treeFullSize; i++) {
|
|
19044
|
+
handleTreeDFS(afterTreeFullData[i], i, afterTreeFullData, null, 1, !i, i === treeFullSize - 1, i === treeFullSize - 1, 0, "" + i);
|
|
19045
|
+
}
|
|
18818
19046
|
if (transform) {
|
|
18819
19047
|
afterFullData.forEach((row, index) => {
|
|
18820
19048
|
const rowid = handleGetRowId(row);
|
|
@@ -18840,7 +19068,25 @@ var table_default = (
|
|
|
18840
19068
|
rowRest._seq = rowNum;
|
|
18841
19069
|
rowRest._index = index;
|
|
18842
19070
|
} else {
|
|
18843
|
-
const rest = {
|
|
19071
|
+
const rest = {
|
|
19072
|
+
row,
|
|
19073
|
+
rowid,
|
|
19074
|
+
_seq: rowNum,
|
|
19075
|
+
seq,
|
|
19076
|
+
index: -1,
|
|
19077
|
+
$index: -1,
|
|
19078
|
+
_index: index,
|
|
19079
|
+
treeIndex: -1,
|
|
19080
|
+
_tIndex: -1,
|
|
19081
|
+
items: [],
|
|
19082
|
+
parent: null,
|
|
19083
|
+
level: 0,
|
|
19084
|
+
linesMask: 0,
|
|
19085
|
+
height: 0,
|
|
19086
|
+
resizeHeight: 0,
|
|
19087
|
+
oTop: 0,
|
|
19088
|
+
expandHeight: 0
|
|
19089
|
+
};
|
|
18844
19090
|
fullAllDataRowIdData[rowid] = rest;
|
|
18845
19091
|
fullDataRowIdData[rowid] = rest;
|
|
18846
19092
|
}
|
|
@@ -21522,7 +21768,25 @@ var table_default = (
|
|
|
21522
21768
|
(childRow, index, items, path, parentItem, nodes) => {
|
|
21523
21769
|
const rowid = getRowid($xeTable, childRow);
|
|
21524
21770
|
const parentRow = parentItem || parentRest.row;
|
|
21525
|
-
const rest = {
|
|
21771
|
+
const rest = {
|
|
21772
|
+
row: childRow,
|
|
21773
|
+
rowid,
|
|
21774
|
+
_seq: -1,
|
|
21775
|
+
seq: -1,
|
|
21776
|
+
index,
|
|
21777
|
+
_index: -1,
|
|
21778
|
+
$index: -1,
|
|
21779
|
+
treeIndex: -1,
|
|
21780
|
+
_tIndex: -1,
|
|
21781
|
+
items,
|
|
21782
|
+
parent: parentRow,
|
|
21783
|
+
level: parentLevel + nodes.length,
|
|
21784
|
+
linesMask: 0,
|
|
21785
|
+
height: 0,
|
|
21786
|
+
resizeHeight: 0,
|
|
21787
|
+
oTop: 0,
|
|
21788
|
+
expandHeight: 0
|
|
21789
|
+
};
|
|
21526
21790
|
fullDataRowIdData[rowid] = rest;
|
|
21527
21791
|
fullAllDataRowIdData[rowid] = rest;
|
|
21528
21792
|
},
|
|
@@ -22539,8 +22803,8 @@ var table_default = (
|
|
|
22539
22803
|
const targetColumn = getRootColumn($xeTable, column);
|
|
22540
22804
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
22541
22805
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
22542
|
-
if (
|
|
22543
|
-
|
|
22806
|
+
if (VxeUI27.modal) {
|
|
22807
|
+
VxeUI27.modal.message({
|
|
22544
22808
|
status: "error",
|
|
22545
22809
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
22546
22810
|
});
|
|
@@ -23744,8 +24008,8 @@ var table_default = (
|
|
|
23744
24008
|
}
|
|
23745
24009
|
const confList = fieldOrColumns ? XEUtils24.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
23746
24010
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
23747
|
-
if (
|
|
23748
|
-
|
|
24011
|
+
if (VxeUI27.modal) {
|
|
24012
|
+
VxeUI27.modal.message({
|
|
23749
24013
|
status: "error",
|
|
23750
24014
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
23751
24015
|
});
|
|
@@ -25965,9 +26229,25 @@ var table_default = (
|
|
|
25965
26229
|
errLog10("vxe.error.repeatKey", [currKeyField, rowid]);
|
|
25966
26230
|
}
|
|
25967
26231
|
if (!rowRest) {
|
|
25968
|
-
rowRest = {
|
|
25969
|
-
|
|
25970
|
-
|
|
26232
|
+
rowRest = {
|
|
26233
|
+
row,
|
|
26234
|
+
rowid,
|
|
26235
|
+
_seq: -1,
|
|
26236
|
+
seq,
|
|
26237
|
+
index: -1,
|
|
26238
|
+
_index: -1,
|
|
26239
|
+
$index: -1,
|
|
26240
|
+
treeIndex: index,
|
|
26241
|
+
_tIndex: -1,
|
|
26242
|
+
items,
|
|
26243
|
+
parent: parentRow,
|
|
26244
|
+
level,
|
|
26245
|
+
linesMask: 0,
|
|
26246
|
+
height: 0,
|
|
26247
|
+
resizeHeight: 0,
|
|
26248
|
+
oTop: 0,
|
|
26249
|
+
expandHeight: 0
|
|
26250
|
+
};
|
|
25971
26251
|
}
|
|
25972
26252
|
if (isReset || isReLoaded) {
|
|
25973
26253
|
rowRest.treeLoaded = false;
|
|
@@ -27673,8 +27953,8 @@ var table_default = (
|
|
|
27673
27953
|
$xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
|
|
27674
27954
|
}
|
|
27675
27955
|
}
|
|
27676
|
-
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.
|
|
27677
|
-
$xeTable.
|
|
27956
|
+
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.handleHeadCellAreaMouseDnEvent) {
|
|
27957
|
+
$xeTable.handleHeadCellAreaMouseDnEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
|
|
27678
27958
|
}
|
|
27679
27959
|
$xeTable.focus();
|
|
27680
27960
|
if ($xeTable.closeMenu) {
|
|
@@ -27808,8 +28088,8 @@ var table_default = (
|
|
|
27808
28088
|
if (oldAllMaps[newRowid]) {
|
|
27809
28089
|
isSelfToChildStatus = true;
|
|
27810
28090
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27811
|
-
if (
|
|
27812
|
-
|
|
28091
|
+
if (VxeUI27.modal) {
|
|
28092
|
+
VxeUI27.modal.message({
|
|
27813
28093
|
status: "error",
|
|
27814
28094
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27815
28095
|
});
|
|
@@ -27832,8 +28112,8 @@ var table_default = (
|
|
|
27832
28112
|
if (oldAllMaps[newRowid]) {
|
|
27833
28113
|
isSelfToChildStatus = true;
|
|
27834
28114
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27835
|
-
if (
|
|
27836
|
-
|
|
28115
|
+
if (VxeUI27.modal) {
|
|
28116
|
+
VxeUI27.modal.message({
|
|
27837
28117
|
status: "error",
|
|
27838
28118
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27839
28119
|
});
|
|
@@ -28489,8 +28769,8 @@ var table_default = (
|
|
|
28489
28769
|
if (oldAllMaps[newColumn.id]) {
|
|
28490
28770
|
isSelfToChildStatus = true;
|
|
28491
28771
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28492
|
-
if (
|
|
28493
|
-
|
|
28772
|
+
if (VxeUI27.modal) {
|
|
28773
|
+
VxeUI27.modal.message({
|
|
28494
28774
|
status: "error",
|
|
28495
28775
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28496
28776
|
});
|
|
@@ -28513,8 +28793,8 @@ var table_default = (
|
|
|
28513
28793
|
if (oldAllMaps[newColumn.id]) {
|
|
28514
28794
|
isSelfToChildStatus = true;
|
|
28515
28795
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28516
|
-
if (
|
|
28517
|
-
|
|
28796
|
+
if (VxeUI27.modal) {
|
|
28797
|
+
VxeUI27.modal.message({
|
|
28518
28798
|
status: "error",
|
|
28519
28799
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28520
28800
|
});
|
|
@@ -30257,7 +30537,7 @@ var table_default = (
|
|
|
30257
30537
|
const validTipConfig = computeValidTipConfig.value;
|
|
30258
30538
|
const validOpts = computeValidOpts.value;
|
|
30259
30539
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
30260
|
-
const
|
|
30540
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
30261
30541
|
const rowOpts = computeRowOpts.value;
|
|
30262
30542
|
const columnOpts = computeColumnOpts.value;
|
|
30263
30543
|
const vSize = computeSize.value;
|
|
@@ -30315,7 +30595,7 @@ var table_default = (
|
|
|
30315
30595
|
"not--footer": !showFooter,
|
|
30316
30596
|
"is--group": isGroup,
|
|
30317
30597
|
"is-row-group": isRowGroupStatus,
|
|
30318
|
-
"is--tree-line": treeConfig &&
|
|
30598
|
+
"is--tree-line": treeConfig && showTreeLine,
|
|
30319
30599
|
"is--fixed-left": leftList.length,
|
|
30320
30600
|
"is--fixed-right": rightList.length,
|
|
30321
30601
|
"is--animat": !!props.animat,
|
|
@@ -30829,7 +31109,7 @@ var table_default = (
|
|
|
30829
31109
|
}
|
|
30830
31110
|
);
|
|
30831
31111
|
watch3(
|
|
30832
|
-
() =>
|
|
31112
|
+
() => VxeUI27.getLanguage(),
|
|
30833
31113
|
() => {
|
|
30834
31114
|
reLayoutFlag.value++;
|
|
30835
31115
|
}
|
|
@@ -30868,6 +31148,16 @@ var table_default = (
|
|
|
30868
31148
|
$xeTable.recalculate(true);
|
|
30869
31149
|
});
|
|
30870
31150
|
});
|
|
31151
|
+
const lineFlag = ref11(0);
|
|
31152
|
+
watch3(computeShowTreeLine, () => {
|
|
31153
|
+
lineFlag.value++;
|
|
31154
|
+
});
|
|
31155
|
+
watch3(computeShowTreeRootLine, () => {
|
|
31156
|
+
lineFlag.value++;
|
|
31157
|
+
});
|
|
31158
|
+
watch3(lineFlag, () => {
|
|
31159
|
+
updateAfterDataIndex();
|
|
31160
|
+
});
|
|
30871
31161
|
watch3(reScrollFlag, () => {
|
|
30872
31162
|
updateScrollbar().then(() => {
|
|
30873
31163
|
updateScrollbar();
|
|
@@ -31437,23 +31727,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
31437
31727
|
var tableHandle = {
|
|
31438
31728
|
useCellView
|
|
31439
31729
|
};
|
|
31440
|
-
if (
|
|
31441
|
-
|
|
31730
|
+
if (VxeUI28.dynamicApp) {
|
|
31731
|
+
VxeUI28.dynamicApp.component(table_default.name, table_default);
|
|
31442
31732
|
}
|
|
31443
|
-
|
|
31444
|
-
|
|
31733
|
+
VxeUI28.component(table_default);
|
|
31734
|
+
VxeUI28.tableHandle = tableHandle;
|
|
31445
31735
|
var Table = VxeTable;
|
|
31446
31736
|
var table_default2 = VxeTable;
|
|
31447
31737
|
|
|
31448
31738
|
// packages_temp/toolbar/index.ts
|
|
31449
|
-
import { VxeUI as
|
|
31739
|
+
import { VxeUI as VxeUI30 } from "@vxe-ui/core";
|
|
31450
31740
|
|
|
31451
31741
|
// packages_temp/toolbar/src/toolbar.ts
|
|
31452
31742
|
import { h as h14, ref as ref12, computed as computed6, inject as inject12, createCommentVNode as createCommentVNode3, reactive as reactive8, nextTick as nextTick14, onBeforeUnmount as onBeforeUnmount2 } from "vue";
|
|
31453
31743
|
import XEUtils26 from "xe-utils";
|
|
31454
|
-
import { VxeUI as
|
|
31744
|
+
import { VxeUI as VxeUI29 } from "@vxe-ui/core";
|
|
31455
31745
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
31456
|
-
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } =
|
|
31746
|
+
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI29;
|
|
31457
31747
|
function createReactData2() {
|
|
31458
31748
|
return {
|
|
31459
31749
|
isRefresh: false,
|
|
@@ -31506,7 +31796,7 @@ var toolbar_default = (
|
|
|
31506
31796
|
setup(props, context) {
|
|
31507
31797
|
const { slots, emit } = context;
|
|
31508
31798
|
const xID = XEUtils26.uniqueId();
|
|
31509
|
-
const VxeUIButtonComponent =
|
|
31799
|
+
const VxeUIButtonComponent = VxeUI29.getComponent("VxeButton");
|
|
31510
31800
|
const $xeGrid = inject12("$xeGrid", null);
|
|
31511
31801
|
const $xeGantt = inject12("$xeGantt", null);
|
|
31512
31802
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -32127,16 +32417,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
32127
32417
|
app.component(toolbar_default.name, toolbar_default);
|
|
32128
32418
|
}
|
|
32129
32419
|
});
|
|
32130
|
-
if (
|
|
32131
|
-
|
|
32420
|
+
if (VxeUI30.dynamicApp) {
|
|
32421
|
+
VxeUI30.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
32132
32422
|
}
|
|
32133
|
-
|
|
32423
|
+
VxeUI30.component(toolbar_default);
|
|
32134
32424
|
var Toolbar = VxeToolbar;
|
|
32135
32425
|
var toolbar_default2 = VxeToolbar;
|
|
32136
32426
|
|
|
32137
32427
|
// packages_temp/grid/src/grid.ts
|
|
32138
32428
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
32139
|
-
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } =
|
|
32429
|
+
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI31;
|
|
32140
32430
|
var tableComponentPropKeys = Object.keys(tableComponenProps);
|
|
32141
32431
|
var tableComponentMethodKeys = [
|
|
32142
32432
|
"clearAll",
|
|
@@ -32356,8 +32646,8 @@ var grid_default = (
|
|
|
32356
32646
|
setup(props, context) {
|
|
32357
32647
|
const { slots, emit } = context;
|
|
32358
32648
|
const xID = XEUtils27.uniqueId();
|
|
32359
|
-
const VxeUIFormComponent =
|
|
32360
|
-
const VxeUIPagerComponent =
|
|
32649
|
+
const VxeUIFormComponent = VxeUI31.getComponent("VxeForm");
|
|
32650
|
+
const VxeUIPagerComponent = VxeUI31.getComponent("VxePager");
|
|
32361
32651
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
32362
32652
|
const { computeSize } = useFns3.useSize(props);
|
|
32363
32653
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -32598,8 +32888,8 @@ var grid_default = (
|
|
|
32598
32888
|
$xeGrid.clearCheckboxRow();
|
|
32599
32889
|
} else {
|
|
32600
32890
|
if (isActiveMsg) {
|
|
32601
|
-
if (
|
|
32602
|
-
|
|
32891
|
+
if (VxeUI31.modal) {
|
|
32892
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32603
32893
|
}
|
|
32604
32894
|
}
|
|
32605
32895
|
}
|
|
@@ -32620,16 +32910,16 @@ var grid_default = (
|
|
|
32620
32910
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
32621
32911
|
if (isActiveMsg) {
|
|
32622
32912
|
if (selectRecords.length) {
|
|
32623
|
-
if (
|
|
32624
|
-
return
|
|
32913
|
+
if (VxeUI31.modal) {
|
|
32914
|
+
return VxeUI31.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
32625
32915
|
if (type === "confirm") {
|
|
32626
32916
|
return callback();
|
|
32627
32917
|
}
|
|
32628
32918
|
});
|
|
32629
32919
|
}
|
|
32630
32920
|
} else {
|
|
32631
|
-
if (
|
|
32632
|
-
|
|
32921
|
+
if (VxeUI31.modal) {
|
|
32922
|
+
VxeUI31.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32633
32923
|
}
|
|
32634
32924
|
}
|
|
32635
32925
|
} else {
|
|
@@ -33571,8 +33861,8 @@ var grid_default = (
|
|
|
33571
33861
|
} else {
|
|
33572
33862
|
$xeTable.setPendingRow(removeRecords, false);
|
|
33573
33863
|
if (isRespMsg) {
|
|
33574
|
-
if (
|
|
33575
|
-
|
|
33864
|
+
if (VxeUI31.modal) {
|
|
33865
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
33576
33866
|
}
|
|
33577
33867
|
}
|
|
33578
33868
|
if (oldAfterDelete) {
|
|
@@ -33594,8 +33884,8 @@ var grid_default = (
|
|
|
33594
33884
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33595
33885
|
} else {
|
|
33596
33886
|
if (isRespMsg) {
|
|
33597
|
-
if (
|
|
33598
|
-
|
|
33887
|
+
if (VxeUI31.modal) {
|
|
33888
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33599
33889
|
}
|
|
33600
33890
|
}
|
|
33601
33891
|
}
|
|
@@ -33616,8 +33906,8 @@ var grid_default = (
|
|
|
33616
33906
|
});
|
|
33617
33907
|
} else {
|
|
33618
33908
|
if (isActiveMsg) {
|
|
33619
|
-
if (
|
|
33620
|
-
|
|
33909
|
+
if (VxeUI31.modal) {
|
|
33910
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
33621
33911
|
}
|
|
33622
33912
|
}
|
|
33623
33913
|
}
|
|
@@ -33669,8 +33959,8 @@ var grid_default = (
|
|
|
33669
33959
|
} else {
|
|
33670
33960
|
$xeTable.clearPendingRow();
|
|
33671
33961
|
if (isRespMsg) {
|
|
33672
|
-
if (
|
|
33673
|
-
|
|
33962
|
+
if (VxeUI31.modal) {
|
|
33963
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
33674
33964
|
}
|
|
33675
33965
|
}
|
|
33676
33966
|
if (oldAfterSave) {
|
|
@@ -33692,8 +33982,8 @@ var grid_default = (
|
|
|
33692
33982
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33693
33983
|
} else {
|
|
33694
33984
|
if (isRespMsg) {
|
|
33695
|
-
if (
|
|
33696
|
-
|
|
33985
|
+
if (VxeUI31.modal) {
|
|
33986
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33697
33987
|
}
|
|
33698
33988
|
}
|
|
33699
33989
|
}
|
|
@@ -33713,8 +34003,8 @@ var grid_default = (
|
|
|
33713
34003
|
return handleSave();
|
|
33714
34004
|
} else {
|
|
33715
34005
|
if (isActiveMsg) {
|
|
33716
|
-
if (
|
|
33717
|
-
|
|
34006
|
+
if (VxeUI31.modal) {
|
|
34007
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
33718
34008
|
}
|
|
33719
34009
|
}
|
|
33720
34010
|
}
|
|
@@ -34153,10 +34443,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
34153
34443
|
app.component(grid_default.name, grid_default);
|
|
34154
34444
|
}
|
|
34155
34445
|
});
|
|
34156
|
-
if (
|
|
34157
|
-
|
|
34446
|
+
if (VxeUI32.dynamicApp) {
|
|
34447
|
+
VxeUI32.dynamicApp.component(grid_default.name, grid_default);
|
|
34158
34448
|
}
|
|
34159
|
-
|
|
34449
|
+
VxeUI32.component(grid_default);
|
|
34160
34450
|
var Grid = VxeGrid;
|
|
34161
34451
|
|
|
34162
34452
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -35080,15 +35370,15 @@ __reExport(components_exports, core_star);
|
|
|
35080
35370
|
import * as core_star from "@vxe-ui/core";
|
|
35081
35371
|
var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
35082
35372
|
function install(app, options) {
|
|
35083
|
-
|
|
35373
|
+
VxeUI33.setConfig(options);
|
|
35084
35374
|
components.forEach((component) => component.install(app));
|
|
35085
35375
|
}
|
|
35086
|
-
if (!
|
|
35376
|
+
if (!VxeUI33.hasLanguage("zh-CN")) {
|
|
35087
35377
|
const defaultLanguage = "zh-CN";
|
|
35088
|
-
|
|
35089
|
-
|
|
35378
|
+
VxeUI33.setI18n(defaultLanguage, zh_CN_default);
|
|
35379
|
+
VxeUI33.setLanguage(defaultLanguage);
|
|
35090
35380
|
}
|
|
35091
|
-
|
|
35381
|
+
VxeUI33.setTheme("light");
|
|
35092
35382
|
|
|
35093
35383
|
// packages_temp/index.ts
|
|
35094
35384
|
__reExport(index_exports, components_exports);
|
|
@@ -35113,7 +35403,6 @@ export {
|
|
|
35113
35403
|
VxeGrid,
|
|
35114
35404
|
VxeTable,
|
|
35115
35405
|
VxeToolbar,
|
|
35116
|
-
VxeUI32 as VxeUI,
|
|
35117
35406
|
_t,
|
|
35118
35407
|
config,
|
|
35119
35408
|
index_default as default,
|
|
@@ -35123,6 +35412,5 @@ export {
|
|
|
35123
35412
|
readFile,
|
|
35124
35413
|
saveFile,
|
|
35125
35414
|
setup,
|
|
35126
|
-
t
|
|
35127
|
-
version
|
|
35415
|
+
t
|
|
35128
35416
|
};
|