vxe-table 4.23.18 → 4.23.20
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 +301 -274
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +4 -1
- package/dist/style.mini.css +1 -1
- package/es/components.d.ts +1 -3
- package/es/components.js +1 -2
- package/es/esm.index.d.ts +7 -0
- package/es/esm.index.js +8 -0
- package/es/style.css +4 -1
- package/es/style.mini.css +1 -1
- package/es/table/module/edit/hook.js +2 -4
- 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/table.js +0 -1
- package/es/table/style.css +4 -1
- package/es/table/style.mini.css +1 -1
- package/es/ui/abandon.d.ts +82 -0
- package/es/ui/abandon.js +90 -0
- package/es/ui/index.d.ts +1 -82
- package/es/ui/index.js +2 -88
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +4 -1
- package/es/vxe-table/style.mini.css +1 -1
- package/lib/components.d.ts +1 -3
- package/lib/components.js +1 -2
- package/lib/esm.index.d.ts +7 -0
- package/lib/esm.index.js +39 -0
- package/lib/index.umd.js +266 -270
- package/lib/index.umd.min.js +3 -3
- package/lib/style.css +4 -1
- package/lib/style.mini.css +1 -1
- package/lib/table/module/edit/hook.js +2 -4
- 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/table.js +0 -1
- package/lib/table/style/style.css +4 -1
- package/lib/table/style/style.mini.css +1 -1
- package/lib/ui/abandon.d.ts +82 -0
- package/lib/ui/abandon.js +110 -0
- package/lib/ui/index.d.ts +1 -82
- package/lib/ui/index.js +3 -88
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-table/style/style.css +4 -1
- package/lib/vxe-table/style/style.mini.css +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +42 -45
- package/packages/esm.index.ts +10 -0
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -5
- package/packages/grid/src/grid.ts +2220 -2220
- package/packages/grid/src/props.ts +22 -22
- package/packages/index.ts +13 -13
- package/packages/locale/lang/ar-EG.ts +914 -914
- package/packages/locale/lang/de-DE.ts +914 -914
- package/packages/locale/lang/en-US.ts +914 -914
- package/packages/locale/lang/es-ES.ts +914 -914
- package/packages/locale/lang/fr-FR.ts +914 -914
- package/packages/locale/lang/hu-HU.ts +914 -914
- package/packages/locale/lang/hy-AM.ts +914 -914
- package/packages/locale/lang/id-ID.ts +914 -914
- package/packages/locale/lang/it-IT.ts +914 -914
- package/packages/locale/lang/ja-JP.ts +914 -914
- package/packages/locale/lang/ko-KR.ts +914 -914
- package/packages/locale/lang/ms-MY.ts +914 -914
- package/packages/locale/lang/nb-NO.ts +914 -914
- package/packages/locale/lang/pt-BR.ts +914 -914
- package/packages/locale/lang/ru-RU.ts +914 -914
- package/packages/locale/lang/th-TH.ts +914 -914
- package/packages/locale/lang/ug-CN.ts +914 -914
- package/packages/locale/lang/uk-UA.ts +914 -914
- package/packages/locale/lang/uz-UZ.ts +914 -914
- package/packages/locale/lang/vi-VN.ts +914 -914
- package/packages/locale/lang/zh-CHT.ts +914 -914
- package/packages/locale/lang/zh-CN.ts +914 -914
- package/packages/locale/lang/zh-HK.ts +914 -914
- package/packages/locale/lang/zh-MO.ts +914 -914
- package/packages/locale/lang/zh-TC.ts +914 -914
- package/packages/locale/lang/zh-TW.ts +914 -914
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -510
- package/packages/table/module/custom/panel.ts +2002 -2002
- package/packages/table/module/edit/hook.ts +1232 -1235
- package/packages/table/module/export/export-panel.ts +697 -697
- package/packages/table/module/export/hook.ts +2158 -2160
- package/packages/table/module/export/import-panel.ts +319 -319
- package/packages/table/module/export/util.ts +25 -25
- package/packages/table/module/filter/hook.ts +505 -505
- package/packages/table/module/filter/panel.ts +368 -368
- package/packages/table/module/keyboard/hook.ts +498 -498
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -272
- package/packages/table/module/validator/hook.ts +653 -653
- package/packages/table/render/index.ts +1819 -1819
- package/packages/table/src/body.ts +1078 -1078
- package/packages/table/src/cell.ts +1524 -1524
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -425
- package/packages/table/src/group.ts +67 -67
- package/packages/table/src/header.ts +661 -661
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +0 -1
- package/packages/table/src/use/cell-view.ts +41 -41
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1206
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -768
- package/packages/ui/abandon.ts +136 -0
- package/packages/ui/index.ts +404 -520
- package/packages/ui/src/anime.ts +51 -51
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -466
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/styles/components/table.scss +2 -1
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/dist/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/dist/{iconfont.1794366305845.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/es/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/es/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/es/{iconfont.1794366305845.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/lib/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/lib/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/lib/{iconfont.1794366305845.woff2 → iconfont.1794633824975.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -16,6 +16,33 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
18
|
|
|
19
|
+
// packages_temp/esm.index.ts
|
|
20
|
+
var esm_index_exports = {};
|
|
21
|
+
__export(esm_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
|
+
VxeUI: () => index_exports.VxeUI,
|
|
34
|
+
_t: () => _t,
|
|
35
|
+
config: () => config,
|
|
36
|
+
default: () => esm_index_default,
|
|
37
|
+
install: () => install,
|
|
38
|
+
modal: () => modal,
|
|
39
|
+
print: () => print,
|
|
40
|
+
readFile: () => readFile,
|
|
41
|
+
saveFile: () => saveFile,
|
|
42
|
+
setup: () => setup,
|
|
43
|
+
t: () => t
|
|
44
|
+
});
|
|
45
|
+
|
|
19
46
|
// packages_temp/index.ts
|
|
20
47
|
var index_exports = {};
|
|
21
48
|
__export(index_exports, {
|
|
@@ -30,7 +57,6 @@ __export(index_exports, {
|
|
|
30
57
|
VxeGrid: () => VxeGrid,
|
|
31
58
|
VxeTable: () => VxeTable,
|
|
32
59
|
VxeToolbar: () => VxeToolbar,
|
|
33
|
-
VxeUI: () => VxeUI32,
|
|
34
60
|
_t: () => _t,
|
|
35
61
|
config: () => config,
|
|
36
62
|
default: () => index_default,
|
|
@@ -40,8 +66,7 @@ __export(index_exports, {
|
|
|
40
66
|
readFile: () => readFile,
|
|
41
67
|
saveFile: () => saveFile,
|
|
42
68
|
setup: () => setup,
|
|
43
|
-
t: () => t
|
|
44
|
-
version: () => version
|
|
69
|
+
t: () => t
|
|
45
70
|
});
|
|
46
71
|
|
|
47
72
|
// packages_temp/components.ts
|
|
@@ -58,7 +83,6 @@ __export(components_exports, {
|
|
|
58
83
|
VxeGrid: () => VxeGrid,
|
|
59
84
|
VxeTable: () => VxeTable,
|
|
60
85
|
VxeToolbar: () => VxeToolbar,
|
|
61
|
-
VxeUI: () => VxeUI32,
|
|
62
86
|
_t: () => _t,
|
|
63
87
|
config: () => config,
|
|
64
88
|
install: () => install,
|
|
@@ -67,12 +91,14 @@ __export(components_exports, {
|
|
|
67
91
|
readFile: () => readFile,
|
|
68
92
|
saveFile: () => saveFile,
|
|
69
93
|
setup: () => setup,
|
|
70
|
-
t: () => t
|
|
71
|
-
version: () => version
|
|
94
|
+
t: () => t
|
|
72
95
|
});
|
|
73
|
-
import { VxeUI as
|
|
96
|
+
import { VxeUI as VxeUI33 } from "@vxe-ui/core";
|
|
74
97
|
|
|
75
98
|
// packages_temp/ui/index.ts
|
|
99
|
+
import { VxeUI as VxeUI3 } from "@vxe-ui/core";
|
|
100
|
+
|
|
101
|
+
// packages_temp/ui/abandon.ts
|
|
76
102
|
import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
77
103
|
|
|
78
104
|
// packages_temp/ui/src/utils.ts
|
|
@@ -122,11 +148,90 @@ function getDefaultConfig(val1, def1) {
|
|
|
122
148
|
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
123
149
|
}
|
|
124
150
|
|
|
151
|
+
// packages_temp/ui/abandon.ts
|
|
152
|
+
var setup = (options) => {
|
|
153
|
+
return VxeUI2.setConfig(options);
|
|
154
|
+
};
|
|
155
|
+
VxeUI2.setup = setup;
|
|
156
|
+
var config = (options) => {
|
|
157
|
+
return VxeUI2.setConfig(options);
|
|
158
|
+
};
|
|
159
|
+
VxeUI2.config = config;
|
|
160
|
+
var t = (key, args) => {
|
|
161
|
+
return VxeUI2.getI18n(key, args);
|
|
162
|
+
};
|
|
163
|
+
VxeUI2.t = t;
|
|
164
|
+
var _t = (content, args) => {
|
|
165
|
+
return getFuncText(content, args);
|
|
166
|
+
};
|
|
167
|
+
VxeUI2._t = _t;
|
|
168
|
+
var VXETable = VxeUI2;
|
|
169
|
+
var saveFile = (options) => {
|
|
170
|
+
return VxeUI2.saveFile(options);
|
|
171
|
+
};
|
|
172
|
+
var readFile = (options) => {
|
|
173
|
+
return VxeUI2.readFile(options);
|
|
174
|
+
};
|
|
175
|
+
var print = (options) => {
|
|
176
|
+
return VxeUI2.print(options);
|
|
177
|
+
};
|
|
178
|
+
var modal = {
|
|
179
|
+
/**
|
|
180
|
+
* 已废弃,兼容老版本
|
|
181
|
+
* @deprecated
|
|
182
|
+
*/
|
|
183
|
+
get(id) {
|
|
184
|
+
return VxeUI2.modal.get(id);
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* 已废弃,兼容老版本
|
|
188
|
+
* @deprecated
|
|
189
|
+
*/
|
|
190
|
+
close(id) {
|
|
191
|
+
return VxeUI2.modal.close(id);
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* 已废弃,兼容老版本
|
|
195
|
+
* @deprecated
|
|
196
|
+
*/
|
|
197
|
+
open(options) {
|
|
198
|
+
return VxeUI2.modal.open(options);
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* 已废弃,兼容老版本
|
|
202
|
+
* @deprecated
|
|
203
|
+
*/
|
|
204
|
+
alert(content, title, options) {
|
|
205
|
+
return VxeUI2.modal.alert(content, title, options);
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* 已废弃,兼容老版本
|
|
209
|
+
* @deprecated
|
|
210
|
+
*/
|
|
211
|
+
confirm(content, title, options) {
|
|
212
|
+
return VxeUI2.modal.confirm(content, title, options);
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* 已废弃,兼容老版本
|
|
216
|
+
* @deprecated
|
|
217
|
+
*/
|
|
218
|
+
message(content, options) {
|
|
219
|
+
return VxeUI2.modal.message(content, options);
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* 已废弃,兼容老版本
|
|
223
|
+
* @deprecated
|
|
224
|
+
*/
|
|
225
|
+
notification(content, title, options) {
|
|
226
|
+
return VxeUI2.modal.notification(content, title, options);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
|
|
125
230
|
// packages_temp/ui/index.ts
|
|
126
|
-
var version = "4.23.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
231
|
+
var version = "4.23.20";
|
|
232
|
+
VxeUI3.version = version;
|
|
233
|
+
VxeUI3.tableVersion = version;
|
|
234
|
+
VxeUI3.setConfig({
|
|
130
235
|
emptyCell: " ",
|
|
131
236
|
table: {
|
|
132
237
|
fit: true,
|
|
@@ -451,7 +556,7 @@ VxeUI2.setConfig({
|
|
|
451
556
|
gantt: {}
|
|
452
557
|
});
|
|
453
558
|
var iconPrefix = "vxe-table-icon-";
|
|
454
|
-
|
|
559
|
+
VxeUI3.setIcon({
|
|
455
560
|
// table
|
|
456
561
|
TABLE_SORT_ASC: iconPrefix + "caret-up",
|
|
457
562
|
TABLE_SORT_DESC: iconPrefix + "caret-down",
|
|
@@ -513,86 +618,9 @@ VxeUI2.setIcon({
|
|
|
513
618
|
TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right",
|
|
514
619
|
TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill"
|
|
515
620
|
});
|
|
516
|
-
var setup = (options) => {
|
|
517
|
-
return VxeUI2.setConfig(options);
|
|
518
|
-
};
|
|
519
|
-
VxeUI2.setup = setup;
|
|
520
|
-
var config = (options) => {
|
|
521
|
-
return VxeUI2.setConfig(options);
|
|
522
|
-
};
|
|
523
|
-
VxeUI2.config = config;
|
|
524
|
-
var t = (key, args) => {
|
|
525
|
-
return VxeUI2.getI18n(key, args);
|
|
526
|
-
};
|
|
527
|
-
VxeUI2.t = t;
|
|
528
|
-
var _t = (content, args) => {
|
|
529
|
-
return getFuncText(content, args);
|
|
530
|
-
};
|
|
531
|
-
VxeUI2._t = _t;
|
|
532
|
-
var VXETable = VxeUI2;
|
|
533
|
-
var saveFile = (options) => {
|
|
534
|
-
return VxeUI2.saveFile(options);
|
|
535
|
-
};
|
|
536
|
-
var readFile = (options) => {
|
|
537
|
-
return VxeUI2.readFile(options);
|
|
538
|
-
};
|
|
539
|
-
var print = (options) => {
|
|
540
|
-
return VxeUI2.print(options);
|
|
541
|
-
};
|
|
542
|
-
var modal = {
|
|
543
|
-
/**
|
|
544
|
-
* 已废弃,兼容老版本
|
|
545
|
-
* @deprecated
|
|
546
|
-
*/
|
|
547
|
-
get(id) {
|
|
548
|
-
return VxeUI2.modal.get(id);
|
|
549
|
-
},
|
|
550
|
-
/**
|
|
551
|
-
* 已废弃,兼容老版本
|
|
552
|
-
* @deprecated
|
|
553
|
-
*/
|
|
554
|
-
close(id) {
|
|
555
|
-
return VxeUI2.modal.close(id);
|
|
556
|
-
},
|
|
557
|
-
/**
|
|
558
|
-
* 已废弃,兼容老版本
|
|
559
|
-
* @deprecated
|
|
560
|
-
*/
|
|
561
|
-
open(options) {
|
|
562
|
-
return VxeUI2.modal.open(options);
|
|
563
|
-
},
|
|
564
|
-
/**
|
|
565
|
-
* 已废弃,兼容老版本
|
|
566
|
-
* @deprecated
|
|
567
|
-
*/
|
|
568
|
-
alert(content, title, options) {
|
|
569
|
-
return VxeUI2.modal.alert(content, title, options);
|
|
570
|
-
},
|
|
571
|
-
/**
|
|
572
|
-
* 已废弃,兼容老版本
|
|
573
|
-
* @deprecated
|
|
574
|
-
*/
|
|
575
|
-
confirm(content, title, options) {
|
|
576
|
-
return VxeUI2.modal.confirm(content, title, options);
|
|
577
|
-
},
|
|
578
|
-
/**
|
|
579
|
-
* 已废弃,兼容老版本
|
|
580
|
-
* @deprecated
|
|
581
|
-
*/
|
|
582
|
-
message(content, options) {
|
|
583
|
-
return VxeUI2.modal.message(content, options);
|
|
584
|
-
},
|
|
585
|
-
/**
|
|
586
|
-
* 已废弃,兼容老版本
|
|
587
|
-
* @deprecated
|
|
588
|
-
*/
|
|
589
|
-
notification(content, title, options) {
|
|
590
|
-
return VxeUI2.modal.notification(content, title, options);
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
621
|
|
|
594
622
|
// packages_temp/column/index.ts
|
|
595
|
-
import { VxeUI as
|
|
623
|
+
import { VxeUI as VxeUI7 } from "@vxe-ui/core";
|
|
596
624
|
|
|
597
625
|
// packages_temp/table/src/column.ts
|
|
598
626
|
import { h as h2, onUnmounted, inject, ref, provide, onMounted, createCommentVNode } from "vue";
|
|
@@ -607,7 +635,7 @@ import XEUtils4 from "xe-utils";
|
|
|
607
635
|
|
|
608
636
|
// packages_temp/table/src/columnInfo.ts
|
|
609
637
|
import XEUtils3 from "xe-utils";
|
|
610
|
-
import { VxeUI as
|
|
638
|
+
import { VxeUI as VxeUI5 } from "@vxe-ui/core";
|
|
611
639
|
|
|
612
640
|
// packages_temp/ui/src/dom.ts
|
|
613
641
|
import XEUtils2 from "xe-utils";
|
|
@@ -950,13 +978,13 @@ function getPopupAppendElement(appendTo) {
|
|
|
950
978
|
}
|
|
951
979
|
|
|
952
980
|
// packages_temp/ui/src/log.ts
|
|
953
|
-
import { VxeUI as
|
|
954
|
-
var { log } =
|
|
955
|
-
var tableVersion = `table v${"4.23.
|
|
981
|
+
import { VxeUI as VxeUI4 } from "@vxe-ui/core";
|
|
982
|
+
var { log } = VxeUI4;
|
|
983
|
+
var tableVersion = `table v${"4.23.20"}`;
|
|
956
984
|
function createComponentLog(name) {
|
|
957
|
-
const uiVersion =
|
|
958
|
-
const ganttVersion =
|
|
959
|
-
const designVersion =
|
|
985
|
+
const uiVersion = VxeUI4.uiVersion ? `ui v${VxeUI4.uiVersion}` : "";
|
|
986
|
+
const ganttVersion = VxeUI4.ganttVersion ? `gantt v${VxeUI4.ganttVersion}` : "";
|
|
987
|
+
const designVersion = VxeUI4.designVersion ? `design v${VxeUI4.designVersion}` : "";
|
|
960
988
|
const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter((v) => v).join(" ");
|
|
961
989
|
return {
|
|
962
990
|
warnLog: log.create("warn", versionInfo + "] [" + name),
|
|
@@ -968,7 +996,7 @@ var errLog = log.create("error", tableVersion);
|
|
|
968
996
|
|
|
969
997
|
// packages_temp/table/src/columnInfo.ts
|
|
970
998
|
var { warnLog: warnLog2, errLog: errLog2 } = createComponentLog("table");
|
|
971
|
-
var { getI18n, formats, renderer } =
|
|
999
|
+
var { getI18n, formats, renderer } = VxeUI5;
|
|
972
1000
|
var ColumnInfo = class {
|
|
973
1001
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
974
1002
|
constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
@@ -2241,7 +2269,7 @@ function handleCustomStoreConfig($xeTable) {
|
|
|
2241
2269
|
// packages_temp/table/src/cell.ts
|
|
2242
2270
|
import { h } from "vue";
|
|
2243
2271
|
import XEUtils6 from "xe-utils";
|
|
2244
|
-
import { VxeUI as
|
|
2272
|
+
import { VxeUI as VxeUI6 } from "@vxe-ui/core";
|
|
2245
2273
|
|
|
2246
2274
|
// packages_temp/ui/src/vn.ts
|
|
2247
2275
|
import XEUtils5 from "xe-utils";
|
|
@@ -2293,7 +2321,7 @@ function getSlotVNs(vns) {
|
|
|
2293
2321
|
}
|
|
2294
2322
|
|
|
2295
2323
|
// packages_temp/table/src/cell.ts
|
|
2296
|
-
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } =
|
|
2324
|
+
var { getConfig: getConfig2, getI18n: getI18n2, getIcon, renderer: renderer2, renderEmptyElement } = VxeUI6;
|
|
2297
2325
|
function renderTitlePrefixIcon(params) {
|
|
2298
2326
|
const { $table, column } = params;
|
|
2299
2327
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
@@ -3894,15 +3922,15 @@ var VxeColumn = Object.assign({}, column_default, {
|
|
|
3894
3922
|
app.component("VxeTableColumn", column_default);
|
|
3895
3923
|
}
|
|
3896
3924
|
});
|
|
3897
|
-
if (
|
|
3898
|
-
|
|
3899
|
-
|
|
3925
|
+
if (VxeUI7.dynamicApp) {
|
|
3926
|
+
VxeUI7.dynamicApp.component(column_default.name, column_default);
|
|
3927
|
+
VxeUI7.dynamicApp.component("VxeTableColumn", column_default);
|
|
3900
3928
|
}
|
|
3901
|
-
|
|
3929
|
+
VxeUI7.component(column_default);
|
|
3902
3930
|
var Column = VxeColumn;
|
|
3903
3931
|
|
|
3904
3932
|
// packages_temp/colgroup/index.ts
|
|
3905
|
-
import { VxeUI as
|
|
3933
|
+
import { VxeUI as VxeUI8 } from "@vxe-ui/core";
|
|
3906
3934
|
|
|
3907
3935
|
// packages_temp/table/src/group.ts
|
|
3908
3936
|
import { h as h3, onUnmounted as onUnmounted2, provide as provide2, inject as inject2, ref as ref2, onMounted as onMounted2, createCommentVNode as createCommentVNode2 } from "vue";
|
|
@@ -3964,27 +3992,27 @@ var VxeColgroup = Object.assign({}, group_default, {
|
|
|
3964
3992
|
app.component("VxeTableColgroup", group_default);
|
|
3965
3993
|
}
|
|
3966
3994
|
});
|
|
3967
|
-
if (
|
|
3968
|
-
|
|
3969
|
-
|
|
3995
|
+
if (VxeUI8.dynamicApp) {
|
|
3996
|
+
VxeUI8.dynamicApp.component(group_default.name, group_default);
|
|
3997
|
+
VxeUI8.dynamicApp.component("VxeTableColgroup", group_default);
|
|
3970
3998
|
}
|
|
3971
|
-
|
|
3999
|
+
VxeUI8.component(group_default);
|
|
3972
4000
|
var Colgroup = VxeColgroup;
|
|
3973
4001
|
|
|
3974
4002
|
// packages_temp/grid/index.ts
|
|
3975
|
-
import { VxeUI as
|
|
4003
|
+
import { VxeUI as VxeUI32 } from "@vxe-ui/core";
|
|
3976
4004
|
|
|
3977
4005
|
// packages_temp/grid/src/grid.ts
|
|
3978
4006
|
import { h as h15, ref as ref13, computed as computed7, provide as provide5, reactive as reactive9, onBeforeUnmount as onBeforeUnmount3, watch as watch4, nextTick as nextTick15, onMounted as onMounted7 } from "vue";
|
|
3979
|
-
import { VxeUI as
|
|
4007
|
+
import { VxeUI as VxeUI31 } from "@vxe-ui/core";
|
|
3980
4008
|
import XEUtils27 from "xe-utils";
|
|
3981
4009
|
|
|
3982
4010
|
// packages_temp/grid/src/props.ts
|
|
3983
|
-
import { VxeUI as
|
|
4011
|
+
import { VxeUI as VxeUI10 } from "@vxe-ui/core";
|
|
3984
4012
|
|
|
3985
4013
|
// packages_temp/table/src/props.ts
|
|
3986
|
-
import { VxeUI as
|
|
3987
|
-
var { getConfig: getConfig3 } =
|
|
4014
|
+
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
4015
|
+
var { getConfig: getConfig3 } = VxeUI9;
|
|
3988
4016
|
var tableComponenProps = {
|
|
3989
4017
|
/** 基本属性 */
|
|
3990
4018
|
id: [String, Function],
|
|
@@ -4314,7 +4342,7 @@ var tableComponenProps = {
|
|
|
4314
4342
|
};
|
|
4315
4343
|
|
|
4316
4344
|
// packages_temp/grid/src/props.ts
|
|
4317
|
-
var { getConfig: getConfig4 } =
|
|
4345
|
+
var { getConfig: getConfig4 } = VxeUI10;
|
|
4318
4346
|
var gridComponeProps = {
|
|
4319
4347
|
...tableComponenProps,
|
|
4320
4348
|
layouts: Array,
|
|
@@ -4460,12 +4488,12 @@ var tableComponenEmits = [
|
|
|
4460
4488
|
var gridComponeEmits = [...tableComponenEmits, "page-change", "form-submit", "form-submit-invalid", "form-reset", "form-collapse", "form-toggle-collapse", "proxy-query", "proxy-delete", "proxy-save", "toolbar-button-click", "toolbar-tool-click", "zoom"];
|
|
4461
4489
|
|
|
4462
4490
|
// packages_temp/table/index.ts
|
|
4463
|
-
import { VxeUI as
|
|
4491
|
+
import { VxeUI as VxeUI28 } from "@vxe-ui/core";
|
|
4464
4492
|
|
|
4465
4493
|
// packages_temp/table/src/table.ts
|
|
4466
4494
|
import { h as h13, reactive as reactive7, ref as ref11, provide as provide4, inject as inject11, nextTick as nextTick13, Teleport as Teleport3, onActivated, onDeactivated, onBeforeUnmount, onUnmounted as onUnmounted7, watch as watch3, computed as computed4, onMounted as onMounted6 } from "vue";
|
|
4467
4495
|
import XEUtils24 from "xe-utils";
|
|
4468
|
-
import { VxeUI as
|
|
4496
|
+
import { VxeUI as VxeUI27 } from "@vxe-ui/core";
|
|
4469
4497
|
|
|
4470
4498
|
// packages_temp/ui/src/anime.ts
|
|
4471
4499
|
import XEUtils7 from "xe-utils";
|
|
@@ -4520,8 +4548,8 @@ function getCrossTableDragRowInfo() {
|
|
|
4520
4548
|
// packages_temp/table/src/body.ts
|
|
4521
4549
|
import { h as h4, ref as ref3, inject as inject3, nextTick, onMounted as onMounted3, onUnmounted as onUnmounted3 } from "vue";
|
|
4522
4550
|
import XEUtils8 from "xe-utils";
|
|
4523
|
-
import { VxeUI as
|
|
4524
|
-
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } =
|
|
4551
|
+
import { VxeUI as VxeUI11 } from "@vxe-ui/core";
|
|
4552
|
+
var { getI18n: getI18n3, renderer: renderer3, renderEmptyElement: renderEmptyElement2 } = VxeUI11;
|
|
4525
4553
|
var sourceType = "table";
|
|
4526
4554
|
var renderType = "body";
|
|
4527
4555
|
var body_default = (
|
|
@@ -5507,8 +5535,8 @@ var body_default = (
|
|
|
5507
5535
|
// packages_temp/table/src/header.ts
|
|
5508
5536
|
import { h as h5, ref as ref4, inject as inject4, nextTick as nextTick2, watch as watch2, onMounted as onMounted4, onUnmounted as onUnmounted4 } from "vue";
|
|
5509
5537
|
import XEUtils9 from "xe-utils";
|
|
5510
|
-
import { VxeUI as
|
|
5511
|
-
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } =
|
|
5538
|
+
import { VxeUI as VxeUI12 } from "@vxe-ui/core";
|
|
5539
|
+
var { renderer: renderer4, renderEmptyElement: renderEmptyElement3 } = VxeUI12;
|
|
5512
5540
|
var sourceType2 = "table";
|
|
5513
5541
|
var renderType2 = "header";
|
|
5514
5542
|
var header_default = (
|
|
@@ -6106,8 +6134,8 @@ var header_default = (
|
|
|
6106
6134
|
// packages_temp/table/src/footer.ts
|
|
6107
6135
|
import { h as h6, ref as ref5, inject as inject5, nextTick as nextTick3, onMounted as onMounted5, onUnmounted as onUnmounted5 } from "vue";
|
|
6108
6136
|
import XEUtils10 from "xe-utils";
|
|
6109
|
-
import { VxeUI as
|
|
6110
|
-
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } =
|
|
6137
|
+
import { VxeUI as VxeUI13 } from "@vxe-ui/core";
|
|
6138
|
+
var { renderer: renderer5, renderEmptyElement: renderEmptyElement4 } = VxeUI13;
|
|
6111
6139
|
var sourceType3 = "table";
|
|
6112
6140
|
var renderType3 = "footer";
|
|
6113
6141
|
var footer_default = (
|
|
@@ -6493,10 +6521,10 @@ var footer_default = (
|
|
|
6493
6521
|
|
|
6494
6522
|
// packages_temp/table/module/custom/panel.ts
|
|
6495
6523
|
import { h as h7, inject as inject6, ref as ref6, provide as provide3, nextTick as nextTick4, TransitionGroup, reactive as reactive3, onUnmounted as onUnmounted6 } from "vue";
|
|
6496
|
-
import { VxeUI as
|
|
6524
|
+
import { VxeUI as VxeUI14 } from "@vxe-ui/core";
|
|
6497
6525
|
import XEUtils11 from "xe-utils";
|
|
6498
6526
|
var { errLog: errLog3 } = createComponentLog("table");
|
|
6499
|
-
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } =
|
|
6527
|
+
var { getI18n: getI18n4, getIcon: getIcon2, renderEmptyElement: renderEmptyElement5 } = VxeUI14;
|
|
6500
6528
|
function createInternalData2() {
|
|
6501
6529
|
return {
|
|
6502
6530
|
// teleportTo: undefined,
|
|
@@ -6520,11 +6548,11 @@ var panel_default = (
|
|
|
6520
6548
|
},
|
|
6521
6549
|
setup(props, context) {
|
|
6522
6550
|
const xID = XEUtils11.uniqueId();
|
|
6523
|
-
const VxeUIModalComponent =
|
|
6524
|
-
const VxeUIDrawerComponent =
|
|
6525
|
-
const VxeUIButtonComponent =
|
|
6526
|
-
const VxeUINumberInputComponent =
|
|
6527
|
-
const VxeUIRadioGroupComponent =
|
|
6551
|
+
const VxeUIModalComponent = VxeUI14.getComponent("VxeModal");
|
|
6552
|
+
const VxeUIDrawerComponent = VxeUI14.getComponent("VxeDrawer");
|
|
6553
|
+
const VxeUIButtonComponent = VxeUI14.getComponent("VxeButton");
|
|
6554
|
+
const VxeUINumberInputComponent = VxeUI14.getComponent("VxeNumberInput");
|
|
6555
|
+
const VxeUIRadioGroupComponent = VxeUI14.getComponent("VxeRadioGroup");
|
|
6528
6556
|
const $xeTable = inject6("$xeTable", {});
|
|
6529
6557
|
const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
6530
6558
|
const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
|
|
@@ -6593,8 +6621,8 @@ var panel_default = (
|
|
|
6593
6621
|
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
6594
6622
|
};
|
|
6595
6623
|
const resetCustomEvent = ({ $event }) => {
|
|
6596
|
-
if (
|
|
6597
|
-
|
|
6624
|
+
if (VxeUI14.modal) {
|
|
6625
|
+
VxeUI14.modal.confirm({
|
|
6598
6626
|
content: getI18n4("vxe.custom.cstmConfirmRestore"),
|
|
6599
6627
|
className: "vxe-table--ignore-clear",
|
|
6600
6628
|
escClosable: true
|
|
@@ -6873,8 +6901,8 @@ var panel_default = (
|
|
|
6873
6901
|
if (oldAllMaps[newColumn.id]) {
|
|
6874
6902
|
isSelfToChildStatus = true;
|
|
6875
6903
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6876
|
-
if (
|
|
6877
|
-
|
|
6904
|
+
if (VxeUI14.modal) {
|
|
6905
|
+
VxeUI14.modal.message({
|
|
6878
6906
|
status: "error",
|
|
6879
6907
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6880
6908
|
});
|
|
@@ -6894,8 +6922,8 @@ var panel_default = (
|
|
|
6894
6922
|
if (oldAllMaps[newColumn.id]) {
|
|
6895
6923
|
isSelfToChildStatus = true;
|
|
6896
6924
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
6897
|
-
if (
|
|
6898
|
-
|
|
6925
|
+
if (VxeUI14.modal) {
|
|
6926
|
+
VxeUI14.modal.message({
|
|
6899
6927
|
status: "error",
|
|
6900
6928
|
content: getI18n4("vxe.error.treeDragChild")
|
|
6901
6929
|
});
|
|
@@ -8266,10 +8294,10 @@ var panel_default = (
|
|
|
8266
8294
|
|
|
8267
8295
|
// packages_temp/table/module/filter/panel.ts
|
|
8268
8296
|
import { h as h8, ref as ref7, computed, inject as inject7, Teleport } from "vue";
|
|
8269
|
-
import { VxeUI as
|
|
8297
|
+
import { VxeUI as VxeUI15 } from "@vxe-ui/core";
|
|
8270
8298
|
import XEUtils12 from "xe-utils";
|
|
8271
8299
|
var { warnLog: warnLog3 } = createComponentLog("table");
|
|
8272
|
-
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } =
|
|
8300
|
+
var { getI18n: getI18n5, getIcon: getIcon3, renderer: renderer6, renderEmptyElement: renderEmptyElement6 } = VxeUI15;
|
|
8273
8301
|
var panel_default2 = (
|
|
8274
8302
|
/* define-vxe-component start */
|
|
8275
8303
|
defineVxeComponent({
|
|
@@ -8282,7 +8310,7 @@ var panel_default2 = (
|
|
|
8282
8310
|
},
|
|
8283
8311
|
setup(props, context) {
|
|
8284
8312
|
const xID = XEUtils12.uniqueId();
|
|
8285
|
-
const VxeUIScrollbarComponent =
|
|
8313
|
+
const VxeUIScrollbarComponent = VxeUI15.getComponent("VxeScrollbar");
|
|
8286
8314
|
const $xeTable = inject7("$xeTable", {});
|
|
8287
8315
|
const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
|
|
8288
8316
|
const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
|
|
@@ -8581,10 +8609,10 @@ var panel_default2 = (
|
|
|
8581
8609
|
|
|
8582
8610
|
// packages_temp/table/module/export/import-panel.ts
|
|
8583
8611
|
import { h as h9, ref as ref8, computed as computed2, inject as inject8, reactive as reactive4, nextTick as nextTick5 } from "vue";
|
|
8584
|
-
import { VxeUI as
|
|
8612
|
+
import { VxeUI as VxeUI16 } from "@vxe-ui/core";
|
|
8585
8613
|
import XEUtils13 from "xe-utils";
|
|
8586
8614
|
var { errLog: errLog4 } = createComponentLog("table");
|
|
8587
|
-
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } =
|
|
8615
|
+
var { getI18n: getI18n6, getIcon: getIcon4, renderEmptyElement: renderEmptyElement7 } = VxeUI16;
|
|
8588
8616
|
var import_panel_default = (
|
|
8589
8617
|
/* define-vxe-component start */
|
|
8590
8618
|
defineVxeComponent({
|
|
@@ -8600,9 +8628,9 @@ var import_panel_default = (
|
|
|
8600
8628
|
}
|
|
8601
8629
|
},
|
|
8602
8630
|
setup(props) {
|
|
8603
|
-
const VxeUIModalComponent =
|
|
8604
|
-
const VxeUIButtonComponent =
|
|
8605
|
-
const VxeUISelectComponent =
|
|
8631
|
+
const VxeUIModalComponent = VxeUI16.getComponent("VxeModal");
|
|
8632
|
+
const VxeUIButtonComponent = VxeUI16.getComponent("VxeButton");
|
|
8633
|
+
const VxeUISelectComponent = VxeUI16.getComponent("VxeSelect");
|
|
8606
8634
|
const $xeTable = inject8("$xeTable", {});
|
|
8607
8635
|
const { computeImportOpts } = $xeTable.getComputeMaps();
|
|
8608
8636
|
const reactData = reactive4({
|
|
@@ -8685,17 +8713,17 @@ var import_panel_default = (
|
|
|
8685
8713
|
{
|
|
8686
8714
|
id: "VXE_IMPORT_MODAL",
|
|
8687
8715
|
modelValue: storeData.visible,
|
|
8688
|
-
title: modelOptions.title
|
|
8689
|
-
className: "vxe-table-
|
|
8716
|
+
title: getDefaultConfig(modelOptions.title, getI18n6("vxe.import.impTitle")),
|
|
8717
|
+
className: "vxe-table-import-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
8690
8718
|
width: modelOptions.width || 540,
|
|
8691
8719
|
height: modelOptions.height,
|
|
8692
8720
|
minWidth: modelOptions.minWidth || 360,
|
|
8693
8721
|
minHeight: modelOptions.minHeight || 240,
|
|
8694
8722
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
8695
8723
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
8696
|
-
showFooter: true,
|
|
8697
|
-
escClosable: true,
|
|
8698
|
-
maskClosable: true,
|
|
8724
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
8725
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
8726
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
8699
8727
|
position: modelOptions.position,
|
|
8700
8728
|
fullscreen: modelOptions.fullscreen,
|
|
8701
8729
|
remember: modelOptions.remember,
|
|
@@ -8857,10 +8885,10 @@ var import_panel_default = (
|
|
|
8857
8885
|
|
|
8858
8886
|
// packages_temp/table/module/export/export-panel.ts
|
|
8859
8887
|
import { h as h10, ref as ref9, computed as computed3, reactive as reactive5, inject as inject9, nextTick as nextTick6 } from "vue";
|
|
8860
|
-
import { VxeUI as
|
|
8888
|
+
import { VxeUI as VxeUI17 } from "@vxe-ui/core";
|
|
8861
8889
|
import XEUtils14 from "xe-utils";
|
|
8862
8890
|
var { errLog: errLog5 } = createComponentLog("table");
|
|
8863
|
-
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } =
|
|
8891
|
+
var { getI18n: getI18n7, getIcon: getIcon5, renderEmptyElement: renderEmptyElement8 } = VxeUI17;
|
|
8864
8892
|
var export_panel_default = (
|
|
8865
8893
|
/* define-vxe-component start */
|
|
8866
8894
|
defineVxeComponent({
|
|
@@ -8876,11 +8904,11 @@ var export_panel_default = (
|
|
|
8876
8904
|
}
|
|
8877
8905
|
},
|
|
8878
8906
|
setup(props) {
|
|
8879
|
-
const VxeUIModalComponent =
|
|
8880
|
-
const VxeUIButtonComponent =
|
|
8881
|
-
const VxeUISelectComponent =
|
|
8882
|
-
const VxeUIInputComponent =
|
|
8883
|
-
const VxeUICheckboxComponent =
|
|
8907
|
+
const VxeUIModalComponent = VxeUI17.getComponent("VxeModal");
|
|
8908
|
+
const VxeUIButtonComponent = VxeUI17.getComponent("VxeButton");
|
|
8909
|
+
const VxeUISelectComponent = VxeUI17.getComponent("VxeSelect");
|
|
8910
|
+
const VxeUIInputComponent = VxeUI17.getComponent("VxeInput");
|
|
8911
|
+
const VxeUICheckboxComponent = VxeUI17.getComponent("VxeCheckbox");
|
|
8884
8912
|
const $xeTable = inject9("$xeTable", {});
|
|
8885
8913
|
const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
|
|
8886
8914
|
const reactData = reactive5({
|
|
@@ -9081,17 +9109,17 @@ var export_panel_default = (
|
|
|
9081
9109
|
{
|
|
9082
9110
|
id: "VXE_EXPORT_MODAL",
|
|
9083
9111
|
modelValue: storeData.visible,
|
|
9084
|
-
title: modelOptions.title
|
|
9085
|
-
className: "vxe-table-export-popup-wrapper",
|
|
9112
|
+
title: getDefaultConfig(modelOptions.title, getI18n7(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle")),
|
|
9113
|
+
className: "vxe-table-export-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
9086
9114
|
width: modelOptions.width || 660,
|
|
9087
9115
|
height: modelOptions.height,
|
|
9088
9116
|
minWidth: modelOptions.minWidth || 500,
|
|
9089
9117
|
minHeight: modelOptions.minHeight || 400,
|
|
9090
9118
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
9091
9119
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
9092
|
-
showFooter: true,
|
|
9093
|
-
escClosable: true,
|
|
9094
|
-
maskClosable: true,
|
|
9120
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
9121
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
9122
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
9095
9123
|
position: modelOptions.position,
|
|
9096
9124
|
fullscreen: modelOptions.fullscreen,
|
|
9097
9125
|
remember: modelOptions.remember,
|
|
@@ -9468,8 +9496,8 @@ var export_panel_default = (
|
|
|
9468
9496
|
// packages_temp/table/module/menu/panel.ts
|
|
9469
9497
|
import { h as h11, Teleport as Teleport2, inject as inject10, ref as ref10 } from "vue";
|
|
9470
9498
|
import XEUtils15 from "xe-utils";
|
|
9471
|
-
import { VxeUI as
|
|
9472
|
-
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } =
|
|
9499
|
+
import { VxeUI as VxeUI18 } from "@vxe-ui/core";
|
|
9500
|
+
var { getIcon: getIcon6, getI18n: getI18n8, renderEmptyElement: renderEmptyElement9 } = VxeUI18;
|
|
9473
9501
|
var panel_default3 = (
|
|
9474
9502
|
/* define-vxe-component start */
|
|
9475
9503
|
defineVxeComponent({
|
|
@@ -9707,8 +9735,8 @@ var panel_default3 = (
|
|
|
9707
9735
|
// packages_temp/table/module/filter/hook.ts
|
|
9708
9736
|
import { nextTick as nextTick7 } from "vue";
|
|
9709
9737
|
import XEUtils16 from "xe-utils";
|
|
9710
|
-
import { VxeUI as
|
|
9711
|
-
var { renderer: renderer7, hooks } =
|
|
9738
|
+
import { VxeUI as VxeUI19 } from "@vxe-ui/core";
|
|
9739
|
+
var { renderer: renderer7, hooks } = VxeUI19;
|
|
9712
9740
|
var tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
|
|
9713
9741
|
var sourceType4 = "table";
|
|
9714
9742
|
hooks.add("tableFilterModule", {
|
|
@@ -10187,8 +10215,8 @@ hooks.add("tableFilterModule", {
|
|
|
10187
10215
|
// packages_temp/table/module/menu/hook.ts
|
|
10188
10216
|
import { nextTick as nextTick8 } from "vue";
|
|
10189
10217
|
import XEUtils17 from "xe-utils";
|
|
10190
|
-
import { VxeUI as
|
|
10191
|
-
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } =
|
|
10218
|
+
import { VxeUI as VxeUI20 } from "@vxe-ui/core";
|
|
10219
|
+
var { menus, hooks: hooks2, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI20;
|
|
10192
10220
|
var tableMenuMethodKeys = ["closeMenu"];
|
|
10193
10221
|
hooks2.add("tableMenuModule", {
|
|
10194
10222
|
setupTable($xeTable) {
|
|
@@ -10491,9 +10519,9 @@ hooks2.add("tableMenuModule", {
|
|
|
10491
10519
|
// packages_temp/table/module/edit/hook.ts
|
|
10492
10520
|
import { reactive as reactive6, nextTick as nextTick9 } from "vue";
|
|
10493
10521
|
import XEUtils18 from "xe-utils";
|
|
10494
|
-
import { VxeUI as
|
|
10522
|
+
import { VxeUI as VxeUI21 } from "@vxe-ui/core";
|
|
10495
10523
|
var { warnLog: warnLog4, errLog: errLog6 } = createComponentLog("table");
|
|
10496
|
-
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } =
|
|
10524
|
+
var { getConfig: getConfig5, renderer: renderer8, hooks: hooks3, getI18n: getI18n9 } = VxeUI21;
|
|
10497
10525
|
var tableEditMethodKeys = [
|
|
10498
10526
|
"insert",
|
|
10499
10527
|
"insertAt",
|
|
@@ -10530,8 +10558,6 @@ hooks3.add("tableEditModule", {
|
|
|
10530
10558
|
const { refElem } = $xeTable.getRefMaps();
|
|
10531
10559
|
const { computeMouseOpts, computeEditOpts, computeCheckboxOpts, computeTreeOpts, computeValidOpts, computeRendererOpts } = $xeTable.getComputeMaps();
|
|
10532
10560
|
const browseObj = XEUtils18.browse();
|
|
10533
|
-
let editMethods = {};
|
|
10534
|
-
let editPrivateMethods = {};
|
|
10535
10561
|
const getEditColumnModel = (row, column) => {
|
|
10536
10562
|
const { model, editRender } = column;
|
|
10537
10563
|
if (editRender) {
|
|
@@ -11029,7 +11055,7 @@ hooks3.add("tableEditModule", {
|
|
|
11029
11055
|
}
|
|
11030
11056
|
return nextTick9();
|
|
11031
11057
|
};
|
|
11032
|
-
editMethods = {
|
|
11058
|
+
const editMethods = {
|
|
11033
11059
|
/**
|
|
11034
11060
|
* 往表格中插入临时数据
|
|
11035
11061
|
*
|
|
@@ -11477,7 +11503,7 @@ hooks3.add("tableEditModule", {
|
|
|
11477
11503
|
}
|
|
11478
11504
|
return null;
|
|
11479
11505
|
};
|
|
11480
|
-
editPrivateMethods = {
|
|
11506
|
+
const editPrivateMethods = {
|
|
11481
11507
|
/**
|
|
11482
11508
|
* 处理激活编辑
|
|
11483
11509
|
*/
|
|
@@ -11609,7 +11635,7 @@ hooks3.add("tableEditModule", {
|
|
|
11609
11635
|
// packages_temp/table/module/export/hook.ts
|
|
11610
11636
|
import { nextTick as nextTick10 } from "vue";
|
|
11611
11637
|
import XEUtils19 from "xe-utils";
|
|
11612
|
-
import { VxeUI as
|
|
11638
|
+
import { VxeUI as VxeUI22 } from "@vxe-ui/core";
|
|
11613
11639
|
|
|
11614
11640
|
// packages_temp/table/module/export/util.ts
|
|
11615
11641
|
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}';
|
|
@@ -11634,7 +11660,7 @@ function createHtmlPage(opts, content) {
|
|
|
11634
11660
|
|
|
11635
11661
|
// packages_temp/table/module/export/hook.ts
|
|
11636
11662
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
11637
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
11663
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI22;
|
|
11638
11664
|
var htmlCellElem;
|
|
11639
11665
|
var csvBOM = "\uFEFF";
|
|
11640
11666
|
var enterSymbol = "\r\n";
|
|
@@ -12598,11 +12624,11 @@ hooks4.add("tableExportModule", {
|
|
|
12598
12624
|
const blob = getExportBlobByContent(content, opts);
|
|
12599
12625
|
return Promise.resolve({ type, content, blob });
|
|
12600
12626
|
}
|
|
12601
|
-
if (
|
|
12602
|
-
|
|
12627
|
+
if (VxeUI22.saveFile) {
|
|
12628
|
+
VxeUI22.saveFile({ filename, type, content }).then(() => {
|
|
12603
12629
|
if (opts.message !== false) {
|
|
12604
|
-
if (
|
|
12605
|
-
|
|
12630
|
+
if (VxeUI22.modal) {
|
|
12631
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
12606
12632
|
}
|
|
12607
12633
|
}
|
|
12608
12634
|
});
|
|
@@ -12689,8 +12715,8 @@ hooks4.add("tableExportModule", {
|
|
|
12689
12715
|
loadRest = $xeTable.reloadData(data);
|
|
12690
12716
|
}
|
|
12691
12717
|
if (opts.message !== false) {
|
|
12692
|
-
if (
|
|
12693
|
-
|
|
12718
|
+
if (VxeUI22.modal) {
|
|
12719
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
12694
12720
|
}
|
|
12695
12721
|
}
|
|
12696
12722
|
return loadRest.then(() => {
|
|
@@ -12699,9 +12725,11 @@ hooks4.add("tableExportModule", {
|
|
|
12699
12725
|
}
|
|
12700
12726
|
});
|
|
12701
12727
|
});
|
|
12702
|
-
} else
|
|
12703
|
-
if (
|
|
12704
|
-
|
|
12728
|
+
} else {
|
|
12729
|
+
if (opts.message !== false) {
|
|
12730
|
+
if (VxeUI22.modal) {
|
|
12731
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
12732
|
+
}
|
|
12705
12733
|
}
|
|
12706
12734
|
if (_importReject) {
|
|
12707
12735
|
_importReject({ status: false, msg: "field mismatching" });
|
|
@@ -12714,8 +12742,8 @@ hooks4.add("tableExportModule", {
|
|
|
12714
12742
|
const importOpts = computeImportOpts.value;
|
|
12715
12743
|
if (!importMethod && !XEUtils19.includes(XEUtils19.keys(importOpts._typeMaps), type)) {
|
|
12716
12744
|
if (opts.message !== false) {
|
|
12717
|
-
if (
|
|
12718
|
-
|
|
12745
|
+
if (VxeUI22.modal) {
|
|
12746
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.notType", [type]), status: "error" });
|
|
12719
12747
|
}
|
|
12720
12748
|
}
|
|
12721
12749
|
const params = { status: false, msg: "type error" };
|
|
@@ -12918,13 +12946,9 @@ hooks4.add("tableExportModule", {
|
|
|
12918
12946
|
exportStore.isPrint = !!isPrint;
|
|
12919
12947
|
exportStore.hasColgroup = isGroup;
|
|
12920
12948
|
exportStore.visible = true;
|
|
12921
|
-
Object.assign(
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
mode: selectRecords.length ? "selected" : "current"
|
|
12925
|
-
},
|
|
12926
|
-
defOpts
|
|
12927
|
-
);
|
|
12949
|
+
Object.assign(exportParams, {
|
|
12950
|
+
mode: selectRecords.length ? "selected" : "current"
|
|
12951
|
+
}, defOpts);
|
|
12928
12952
|
const { filename, sheetName, mode, type } = exportParams;
|
|
12929
12953
|
if (filename) {
|
|
12930
12954
|
if (XEUtils19.isFunction(filename)) {
|
|
@@ -12963,8 +12987,8 @@ hooks4.add("tableExportModule", {
|
|
|
12963
12987
|
return nextTick10();
|
|
12964
12988
|
};
|
|
12965
12989
|
const handleCloseExport = () => {
|
|
12966
|
-
if (
|
|
12967
|
-
return
|
|
12990
|
+
if (VxeUI22.modal) {
|
|
12991
|
+
return VxeUI22.modal.close("VXE_EXPORT_MODAL");
|
|
12968
12992
|
}
|
|
12969
12993
|
return Promise.resolve();
|
|
12970
12994
|
};
|
|
@@ -13325,7 +13349,7 @@ hooks4.add("tableExportModule", {
|
|
|
13325
13349
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
13326
13350
|
}
|
|
13327
13351
|
}
|
|
13328
|
-
return
|
|
13352
|
+
return VxeUI22.readFile(opts).catch((e) => {
|
|
13329
13353
|
if (afterImportMethod) {
|
|
13330
13354
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
13331
13355
|
}
|
|
@@ -13336,10 +13360,10 @@ hooks4.add("tableExportModule", {
|
|
|
13336
13360
|
});
|
|
13337
13361
|
},
|
|
13338
13362
|
saveFile(options) {
|
|
13339
|
-
return
|
|
13363
|
+
return VxeUI22.saveFile(options);
|
|
13340
13364
|
},
|
|
13341
13365
|
readFile(options) {
|
|
13342
|
-
return
|
|
13366
|
+
return VxeUI22.readFile(options);
|
|
13343
13367
|
},
|
|
13344
13368
|
print(options) {
|
|
13345
13369
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -13380,10 +13404,10 @@ hooks4.add("tableExportModule", {
|
|
|
13380
13404
|
const printMethod = opts.printMethod;
|
|
13381
13405
|
const tableHtml = opts.html || opts.content;
|
|
13382
13406
|
return new Promise((resolve, reject) => {
|
|
13383
|
-
if (
|
|
13407
|
+
if (VxeUI22.print) {
|
|
13384
13408
|
if (tableHtml) {
|
|
13385
13409
|
resolve(
|
|
13386
|
-
|
|
13410
|
+
VxeUI22.print({
|
|
13387
13411
|
title: printTitle,
|
|
13388
13412
|
html: tableHtml,
|
|
13389
13413
|
customStyle: opts.style,
|
|
@@ -13422,7 +13446,7 @@ hooks4.add("tableExportModule", {
|
|
|
13422
13446
|
} else {
|
|
13423
13447
|
resolve(
|
|
13424
13448
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
13425
|
-
return
|
|
13449
|
+
return VxeUI22.print({
|
|
13426
13450
|
title: printTitle,
|
|
13427
13451
|
html: content,
|
|
13428
13452
|
customStyle: opts.style,
|
|
@@ -13490,8 +13514,8 @@ hooks4.add("tableExportModule", {
|
|
|
13490
13514
|
});
|
|
13491
13515
|
},
|
|
13492
13516
|
closeImport() {
|
|
13493
|
-
if (
|
|
13494
|
-
return
|
|
13517
|
+
if (VxeUI22.modal) {
|
|
13518
|
+
return VxeUI22.modal.close("VXE_IMPORT_MODAL");
|
|
13495
13519
|
}
|
|
13496
13520
|
return Promise.resolve();
|
|
13497
13521
|
},
|
|
@@ -13514,8 +13538,8 @@ hooks4.add("tableExportModule", {
|
|
|
13514
13538
|
const isTree = !!treeConfig;
|
|
13515
13539
|
if (isTree) {
|
|
13516
13540
|
if (defOpts.message) {
|
|
13517
|
-
if (
|
|
13518
|
-
|
|
13541
|
+
if (VxeUI22.modal) {
|
|
13542
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
13519
13543
|
}
|
|
13520
13544
|
}
|
|
13521
13545
|
return;
|
|
@@ -13601,8 +13625,8 @@ hooks4.add("tableExportModule", {
|
|
|
13601
13625
|
|
|
13602
13626
|
// packages_temp/table/module/keyboard/hook.ts
|
|
13603
13627
|
import XEUtils20 from "xe-utils";
|
|
13604
|
-
import { VxeUI as
|
|
13605
|
-
var { hooks: hooks5 } =
|
|
13628
|
+
import { VxeUI as VxeUI23 } from "@vxe-ui/core";
|
|
13629
|
+
var { hooks: hooks5 } = VxeUI23;
|
|
13606
13630
|
hooks5.add("tableKeyboardModule", {
|
|
13607
13631
|
setupTable($xeTable) {
|
|
13608
13632
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -14069,9 +14093,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
14069
14093
|
// packages_temp/table/module/validator/hook.ts
|
|
14070
14094
|
import { nextTick as nextTick11 } from "vue";
|
|
14071
14095
|
import XEUtils21 from "xe-utils";
|
|
14072
|
-
import { VxeUI as
|
|
14096
|
+
import { VxeUI as VxeUI24 } from "@vxe-ui/core";
|
|
14073
14097
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
14074
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
14098
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI24;
|
|
14075
14099
|
var Rule = class {
|
|
14076
14100
|
constructor(rule) {
|
|
14077
14101
|
Object.assign(this, {
|
|
@@ -14623,11 +14647,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
14623
14647
|
|
|
14624
14648
|
// packages_temp/table/module/custom/hook.ts
|
|
14625
14649
|
import { nextTick as nextTick12 } from "vue";
|
|
14626
|
-
import { VxeUI as
|
|
14650
|
+
import { VxeUI as VxeUI25 } from "@vxe-ui/core";
|
|
14627
14651
|
import XEUtils22 from "xe-utils";
|
|
14628
14652
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
14629
14653
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
14630
|
-
|
|
14654
|
+
VxeUI25.hooks.add("tableCustomModule", {
|
|
14631
14655
|
setupTable($xeTable) {
|
|
14632
14656
|
const { reactData, internalData } = $xeTable;
|
|
14633
14657
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -15100,9 +15124,9 @@ VxeUI24.hooks.add("tableCustomModule", {
|
|
|
15100
15124
|
// packages_temp/table/render/index.ts
|
|
15101
15125
|
import { h as h12, resolveComponent } from "vue";
|
|
15102
15126
|
import XEUtils23 from "xe-utils";
|
|
15103
|
-
import { VxeUI as
|
|
15127
|
+
import { VxeUI as VxeUI26 } from "@vxe-ui/core";
|
|
15104
15128
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
15105
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
15129
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI26;
|
|
15106
15130
|
var componentDefaultModelProp = "modelValue";
|
|
15107
15131
|
var defaultCompProps = {};
|
|
15108
15132
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -16738,7 +16762,7 @@ renderer10.mixin({
|
|
|
16738
16762
|
|
|
16739
16763
|
// packages_temp/table/src/table.ts
|
|
16740
16764
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
16741
|
-
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 } =
|
|
16765
|
+
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } = VxeUI27;
|
|
16742
16766
|
var supportMaxRow = 5e6;
|
|
16743
16767
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
16744
16768
|
var maxYHeight = 5e6;
|
|
@@ -16756,8 +16780,8 @@ var table_default = (
|
|
|
16756
16780
|
const xID = XEUtils24.uniqueId();
|
|
16757
16781
|
const browseObj = XEUtils24.browse();
|
|
16758
16782
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
16759
|
-
const VxeUILoadingComponent =
|
|
16760
|
-
const VxeUITooltipComponent =
|
|
16783
|
+
const VxeUILoadingComponent = VxeUI27.getComponent("VxeLoading");
|
|
16784
|
+
const VxeUITooltipComponent = VxeUI27.getComponent("VxeTooltip");
|
|
16761
16785
|
const $xeModal = inject11("$xeModal", null);
|
|
16762
16786
|
const $xeTabs = inject11("$xeTabs", null);
|
|
16763
16787
|
const $xeParentTable = inject11("$xeTable", null);
|
|
@@ -22543,8 +22567,8 @@ var table_default = (
|
|
|
22543
22567
|
const targetColumn = getRootColumn($xeTable, column);
|
|
22544
22568
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
22545
22569
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
22546
|
-
if (
|
|
22547
|
-
|
|
22570
|
+
if (VxeUI27.modal) {
|
|
22571
|
+
VxeUI27.modal.message({
|
|
22548
22572
|
status: "error",
|
|
22549
22573
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
22550
22574
|
});
|
|
@@ -23748,8 +23772,8 @@ var table_default = (
|
|
|
23748
23772
|
}
|
|
23749
23773
|
const confList = fieldOrColumns ? XEUtils24.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
23750
23774
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
23751
|
-
if (
|
|
23752
|
-
|
|
23775
|
+
if (VxeUI27.modal) {
|
|
23776
|
+
VxeUI27.modal.message({
|
|
23753
23777
|
status: "error",
|
|
23754
23778
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
23755
23779
|
});
|
|
@@ -25990,7 +26014,6 @@ var table_default = (
|
|
|
25990
26014
|
if (rowExpandedMaps[rowid]) {
|
|
25991
26015
|
rowExpandedMaps[rowid] = row;
|
|
25992
26016
|
}
|
|
25993
|
-
rowNum++;
|
|
25994
26017
|
idMaps[rowid] = true;
|
|
25995
26018
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
25996
26019
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
@@ -27813,8 +27836,8 @@ var table_default = (
|
|
|
27813
27836
|
if (oldAllMaps[newRowid]) {
|
|
27814
27837
|
isSelfToChildStatus = true;
|
|
27815
27838
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27816
|
-
if (
|
|
27817
|
-
|
|
27839
|
+
if (VxeUI27.modal) {
|
|
27840
|
+
VxeUI27.modal.message({
|
|
27818
27841
|
status: "error",
|
|
27819
27842
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27820
27843
|
});
|
|
@@ -27837,8 +27860,8 @@ var table_default = (
|
|
|
27837
27860
|
if (oldAllMaps[newRowid]) {
|
|
27838
27861
|
isSelfToChildStatus = true;
|
|
27839
27862
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27840
|
-
if (
|
|
27841
|
-
|
|
27863
|
+
if (VxeUI27.modal) {
|
|
27864
|
+
VxeUI27.modal.message({
|
|
27842
27865
|
status: "error",
|
|
27843
27866
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27844
27867
|
});
|
|
@@ -28494,8 +28517,8 @@ var table_default = (
|
|
|
28494
28517
|
if (oldAllMaps[newColumn.id]) {
|
|
28495
28518
|
isSelfToChildStatus = true;
|
|
28496
28519
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28497
|
-
if (
|
|
28498
|
-
|
|
28520
|
+
if (VxeUI27.modal) {
|
|
28521
|
+
VxeUI27.modal.message({
|
|
28499
28522
|
status: "error",
|
|
28500
28523
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28501
28524
|
});
|
|
@@ -28518,8 +28541,8 @@ var table_default = (
|
|
|
28518
28541
|
if (oldAllMaps[newColumn.id]) {
|
|
28519
28542
|
isSelfToChildStatus = true;
|
|
28520
28543
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28521
|
-
if (
|
|
28522
|
-
|
|
28544
|
+
if (VxeUI27.modal) {
|
|
28545
|
+
VxeUI27.modal.message({
|
|
28523
28546
|
status: "error",
|
|
28524
28547
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28525
28548
|
});
|
|
@@ -30834,7 +30857,7 @@ var table_default = (
|
|
|
30834
30857
|
}
|
|
30835
30858
|
);
|
|
30836
30859
|
watch3(
|
|
30837
|
-
() =>
|
|
30860
|
+
() => VxeUI27.getLanguage(),
|
|
30838
30861
|
() => {
|
|
30839
30862
|
reLayoutFlag.value++;
|
|
30840
30863
|
}
|
|
@@ -31442,23 +31465,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
31442
31465
|
var tableHandle = {
|
|
31443
31466
|
useCellView
|
|
31444
31467
|
};
|
|
31445
|
-
if (
|
|
31446
|
-
|
|
31468
|
+
if (VxeUI28.dynamicApp) {
|
|
31469
|
+
VxeUI28.dynamicApp.component(table_default.name, table_default);
|
|
31447
31470
|
}
|
|
31448
|
-
|
|
31449
|
-
|
|
31471
|
+
VxeUI28.component(table_default);
|
|
31472
|
+
VxeUI28.tableHandle = tableHandle;
|
|
31450
31473
|
var Table = VxeTable;
|
|
31451
31474
|
var table_default2 = VxeTable;
|
|
31452
31475
|
|
|
31453
31476
|
// packages_temp/toolbar/index.ts
|
|
31454
|
-
import { VxeUI as
|
|
31477
|
+
import { VxeUI as VxeUI30 } from "@vxe-ui/core";
|
|
31455
31478
|
|
|
31456
31479
|
// packages_temp/toolbar/src/toolbar.ts
|
|
31457
31480
|
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";
|
|
31458
31481
|
import XEUtils26 from "xe-utils";
|
|
31459
|
-
import { VxeUI as
|
|
31482
|
+
import { VxeUI as VxeUI29 } from "@vxe-ui/core";
|
|
31460
31483
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
31461
|
-
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } =
|
|
31484
|
+
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI29;
|
|
31462
31485
|
function createReactData2() {
|
|
31463
31486
|
return {
|
|
31464
31487
|
isRefresh: false,
|
|
@@ -31511,7 +31534,7 @@ var toolbar_default = (
|
|
|
31511
31534
|
setup(props, context) {
|
|
31512
31535
|
const { slots, emit } = context;
|
|
31513
31536
|
const xID = XEUtils26.uniqueId();
|
|
31514
|
-
const VxeUIButtonComponent =
|
|
31537
|
+
const VxeUIButtonComponent = VxeUI29.getComponent("VxeButton");
|
|
31515
31538
|
const $xeGrid = inject12("$xeGrid", null);
|
|
31516
31539
|
const $xeGantt = inject12("$xeGantt", null);
|
|
31517
31540
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -32132,16 +32155,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
32132
32155
|
app.component(toolbar_default.name, toolbar_default);
|
|
32133
32156
|
}
|
|
32134
32157
|
});
|
|
32135
|
-
if (
|
|
32136
|
-
|
|
32158
|
+
if (VxeUI30.dynamicApp) {
|
|
32159
|
+
VxeUI30.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
32137
32160
|
}
|
|
32138
|
-
|
|
32161
|
+
VxeUI30.component(toolbar_default);
|
|
32139
32162
|
var Toolbar = VxeToolbar;
|
|
32140
32163
|
var toolbar_default2 = VxeToolbar;
|
|
32141
32164
|
|
|
32142
32165
|
// packages_temp/grid/src/grid.ts
|
|
32143
32166
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
32144
|
-
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } =
|
|
32167
|
+
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI31;
|
|
32145
32168
|
var tableComponentPropKeys = Object.keys(tableComponenProps);
|
|
32146
32169
|
var tableComponentMethodKeys = [
|
|
32147
32170
|
"clearAll",
|
|
@@ -32361,8 +32384,8 @@ var grid_default = (
|
|
|
32361
32384
|
setup(props, context) {
|
|
32362
32385
|
const { slots, emit } = context;
|
|
32363
32386
|
const xID = XEUtils27.uniqueId();
|
|
32364
|
-
const VxeUIFormComponent =
|
|
32365
|
-
const VxeUIPagerComponent =
|
|
32387
|
+
const VxeUIFormComponent = VxeUI31.getComponent("VxeForm");
|
|
32388
|
+
const VxeUIPagerComponent = VxeUI31.getComponent("VxePager");
|
|
32366
32389
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
32367
32390
|
const { computeSize } = useFns3.useSize(props);
|
|
32368
32391
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -32603,8 +32626,8 @@ var grid_default = (
|
|
|
32603
32626
|
$xeGrid.clearCheckboxRow();
|
|
32604
32627
|
} else {
|
|
32605
32628
|
if (isActiveMsg) {
|
|
32606
|
-
if (
|
|
32607
|
-
|
|
32629
|
+
if (VxeUI31.modal) {
|
|
32630
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32608
32631
|
}
|
|
32609
32632
|
}
|
|
32610
32633
|
}
|
|
@@ -32625,16 +32648,16 @@ var grid_default = (
|
|
|
32625
32648
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
32626
32649
|
if (isActiveMsg) {
|
|
32627
32650
|
if (selectRecords.length) {
|
|
32628
|
-
if (
|
|
32629
|
-
return
|
|
32651
|
+
if (VxeUI31.modal) {
|
|
32652
|
+
return VxeUI31.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
32630
32653
|
if (type === "confirm") {
|
|
32631
32654
|
return callback();
|
|
32632
32655
|
}
|
|
32633
32656
|
});
|
|
32634
32657
|
}
|
|
32635
32658
|
} else {
|
|
32636
|
-
if (
|
|
32637
|
-
|
|
32659
|
+
if (VxeUI31.modal) {
|
|
32660
|
+
VxeUI31.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32638
32661
|
}
|
|
32639
32662
|
}
|
|
32640
32663
|
} else {
|
|
@@ -33576,8 +33599,8 @@ var grid_default = (
|
|
|
33576
33599
|
} else {
|
|
33577
33600
|
$xeTable.setPendingRow(removeRecords, false);
|
|
33578
33601
|
if (isRespMsg) {
|
|
33579
|
-
if (
|
|
33580
|
-
|
|
33602
|
+
if (VxeUI31.modal) {
|
|
33603
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
33581
33604
|
}
|
|
33582
33605
|
}
|
|
33583
33606
|
if (oldAfterDelete) {
|
|
@@ -33599,8 +33622,8 @@ var grid_default = (
|
|
|
33599
33622
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33600
33623
|
} else {
|
|
33601
33624
|
if (isRespMsg) {
|
|
33602
|
-
if (
|
|
33603
|
-
|
|
33625
|
+
if (VxeUI31.modal) {
|
|
33626
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33604
33627
|
}
|
|
33605
33628
|
}
|
|
33606
33629
|
}
|
|
@@ -33621,8 +33644,8 @@ var grid_default = (
|
|
|
33621
33644
|
});
|
|
33622
33645
|
} else {
|
|
33623
33646
|
if (isActiveMsg) {
|
|
33624
|
-
if (
|
|
33625
|
-
|
|
33647
|
+
if (VxeUI31.modal) {
|
|
33648
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
33626
33649
|
}
|
|
33627
33650
|
}
|
|
33628
33651
|
}
|
|
@@ -33674,8 +33697,8 @@ var grid_default = (
|
|
|
33674
33697
|
} else {
|
|
33675
33698
|
$xeTable.clearPendingRow();
|
|
33676
33699
|
if (isRespMsg) {
|
|
33677
|
-
if (
|
|
33678
|
-
|
|
33700
|
+
if (VxeUI31.modal) {
|
|
33701
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
33679
33702
|
}
|
|
33680
33703
|
}
|
|
33681
33704
|
if (oldAfterSave) {
|
|
@@ -33697,8 +33720,8 @@ var grid_default = (
|
|
|
33697
33720
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33698
33721
|
} else {
|
|
33699
33722
|
if (isRespMsg) {
|
|
33700
|
-
if (
|
|
33701
|
-
|
|
33723
|
+
if (VxeUI31.modal) {
|
|
33724
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33702
33725
|
}
|
|
33703
33726
|
}
|
|
33704
33727
|
}
|
|
@@ -33718,8 +33741,8 @@ var grid_default = (
|
|
|
33718
33741
|
return handleSave();
|
|
33719
33742
|
} else {
|
|
33720
33743
|
if (isActiveMsg) {
|
|
33721
|
-
if (
|
|
33722
|
-
|
|
33744
|
+
if (VxeUI31.modal) {
|
|
33745
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
33723
33746
|
}
|
|
33724
33747
|
}
|
|
33725
33748
|
}
|
|
@@ -34158,10 +34181,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
34158
34181
|
app.component(grid_default.name, grid_default);
|
|
34159
34182
|
}
|
|
34160
34183
|
});
|
|
34161
|
-
if (
|
|
34162
|
-
|
|
34184
|
+
if (VxeUI32.dynamicApp) {
|
|
34185
|
+
VxeUI32.dynamicApp.component(grid_default.name, grid_default);
|
|
34163
34186
|
}
|
|
34164
|
-
|
|
34187
|
+
VxeUI32.component(grid_default);
|
|
34165
34188
|
var Grid = VxeGrid;
|
|
34166
34189
|
|
|
34167
34190
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -35085,15 +35108,15 @@ __reExport(components_exports, core_star);
|
|
|
35085
35108
|
import * as core_star from "@vxe-ui/core";
|
|
35086
35109
|
var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
35087
35110
|
function install(app, options) {
|
|
35088
|
-
|
|
35111
|
+
VxeUI33.setConfig(options);
|
|
35089
35112
|
components.forEach((component) => component.install(app));
|
|
35090
35113
|
}
|
|
35091
|
-
if (!
|
|
35114
|
+
if (!VxeUI33.hasLanguage("zh-CN")) {
|
|
35092
35115
|
const defaultLanguage = "zh-CN";
|
|
35093
|
-
|
|
35094
|
-
|
|
35116
|
+
VxeUI33.setI18n(defaultLanguage, zh_CN_default);
|
|
35117
|
+
VxeUI33.setLanguage(defaultLanguage);
|
|
35095
35118
|
}
|
|
35096
|
-
|
|
35119
|
+
VxeUI33.setTheme("light");
|
|
35097
35120
|
|
|
35098
35121
|
// packages_temp/index.ts
|
|
35099
35122
|
__reExport(index_exports, components_exports);
|
|
@@ -35106,6 +35129,11 @@ if (typeof window !== "undefined") {
|
|
|
35106
35129
|
}
|
|
35107
35130
|
}
|
|
35108
35131
|
var index_default = components_exports;
|
|
35132
|
+
|
|
35133
|
+
// packages_temp/esm.index.ts
|
|
35134
|
+
__reExport(esm_index_exports, index_exports);
|
|
35135
|
+
var esm_index_default = index_exports;
|
|
35136
|
+
var export_VxeUI = index_exports.VxeUI;
|
|
35109
35137
|
export {
|
|
35110
35138
|
Colgroup,
|
|
35111
35139
|
Column,
|
|
@@ -35118,16 +35146,15 @@ export {
|
|
|
35118
35146
|
VxeGrid,
|
|
35119
35147
|
VxeTable,
|
|
35120
35148
|
VxeToolbar,
|
|
35121
|
-
|
|
35149
|
+
export_VxeUI as VxeUI,
|
|
35122
35150
|
_t,
|
|
35123
35151
|
config,
|
|
35124
|
-
|
|
35152
|
+
esm_index_default as default,
|
|
35125
35153
|
install,
|
|
35126
35154
|
modal,
|
|
35127
35155
|
print,
|
|
35128
35156
|
readFile,
|
|
35129
35157
|
saveFile,
|
|
35130
35158
|
setup,
|
|
35131
|
-
t
|
|
35132
|
-
version
|
|
35159
|
+
t
|
|
35133
35160
|
};
|