vxe-table 4.23.7 → 4.23.8
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/dist/all.esm.js +176 -267
- package/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.d.ts +3 -1
- package/es/components.js +3 -2
- package/es/grid/index.js +1 -1
- package/es/grid/src/grid.js +1 -1
- package/es/grid/src/props.js +1 -1
- package/es/index.esm.js +5 -0
- package/es/index.js +5 -0
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +1 -1
- package/es/table/module/custom/panel.js +1 -1
- package/es/table/module/edit/hook.js +1 -1
- package/es/table/module/export/export-panel.js +1 -1
- package/es/table/module/export/hook.js +1 -1
- package/es/table/module/export/import-panel.js +1 -1
- package/es/table/module/filter/hook.js +1 -1
- package/es/table/module/filter/panel.js +1 -1
- package/es/table/module/keyboard/hook.js +1 -1
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +1 -1
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/render/index.js +1 -1
- package/es/table/src/body.js +1 -1
- package/es/table/src/cell.js +1 -1
- package/es/table/src/columnInfo.js +1 -1
- package/es/table/src/footer.js +1 -1
- package/es/table/src/header.js +1 -1
- package/es/table/src/props.js +1 -1
- package/es/table/src/table.js +1 -1
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +1 -1
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/log.js +1 -1
- package/es/v-x-e-table/index.d.ts +0 -1
- package/es/v-x-e-table/index.js +0 -1
- package/lib/colgroup/index.js +5 -5
- package/lib/column/index.js +5 -5
- package/lib/components.js +7 -6
- package/lib/grid/index.js +4 -4
- package/lib/grid/src/grid.js +22 -22
- package/lib/grid/src/props.js +2 -2
- package/lib/index.common.js +5 -0
- package/lib/index.js +5 -0
- package/lib/index.umd.js +176 -228
- package/lib/index.umd.min.js +3 -3
- package/lib/table/index.js +5 -5
- package/lib/table/module/custom/hook.js +2 -2
- package/lib/table/module/custom/panel.js +13 -13
- package/lib/table/module/edit/hook.js +2 -2
- package/lib/table/module/export/export-panel.js +7 -7
- package/lib/table/module/export/hook.js +24 -24
- package/lib/table/module/export/import-panel.js +5 -5
- package/lib/table/module/filter/hook.js +2 -2
- package/lib/table/module/filter/panel.js +3 -3
- package/lib/table/module/keyboard/hook.js +2 -2
- package/lib/table/module/menu/hook.js +2 -2
- package/lib/table/module/menu/panel.js +2 -2
- package/lib/table/module/validator/hook.js +2 -2
- package/lib/table/render/index.js +2 -2
- package/lib/table/src/body.js +2 -2
- package/lib/table/src/cell.js +2 -2
- package/lib/table/src/columnInfo.js +2 -2
- package/lib/table/src/footer.js +2 -2
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/table.js +17 -17
- package/lib/toolbar/index.js +4 -4
- package/lib/toolbar/src/toolbar.js +3 -3
- package/lib/ui/index.js +1 -3
- package/lib/ui/src/log.js +1 -1
- package/lib/v-x-e-table/index.js +0 -2
- package/package.json +8 -3
- package/packages/colgroup/index.ts +1 -1
- package/packages/column/index.ts +1 -1
- package/packages/components.ts +3 -2
- package/packages/grid/index.ts +1 -1
- package/packages/grid/src/grid.ts +1 -1
- package/packages/grid/src/props.ts +1 -1
- package/packages/index.ts +7 -0
- package/packages/table/index.ts +1 -1
- package/packages/table/module/custom/hook.ts +1 -1
- package/packages/table/module/custom/panel.ts +1 -1
- package/packages/table/module/edit/hook.ts +1 -1
- package/packages/table/module/export/export-panel.ts +1 -1
- package/packages/table/module/export/hook.ts +1 -1
- package/packages/table/module/export/import-panel.ts +1 -1
- package/packages/table/module/filter/hook.ts +1 -1
- package/packages/table/module/filter/panel.ts +1 -1
- package/packages/table/module/keyboard/hook.ts +1 -1
- package/packages/table/module/menu/hook.ts +1 -1
- package/packages/table/module/menu/panel.ts +1 -1
- package/packages/table/module/validator/hook.ts +1 -1
- package/packages/table/render/index.ts +1 -1
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/cell.ts +1 -1
- package/packages/table/src/columnInfo.ts +1 -1
- package/packages/table/src/footer.ts +1 -1
- package/packages/table/src/header.ts +1 -1
- package/packages/table/src/props.ts +1 -1
- package/packages/table/src/table.ts +1 -1
- package/packages/toolbar/index.ts +1 -1
- package/packages/toolbar/src/toolbar.ts +1 -1
- package/packages/ui/index.ts +0 -1
- package/packages/v-x-e-table/index.d.ts +0 -1
- package/packages/v-x-e-table/index.ts +0 -1
- /package/dist/{iconfont.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/dist/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/es/{iconfont.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/es/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/es/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/lib/{iconfont.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/lib/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -1,47 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
2
|
var __export = (target, all) => {
|
|
6
3
|
for (var name in all)
|
|
7
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
5
|
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
-
|
|
19
|
-
// packages_temp/index.ts
|
|
20
|
-
var index_exports = {};
|
|
21
|
-
__export(index_exports, {
|
|
22
|
-
Colgroup: () => Colgroup,
|
|
23
|
-
Column: () => Column,
|
|
24
|
-
Grid: () => Grid,
|
|
25
|
-
Table: () => Table,
|
|
26
|
-
Toolbar: () => Toolbar,
|
|
27
|
-
VXETable: () => VXETable,
|
|
28
|
-
VxeColgroup: () => VxeColgroup,
|
|
29
|
-
VxeColumn: () => VxeColumn,
|
|
30
|
-
VxeGrid: () => VxeGrid,
|
|
31
|
-
VxeTable: () => VxeTable,
|
|
32
|
-
VxeToolbar: () => VxeToolbar,
|
|
33
|
-
_t: () => _t,
|
|
34
|
-
config: () => config,
|
|
35
|
-
default: () => index_default,
|
|
36
|
-
install: () => install,
|
|
37
|
-
modal: () => modal,
|
|
38
|
-
print: () => print,
|
|
39
|
-
readFile: () => readFile,
|
|
40
|
-
saveFile: () => saveFile,
|
|
41
|
-
setup: () => setup,
|
|
42
|
-
t: () => t,
|
|
43
|
-
version: () => version
|
|
44
|
-
});
|
|
45
6
|
|
|
46
7
|
// packages_temp/components.ts
|
|
47
8
|
var components_exports = {};
|
|
@@ -51,39 +12,17 @@ __export(components_exports, {
|
|
|
51
12
|
Grid: () => Grid,
|
|
52
13
|
Table: () => Table,
|
|
53
14
|
Toolbar: () => Toolbar,
|
|
54
|
-
VXETable: () => VXETable,
|
|
55
15
|
VxeColgroup: () => VxeColgroup,
|
|
56
16
|
VxeColumn: () => VxeColumn,
|
|
57
17
|
VxeGrid: () => VxeGrid,
|
|
58
18
|
VxeTable: () => VxeTable,
|
|
59
19
|
VxeToolbar: () => VxeToolbar,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
install: () => install,
|
|
63
|
-
modal: () => modal,
|
|
64
|
-
print: () => print,
|
|
65
|
-
readFile: () => readFile,
|
|
66
|
-
saveFile: () => saveFile,
|
|
67
|
-
setup: () => setup,
|
|
68
|
-
t: () => t,
|
|
69
|
-
version: () => version
|
|
20
|
+
VxeUI: () => VxeUI32,
|
|
21
|
+
install: () => install
|
|
70
22
|
});
|
|
23
|
+
import { VxeUI as VxeUI32 } from "@vxe-ui/core";
|
|
71
24
|
|
|
72
25
|
// packages_temp/ui/index.ts
|
|
73
|
-
var ui_exports = {};
|
|
74
|
-
__export(ui_exports, {
|
|
75
|
-
VXETable: () => VXETable,
|
|
76
|
-
_t: () => _t,
|
|
77
|
-
config: () => config,
|
|
78
|
-
default: () => ui_default,
|
|
79
|
-
modal: () => modal,
|
|
80
|
-
print: () => print,
|
|
81
|
-
readFile: () => readFile,
|
|
82
|
-
saveFile: () => saveFile,
|
|
83
|
-
setup: () => setup,
|
|
84
|
-
t: () => t,
|
|
85
|
-
version: () => version
|
|
86
|
-
});
|
|
87
26
|
import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
88
27
|
|
|
89
28
|
// packages_temp/ui/src/utils.ts
|
|
@@ -134,9 +73,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
134
73
|
}
|
|
135
74
|
|
|
136
75
|
// packages_temp/ui/index.ts
|
|
137
|
-
|
|
138
|
-
import * as core_star from "@vxe-ui/core";
|
|
139
|
-
var version = "4.23.7";
|
|
76
|
+
var version = "4.23.8";
|
|
140
77
|
VxeUI2.version = version;
|
|
141
78
|
VxeUI2.tableVersion = version;
|
|
142
79
|
VxeUI2.setConfig({
|
|
@@ -541,68 +478,9 @@ var _t = (content, args) => {
|
|
|
541
478
|
return getFuncText(content, args);
|
|
542
479
|
};
|
|
543
480
|
VxeUI2._t = _t;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
};
|
|
548
|
-
var readFile = (options) => {
|
|
549
|
-
return VxeUI2.readFile(options);
|
|
550
|
-
};
|
|
551
|
-
var print = (options) => {
|
|
552
|
-
return VxeUI2.print(options);
|
|
553
|
-
};
|
|
554
|
-
var modal = {
|
|
555
|
-
/**
|
|
556
|
-
* 已废弃,兼容老版本
|
|
557
|
-
* @deprecated
|
|
558
|
-
*/
|
|
559
|
-
get(id) {
|
|
560
|
-
return VxeUI2.modal.get(id);
|
|
561
|
-
},
|
|
562
|
-
/**
|
|
563
|
-
* 已废弃,兼容老版本
|
|
564
|
-
* @deprecated
|
|
565
|
-
*/
|
|
566
|
-
close(id) {
|
|
567
|
-
return VxeUI2.modal.close(id);
|
|
568
|
-
},
|
|
569
|
-
/**
|
|
570
|
-
* 已废弃,兼容老版本
|
|
571
|
-
* @deprecated
|
|
572
|
-
*/
|
|
573
|
-
open(options) {
|
|
574
|
-
return VxeUI2.modal.open(options);
|
|
575
|
-
},
|
|
576
|
-
/**
|
|
577
|
-
* 已废弃,兼容老版本
|
|
578
|
-
* @deprecated
|
|
579
|
-
*/
|
|
580
|
-
alert(content, title, options) {
|
|
581
|
-
return VxeUI2.modal.alert(content, title, options);
|
|
582
|
-
},
|
|
583
|
-
/**
|
|
584
|
-
* 已废弃,兼容老版本
|
|
585
|
-
* @deprecated
|
|
586
|
-
*/
|
|
587
|
-
confirm(content, title, options) {
|
|
588
|
-
return VxeUI2.modal.confirm(content, title, options);
|
|
589
|
-
},
|
|
590
|
-
/**
|
|
591
|
-
* 已废弃,兼容老版本
|
|
592
|
-
* @deprecated
|
|
593
|
-
*/
|
|
594
|
-
message(content, options) {
|
|
595
|
-
return VxeUI2.modal.message(content, options);
|
|
596
|
-
},
|
|
597
|
-
/**
|
|
598
|
-
* 已废弃,兼容老版本
|
|
599
|
-
* @deprecated
|
|
600
|
-
*/
|
|
601
|
-
notification(content, title, options) {
|
|
602
|
-
return VxeUI2.modal.notification(content, title, options);
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
var ui_default = VxeUI2;
|
|
481
|
+
|
|
482
|
+
// packages_temp/column/index.ts
|
|
483
|
+
import { VxeUI as VxeUI6 } from "@vxe-ui/core";
|
|
606
484
|
|
|
607
485
|
// packages_temp/table/src/column.ts
|
|
608
486
|
import { h as h2, onUnmounted, inject, ref, provide, onMounted, createCommentVNode } from "vue";
|
|
@@ -617,6 +495,7 @@ import XEUtils4 from "xe-utils";
|
|
|
617
495
|
|
|
618
496
|
// packages_temp/table/src/columnInfo.ts
|
|
619
497
|
import XEUtils3 from "xe-utils";
|
|
498
|
+
import { VxeUI as VxeUI4 } from "@vxe-ui/core";
|
|
620
499
|
|
|
621
500
|
// packages_temp/ui/src/dom.ts
|
|
622
501
|
import XEUtils2 from "xe-utils";
|
|
@@ -958,7 +837,7 @@ function getPopupAppendElement(appendTo) {
|
|
|
958
837
|
// packages_temp/ui/src/log.ts
|
|
959
838
|
import { VxeUI as VxeUI3 } from "@vxe-ui/core";
|
|
960
839
|
var { log } = VxeUI3;
|
|
961
|
-
var tableVersion = `table v${"4.23.
|
|
840
|
+
var tableVersion = `table v${"4.23.8"}`;
|
|
962
841
|
function createComponentLog(name) {
|
|
963
842
|
const uiVersion = VxeUI3.uiVersion ? `ui v${VxeUI3.uiVersion}` : "";
|
|
964
843
|
const ganttVersion = VxeUI3.ganttVersion ? `gantt v${VxeUI3.ganttVersion}` : "";
|
|
@@ -974,7 +853,7 @@ var errLog = log.create("error", tableVersion);
|
|
|
974
853
|
|
|
975
854
|
// packages_temp/table/src/columnInfo.ts
|
|
976
855
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("table");
|
|
977
|
-
var { getI18n, formats, renderer } =
|
|
856
|
+
var { getI18n, formats, renderer } = VxeUI4;
|
|
978
857
|
var ColumnInfo = class {
|
|
979
858
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
980
859
|
constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
@@ -2250,6 +2129,7 @@ function handleCustomStoreConfig($xeTable) {
|
|
|
2250
2129
|
// packages_temp/table/src/cell.ts
|
|
2251
2130
|
import { h } from "vue";
|
|
2252
2131
|
import XEUtils6 from "xe-utils";
|
|
2132
|
+
import { VxeUI as VxeUI5 } from "@vxe-ui/core";
|
|
2253
2133
|
|
|
2254
2134
|
// packages_temp/ui/src/vn.ts
|
|
2255
2135
|
import XEUtils5 from "xe-utils";
|
|
@@ -2301,7 +2181,7 @@ function getSlotVNs(vns) {
|
|
|
2301
2181
|
}
|
|
2302
2182
|
|
|
2303
2183
|
// packages_temp/table/src/cell.ts
|
|
2304
|
-
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } =
|
|
2184
|
+
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = VxeUI5;
|
|
2305
2185
|
function renderTitlePrefixIcon(params) {
|
|
2306
2186
|
const { $table, column } = params;
|
|
2307
2187
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
@@ -3742,13 +3622,16 @@ var VxeColumn = Object.assign({}, column_default, {
|
|
|
3742
3622
|
app.component("VxeTableColumn", column_default);
|
|
3743
3623
|
}
|
|
3744
3624
|
});
|
|
3745
|
-
if (
|
|
3746
|
-
|
|
3747
|
-
|
|
3625
|
+
if (VxeUI6.dynamicApp) {
|
|
3626
|
+
VxeUI6.dynamicApp.component(column_default.name, column_default);
|
|
3627
|
+
VxeUI6.dynamicApp.component("VxeTableColumn", column_default);
|
|
3748
3628
|
}
|
|
3749
|
-
|
|
3629
|
+
VxeUI6.component(column_default);
|
|
3750
3630
|
var Column = VxeColumn;
|
|
3751
3631
|
|
|
3632
|
+
// packages_temp/colgroup/index.ts
|
|
3633
|
+
import { VxeUI as VxeUI7 } from "@vxe-ui/core";
|
|
3634
|
+
|
|
3752
3635
|
// packages_temp/table/src/group.ts
|
|
3753
3636
|
import { h as h3, onUnmounted as onUnmounted2, provide as provide2, inject as inject2, ref as ref2, onMounted as onMounted2, createCommentVNode as createCommentVNode2 } from "vue";
|
|
3754
3637
|
var group_default = defineVxeComponent({
|
|
@@ -3802,19 +3685,27 @@ var VxeColgroup = Object.assign({}, group_default, {
|
|
|
3802
3685
|
app.component("VxeTableColgroup", group_default);
|
|
3803
3686
|
}
|
|
3804
3687
|
});
|
|
3805
|
-
if (
|
|
3806
|
-
|
|
3807
|
-
|
|
3688
|
+
if (VxeUI7.dynamicApp) {
|
|
3689
|
+
VxeUI7.dynamicApp.component(group_default.name, group_default);
|
|
3690
|
+
VxeUI7.dynamicApp.component("VxeTableColgroup", group_default);
|
|
3808
3691
|
}
|
|
3809
|
-
|
|
3692
|
+
VxeUI7.component(group_default);
|
|
3810
3693
|
var Colgroup = VxeColgroup;
|
|
3811
3694
|
|
|
3695
|
+
// packages_temp/grid/index.ts
|
|
3696
|
+
import { VxeUI as VxeUI31 } from "@vxe-ui/core";
|
|
3697
|
+
|
|
3812
3698
|
// packages_temp/grid/src/grid.ts
|
|
3813
3699
|
import { h as h15, ref as ref13, computed as computed7, provide as provide5, reactive as reactive9, onBeforeUnmount as onBeforeUnmount3, watch as watch4, nextTick as nextTick15, onMounted as onMounted7 } from "vue";
|
|
3700
|
+
import { VxeUI as VxeUI30 } from "@vxe-ui/core";
|
|
3814
3701
|
import XEUtils27 from "xe-utils";
|
|
3815
3702
|
|
|
3703
|
+
// packages_temp/grid/src/props.ts
|
|
3704
|
+
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
3705
|
+
|
|
3816
3706
|
// packages_temp/table/src/props.ts
|
|
3817
|
-
|
|
3707
|
+
import { VxeUI as VxeUI8 } from "@vxe-ui/core";
|
|
3708
|
+
var { getConfig: getConfig3 } = VxeUI8;
|
|
3818
3709
|
var tableProps = {
|
|
3819
3710
|
/** 基本属性 */
|
|
3820
3711
|
id: [String, Function],
|
|
@@ -4144,7 +4035,7 @@ var tableProps = {
|
|
|
4144
4035
|
};
|
|
4145
4036
|
|
|
4146
4037
|
// packages_temp/grid/src/props.ts
|
|
4147
|
-
var { getConfig: getConfig4 } =
|
|
4038
|
+
var { getConfig: getConfig4 } = VxeUI9;
|
|
4148
4039
|
var gridProps = {
|
|
4149
4040
|
...tableProps,
|
|
4150
4041
|
layouts: Array,
|
|
@@ -4303,9 +4194,13 @@ var gridEmits = [
|
|
|
4303
4194
|
"zoom"
|
|
4304
4195
|
];
|
|
4305
4196
|
|
|
4197
|
+
// packages_temp/table/index.ts
|
|
4198
|
+
import { VxeUI as VxeUI27 } from "@vxe-ui/core";
|
|
4199
|
+
|
|
4306
4200
|
// packages_temp/table/src/table.ts
|
|
4307
4201
|
import { h as h13, reactive as reactive7, ref as ref11, provide as provide4, inject as inject11, nextTick as nextTick13, Teleport as Teleport3, onActivated, onDeactivated, onBeforeUnmount, onUnmounted as onUnmounted7, watch as watch3, computed as computed4, onMounted as onMounted6 } from "vue";
|
|
4308
4202
|
import XEUtils24 from "xe-utils";
|
|
4203
|
+
import { VxeUI as VxeUI26 } from "@vxe-ui/core";
|
|
4309
4204
|
|
|
4310
4205
|
// packages_temp/ui/src/anime.ts
|
|
4311
4206
|
import XEUtils7 from "xe-utils";
|
|
@@ -4360,7 +4255,8 @@ function getCrossTableDragRowInfo() {
|
|
|
4360
4255
|
// packages_temp/table/src/body.ts
|
|
4361
4256
|
import { h as h4, ref as ref3, inject as inject3, nextTick, onMounted as onMounted3, onUnmounted as onUnmounted3 } from "vue";
|
|
4362
4257
|
import XEUtils8 from "xe-utils";
|
|
4363
|
-
|
|
4258
|
+
import { VxeUI as VxeUI10 } from "@vxe-ui/core";
|
|
4259
|
+
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = VxeUI10;
|
|
4364
4260
|
var sourceType = "table";
|
|
4365
4261
|
var renderType = "body";
|
|
4366
4262
|
var body_default = defineVxeComponent({
|
|
@@ -5221,7 +5117,8 @@ var body_default = defineVxeComponent({
|
|
|
5221
5117
|
// packages_temp/table/src/header.ts
|
|
5222
5118
|
import { h as h5, ref as ref4, inject as inject4, nextTick as nextTick2, watch as watch2, onMounted as onMounted4, onUnmounted as onUnmounted4 } from "vue";
|
|
5223
5119
|
import XEUtils9 from "xe-utils";
|
|
5224
|
-
|
|
5120
|
+
import { VxeUI as VxeUI11 } from "@vxe-ui/core";
|
|
5121
|
+
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = VxeUI11;
|
|
5225
5122
|
var sourceType2 = "table";
|
|
5226
5123
|
var renderType2 = "header";
|
|
5227
5124
|
var header_default = defineVxeComponent({
|
|
@@ -5744,7 +5641,8 @@ var header_default = defineVxeComponent({
|
|
|
5744
5641
|
// packages_temp/table/src/footer.ts
|
|
5745
5642
|
import { h as h6, ref as ref5, inject as inject5, nextTick as nextTick3, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
|
|
5746
5643
|
import XEUtils10 from "xe-utils";
|
|
5747
|
-
|
|
5644
|
+
import { VxeUI as VxeUI12 } from "@vxe-ui/core";
|
|
5645
|
+
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = VxeUI12;
|
|
5748
5646
|
var sourceType3 = "table";
|
|
5749
5647
|
var renderType3 = "footer";
|
|
5750
5648
|
var footer_default = defineVxeComponent({
|
|
@@ -6082,9 +5980,10 @@ var footer_default = defineVxeComponent({
|
|
|
6082
5980
|
|
|
6083
5981
|
// packages_temp/table/module/custom/panel.ts
|
|
6084
5982
|
import { h as h7, inject as inject6, ref as ref6, provide as provide3, nextTick as nextTick4, TransitionGroup, reactive as reactive3, onUnmounted as onUnmounted6 } from "vue";
|
|
5983
|
+
import { VxeUI as VxeUI13 } from "@vxe-ui/core";
|
|
6085
5984
|
import XEUtils11 from "xe-utils";
|
|
6086
5985
|
var { errLog: errLog3 } = createComponentLog("table");
|
|
6087
|
-
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } =
|
|
5986
|
+
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = VxeUI13;
|
|
6088
5987
|
function createInternalData2() {
|
|
6089
5988
|
return {
|
|
6090
5989
|
// teleportTo: undefined,
|
|
@@ -6106,11 +6005,11 @@ var panel_default = defineVxeComponent({
|
|
|
6106
6005
|
},
|
|
6107
6006
|
setup(props, context) {
|
|
6108
6007
|
const xID = XEUtils11.uniqueId();
|
|
6109
|
-
const VxeUIModalComponent =
|
|
6110
|
-
const VxeUIDrawerComponent =
|
|
6111
|
-
const VxeUIButtonComponent =
|
|
6112
|
-
const VxeUINumberInputComponent =
|
|
6113
|
-
const VxeUIRadioGroupComponent =
|
|
6008
|
+
const VxeUIModalComponent = VxeUI13.getComponent("VxeModal");
|
|
6009
|
+
const VxeUIDrawerComponent = VxeUI13.getComponent("VxeDrawer");
|
|
6010
|
+
const VxeUIButtonComponent = VxeUI13.getComponent("VxeButton");
|
|
6011
|
+
const VxeUINumberInputComponent = VxeUI13.getComponent("VxeNumberInput");
|
|
6012
|
+
const VxeUIRadioGroupComponent = VxeUI13.getComponent("VxeRadioGroup");
|
|
6114
6013
|
const $xeTable = inject6("$xeTable", {});
|
|
6115
6014
|
const { props: tableProps2, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
6116
6015
|
const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
|
|
@@ -6179,8 +6078,8 @@ var panel_default = defineVxeComponent({
|
|
|
6179
6078
|
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
6180
6079
|
};
|
|
6181
6080
|
const resetCustomEvent = ({ $event }) => {
|
|
6182
|
-
if (
|
|
6183
|
-
|
|
6081
|
+
if (VxeUI13.modal) {
|
|
6082
|
+
VxeUI13.modal.confirm({
|
|
6184
6083
|
content: getI18n4("vxe.custom.cstmConfirmRestore"),
|
|
6185
6084
|
className: "vxe-table--ignore-clear",
|
|
6186
6085
|
escClosable: true
|
|
@@ -6459,8 +6358,8 @@ var panel_default = defineVxeComponent({
|
|
|
6459
6358
|
if (oldAllMaps[newColumn.id]) {
|
|
6460
6359
|
isSelfToChildStatus = true;
|
|
6461
6360
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6462
|
-
if (
|
|
6463
|
-
|
|
6361
|
+
if (VxeUI13.modal) {
|
|
6362
|
+
VxeUI13.modal.message({
|
|
6464
6363
|
status: "error",
|
|
6465
6364
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6466
6365
|
});
|
|
@@ -6480,8 +6379,8 @@ var panel_default = defineVxeComponent({
|
|
|
6480
6379
|
if (oldAllMaps[newColumn.id]) {
|
|
6481
6380
|
isSelfToChildStatus = true;
|
|
6482
6381
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6483
|
-
if (
|
|
6484
|
-
|
|
6382
|
+
if (VxeUI13.modal) {
|
|
6383
|
+
VxeUI13.modal.message({
|
|
6485
6384
|
status: "error",
|
|
6486
6385
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6487
6386
|
});
|
|
@@ -7601,9 +7500,10 @@ var panel_default = defineVxeComponent({
|
|
|
7601
7500
|
|
|
7602
7501
|
// packages_temp/table/module/filter/panel.ts
|
|
7603
7502
|
import { h as h8, ref as ref7, computed, inject as inject7, Teleport } from "vue";
|
|
7503
|
+
import { VxeUI as VxeUI14 } from "@vxe-ui/core";
|
|
7604
7504
|
import XEUtils12 from "xe-utils";
|
|
7605
7505
|
var { warnLog: warnLog3 } = createComponentLog("table");
|
|
7606
|
-
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } =
|
|
7506
|
+
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = VxeUI14;
|
|
7607
7507
|
var panel_default2 = defineVxeComponent({
|
|
7608
7508
|
name: "VxeTableFilterPanel",
|
|
7609
7509
|
props: {
|
|
@@ -7614,7 +7514,7 @@ var panel_default2 = defineVxeComponent({
|
|
|
7614
7514
|
},
|
|
7615
7515
|
setup(props, context) {
|
|
7616
7516
|
const xID = XEUtils12.uniqueId();
|
|
7617
|
-
const VxeUIScrollbarComponent =
|
|
7517
|
+
const VxeUIScrollbarComponent = VxeUI14.getComponent("VxeScrollbar");
|
|
7618
7518
|
const $xeTable = inject7("$xeTable", {});
|
|
7619
7519
|
const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
|
|
7620
7520
|
const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
|
|
@@ -7850,9 +7750,10 @@ var panel_default2 = defineVxeComponent({
|
|
|
7850
7750
|
|
|
7851
7751
|
// packages_temp/table/module/export/import-panel.ts
|
|
7852
7752
|
import { h as h9, ref as ref8, computed as computed2, inject as inject8, reactive as reactive4, nextTick as nextTick5 } from "vue";
|
|
7753
|
+
import { VxeUI as VxeUI15 } from "@vxe-ui/core";
|
|
7853
7754
|
import XEUtils13 from "xe-utils";
|
|
7854
7755
|
var { errLog: errLog4 } = createComponentLog("table");
|
|
7855
|
-
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } =
|
|
7756
|
+
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = VxeUI15;
|
|
7856
7757
|
var import_panel_default = defineVxeComponent({
|
|
7857
7758
|
name: "VxeTableImportPanel",
|
|
7858
7759
|
props: {
|
|
@@ -7866,9 +7767,9 @@ var import_panel_default = defineVxeComponent({
|
|
|
7866
7767
|
}
|
|
7867
7768
|
},
|
|
7868
7769
|
setup(props) {
|
|
7869
|
-
const VxeUIModalComponent =
|
|
7870
|
-
const VxeUIButtonComponent =
|
|
7871
|
-
const VxeUISelectComponent =
|
|
7770
|
+
const VxeUIModalComponent = VxeUI15.getComponent("VxeModal");
|
|
7771
|
+
const VxeUIButtonComponent = VxeUI15.getComponent("VxeButton");
|
|
7772
|
+
const VxeUISelectComponent = VxeUI15.getComponent("VxeSelect");
|
|
7872
7773
|
const $xeTable = inject8("$xeTable", {});
|
|
7873
7774
|
const { computeImportOpts } = $xeTable.getComputeMaps();
|
|
7874
7775
|
const reactData = reactive4({
|
|
@@ -8093,9 +7994,10 @@ var import_panel_default = defineVxeComponent({
|
|
|
8093
7994
|
|
|
8094
7995
|
// packages_temp/table/module/export/export-panel.ts
|
|
8095
7996
|
import { h as h10, ref as ref9, computed as computed3, reactive as reactive5, inject as inject9, nextTick as nextTick6 } from "vue";
|
|
7997
|
+
import { VxeUI as VxeUI16 } from "@vxe-ui/core";
|
|
8096
7998
|
import XEUtils14 from "xe-utils";
|
|
8097
7999
|
var { errLog: errLog5 } = createComponentLog("table");
|
|
8098
|
-
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } =
|
|
8000
|
+
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = VxeUI16;
|
|
8099
8001
|
var export_panel_default = defineVxeComponent({
|
|
8100
8002
|
name: "VxeTableExportPanel",
|
|
8101
8003
|
props: {
|
|
@@ -8109,11 +8011,11 @@ var export_panel_default = defineVxeComponent({
|
|
|
8109
8011
|
}
|
|
8110
8012
|
},
|
|
8111
8013
|
setup(props) {
|
|
8112
|
-
const VxeUIModalComponent =
|
|
8113
|
-
const VxeUIButtonComponent =
|
|
8114
|
-
const VxeUISelectComponent =
|
|
8115
|
-
const VxeUIInputComponent =
|
|
8116
|
-
const VxeUICheckboxComponent =
|
|
8014
|
+
const VxeUIModalComponent = VxeUI16.getComponent("VxeModal");
|
|
8015
|
+
const VxeUIButtonComponent = VxeUI16.getComponent("VxeButton");
|
|
8016
|
+
const VxeUISelectComponent = VxeUI16.getComponent("VxeSelect");
|
|
8017
|
+
const VxeUIInputComponent = VxeUI16.getComponent("VxeInput");
|
|
8018
|
+
const VxeUICheckboxComponent = VxeUI16.getComponent("VxeCheckbox");
|
|
8117
8019
|
const $xeTable = inject9("$xeTable", {});
|
|
8118
8020
|
const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
|
|
8119
8021
|
const reactData = reactive5({
|
|
@@ -8617,7 +8519,8 @@ var export_panel_default = defineVxeComponent({
|
|
|
8617
8519
|
// packages_temp/table/module/menu/panel.ts
|
|
8618
8520
|
import { h as h11, Teleport as Teleport2, inject as inject10, ref as ref10 } from "vue";
|
|
8619
8521
|
import XEUtils15 from "xe-utils";
|
|
8620
|
-
|
|
8522
|
+
import { VxeUI as VxeUI17 } from "@vxe-ui/core";
|
|
8523
|
+
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = VxeUI17;
|
|
8621
8524
|
var panel_default3 = defineVxeComponent({
|
|
8622
8525
|
name: "VxeTableMenuPanel",
|
|
8623
8526
|
setup(props, context) {
|
|
@@ -8781,7 +8684,8 @@ var panel_default3 = defineVxeComponent({
|
|
|
8781
8684
|
// packages_temp/table/module/filter/hook.ts
|
|
8782
8685
|
import { nextTick as nextTick7 } from "vue";
|
|
8783
8686
|
import XEUtils16 from "xe-utils";
|
|
8784
|
-
|
|
8687
|
+
import { VxeUI as VxeUI18 } from "@vxe-ui/core";
|
|
8688
|
+
var { renderer: renderer7, hooks } = VxeUI18;
|
|
8785
8689
|
var tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
|
|
8786
8690
|
var sourceType4 = "table";
|
|
8787
8691
|
hooks.add("tableFilterModule", {
|
|
@@ -9260,7 +9164,8 @@ hooks.add("tableFilterModule", {
|
|
|
9260
9164
|
// packages_temp/table/module/menu/hook.ts
|
|
9261
9165
|
import { nextTick as nextTick8 } from "vue";
|
|
9262
9166
|
import XEUtils17 from "xe-utils";
|
|
9263
|
-
|
|
9167
|
+
import { VxeUI as VxeUI19 } from "@vxe-ui/core";
|
|
9168
|
+
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI19;
|
|
9264
9169
|
var tableMenuMethodKeys = ["closeMenu"];
|
|
9265
9170
|
hooks2.add("tableMenuModule", {
|
|
9266
9171
|
setupTable($xeTable) {
|
|
@@ -9563,8 +9468,9 @@ hooks2.add("tableMenuModule", {
|
|
|
9563
9468
|
// packages_temp/table/module/edit/hook.ts
|
|
9564
9469
|
import { reactive as reactive6, nextTick as nextTick9 } from "vue";
|
|
9565
9470
|
import XEUtils18 from "xe-utils";
|
|
9471
|
+
import { VxeUI as VxeUI20 } from "@vxe-ui/core";
|
|
9566
9472
|
var { warnLog: warnLog4, errLog: errLog6 } = createComponentLog("table");
|
|
9567
|
-
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } =
|
|
9473
|
+
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = VxeUI20;
|
|
9568
9474
|
var tableEditMethodKeys = ["insert", "insertAt", "insertNextAt", "insertChild", "insertChildAt", "insertChildNextAt", "remove", "removeCheckboxRow", "removeRadioRow", "removeCurrentRow", "getRecordset", "getInsertRecords", "getRemoveRecords", "getUpdateRecords", "getEditRecord", "getActiveRecord", "getEditCell", "getSelectedCell", "clearEdit", "clearActived", "clearSelected", "isEditByRow", "isActiveByRow", "setEditRow", "setActiveRow", "setEditCell", "setActiveCell", "setSelectCell"];
|
|
9569
9475
|
hooks3.add("tableEditModule", {
|
|
9570
9476
|
setupTable($xeTable) {
|
|
@@ -10600,6 +10506,7 @@ hooks3.add("tableEditModule", {
|
|
|
10600
10506
|
// packages_temp/table/module/export/hook.ts
|
|
10601
10507
|
import { nextTick as nextTick10 } from "vue";
|
|
10602
10508
|
import XEUtils19 from "xe-utils";
|
|
10509
|
+
import { VxeUI as VxeUI21 } from "@vxe-ui/core";
|
|
10603
10510
|
|
|
10604
10511
|
// packages_temp/table/module/export/util.ts
|
|
10605
10512
|
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}';
|
|
@@ -10624,7 +10531,7 @@ function createHtmlPage(opts, content) {
|
|
|
10624
10531
|
|
|
10625
10532
|
// packages_temp/table/module/export/hook.ts
|
|
10626
10533
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
10627
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
10534
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI21;
|
|
10628
10535
|
var htmlCellElem;
|
|
10629
10536
|
var csvBOM = "\uFEFF";
|
|
10630
10537
|
var enterSymbol = "\r\n";
|
|
@@ -11583,11 +11490,11 @@ hooks4.add("tableExportModule", {
|
|
|
11583
11490
|
const blob = getExportBlobByContent(content, opts);
|
|
11584
11491
|
return Promise.resolve({ type, content, blob });
|
|
11585
11492
|
}
|
|
11586
|
-
if (
|
|
11587
|
-
|
|
11493
|
+
if (VxeUI21.saveFile) {
|
|
11494
|
+
VxeUI21.saveFile({ filename, type, content }).then(() => {
|
|
11588
11495
|
if (opts.message !== false) {
|
|
11589
|
-
if (
|
|
11590
|
-
|
|
11496
|
+
if (VxeUI21.modal) {
|
|
11497
|
+
VxeUI21.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
11591
11498
|
}
|
|
11592
11499
|
}
|
|
11593
11500
|
});
|
|
@@ -11674,8 +11581,8 @@ hooks4.add("tableExportModule", {
|
|
|
11674
11581
|
loadRest = $xeTable.reloadData(data);
|
|
11675
11582
|
}
|
|
11676
11583
|
if (opts.message !== false) {
|
|
11677
|
-
if (
|
|
11678
|
-
|
|
11584
|
+
if (VxeUI21.modal) {
|
|
11585
|
+
VxeUI21.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
11679
11586
|
}
|
|
11680
11587
|
}
|
|
11681
11588
|
return loadRest.then(() => {
|
|
@@ -11685,8 +11592,8 @@ hooks4.add("tableExportModule", {
|
|
|
11685
11592
|
});
|
|
11686
11593
|
});
|
|
11687
11594
|
} else if (opts.message !== false) {
|
|
11688
|
-
if (
|
|
11689
|
-
|
|
11595
|
+
if (VxeUI21.modal) {
|
|
11596
|
+
VxeUI21.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
11690
11597
|
}
|
|
11691
11598
|
if (_importReject) {
|
|
11692
11599
|
_importReject({ status: false, msg: "field mismatching" });
|
|
@@ -11699,8 +11606,8 @@ hooks4.add("tableExportModule", {
|
|
|
11699
11606
|
const importOpts = computeImportOpts.value;
|
|
11700
11607
|
if (!importMethod && !XEUtils19.includes(XEUtils19.keys(importOpts._typeMaps), type)) {
|
|
11701
11608
|
if (opts.message !== false) {
|
|
11702
|
-
if (
|
|
11703
|
-
|
|
11609
|
+
if (VxeUI21.modal) {
|
|
11610
|
+
VxeUI21.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
|
|
11704
11611
|
}
|
|
11705
11612
|
}
|
|
11706
11613
|
const params = { status: false, msg: "type error" };
|
|
@@ -11941,8 +11848,8 @@ hooks4.add("tableExportModule", {
|
|
|
11941
11848
|
return nextTick10();
|
|
11942
11849
|
};
|
|
11943
11850
|
const handleCloseExport = () => {
|
|
11944
|
-
if (
|
|
11945
|
-
return
|
|
11851
|
+
if (VxeUI21.modal) {
|
|
11852
|
+
return VxeUI21.modal.close("VXE_EXPORT_MODAL");
|
|
11946
11853
|
}
|
|
11947
11854
|
return Promise.resolve();
|
|
11948
11855
|
};
|
|
@@ -12279,7 +12186,7 @@ hooks4.add("tableExportModule", {
|
|
|
12279
12186
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
12280
12187
|
}
|
|
12281
12188
|
}
|
|
12282
|
-
return
|
|
12189
|
+
return VxeUI21.readFile(opts).catch((e) => {
|
|
12283
12190
|
if (afterImportMethod) {
|
|
12284
12191
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
12285
12192
|
}
|
|
@@ -12290,10 +12197,10 @@ hooks4.add("tableExportModule", {
|
|
|
12290
12197
|
});
|
|
12291
12198
|
},
|
|
12292
12199
|
saveFile(options) {
|
|
12293
|
-
return
|
|
12200
|
+
return VxeUI21.saveFile(options);
|
|
12294
12201
|
},
|
|
12295
12202
|
readFile(options) {
|
|
12296
|
-
return
|
|
12203
|
+
return VxeUI21.readFile(options);
|
|
12297
12204
|
},
|
|
12298
12205
|
print(options) {
|
|
12299
12206
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -12329,10 +12236,10 @@ hooks4.add("tableExportModule", {
|
|
|
12329
12236
|
const printMethod = opts.printMethod;
|
|
12330
12237
|
const tableHtml = opts.html || opts.content;
|
|
12331
12238
|
return new Promise((resolve, reject) => {
|
|
12332
|
-
if (
|
|
12239
|
+
if (VxeUI21.print) {
|
|
12333
12240
|
if (tableHtml) {
|
|
12334
12241
|
resolve(
|
|
12335
|
-
|
|
12242
|
+
VxeUI21.print({
|
|
12336
12243
|
title: printTitle,
|
|
12337
12244
|
html: tableHtml,
|
|
12338
12245
|
customStyle: opts.style,
|
|
@@ -12371,7 +12278,7 @@ hooks4.add("tableExportModule", {
|
|
|
12371
12278
|
} else {
|
|
12372
12279
|
resolve(
|
|
12373
12280
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
12374
|
-
return
|
|
12281
|
+
return VxeUI21.print({
|
|
12375
12282
|
title: printTitle,
|
|
12376
12283
|
html: content,
|
|
12377
12284
|
customStyle: opts.style,
|
|
@@ -12434,8 +12341,8 @@ hooks4.add("tableExportModule", {
|
|
|
12434
12341
|
});
|
|
12435
12342
|
},
|
|
12436
12343
|
closeImport() {
|
|
12437
|
-
if (
|
|
12438
|
-
return
|
|
12344
|
+
if (VxeUI21.modal) {
|
|
12345
|
+
return VxeUI21.modal.close("VXE_IMPORT_MODAL");
|
|
12439
12346
|
}
|
|
12440
12347
|
return Promise.resolve();
|
|
12441
12348
|
},
|
|
@@ -12454,8 +12361,8 @@ hooks4.add("tableExportModule", {
|
|
|
12454
12361
|
const isTree = !!treeConfig;
|
|
12455
12362
|
if (isTree) {
|
|
12456
12363
|
if (defOpts.message) {
|
|
12457
|
-
if (
|
|
12458
|
-
|
|
12364
|
+
if (VxeUI21.modal) {
|
|
12365
|
+
VxeUI21.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
12459
12366
|
}
|
|
12460
12367
|
}
|
|
12461
12368
|
return;
|
|
@@ -12533,7 +12440,8 @@ hooks4.add("tableExportModule", {
|
|
|
12533
12440
|
|
|
12534
12441
|
// packages_temp/table/module/keyboard/hook.ts
|
|
12535
12442
|
import XEUtils20 from "xe-utils";
|
|
12536
|
-
|
|
12443
|
+
import { VxeUI as VxeUI22 } from "@vxe-ui/core";
|
|
12444
|
+
var { hooks: hooks5 } = VxeUI22;
|
|
12537
12445
|
hooks5.add("tableKeyboardModule", {
|
|
12538
12446
|
setupTable($xeTable) {
|
|
12539
12447
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -12996,8 +12904,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
12996
12904
|
// packages_temp/table/module/validator/hook.ts
|
|
12997
12905
|
import { nextTick as nextTick11 } from "vue";
|
|
12998
12906
|
import XEUtils21 from "xe-utils";
|
|
12907
|
+
import { VxeUI as VxeUI23 } from "@vxe-ui/core";
|
|
12999
12908
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
13000
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
12909
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI23;
|
|
13001
12910
|
var Rule = class {
|
|
13002
12911
|
constructor(rule) {
|
|
13003
12912
|
Object.assign(this, {
|
|
@@ -13549,10 +13458,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
13549
13458
|
|
|
13550
13459
|
// packages_temp/table/module/custom/hook.ts
|
|
13551
13460
|
import { nextTick as nextTick12 } from "vue";
|
|
13461
|
+
import { VxeUI as VxeUI24 } from "@vxe-ui/core";
|
|
13552
13462
|
import XEUtils22 from "xe-utils";
|
|
13553
13463
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
13554
13464
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
13555
|
-
|
|
13465
|
+
VxeUI24.hooks.add("tableCustomModule", {
|
|
13556
13466
|
setupTable($xeTable) {
|
|
13557
13467
|
const { reactData, internalData } = $xeTable;
|
|
13558
13468
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -14018,8 +13928,9 @@ ui_exports.VxeUI.hooks.add("tableCustomModule", {
|
|
|
14018
13928
|
// packages_temp/table/render/index.ts
|
|
14019
13929
|
import { h as h12, resolveComponent } from "vue";
|
|
14020
13930
|
import XEUtils23 from "xe-utils";
|
|
13931
|
+
import { VxeUI as VxeUI25 } from "@vxe-ui/core";
|
|
14021
13932
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
14022
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
13933
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI25;
|
|
14023
13934
|
var componentDefaultModelProp = "modelValue";
|
|
14024
13935
|
var defaultCompProps = {};
|
|
14025
13936
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -15602,7 +15513,7 @@ renderer10.mixin({
|
|
|
15602
15513
|
|
|
15603
15514
|
// packages_temp/table/src/table.ts
|
|
15604
15515
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
15605
|
-
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } =
|
|
15516
|
+
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } = VxeUI26;
|
|
15606
15517
|
var supportMaxRow = 5e6;
|
|
15607
15518
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
15608
15519
|
var maxYHeight = 5e6;
|
|
@@ -15618,8 +15529,8 @@ var table_default = defineVxeComponent({
|
|
|
15618
15529
|
const xID = XEUtils24.uniqueId();
|
|
15619
15530
|
const browseObj = XEUtils24.browse();
|
|
15620
15531
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
15621
|
-
const VxeUILoadingComponent =
|
|
15622
|
-
const VxeUITooltipComponent =
|
|
15532
|
+
const VxeUILoadingComponent = VxeUI26.getComponent("VxeLoading");
|
|
15533
|
+
const VxeUITooltipComponent = VxeUI26.getComponent("VxeTooltip");
|
|
15623
15534
|
const $xeModal = inject11("$xeModal", null);
|
|
15624
15535
|
const $xeTabs = inject11("$xeTabs", null);
|
|
15625
15536
|
const $xeParentTable = inject11("$xeTable", null);
|
|
@@ -21311,8 +21222,8 @@ var table_default = defineVxeComponent({
|
|
|
21311
21222
|
const targetColumn = getRootColumn($xeTable, column);
|
|
21312
21223
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
21313
21224
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
21314
|
-
if (
|
|
21315
|
-
|
|
21225
|
+
if (VxeUI26.modal) {
|
|
21226
|
+
VxeUI26.modal.message({
|
|
21316
21227
|
status: "error",
|
|
21317
21228
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
21318
21229
|
});
|
|
@@ -22497,8 +22408,8 @@ var table_default = defineVxeComponent({
|
|
|
22497
22408
|
}
|
|
22498
22409
|
const confList = fieldOrColumns ? XEUtils24.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
22499
22410
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
22500
|
-
if (
|
|
22501
|
-
|
|
22411
|
+
if (VxeUI26.modal) {
|
|
22412
|
+
VxeUI26.modal.message({
|
|
22502
22413
|
status: "error",
|
|
22503
22414
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
22504
22415
|
});
|
|
@@ -26455,8 +26366,8 @@ var table_default = defineVxeComponent({
|
|
|
26455
26366
|
if (oldAllMaps[newRowid]) {
|
|
26456
26367
|
isSelfToChildStatus = true;
|
|
26457
26368
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
26458
|
-
if (
|
|
26459
|
-
|
|
26369
|
+
if (VxeUI26.modal) {
|
|
26370
|
+
VxeUI26.modal.message({
|
|
26460
26371
|
status: "error",
|
|
26461
26372
|
content: getI18n12("vxe.error.treeDragChild")
|
|
26462
26373
|
});
|
|
@@ -26479,8 +26390,8 @@ var table_default = defineVxeComponent({
|
|
|
26479
26390
|
if (oldAllMaps[newRowid]) {
|
|
26480
26391
|
isSelfToChildStatus = true;
|
|
26481
26392
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
26482
|
-
if (
|
|
26483
|
-
|
|
26393
|
+
if (VxeUI26.modal) {
|
|
26394
|
+
VxeUI26.modal.message({
|
|
26484
26395
|
status: "error",
|
|
26485
26396
|
content: getI18n12("vxe.error.treeDragChild")
|
|
26486
26397
|
});
|
|
@@ -27120,8 +27031,8 @@ var table_default = defineVxeComponent({
|
|
|
27120
27031
|
if (oldAllMaps[newColumn.id]) {
|
|
27121
27032
|
isSelfToChildStatus = true;
|
|
27122
27033
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27123
|
-
if (
|
|
27124
|
-
|
|
27034
|
+
if (VxeUI26.modal) {
|
|
27035
|
+
VxeUI26.modal.message({
|
|
27125
27036
|
status: "error",
|
|
27126
27037
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27127
27038
|
});
|
|
@@ -27144,8 +27055,8 @@ var table_default = defineVxeComponent({
|
|
|
27144
27055
|
if (oldAllMaps[newColumn.id]) {
|
|
27145
27056
|
isSelfToChildStatus = true;
|
|
27146
27057
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27147
|
-
if (
|
|
27148
|
-
|
|
27058
|
+
if (VxeUI26.modal) {
|
|
27059
|
+
VxeUI26.modal.message({
|
|
27149
27060
|
status: "error",
|
|
27150
27061
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27151
27062
|
});
|
|
@@ -29203,7 +29114,7 @@ var table_default = defineVxeComponent({
|
|
|
29203
29114
|
watch3(() => props.maxHeight, () => {
|
|
29204
29115
|
reLayoutFlag.value++;
|
|
29205
29116
|
});
|
|
29206
|
-
watch3(() =>
|
|
29117
|
+
watch3(() => VxeUI26.getLanguage(), () => {
|
|
29207
29118
|
reLayoutFlag.value++;
|
|
29208
29119
|
});
|
|
29209
29120
|
watch3(computeIsVScrollbar, () => {
|
|
@@ -29763,19 +29674,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
29763
29674
|
var tableHandle = {
|
|
29764
29675
|
useCellView
|
|
29765
29676
|
};
|
|
29766
|
-
if (
|
|
29767
|
-
|
|
29677
|
+
if (VxeUI27.dynamicApp) {
|
|
29678
|
+
VxeUI27.dynamicApp.component(table_default.name, table_default);
|
|
29768
29679
|
}
|
|
29769
|
-
|
|
29770
|
-
|
|
29680
|
+
VxeUI27.component(table_default);
|
|
29681
|
+
VxeUI27.tableHandle = tableHandle;
|
|
29771
29682
|
var Table = VxeTable;
|
|
29772
29683
|
var table_default2 = VxeTable;
|
|
29773
29684
|
|
|
29685
|
+
// packages_temp/toolbar/index.ts
|
|
29686
|
+
import { VxeUI as VxeUI29 } from "@vxe-ui/core";
|
|
29687
|
+
|
|
29774
29688
|
// packages_temp/toolbar/src/toolbar.ts
|
|
29775
29689
|
import { h as h14, ref as ref12, computed as computed6, inject as inject12, createCommentVNode as createCommentVNode3, reactive as reactive8, nextTick as nextTick14, onBeforeUnmount as onBeforeUnmount2 } from "vue";
|
|
29776
29690
|
import XEUtils26 from "xe-utils";
|
|
29691
|
+
import { VxeUI as VxeUI28 } from "@vxe-ui/core";
|
|
29777
29692
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
29778
|
-
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } =
|
|
29693
|
+
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI28;
|
|
29779
29694
|
function createReactData2() {
|
|
29780
29695
|
return {
|
|
29781
29696
|
isRefresh: false,
|
|
@@ -29829,7 +29744,7 @@ var toolbar_default = defineVxeComponent({
|
|
|
29829
29744
|
setup(props, context) {
|
|
29830
29745
|
const { slots, emit } = context;
|
|
29831
29746
|
const xID = XEUtils26.uniqueId();
|
|
29832
|
-
const VxeUIButtonComponent =
|
|
29747
|
+
const VxeUIButtonComponent = VxeUI28.getComponent("VxeButton");
|
|
29833
29748
|
const $xeGrid = inject12("$xeGrid", null);
|
|
29834
29749
|
const $xeGantt = inject12("$xeGantt", null);
|
|
29835
29750
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -30389,16 +30304,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
30389
30304
|
app.component(toolbar_default.name, toolbar_default);
|
|
30390
30305
|
}
|
|
30391
30306
|
});
|
|
30392
|
-
if (
|
|
30393
|
-
|
|
30307
|
+
if (VxeUI29.dynamicApp) {
|
|
30308
|
+
VxeUI29.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
30394
30309
|
}
|
|
30395
|
-
|
|
30310
|
+
VxeUI29.component(toolbar_default);
|
|
30396
30311
|
var Toolbar = VxeToolbar;
|
|
30397
30312
|
var toolbar_default2 = VxeToolbar;
|
|
30398
30313
|
|
|
30399
30314
|
// packages_temp/grid/src/grid.ts
|
|
30400
30315
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
30401
|
-
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } =
|
|
30316
|
+
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI30;
|
|
30402
30317
|
var tableComponentPropKeys = Object.keys(tableProps);
|
|
30403
30318
|
var tableComponentMethodKeys = ["clearAll", "syncData", "updateData", "loadData", "reloadData", "reloadRow", "loadColumn", "reloadColumn", "getRowNode", "getColumnNode", "getRowIndex", "getVTRowIndex", "getVMRowIndex", "getColumnIndex", "getVTColumnIndex", "getVMColumnIndex", "setRow", "createData", "createRow", "revertData", "clearData", "isRemoveByRow", "isInsertByRow", "isUpdateByRow", "getColumns", "getColumnById", "getColumnByField", "getTableColumn", "getFullColumns", "getData", "getCheckboxRecords", "getParentRow", "getTreeRowChildren", "getTreeRowLevel", "getTreeParentRow", "getRowSeq", "getRowById", "getRowid", "getTableData", "getFullData", "setColumnFixed", "clearColumnFixed", "setColumnWidth", "getColumnWidth", "recalcRowHeight", "setRowHeightConf", "getRowHeightConf", "setRowHeight", "getRowHeight", "hideColumn", "showColumn", "resetColumn", "refreshColumn", "refreshScroll", "recalculate", "closeTooltip", "isAllCheckboxChecked", "isAllCheckboxIndeterminate", "getCheckboxIndeterminateRecords", "setCheckboxRow", "setCheckboxRowKey", "isCheckedByCheckboxRow", "isCheckedByCheckboxRowKey", "isIndeterminateByCheckboxRow", "isIndeterminateByCheckboxRowKey", "toggleCheckboxRow", "setAllCheckboxRow", "getRadioReserveRecord", "clearRadioReserve", "getCheckboxReserveRecords", "clearCheckboxReserve", "toggleAllCheckboxRow", "clearCheckboxRow", "setCurrentRow", "isCheckedByRadioRow", "isCheckedByRadioRowKey", "setRadioRow", "setRadioRowKey", "clearCurrentRow", "clearRadioRow", "getCurrentRecord", "getRadioRecord", "getCurrentColumn", "setCurrentColumn", "clearCurrentColumn", "setPendingRow", "togglePendingRow", "hasPendingByRow", "isPendingByRow", "getPendingRecords", "clearPendingRow", "setFilterByEvent", "sort", "setSort", "setSortByEvent", "clearSort", "clearSortByEvent", "isSort", "getSortColumns", "closeFilter", "isFilter", "clearFilterByEvent", "isActiveFilterByColumn", "isRowExpandLoaded", "clearRowExpandLoaded", "reloadRowExpand", "reloadRowExpand", "toggleRowExpand", "setAllRowExpand", "setRowExpand", "isExpandByRow", "isRowExpandByRow", "clearRowExpand", "clearRowExpandReserve", "getRowExpandRecords", "getTreeExpandRecords", "isTreeExpandLoaded", "clearTreeExpandLoaded", "reloadTreeExpand", "reloadTreeChilds", "toggleTreeExpand", "setAllTreeExpand", "setTreeExpand", "isTreeExpandByRow", "clearTreeExpand", "clearTreeExpandReserve", "getScroll", "getScrollData", "scrollTo", "scrollToStartRow", "scrollToEndRow", "scrollToRow", "scrollToStartColumn", "scrollToEndColumn", "scrollToColumn", "clearScroll", "updateFooter", "updateStatus", "setMergeCells", "removeInsertRow", "removeMergeCells", "getMergeCells", "setMergeHeaderCells", "removeMergeHeaderCells", "getMergeHeaderCells", "clearMergeHeaderCells", "clearMergeCells", "setMergeFooterItems", "removeMergeFooterItems", "getMergeFooterItems", "clearMergeFooterItems", "setCustomStoreData", "getCustomStoreData", "setRowGroupExpand", "setRowGroupExpandByField", "setAllRowGroupExpand", "clearRowGroupExpand", "isRowGroupExpandByRow", "isRowGroupRecord", "isAggregateRecord", "isAggregateExpandByRow", "getAggregateContentByRow", "getAggregateRowChildren", "setRowGroups", "clearRowGroups", "openTooltip", "moveColumnTo", "moveRowTo", "getCellLabel", "updateCellLabel", "clearFormatterCache", "getFooterCellLabel", "updateFooterCellLabel", "clearFooterFormatterCache", "getUpdateCells", "undo", "redo", "effectCellData", "getCellElement", "focus", "blur", "connect", "connectToolbar"];
|
|
30404
30319
|
function createReactData3() {
|
|
@@ -30432,8 +30347,8 @@ var grid_default = defineVxeComponent({
|
|
|
30432
30347
|
setup(props, context) {
|
|
30433
30348
|
const { slots, emit } = context;
|
|
30434
30349
|
const xID = XEUtils27.uniqueId();
|
|
30435
|
-
const VxeUIFormComponent =
|
|
30436
|
-
const VxeUIPagerComponent =
|
|
30350
|
+
const VxeUIFormComponent = VxeUI30.getComponent("VxeForm");
|
|
30351
|
+
const VxeUIPagerComponent = VxeUI30.getComponent("VxePager");
|
|
30437
30352
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
30438
30353
|
const { computeSize } = useFns3.useSize(props);
|
|
30439
30354
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -30682,8 +30597,8 @@ var grid_default = defineVxeComponent({
|
|
|
30682
30597
|
$xeGrid.clearCheckboxRow();
|
|
30683
30598
|
} else {
|
|
30684
30599
|
if (isActiveMsg) {
|
|
30685
|
-
if (
|
|
30686
|
-
|
|
30600
|
+
if (VxeUI30.modal) {
|
|
30601
|
+
VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
30687
30602
|
}
|
|
30688
30603
|
}
|
|
30689
30604
|
}
|
|
@@ -30704,16 +30619,16 @@ var grid_default = defineVxeComponent({
|
|
|
30704
30619
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
30705
30620
|
if (isActiveMsg) {
|
|
30706
30621
|
if (selectRecords.length) {
|
|
30707
|
-
if (
|
|
30708
|
-
return
|
|
30622
|
+
if (VxeUI30.modal) {
|
|
30623
|
+
return VxeUI30.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
30709
30624
|
if (type === "confirm") {
|
|
30710
30625
|
return callback();
|
|
30711
30626
|
}
|
|
30712
30627
|
});
|
|
30713
30628
|
}
|
|
30714
30629
|
} else {
|
|
30715
|
-
if (
|
|
30716
|
-
|
|
30630
|
+
if (VxeUI30.modal) {
|
|
30631
|
+
VxeUI30.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
30717
30632
|
}
|
|
30718
30633
|
}
|
|
30719
30634
|
} else {
|
|
@@ -31585,8 +31500,8 @@ var grid_default = defineVxeComponent({
|
|
|
31585
31500
|
} else {
|
|
31586
31501
|
$xeTable.setPendingRow(removeRecords, false);
|
|
31587
31502
|
if (isRespMsg) {
|
|
31588
|
-
if (
|
|
31589
|
-
|
|
31503
|
+
if (VxeUI30.modal) {
|
|
31504
|
+
VxeUI30.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
31590
31505
|
}
|
|
31591
31506
|
}
|
|
31592
31507
|
if (oldAfterDelete) {
|
|
@@ -31608,8 +31523,8 @@ var grid_default = defineVxeComponent({
|
|
|
31608
31523
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
31609
31524
|
} else {
|
|
31610
31525
|
if (isRespMsg) {
|
|
31611
|
-
if (
|
|
31612
|
-
|
|
31526
|
+
if (VxeUI30.modal) {
|
|
31527
|
+
VxeUI30.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
31613
31528
|
}
|
|
31614
31529
|
}
|
|
31615
31530
|
}
|
|
@@ -31630,8 +31545,8 @@ var grid_default = defineVxeComponent({
|
|
|
31630
31545
|
});
|
|
31631
31546
|
} else {
|
|
31632
31547
|
if (isActiveMsg) {
|
|
31633
|
-
if (
|
|
31634
|
-
|
|
31548
|
+
if (VxeUI30.modal) {
|
|
31549
|
+
VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
31635
31550
|
}
|
|
31636
31551
|
}
|
|
31637
31552
|
}
|
|
@@ -31683,8 +31598,8 @@ var grid_default = defineVxeComponent({
|
|
|
31683
31598
|
} else {
|
|
31684
31599
|
$xeTable.clearPendingRow();
|
|
31685
31600
|
if (isRespMsg) {
|
|
31686
|
-
if (
|
|
31687
|
-
|
|
31601
|
+
if (VxeUI30.modal) {
|
|
31602
|
+
VxeUI30.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
31688
31603
|
}
|
|
31689
31604
|
}
|
|
31690
31605
|
if (oldAfterSave) {
|
|
@@ -31706,8 +31621,8 @@ var grid_default = defineVxeComponent({
|
|
|
31706
31621
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
31707
31622
|
} else {
|
|
31708
31623
|
if (isRespMsg) {
|
|
31709
|
-
if (
|
|
31710
|
-
|
|
31624
|
+
if (VxeUI30.modal) {
|
|
31625
|
+
VxeUI30.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
31711
31626
|
}
|
|
31712
31627
|
}
|
|
31713
31628
|
}
|
|
@@ -31727,8 +31642,8 @@ var grid_default = defineVxeComponent({
|
|
|
31727
31642
|
return handleSave();
|
|
31728
31643
|
} else {
|
|
31729
31644
|
if (isActiveMsg) {
|
|
31730
|
-
if (
|
|
31731
|
-
|
|
31645
|
+
if (VxeUI30.modal) {
|
|
31646
|
+
VxeUI30.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
31732
31647
|
}
|
|
31733
31648
|
}
|
|
31734
31649
|
}
|
|
@@ -32143,10 +32058,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
32143
32058
|
app.component(grid_default.name, grid_default);
|
|
32144
32059
|
}
|
|
32145
32060
|
});
|
|
32146
|
-
if (
|
|
32147
|
-
|
|
32061
|
+
if (VxeUI31.dynamicApp) {
|
|
32062
|
+
VxeUI31.dynamicApp.component(grid_default.name, grid_default);
|
|
32148
32063
|
}
|
|
32149
|
-
|
|
32064
|
+
VxeUI31.component(grid_default);
|
|
32150
32065
|
var Grid = VxeGrid;
|
|
32151
32066
|
|
|
32152
32067
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -33059,7 +32974,6 @@ var zh_CN_default = {
|
|
|
33059
32974
|
};
|
|
33060
32975
|
|
|
33061
32976
|
// packages_temp/components.ts
|
|
33062
|
-
__reExport(components_exports, ui_exports);
|
|
33063
32977
|
var components = [
|
|
33064
32978
|
VxeColumn,
|
|
33065
32979
|
VxeColgroup,
|
|
@@ -33068,18 +32982,22 @@ var components = [
|
|
|
33068
32982
|
VxeToolbar
|
|
33069
32983
|
];
|
|
33070
32984
|
function install(app, options) {
|
|
33071
|
-
|
|
32985
|
+
VxeUI32.setConfig(options);
|
|
33072
32986
|
components.forEach((component) => component.install(app));
|
|
33073
32987
|
}
|
|
33074
|
-
if (!
|
|
32988
|
+
if (!VxeUI32.hasLanguage("zh-CN")) {
|
|
33075
32989
|
const defaultLanguage = "zh-CN";
|
|
33076
|
-
|
|
33077
|
-
|
|
32990
|
+
VxeUI32.setI18n(defaultLanguage, zh_CN_default);
|
|
32991
|
+
VxeUI32.setLanguage(defaultLanguage);
|
|
33078
32992
|
}
|
|
33079
|
-
|
|
32993
|
+
VxeUI32.setTheme("light");
|
|
33080
32994
|
|
|
33081
32995
|
// packages_temp/index.ts
|
|
33082
|
-
|
|
32996
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
32997
|
+
if (!window.VXETable) {
|
|
32998
|
+
window.VXETable = components_exports;
|
|
32999
|
+
}
|
|
33000
|
+
}
|
|
33083
33001
|
var index_default = components_exports;
|
|
33084
33002
|
export {
|
|
33085
33003
|
Colgroup,
|
|
@@ -33087,21 +33005,12 @@ export {
|
|
|
33087
33005
|
Grid,
|
|
33088
33006
|
Table,
|
|
33089
33007
|
Toolbar,
|
|
33090
|
-
VXETable,
|
|
33091
33008
|
VxeColgroup,
|
|
33092
33009
|
VxeColumn,
|
|
33093
33010
|
VxeGrid,
|
|
33094
33011
|
VxeTable,
|
|
33095
33012
|
VxeToolbar,
|
|
33096
|
-
|
|
33097
|
-
config,
|
|
33013
|
+
VxeUI32 as VxeUI,
|
|
33098
33014
|
index_default as default,
|
|
33099
|
-
install
|
|
33100
|
-
modal,
|
|
33101
|
-
print,
|
|
33102
|
-
readFile,
|
|
33103
|
-
saveFile,
|
|
33104
|
-
setup,
|
|
33105
|
-
t,
|
|
33106
|
-
version
|
|
33015
|
+
install
|
|
33107
33016
|
};
|