vxe-table 4.23.19 → 4.23.21
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 +289 -253
- 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/src/table.js +6 -2
- 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 -83
- package/es/ui/index.js +2 -89
- 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 +254 -249
- package/lib/index.umd.min.js +3 -3
- package/lib/style.css +4 -1
- package/lib/style.mini.css +1 -1
- package/lib/table/src/table.js +6 -2
- 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 -83
- package/lib/ui/index.js +3 -89
- 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 +1 -1
- 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 -1232
- package/packages/table/module/export/export-panel.ts +697 -697
- package/packages/table/module/export/hook.ts +2158 -2158
- 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 +8 -3
- 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 -524
- 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.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
- /package/dist/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
- /package/dist/{iconfont.1794474448348.woff2 → iconfont.1794983806256.woff2} +0 -0
- /package/es/{iconfont.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
- /package/es/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
- /package/es/{iconfont.1794474448348.woff2 → iconfont.1794983806256.woff2} +0 -0
- /package/lib/{iconfont.1794474448348.ttf → iconfont.1794983806256.ttf} +0 -0
- /package/lib/{iconfont.1794474448348.woff → iconfont.1794983806256.woff} +0 -0
- /package/lib/{iconfont.1794474448348.woff2 → iconfont.1794983806256.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.21";
|
|
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.21"}`;
|
|
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({
|
|
@@ -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({
|
|
@@ -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",
|
|
@@ -11607,7 +11635,7 @@ hooks3.add("tableEditModule", {
|
|
|
11607
11635
|
// packages_temp/table/module/export/hook.ts
|
|
11608
11636
|
import { nextTick as nextTick10 } from "vue";
|
|
11609
11637
|
import XEUtils19 from "xe-utils";
|
|
11610
|
-
import { VxeUI as
|
|
11638
|
+
import { VxeUI as VxeUI22 } from "@vxe-ui/core";
|
|
11611
11639
|
|
|
11612
11640
|
// packages_temp/table/module/export/util.ts
|
|
11613
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}';
|
|
@@ -11632,7 +11660,7 @@ function createHtmlPage(opts, content) {
|
|
|
11632
11660
|
|
|
11633
11661
|
// packages_temp/table/module/export/hook.ts
|
|
11634
11662
|
var { warnLog: warnLog5, errLog: errLog7 } = createComponentLog("table");
|
|
11635
|
-
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } =
|
|
11663
|
+
var { getI18n: getI18n10, hooks: hooks4, renderer: renderer9 } = VxeUI22;
|
|
11636
11664
|
var htmlCellElem;
|
|
11637
11665
|
var csvBOM = "\uFEFF";
|
|
11638
11666
|
var enterSymbol = "\r\n";
|
|
@@ -12596,11 +12624,11 @@ hooks4.add("tableExportModule", {
|
|
|
12596
12624
|
const blob = getExportBlobByContent(content, opts);
|
|
12597
12625
|
return Promise.resolve({ type, content, blob });
|
|
12598
12626
|
}
|
|
12599
|
-
if (
|
|
12600
|
-
|
|
12627
|
+
if (VxeUI22.saveFile) {
|
|
12628
|
+
VxeUI22.saveFile({ filename, type, content }).then(() => {
|
|
12601
12629
|
if (opts.message !== false) {
|
|
12602
|
-
if (
|
|
12603
|
-
|
|
12630
|
+
if (VxeUI22.modal) {
|
|
12631
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.expSuccess"), status: "success" });
|
|
12604
12632
|
}
|
|
12605
12633
|
}
|
|
12606
12634
|
});
|
|
@@ -12687,8 +12715,8 @@ hooks4.add("tableExportModule", {
|
|
|
12687
12715
|
loadRest = $xeTable.reloadData(data);
|
|
12688
12716
|
}
|
|
12689
12717
|
if (opts.message !== false) {
|
|
12690
|
-
if (
|
|
12691
|
-
|
|
12718
|
+
if (VxeUI22.modal) {
|
|
12719
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.table.impSuccess", [rows.length]), status: "success" });
|
|
12692
12720
|
}
|
|
12693
12721
|
}
|
|
12694
12722
|
return loadRest.then(() => {
|
|
@@ -12699,8 +12727,8 @@ hooks4.add("tableExportModule", {
|
|
|
12699
12727
|
});
|
|
12700
12728
|
} else {
|
|
12701
12729
|
if (opts.message !== false) {
|
|
12702
|
-
if (
|
|
12703
|
-
|
|
12730
|
+
if (VxeUI22.modal) {
|
|
12731
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.impFields"), status: "error" });
|
|
12704
12732
|
}
|
|
12705
12733
|
}
|
|
12706
12734
|
if (_importReject) {
|
|
@@ -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" };
|
|
@@ -12959,8 +12987,8 @@ hooks4.add("tableExportModule", {
|
|
|
12959
12987
|
return nextTick10();
|
|
12960
12988
|
};
|
|
12961
12989
|
const handleCloseExport = () => {
|
|
12962
|
-
if (
|
|
12963
|
-
return
|
|
12990
|
+
if (VxeUI22.modal) {
|
|
12991
|
+
return VxeUI22.modal.close("VXE_EXPORT_MODAL");
|
|
12964
12992
|
}
|
|
12965
12993
|
return Promise.resolve();
|
|
12966
12994
|
};
|
|
@@ -13321,7 +13349,7 @@ hooks4.add("tableExportModule", {
|
|
|
13321
13349
|
warnLog5("vxe.error.returnErr", ["beforeImportMethod", "boolean", biRest]);
|
|
13322
13350
|
}
|
|
13323
13351
|
}
|
|
13324
|
-
return
|
|
13352
|
+
return VxeUI22.readFile(opts).catch((e) => {
|
|
13325
13353
|
if (afterImportMethod) {
|
|
13326
13354
|
afterImportMethod({ status: false, options: opts, $table: $xeTable });
|
|
13327
13355
|
}
|
|
@@ -13332,10 +13360,10 @@ hooks4.add("tableExportModule", {
|
|
|
13332
13360
|
});
|
|
13333
13361
|
},
|
|
13334
13362
|
saveFile(options) {
|
|
13335
|
-
return
|
|
13363
|
+
return VxeUI22.saveFile(options);
|
|
13336
13364
|
},
|
|
13337
13365
|
readFile(options) {
|
|
13338
|
-
return
|
|
13366
|
+
return VxeUI22.readFile(options);
|
|
13339
13367
|
},
|
|
13340
13368
|
print(options) {
|
|
13341
13369
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -13376,10 +13404,10 @@ hooks4.add("tableExportModule", {
|
|
|
13376
13404
|
const printMethod = opts.printMethod;
|
|
13377
13405
|
const tableHtml = opts.html || opts.content;
|
|
13378
13406
|
return new Promise((resolve, reject) => {
|
|
13379
|
-
if (
|
|
13407
|
+
if (VxeUI22.print) {
|
|
13380
13408
|
if (tableHtml) {
|
|
13381
13409
|
resolve(
|
|
13382
|
-
|
|
13410
|
+
VxeUI22.print({
|
|
13383
13411
|
title: printTitle,
|
|
13384
13412
|
html: tableHtml,
|
|
13385
13413
|
customStyle: opts.style,
|
|
@@ -13418,7 +13446,7 @@ hooks4.add("tableExportModule", {
|
|
|
13418
13446
|
} else {
|
|
13419
13447
|
resolve(
|
|
13420
13448
|
exportMethods.exportData(opts).then(({ content }) => {
|
|
13421
|
-
return
|
|
13449
|
+
return VxeUI22.print({
|
|
13422
13450
|
title: printTitle,
|
|
13423
13451
|
html: content,
|
|
13424
13452
|
customStyle: opts.style,
|
|
@@ -13486,8 +13514,8 @@ hooks4.add("tableExportModule", {
|
|
|
13486
13514
|
});
|
|
13487
13515
|
},
|
|
13488
13516
|
closeImport() {
|
|
13489
|
-
if (
|
|
13490
|
-
return
|
|
13517
|
+
if (VxeUI22.modal) {
|
|
13518
|
+
return VxeUI22.modal.close("VXE_IMPORT_MODAL");
|
|
13491
13519
|
}
|
|
13492
13520
|
return Promise.resolve();
|
|
13493
13521
|
},
|
|
@@ -13510,8 +13538,8 @@ hooks4.add("tableExportModule", {
|
|
|
13510
13538
|
const isTree = !!treeConfig;
|
|
13511
13539
|
if (isTree) {
|
|
13512
13540
|
if (defOpts.message) {
|
|
13513
|
-
if (
|
|
13514
|
-
|
|
13541
|
+
if (VxeUI22.modal) {
|
|
13542
|
+
VxeUI22.modal.message({ content: getI18n10("vxe.error.treeNotImp"), status: "error" });
|
|
13515
13543
|
}
|
|
13516
13544
|
}
|
|
13517
13545
|
return;
|
|
@@ -13597,8 +13625,8 @@ hooks4.add("tableExportModule", {
|
|
|
13597
13625
|
|
|
13598
13626
|
// packages_temp/table/module/keyboard/hook.ts
|
|
13599
13627
|
import XEUtils20 from "xe-utils";
|
|
13600
|
-
import { VxeUI as
|
|
13601
|
-
var { hooks: hooks5 } =
|
|
13628
|
+
import { VxeUI as VxeUI23 } from "@vxe-ui/core";
|
|
13629
|
+
var { hooks: hooks5 } = VxeUI23;
|
|
13602
13630
|
hooks5.add("tableKeyboardModule", {
|
|
13603
13631
|
setupTable($xeTable) {
|
|
13604
13632
|
const { props, reactData, internalData } = $xeTable;
|
|
@@ -14065,9 +14093,9 @@ hooks5.add("tableKeyboardModule", {
|
|
|
14065
14093
|
// packages_temp/table/module/validator/hook.ts
|
|
14066
14094
|
import { nextTick as nextTick11 } from "vue";
|
|
14067
14095
|
import XEUtils21 from "xe-utils";
|
|
14068
|
-
import { VxeUI as
|
|
14096
|
+
import { VxeUI as VxeUI24 } from "@vxe-ui/core";
|
|
14069
14097
|
var { warnLog: warnLog6, errLog: errLog8 } = createComponentLog("table");
|
|
14070
|
-
var { getConfig: getConfig6, validators, hooks: hooks6 } =
|
|
14098
|
+
var { getConfig: getConfig6, validators, hooks: hooks6 } = VxeUI24;
|
|
14071
14099
|
var Rule = class {
|
|
14072
14100
|
constructor(rule) {
|
|
14073
14101
|
Object.assign(this, {
|
|
@@ -14619,11 +14647,11 @@ hooks6.add("tableValidatorModule", {
|
|
|
14619
14647
|
|
|
14620
14648
|
// packages_temp/table/module/custom/hook.ts
|
|
14621
14649
|
import { nextTick as nextTick12 } from "vue";
|
|
14622
|
-
import { VxeUI as
|
|
14650
|
+
import { VxeUI as VxeUI25 } from "@vxe-ui/core";
|
|
14623
14651
|
import XEUtils22 from "xe-utils";
|
|
14624
14652
|
var tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
14625
14653
|
var customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
14626
|
-
|
|
14654
|
+
VxeUI25.hooks.add("tableCustomModule", {
|
|
14627
14655
|
setupTable($xeTable) {
|
|
14628
14656
|
const { reactData, internalData } = $xeTable;
|
|
14629
14657
|
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
@@ -15096,9 +15124,9 @@ VxeUI24.hooks.add("tableCustomModule", {
|
|
|
15096
15124
|
// packages_temp/table/render/index.ts
|
|
15097
15125
|
import { h as h12, resolveComponent } from "vue";
|
|
15098
15126
|
import XEUtils23 from "xe-utils";
|
|
15099
|
-
import { VxeUI as
|
|
15127
|
+
import { VxeUI as VxeUI26 } from "@vxe-ui/core";
|
|
15100
15128
|
var { errLog: errLog9 } = createComponentLog("table");
|
|
15101
|
-
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } =
|
|
15129
|
+
var { getConfig: getConfig7, renderer: renderer10, getI18n: getI18n11, getComponent } = VxeUI26;
|
|
15102
15130
|
var componentDefaultModelProp = "modelValue";
|
|
15103
15131
|
var defaultCompProps = {};
|
|
15104
15132
|
function handleDefaultValue(value, defaultVal, initVal) {
|
|
@@ -16734,7 +16762,7 @@ renderer10.mixin({
|
|
|
16734
16762
|
|
|
16735
16763
|
// packages_temp/table/src/table.ts
|
|
16736
16764
|
var { warnLog: warnLog7, errLog: errLog10 } = createComponentLog("table");
|
|
16737
|
-
var { getConfig: getConfig8, getIcon: getIcon7, getI18n: getI18n12, renderer: renderer11, formats: formats2, createEvent, dbUtils, globalResize, interceptor, hooks: hooks7, domUtils, globalEvents: globalEvents2, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS2, useFns, renderEmptyElement: renderEmptyElement10 } =
|
|
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;
|
|
16738
16766
|
var supportMaxRow = 5e6;
|
|
16739
16767
|
var customStorageKey = "VXE_CUSTOM_STORE";
|
|
16740
16768
|
var maxYHeight = 5e6;
|
|
@@ -16752,8 +16780,8 @@ var table_default = (
|
|
|
16752
16780
|
const xID = XEUtils24.uniqueId();
|
|
16753
16781
|
const browseObj = XEUtils24.browse();
|
|
16754
16782
|
const scrollDefaultConf = Object.assign({}, getConfig8().scrollbar);
|
|
16755
|
-
const VxeUILoadingComponent =
|
|
16756
|
-
const VxeUITooltipComponent =
|
|
16783
|
+
const VxeUILoadingComponent = VxeUI27.getComponent("VxeLoading");
|
|
16784
|
+
const VxeUITooltipComponent = VxeUI27.getComponent("VxeTooltip");
|
|
16757
16785
|
const $xeModal = inject11("$xeModal", null);
|
|
16758
16786
|
const $xeTabs = inject11("$xeTabs", null);
|
|
16759
16787
|
const $xeParentTable = inject11("$xeTable", null);
|
|
@@ -22539,8 +22567,8 @@ var table_default = (
|
|
|
22539
22567
|
const targetColumn = getRootColumn($xeTable, column);
|
|
22540
22568
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
22541
22569
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
22542
|
-
if (
|
|
22543
|
-
|
|
22570
|
+
if (VxeUI27.modal) {
|
|
22571
|
+
VxeUI27.modal.message({
|
|
22544
22572
|
status: "error",
|
|
22545
22573
|
content: getI18n12("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
22546
22574
|
});
|
|
@@ -23744,8 +23772,8 @@ var table_default = (
|
|
|
23744
23772
|
}
|
|
23745
23773
|
const confList = fieldOrColumns ? XEUtils24.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
23746
23774
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
23747
|
-
if (
|
|
23748
|
-
|
|
23775
|
+
if (VxeUI27.modal) {
|
|
23776
|
+
VxeUI27.modal.message({
|
|
23749
23777
|
status: "error",
|
|
23750
23778
|
content: getI18n12("vxe.table.maxGroupCol", [maxGroupSize])
|
|
23751
23779
|
});
|
|
@@ -24750,8 +24778,12 @@ var table_default = (
|
|
|
24750
24778
|
let isClear;
|
|
24751
24779
|
if (editOpts.mode === "row") {
|
|
24752
24780
|
const rowTargetNode = getEventTargetNode(evnt, el, "vxe-body--row");
|
|
24753
|
-
|
|
24754
|
-
|
|
24781
|
+
if (rowTargetNode && rowTargetNode.flag) {
|
|
24782
|
+
const rowNodeRest = rowTargetNode.flag ? $xeTable.getRowNode(rowTargetNode.targetElem) : null;
|
|
24783
|
+
isClear = rowNodeRest ? !$xeTable.eqRow(rowNodeRest.item, actived.args.row) : false;
|
|
24784
|
+
} else {
|
|
24785
|
+
isClear = true;
|
|
24786
|
+
}
|
|
24755
24787
|
} else {
|
|
24756
24788
|
isClear = !getEventTargetNode(evnt, el, "col--edit").flag;
|
|
24757
24789
|
}
|
|
@@ -27808,8 +27840,8 @@ var table_default = (
|
|
|
27808
27840
|
if (oldAllMaps[newRowid]) {
|
|
27809
27841
|
isSelfToChildStatus = true;
|
|
27810
27842
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27811
|
-
if (
|
|
27812
|
-
|
|
27843
|
+
if (VxeUI27.modal) {
|
|
27844
|
+
VxeUI27.modal.message({
|
|
27813
27845
|
status: "error",
|
|
27814
27846
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27815
27847
|
});
|
|
@@ -27832,8 +27864,8 @@ var table_default = (
|
|
|
27832
27864
|
if (oldAllMaps[newRowid]) {
|
|
27833
27865
|
isSelfToChildStatus = true;
|
|
27834
27866
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
27835
|
-
if (
|
|
27836
|
-
|
|
27867
|
+
if (VxeUI27.modal) {
|
|
27868
|
+
VxeUI27.modal.message({
|
|
27837
27869
|
status: "error",
|
|
27838
27870
|
content: getI18n12("vxe.error.treeDragChild")
|
|
27839
27871
|
});
|
|
@@ -28489,8 +28521,8 @@ var table_default = (
|
|
|
28489
28521
|
if (oldAllMaps[newColumn.id]) {
|
|
28490
28522
|
isSelfToChildStatus = true;
|
|
28491
28523
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28492
|
-
if (
|
|
28493
|
-
|
|
28524
|
+
if (VxeUI27.modal) {
|
|
28525
|
+
VxeUI27.modal.message({
|
|
28494
28526
|
status: "error",
|
|
28495
28527
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28496
28528
|
});
|
|
@@ -28513,8 +28545,8 @@ var table_default = (
|
|
|
28513
28545
|
if (oldAllMaps[newColumn.id]) {
|
|
28514
28546
|
isSelfToChildStatus = true;
|
|
28515
28547
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
28516
|
-
if (
|
|
28517
|
-
|
|
28548
|
+
if (VxeUI27.modal) {
|
|
28549
|
+
VxeUI27.modal.message({
|
|
28518
28550
|
status: "error",
|
|
28519
28551
|
content: getI18n12("vxe.error.treeDragChild")
|
|
28520
28552
|
});
|
|
@@ -30829,7 +30861,7 @@ var table_default = (
|
|
|
30829
30861
|
}
|
|
30830
30862
|
);
|
|
30831
30863
|
watch3(
|
|
30832
|
-
() =>
|
|
30864
|
+
() => VxeUI27.getLanguage(),
|
|
30833
30865
|
() => {
|
|
30834
30866
|
reLayoutFlag.value++;
|
|
30835
30867
|
}
|
|
@@ -31437,23 +31469,23 @@ var VxeTable = Object.assign({}, table_default, {
|
|
|
31437
31469
|
var tableHandle = {
|
|
31438
31470
|
useCellView
|
|
31439
31471
|
};
|
|
31440
|
-
if (
|
|
31441
|
-
|
|
31472
|
+
if (VxeUI28.dynamicApp) {
|
|
31473
|
+
VxeUI28.dynamicApp.component(table_default.name, table_default);
|
|
31442
31474
|
}
|
|
31443
|
-
|
|
31444
|
-
|
|
31475
|
+
VxeUI28.component(table_default);
|
|
31476
|
+
VxeUI28.tableHandle = tableHandle;
|
|
31445
31477
|
var Table = VxeTable;
|
|
31446
31478
|
var table_default2 = VxeTable;
|
|
31447
31479
|
|
|
31448
31480
|
// packages_temp/toolbar/index.ts
|
|
31449
|
-
import { VxeUI as
|
|
31481
|
+
import { VxeUI as VxeUI30 } from "@vxe-ui/core";
|
|
31450
31482
|
|
|
31451
31483
|
// packages_temp/toolbar/src/toolbar.ts
|
|
31452
31484
|
import { h as h14, ref as ref12, computed as computed6, inject as inject12, createCommentVNode as createCommentVNode3, reactive as reactive8, nextTick as nextTick14, onBeforeUnmount as onBeforeUnmount2 } from "vue";
|
|
31453
31485
|
import XEUtils26 from "xe-utils";
|
|
31454
|
-
import { VxeUI as
|
|
31486
|
+
import { VxeUI as VxeUI29 } from "@vxe-ui/core";
|
|
31455
31487
|
var { warnLog: warnLog8, errLog: errLog11 } = createComponentLog("toolbar");
|
|
31456
|
-
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } =
|
|
31488
|
+
var { getConfig: getConfig9, getIcon: getIcon8, getI18n: getI18n13, renderer: renderer12, commands, createEvent: createEvent2, useFns: useFns2 } = VxeUI29;
|
|
31457
31489
|
function createReactData2() {
|
|
31458
31490
|
return {
|
|
31459
31491
|
isRefresh: false,
|
|
@@ -31506,7 +31538,7 @@ var toolbar_default = (
|
|
|
31506
31538
|
setup(props, context) {
|
|
31507
31539
|
const { slots, emit } = context;
|
|
31508
31540
|
const xID = XEUtils26.uniqueId();
|
|
31509
|
-
const VxeUIButtonComponent =
|
|
31541
|
+
const VxeUIButtonComponent = VxeUI29.getComponent("VxeButton");
|
|
31510
31542
|
const $xeGrid = inject12("$xeGrid", null);
|
|
31511
31543
|
const $xeGantt = inject12("$xeGantt", null);
|
|
31512
31544
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -32127,16 +32159,16 @@ var VxeToolbar = Object.assign({}, toolbar_default, {
|
|
|
32127
32159
|
app.component(toolbar_default.name, toolbar_default);
|
|
32128
32160
|
}
|
|
32129
32161
|
});
|
|
32130
|
-
if (
|
|
32131
|
-
|
|
32162
|
+
if (VxeUI30.dynamicApp) {
|
|
32163
|
+
VxeUI30.dynamicApp.component(toolbar_default.name, toolbar_default);
|
|
32132
32164
|
}
|
|
32133
|
-
|
|
32165
|
+
VxeUI30.component(toolbar_default);
|
|
32134
32166
|
var Toolbar = VxeToolbar;
|
|
32135
32167
|
var toolbar_default2 = VxeToolbar;
|
|
32136
32168
|
|
|
32137
32169
|
// packages_temp/grid/src/grid.ts
|
|
32138
32170
|
var { warnLog: warnLog9, errLog: errLog12 } = createComponentLog("grid");
|
|
32139
|
-
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } =
|
|
32171
|
+
var { getConfig: getConfig10, getI18n: getI18n14, commands: commands2, hooks: hooks8, useFns: useFns3, createEvent: createEvent3, globalEvents: globalEvents3, GLOBAL_EVENT_KEYS: GLOBAL_EVENT_KEYS3, renderEmptyElement: renderEmptyElement11 } = VxeUI31;
|
|
32140
32172
|
var tableComponentPropKeys = Object.keys(tableComponenProps);
|
|
32141
32173
|
var tableComponentMethodKeys = [
|
|
32142
32174
|
"clearAll",
|
|
@@ -32356,8 +32388,8 @@ var grid_default = (
|
|
|
32356
32388
|
setup(props, context) {
|
|
32357
32389
|
const { slots, emit } = context;
|
|
32358
32390
|
const xID = XEUtils27.uniqueId();
|
|
32359
|
-
const VxeUIFormComponent =
|
|
32360
|
-
const VxeUIPagerComponent =
|
|
32391
|
+
const VxeUIFormComponent = VxeUI31.getComponent("VxeForm");
|
|
32392
|
+
const VxeUIPagerComponent = VxeUI31.getComponent("VxePager");
|
|
32361
32393
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
32362
32394
|
const { computeSize } = useFns3.useSize(props);
|
|
32363
32395
|
const { computeIsVScrollbar } = useFns3.useVScrollbar(props);
|
|
@@ -32598,8 +32630,8 @@ var grid_default = (
|
|
|
32598
32630
|
$xeGrid.clearCheckboxRow();
|
|
32599
32631
|
} else {
|
|
32600
32632
|
if (isActiveMsg) {
|
|
32601
|
-
if (
|
|
32602
|
-
|
|
32633
|
+
if (VxeUI31.modal) {
|
|
32634
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32603
32635
|
}
|
|
32604
32636
|
}
|
|
32605
32637
|
}
|
|
@@ -32620,16 +32652,16 @@ var grid_default = (
|
|
|
32620
32652
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
32621
32653
|
if (isActiveMsg) {
|
|
32622
32654
|
if (selectRecords.length) {
|
|
32623
|
-
if (
|
|
32624
|
-
return
|
|
32655
|
+
if (VxeUI31.modal) {
|
|
32656
|
+
return VxeUI31.modal.confirm({ id: `cfm_${code}`, content: getI18n14(alertKey), escClosable: true }).then((type) => {
|
|
32625
32657
|
if (type === "confirm") {
|
|
32626
32658
|
return callback();
|
|
32627
32659
|
}
|
|
32628
32660
|
});
|
|
32629
32661
|
}
|
|
32630
32662
|
} else {
|
|
32631
|
-
if (
|
|
32632
|
-
|
|
32663
|
+
if (VxeUI31.modal) {
|
|
32664
|
+
VxeUI31.modal.message({ id: `msg_${code}`, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
32633
32665
|
}
|
|
32634
32666
|
}
|
|
32635
32667
|
} else {
|
|
@@ -33571,8 +33603,8 @@ var grid_default = (
|
|
|
33571
33603
|
} else {
|
|
33572
33604
|
$xeTable.setPendingRow(removeRecords, false);
|
|
33573
33605
|
if (isRespMsg) {
|
|
33574
|
-
if (
|
|
33575
|
-
|
|
33606
|
+
if (VxeUI31.modal) {
|
|
33607
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
33576
33608
|
}
|
|
33577
33609
|
}
|
|
33578
33610
|
if (oldAfterDelete) {
|
|
@@ -33594,8 +33626,8 @@ var grid_default = (
|
|
|
33594
33626
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33595
33627
|
} else {
|
|
33596
33628
|
if (isRespMsg) {
|
|
33597
|
-
if (
|
|
33598
|
-
|
|
33629
|
+
if (VxeUI31.modal) {
|
|
33630
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33599
33631
|
}
|
|
33600
33632
|
}
|
|
33601
33633
|
}
|
|
@@ -33616,8 +33648,8 @@ var grid_default = (
|
|
|
33616
33648
|
});
|
|
33617
33649
|
} else {
|
|
33618
33650
|
if (isActiveMsg) {
|
|
33619
|
-
if (
|
|
33620
|
-
|
|
33651
|
+
if (VxeUI31.modal) {
|
|
33652
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.selectOneRecord"), status: "warning" });
|
|
33621
33653
|
}
|
|
33622
33654
|
}
|
|
33623
33655
|
}
|
|
@@ -33669,8 +33701,8 @@ var grid_default = (
|
|
|
33669
33701
|
} else {
|
|
33670
33702
|
$xeTable.clearPendingRow();
|
|
33671
33703
|
if (isRespMsg) {
|
|
33672
|
-
if (
|
|
33673
|
-
|
|
33704
|
+
if (VxeUI31.modal) {
|
|
33705
|
+
VxeUI31.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
33674
33706
|
}
|
|
33675
33707
|
}
|
|
33676
33708
|
if (oldAfterSave) {
|
|
@@ -33692,8 +33724,8 @@ var grid_default = (
|
|
|
33692
33724
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
33693
33725
|
} else {
|
|
33694
33726
|
if (isRespMsg) {
|
|
33695
|
-
if (
|
|
33696
|
-
|
|
33727
|
+
if (VxeUI31.modal) {
|
|
33728
|
+
VxeUI31.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
33697
33729
|
}
|
|
33698
33730
|
}
|
|
33699
33731
|
}
|
|
@@ -33713,8 +33745,8 @@ var grid_default = (
|
|
|
33713
33745
|
return handleSave();
|
|
33714
33746
|
} else {
|
|
33715
33747
|
if (isActiveMsg) {
|
|
33716
|
-
if (
|
|
33717
|
-
|
|
33748
|
+
if (VxeUI31.modal) {
|
|
33749
|
+
VxeUI31.modal.message({ id: code, content: getI18n14("vxe.grid.dataUnchanged"), status: "info" });
|
|
33718
33750
|
}
|
|
33719
33751
|
}
|
|
33720
33752
|
}
|
|
@@ -34153,10 +34185,10 @@ var VxeGrid = Object.assign({}, grid_default, {
|
|
|
34153
34185
|
app.component(grid_default.name, grid_default);
|
|
34154
34186
|
}
|
|
34155
34187
|
});
|
|
34156
|
-
if (
|
|
34157
|
-
|
|
34188
|
+
if (VxeUI32.dynamicApp) {
|
|
34189
|
+
VxeUI32.dynamicApp.component(grid_default.name, grid_default);
|
|
34158
34190
|
}
|
|
34159
|
-
|
|
34191
|
+
VxeUI32.component(grid_default);
|
|
34160
34192
|
var Grid = VxeGrid;
|
|
34161
34193
|
|
|
34162
34194
|
// packages_temp/locale/lang/zh-CN.ts
|
|
@@ -35080,15 +35112,15 @@ __reExport(components_exports, core_star);
|
|
|
35080
35112
|
import * as core_star from "@vxe-ui/core";
|
|
35081
35113
|
var components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
35082
35114
|
function install(app, options) {
|
|
35083
|
-
|
|
35115
|
+
VxeUI33.setConfig(options);
|
|
35084
35116
|
components.forEach((component) => component.install(app));
|
|
35085
35117
|
}
|
|
35086
|
-
if (!
|
|
35118
|
+
if (!VxeUI33.hasLanguage("zh-CN")) {
|
|
35087
35119
|
const defaultLanguage = "zh-CN";
|
|
35088
|
-
|
|
35089
|
-
|
|
35120
|
+
VxeUI33.setI18n(defaultLanguage, zh_CN_default);
|
|
35121
|
+
VxeUI33.setLanguage(defaultLanguage);
|
|
35090
35122
|
}
|
|
35091
|
-
|
|
35123
|
+
VxeUI33.setTheme("light");
|
|
35092
35124
|
|
|
35093
35125
|
// packages_temp/index.ts
|
|
35094
35126
|
__reExport(index_exports, components_exports);
|
|
@@ -35101,6 +35133,11 @@ if (typeof window !== "undefined") {
|
|
|
35101
35133
|
}
|
|
35102
35134
|
}
|
|
35103
35135
|
var index_default = components_exports;
|
|
35136
|
+
|
|
35137
|
+
// packages_temp/esm.index.ts
|
|
35138
|
+
__reExport(esm_index_exports, index_exports);
|
|
35139
|
+
var esm_index_default = index_exports;
|
|
35140
|
+
var export_VxeUI = index_exports.VxeUI;
|
|
35104
35141
|
export {
|
|
35105
35142
|
Colgroup,
|
|
35106
35143
|
Column,
|
|
@@ -35113,16 +35150,15 @@ export {
|
|
|
35113
35150
|
VxeGrid,
|
|
35114
35151
|
VxeTable,
|
|
35115
35152
|
VxeToolbar,
|
|
35116
|
-
|
|
35153
|
+
export_VxeUI as VxeUI,
|
|
35117
35154
|
_t,
|
|
35118
35155
|
config,
|
|
35119
|
-
|
|
35156
|
+
esm_index_default as default,
|
|
35120
35157
|
install,
|
|
35121
35158
|
modal,
|
|
35122
35159
|
print,
|
|
35123
35160
|
readFile,
|
|
35124
35161
|
saveFile,
|
|
35125
35162
|
setup,
|
|
35126
|
-
t
|
|
35127
|
-
version
|
|
35163
|
+
t
|
|
35128
35164
|
};
|