vxe-table 4.23.18 → 4.24.0-beta.0
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 +649 -366
- 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 +97 -9
- package/es/table/module/export/export-panel.js +5 -5
- package/es/table/module/export/hook.js +8 -10
- package/es/table/module/export/import-panel.js +5 -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 -36
- 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 +2 -82
- package/es/ui/index.js +7 -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 +648 -363
- 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 +97 -9
- package/lib/table/module/export/export-panel.js +5 -5
- package/lib/table/module/export/hook.js +8 -10
- package/lib/table/module/export/import-panel.js +5 -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 -36
- 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 +2 -82
- package/lib/ui/index.js +8 -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 +97 -10
- package/packages/table/module/export/export-panel.ts +5 -5
- package/packages/table/module/export/hook.ts +8 -10
- package/packages/table/module/export/import-panel.ts +5 -5
- package/packages/table/src/body.ts +28 -50
- package/packages/table/src/table.ts +292 -35
- package/packages/ui/abandon.ts +136 -0
- package/packages/ui/index.ts +13 -119
- package/styles/components/table.scss +141 -87
- package/styles/theme/base.scss +3 -0
- /package/dist/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
- /package/dist/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
- /package/dist/{iconfont.1794366305845.woff2 → iconfont.1794558570397.woff2} +0 -0
- /package/es/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
- /package/es/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
- /package/es/{iconfont.1794366305845.woff2 → iconfont.1794558570397.woff2} +0 -0
- /package/lib/{iconfont.1794366305845.ttf → iconfont.1794558570397.ttf} +0 -0
- /package/lib/{iconfont.1794366305845.woff → iconfont.1794558570397.woff} +0 -0
- /package/lib/{iconfont.1794366305845.woff2 → iconfont.1794558570397.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.0";
|
|
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.0"}`;
|
|
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 || "dashed"}`, 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)({
|
|
@@ -8880,17 +8859,17 @@ var import_panel_default = (
|
|
|
8880
8859
|
{
|
|
8881
8860
|
id: "VXE_IMPORT_MODAL",
|
|
8882
8861
|
modelValue: storeData2.visible,
|
|
8883
|
-
title: modelOptions.title
|
|
8884
|
-
className: "vxe-table-
|
|
8862
|
+
title: getDefaultConfig(modelOptions.title, getI18n6("vxe.import.impTitle")),
|
|
8863
|
+
className: "vxe-table-import-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
8885
8864
|
width: modelOptions.width || 540,
|
|
8886
8865
|
height: modelOptions.height,
|
|
8887
8866
|
minWidth: modelOptions.minWidth || 360,
|
|
8888
8867
|
minHeight: modelOptions.minHeight || 240,
|
|
8889
8868
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
8890
8869
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
8891
|
-
showFooter: true,
|
|
8892
|
-
escClosable: true,
|
|
8893
|
-
maskClosable: true,
|
|
8870
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
8871
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
8872
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
8894
8873
|
position: modelOptions.position,
|
|
8895
8874
|
fullscreen: modelOptions.fullscreen,
|
|
8896
8875
|
remember: modelOptions.remember,
|
|
@@ -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)({
|
|
@@ -9276,17 +9255,17 @@ var export_panel_default = (
|
|
|
9276
9255
|
{
|
|
9277
9256
|
id: "VXE_EXPORT_MODAL",
|
|
9278
9257
|
modelValue: storeData2.visible,
|
|
9279
|
-
title: modelOptions.title
|
|
9280
|
-
className: "vxe-table-export-popup-wrapper",
|
|
9258
|
+
title: getDefaultConfig(modelOptions.title, getI18n7(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle")),
|
|
9259
|
+
className: "vxe-table-export-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
9281
9260
|
width: modelOptions.width || 660,
|
|
9282
9261
|
height: modelOptions.height,
|
|
9283
9262
|
minWidth: modelOptions.minWidth || 500,
|
|
9284
9263
|
minHeight: modelOptions.minHeight || 400,
|
|
9285
9264
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
9286
9265
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
9287
|
-
showFooter: true,
|
|
9288
|
-
escClosable: true,
|
|
9289
|
-
maskClosable: true,
|
|
9266
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
9267
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
9268
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
9290
9269
|
position: modelOptions.position,
|
|
9291
9270
|
fullscreen: modelOptions.fullscreen,
|
|
9292
9271
|
remember: modelOptions.remember,
|
|
@@ -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",
|
|
@@ -10725,8 +10704,6 @@ hooks3.add("tableEditModule", {
|
|
|
10725
10704
|
const { refElem } = $xeTable.getRefMaps();
|
|
10726
10705
|
const { computeMouseOpts, computeEditOpts, computeCheckboxOpts, computeTreeOpts, computeValidOpts, computeRendererOpts } = $xeTable.getComputeMaps();
|
|
10727
10706
|
const browseObj = import_xe_utils18.default.browse();
|
|
10728
|
-
let editMethods = {};
|
|
10729
|
-
let editPrivateMethods = {};
|
|
10730
10707
|
const getEditColumnModel = (row, column) => {
|
|
10731
10708
|
const { model, editRender } = column;
|
|
10732
10709
|
if (editRender) {
|
|
@@ -10788,7 +10765,25 @@ hooks3.add("tableEditModule", {
|
|
|
10788
10765
|
}
|
|
10789
10766
|
pChilds[funcName](item);
|
|
10790
10767
|
pMapChilds[funcName](item);
|
|
10791
|
-
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
|
+
};
|
|
10792
10787
|
fullDataRowIdData[rowid] = rest;
|
|
10793
10788
|
fullAllDataRowIdData[rowid] = rest;
|
|
10794
10789
|
} else {
|
|
@@ -10797,7 +10792,25 @@ hooks3.add("tableEditModule", {
|
|
|
10797
10792
|
}
|
|
10798
10793
|
afterFullData[funcName](item);
|
|
10799
10794
|
tableFullTreeData[funcName](item);
|
|
10800
|
-
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
|
+
};
|
|
10801
10814
|
fullDataRowIdData[rowid] = rest;
|
|
10802
10815
|
fullAllDataRowIdData[rowid] = rest;
|
|
10803
10816
|
}
|
|
@@ -10840,7 +10853,25 @@ hooks3.add("tableEditModule", {
|
|
|
10840
10853
|
} else {
|
|
10841
10854
|
newRecords.forEach((item) => {
|
|
10842
10855
|
const rowid = getRowid($xeTable, item);
|
|
10843
|
-
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
|
+
};
|
|
10844
10875
|
fullDataRowIdData[rowid] = rest;
|
|
10845
10876
|
fullAllDataRowIdData[rowid] = rest;
|
|
10846
10877
|
afterFullData.unshift(item);
|
|
@@ -10865,7 +10896,25 @@ hooks3.add("tableEditModule", {
|
|
|
10865
10896
|
} else {
|
|
10866
10897
|
newRecords.forEach((item) => {
|
|
10867
10898
|
const rowid = getRowid($xeTable, item);
|
|
10868
|
-
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
|
+
};
|
|
10869
10918
|
fullDataRowIdData[rowid] = rest;
|
|
10870
10919
|
fullAllDataRowIdData[rowid] = rest;
|
|
10871
10920
|
afterFullData.push(item);
|
|
@@ -10904,7 +10953,25 @@ hooks3.add("tableEditModule", {
|
|
|
10904
10953
|
treeRecords,
|
|
10905
10954
|
(item) => {
|
|
10906
10955
|
const rowid = getRowid($xeTable, item);
|
|
10907
|
-
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
|
+
};
|
|
10908
10975
|
if (item[childrenField]) {
|
|
10909
10976
|
item[mapChildrenField] = item[childrenField];
|
|
10910
10977
|
}
|
|
@@ -11224,7 +11291,7 @@ hooks3.add("tableEditModule", {
|
|
|
11224
11291
|
}
|
|
11225
11292
|
return (0, import_vue17.nextTick)();
|
|
11226
11293
|
};
|
|
11227
|
-
editMethods = {
|
|
11294
|
+
const editMethods = {
|
|
11228
11295
|
/**
|
|
11229
11296
|
* 往表格中插入临时数据
|
|
11230
11297
|
*
|
|
@@ -11672,7 +11739,7 @@ hooks3.add("tableEditModule", {
|
|
|
11672
11739
|
}
|
|
11673
11740
|
return null;
|
|
11674
11741
|
};
|
|
11675
|
-
editPrivateMethods = {
|
|
11742
|
+
const editPrivateMethods = {
|
|
11676
11743
|
/**
|
|
11677
11744
|
* 处理激活编辑
|
|
11678
11745
|
*/
|
|
@@ -11804,7 +11871,7 @@ hooks3.add("tableEditModule", {
|
|
|
11804
11871
|
// packages_temp/table/module/export/hook.ts
|
|
11805
11872
|
var import_vue18 = require("vue");
|
|
11806
11873
|
var import_xe_utils19 = __toESM(require("xe-utils"));
|
|
11807
|
-
var
|
|
11874
|
+
var import_core22 = require("@vxe-ui/core");
|
|
11808
11875
|
|
|
11809
11876
|
// packages_temp/table/module/export/util.ts
|
|
11810
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}';
|
|
@@ -11829,7 +11896,7 @@ function createHtmlPage(opts, content) {
|
|
|
11829
11896
|
|
|
11830
11897
|
// packages_temp/table/module/export/hook.ts
|
|
11831
11898
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
11832
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
11899
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = import_core22.VxeUI;
|
|
11833
11900
|
var htmlCellElem;
|
|
11834
11901
|
var csvBOM = "\uFEFF";
|
|
11835
11902
|
var enterSymbol = "\r\n";
|
|
@@ -12793,11 +12860,11 @@ hooks4.add("tableExportModule", {
|
|
|
12793
12860
|
const blob = getExportBlobByContent(content, opts);
|
|
12794
12861
|
return Promise.resolve({ type, content, blob });
|
|
12795
12862
|
}
|
|
12796
|
-
if (
|
|
12797
|
-
|
|
12863
|
+
if (import_core22.VxeUI.saveFile) {
|
|
12864
|
+
import_core22.VxeUI.saveFile({ filename, type, content }).then(() => {
|
|
12798
12865
|
if (opts.message !== false) {
|
|
12799
|
-
if (
|
|
12800
|
-
|
|
12866
|
+
if (import_core22.VxeUI.modal) {
|
|
12867
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
12801
12868
|
}
|
|
12802
12869
|
}
|
|
12803
12870
|
});
|
|
@@ -12884,8 +12951,8 @@ hooks4.add("tableExportModule", {
|
|
|
12884
12951
|
loadRest = $xeTable.reloadData(data);
|
|
12885
12952
|
}
|
|
12886
12953
|
if (opts.message !== false) {
|
|
12887
|
-
if (
|
|
12888
|
-
|
|
12954
|
+
if (import_core22.VxeUI.modal) {
|
|
12955
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
12889
12956
|
}
|
|
12890
12957
|
}
|
|
12891
12958
|
return loadRest.then(() => {
|
|
@@ -12894,9 +12961,11 @@ hooks4.add("tableExportModule", {
|
|
|
12894
12961
|
}
|
|
12895
12962
|
});
|
|
12896
12963
|
});
|
|
12897
|
-
} else
|
|
12898
|
-
if (
|
|
12899
|
-
|
|
12964
|
+
} else {
|
|
12965
|
+
if (opts.message !== false) {
|
|
12966
|
+
if (import_core22.VxeUI.modal) {
|
|
12967
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
12968
|
+
}
|
|
12900
12969
|
}
|
|
12901
12970
|
if (_importReject) {
|
|
12902
12971
|
_importReject({ status: false, msg: "field mismatching" });
|
|
@@ -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" };
|
|
@@ -13113,13 +13182,9 @@ hooks4.add("tableExportModule", {
|
|
|
13113
13182
|
exportStore.isPrint = !!isPrint;
|
|
13114
13183
|
exportStore.hasColgroup = isGroup;
|
|
13115
13184
|
exportStore.visible = true;
|
|
13116
|
-
Object.assign(
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
mode: selectRecords.length ? "selected" : "current"
|
|
13120
|
-
},
|
|
13121
|
-
defOpts
|
|
13122
|
-
);
|
|
13185
|
+
Object.assign(exportParams, {
|
|
13186
|
+
mode: selectRecords.length ? "selected" : "current"
|
|
13187
|
+
}, defOpts);
|
|
13123
13188
|
const { filename, sheetName, mode, type } = exportParams;
|
|
13124
13189
|
if (filename) {
|
|
13125
13190
|
if (import_xe_utils19.default.isFunction(filename)) {
|
|
@@ -13158,8 +13223,8 @@ hooks4.add("tableExportModule", {
|
|
|
13158
13223
|
return (0, import_vue18.nextTick)();
|
|
13159
13224
|
};
|
|
13160
13225
|
const handleCloseExport = () => {
|
|
13161
|
-
if (
|
|
13162
|
-
return
|
|
13226
|
+
if (import_core22.VxeUI.modal) {
|
|
13227
|
+
return import_core22.VxeUI.modal.close("VXE_EXPORT_MODAL");
|
|
13163
13228
|
}
|
|
13164
13229
|
return Promise.resolve();
|
|
13165
13230
|
};
|
|
@@ -13520,7 +13585,7 @@ hooks4.add("tableExportModule", {
|
|
|
13520
13585
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
13521
13586
|
}
|
|
13522
13587
|
}
|
|
13523
|
-
return
|
|
13588
|
+
return import_core22.VxeUI.readFile(opts).catch((e) => {
|
|
13524
13589
|
if (afterImportMethod) {
|
|
13525
13590
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
13526
13591
|
}
|
|
@@ -13531,10 +13596,10 @@ hooks4.add("tableExportModule", {
|
|
|
13531
13596
|
});
|
|
13532
13597
|
},
|
|
13533
13598
|
saveFile(options) {
|
|
13534
|
-
return
|
|
13599
|
+
return import_core22.VxeUI.saveFile(options);
|
|
13535
13600
|
},
|
|
13536
13601
|
readFile(options) {
|
|
13537
|
-
return
|
|
13602
|
+
return import_core22.VxeUI.readFile(options);
|
|
13538
13603
|
},
|
|
13539
13604
|
print(options) {
|
|
13540
13605
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -13575,10 +13640,10 @@ hooks4.add("tableExportModule", {
|
|
|
13575
13640
|
const printMethod = opts.printMethod;
|
|
13576
13641
|
const tableHtml = opts.html || opts.content;
|
|
13577
13642
|
return new Promise((resolve, reject) => {
|
|
13578
|
-
if (
|
|
13643
|
+
if (import_core22.VxeUI.print) {
|
|
13579
13644
|
if (tableHtml) {
|
|
13580
13645
|
resolve(
|
|
13581
|
-
|
|
13646
|
+
import_core22.VxeUI.print({
|
|
13582
13647
|
title: printTitle,
|
|
13583
13648
|
html: tableHtml,
|
|
13584
13649
|
customStyle: opts.style,
|
|
@@ -13617,7 +13682,7 @@ hooks4.add("tableExportModule", {
|
|
|
13617
13682
|
} else {
|
|
13618
13683
|
resolve(
|
|
13619
13684
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
13620
|
-
return
|
|
13685
|
+
return import_core22.VxeUI.print({
|
|
13621
13686
|
title: printTitle,
|
|
13622
13687
|
html: content,
|
|
13623
13688
|
customStyle: opts.style,
|
|
@@ -13685,8 +13750,8 @@ hooks4.add("tableExportModule", {
|
|
|
13685
13750
|
});
|
|
13686
13751
|
},
|
|
13687
13752
|
closeImport() {
|
|
13688
|
-
if (
|
|
13689
|
-
return
|
|
13753
|
+
if (import_core22.VxeUI.modal) {
|
|
13754
|
+
return import_core22.VxeUI.modal.close("VXE_IMPORT_MODAL");
|
|
13690
13755
|
}
|
|
13691
13756
|
return Promise.resolve();
|
|
13692
13757
|
},
|
|
@@ -13709,8 +13774,8 @@ hooks4.add("tableExportModule", {
|
|
|
13709
13774
|
const isTree = !!treeConfig;
|
|
13710
13775
|
if (isTree) {
|
|
13711
13776
|
if (defOpts.message) {
|
|
13712
|
-
if (
|
|
13713
|
-
|
|
13777
|
+
if (import_core22.VxeUI.modal) {
|
|
13778
|
+
import_core22.VxeUI.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
13714
13779
|
}
|
|
13715
13780
|
}
|
|
13716
13781
|
return;
|
|
@@ -13796,8 +13861,8 @@ hooks4.add("tableExportModule", {
|
|
|
13796
13861
|
|
|
13797
13862
|
// packages_temp/table/module/keyboard/hook.ts
|
|
13798
13863
|
var import_xe_utils20 = __toESM(require("xe-utils"));
|
|
13799
|
-
var
|
|
13800
|
-
var { hooks: hooks5 } =
|
|
13864
|
+
var import_core23 = require("@vxe-ui/core");
|
|
13865
|
+
var { hooks: hooks5 } = import_core23.VxeUI;
|
|
13801
13866
|
hooks5.add("tableKeyboardModule", {
|
|
13802
13867
|
setupTable($xeTable) {
|
|
13803
13868
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -14264,9 +14329,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
14264
14329
|
// packages_temp/table/module/validator/hook.ts
|
|
14265
14330
|
var import_vue19 = require("vue");
|
|
14266
14331
|
var import_xe_utils21 = __toESM(require("xe-utils"));
|
|
14267
|
-
var
|
|
14332
|
+
var import_core24 = require("@vxe-ui/core");
|
|
14268
14333
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
14269
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
14334
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = import_core24.VxeUI;
|
|
14270
14335
|
var Rule = class {
|
|
14271
14336
|
constructor(rule) {
|
|
14272
14337
|
Object.assign(this, {
|
|
@@ -14818,11 +14883,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
14818
14883
|
|
|
14819
14884
|
// packages_temp/table/module/custom/hook.ts
|
|
14820
14885
|
var import_vue20 = require("vue");
|
|
14821
|
-
var
|
|
14886
|
+
var import_core25 = require("@vxe-ui/core");
|
|
14822
14887
|
var import_xe_utils22 = __toESM(require("xe-utils"));
|
|
14823
14888
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
14824
14889
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
14825
|
-
|
|
14890
|
+
import_core25.VxeUI.hooks.add("tableCustomModule", {
|
|
14826
14891
|
setupTable($xeTable) {
|
|
14827
14892
|
const { reactData, internalData } = $xeTable;
|
|
14828
14893
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -15295,9 +15360,9 @@ import_core24.VxeUI.hooks.add("tableCustomModule", {
|
|
|
15295
15360
|
// packages_temp/table/render/index.ts
|
|
15296
15361
|
var import_vue21 = require("vue");
|
|
15297
15362
|
var import_xe_utils23 = __toESM(require("xe-utils"));
|
|
15298
|
-
var
|
|
15363
|
+
var import_core26 = require("@vxe-ui/core");
|
|
15299
15364
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
15300
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
15365
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = import_core26.VxeUI;
|
|
15301
15366
|
var componentDefaultModelProp = "modelValue";
|
|
15302
15367
|
var defaultCompProps = {};
|
|
15303
15368
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -16933,7 +16998,7 @@ renderer10.mixin({
|
|
|
16933
16998
|
|
|
16934
16999
|
// packages_temp/table/src/table.ts
|
|
16935
17000
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
16936
|
-
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;
|
|
16937
17002
|
var supportMaxRow = 5e6;
|
|
16938
17003
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
16939
17004
|
var maxYHeight = 5e6;
|
|
@@ -16951,8 +17016,8 @@ var table_default = (
|
|
|
16951
17016
|
const xID = import_xe_utils24.default.uniqueId();
|
|
16952
17017
|
const browseObj = import_xe_utils24.default.browse();
|
|
16953
17018
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
16954
|
-
const VxeUILoadingComponent =
|
|
16955
|
-
const VxeUITooltipComponent =
|
|
17019
|
+
const VxeUILoadingComponent = import_core27.VxeUI.getComponent("VxeLoading");
|
|
17020
|
+
const VxeUITooltipComponent = import_core27.VxeUI.getComponent("VxeTooltip");
|
|
16956
17021
|
const $xeModal = (0, import_vue22.inject)("$xeModal", null);
|
|
16957
17022
|
const $xeTabs = (0, import_vue22.inject)("$xeTabs", null);
|
|
16958
17023
|
const $xeParentTable = (0, import_vue22.inject)("$xeTable", null);
|
|
@@ -17452,6 +17517,14 @@ var table_default = (
|
|
|
17452
17517
|
const computeTreeOpts = (0, import_vue22.computed)(() => {
|
|
17453
17518
|
return Object.assign({}, getConfig8().table.treeConfig, props.treeConfig);
|
|
17454
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
|
+
});
|
|
17455
17528
|
const computeEmptyOpts = (0, import_vue22.computed)(() => {
|
|
17456
17529
|
return Object.assign({}, getConfig8().table.emptyRender, props.emptyRender);
|
|
17457
17530
|
});
|
|
@@ -17485,8 +17558,11 @@ var table_default = (
|
|
|
17485
17558
|
return "";
|
|
17486
17559
|
});
|
|
17487
17560
|
const computeTableStyle = (0, import_vue22.computed)(() => {
|
|
17561
|
+
const { treeConfig } = props;
|
|
17488
17562
|
const barWidth = computeScrollYWidth.value;
|
|
17489
17563
|
const barHeight = computeScrollXHeight.value;
|
|
17564
|
+
const treeOpts = computeTreeOpts.value;
|
|
17565
|
+
const { indent, lineWidth, lineColor } = treeOpts;
|
|
17490
17566
|
const stys = {};
|
|
17491
17567
|
if (barWidth || barHeight) {
|
|
17492
17568
|
stys["--vxe-ui-table-view-scrollbar-width"] = toCssUnit(barWidth || barHeight);
|
|
@@ -17494,6 +17570,15 @@ var table_default = (
|
|
|
17494
17570
|
stys["--vxe-ui-table-view-scrollbar-height"] = toCssUnit(barHeight || barWidth);
|
|
17495
17571
|
stys["--vxe-ui-scrollbar-x-height"] = toCssUnit(barHeight || barWidth);
|
|
17496
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
|
+
}
|
|
17497
17582
|
return stys;
|
|
17498
17583
|
});
|
|
17499
17584
|
const computeTableRowExpandedList = (0, import_vue22.computed)(() => {
|
|
@@ -17738,6 +17823,7 @@ var table_default = (
|
|
|
17738
17823
|
computePrintOpts,
|
|
17739
17824
|
computeExpandOpts,
|
|
17740
17825
|
computeTreeOpts,
|
|
17826
|
+
computeShowTreeLine,
|
|
17741
17827
|
computeEmptyOpts,
|
|
17742
17828
|
computeLoadingOpts,
|
|
17743
17829
|
computeCellOffsetWidth,
|
|
@@ -18921,9 +19007,9 @@ var table_default = (
|
|
|
18921
19007
|
if (!el || !el.clientWidth) {
|
|
18922
19008
|
return;
|
|
18923
19009
|
}
|
|
18924
|
-
const treeOpts = computeTreeOpts.value;
|
|
18925
19010
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
18926
|
-
|
|
19011
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
19012
|
+
if (!isAllOverflow && (scrollYLoad || scrollXLoad || treeConfig && showTreeLine)) {
|
|
18927
19013
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18928
19014
|
const rowWrapperMaps = {};
|
|
18929
19015
|
el.querySelectorAll(".vxe-cell--wrapper[rowid]").forEach((wrapperElem) => {
|
|
@@ -18984,36 +19070,174 @@ var table_default = (
|
|
|
18984
19070
|
return cellValue;
|
|
18985
19071
|
};
|
|
18986
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
|
+
}
|
|
18987
19166
|
const updateAfterTreeIndex = () => {
|
|
18988
19167
|
const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData;
|
|
18989
19168
|
const treeOpts = computeTreeOpts.value;
|
|
18990
|
-
const { transform, mapChildrenField } = treeOpts;
|
|
19169
|
+
const { lazy, transform, showRootLine, mapChildrenField } = treeOpts;
|
|
18991
19170
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
19171
|
+
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
19172
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
18992
19173
|
const fullMaps = {};
|
|
18993
|
-
|
|
19174
|
+
const treeFullSize = afterTreeFullData.length;
|
|
19175
|
+
const rowNum = 0;
|
|
18994
19176
|
const { handleGetRowId } = createHandleGetRowId($xeTable);
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
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
|
+
}
|
|
19017
19241
|
if (transform) {
|
|
19018
19242
|
afterFullData.forEach((row, index) => {
|
|
19019
19243
|
const rowid = handleGetRowId(row);
|
|
@@ -19039,7 +19263,25 @@ var table_default = (
|
|
|
19039
19263
|
rowRest._seq = rowNum;
|
|
19040
19264
|
rowRest._index = index;
|
|
19041
19265
|
} else {
|
|
19042
|
-
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
|
+
};
|
|
19043
19285
|
fullAllDataRowIdData[rowid] = rest;
|
|
19044
19286
|
fullDataRowIdData[rowid] = rest;
|
|
19045
19287
|
}
|
|
@@ -21721,7 +21963,25 @@ var table_default = (
|
|
|
21721
21963
|
(childRow, index, items, path, parentItem, nodes) => {
|
|
21722
21964
|
const rowid = getRowid($xeTable, childRow);
|
|
21723
21965
|
const parentRow = parentItem || parentRest.row;
|
|
21724
|
-
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
|
+
};
|
|
21725
21985
|
fullDataRowIdData[rowid] = rest;
|
|
21726
21986
|
fullAllDataRowIdData[rowid] = rest;
|
|
21727
21987
|
},
|
|
@@ -22738,8 +22998,8 @@ var table_default = (
|
|
|
22738
22998
|
const targetColumn = getRootColumn($xeTable, column);
|
|
22739
22999
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
22740
23000
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
22741
|
-
if (
|
|
22742
|
-
|
|
23001
|
+
if (import_core27.VxeUI.modal) {
|
|
23002
|
+
import_core27.VxeUI.modal.message({
|
|
22743
23003
|
status: "error",
|
|
22744
23004
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
22745
23005
|
});
|
|
@@ -23943,8 +24203,8 @@ var table_default = (
|
|
|
23943
24203
|
}
|
|
23944
24204
|
const confList = fieldOrColumns ? import_xe_utils24.default.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
23945
24205
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
23946
|
-
if (
|
|
23947
|
-
|
|
24206
|
+
if (import_core27.VxeUI.modal) {
|
|
24207
|
+
import_core27.VxeUI.modal.message({
|
|
23948
24208
|
status: "error",
|
|
23949
24209
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
23950
24210
|
});
|
|
@@ -26164,9 +26424,25 @@ var table_default = (
|
|
|
26164
26424
|
errLog10("vxe.error.repeatKey", [currKeyField, rowid]);
|
|
26165
26425
|
}
|
|
26166
26426
|
if (!rowRest) {
|
|
26167
|
-
rowRest = {
|
|
26168
|
-
|
|
26169
|
-
|
|
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
|
+
};
|
|
26170
26446
|
}
|
|
26171
26447
|
if (isReset || isReLoaded) {
|
|
26172
26448
|
rowRest.treeLoaded = false;
|
|
@@ -26185,7 +26461,6 @@ var table_default = (
|
|
|
26185
26461
|
if (rowExpandedMaps[rowid]) {
|
|
26186
26462
|
rowExpandedMaps[rowid] = row;
|
|
26187
26463
|
}
|
|
26188
|
-
rowNum++;
|
|
26189
26464
|
idMaps[rowid] = true;
|
|
26190
26465
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
26191
26466
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
@@ -27873,8 +28148,8 @@ var table_default = (
|
|
|
27873
28148
|
$xeTable.handleHeaderCellDragMousedownEvent(evnt, params);
|
|
27874
28149
|
}
|
|
27875
28150
|
}
|
|
27876
|
-
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.
|
|
27877
|
-
$xeTable.
|
|
28151
|
+
if (!triggerDrag && hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area && $xeTable.handleHeadCellAreaMouseDnEvent) {
|
|
28152
|
+
$xeTable.handleHeadCellAreaMouseDnEvent(evnt, Object.assign({ cell, triggerSort, triggerFilter }, params));
|
|
27878
28153
|
}
|
|
27879
28154
|
$xeTable.focus();
|
|
27880
28155
|
if ($xeTable.closeMenu) {
|
|
@@ -28008,8 +28283,8 @@ var table_default = (
|
|
|
28008
28283
|
if (oldAllMaps[newRowid]) {
|
|
28009
28284
|
isSelfToChildStatus = true;
|
|
28010
28285
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28011
|
-
if (
|
|
28012
|
-
|
|
28286
|
+
if (import_core27.VxeUI.modal) {
|
|
28287
|
+
import_core27.VxeUI.modal.message({
|
|
28013
28288
|
status: "error",
|
|
28014
28289
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28015
28290
|
});
|
|
@@ -28032,8 +28307,8 @@ var table_default = (
|
|
|
28032
28307
|
if (oldAllMaps[newRowid]) {
|
|
28033
28308
|
isSelfToChildStatus = true;
|
|
28034
28309
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28035
|
-
if (
|
|
28036
|
-
|
|
28310
|
+
if (import_core27.VxeUI.modal) {
|
|
28311
|
+
import_core27.VxeUI.modal.message({
|
|
28037
28312
|
status: "error",
|
|
28038
28313
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28039
28314
|
});
|
|
@@ -28689,8 +28964,8 @@ var table_default = (
|
|
|
28689
28964
|
if (oldAllMaps[newColumn.id]) {
|
|
28690
28965
|
isSelfToChildStatus = true;
|
|
28691
28966
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28692
|
-
if (
|
|
28693
|
-
|
|
28967
|
+
if (import_core27.VxeUI.modal) {
|
|
28968
|
+
import_core27.VxeUI.modal.message({
|
|
28694
28969
|
status: "error",
|
|
28695
28970
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28696
28971
|
});
|
|
@@ -28713,8 +28988,8 @@ var table_default = (
|
|
|
28713
28988
|
if (oldAllMaps[newColumn.id]) {
|
|
28714
28989
|
isSelfToChildStatus = true;
|
|
28715
28990
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28716
|
-
if (
|
|
28717
|
-
|
|
28991
|
+
if (import_core27.VxeUI.modal) {
|
|
28992
|
+
import_core27.VxeUI.modal.message({
|
|
28718
28993
|
status: "error",
|
|
28719
28994
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28720
28995
|
});
|
|
@@ -30457,7 +30732,7 @@ var table_default = (
|
|
|
30457
30732
|
const validTipConfig = computeValidTipConfig.value;
|
|
30458
30733
|
const validOpts = computeValidOpts.value;
|
|
30459
30734
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
30460
|
-
const
|
|
30735
|
+
const showTreeLine = computeShowTreeLine.value;
|
|
30461
30736
|
const rowOpts = computeRowOpts.value;
|
|
30462
30737
|
const columnOpts = computeColumnOpts.value;
|
|
30463
30738
|
const vSize = computeSize.value;
|
|
@@ -30515,7 +30790,7 @@ var table_default = (
|
|
|
30515
30790
|
"not--footer": !showFooter,
|
|
30516
30791
|
"is--group": isGroup,
|
|
30517
30792
|
"is-row-group": isRowGroupStatus,
|
|
30518
|
-
"is--tree-line": treeConfig &&
|
|
30793
|
+
"is--tree-line": treeConfig && showTreeLine,
|
|
30519
30794
|
"is--fixed-left": leftList.length,
|
|
30520
30795
|
"is--fixed-right": rightList.length,
|
|
30521
30796
|
"is--animat": !!props.animat,
|
|
@@ -31029,7 +31304,7 @@ var table_default = (
|
|
|
31029
31304
|
}
|
|
31030
31305
|
);
|
|
31031
31306
|
(0, import_vue22.watch)(
|
|
31032
|
-
() =>
|
|
31307
|
+
() => import_core27.VxeUI.getLanguage(),
|
|
31033
31308
|
() => {
|
|
31034
31309
|
reLayoutFlag.value++;
|
|
31035
31310
|
}
|
|
@@ -31068,6 +31343,16 @@ var table_default = (
|
|
|
31068
31343
|
$xeTable.recalculate(true);
|
|
31069
31344
|
});
|
|
31070
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
|
+
});
|
|
31071
31356
|
(0, import_vue22.watch)(reScrollFlag, () => {
|
|
31072
31357
|
updateScrollbar().then(() => {
|
|
31073
31358
|
updateScrollbar();
|
|
@@ -31637,23 +31922,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
31637
31922
|
var tableHandle = {
|
|
31638
31923
|
useCellView
|
|
31639
31924
|
};
|
|
31640
|
-
if (
|
|
31641
|
-
|
|
31925
|
+
if (import_core28.VxeUI.dynamicApp) {
|
|
31926
|
+
import_core28.VxeUI.dynamicApp.component(table_default.name, table_default);
|
|
31642
31927
|
}
|
|
31643
|
-
|
|
31644
|
-
|
|
31928
|
+
import_core28.VxeUI.component(table_default);
|
|
31929
|
+
import_core28.VxeUI.tableHandle = tableHandle;
|
|
31645
31930
|
var Table = VxeTable;
|
|
31646
31931
|
var table_default2 = VxeTable;
|
|
31647
31932
|
|
|
31648
31933
|
// packages_temp/toolbar/index.ts
|
|
31649
|
-
var
|
|
31934
|
+
var import_core30 = require("@vxe-ui/core");
|
|
31650
31935
|
|
|
31651
31936
|
// packages_temp/toolbar/src/toolbar.ts
|
|
31652
31937
|
var import_vue24 = require("vue");
|
|
31653
31938
|
var import_xe_utils26 = __toESM(require("xe-utils"));
|
|
31654
|
-
var
|
|
31939
|
+
var import_core29 = require("@vxe-ui/core");
|
|
31655
31940
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
31656
|
-
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;
|
|
31657
31942
|
function createReactData2() {
|
|
31658
31943
|
return {
|
|
31659
31944
|
isRefresh: false,
|
|
@@ -31706,7 +31991,7 @@ var toolbar_default = (
|
|
|
31706
31991
|
setup(props, context) {
|
|
31707
31992
|
const { slots, emit } = context;
|
|
31708
31993
|
const xID = import_xe_utils26.default.uniqueId();
|
|
31709
|
-
const VxeUIButtonComponent =
|
|
31994
|
+
const VxeUIButtonComponent = import_core29.VxeUI.getComponent("VxeButton");
|
|
31710
31995
|
const $xeGrid = (0, import_vue24.inject)("$xeGrid", null);
|
|
31711
31996
|
const $xeGantt = (0, import_vue24.inject)("$xeGantt", null);
|
|
31712
31997
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -32327,16 +32612,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
32327
32612
|
app.component(toolbar_default.name, toolbar_default);
|
|
32328
32613
|
}
|
|
32329
32614
|
});
|
|
32330
|
-
if (
|
|
32331
|
-
|
|
32615
|
+
if (import_core30.VxeUI.dynamicApp) {
|
|
32616
|
+
import_core30.VxeUI.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
32332
32617
|
}
|
|
32333
|
-
|
|
32618
|
+
import_core30.VxeUI.component(toolbar_default);
|
|
32334
32619
|
var Toolbar = VxeToolbar;
|
|
32335
32620
|
var toolbar_default2 = VxeToolbar;
|
|
32336
32621
|
|
|
32337
32622
|
// packages_temp/grid/src/grid.ts
|
|
32338
32623
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
32339
|
-
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;
|
|
32340
32625
|
var tableComponentPropKeys = Object.keys(tableComponenProps);
|
|
32341
32626
|
var tableComponentMethodKeys = [
|
|
32342
32627
|
"clearAll",
|
|
@@ -32556,8 +32841,8 @@ var grid_default = (
|
|
|
32556
32841
|
setup(props, context) {
|
|
32557
32842
|
const { slots, emit } = context;
|
|
32558
32843
|
const xID = import_xe_utils27.default.uniqueId();
|
|
32559
|
-
const VxeUIFormComponent =
|
|
32560
|
-
const VxeUIPagerComponent =
|
|
32844
|
+
const VxeUIFormComponent = import_core31.VxeUI.getComponent("VxeForm");
|
|
32845
|
+
const VxeUIPagerComponent = import_core31.VxeUI.getComponent("VxePager");
|
|
32561
32846
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
32562
32847
|
const { computeSize } = useFns3.useSize(props);
|
|
32563
32848
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -32798,8 +33083,8 @@ var grid_default = (
|
|
|
32798
33083
|
$xeGrid.clearCheckboxRow();
|
|
32799
33084
|
} else {
|
|
32800
33085
|
if (isActiveMsg) {
|
|
32801
|
-
if (
|
|
32802
|
-
|
|
33086
|
+
if (import_core31.VxeUI.modal) {
|
|
33087
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32803
33088
|
}
|
|
32804
33089
|
}
|
|
32805
33090
|
}
|
|
@@ -32820,16 +33105,16 @@ var grid_default = (
|
|
|
32820
33105
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
32821
33106
|
if (isActiveMsg) {
|
|
32822
33107
|
if (selectRecords.length) {
|
|
32823
|
-
if (
|
|
32824
|
-
return
|
|
33108
|
+
if (import_core31.VxeUI.modal) {
|
|
33109
|
+
return import_core31.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
32825
33110
|
if (type === "confirm") {
|
|
32826
33111
|
return callback();
|
|
32827
33112
|
}
|
|
32828
33113
|
});
|
|
32829
33114
|
}
|
|
32830
33115
|
} else {
|
|
32831
|
-
if (
|
|
32832
|
-
|
|
33116
|
+
if (import_core31.VxeUI.modal) {
|
|
33117
|
+
import_core31.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32833
33118
|
}
|
|
32834
33119
|
}
|
|
32835
33120
|
} else {
|
|
@@ -33771,8 +34056,8 @@ var grid_default = (
|
|
|
33771
34056
|
} else {
|
|
33772
34057
|
$xeTable.setPendingRow(removeRecords, false);
|
|
33773
34058
|
if (isRespMsg) {
|
|
33774
|
-
if (
|
|
33775
|
-
|
|
34059
|
+
if (import_core31.VxeUI.modal) {
|
|
34060
|
+
import_core31.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
33776
34061
|
}
|
|
33777
34062
|
}
|
|
33778
34063
|
if (oldAfterDelete) {
|
|
@@ -33794,8 +34079,8 @@ var grid_default = (
|
|
|
33794
34079
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33795
34080
|
} else {
|
|
33796
34081
|
if (isRespMsg) {
|
|
33797
|
-
if (
|
|
33798
|
-
|
|
34082
|
+
if (import_core31.VxeUI.modal) {
|
|
34083
|
+
import_core31.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33799
34084
|
}
|
|
33800
34085
|
}
|
|
33801
34086
|
}
|
|
@@ -33816,8 +34101,8 @@ var grid_default = (
|
|
|
33816
34101
|
});
|
|
33817
34102
|
} else {
|
|
33818
34103
|
if (isActiveMsg) {
|
|
33819
|
-
if (
|
|
33820
|
-
|
|
34104
|
+
if (import_core31.VxeUI.modal) {
|
|
34105
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
33821
34106
|
}
|
|
33822
34107
|
}
|
|
33823
34108
|
}
|
|
@@ -33869,8 +34154,8 @@ var grid_default = (
|
|
|
33869
34154
|
} else {
|
|
33870
34155
|
$xeTable.clearPendingRow();
|
|
33871
34156
|
if (isRespMsg) {
|
|
33872
|
-
if (
|
|
33873
|
-
|
|
34157
|
+
if (import_core31.VxeUI.modal) {
|
|
34158
|
+
import_core31.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
33874
34159
|
}
|
|
33875
34160
|
}
|
|
33876
34161
|
if (oldAfterSave) {
|
|
@@ -33892,8 +34177,8 @@ var grid_default = (
|
|
|
33892
34177
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33893
34178
|
} else {
|
|
33894
34179
|
if (isRespMsg) {
|
|
33895
|
-
if (
|
|
33896
|
-
|
|
34180
|
+
if (import_core31.VxeUI.modal) {
|
|
34181
|
+
import_core31.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33897
34182
|
}
|
|
33898
34183
|
}
|
|
33899
34184
|
}
|
|
@@ -33913,8 +34198,8 @@ var grid_default = (
|
|
|
33913
34198
|
return handleSave();
|
|
33914
34199
|
} else {
|
|
33915
34200
|
if (isActiveMsg) {
|
|
33916
|
-
if (
|
|
33917
|
-
|
|
34201
|
+
if (import_core31.VxeUI.modal) {
|
|
34202
|
+
import_core31.VxeUI.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
33918
34203
|
}
|
|
33919
34204
|
}
|
|
33920
34205
|
}
|
|
@@ -34353,10 +34638,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
34353
34638
|
app.component(grid_default.name, grid_default);
|
|
34354
34639
|
}
|
|
34355
34640
|
});
|
|
34356
|
-
if (
|
|
34357
|
-
|
|
34641
|
+
if (import_core32.VxeUI.dynamicApp) {
|
|
34642
|
+
import_core32.VxeUI.dynamicApp.component(grid_default.name, grid_default);
|
|
34358
34643
|
}
|
|
34359
|
-
|
|
34644
|
+
import_core32.VxeUI.component(grid_default);
|
|
34360
34645
|
var Grid = VxeGrid;
|
|
34361
34646
|
|
|
34362
34647
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -35279,15 +35564,15 @@ var zh_CN_default = {
|
|
|
35279
35564
|
__reExport(components_exports, require("@vxe-ui/core"));
|
|
35280
35565
|
var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
35281
35566
|
function install(app, options) {
|
|
35282
|
-
|
|
35567
|
+
import_core33.VxeUI.setConfig(options);
|
|
35283
35568
|
components.forEach((component) => component.install(app));
|
|
35284
35569
|
}
|
|
35285
|
-
if (!
|
|
35570
|
+
if (!import_core33.VxeUI.hasLanguage("zh-CN")) {
|
|
35286
35571
|
const defaultLanguage = "zh-CN";
|
|
35287
|
-
|
|
35288
|
-
|
|
35572
|
+
import_core33.VxeUI.setI18n(defaultLanguage, zh_CN_default);
|
|
35573
|
+
import_core33.VxeUI.setLanguage(defaultLanguage);
|
|
35289
35574
|
}
|
|
35290
|
-
|
|
35575
|
+
import_core33.VxeUI.setTheme("light");
|
|
35291
35576
|
|
|
35292
35577
|
// packages_temp/index.ts
|
|
35293
35578
|
__reExport(index_exports, components_exports, module.exports);
|