vxe-table 4.23.8 → 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 +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- 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/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +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 +41 -44
- 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 -11
- 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 -520
- 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 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
package/lib/table/src/header.js
CHANGED
|
@@ -218,60 +218,75 @@ var header_default = (0, import_comp.defineVxeComponent)({
|
|
|
218
218
|
});
|
|
219
219
|
tcStyle.width = `${childWidth}px`;
|
|
220
220
|
}
|
|
221
|
-
return (0, import_vue.h)(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
{
|
|
227
|
-
[`col--${headAlign}`]: headAlign,
|
|
228
|
-
[`col--${type}`]: type,
|
|
229
|
-
"col--last": isLastColumn,
|
|
230
|
-
"col--fixed": column.fixed,
|
|
231
|
-
"col--group": isColGroup,
|
|
232
|
-
"col--ellipsis": hasEllipsis,
|
|
233
|
-
"fixed--width": !isAutoCellWidth,
|
|
234
|
-
"is--pg-top": isCellPaddingTop,
|
|
235
|
-
"is--pg-bottom": isCellPaddingBottom,
|
|
236
|
-
"is--pg-left": isCellPaddingLeft,
|
|
237
|
-
"is--pg-right": isCellPaddingRight,
|
|
238
|
-
"is--sortable": column.sortable,
|
|
239
|
-
"col--filter": !!filters,
|
|
240
|
-
"is--filter-active": hasFilter,
|
|
241
|
-
"is--drag-active": columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
242
|
-
"is--drag-disabled": columnOpts.drag && isDisabledDrag,
|
|
243
|
-
"col--current": currColFlag && currentCol === column
|
|
244
|
-
},
|
|
245
|
-
headerClassName ? import_xe_utils.default.isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : "",
|
|
246
|
-
headerCellClassName ? import_xe_utils.default.isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ""
|
|
247
|
-
],
|
|
248
|
-
style: headerCellStyle ? import_xe_utils.default.isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
249
|
-
...thAttrs,
|
|
250
|
-
...thOns,
|
|
251
|
-
key: showCustomHeader ? `${colid}${$columnIndex}` : columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
252
|
-
}, [
|
|
253
|
-
(0, import_vue.h)("div", {
|
|
254
|
-
class: ["vxe-cell", {
|
|
255
|
-
"c--title": showTitle,
|
|
256
|
-
"c--tooltip": showTooltip,
|
|
257
|
-
"c--ellipsis": showEllipsis
|
|
258
|
-
}],
|
|
259
|
-
style: tcStyle
|
|
260
|
-
}, isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : [
|
|
261
|
-
(0, import_vue.h)("div", {
|
|
221
|
+
return (0, import_vue.h)(
|
|
222
|
+
"th",
|
|
223
|
+
{
|
|
224
|
+
class: [
|
|
225
|
+
"vxe-table--column vxe-header--column",
|
|
262
226
|
colid,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
227
|
+
fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
|
|
228
|
+
{
|
|
229
|
+
[`col--${headAlign}`]: headAlign,
|
|
230
|
+
[`col--${type}`]: type,
|
|
231
|
+
"col--last": isLastColumn,
|
|
232
|
+
"col--fixed": column.fixed,
|
|
233
|
+
"col--group": isColGroup,
|
|
234
|
+
"col--ellipsis": hasEllipsis,
|
|
235
|
+
"fixed--width": !isAutoCellWidth,
|
|
236
|
+
"is--pg-top": isCellPaddingTop,
|
|
237
|
+
"is--pg-bottom": isCellPaddingBottom,
|
|
238
|
+
"is--pg-left": isCellPaddingLeft,
|
|
239
|
+
"is--pg-right": isCellPaddingRight,
|
|
240
|
+
"is--sortable": column.sortable,
|
|
241
|
+
"col--filter": !!filters,
|
|
242
|
+
"is--filter-active": hasFilter,
|
|
243
|
+
"is--drag-active": columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
|
|
244
|
+
"is--drag-disabled": columnOpts.drag && isDisabledDrag,
|
|
245
|
+
"col--current": currColFlag && currentCol === column
|
|
246
|
+
},
|
|
247
|
+
headerClassName ? import_xe_utils.default.isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : "",
|
|
248
|
+
headerCellClassName ? import_xe_utils.default.isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ""
|
|
249
|
+
],
|
|
250
|
+
style: headerCellStyle ? import_xe_utils.default.isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
|
|
251
|
+
...thAttrs,
|
|
252
|
+
...thOns,
|
|
253
|
+
key: showCustomHeader ? `${colid}${$columnIndex}` : columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
254
|
+
},
|
|
255
|
+
[
|
|
256
|
+
(0, import_vue.h)(
|
|
257
|
+
"div",
|
|
258
|
+
{
|
|
259
|
+
class: [
|
|
260
|
+
"vxe-cell",
|
|
261
|
+
{
|
|
262
|
+
"c--title": showTitle,
|
|
263
|
+
"c--tooltip": showTooltip,
|
|
264
|
+
"c--ellipsis": showEllipsis
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
style: tcStyle
|
|
268
|
+
},
|
|
269
|
+
isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : [
|
|
270
|
+
(0, import_vue.h)(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
colid,
|
|
274
|
+
class: "vxe-cell--wrapper vxe-header-cell--wrapper"
|
|
275
|
+
},
|
|
276
|
+
column.renderHeader(cellParams)
|
|
277
|
+
)
|
|
278
|
+
]
|
|
279
|
+
),
|
|
280
|
+
/**
|
|
281
|
+
* 列宽拖动
|
|
282
|
+
*/
|
|
283
|
+
!fixedHiddenColumn && showResizable && (!showCustomHeader || isLastRow) ? (0, import_vue.h)("div", {
|
|
284
|
+
class: "vxe-cell--col-resizable",
|
|
285
|
+
onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
286
|
+
onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
287
|
+
}) : renderEmptyElement($xeTable)
|
|
288
|
+
]
|
|
289
|
+
);
|
|
275
290
|
});
|
|
276
291
|
};
|
|
277
292
|
const renderFilterRows = (isOptimizeMode, cols) => {
|
|
@@ -340,40 +355,56 @@ var header_default = (0, import_comp.defineVxeComponent)({
|
|
|
340
355
|
} else {
|
|
341
356
|
tcStyle.minHeight = `${currCellHeight}px`;
|
|
342
357
|
}
|
|
343
|
-
return (0, import_vue.h)(
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
{
|
|
349
|
-
[`col--${headAlign}`]: headAlign,
|
|
350
|
-
[`col--${type}`]: type,
|
|
351
|
-
"col--last": isLastColumn,
|
|
352
|
-
"col--fixed": column.fixed,
|
|
353
|
-
"col--ellipsis": hasEllipsis,
|
|
354
|
-
"fixed--width": !isAutoCellWidth,
|
|
355
|
-
"is--padding": isPadding,
|
|
356
|
-
"is--sortable": column.sortable,
|
|
357
|
-
"col--current": currColFlag && currentCol === column
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
key: colid,
|
|
361
|
-
...thAttrs
|
|
362
|
-
}, [
|
|
363
|
-
(0, import_vue.h)("div", {
|
|
364
|
-
class: ["vxe-cell", "" + (cellClassName || ""), {
|
|
365
|
-
"c--title": showTitle,
|
|
366
|
-
"c--tooltip": showTooltip,
|
|
367
|
-
"c--ellipsis": showEllipsis
|
|
368
|
-
}],
|
|
369
|
-
style: tcStyle
|
|
370
|
-
}, isOptimizeMode && fixedHiddenColumn && !floatingFilters ? [] : [
|
|
371
|
-
(0, import_vue.h)("div", {
|
|
358
|
+
return (0, import_vue.h)(
|
|
359
|
+
"th",
|
|
360
|
+
{
|
|
361
|
+
class: [
|
|
362
|
+
"vxe-table--column vxe-header--column is--floating-filters",
|
|
372
363
|
colid,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
364
|
+
fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
|
|
365
|
+
{
|
|
366
|
+
[`col--${headAlign}`]: headAlign,
|
|
367
|
+
[`col--${type}`]: type,
|
|
368
|
+
"col--last": isLastColumn,
|
|
369
|
+
"col--fixed": column.fixed,
|
|
370
|
+
"col--ellipsis": hasEllipsis,
|
|
371
|
+
"fixed--width": !isAutoCellWidth,
|
|
372
|
+
"is--padding": isPadding,
|
|
373
|
+
"is--sortable": column.sortable,
|
|
374
|
+
"col--current": currColFlag && currentCol === column
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
key: colid,
|
|
378
|
+
...thAttrs
|
|
379
|
+
},
|
|
380
|
+
[
|
|
381
|
+
(0, import_vue.h)(
|
|
382
|
+
"div",
|
|
383
|
+
{
|
|
384
|
+
class: [
|
|
385
|
+
"vxe-cell",
|
|
386
|
+
"" + (cellClassName || ""),
|
|
387
|
+
{
|
|
388
|
+
"c--title": showTitle,
|
|
389
|
+
"c--tooltip": showTooltip,
|
|
390
|
+
"c--ellipsis": showEllipsis
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
style: tcStyle
|
|
394
|
+
},
|
|
395
|
+
isOptimizeMode && fixedHiddenColumn && !floatingFilters ? [] : [
|
|
396
|
+
(0, import_vue.h)(
|
|
397
|
+
"div",
|
|
398
|
+
{
|
|
399
|
+
colid,
|
|
400
|
+
class: "vxe-cell--wrapper vxe-header-cell--wrapper"
|
|
401
|
+
},
|
|
402
|
+
flSlot ? $xeTable.callSlot(flSlot, cellParams) : rtFloatingFilter && firstFilterOption ? (0, import_vn.getSlotVNs)(rtFloatingFilter(filterRender, cellParams)) : []
|
|
403
|
+
)
|
|
404
|
+
]
|
|
405
|
+
)
|
|
406
|
+
]
|
|
407
|
+
);
|
|
377
408
|
});
|
|
378
409
|
};
|
|
379
410
|
const renderHeads = (isGroup, isOptimizeMode, headerGroups, renderColumnList) => {
|
|
@@ -382,24 +413,26 @@ var header_default = (0, import_comp.defineVxeComponent)({
|
|
|
382
413
|
const floatingFilterOpts = computeFloatingFilterOpts.value;
|
|
383
414
|
const rowVNs = headerGroups.map((cols, _rowIndex) => {
|
|
384
415
|
const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType };
|
|
385
|
-
return (0, import_vue.h)(
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
headerRowClassName ? import_xe_utils.default.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ""
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
416
|
+
return (0, import_vue.h)(
|
|
417
|
+
"tr",
|
|
418
|
+
{
|
|
419
|
+
key: _rowIndex,
|
|
420
|
+
class: ["vxe-header--row", headerRowClassName ? import_xe_utils.default.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ""],
|
|
421
|
+
style: headerRowStyle ? import_xe_utils.default.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle : null
|
|
422
|
+
},
|
|
423
|
+
renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols)
|
|
424
|
+
);
|
|
393
425
|
});
|
|
394
426
|
if (floatingFilterOpts.enabled) {
|
|
395
427
|
rowVNs.push(
|
|
396
|
-
(0, import_vue.h)(
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
"" + (floatingFilterOpts.rowClassName || "")
|
|
401
|
-
|
|
402
|
-
|
|
428
|
+
(0, import_vue.h)(
|
|
429
|
+
"tr",
|
|
430
|
+
{
|
|
431
|
+
key: "ff",
|
|
432
|
+
class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
|
|
433
|
+
},
|
|
434
|
+
renderFilterRows(isOptimizeMode, renderColumnList)
|
|
435
|
+
)
|
|
403
436
|
);
|
|
404
437
|
}
|
|
405
438
|
return rowVNs;
|
|
@@ -452,77 +485,101 @@ var header_default = (0, import_comp.defineVxeComponent)({
|
|
|
452
485
|
}
|
|
453
486
|
}
|
|
454
487
|
}
|
|
455
|
-
return (0, import_vue.h)(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
488
|
+
return (0, import_vue.h)(
|
|
489
|
+
"div",
|
|
490
|
+
{
|
|
491
|
+
ref: refElem,
|
|
492
|
+
class: ["vxe-table--header-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
|
|
493
|
+
xid: xID
|
|
494
|
+
},
|
|
495
|
+
[
|
|
496
|
+
(0, import_vue.h)(
|
|
497
|
+
"div",
|
|
498
|
+
{
|
|
499
|
+
ref: refHeaderScroll,
|
|
500
|
+
class: "vxe-table--header-inner-wrapper",
|
|
501
|
+
onScroll(evnt) {
|
|
502
|
+
$xeTable.triggerHeaderScrollEvent(evnt, fixedType);
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
[
|
|
506
|
+
fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
|
|
507
|
+
ref: refHeaderXSpace,
|
|
508
|
+
class: "vxe-body--x-space"
|
|
509
|
+
}),
|
|
510
|
+
(0, import_vue.h)(
|
|
511
|
+
"table",
|
|
512
|
+
{
|
|
513
|
+
ref: refHeaderTable,
|
|
514
|
+
class: "vxe-table--header",
|
|
515
|
+
xid: xID,
|
|
516
|
+
cellspacing: 0,
|
|
517
|
+
cellpadding: 0,
|
|
518
|
+
border: 0,
|
|
519
|
+
xvm: isOptimizeMode ? "1" : null
|
|
520
|
+
},
|
|
521
|
+
[
|
|
522
|
+
/**
|
|
523
|
+
* 列宽
|
|
524
|
+
*/
|
|
525
|
+
(0, import_vue.h)(
|
|
526
|
+
"colgroup",
|
|
527
|
+
{
|
|
528
|
+
ref: refHeaderColgroup
|
|
529
|
+
},
|
|
530
|
+
renderColumnList.map((column, $columnIndex) => {
|
|
531
|
+
return (0, import_vue.h)("col", {
|
|
532
|
+
name: column.id,
|
|
533
|
+
key: $columnIndex,
|
|
534
|
+
style: {
|
|
535
|
+
width: `${column.renderWidth}px`
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
})
|
|
539
|
+
),
|
|
540
|
+
/**
|
|
541
|
+
* 头部
|
|
542
|
+
*/
|
|
543
|
+
(0, import_vue.h)(
|
|
544
|
+
"thead",
|
|
545
|
+
{
|
|
546
|
+
ref: refHeaderTHead
|
|
547
|
+
},
|
|
548
|
+
renderHeads(isGroup, isOptimizeMode, renderHeaderList, renderColumnList)
|
|
549
|
+
)
|
|
550
|
+
]
|
|
551
|
+
),
|
|
552
|
+
(0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
|
|
553
|
+
"div",
|
|
554
|
+
{
|
|
555
|
+
class: "vxe-table--cell-area",
|
|
556
|
+
xid: xID
|
|
557
|
+
},
|
|
558
|
+
[
|
|
559
|
+
(0, import_vue.h)("span", {
|
|
560
|
+
class: "vxe-table--cell-main-area"
|
|
561
|
+
}),
|
|
562
|
+
(0, import_vue.h)("span", {
|
|
563
|
+
class: "vxe-table--cell-clip-area"
|
|
564
|
+
}),
|
|
565
|
+
(0, import_vue.h)("span", {
|
|
566
|
+
class: "vxe-table--cell-extend-area"
|
|
567
|
+
}),
|
|
568
|
+
(0, import_vue.h)("span", {
|
|
569
|
+
class: "vxe-table--cell-multi-area"
|
|
570
|
+
}),
|
|
571
|
+
(0, import_vue.h)("span", {
|
|
572
|
+
class: "vxe-table--cell-active-area"
|
|
573
|
+
}),
|
|
574
|
+
(0, import_vue.h)("span", {
|
|
575
|
+
class: "vxe-table--cell-col-status-area"
|
|
576
|
+
})
|
|
577
|
+
]
|
|
578
|
+
) : renderEmptyElement($xeTable)
|
|
579
|
+
]
|
|
580
|
+
)
|
|
581
|
+
]
|
|
582
|
+
);
|
|
526
583
|
};
|
|
527
584
|
(0, import_vue.watch)(() => props.tableColumn, uploadColumn);
|
|
528
585
|
(0, import_vue.onMounted)(() => {
|