vxe-table 4.23.7 → 4.23.9
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 +5859 -4018
- package/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.d.ts +3 -0
- package/es/components.js +4 -8
- package/es/grid/index.js +1 -1
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +398 -121
- package/es/grid/src/props.js +1 -1
- package/es/index.esm.js +6 -0
- package/es/index.js +6 -0
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +50 -43
- package/es/table/module/custom/panel.js +778 -528
- package/es/table/module/edit/hook.js +141 -63
- package/es/table/module/export/export-panel.js +400 -317
- package/es/table/module/export/hook.js +396 -338
- package/es/table/module/export/import-panel.js +153 -124
- package/es/table/module/filter/hook.js +17 -3
- package/es/table/module/filter/panel.js +147 -85
- package/es/table/module/keyboard/hook.js +9 -5
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +198 -127
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/render/index.js +152 -99
- package/es/table/src/body.js +356 -234
- package/es/table/src/cell.js +427 -270
- package/es/table/src/columnInfo.js +2 -1
- package/es/table/src/footer.js +145 -100
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +230 -173
- package/es/table/src/props.js +1 -1
- package/es/table/src/table.js +1504 -1031
- package/es/table/src/util.js +15 -19
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +133 -76
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/es/v-x-e-table/index.d.ts +0 -1
- package/es/v-x-e-table/index.js +0 -1
- package/lib/colgroup/index.js +5 -5
- package/lib/column/index.js +5 -5
- package/lib/components.js +8 -12
- package/lib/grid/index.js +4 -4
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +419 -142
- package/lib/grid/src/props.js +2 -2
- package/lib/index.common.js +6 -0
- package/lib/index.js +6 -0
- package/lib/index.umd.js +5825 -3945
- package/lib/index.umd.min.js +3 -3
- package/lib/table/index.js +5 -5
- package/lib/table/module/custom/hook.js +51 -44
- package/lib/table/module/custom/panel.js +790 -540
- package/lib/table/module/edit/hook.js +142 -64
- package/lib/table/module/export/export-panel.js +406 -323
- package/lib/table/module/export/hook.js +419 -361
- package/lib/table/module/export/import-panel.js +157 -128
- package/lib/table/module/filter/hook.js +18 -4
- package/lib/table/module/filter/panel.js +149 -87
- package/lib/table/module/keyboard/hook.js +10 -6
- package/lib/table/module/menu/hook.js +2 -2
- package/lib/table/module/menu/panel.js +199 -128
- package/lib/table/module/validator/hook.js +2 -2
- package/lib/table/render/index.js +153 -100
- package/lib/table/src/body.js +357 -235
- package/lib/table/src/cell.js +428 -271
- package/lib/table/src/columnInfo.js +3 -2
- package/lib/table/src/footer.js +146 -101
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +231 -174
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/table.js +1487 -1045
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/index.js +4 -4
- package/lib/toolbar/src/toolbar.js +135 -78
- package/lib/ui/index.js +1 -3
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/lib/v-x-e-table/index.js +0 -2
- package/package.json +8 -3
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -43
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -4
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- 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 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -521
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- 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 -4
- package/packages/v-x-e-table/index.ts +3 -4
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
package/lib/table/src/body.js
CHANGED
|
@@ -34,12 +34,12 @@ module.exports = __toCommonJS(body_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
38
38
|
var import_util = require("./util");
|
|
39
39
|
var import_dom = require("../../ui/src/dom");
|
|
40
40
|
var import_utils = require("../../ui/src/utils");
|
|
41
41
|
var import_vn = require("../../ui/src/vn");
|
|
42
|
-
const { getI18n, renderer, renderEmptyElement } =
|
|
42
|
+
const { getI18n, renderer, renderEmptyElement } = import_core.VxeUI;
|
|
43
43
|
const sourceType = "table";
|
|
44
44
|
const renderType = "body";
|
|
45
45
|
var body_default = (0, import_comp.defineVxeComponent)({
|
|
@@ -56,7 +56,29 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
56
56
|
setup(props) {
|
|
57
57
|
const $xeTable = (0, import_vue.inject)("$xeTable", {});
|
|
58
58
|
const { xID, props: tableProps, context: tableContext, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
59
|
-
const {
|
|
59
|
+
const {
|
|
60
|
+
computeEditOpts,
|
|
61
|
+
computeMouseOpts,
|
|
62
|
+
computeCellOffsetWidth,
|
|
63
|
+
computeAreaOpts,
|
|
64
|
+
computeDefaultRowHeight,
|
|
65
|
+
computeEmptyOpts,
|
|
66
|
+
computeTooltipOpts,
|
|
67
|
+
computeRadioOpts,
|
|
68
|
+
computeExpandOpts,
|
|
69
|
+
computeTreeOpts,
|
|
70
|
+
computeCheckboxOpts,
|
|
71
|
+
computeCellOpts,
|
|
72
|
+
computeValidOpts,
|
|
73
|
+
computeRowOpts,
|
|
74
|
+
computeColumnOpts,
|
|
75
|
+
computeRowDragOpts,
|
|
76
|
+
computeResizableOpts,
|
|
77
|
+
computeVirtualXOpts,
|
|
78
|
+
computeVirtualYOpts,
|
|
79
|
+
computeIsBodyRenderOptimize,
|
|
80
|
+
computeRendererOpts
|
|
81
|
+
} = $xeTable.getComputeMaps();
|
|
60
82
|
const refElem = (0, import_vue.ref)();
|
|
61
83
|
const refBodyScroll = (0, import_vue.ref)();
|
|
62
84
|
const refBodyTable = (0, import_vue.ref)();
|
|
@@ -105,19 +127,23 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
105
127
|
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + (0, import_util.getCellRestHeight)(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
|
|
106
128
|
}
|
|
107
129
|
return [
|
|
108
|
-
(0, import_vue.h)(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
130
|
+
(0, import_vue.h)(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
key: "tl",
|
|
134
|
+
class: "vxe-tree--line-wrapper"
|
|
135
|
+
},
|
|
136
|
+
[
|
|
137
|
+
(0, import_vue.h)("div", {
|
|
138
|
+
class: "vxe-tree--line",
|
|
139
|
+
style: {
|
|
140
|
+
height: lineHeight,
|
|
141
|
+
bottom: `-${Math.floor(cellHeight / 2)}px`,
|
|
142
|
+
left: `calc(${rLevel * treeOpts.indent}px + 1em)`
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
)
|
|
121
147
|
];
|
|
122
148
|
}
|
|
123
149
|
return [];
|
|
@@ -350,11 +376,14 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
350
376
|
tdVNs.push(
|
|
351
377
|
(0, import_vue.h)("div", {
|
|
352
378
|
key: "tc",
|
|
353
|
-
class: [
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
379
|
+
class: [
|
|
380
|
+
"vxe-cell",
|
|
381
|
+
{
|
|
382
|
+
"c--title": showTitle,
|
|
383
|
+
"c--tooltip": showTooltip,
|
|
384
|
+
"c--ellipsis": showEllipsis
|
|
385
|
+
}
|
|
386
|
+
],
|
|
358
387
|
style: tcStyle
|
|
359
388
|
})
|
|
360
389
|
);
|
|
@@ -365,47 +394,70 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
365
394
|
const clVNs = [];
|
|
366
395
|
if (!isVNPreEmptyStatus) {
|
|
367
396
|
clVNs.push(
|
|
368
|
-
(0, import_vue.h)(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
397
|
+
(0, import_vue.h)(
|
|
398
|
+
"div",
|
|
399
|
+
{
|
|
400
|
+
colid,
|
|
401
|
+
rowid,
|
|
402
|
+
class: "vxe-cell--wrapper vxe-body-cell--wrapper"
|
|
403
|
+
},
|
|
404
|
+
column.renderCell(cellParams)
|
|
405
|
+
)
|
|
373
406
|
);
|
|
374
407
|
}
|
|
375
408
|
tdVNs.push(
|
|
376
|
-
(0, import_vue.h)(
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
"
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
409
|
+
(0, import_vue.h)(
|
|
410
|
+
"div",
|
|
411
|
+
{
|
|
412
|
+
key: "tc",
|
|
413
|
+
class: [
|
|
414
|
+
"vxe-cell",
|
|
415
|
+
{
|
|
416
|
+
"c--title": showTitle,
|
|
417
|
+
"c--tooltip": showTooltip,
|
|
418
|
+
"c--ellipsis": showEllipsis
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
style: tcStyle,
|
|
422
|
+
title: showTitle ? $xeTable.getCellLabel(row, column) : null
|
|
423
|
+
},
|
|
424
|
+
clVNs
|
|
425
|
+
)
|
|
386
426
|
);
|
|
387
427
|
if (showValidTip && errorValidItem) {
|
|
388
428
|
const errRule = errorValidItem.rule;
|
|
389
429
|
const validSlot = slots ? slots.valid : null;
|
|
390
430
|
const validParams = { ...cellParams, ...errorValidItem, rule: errorValidItem };
|
|
391
431
|
tdVNs.push(
|
|
392
|
-
(0, import_vue.h)(
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
432
|
+
(0, import_vue.h)(
|
|
433
|
+
"div",
|
|
434
|
+
{
|
|
435
|
+
key: "tcv",
|
|
436
|
+
class: ["vxe-cell--valid-error-tip", (0, import_dom.getPropClass)(validOpts.className, validParams)],
|
|
437
|
+
style: errRule && errRule.maxWidth ? {
|
|
438
|
+
width: errRule.maxWidth + "px"
|
|
439
|
+
} : null
|
|
440
|
+
},
|
|
441
|
+
[
|
|
442
|
+
(0, import_vue.h)(
|
|
443
|
+
"div",
|
|
444
|
+
{
|
|
445
|
+
class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || "normal"}`
|
|
446
|
+
},
|
|
447
|
+
[
|
|
448
|
+
validSlot ? $xeTable.callSlot(validSlot, validParams) : [
|
|
449
|
+
(0, import_vue.h)(
|
|
450
|
+
"span",
|
|
451
|
+
{
|
|
452
|
+
class: "vxe-cell--valid-error-msg"
|
|
453
|
+
},
|
|
454
|
+
errorValidItem.content
|
|
455
|
+
)
|
|
456
|
+
]
|
|
457
|
+
]
|
|
458
|
+
)
|
|
459
|
+
]
|
|
460
|
+
)
|
|
409
461
|
);
|
|
410
462
|
}
|
|
411
463
|
}
|
|
@@ -417,9 +469,12 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
417
469
|
tdVNs.push(
|
|
418
470
|
(0, import_vue.h)("div", {
|
|
419
471
|
key: "tcc",
|
|
420
|
-
class: [
|
|
421
|
-
"
|
|
422
|
-
|
|
472
|
+
class: [
|
|
473
|
+
"vxe-cell--col-resizable",
|
|
474
|
+
{
|
|
475
|
+
"is--line": !border || border === "none"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
423
478
|
onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
424
479
|
onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
425
480
|
})
|
|
@@ -435,47 +490,51 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
435
490
|
})
|
|
436
491
|
);
|
|
437
492
|
}
|
|
438
|
-
return (0, import_vue.h)(
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
493
|
+
return (0, import_vue.h)(
|
|
494
|
+
"td",
|
|
495
|
+
{
|
|
496
|
+
class: [
|
|
497
|
+
"vxe-table--column vxe-body--column",
|
|
498
|
+
colid,
|
|
499
|
+
cellVerticalAlign ? `col--vertical-${cellVerticalAlign}` : "",
|
|
500
|
+
cellAlign ? `col--${cellAlign}` : "",
|
|
501
|
+
type ? `col--${type}` : "",
|
|
502
|
+
{
|
|
503
|
+
"col--last": isLastColumn,
|
|
504
|
+
"col--tree-node": treeNode,
|
|
505
|
+
"col--edit": isEdit,
|
|
506
|
+
"col--ellipsis": hasEllipsis,
|
|
507
|
+
"col--cs-height": isCsHeight,
|
|
508
|
+
"col--rs-height": isRsHeight,
|
|
509
|
+
"col--to-row": showAreaRowStatus,
|
|
510
|
+
"col--auto-height": isVNAutoHeight,
|
|
511
|
+
"col--max-height": maxHeight,
|
|
512
|
+
"fixed--width": !isAutoCellWidth,
|
|
513
|
+
"fixed--hidden": fixedHiddenColumn,
|
|
514
|
+
"is--pg-top": isCellPaddingTop,
|
|
515
|
+
"is--pg-bottom": isCellPaddingBottom,
|
|
516
|
+
"is--pg-left": isCellPaddingLeft,
|
|
517
|
+
"is--pg-right": isCellPaddingRight,
|
|
518
|
+
"is--progress": fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
|
|
519
|
+
"is--drag-cell": isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
|
|
520
|
+
"is--drag-disabled": isDisabledDrag,
|
|
521
|
+
"col--dirty": isDirty,
|
|
522
|
+
"col--active": editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === "row"),
|
|
523
|
+
"col--valid-error": !!errorValidItem,
|
|
524
|
+
"show--valid-bg": errorValidItem && validOpts.showErrorBackground,
|
|
525
|
+
"col--current": currColFlag && currentCol === column
|
|
526
|
+
},
|
|
527
|
+
(0, import_dom.getPropClass)(compCellClassName, cellParams),
|
|
528
|
+
(0, import_dom.getPropClass)(className, cellParams),
|
|
529
|
+
(0, import_dom.getPropClass)(allCellClassName, cellParams)
|
|
530
|
+
],
|
|
531
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
|
|
532
|
+
...tdAttrs,
|
|
533
|
+
style: Object.assign({}, import_xe_utils.default.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, import_xe_utils.default.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
|
|
534
|
+
...tdOns
|
|
535
|
+
},
|
|
536
|
+
isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
|
|
537
|
+
);
|
|
479
538
|
};
|
|
480
539
|
const renderRows = (fixedType, isOptimizeMode, tableData, tableColumn) => {
|
|
481
540
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -577,13 +636,17 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
577
636
|
return renderTdColumn(seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
|
|
578
637
|
});
|
|
579
638
|
rows.push(
|
|
580
|
-
(0, import_vue.h)(
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
639
|
+
(0, import_vue.h)(
|
|
640
|
+
"tr",
|
|
641
|
+
{
|
|
642
|
+
class: trClass,
|
|
643
|
+
rowid,
|
|
644
|
+
style: rowStyle ? import_xe_utils.default.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
|
|
645
|
+
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || isRowGroupStatus || treeConfig ? rowid : $rowIndex,
|
|
646
|
+
...trOn
|
|
647
|
+
},
|
|
648
|
+
tdVNs
|
|
649
|
+
)
|
|
587
650
|
);
|
|
588
651
|
if (isExpandRow) {
|
|
589
652
|
const expandOpts = computeExpandOpts.value;
|
|
@@ -597,19 +660,23 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
597
660
|
}
|
|
598
661
|
}
|
|
599
662
|
rows.push(
|
|
600
|
-
(0, import_vue.h)(
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
663
|
+
(0, import_vue.h)(
|
|
664
|
+
"tr",
|
|
665
|
+
{
|
|
666
|
+
class: "vxe-body--row-expanded-place",
|
|
667
|
+
key: `expand_${rowid}`,
|
|
668
|
+
rowid
|
|
669
|
+
},
|
|
670
|
+
[
|
|
671
|
+
(0, import_vue.h)("td", {
|
|
672
|
+
class: "vxe-body--row-expanded-place-column",
|
|
673
|
+
colspan: tableColumn.length,
|
|
674
|
+
style: {
|
|
675
|
+
height: `${expHeight}px`
|
|
676
|
+
}
|
|
677
|
+
})
|
|
678
|
+
]
|
|
679
|
+
)
|
|
613
680
|
);
|
|
614
681
|
} else {
|
|
615
682
|
const cellStyle = {};
|
|
@@ -656,29 +723,48 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
656
723
|
items: []
|
|
657
724
|
};
|
|
658
725
|
rows.push(
|
|
659
|
-
(0, import_vue.h)(
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
726
|
+
(0, import_vue.h)(
|
|
727
|
+
"tr",
|
|
728
|
+
{
|
|
729
|
+
class: [
|
|
730
|
+
"vxe-body--expanded-row",
|
|
731
|
+
{
|
|
732
|
+
"is--padding": padding
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
key: `expand_${rowid}`
|
|
736
|
+
},
|
|
737
|
+
[
|
|
738
|
+
(0, import_vue.h)(
|
|
739
|
+
"td",
|
|
740
|
+
{
|
|
741
|
+
class: [
|
|
742
|
+
"vxe-body--expanded-column",
|
|
743
|
+
{
|
|
744
|
+
"fixed--hidden": fixedType && !hasFixedColumn,
|
|
745
|
+
"col--ellipsis": hasEllipsis
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
colspan: tableColumn.length
|
|
749
|
+
},
|
|
750
|
+
[
|
|
751
|
+
(0, import_vue.h)(
|
|
752
|
+
"div",
|
|
753
|
+
{
|
|
754
|
+
class: [
|
|
755
|
+
"vxe-body--expanded-cell",
|
|
756
|
+
{
|
|
757
|
+
"is--ellipsis": expandHeight
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
style: cellStyle
|
|
761
|
+
},
|
|
762
|
+
[expandColumn.renderData(expandParams)]
|
|
763
|
+
)
|
|
764
|
+
]
|
|
765
|
+
)
|
|
766
|
+
]
|
|
767
|
+
)
|
|
682
768
|
);
|
|
683
769
|
}
|
|
684
770
|
}
|
|
@@ -797,101 +883,137 @@ var body_default = (0, import_comp.defineVxeComponent)({
|
|
|
797
883
|
emptyContent = tableProps.emptyText || getI18n("vxe.table.emptyText");
|
|
798
884
|
}
|
|
799
885
|
}
|
|
800
|
-
return (0, import_vue.h)(
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
886
|
+
return (0, import_vue.h)(
|
|
887
|
+
"div",
|
|
888
|
+
{
|
|
889
|
+
ref: refElem,
|
|
890
|
+
class: ["vxe-table--body-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
|
|
891
|
+
xid: xID
|
|
892
|
+
},
|
|
893
|
+
[
|
|
894
|
+
(0, import_vue.h)(
|
|
895
|
+
"div",
|
|
896
|
+
{
|
|
897
|
+
ref: refBodyScroll,
|
|
898
|
+
class: "vxe-table--body-inner-wrapper",
|
|
899
|
+
onScroll(evnt) {
|
|
900
|
+
$xeTable.triggerBodyScrollEvent(evnt, fixedType);
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
[
|
|
904
|
+
fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
|
|
905
|
+
ref: refBodyXSpace,
|
|
906
|
+
class: "vxe-body--x-space"
|
|
907
|
+
}),
|
|
908
|
+
(0, import_vue.h)("div", {
|
|
909
|
+
ref: refBodyYSpace,
|
|
910
|
+
class: "vxe-body--y-space"
|
|
911
|
+
}),
|
|
912
|
+
(0, import_vue.h)(
|
|
913
|
+
"table",
|
|
914
|
+
{
|
|
915
|
+
ref: refBodyTable,
|
|
916
|
+
class: "vxe-table--body",
|
|
917
|
+
xid: xID,
|
|
918
|
+
cellspacing: 0,
|
|
919
|
+
cellpadding: 0,
|
|
920
|
+
border: 0,
|
|
921
|
+
xvm: isOptimizeMode ? "1" : null
|
|
922
|
+
},
|
|
923
|
+
[
|
|
924
|
+
/**
|
|
925
|
+
* 列宽
|
|
926
|
+
*/
|
|
927
|
+
(0, import_vue.h)(
|
|
928
|
+
"colgroup",
|
|
929
|
+
{
|
|
930
|
+
ref: refBodyColgroup
|
|
931
|
+
},
|
|
932
|
+
renderColumnList.map((column, $columnIndex) => {
|
|
933
|
+
return (0, import_vue.h)("col", {
|
|
934
|
+
name: column.id,
|
|
935
|
+
key: $columnIndex,
|
|
936
|
+
style: {
|
|
937
|
+
width: `${column.renderWidth}px`
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
})
|
|
941
|
+
),
|
|
942
|
+
/**
|
|
943
|
+
* 内容
|
|
944
|
+
*/
|
|
945
|
+
(0, import_vue.h)(
|
|
946
|
+
"tbody",
|
|
947
|
+
{
|
|
948
|
+
ref: refBodyTBody
|
|
949
|
+
},
|
|
950
|
+
renderRows(fixedType, isOptimizeMode, renderDataList, renderColumnList)
|
|
951
|
+
)
|
|
952
|
+
]
|
|
953
|
+
),
|
|
954
|
+
(0, import_vue.h)("div", {
|
|
955
|
+
class: "vxe-table--checkbox-range"
|
|
956
|
+
}),
|
|
957
|
+
(0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
|
|
958
|
+
"div",
|
|
959
|
+
{
|
|
960
|
+
class: "vxe-table--cell-area",
|
|
961
|
+
xid: xID
|
|
962
|
+
},
|
|
963
|
+
[
|
|
964
|
+
(0, import_vue.h)(
|
|
965
|
+
"span",
|
|
966
|
+
{
|
|
967
|
+
class: "vxe-table--cell-main-area"
|
|
968
|
+
},
|
|
969
|
+
mouseOpts.extension ? [
|
|
970
|
+
(0, import_vue.h)("span", {
|
|
971
|
+
class: "vxe-table--cell-main-area-btn",
|
|
972
|
+
onMousedown(evnt) {
|
|
973
|
+
if ($xeTable.triggerCellAreaExtendMousedownEvent) {
|
|
974
|
+
$xeTable.triggerCellAreaExtendMousedownEvent(evnt, { $table: $xeTable, fixed: fixedType, type: renderType });
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
})
|
|
978
|
+
] : []
|
|
979
|
+
),
|
|
980
|
+
(0, import_vue.h)("span", {
|
|
981
|
+
class: "vxe-table--cell-clip-area"
|
|
982
|
+
}),
|
|
983
|
+
(0, import_vue.h)("span", {
|
|
984
|
+
class: "vxe-table--cell-extend-area"
|
|
985
|
+
}),
|
|
986
|
+
(0, import_vue.h)("span", {
|
|
987
|
+
class: "vxe-table--cell-multi-area"
|
|
988
|
+
}),
|
|
989
|
+
(0, import_vue.h)("span", {
|
|
990
|
+
class: "vxe-table--cell-active-area"
|
|
991
|
+
}),
|
|
992
|
+
(0, import_vue.h)("span", {
|
|
993
|
+
class: "vxe-table--cell-row-status-area"
|
|
994
|
+
})
|
|
995
|
+
]
|
|
996
|
+
) : renderEmptyElement($xeTable),
|
|
997
|
+
!fixedType ? (0, import_vue.h)(
|
|
998
|
+
"div",
|
|
999
|
+
{
|
|
1000
|
+
class: "vxe-table--empty-block",
|
|
1001
|
+
ref: refBodyEmptyBlock
|
|
1002
|
+
},
|
|
1003
|
+
[
|
|
1004
|
+
(0, import_vue.h)(
|
|
1005
|
+
"div",
|
|
1006
|
+
{
|
|
1007
|
+
class: "vxe-table--empty-content"
|
|
1008
|
+
},
|
|
1009
|
+
emptyContent
|
|
1010
|
+
)
|
|
1011
|
+
]
|
|
1012
|
+
) : renderEmptyElement($xeTable)
|
|
1013
|
+
]
|
|
1014
|
+
)
|
|
1015
|
+
]
|
|
1016
|
+
);
|
|
895
1017
|
};
|
|
896
1018
|
return renderVN;
|
|
897
1019
|
}
|