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/lib/index.umd.js
CHANGED
|
@@ -68,7 +68,6 @@ __export(index_exports, {
|
|
|
68
68
|
VxeGrid: () => VxeGrid,
|
|
69
69
|
VxeTable: () => VxeTable,
|
|
70
70
|
VxeToolbar: () => VxeToolbar,
|
|
71
|
-
VxeUI: () => import_core32.VxeUI,
|
|
72
71
|
_t: () => _t,
|
|
73
72
|
config: () => config,
|
|
74
73
|
default: () => index_default,
|
|
@@ -78,8 +77,7 @@ __export(index_exports, {
|
|
|
78
77
|
readFile: () => readFile,
|
|
79
78
|
saveFile: () => saveFile,
|
|
80
79
|
setup: () => setup,
|
|
81
|
-
t: () => t
|
|
82
|
-
version: () => version
|
|
80
|
+
t: () => t
|
|
83
81
|
});
|
|
84
82
|
module.exports = __toCommonJS(index_exports);
|
|
85
83
|
|
|
@@ -97,7 +95,6 @@ __export(components_exports, {
|
|
|
97
95
|
VxeGrid: () => VxeGrid,
|
|
98
96
|
VxeTable: () => VxeTable,
|
|
99
97
|
VxeToolbar: () => VxeToolbar,
|
|
100
|
-
VxeUI: () => import_core32.VxeUI,
|
|
101
98
|
_t: () => _t,
|
|
102
99
|
config: () => config,
|
|
103
100
|
install: () => install,
|
|
@@ -106,12 +103,14 @@ __export(components_exports, {
|
|
|
106
103
|
readFile: () => readFile,
|
|
107
104
|
saveFile: () => saveFile,
|
|
108
105
|
setup: () => setup,
|
|
109
|
-
t: () => t
|
|
110
|
-
version: () => version
|
|
106
|
+
t: () => t
|
|
111
107
|
});
|
|
112
|
-
var
|
|
108
|
+
var import_core33 = require("@vxe-ui/core");
|
|
113
109
|
|
|
114
110
|
// packages_temp/ui/index.ts
|
|
111
|
+
var import_core3 = require("@vxe-ui/core");
|
|
112
|
+
|
|
113
|
+
// packages_temp/ui/abandon.ts
|
|
115
114
|
var import_core2 = require("@vxe-ui/core");
|
|
116
115
|
|
|
117
116
|
// packages_temp/ui/src/utils.ts
|
|
@@ -317,11 +316,90 @@ function getDefaultConfig(val1, def1) {
|
|
|
317
316
|
return import_xe_utils.default.eqNull(val1) ? def1 : val1;
|
|
318
317
|
}
|
|
319
318
|
|
|
319
|
+
// packages_temp/ui/abandon.ts
|
|
320
|
+
var setup = (options) => {
|
|
321
|
+
return import_core2.VxeUI.setConfig(options);
|
|
322
|
+
};
|
|
323
|
+
import_core2.VxeUI.setup = setup;
|
|
324
|
+
var config = (options) => {
|
|
325
|
+
return import_core2.VxeUI.setConfig(options);
|
|
326
|
+
};
|
|
327
|
+
import_core2.VxeUI.config = config;
|
|
328
|
+
var t = (key, args) => {
|
|
329
|
+
return import_core2.VxeUI.getI18n(key, args);
|
|
330
|
+
};
|
|
331
|
+
import_core2.VxeUI.t = t;
|
|
332
|
+
var _t = (content, args) => {
|
|
333
|
+
return getFuncText(content, args);
|
|
334
|
+
};
|
|
335
|
+
import_core2.VxeUI._t = _t;
|
|
336
|
+
var VXETable = import_core2.VxeUI;
|
|
337
|
+
var saveFile = (options) => {
|
|
338
|
+
return import_core2.VxeUI.saveFile(options);
|
|
339
|
+
};
|
|
340
|
+
var readFile = (options) => {
|
|
341
|
+
return import_core2.VxeUI.readFile(options);
|
|
342
|
+
};
|
|
343
|
+
var print = (options) => {
|
|
344
|
+
return import_core2.VxeUI.print(options);
|
|
345
|
+
};
|
|
346
|
+
var modal = {
|
|
347
|
+
/**
|
|
348
|
+
* 已废弃,兼容老版本
|
|
349
|
+
* @deprecated
|
|
350
|
+
*/
|
|
351
|
+
get(id) {
|
|
352
|
+
return import_core2.VxeUI.modal.get(id);
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* 已废弃,兼容老版本
|
|
356
|
+
* @deprecated
|
|
357
|
+
*/
|
|
358
|
+
close(id) {
|
|
359
|
+
return import_core2.VxeUI.modal.close(id);
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* 已废弃,兼容老版本
|
|
363
|
+
* @deprecated
|
|
364
|
+
*/
|
|
365
|
+
open(options) {
|
|
366
|
+
return import_core2.VxeUI.modal.open(options);
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* 已废弃,兼容老版本
|
|
370
|
+
* @deprecated
|
|
371
|
+
*/
|
|
372
|
+
alert(content, title, options) {
|
|
373
|
+
return import_core2.VxeUI.modal.alert(content, title, options);
|
|
374
|
+
},
|
|
375
|
+
/**
|
|
376
|
+
* 已废弃,兼容老版本
|
|
377
|
+
* @deprecated
|
|
378
|
+
*/
|
|
379
|
+
confirm(content, title, options) {
|
|
380
|
+
return import_core2.VxeUI.modal.confirm(content, title, options);
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
* 已废弃,兼容老版本
|
|
384
|
+
* @deprecated
|
|
385
|
+
*/
|
|
386
|
+
message(content, options) {
|
|
387
|
+
return import_core2.VxeUI.modal.message(content, options);
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* 已废弃,兼容老版本
|
|
391
|
+
* @deprecated
|
|
392
|
+
*/
|
|
393
|
+
notification(content, title, options) {
|
|
394
|
+
return import_core2.VxeUI.modal.notification(content, title, options);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
|
|
320
398
|
// packages_temp/ui/index.ts
|
|
321
|
-
var version = "4.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
399
|
+
var version = "4.24.0-beta.1";
|
|
400
|
+
import_core3.VxeUI.tableVersion = version;
|
|
401
|
+
import_core3.VxeUI.version = version;
|
|
402
|
+
import_core3.VxeUI.setConfig({
|
|
325
403
|
emptyCell: " ",
|
|
326
404
|
table: {
|
|
327
405
|
fit: true,
|
|
@@ -494,7 +572,7 @@ import_core2.VxeUI.setConfig({
|
|
|
494
572
|
parentField: "_X_ROW_PARENT_KEY",
|
|
495
573
|
childrenField: "_X_ROW_CHILDREN",
|
|
496
574
|
mapChildrenField: "_X_ROW_CHILD_LIST",
|
|
497
|
-
indent:
|
|
575
|
+
indent: 28,
|
|
498
576
|
showIcon: true,
|
|
499
577
|
maxGroupSize: 4,
|
|
500
578
|
showAggFuncTitle: true
|
|
@@ -506,8 +584,9 @@ import_core2.VxeUI.setConfig({
|
|
|
506
584
|
childrenField: "children",
|
|
507
585
|
hasChildField: "hasChild",
|
|
508
586
|
mapChildrenField: "_X_ROW_CHILD",
|
|
509
|
-
indent:
|
|
587
|
+
indent: 28,
|
|
510
588
|
showIcon: true,
|
|
589
|
+
// lineType: 'dashed',
|
|
511
590
|
showRootLine: true
|
|
512
591
|
},
|
|
513
592
|
expandConfig: {
|
|
@@ -646,7 +725,7 @@ import_core2.VxeUI.setConfig({
|
|
|
646
725
|
gantt: {}
|
|
647
726
|
});
|
|
648
727
|
var iconPrefix = "vxe-table-icon-";
|
|
649
|
-
|
|
728
|
+
import_core3.VxeUI.setIcon({
|
|
650
729
|
// table
|
|
651
730
|
TABLE_SORT_ASC: iconPrefix + "caret-up",
|
|
652
731
|
TABLE_SORT_DESC: iconPrefix + "caret-down",
|
|
@@ -708,86 +787,9 @@ import_core2.VxeUI.setIcon({
|
|
|
708
787
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
709
788
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
710
789
|
});
|
|
711
|
-
var setup = (options) => {
|
|
712
|
-
return import_core2.VxeUI.setConfig(options);
|
|
713
|
-
};
|
|
714
|
-
import_core2.VxeUI.setup = setup;
|
|
715
|
-
var config = (options) => {
|
|
716
|
-
return import_core2.VxeUI.setConfig(options);
|
|
717
|
-
};
|
|
718
|
-
import_core2.VxeUI.config = config;
|
|
719
|
-
var t = (key, args) => {
|
|
720
|
-
return import_core2.VxeUI.getI18n(key, args);
|
|
721
|
-
};
|
|
722
|
-
import_core2.VxeUI.t = t;
|
|
723
|
-
var _t = (content, args) => {
|
|
724
|
-
return getFuncText(content, args);
|
|
725
|
-
};
|
|
726
|
-
import_core2.VxeUI._t = _t;
|
|
727
|
-
var VXETable = import_core2.VxeUI;
|
|
728
|
-
var saveFile = (options) => {
|
|
729
|
-
return import_core2.VxeUI.saveFile(options);
|
|
730
|
-
};
|
|
731
|
-
var readFile = (options) => {
|
|
732
|
-
return import_core2.VxeUI.readFile(options);
|
|
733
|
-
};
|
|
734
|
-
var print = (options) => {
|
|
735
|
-
return import_core2.VxeUI.print(options);
|
|
736
|
-
};
|
|
737
|
-
var modal = {
|
|
738
|
-
/**
|
|
739
|
-
* 已废弃,兼容老版本
|
|
740
|
-
* @deprecated
|
|
741
|
-
*/
|
|
742
|
-
get(id) {
|
|
743
|
-
return import_core2.VxeUI.modal.get(id);
|
|
744
|
-
},
|
|
745
|
-
/**
|
|
746
|
-
* 已废弃,兼容老版本
|
|
747
|
-
* @deprecated
|
|
748
|
-
*/
|
|
749
|
-
close(id) {
|
|
750
|
-
return import_core2.VxeUI.modal.close(id);
|
|
751
|
-
},
|
|
752
|
-
/**
|
|
753
|
-
* 已废弃,兼容老版本
|
|
754
|
-
* @deprecated
|
|
755
|
-
*/
|
|
756
|
-
open(options) {
|
|
757
|
-
return import_core2.VxeUI.modal.open(options);
|
|
758
|
-
},
|
|
759
|
-
/**
|
|
760
|
-
* 已废弃,兼容老版本
|
|
761
|
-
* @deprecated
|
|
762
|
-
*/
|
|
763
|
-
alert(content, title, options) {
|
|
764
|
-
return import_core2.VxeUI.modal.alert(content, title, options);
|
|
765
|
-
},
|
|
766
|
-
/**
|
|
767
|
-
* 已废弃,兼容老版本
|
|
768
|
-
* @deprecated
|
|
769
|
-
*/
|
|
770
|
-
confirm(content, title, options) {
|
|
771
|
-
return import_core2.VxeUI.modal.confirm(content, title, options);
|
|
772
|
-
},
|
|
773
|
-
/**
|
|
774
|
-
* 已废弃,兼容老版本
|
|
775
|
-
* @deprecated
|
|
776
|
-
*/
|
|
777
|
-
message(content, options) {
|
|
778
|
-
return import_core2.VxeUI.modal.message(content, options);
|
|
779
|
-
},
|
|
780
|
-
/**
|
|
781
|
-
* 已废弃,兼容老版本
|
|
782
|
-
* @deprecated
|
|
783
|
-
*/
|
|
784
|
-
notification(content, title, options) {
|
|
785
|
-
return import_core2.VxeUI.modal.notification(content, title, options);
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
790
|
|
|
789
791
|
// packages_temp/column/index.ts
|
|
790
|
-
var
|
|
792
|
+
var import_core7 = require("@vxe-ui/core");
|
|
791
793
|
|
|
792
794
|
// packages_temp/table/src/column.ts
|
|
793
795
|
var import_vue4 = require("vue");
|
|
@@ -802,7 +804,7 @@ var import_xe_utils4 = __toESM(require("xe-utils"));
|
|
|
802
804
|
|
|
803
805
|
// packages_temp/table/src/columnInfo.ts
|
|
804
806
|
var import_xe_utils3 = __toESM(require("xe-utils"));
|
|
805
|
-
var
|
|
807
|
+
var import_core5 = require("@vxe-ui/core");
|
|
806
808
|
|
|
807
809
|
// packages_temp/ui/src/dom.ts
|
|
808
810
|
var import_xe_utils2 = __toESM(require("xe-utils"));
|
|
@@ -1145,13 +1147,13 @@ function getPopupAppendElement(appendTo) {
|
|
|
1145
1147
|
}
|
|
1146
1148
|
|
|
1147
1149
|
// packages_temp/ui/src/log.ts
|
|
1148
|
-
var
|
|
1149
|
-
var { log } =
|
|
1150
|
-
var tableVersion = `table v${"4.
|
|
1150
|
+
var import_core4 = require("@vxe-ui/core");
|
|
1151
|
+
var { log } = import_core4.VxeUI;
|
|
1152
|
+
var tableVersion = `table v${"4.24.0-beta.1"}`;
|
|
1151
1153
|
function createComponentLog(name) {
|
|
1152
|
-
const uiVersion =
|
|
1153
|
-
const ganttVersion =
|
|
1154
|
-
const designVersion =
|
|
1154
|
+
const uiVersion = import_core4.VxeUI.uiVersion ? `ui v${import_core4.VxeUI.uiVersion}` : "";
|
|
1155
|
+
const ganttVersion = import_core4.VxeUI.ganttVersion ? `gantt v${import_core4.VxeUI.ganttVersion}` : "";
|
|
1156
|
+
const designVersion = import_core4.VxeUI.designVersion ? `design v${import_core4.VxeUI.designVersion}` : "";
|
|
1155
1157
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
1156
1158
|
return {
|
|
1157
1159
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -1163,7 +1165,7 @@ var errLog = log.create("error", tableVersion);
|
|
|
1163
1165
|
|
|
1164
1166
|
// packages_temp/table/src/columnInfo.ts
|
|
1165
1167
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("table");
|
|
1166
|
-
var { getI18n, formats, renderer } =
|
|
1168
|
+
var { getI18n, formats, renderer } = import_core5.VxeUI;
|
|
1167
1169
|
var ColumnInfo = class {
|
|
1168
1170
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1169
1171
|
constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
@@ -2436,7 +2438,7 @@ function handleCustomStoreConfig($xeTable) {
|
|
|
2436
2438
|
// packages_temp/table/src/cell.ts
|
|
2437
2439
|
var import_vue3 = require("vue");
|
|
2438
2440
|
var import_xe_utils6 = __toESM(require("xe-utils"));
|
|
2439
|
-
var
|
|
2441
|
+
var import_core6 = require("@vxe-ui/core");
|
|
2440
2442
|
|
|
2441
2443
|
// packages_temp/ui/src/vn.ts
|
|
2442
2444
|
var import_xe_utils5 = __toESM(require("xe-utils"));
|
|
@@ -2488,7 +2490,7 @@ function getSlotVNs(vns) {
|
|
|
2488
2490
|
}
|
|
2489
2491
|
|
|
2490
2492
|
// packages_temp/table/src/cell.ts
|
|
2491
|
-
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } =
|
|
2493
|
+
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = import_core6.VxeUI;
|
|
2492
2494
|
function renderTitlePrefixIcon(params) {
|
|
2493
2495
|
const { $table, column } = params;
|
|
2494
2496
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
@@ -4089,15 +4091,15 @@ var VxeColumn = Object.assign({}, column_default, {
|
|
|
4089
4091
|
app.component("VxeTableColumn", column_default);
|
|
4090
4092
|
}
|
|
4091
4093
|
});
|
|
4092
|
-
if (
|
|
4093
|
-
|
|
4094
|
-
|
|
4094
|
+
if (import_core7.VxeUI.dynamicApp) {
|
|
4095
|
+
import_core7.VxeUI.dynamicApp.component(column_default.name, column_default);
|
|
4096
|
+
import_core7.VxeUI.dynamicApp.component("VxeTableColumn", column_default);
|
|
4095
4097
|
}
|
|
4096
|
-
|
|
4098
|
+
import_core7.VxeUI.component(column_default);
|
|
4097
4099
|
var Column = VxeColumn;
|
|
4098
4100
|
|
|
4099
4101
|
// packages_temp/colgroup/index.ts
|
|
4100
|
-
var
|
|
4102
|
+
var import_core8 = require("@vxe-ui/core");
|
|
4101
4103
|
|
|
4102
4104
|
// packages_temp/table/src/group.ts
|
|
4103
4105
|
var import_vue5 = require("vue");
|
|
@@ -4159,27 +4161,27 @@ var VxeColgroup = Object.assign({}, group_default, {
|
|
|
4159
4161
|
app.component("VxeTableColgroup", group_default);
|
|
4160
4162
|
}
|
|
4161
4163
|
});
|
|
4162
|
-
if (
|
|
4163
|
-
|
|
4164
|
-
|
|
4164
|
+
if (import_core8.VxeUI.dynamicApp) {
|
|
4165
|
+
import_core8.VxeUI.dynamicApp.component(group_default.name, group_default);
|
|
4166
|
+
import_core8.VxeUI.dynamicApp.component("VxeTableColgroup", group_default);
|
|
4165
4167
|
}
|
|
4166
|
-
|
|
4168
|
+
import_core8.VxeUI.component(group_default);
|
|
4167
4169
|
var Colgroup = VxeColgroup;
|
|
4168
4170
|
|
|
4169
4171
|
// packages_temp/grid/index.ts
|
|
4170
|
-
var
|
|
4172
|
+
var import_core32 = require("@vxe-ui/core");
|
|
4171
4173
|
|
|
4172
4174
|
// packages_temp/grid/src/grid.ts
|
|
4173
4175
|
var import_vue25 = require("vue");
|
|
4174
|
-
var
|
|
4176
|
+
var import_core31 = require("@vxe-ui/core");
|
|
4175
4177
|
var import_xe_utils27 = __toESM(require("xe-utils"));
|
|
4176
4178
|
|
|
4177
4179
|
// packages_temp/grid/src/props.ts
|
|
4178
|
-
var
|
|
4180
|
+
var import_core10 = require("@vxe-ui/core");
|
|
4179
4181
|
|
|
4180
4182
|
// packages_temp/table/src/props.ts
|
|
4181
|
-
var
|
|
4182
|
-
var { getConfig: getConfig3 } =
|
|
4183
|
+
var import_core9 = require("@vxe-ui/core");
|
|
4184
|
+
var { getConfig: getConfig3 } = import_core9.VxeUI;
|
|
4183
4185
|
var tableComponenProps = {
|
|
4184
4186
|
/** 基本属性 */
|
|
4185
4187
|
id: [String, Function],
|
|
@@ -4509,7 +4511,7 @@ var tableComponenProps = {
|
|
|
4509
4511
|
};
|
|
4510
4512
|
|
|
4511
4513
|
// packages_temp/grid/src/props.ts
|
|
4512
|
-
var { getConfig: getConfig4 } =
|
|
4514
|
+
var { getConfig: getConfig4 } = import_core10.VxeUI;
|
|
4513
4515
|
var gridComponeProps = {
|
|
4514
4516
|
...tableComponenProps,
|
|
4515
4517
|
layouts: Array,
|
|
@@ -4655,12 +4657,12 @@ var tableComponenEmits = [
|
|
|
4655
4657
|
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"];
|
|
4656
4658
|
|
|
4657
4659
|
// packages_temp/table/index.ts
|
|
4658
|
-
var
|
|
4660
|
+
var import_core28 = require("@vxe-ui/core");
|
|
4659
4661
|
|
|
4660
4662
|
// packages_temp/table/src/table.ts
|
|
4661
4663
|
var import_vue22 = require("vue");
|
|
4662
4664
|
var import_xe_utils24 = __toESM(require("xe-utils"));
|
|
4663
|
-
var
|
|
4665
|
+
var import_core27 = require("@vxe-ui/core");
|
|
4664
4666
|
|
|
4665
4667
|
// packages_temp/ui/src/anime.ts
|
|
4666
4668
|
var import_xe_utils7 = __toESM(require("xe-utils"));
|
|
@@ -4715,8 +4717,8 @@ function getCrossTableDragRowInfo() {
|
|
|
4715
4717
|
// packages_temp/table/src/body.ts
|
|
4716
4718
|
var import_vue7 = require("vue");
|
|
4717
4719
|
var import_xe_utils8 = __toESM(require("xe-utils"));
|
|
4718
|
-
var
|
|
4719
|
-
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } =
|
|
4720
|
+
var import_core11 = require("@vxe-ui/core");
|
|
4721
|
+
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = import_core11.VxeUI;
|
|
4720
4722
|
var sourceType = "table";
|
|
4721
4723
|
var renderType = "body";
|
|
4722
4724
|
var body_default = (
|
|
@@ -4756,7 +4758,8 @@ var body_default = (
|
|
|
4756
4758
|
computeVirtualXOpts,
|
|
4757
4759
|
computeVirtualYOpts,
|
|
4758
4760
|
computeIsBodyRenderOptimize,
|
|
4759
|
-
computeRendererOpts
|
|
4761
|
+
computeRendererOpts,
|
|
4762
|
+
computeShowTreeLine
|
|
4760
4763
|
} = $xeTable.getComputeMaps();
|
|
4761
4764
|
const refElem = (0, import_vue7.ref)();
|
|
4762
4765
|
const refBodyScroll = (0, import_vue7.ref)();
|
|
@@ -4772,60 +4775,33 @@ var body_default = (
|
|
|
4772
4775
|
const { lastSTime } = tableInternalData;
|
|
4773
4776
|
return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
|
|
4774
4777
|
};
|
|
4775
|
-
const renderLine = (rowid, params
|
|
4778
|
+
const renderLine = (rowid, params) => {
|
|
4776
4779
|
const { column } = params;
|
|
4777
4780
|
const { treeConfig } = tableProps;
|
|
4778
|
-
const cellOpts = computeCellOpts.value;
|
|
4779
|
-
const rowOpts = computeRowOpts.value;
|
|
4780
|
-
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
4781
|
-
const treeOpts = computeTreeOpts.value;
|
|
4782
4781
|
const { slots, treeNode } = column;
|
|
4783
|
-
const
|
|
4784
|
-
if (treeConfig && treeNode
|
|
4782
|
+
const lineVNs = [];
|
|
4783
|
+
if (treeConfig && treeNode) {
|
|
4785
4784
|
if (slots && slots.line) {
|
|
4786
4785
|
return $xeTable.callSlot(slots.line, params);
|
|
4787
4786
|
}
|
|
4787
|
+
const treeOpts = computeTreeOpts.value;
|
|
4788
|
+
const { fullAllDataRowIdData } = tableInternalData;
|
|
4789
|
+
const { lineType } = treeOpts;
|
|
4788
4790
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
}
|
|
4798
|
-
if (!rLevel && !treeOpts.showRootLine) {
|
|
4799
|
-
return [];
|
|
4800
|
-
}
|
|
4801
|
-
if (prevRow) {
|
|
4802
|
-
const prevRowRest = fullAllDataRowIdData[getRowid($xeTable, prevRow)] || {};
|
|
4803
|
-
lineHeight = `${prevRowRest.lineHeight || 0}px`;
|
|
4804
|
-
} else if (rLevel && parentRow) {
|
|
4805
|
-
const parentRowRest = fullAllDataRowIdData[getRowid($xeTable, parentRow)] || {};
|
|
4806
|
-
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
|
|
4807
|
-
}
|
|
4808
|
-
return [
|
|
4809
|
-
(0, import_vue7.h)(
|
|
4810
|
-
"div",
|
|
4811
|
-
{
|
|
4812
|
-
key: "tl",
|
|
4813
|
-
class: "vxe-tree--line-wrapper"
|
|
4814
|
-
},
|
|
4815
|
-
[
|
|
4816
|
-
(0, import_vue7.h)("div", {
|
|
4817
|
-
class: "vxe-tree--line",
|
|
4818
|
-
style: {
|
|
4819
|
-
height: lineHeight,
|
|
4820
|
-
bottom: `-${Math.floor(cellHeight / 2)}px`,
|
|
4821
|
-
left: `calc(${rLevel * treeOpts.indent}px + 1em)`
|
|
4822
|
-
}
|
|
4791
|
+
const treeLines = rowRest.treeLines;
|
|
4792
|
+
if (treeLines) {
|
|
4793
|
+
treeLines.forEach((item, i) => {
|
|
4794
|
+
lineVNs.push(
|
|
4795
|
+
(0, import_vue7.h)("span", {
|
|
4796
|
+
key: "le" + i,
|
|
4797
|
+
class: ["vxe-tree--line", `type--${lineType || "solid"}`, item.type],
|
|
4798
|
+
style: item.style
|
|
4823
4799
|
})
|
|
4824
|
-
|
|
4825
|
-
)
|
|
4826
|
-
|
|
4800
|
+
);
|
|
4801
|
+
});
|
|
4802
|
+
}
|
|
4827
4803
|
}
|
|
4828
|
-
return
|
|
4804
|
+
return lineVNs;
|
|
4829
4805
|
};
|
|
4830
4806
|
const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
|
|
4831
4807
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -4833,6 +4809,7 @@ var body_default = (
|
|
|
4833
4809
|
const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
|
|
4834
4810
|
const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
|
|
4835
4811
|
const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
|
|
4812
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
4836
4813
|
const cellOpts = computeCellOpts.value;
|
|
4837
4814
|
const validOpts = computeValidOpts.value;
|
|
4838
4815
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
@@ -5026,6 +5003,7 @@ var body_default = (
|
|
|
5026
5003
|
}
|
|
5027
5004
|
}
|
|
5028
5005
|
}
|
|
5006
|
+
const tdStyle = {};
|
|
5029
5007
|
const tcStyle = {};
|
|
5030
5008
|
if (maxHeight) {
|
|
5031
5009
|
tcStyle.maxHeight = maxHeight + "px";
|
|
@@ -5044,6 +5022,7 @@ var body_default = (
|
|
|
5044
5022
|
}
|
|
5045
5023
|
if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
5046
5024
|
tcStyle.height = cellHeight + "px";
|
|
5025
|
+
tdStyle["--vxe-ui-table-cell-height"] = cellHeight + "px";
|
|
5047
5026
|
} else {
|
|
5048
5027
|
tcStyle.minHeight = cellHeight + "px";
|
|
5049
5028
|
}
|
|
@@ -5067,8 +5046,8 @@ var body_default = (
|
|
|
5067
5046
|
})
|
|
5068
5047
|
);
|
|
5069
5048
|
} else {
|
|
5070
|
-
if (treeConfig) {
|
|
5071
|
-
tdVNs.push(...renderLine(rowid, cellParams
|
|
5049
|
+
if (treeConfig && showTreeLine) {
|
|
5050
|
+
tdVNs.push(...renderLine(rowid, cellParams));
|
|
5072
5051
|
}
|
|
5073
5052
|
const clVNs = [];
|
|
5074
5053
|
if (!isVNPreEmptyStatus) {
|
|
@@ -5209,7 +5188,7 @@ var body_default = (
|
|
|
5209
5188
|
],
|
|
5210
5189
|
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
|
|
5211
5190
|
...tdAttrs,
|
|
5212
|
-
style: Object.assign(
|
|
5191
|
+
style: Object.assign(tdStyle, import_xe_utils8.default.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, import_xe_utils8.default.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
|
|
5213
5192
|
...tdOns
|
|
5214
5193
|
},
|
|
5215
5194
|
isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
|
|
@@ -5702,8 +5681,8 @@ var body_default = (
|
|
|
5702
5681
|
// packages_temp/table/src/header.ts
|
|
5703
5682
|
var import_vue8 = require("vue");
|
|
5704
5683
|
var import_xe_utils9 = __toESM(require("xe-utils"));
|
|
5705
|
-
var
|
|
5706
|
-
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } =
|
|
5684
|
+
var import_core12 = require("@vxe-ui/core");
|
|
5685
|
+
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = import_core12.VxeUI;
|
|
5707
5686
|
var sourceType2 = "table";
|
|
5708
5687
|
var renderType2 = "header";
|
|
5709
5688
|
var header_default = (
|
|
@@ -6301,8 +6280,8 @@ var header_default = (
|
|
|
6301
6280
|
// packages_temp/table/src/footer.ts
|
|
6302
6281
|
var import_vue9 = require("vue");
|
|
6303
6282
|
var import_xe_utils10 = __toESM(require("xe-utils"));
|
|
6304
|
-
var
|
|
6305
|
-
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } =
|
|
6283
|
+
var import_core13 = require("@vxe-ui/core");
|
|
6284
|
+
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = import_core13.VxeUI;
|
|
6306
6285
|
var sourceType3 = "table";
|
|
6307
6286
|
var renderType3 = "footer";
|
|
6308
6287
|
var footer_default = (
|
|
@@ -6688,10 +6667,10 @@ var footer_default = (
|
|
|
6688
6667
|
|
|
6689
6668
|
// packages_temp/table/module/custom/panel.ts
|
|
6690
6669
|
var import_vue10 = require("vue");
|
|
6691
|
-
var
|
|
6670
|
+
var import_core14 = require("@vxe-ui/core");
|
|
6692
6671
|
var import_xe_utils11 = __toESM(require("xe-utils"));
|
|
6693
6672
|
var { errLog: errLog3 } = createComponentLog("table");
|
|
6694
|
-
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } =
|
|
6673
|
+
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = import_core14.VxeUI;
|
|
6695
6674
|
function createInternalData2() {
|
|
6696
6675
|
return {
|
|
6697
6676
|
// teleportTo: undefined,
|
|
@@ -6715,11 +6694,11 @@ var panel_default = (
|
|
|
6715
6694
|
},
|
|
6716
6695
|
setup(props, context) {
|
|
6717
6696
|
const xID = import_xe_utils11.default.uniqueId();
|
|
6718
|
-
const VxeUIModalComponent =
|
|
6719
|
-
const VxeUIDrawerComponent =
|
|
6720
|
-
const VxeUIButtonComponent =
|
|
6721
|
-
const VxeUINumberInputComponent =
|
|
6722
|
-
const VxeUIRadioGroupComponent =
|
|
6697
|
+
const VxeUIModalComponent = import_core14.VxeUI.getComponent("VxeModal");
|
|
6698
|
+
const VxeUIDrawerComponent = import_core14.VxeUI.getComponent("VxeDrawer");
|
|
6699
|
+
const VxeUIButtonComponent = import_core14.VxeUI.getComponent("VxeButton");
|
|
6700
|
+
const VxeUINumberInputComponent = import_core14.VxeUI.getComponent("VxeNumberInput");
|
|
6701
|
+
const VxeUIRadioGroupComponent = import_core14.VxeUI.getComponent("VxeRadioGroup");
|
|
6723
6702
|
const $xeTable = (0, import_vue10.inject)("$xeTable", {});
|
|
6724
6703
|
const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
6725
6704
|
const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
|
|
@@ -6788,8 +6767,8 @@ var panel_default = (
|
|
|
6788
6767
|
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
6789
6768
|
};
|
|
6790
6769
|
const resetCustomEvent = ({ $event }) => {
|
|
6791
|
-
if (
|
|
6792
|
-
|
|
6770
|
+
if (import_core14.VxeUI.modal) {
|
|
6771
|
+
import_core14.VxeUI.modal.confirm({
|
|
6793
6772
|
content: getI18n4("vxe.custom.cstmConfirmRestore"),
|
|
6794
6773
|
className: "vxe-table--ignore-clear",
|
|
6795
6774
|
escClosable: true
|
|
@@ -7028,8 +7007,8 @@ var panel_default = (
|
|
|
7028
7007
|
const { prevDragCol, prevDragGroupField, prevDragAggFnColid, prevDragPos, prevDragToChild } = customPanelInternalData;
|
|
7029
7008
|
const dragOffsetIndex = prevDragPos === "bottom" ? 1 : 0;
|
|
7030
7009
|
if (prevDragGroupField || prevDragAggFnColid) {
|
|
7031
|
-
if ($xeTable.
|
|
7032
|
-
$xeTable.
|
|
7010
|
+
if ($xeTable.handlePivotTableAggPanelDgedEvent) {
|
|
7011
|
+
$xeTable.handlePivotTableAggPanelDgedEvent(evnt);
|
|
7033
7012
|
}
|
|
7034
7013
|
} else if (prevDragCol && dragCol) {
|
|
7035
7014
|
if (prevDragCol !== dragCol) {
|
|
@@ -7068,8 +7047,8 @@ var panel_default = (
|
|
|
7068
7047
|
if (oldAllMaps[newColumn.id]) {
|
|
7069
7048
|
isSelfToChildStatus = true;
|
|
7070
7049
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
7071
|
-
if (
|
|
7072
|
-
|
|
7050
|
+
if (import_core14.VxeUI.modal) {
|
|
7051
|
+
import_core14.VxeUI.modal.message({
|
|
7073
7052
|
status: "error",
|
|
7074
7053
|
content: getI18n4("vxe.error.treeDragChild")
|
|
7075
7054
|
});
|
|
@@ -7089,8 +7068,8 @@ var panel_default = (
|
|
|
7089
7068
|
if (oldAllMaps[newColumn.id]) {
|
|
7090
7069
|
isSelfToChildStatus = true;
|
|
7091
7070
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
7092
|
-
if (
|
|
7093
|
-
|
|
7071
|
+
if (import_core14.VxeUI.modal) {
|
|
7072
|
+
import_core14.VxeUI.modal.message({
|
|
7094
7073
|
status: "error",
|
|
7095
7074
|
content: getI18n4("vxe.error.treeDragChild")
|
|
7096
7075
|
});
|
|
@@ -8461,10 +8440,10 @@ var panel_default = (
|
|
|
8461
8440
|
|
|
8462
8441
|
// packages_temp/table/module/filter/panel.ts
|
|
8463
8442
|
var import_vue11 = require("vue");
|
|
8464
|
-
var
|
|
8443
|
+
var import_core15 = require("@vxe-ui/core");
|
|
8465
8444
|
var import_xe_utils12 = __toESM(require("xe-utils"));
|
|
8466
8445
|
var { warnLog: warnLog3 } = createComponentLog("table");
|
|
8467
|
-
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } =
|
|
8446
|
+
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = import_core15.VxeUI;
|
|
8468
8447
|
var panel_default2 = (
|
|
8469
8448
|
/* define-vxe-component start */
|
|
8470
8449
|
defineVxeComponent({
|
|
@@ -8477,7 +8456,7 @@ var panel_default2 = (
|
|
|
8477
8456
|
},
|
|
8478
8457
|
setup(props, context) {
|
|
8479
8458
|
const xID = import_xe_utils12.default.uniqueId();
|
|
8480
|
-
const VxeUIScrollbarComponent =
|
|
8459
|
+
const VxeUIScrollbarComponent = import_core15.VxeUI.getComponent("VxeScrollbar");
|
|
8481
8460
|
const $xeTable = (0, import_vue11.inject)("$xeTable", {});
|
|
8482
8461
|
const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
|
|
8483
8462
|
const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
|
|
@@ -8776,10 +8755,10 @@ var panel_default2 = (
|
|
|
8776
8755
|
|
|
8777
8756
|
// packages_temp/table/module/export/import-panel.ts
|
|
8778
8757
|
var import_vue12 = require("vue");
|
|
8779
|
-
var
|
|
8758
|
+
var import_core16 = require("@vxe-ui/core");
|
|
8780
8759
|
var import_xe_utils13 = __toESM(require("xe-utils"));
|
|
8781
8760
|
var { errLog: errLog4 } = createComponentLog("table");
|
|
8782
|
-
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } =
|
|
8761
|
+
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = import_core16.VxeUI;
|
|
8783
8762
|
var import_panel_default = (
|
|
8784
8763
|
/* define-vxe-component start */
|
|
8785
8764
|
defineVxeComponent({
|
|
@@ -8795,9 +8774,9 @@ var import_panel_default = (
|
|
|
8795
8774
|
}
|
|
8796
8775
|
},
|
|
8797
8776
|
setup(props) {
|
|
8798
|
-
const VxeUIModalComponent =
|
|
8799
|
-
const VxeUIButtonComponent =
|
|
8800
|
-
const VxeUISelectComponent =
|
|
8777
|
+
const VxeUIModalComponent = import_core16.VxeUI.getComponent("VxeModal");
|
|
8778
|
+
const VxeUIButtonComponent = import_core16.VxeUI.getComponent("VxeButton");
|
|
8779
|
+
const VxeUISelectComponent = import_core16.VxeUI.getComponent("VxeSelect");
|
|
8801
8780
|
const $xeTable = (0, import_vue12.inject)("$xeTable", {});
|
|
8802
8781
|
const { computeImportOpts } = $xeTable.getComputeMaps();
|
|
8803
8782
|
const reactData = (0, import_vue12.reactive)({
|
|
@@ -9052,10 +9031,10 @@ var import_panel_default = (
|
|
|
9052
9031
|
|
|
9053
9032
|
// packages_temp/table/module/export/export-panel.ts
|
|
9054
9033
|
var import_vue13 = require("vue");
|
|
9055
|
-
var
|
|
9034
|
+
var import_core17 = require("@vxe-ui/core");
|
|
9056
9035
|
var import_xe_utils14 = __toESM(require("xe-utils"));
|
|
9057
9036
|
var { errLog: errLog5 } = createComponentLog("table");
|
|
9058
|
-
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } =
|
|
9037
|
+
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = import_core17.VxeUI;
|
|
9059
9038
|
var export_panel_default = (
|
|
9060
9039
|
/* define-vxe-component start */
|
|
9061
9040
|
defineVxeComponent({
|
|
@@ -9071,11 +9050,11 @@ var export_panel_default = (
|
|
|
9071
9050
|
}
|
|
9072
9051
|
},
|
|
9073
9052
|
setup(props) {
|
|
9074
|
-
const VxeUIModalComponent =
|
|
9075
|
-
const VxeUIButtonComponent =
|
|
9076
|
-
const VxeUISelectComponent =
|
|
9077
|
-
const VxeUIInputComponent =
|
|
9078
|
-
const VxeUICheckboxComponent =
|
|
9053
|
+
const VxeUIModalComponent = import_core17.VxeUI.getComponent("VxeModal");
|
|
9054
|
+
const VxeUIButtonComponent = import_core17.VxeUI.getComponent("VxeButton");
|
|
9055
|
+
const VxeUISelectComponent = import_core17.VxeUI.getComponent("VxeSelect");
|
|
9056
|
+
const VxeUIInputComponent = import_core17.VxeUI.getComponent("VxeInput");
|
|
9057
|
+
const VxeUICheckboxComponent = import_core17.VxeUI.getComponent("VxeCheckbox");
|
|
9079
9058
|
const $xeTable = (0, import_vue13.inject)("$xeTable", {});
|
|
9080
9059
|
const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
|
|
9081
9060
|
const reactData = (0, import_vue13.reactive)({
|
|
@@ -9663,8 +9642,8 @@ var export_panel_default = (
|
|
|
9663
9642
|
// packages_temp/table/module/menu/panel.ts
|
|
9664
9643
|
var import_vue14 = require("vue");
|
|
9665
9644
|
var import_xe_utils15 = __toESM(require("xe-utils"));
|
|
9666
|
-
var
|
|
9667
|
-
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } =
|
|
9645
|
+
var import_core18 = require("@vxe-ui/core");
|
|
9646
|
+
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = import_core18.VxeUI;
|
|
9668
9647
|
var panel_default3 = (
|
|
9669
9648
|
/* define-vxe-component start */
|
|
9670
9649
|
defineVxeComponent({
|
|
@@ -9902,8 +9881,8 @@ var panel_default3 = (
|
|
|
9902
9881
|
// packages_temp/table/module/filter/hook.ts
|
|
9903
9882
|
var import_vue15 = require("vue");
|
|
9904
9883
|
var import_xe_utils16 = __toESM(require("xe-utils"));
|
|
9905
|
-
var
|
|
9906
|
-
var { renderer: renderer7, hooks } =
|
|
9884
|
+
var import_core19 = require("@vxe-ui/core");
|
|
9885
|
+
var { renderer: renderer7, hooks } = import_core19.VxeUI;
|
|
9907
9886
|
var tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
|
|
9908
9887
|
var sourceType4 = "table";
|
|
9909
9888
|
hooks.add("tableFilterModule", {
|
|
@@ -10382,8 +10361,8 @@ hooks.add("tableFilterModule", {
|
|
|
10382
10361
|
// packages_temp/table/module/menu/hook.ts
|
|
10383
10362
|
var import_vue16 = require("vue");
|
|
10384
10363
|
var import_xe_utils17 = __toESM(require("xe-utils"));
|
|
10385
|
-
var
|
|
10386
|
-
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } =
|
|
10364
|
+
var import_core20 = require("@vxe-ui/core");
|
|
10365
|
+
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = import_core20.VxeUI;
|
|
10387
10366
|
var tableMenuMethodKeys = ["closeMenu"];
|
|
10388
10367
|
hooks2.add("tableMenuModule", {
|
|
10389
10368
|
setupTable($xeTable) {
|
|
@@ -10686,9 +10665,9 @@ hooks2.add("tableMenuModule", {
|
|
|
10686
10665
|
// packages_temp/table/module/edit/hook.ts
|
|
10687
10666
|
var import_vue17 = require("vue");
|
|
10688
10667
|
var import_xe_utils18 = __toESM(require("xe-utils"));
|
|
10689
|
-
var
|
|
10668
|
+
var import_core21 = require("@vxe-ui/core");
|
|
10690
10669
|
var { warnLog: warnLog4, errLog: errLog6 } = createComponentLog("table");
|
|
10691
|
-
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } =
|
|
10670
|
+
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = import_core21.VxeUI;
|
|
10692
10671
|
var tableEditMethodKeys = [
|
|
10693
10672
|
"insert",
|
|
10694
10673
|
"insertAt",
|
|
@@ -10786,7 +10765,25 @@ hooks3.add("tableEditModule", {
|
|
|
10786
10765
|
}
|
|
10787
10766
|
pChilds[funcName](item);
|
|
10788
10767
|
pMapChilds[funcName](item);
|
|
10789
|
-
const rest = {
|
|
10768
|
+
const rest = {
|
|
10769
|
+
row: item,
|
|
10770
|
+
rowid,
|
|
10771
|
+
_seq: -1,
|
|
10772
|
+
seq: -1,
|
|
10773
|
+
index: -1,
|
|
10774
|
+
_index: -1,
|
|
10775
|
+
$index: -1,
|
|
10776
|
+
treeIndex: -1,
|
|
10777
|
+
_tIndex: -1,
|
|
10778
|
+
items: pChilds,
|
|
10779
|
+
parent: parentRow,
|
|
10780
|
+
level: parentLevel + 1,
|
|
10781
|
+
linesMask: 0,
|
|
10782
|
+
height: 0,
|
|
10783
|
+
resizeHeight: 0,
|
|
10784
|
+
oTop: 0,
|
|
10785
|
+
expandHeight: 0
|
|
10786
|
+
};
|
|
10790
10787
|
fullDataRowIdData[rowid] = rest;
|
|
10791
10788
|
fullAllDataRowIdData[rowid] = rest;
|
|
10792
10789
|
} else {
|
|
@@ -10795,7 +10792,25 @@ hooks3.add("tableEditModule", {
|
|
|
10795
10792
|
}
|
|
10796
10793
|
afterFullData[funcName](item);
|
|
10797
10794
|
tableFullTreeData[funcName](item);
|
|
10798
|
-
const rest = {
|
|
10795
|
+
const rest = {
|
|
10796
|
+
row: item,
|
|
10797
|
+
rowid,
|
|
10798
|
+
_seq: -1,
|
|
10799
|
+
seq: -1,
|
|
10800
|
+
index: -1,
|
|
10801
|
+
_index: -1,
|
|
10802
|
+
$index: -1,
|
|
10803
|
+
treeIndex: -1,
|
|
10804
|
+
_tIndex: -1,
|
|
10805
|
+
items: tableFullTreeData,
|
|
10806
|
+
parent: null,
|
|
10807
|
+
level: 0,
|
|
10808
|
+
linesMask: 0,
|
|
10809
|
+
height: 0,
|
|
10810
|
+
resizeHeight: 0,
|
|
10811
|
+
oTop: 0,
|
|
10812
|
+
expandHeight: 0
|
|
10813
|
+
};
|
|
10799
10814
|
fullDataRowIdData[rowid] = rest;
|
|
10800
10815
|
fullAllDataRowIdData[rowid] = rest;
|
|
10801
10816
|
}
|
|
@@ -10838,7 +10853,25 @@ hooks3.add("tableEditModule", {
|
|
|
10838
10853
|
} else {
|
|
10839
10854
|
newRecords.forEach((item) => {
|
|
10840
10855
|
const rowid = getRowid($xeTable, item);
|
|
10841
|
-
const rest = {
|
|
10856
|
+
const rest = {
|
|
10857
|
+
row: item,
|
|
10858
|
+
rowid,
|
|
10859
|
+
_seq: -1,
|
|
10860
|
+
seq: -1,
|
|
10861
|
+
index: -1,
|
|
10862
|
+
_index: -1,
|
|
10863
|
+
$index: -1,
|
|
10864
|
+
treeIndex: -1,
|
|
10865
|
+
_tIndex: -1,
|
|
10866
|
+
items: afterFullData,
|
|
10867
|
+
parent: null,
|
|
10868
|
+
level: 0,
|
|
10869
|
+
linesMask: 0,
|
|
10870
|
+
height: 0,
|
|
10871
|
+
resizeHeight: 0,
|
|
10872
|
+
oTop: 0,
|
|
10873
|
+
expandHeight: 0
|
|
10874
|
+
};
|
|
10842
10875
|
fullDataRowIdData[rowid] = rest;
|
|
10843
10876
|
fullAllDataRowIdData[rowid] = rest;
|
|
10844
10877
|
afterFullData.unshift(item);
|
|
@@ -10863,7 +10896,25 @@ hooks3.add("tableEditModule", {
|
|
|
10863
10896
|
} else {
|
|
10864
10897
|
newRecords.forEach((item) => {
|
|
10865
10898
|
const rowid = getRowid($xeTable, item);
|
|
10866
|
-
const rest = {
|
|
10899
|
+
const rest = {
|
|
10900
|
+
row: item,
|
|
10901
|
+
rowid,
|
|
10902
|
+
_seq: -1,
|
|
10903
|
+
seq: -1,
|
|
10904
|
+
index: -1,
|
|
10905
|
+
_index: -1,
|
|
10906
|
+
treeIndex: -1,
|
|
10907
|
+
_tIndex: -1,
|
|
10908
|
+
$index: -1,
|
|
10909
|
+
items: afterFullData,
|
|
10910
|
+
parent: null,
|
|
10911
|
+
level: 0,
|
|
10912
|
+
linesMask: 0,
|
|
10913
|
+
height: 0,
|
|
10914
|
+
resizeHeight: 0,
|
|
10915
|
+
oTop: 0,
|
|
10916
|
+
expandHeight: 0
|
|
10917
|
+
};
|
|
10867
10918
|
fullDataRowIdData[rowid] = rest;
|
|
10868
10919
|
fullAllDataRowIdData[rowid] = rest;
|
|
10869
10920
|
afterFullData.push(item);
|
|
@@ -10902,7 +10953,25 @@ hooks3.add("tableEditModule", {
|
|
|
10902
10953
|
treeRecords,
|
|
10903
10954
|
(item) => {
|
|
10904
10955
|
const rowid = getRowid($xeTable, item);
|
|
10905
|
-
const rest = {
|
|
10956
|
+
const rest = {
|
|
10957
|
+
row: item,
|
|
10958
|
+
rowid,
|
|
10959
|
+
_seq: -1,
|
|
10960
|
+
seq: -1,
|
|
10961
|
+
index: -1,
|
|
10962
|
+
_index: -1,
|
|
10963
|
+
$index: -1,
|
|
10964
|
+
treeIndex: -1,
|
|
10965
|
+
_tIndex: -1,
|
|
10966
|
+
items: parentMapChilds,
|
|
10967
|
+
parent: parentRow,
|
|
10968
|
+
level: parentLevel + 1,
|
|
10969
|
+
linesMask: 0,
|
|
10970
|
+
height: 0,
|
|
10971
|
+
resizeHeight: 0,
|
|
10972
|
+
oTop: 0,
|
|
10973
|
+
expandHeight: 0
|
|
10974
|
+
};
|
|
10906
10975
|
if (item[childrenField]) {
|
|
10907
10976
|
item[mapChildrenField] = item[childrenField];
|
|
10908
10977
|
}
|
|
@@ -11802,7 +11871,7 @@ hooks3.add("tableEditModule", {
|
|
|
11802
11871
|
// packages_temp/table/module/export/hook.ts
|
|
11803
11872
|
var import_vue18 = require("vue");
|
|
11804
11873
|
var import_xe_utils19 = __toESM(require("xe-utils"));
|
|
11805
|
-
var
|
|
11874
|
+
var import_core22 = require("@vxe-ui/core");
|
|
11806
11875
|
|
|
11807
11876
|
// packages_temp/table/module/export/util.ts
|
|
11808
11877
|
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}';
|
|
@@ -11827,7 +11896,7 @@ function createHtmlPage(opts, content) {
|
|
|
11827
11896
|
|
|
11828
11897
|
// packages_temp/table/module/export/hook.ts
|
|
11829
11898
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
11830
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
11899
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = import_core22.VxeUI;
|
|
11831
11900
|
var htmlCellElem;
|
|
11832
11901
|
var csvBOM = "\uFEFF";
|
|
11833
11902
|
var enterSymbol = "\r\n";
|
|
@@ -12791,11 +12860,11 @@ hooks4.add("tableExportModule", {
|
|
|
12791
12860
|
const blob = getExportBlobByContent(content, opts);
|
|
12792
12861
|
return Promise.resolve({ type, content, blob });
|
|
12793
12862
|
}
|
|
12794
|
-
if (
|
|
12795
|
-
|
|
12863
|
+
if (import_core22.VxeUI.saveFile) {
|
|
12864
|
+
import_core22.VxeUI.saveFile({ filename, type, content }).then(() => {
|
|
12796
12865
|
if (opts.message !== false) {
|
|
12797
|
-
if (
|
|
12798
|
-
|
|
12866
|
+
if (import_core22.VxeUI.modal) {
|
|
12867
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
12799
12868
|
}
|
|
12800
12869
|
}
|
|
12801
12870
|
});
|
|
@@ -12882,8 +12951,8 @@ hooks4.add("tableExportModule", {
|
|
|
12882
12951
|
loadRest = $xeTable.reloadData(data);
|
|
12883
12952
|
}
|
|
12884
12953
|
if (opts.message !== false) {
|
|
12885
|
-
if (
|
|
12886
|
-
|
|
12954
|
+
if (import_core22.VxeUI.modal) {
|
|
12955
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
12887
12956
|
}
|
|
12888
12957
|
}
|
|
12889
12958
|
return loadRest.then(() => {
|
|
@@ -12894,8 +12963,8 @@ hooks4.add("tableExportModule", {
|
|
|
12894
12963
|
});
|
|
12895
12964
|
} else {
|
|
12896
12965
|
if (opts.message !== false) {
|
|
12897
|
-
if (
|
|
12898
|
-
|
|
12966
|
+
if (import_core22.VxeUI.modal) {
|
|
12967
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
12899
12968
|
}
|
|
12900
12969
|
}
|
|
12901
12970
|
if (_importReject) {
|
|
@@ -12909,8 +12978,8 @@ hooks4.add("tableExportModule", {
|
|
|
12909
12978
|
const importOpts = computeImportOpts.value;
|
|
12910
12979
|
if (!importMethod && !import_xe_utils19.default.includes(import_xe_utils19.default.keys(importOpts._typeMaps), type)) {
|
|
12911
12980
|
if (opts.message !== false) {
|
|
12912
|
-
if (
|
|
12913
|
-
|
|
12981
|
+
if (import_core22.VxeUI.modal) {
|
|
12982
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
|
|
12914
12983
|
}
|
|
12915
12984
|
}
|
|
12916
12985
|
const params = { status: false, msg: "type error" };
|
|
@@ -13154,8 +13223,8 @@ hooks4.add("tableExportModule", {
|
|
|
13154
13223
|
return (0, import_vue18.nextTick)();
|
|
13155
13224
|
};
|
|
13156
13225
|
const handleCloseExport = () => {
|
|
13157
|
-
if (
|
|
13158
|
-
return
|
|
13226
|
+
if (import_core22.VxeUI.modal) {
|
|
13227
|
+
return import_core22.VxeUI.modal.close("VXE_EXPORT_MODAL");
|
|
13159
13228
|
}
|
|
13160
13229
|
return Promise.resolve();
|
|
13161
13230
|
};
|
|
@@ -13516,7 +13585,7 @@ hooks4.add("tableExportModule", {
|
|
|
13516
13585
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
13517
13586
|
}
|
|
13518
13587
|
}
|
|
13519
|
-
return
|
|
13588
|
+
return import_core22.VxeUI.readFile(opts).catch((e) => {
|
|
13520
13589
|
if (afterImportMethod) {
|
|
13521
13590
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
13522
13591
|
}
|
|
@@ -13527,10 +13596,10 @@ hooks4.add("tableExportModule", {
|
|
|
13527
13596
|
});
|
|
13528
13597
|
},
|
|
13529
13598
|
saveFile(options) {
|
|
13530
|
-
return
|
|
13599
|
+
return import_core22.VxeUI.saveFile(options);
|
|
13531
13600
|
},
|
|
13532
13601
|
readFile(options) {
|
|
13533
|
-
return
|
|
13602
|
+
return import_core22.VxeUI.readFile(options);
|
|
13534
13603
|
},
|
|
13535
13604
|
print(options) {
|
|
13536
13605
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -13571,10 +13640,10 @@ hooks4.add("tableExportModule", {
|
|
|
13571
13640
|
const printMethod = opts.printMethod;
|
|
13572
13641
|
const tableHtml = opts.html || opts.content;
|
|
13573
13642
|
return new Promise((resolve, reject) => {
|
|
13574
|
-
if (
|
|
13643
|
+
if (import_core22.VxeUI.print) {
|
|
13575
13644
|
if (tableHtml) {
|
|
13576
13645
|
resolve(
|
|
13577
|
-
|
|
13646
|
+
import_core22.VxeUI.print({
|
|
13578
13647
|
title: printTitle,
|
|
13579
13648
|
html: tableHtml,
|
|
13580
13649
|
customStyle: opts.style,
|
|
@@ -13613,7 +13682,7 @@ hooks4.add("tableExportModule", {
|
|
|
13613
13682
|
} else {
|
|
13614
13683
|
resolve(
|
|
13615
13684
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
13616
|
-
return
|
|
13685
|
+
return import_core22.VxeUI.print({
|
|
13617
13686
|
title: printTitle,
|
|
13618
13687
|
html: content,
|
|
13619
13688
|
customStyle: opts.style,
|
|
@@ -13681,8 +13750,8 @@ hooks4.add("tableExportModule", {
|
|
|
13681
13750
|
});
|
|
13682
13751
|
},
|
|
13683
13752
|
closeImport() {
|
|
13684
|
-
if (
|
|
13685
|
-
return
|
|
13753
|
+
if (import_core22.VxeUI.modal) {
|
|
13754
|
+
return import_core22.VxeUI.modal.close("VXE_IMPORT_MODAL");
|
|
13686
13755
|
}
|
|
13687
13756
|
return Promise.resolve();
|
|
13688
13757
|
},
|
|
@@ -13705,8 +13774,8 @@ hooks4.add("tableExportModule", {
|
|
|
13705
13774
|
const isTree = !!treeConfig;
|
|
13706
13775
|
if (isTree) {
|
|
13707
13776
|
if (defOpts.message) {
|
|
13708
|
-
if (
|
|
13709
|
-
|
|
13777
|
+
if (import_core22.VxeUI.modal) {
|
|
13778
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
13710
13779
|
}
|
|
13711
13780
|
}
|
|
13712
13781
|
return;
|
|
@@ -13792,8 +13861,8 @@ hooks4.add("tableExportModule", {
|
|
|
13792
13861
|
|
|
13793
13862
|
// packages_temp/table/module/keyboard/hook.ts
|
|
13794
13863
|
var import_xe_utils20 = __toESM(require("xe-utils"));
|
|
13795
|
-
var
|
|
13796
|
-
var { hooks: hooks5 } =
|
|
13864
|
+
var import_core23 = require("@vxe-ui/core");
|
|
13865
|
+
var { hooks: hooks5 } = import_core23.VxeUI;
|
|
13797
13866
|
hooks5.add("tableKeyboardModule", {
|
|
13798
13867
|
setupTable($xeTable) {
|
|
13799
13868
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -14260,9 +14329,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
14260
14329
|
// packages_temp/table/module/validator/hook.ts
|
|
14261
14330
|
var import_vue19 = require("vue");
|
|
14262
14331
|
var import_xe_utils21 = __toESM(require("xe-utils"));
|
|
14263
|
-
var
|
|
14332
|
+
var import_core24 = require("@vxe-ui/core");
|
|
14264
14333
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
14265
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
14334
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = import_core24.VxeUI;
|
|
14266
14335
|
var Rule = class {
|
|
14267
14336
|
constructor(rule) {
|
|
14268
14337
|
Object.assign(this, {
|
|
@@ -14814,11 +14883,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
14814
14883
|
|
|
14815
14884
|
// packages_temp/table/module/custom/hook.ts
|
|
14816
14885
|
var import_vue20 = require("vue");
|
|
14817
|
-
var
|
|
14886
|
+
var import_core25 = require("@vxe-ui/core");
|
|
14818
14887
|
var import_xe_utils22 = __toESM(require("xe-utils"));
|
|
14819
14888
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
14820
14889
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
14821
|
-
|
|
14890
|
+
import_core25.VxeUI.hooks.add("tableCustomModule", {
|
|
14822
14891
|
setupTable($xeTable) {
|
|
14823
14892
|
const { reactData, internalData } = $xeTable;
|
|
14824
14893
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -15291,9 +15360,9 @@ import_core24.VxeUI.hooks.add("tableCustomModule", {
|
|
|
15291
15360
|
// packages_temp/table/render/index.ts
|
|
15292
15361
|
var import_vue21 = require("vue");
|
|
15293
15362
|
var import_xe_utils23 = __toESM(require("xe-utils"));
|
|
15294
|
-
var
|
|
15363
|
+
var import_core26 = require("@vxe-ui/core");
|
|
15295
15364
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
15296
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
15365
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = import_core26.VxeUI;
|
|
15297
15366
|
var componentDefaultModelProp = "modelValue";
|
|
15298
15367
|
var defaultCompProps = {};
|
|
15299
15368
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -16929,7 +16998,7 @@ renderer10.mixin({
|
|
|
16929
16998
|
|
|
16930
16999
|
// packages_temp/table/src/table.ts
|
|
16931
17000
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
16932
|
-
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 } =
|
|
17001
|
+
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 } = import_core27.VxeUI;
|
|
16933
17002
|
var supportMaxRow = 5e6;
|
|
16934
17003
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
16935
17004
|
var maxYHeight = 5e6;
|
|
@@ -16947,8 +17016,8 @@ var table_default = (
|
|
|
16947
17016
|
const xID = import_xe_utils24.default.uniqueId();
|
|
16948
17017
|
const browseObj = import_xe_utils24.default.browse();
|
|
16949
17018
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
16950
|
-
const VxeUILoadingComponent =
|
|
16951
|
-
const VxeUITooltipComponent =
|
|
17019
|
+
const VxeUILoadingComponent = import_core27.VxeUI.getComponent("VxeLoading");
|
|
17020
|
+
const VxeUITooltipComponent = import_core27.VxeUI.getComponent("VxeTooltip");
|
|
16952
17021
|
const $xeModal = (0, import_vue22.inject)("$xeModal", null);
|
|
16953
17022
|
const $xeTabs = (0, import_vue22.inject)("$xeTabs", null);
|
|
16954
17023
|
const $xeParentTable = (0, import_vue22.inject)("$xeTable", null);
|
|
@@ -17448,6 +17517,14 @@ var table_default = (
|
|
|
17448
17517
|
const computeTreeOpts = (0, import_vue22.computed)(() => {
|
|
17449
17518
|
return Object.assign({}, getConfig8().table.treeConfig, props.treeConfig);
|
|
17450
17519
|
});
|
|
17520
|
+
const computeShowTreeLine = (0, import_vue22.computed)(() => {
|
|
17521
|
+
const treeOpts = computeTreeOpts.value;
|
|
17522
|
+
return getDefaultConfig(treeOpts.showLine, treeOpts.line);
|
|
17523
|
+
});
|
|
17524
|
+
const computeShowTreeRootLine = (0, import_vue22.computed)(() => {
|
|
17525
|
+
const treeOpts = computeTreeOpts.value;
|
|
17526
|
+
return treeOpts.showRootLine;
|
|
17527
|
+
});
|
|
17451
17528
|
const computeEmptyOpts = (0, import_vue22.computed)(() => {
|
|
17452
17529
|
return Object.assign({}, getConfig8().table.emptyRender, props.emptyRender);
|
|
17453
17530
|
});
|
|
@@ -17481,8 +17558,11 @@ var table_default = (
|
|
|
17481
17558
|
return "";
|
|
17482
17559
|
});
|
|
17483
17560
|
const computeTableStyle = (0, import_vue22.computed)(() => {
|
|
17561
|
+
const { treeConfig } = props;
|
|
17484
17562
|
const barWidth = computeScrollYWidth.value;
|
|
17485
17563
|
const barHeight = computeScrollXHeight.value;
|
|
17564
|
+
const treeOpts = computeTreeOpts.value;
|
|
17565
|
+
const { indent, lineWidth, lineColor } = treeOpts;
|
|
17486
17566
|
const stys = {};
|
|
17487
17567
|
if (barWidth || barHeight) {
|
|
17488
17568
|
stys["--vxe-ui-table-view-scrollbar-width"] = toCssUnit(barWidth || barHeight);
|
|
@@ -17490,6 +17570,15 @@ var table_default = (
|
|
|
17490
17570
|
stys["--vxe-ui-table-view-scrollbar-height"] = toCssUnit(barHeight || barWidth);
|
|
17491
17571
|
stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
|
|
17492
17572
|
}
|
|
17573
|
+
if (treeConfig) {
|
|
17574
|
+
stys["--vxe-ui-table-tree-node-indent"] = toCssUnit(indent);
|
|
17575
|
+
}
|
|
17576
|
+
if (lineWidth) {
|
|
17577
|
+
stys["--vxe-ui-table-tree-node-line-width"] = toCssUnit(lineWidth);
|
|
17578
|
+
}
|
|
17579
|
+
if (lineColor) {
|
|
17580
|
+
stys["--vxe-ui-table-tree-node-line-color"] = toCssUnit(lineColor);
|
|
17581
|
+
}
|
|
17493
17582
|
return stys;
|
|
17494
17583
|
});
|
|
17495
17584
|
const computeTableRowExpandedList = (0, import_vue22.computed)(() => {
|
|
@@ -17734,6 +17823,7 @@ var table_default = (
|
|
|
17734
17823
|
computePrintOpts,
|
|
17735
17824
|
computeExpandOpts,
|
|
17736
17825
|
computeTreeOpts,
|
|
17826
|
+
computeShowTreeLine,
|
|
17737
17827
|
computeEmptyOpts,
|
|
17738
17828
|
computeLoadingOpts,
|
|
17739
17829
|
computeCellOffsetWidth,
|
|
@@ -18917,9 +19007,9 @@ var table_default = (
|
|
|
18917
19007
|
if (!el || !el.clientWidth) {
|
|
18918
19008
|
return;
|
|
18919
19009
|
}
|
|
18920
|
-
const treeOpts = computeTreeOpts.value;
|
|
18921
19010
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
18922
|
-
|
|
19011
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
19012
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && showTreeLine)) {
|
|
18923
19013
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18924
19014
|
const rowWrapperMaps = {};
|
|
18925
19015
|
el.querySelectorAll(".vxe-cell--wrapper[rowid]").forEach((wrapperElem) => {
|
|
@@ -18980,36 +19070,174 @@ var table_default = (
|
|
|
18980
19070
|
return cellValue;
|
|
18981
19071
|
};
|
|
18982
19072
|
};
|
|
19073
|
+
function getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) {
|
|
19074
|
+
const lines = [];
|
|
19075
|
+
for (let col = 1; col <= depth; col++) {
|
|
19076
|
+
const leftVal = `var(--vxe-ui-table-tree-node-btn-width) + var(--vxe-ui-table-tree-node-indent) * ${col - 1}`;
|
|
19077
|
+
const through = (linesMask & 1 << col - 1) !== 0;
|
|
19078
|
+
if (col === 1 && !showRootLine) {
|
|
19079
|
+
continue;
|
|
19080
|
+
}
|
|
19081
|
+
if (col < depth) {
|
|
19082
|
+
if (through) {
|
|
19083
|
+
let top = "0";
|
|
19084
|
+
let height = "100%";
|
|
19085
|
+
if (isFirstRow) {
|
|
19086
|
+
top = "50%";
|
|
19087
|
+
height = "50%";
|
|
19088
|
+
} else if (isLastRow) {
|
|
19089
|
+
top = "0";
|
|
19090
|
+
height = "50%";
|
|
19091
|
+
}
|
|
19092
|
+
lines.push({
|
|
19093
|
+
type: "v",
|
|
19094
|
+
style: {
|
|
19095
|
+
left: `calc(${leftVal})`,
|
|
19096
|
+
top,
|
|
19097
|
+
height
|
|
19098
|
+
}
|
|
19099
|
+
});
|
|
19100
|
+
}
|
|
19101
|
+
} else {
|
|
19102
|
+
let vTop = "0";
|
|
19103
|
+
let vHeight = through ? "100%" : "50%";
|
|
19104
|
+
if (isFirstRow && isLastRow) {
|
|
19105
|
+
vTop = "50%";
|
|
19106
|
+
vHeight = "0px";
|
|
19107
|
+
} else if (isFirstRow) {
|
|
19108
|
+
vTop = "50%";
|
|
19109
|
+
vHeight = "50%";
|
|
19110
|
+
} else if (isLastRow) {
|
|
19111
|
+
vTop = "0";
|
|
19112
|
+
vHeight = "50%";
|
|
19113
|
+
}
|
|
19114
|
+
if (isExpandable && vHeight !== "0px") {
|
|
19115
|
+
let cutType = "v cut";
|
|
19116
|
+
if (vTop === "0" && vHeight === "50%") {
|
|
19117
|
+
cutType = "v cut-top";
|
|
19118
|
+
} else if (vTop === "50%" && vHeight === "50%") {
|
|
19119
|
+
cutType = "v cut-bottom";
|
|
19120
|
+
} else if (vHeight === "100%") {
|
|
19121
|
+
cutType = "v cut-full";
|
|
19122
|
+
}
|
|
19123
|
+
lines.push({
|
|
19124
|
+
type: cutType,
|
|
19125
|
+
style: {
|
|
19126
|
+
left: `calc(${leftVal})`,
|
|
19127
|
+
top: vTop,
|
|
19128
|
+
height: vHeight
|
|
19129
|
+
}
|
|
19130
|
+
});
|
|
19131
|
+
} else {
|
|
19132
|
+
if (vHeight !== "0px") {
|
|
19133
|
+
lines.push({
|
|
19134
|
+
type: "v",
|
|
19135
|
+
style: {
|
|
19136
|
+
left: `calc(${leftVal})`,
|
|
19137
|
+
top: vTop,
|
|
19138
|
+
height: vHeight
|
|
19139
|
+
}
|
|
19140
|
+
});
|
|
19141
|
+
}
|
|
19142
|
+
}
|
|
19143
|
+
if (isExpandable) {
|
|
19144
|
+
lines.push({
|
|
19145
|
+
type: "h",
|
|
19146
|
+
style: {
|
|
19147
|
+
left: `calc(${leftVal} + var(--vxe-ui-table-tree-node-btn-width) / 2 + 1px)`,
|
|
19148
|
+
top: "50%",
|
|
19149
|
+
width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width) - 0.25em)"
|
|
19150
|
+
}
|
|
19151
|
+
});
|
|
19152
|
+
} else {
|
|
19153
|
+
lines.push({
|
|
19154
|
+
type: "h",
|
|
19155
|
+
style: {
|
|
19156
|
+
left: `calc(${leftVal})`,
|
|
19157
|
+
top: "50%",
|
|
19158
|
+
width: "calc(var(--vxe-ui-table-tree-node-indent) - var(--vxe-ui-table-tree-node-btn-width))"
|
|
19159
|
+
}
|
|
19160
|
+
});
|
|
19161
|
+
}
|
|
19162
|
+
}
|
|
19163
|
+
}
|
|
19164
|
+
return lines;
|
|
19165
|
+
}
|
|
18983
19166
|
const updateAfterTreeIndex = () => {
|
|
18984
19167
|
const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData;
|
|
18985
19168
|
const treeOpts = computeTreeOpts.value;
|
|
18986
|
-
const { transform, mapChildrenField } = treeOpts;
|
|
19169
|
+
const { lazy, transform, showRootLine, mapChildrenField } = treeOpts;
|
|
18987
19170
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
19171
|
+
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
19172
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
18988
19173
|
const fullMaps = {};
|
|
18989
|
-
|
|
19174
|
+
const treeFullSize = afterTreeFullData.length;
|
|
19175
|
+
const rowNum = 0;
|
|
18990
19176
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19012
|
-
|
|
19177
|
+
function handleTreeDFS(row, index, items, parentRow, depth, isFirstRow, isLastRow, isLastChild, stackMask, seq) {
|
|
19178
|
+
const rowid = handleGetRowId(row);
|
|
19179
|
+
let rowRest = fullAllDataRowIdData[rowid];
|
|
19180
|
+
const rowChilds = row[transform ? mapChildrenField : childrenField];
|
|
19181
|
+
if (rowRest) {
|
|
19182
|
+
rowRest.seq = seq;
|
|
19183
|
+
rowRest._seq = rowNum;
|
|
19184
|
+
rowRest.items = items;
|
|
19185
|
+
rowRest.treeIndex = index;
|
|
19186
|
+
rowRest._index = rowNum;
|
|
19187
|
+
rowRest._tIndex = rowNum;
|
|
19188
|
+
} else {
|
|
19189
|
+
rowRest = {
|
|
19190
|
+
row,
|
|
19191
|
+
rowid,
|
|
19192
|
+
_seq: rowNum,
|
|
19193
|
+
seq,
|
|
19194
|
+
index,
|
|
19195
|
+
$index: -1,
|
|
19196
|
+
_index: rowNum,
|
|
19197
|
+
treeIndex: index,
|
|
19198
|
+
_tIndex: rowNum,
|
|
19199
|
+
items,
|
|
19200
|
+
parent: parentRow,
|
|
19201
|
+
level: 0,
|
|
19202
|
+
linesMask: 0,
|
|
19203
|
+
height: 0,
|
|
19204
|
+
resizeHeight: 0,
|
|
19205
|
+
oTop: 0,
|
|
19206
|
+
expandHeight: 0
|
|
19207
|
+
};
|
|
19208
|
+
fullAllDataRowIdData[rowid] = rowRest;
|
|
19209
|
+
fullDataRowIdData[rowid] = rowRest;
|
|
19210
|
+
}
|
|
19211
|
+
let linesMask = stackMask >> 1;
|
|
19212
|
+
if (!isLastChild) {
|
|
19213
|
+
linesMask |= 1 << depth - 1;
|
|
19214
|
+
}
|
|
19215
|
+
rowRest.seq = seq;
|
|
19216
|
+
rowRest._seq = rowNum;
|
|
19217
|
+
rowRest.level = depth - 1;
|
|
19218
|
+
rowRest.linesMask = linesMask;
|
|
19219
|
+
const hasChild = rowChilds && rowChilds.length;
|
|
19220
|
+
let hasLazyChilds = false;
|
|
19221
|
+
let isLazyLoaded = false;
|
|
19222
|
+
if (lazy) {
|
|
19223
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
19224
|
+
hasLazyChilds = row[hasChildField];
|
|
19225
|
+
isLazyLoaded = !!rest.treeLoaded;
|
|
19226
|
+
}
|
|
19227
|
+
const isExpandable = lazy ? isLazyLoaded ? hasChild : hasChild || hasLazyChilds : hasChild;
|
|
19228
|
+
rowRest.treeLines = showTreeLine && treeFullSize > 1 ? getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) : [];
|
|
19229
|
+
let nextStackMask = stackMask;
|
|
19230
|
+
if (!isLastChild) {
|
|
19231
|
+
nextStackMask |= 1 << depth;
|
|
19232
|
+
}
|
|
19233
|
+
fullMaps[rowid] = row;
|
|
19234
|
+
for (let i = 0; i < rowChilds.length; i++) {
|
|
19235
|
+
handleTreeDFS(rowChilds[i], i, rowChilds, row, depth + 1, false, false, i === rowChilds.length - 1, nextStackMask, `${seq}.${i + 1}`);
|
|
19236
|
+
}
|
|
19237
|
+
}
|
|
19238
|
+
for (let i = 0; i < treeFullSize; i++) {
|
|
19239
|
+
handleTreeDFS(afterTreeFullData[i], i, afterTreeFullData, null, 1, !i, i === treeFullSize - 1, i === treeFullSize - 1, 0, "" + i);
|
|
19240
|
+
}
|
|
19013
19241
|
if (transform) {
|
|
19014
19242
|
afterFullData.forEach((row, index) => {
|
|
19015
19243
|
const rowid = handleGetRowId(row);
|
|
@@ -19035,7 +19263,25 @@ var table_default = (
|
|
|
19035
19263
|
rowRest._seq = rowNum;
|
|
19036
19264
|
rowRest._index = index;
|
|
19037
19265
|
} else {
|
|
19038
|
-
const rest = {
|
|
19266
|
+
const rest = {
|
|
19267
|
+
row,
|
|
19268
|
+
rowid,
|
|
19269
|
+
_seq: rowNum,
|
|
19270
|
+
seq,
|
|
19271
|
+
index: -1,
|
|
19272
|
+
$index: -1,
|
|
19273
|
+
_index: index,
|
|
19274
|
+
treeIndex: -1,
|
|
19275
|
+
_tIndex: -1,
|
|
19276
|
+
items: [],
|
|
19277
|
+
parent: null,
|
|
19278
|
+
level: 0,
|
|
19279
|
+
linesMask: 0,
|
|
19280
|
+
height: 0,
|
|
19281
|
+
resizeHeight: 0,
|
|
19282
|
+
oTop: 0,
|
|
19283
|
+
expandHeight: 0
|
|
19284
|
+
};
|
|
19039
19285
|
fullAllDataRowIdData[rowid] = rest;
|
|
19040
19286
|
fullDataRowIdData[rowid] = rest;
|
|
19041
19287
|
}
|
|
@@ -21717,7 +21963,25 @@ var table_default = (
|
|
|
21717
21963
|
(childRow, index, items, path, parentItem, nodes) => {
|
|
21718
21964
|
const rowid = getRowid($xeTable, childRow);
|
|
21719
21965
|
const parentRow = parentItem || parentRest.row;
|
|
21720
|
-
const rest = {
|
|
21966
|
+
const rest = {
|
|
21967
|
+
row: childRow,
|
|
21968
|
+
rowid,
|
|
21969
|
+
_seq: -1,
|
|
21970
|
+
seq: -1,
|
|
21971
|
+
index,
|
|
21972
|
+
_index: -1,
|
|
21973
|
+
$index: -1,
|
|
21974
|
+
treeIndex: -1,
|
|
21975
|
+
_tIndex: -1,
|
|
21976
|
+
items,
|
|
21977
|
+
parent: parentRow,
|
|
21978
|
+
level: parentLevel + nodes.length,
|
|
21979
|
+
linesMask: 0,
|
|
21980
|
+
height: 0,
|
|
21981
|
+
resizeHeight: 0,
|
|
21982
|
+
oTop: 0,
|
|
21983
|
+
expandHeight: 0
|
|
21984
|
+
};
|
|
21721
21985
|
fullDataRowIdData[rowid] = rest;
|
|
21722
21986
|
fullAllDataRowIdData[rowid] = rest;
|
|
21723
21987
|
},
|
|
@@ -22734,8 +22998,8 @@ var table_default = (
|
|
|
22734
22998
|
const targetColumn = getRootColumn($xeTable, column);
|
|
22735
22999
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
22736
23000
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
22737
|
-
if (
|
|
22738
|
-
|
|
23001
|
+
if (import_core27.VxeUI.modal) {
|
|
23002
|
+
import_core27.VxeUI.modal.message({
|
|
22739
23003
|
status: "error",
|
|
22740
23004
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
22741
23005
|
});
|
|
@@ -23939,8 +24203,8 @@ var table_default = (
|
|
|
23939
24203
|
}
|
|
23940
24204
|
const confList = fieldOrColumns ? import_xe_utils24.default.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
23941
24205
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
23942
|
-
if (
|
|
23943
|
-
|
|
24206
|
+
if (import_core27.VxeUI.modal) {
|
|
24207
|
+
import_core27.VxeUI.modal.message({
|
|
23944
24208
|
status: "error",
|
|
23945
24209
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
23946
24210
|
});
|
|
@@ -26160,9 +26424,25 @@ var table_default = (
|
|
|
26160
26424
|
errLog10("vxe.error.repeatKey", [currKeyField, rowid]);
|
|
26161
26425
|
}
|
|
26162
26426
|
if (!rowRest) {
|
|
26163
|
-
rowRest = {
|
|
26164
|
-
|
|
26165
|
-
|
|
26427
|
+
rowRest = {
|
|
26428
|
+
row,
|
|
26429
|
+
rowid,
|
|
26430
|
+
_seq: -1,
|
|
26431
|
+
seq,
|
|
26432
|
+
index: -1,
|
|
26433
|
+
_index: -1,
|
|
26434
|
+
$index: -1,
|
|
26435
|
+
treeIndex: index,
|
|
26436
|
+
_tIndex: -1,
|
|
26437
|
+
items,
|
|
26438
|
+
parent: parentRow,
|
|
26439
|
+
level,
|
|
26440
|
+
linesMask: 0,
|
|
26441
|
+
height: 0,
|
|
26442
|
+
resizeHeight: 0,
|
|
26443
|
+
oTop: 0,
|
|
26444
|
+
expandHeight: 0
|
|
26445
|
+
};
|
|
26166
26446
|
}
|
|
26167
26447
|
if (isReset || isReLoaded) {
|
|
26168
26448
|
rowRest.treeLoaded = false;
|
|
@@ -27868,8 +28148,8 @@ var table_default = (
|
|
|
27868
28148
|
$xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
|
|
27869
28149
|
}
|
|
27870
28150
|
}
|
|
27871
|
-
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.
|
|
27872
|
-
$xeTable.
|
|
28151
|
+
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.handleHeadCellAreaMouseDnEvent) {
|
|
28152
|
+
$xeTable.handleHeadCellAreaMouseDnEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
|
|
27873
28153
|
}
|
|
27874
28154
|
$xeTable.focus();
|
|
27875
28155
|
if ($xeTable.closeMenu) {
|
|
@@ -28003,8 +28283,8 @@ var table_default = (
|
|
|
28003
28283
|
if (oldAllMaps[newRowid]) {
|
|
28004
28284
|
isSelfToChildStatus = true;
|
|
28005
28285
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28006
|
-
if (
|
|
28007
|
-
|
|
28286
|
+
if (import_core27.VxeUI.modal) {
|
|
28287
|
+
import_core27.VxeUI.modal.message({
|
|
28008
28288
|
status: "error",
|
|
28009
28289
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28010
28290
|
});
|
|
@@ -28027,8 +28307,8 @@ var table_default = (
|
|
|
28027
28307
|
if (oldAllMaps[newRowid]) {
|
|
28028
28308
|
isSelfToChildStatus = true;
|
|
28029
28309
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28030
|
-
if (
|
|
28031
|
-
|
|
28310
|
+
if (import_core27.VxeUI.modal) {
|
|
28311
|
+
import_core27.VxeUI.modal.message({
|
|
28032
28312
|
status: "error",
|
|
28033
28313
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28034
28314
|
});
|
|
@@ -28684,8 +28964,8 @@ var table_default = (
|
|
|
28684
28964
|
if (oldAllMaps[newColumn.id]) {
|
|
28685
28965
|
isSelfToChildStatus = true;
|
|
28686
28966
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28687
|
-
if (
|
|
28688
|
-
|
|
28967
|
+
if (import_core27.VxeUI.modal) {
|
|
28968
|
+
import_core27.VxeUI.modal.message({
|
|
28689
28969
|
status: "error",
|
|
28690
28970
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28691
28971
|
});
|
|
@@ -28708,8 +28988,8 @@ var table_default = (
|
|
|
28708
28988
|
if (oldAllMaps[newColumn.id]) {
|
|
28709
28989
|
isSelfToChildStatus = true;
|
|
28710
28990
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28711
|
-
if (
|
|
28712
|
-
|
|
28991
|
+
if (import_core27.VxeUI.modal) {
|
|
28992
|
+
import_core27.VxeUI.modal.message({
|
|
28713
28993
|
status: "error",
|
|
28714
28994
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28715
28995
|
});
|
|
@@ -30452,7 +30732,7 @@ var table_default = (
|
|
|
30452
30732
|
const validTipConfig = computeValidTipConfig.value;
|
|
30453
30733
|
const validOpts = computeValidOpts.value;
|
|
30454
30734
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
30455
|
-
const
|
|
30735
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
30456
30736
|
const rowOpts = computeRowOpts.value;
|
|
30457
30737
|
const columnOpts = computeColumnOpts.value;
|
|
30458
30738
|
const vSize = computeSize.value;
|
|
@@ -30510,7 +30790,7 @@ var table_default = (
|
|
|
30510
30790
|
"not--footer": !showFooter,
|
|
30511
30791
|
"is--group": isGroup,
|
|
30512
30792
|
"is-row-group": isRowGroupStatus,
|
|
30513
|
-
"is--tree-line": treeConfig &&
|
|
30793
|
+
"is--tree-line": treeConfig && showTreeLine,
|
|
30514
30794
|
"is--fixed-left": leftList.length,
|
|
30515
30795
|
"is--fixed-right": rightList.length,
|
|
30516
30796
|
"is--animat": !!props.animat,
|
|
@@ -31024,7 +31304,7 @@ var table_default = (
|
|
|
31024
31304
|
}
|
|
31025
31305
|
);
|
|
31026
31306
|
(0, import_vue22.watch)(
|
|
31027
|
-
() =>
|
|
31307
|
+
() => import_core27.VxeUI.getLanguage(),
|
|
31028
31308
|
() => {
|
|
31029
31309
|
reLayoutFlag.value++;
|
|
31030
31310
|
}
|
|
@@ -31063,6 +31343,16 @@ var table_default = (
|
|
|
31063
31343
|
$xeTable.recalculate(true);
|
|
31064
31344
|
});
|
|
31065
31345
|
});
|
|
31346
|
+
const lineFlag = (0, import_vue22.ref)(0);
|
|
31347
|
+
(0, import_vue22.watch)(computeShowTreeLine, () => {
|
|
31348
|
+
lineFlag.value++;
|
|
31349
|
+
});
|
|
31350
|
+
(0, import_vue22.watch)(computeShowTreeRootLine, () => {
|
|
31351
|
+
lineFlag.value++;
|
|
31352
|
+
});
|
|
31353
|
+
(0, import_vue22.watch)(lineFlag, () => {
|
|
31354
|
+
updateAfterDataIndex();
|
|
31355
|
+
});
|
|
31066
31356
|
(0, import_vue22.watch)(reScrollFlag, () => {
|
|
31067
31357
|
updateScrollbar().then(() => {
|
|
31068
31358
|
updateScrollbar();
|
|
@@ -31632,23 +31922,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
31632
31922
|
var tableHandle = {
|
|
31633
31923
|
useCellView
|
|
31634
31924
|
};
|
|
31635
|
-
if (
|
|
31636
|
-
|
|
31925
|
+
if (import_core28.VxeUI.dynamicApp) {
|
|
31926
|
+
import_core28.VxeUI.dynamicApp.component(table_default.name, table_default);
|
|
31637
31927
|
}
|
|
31638
|
-
|
|
31639
|
-
|
|
31928
|
+
import_core28.VxeUI.component(table_default);
|
|
31929
|
+
import_core28.VxeUI.tableHandle = tableHandle;
|
|
31640
31930
|
var Table = VxeTable;
|
|
31641
31931
|
var table_default2 = VxeTable;
|
|
31642
31932
|
|
|
31643
31933
|
// packages_temp/toolbar/index.ts
|
|
31644
|
-
var
|
|
31934
|
+
var import_core30 = require("@vxe-ui/core");
|
|
31645
31935
|
|
|
31646
31936
|
// packages_temp/toolbar/src/toolbar.ts
|
|
31647
31937
|
var import_vue24 = require("vue");
|
|
31648
31938
|
var import_xe_utils26 = __toESM(require("xe-utils"));
|
|
31649
|
-
var
|
|
31939
|
+
var import_core29 = require("@vxe-ui/core");
|
|
31650
31940
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
31651
|
-
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } =
|
|
31941
|
+
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = import_core29.VxeUI;
|
|
31652
31942
|
function createReactData2() {
|
|
31653
31943
|
return {
|
|
31654
31944
|
isRefresh: false,
|
|
@@ -31701,7 +31991,7 @@ var toolbar_default = (
|
|
|
31701
31991
|
setup(props, context) {
|
|
31702
31992
|
const { slots, emit } = context;
|
|
31703
31993
|
const xID = import_xe_utils26.default.uniqueId();
|
|
31704
|
-
const VxeUIButtonComponent =
|
|
31994
|
+
const VxeUIButtonComponent = import_core29.VxeUI.getComponent("VxeButton");
|
|
31705
31995
|
const $xeGrid = (0, import_vue24.inject)("$xeGrid", null);
|
|
31706
31996
|
const $xeGantt = (0, import_vue24.inject)("$xeGantt", null);
|
|
31707
31997
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -32322,16 +32612,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
32322
32612
|
app.component(toolbar_default.name, toolbar_default);
|
|
32323
32613
|
}
|
|
32324
32614
|
});
|
|
32325
|
-
if (
|
|
32326
|
-
|
|
32615
|
+
if (import_core30.VxeUI.dynamicApp) {
|
|
32616
|
+
import_core30.VxeUI.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
32327
32617
|
}
|
|
32328
|
-
|
|
32618
|
+
import_core30.VxeUI.component(toolbar_default);
|
|
32329
32619
|
var Toolbar = VxeToolbar;
|
|
32330
32620
|
var toolbar_default2 = VxeToolbar;
|
|
32331
32621
|
|
|
32332
32622
|
// packages_temp/grid/src/grid.ts
|
|
32333
32623
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
32334
|
-
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } =
|
|
32624
|
+
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = import_core31.VxeUI;
|
|
32335
32625
|
var tableComponentPropKeys = Object.keys(tableComponenProps);
|
|
32336
32626
|
var tableComponentMethodKeys = [
|
|
32337
32627
|
"clearAll",
|
|
@@ -32551,8 +32841,8 @@ var grid_default = (
|
|
|
32551
32841
|
setup(props, context) {
|
|
32552
32842
|
const { slots, emit } = context;
|
|
32553
32843
|
const xID = import_xe_utils27.default.uniqueId();
|
|
32554
|
-
const VxeUIFormComponent =
|
|
32555
|
-
const VxeUIPagerComponent =
|
|
32844
|
+
const VxeUIFormComponent = import_core31.VxeUI.getComponent("VxeForm");
|
|
32845
|
+
const VxeUIPagerComponent = import_core31.VxeUI.getComponent("VxePager");
|
|
32556
32846
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
32557
32847
|
const { computeSize } = useFns3.useSize(props);
|
|
32558
32848
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -32793,8 +33083,8 @@ var grid_default = (
|
|
|
32793
33083
|
$xeGrid.clearCheckboxRow();
|
|
32794
33084
|
} else {
|
|
32795
33085
|
if (isActiveMsg) {
|
|
32796
|
-
if (
|
|
32797
|
-
|
|
33086
|
+
if (import_core31.VxeUI.modal) {
|
|
33087
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32798
33088
|
}
|
|
32799
33089
|
}
|
|
32800
33090
|
}
|
|
@@ -32815,16 +33105,16 @@ var grid_default = (
|
|
|
32815
33105
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
32816
33106
|
if (isActiveMsg) {
|
|
32817
33107
|
if (selectRecords.length) {
|
|
32818
|
-
if (
|
|
32819
|
-
return
|
|
33108
|
+
if (import_core31.VxeUI.modal) {
|
|
33109
|
+
return import_core31.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
32820
33110
|
if (type === "confirm") {
|
|
32821
33111
|
return callback();
|
|
32822
33112
|
}
|
|
32823
33113
|
});
|
|
32824
33114
|
}
|
|
32825
33115
|
} else {
|
|
32826
|
-
if (
|
|
32827
|
-
|
|
33116
|
+
if (import_core31.VxeUI.modal) {
|
|
33117
|
+
import_core31.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32828
33118
|
}
|
|
32829
33119
|
}
|
|
32830
33120
|
} else {
|
|
@@ -33766,8 +34056,8 @@ var grid_default = (
|
|
|
33766
34056
|
} else {
|
|
33767
34057
|
$xeTable.setPendingRow(removeRecords, false);
|
|
33768
34058
|
if (isRespMsg) {
|
|
33769
|
-
if (
|
|
33770
|
-
|
|
34059
|
+
if (import_core31.VxeUI.modal) {
|
|
34060
|
+
import_core31.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
33771
34061
|
}
|
|
33772
34062
|
}
|
|
33773
34063
|
if (oldAfterDelete) {
|
|
@@ -33789,8 +34079,8 @@ var grid_default = (
|
|
|
33789
34079
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33790
34080
|
} else {
|
|
33791
34081
|
if (isRespMsg) {
|
|
33792
|
-
if (
|
|
33793
|
-
|
|
34082
|
+
if (import_core31.VxeUI.modal) {
|
|
34083
|
+
import_core31.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33794
34084
|
}
|
|
33795
34085
|
}
|
|
33796
34086
|
}
|
|
@@ -33811,8 +34101,8 @@ var grid_default = (
|
|
|
33811
34101
|
});
|
|
33812
34102
|
} else {
|
|
33813
34103
|
if (isActiveMsg) {
|
|
33814
|
-
if (
|
|
33815
|
-
|
|
34104
|
+
if (import_core31.VxeUI.modal) {
|
|
34105
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
33816
34106
|
}
|
|
33817
34107
|
}
|
|
33818
34108
|
}
|
|
@@ -33864,8 +34154,8 @@ var grid_default = (
|
|
|
33864
34154
|
} else {
|
|
33865
34155
|
$xeTable.clearPendingRow();
|
|
33866
34156
|
if (isRespMsg) {
|
|
33867
|
-
if (
|
|
33868
|
-
|
|
34157
|
+
if (import_core31.VxeUI.modal) {
|
|
34158
|
+
import_core31.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
33869
34159
|
}
|
|
33870
34160
|
}
|
|
33871
34161
|
if (oldAfterSave) {
|
|
@@ -33887,8 +34177,8 @@ var grid_default = (
|
|
|
33887
34177
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33888
34178
|
} else {
|
|
33889
34179
|
if (isRespMsg) {
|
|
33890
|
-
if (
|
|
33891
|
-
|
|
34180
|
+
if (import_core31.VxeUI.modal) {
|
|
34181
|
+
import_core31.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33892
34182
|
}
|
|
33893
34183
|
}
|
|
33894
34184
|
}
|
|
@@ -33908,8 +34198,8 @@ var grid_default = (
|
|
|
33908
34198
|
return handleSave();
|
|
33909
34199
|
} else {
|
|
33910
34200
|
if (isActiveMsg) {
|
|
33911
|
-
if (
|
|
33912
|
-
|
|
34201
|
+
if (import_core31.VxeUI.modal) {
|
|
34202
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
33913
34203
|
}
|
|
33914
34204
|
}
|
|
33915
34205
|
}
|
|
@@ -34348,10 +34638,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
34348
34638
|
app.component(grid_default.name, grid_default);
|
|
34349
34639
|
}
|
|
34350
34640
|
});
|
|
34351
|
-
if (
|
|
34352
|
-
|
|
34641
|
+
if (import_core32.VxeUI.dynamicApp) {
|
|
34642
|
+
import_core32.VxeUI.dynamicApp.component(grid_default.name, grid_default);
|
|
34353
34643
|
}
|
|
34354
|
-
|
|
34644
|
+
import_core32.VxeUI.component(grid_default);
|
|
34355
34645
|
var Grid = VxeGrid;
|
|
34356
34646
|
|
|
34357
34647
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -35274,15 +35564,15 @@ var zh_CN_default = {
|
|
|
35274
35564
|
__reExport(components_exports, require("@vxe-ui/core"));
|
|
35275
35565
|
var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
35276
35566
|
function install(app, options) {
|
|
35277
|
-
|
|
35567
|
+
import_core33.VxeUI.setConfig(options);
|
|
35278
35568
|
components.forEach((component) => component.install(app));
|
|
35279
35569
|
}
|
|
35280
|
-
if (!
|
|
35570
|
+
if (!import_core33.VxeUI.hasLanguage("zh-CN")) {
|
|
35281
35571
|
const defaultLanguage = "zh-CN";
|
|
35282
|
-
|
|
35283
|
-
|
|
35572
|
+
import_core33.VxeUI.setI18n(defaultLanguage, zh_CN_default);
|
|
35573
|
+
import_core33.VxeUI.setLanguage(defaultLanguage);
|
|
35284
35574
|
}
|
|
35285
|
-
|
|
35575
|
+
import_core33.VxeUI.setTheme("light");
|
|
35286
35576
|
|
|
35287
35577
|
// packages_temp/index.ts
|
|
35288
35578
|
__reExport(index_exports, components_exports, module.exports);
|