tomtaw-vxe-table 3.25.20 → 3.25.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/es/colgroup/index.d.ts +2 -0
- package/es/column/index.d.ts +2 -0
- package/es/table/src/body.js +58 -13
- package/es/table/src/column.d.ts +2 -0
- package/es/table/src/column.js +2 -0
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/group.d.ts +1 -0
- package/es/table/src/header.d.ts +3 -1
- package/es/table/src/header.js +49 -12
- package/es/table/src/methods.js +82 -65
- package/es/table/src/table.js +4 -13
- package/es/table/src/util.js +4 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +205 -113
- package/lib/index.umd.min.js +3 -3
- package/lib/table/src/body.js +58 -13
- package/lib/table/src/column.js +2 -0
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/header.js +48 -11
- package/lib/table/src/methods.js +82 -65
- package/lib/table/src/table.js +4 -13
- package/lib/table/src/util.js +4 -2
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/body.ts +42 -13
- package/packages/table/src/column.ts +2 -0
- package/packages/table/src/columnInfo.ts +1 -0
- package/packages/table/src/header.ts +53 -13
- package/packages/table/src/methods.ts +102 -65
- package/packages/table/src/table.ts +8 -16
- package/packages/table/src/util.ts +4 -2
- package/types/all.d.ts +21 -1
- /package/es/{iconfont.1795759903178.ttf → iconfont.1795761876277.ttf} +0 -0
- /package/es/{iconfont.1795759903178.woff → iconfont.1795761876277.woff} +0 -0
- /package/es/{iconfont.1795759903178.woff2 → iconfont.1795761876277.woff2} +0 -0
- /package/lib/{iconfont.1795759903178.ttf → iconfont.1795761876277.ttf} +0 -0
- /package/lib/{iconfont.1795759903178.woff → iconfont.1795761876277.woff} +0 -0
- /package/lib/{iconfont.1795759903178.woff2 → iconfont.1795761876277.woff2} +0 -0
|
@@ -15,6 +15,37 @@ const { getI18n, renderer, renderEmptyElement } = VxeUI
|
|
|
15
15
|
const sourceType = 'table'
|
|
16
16
|
const renderType = 'body'
|
|
17
17
|
|
|
18
|
+
// 单独传入作用域字段,让 Vue 只订阅插槽实际使用的字段。例如只读 row
|
|
19
|
+
// 的插槽不会因为 data 或 $rowIndex 随窗口变化而重绘。
|
|
20
|
+
const cellScopeKeys = [
|
|
21
|
+
'$table', '$grid', '$gantt', 'isEdit', 'seq', 'rowid', 'row', 'rowIndex', '$rowIndex',
|
|
22
|
+
'_rowIndex', 'column', 'columnIndex', '$columnIndex', '_columnIndex', 'fixed', 'source',
|
|
23
|
+
'type', 'isHidden', 'level', 'visibleData', 'data', 'items'
|
|
24
|
+
]
|
|
25
|
+
const RowScopedCell = defineVxeComponent({
|
|
26
|
+
name: 'VxeRowScopedCell',
|
|
27
|
+
props: [...cellScopeKeys, 'contentVersion', 'rowOrder', 'defaultSlot'],
|
|
28
|
+
data() {
|
|
29
|
+
const props = this.$props as Record<string, any>
|
|
30
|
+
const scope = {} as Record<string, any>
|
|
31
|
+
for (const key of cellScopeKeys) {
|
|
32
|
+
Object.defineProperty(scope, key, { enumerable: true, get: () => props[key] })
|
|
33
|
+
}
|
|
34
|
+
return { cellScope: Object.freeze(scope) }
|
|
35
|
+
},
|
|
36
|
+
render(h: CreateElement) {
|
|
37
|
+
// 非响应式行的显式刷新、完整数据更新和插槽替换也必须触发渲染。
|
|
38
|
+
void this.contentVersion
|
|
39
|
+
void this.rowOrder
|
|
40
|
+
void this.defaultSlot
|
|
41
|
+
const scope = this.cellScope
|
|
42
|
+
return h('div', {
|
|
43
|
+
class: 'vxe-cell--wrapper vxe-body-cell--wrapper',
|
|
44
|
+
attrs: { rowid: scope.rowid, colid: scope.column.id }
|
|
45
|
+
}, scope.column.renderCell(h, scope))
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
|
|
18
49
|
// 滚动、拖动过程中不需要触发
|
|
19
50
|
const isVMScrollProcess = ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) => {
|
|
20
51
|
const tableProps = $xeTable
|
|
@@ -391,19 +422,17 @@ function renderTdColumn(
|
|
|
391
422
|
}
|
|
392
423
|
const clVNs: VxeComponentSlotType[] = []
|
|
393
424
|
if (!isVNPreEmptyStatus) {
|
|
394
|
-
|
|
395
|
-
h(
|
|
396
|
-
|
|
397
|
-
{
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
)
|
|
406
|
-
)
|
|
425
|
+
if (column.rowScopedSlot && slots && slots.default && !type && !editRender && !treeNode && !tableReactData.isRowGroupStatus) {
|
|
426
|
+
clVNs.push(h(RowScopedCell, {
|
|
427
|
+
key: rowid,
|
|
428
|
+
props: { ...cellParams, contentVersion: rowRest.contentVersion, rowOrder: tableInternalData.afterFullRowMaps, defaultSlot: slots.default }
|
|
429
|
+
}))
|
|
430
|
+
} else {
|
|
431
|
+
clVNs.push(h('div', {
|
|
432
|
+
class: 'vxe-cell--wrapper vxe-body-cell--wrapper',
|
|
433
|
+
attrs: { colid, rowid }
|
|
434
|
+
}, column.renderCell(h, cellParams)))
|
|
435
|
+
}
|
|
407
436
|
}
|
|
408
437
|
tdVNs.push(
|
|
409
438
|
h(
|
|
@@ -56,6 +56,8 @@ export const columnProps = {
|
|
|
56
56
|
footerClassName: [String, Function],
|
|
57
57
|
// 格式化显示内容
|
|
58
58
|
formatter: [Function, Array, String] as PropType<VxeColumnPropTypes.Formatter<any>>,
|
|
59
|
+
// 只读插槽以独立组件订阅行内容及实际使用的窗口参数。
|
|
60
|
+
rowScopedSlot: Boolean,
|
|
59
61
|
// 格式化表头显示内容
|
|
60
62
|
headerFormatter: [Function, Array, String] as PropType<VxeColumnPropTypes.HeaderFormatter>,
|
|
61
63
|
// 格式化表尾显示内容
|
|
@@ -132,6 +132,7 @@ export class ColumnInfo {
|
|
|
132
132
|
dragSort: colConfs.dragSort,
|
|
133
133
|
rowResize: colConfs.rowResize,
|
|
134
134
|
cellType: colConfs.cellType,
|
|
135
|
+
rowScopedSlot: colConfs.rowScopedSlot,
|
|
135
136
|
cellRender: colConfs.cellRender,
|
|
136
137
|
editRender: editRender,
|
|
137
138
|
contentRender: colConfs.contentRender,
|
|
@@ -3,7 +3,7 @@ import XEUtils from 'xe-utils'
|
|
|
3
3
|
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
5
5
|
import { isEnableConf, getClass, getDefaultConfig, hasEnableConf } from '../../ui/src/utils'
|
|
6
|
-
import { getCalcHeight, convertHeaderColumnToRows, convertHeaderToGridRows } from './util'
|
|
6
|
+
import { getCalcHeight, convertHeaderColumnToRows, convertHeaderToGridRows, getLastChildColumn } from './util'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
|
|
9
9
|
import type { VxeTableDefines, VxeTableConstructor, VxeTablePrivateMethods, VxeColumnPropTypes, TableReactData, TableInternalData, VxeComponentStyleType, VxeGlobalRendererHandles } from '../../../types'
|
|
@@ -13,7 +13,33 @@ const { renderer, renderEmptyElement } = VxeUI
|
|
|
13
13
|
const sourceType = 'table'
|
|
14
14
|
const renderType = 'header'
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
type GroupWindow = Map<VxeTableDefines.ColumnInfo, { span: number; width: number; lastLeaf: VxeTableDefines.ColumnInfo }>
|
|
17
|
+
|
|
18
|
+
// 各固定区共用列对象,裁剪后的跨度和宽度只属于当前窗口。
|
|
19
|
+
function projectHeaderWindow(leaves: VxeTableDefines.ColumnInfo[], rows: VxeTableDefines.ColumnInfo[][], columnCache: TableInternalData['fullColumnIdData']) {
|
|
20
|
+
const groups: GroupWindow = new Map()
|
|
21
|
+
const headers = rows.map(() => [] as VxeTableDefines.ColumnInfo[])
|
|
22
|
+
for (const leaf of leaves) {
|
|
23
|
+
let column: VxeTableDefines.ColumnInfo | undefined = leaf
|
|
24
|
+
while (column) {
|
|
25
|
+
const headerRow = headers[column.level - 1]
|
|
26
|
+
if (!headerRow) break
|
|
27
|
+
const group = groups.get(column)
|
|
28
|
+
if (group) {
|
|
29
|
+
group.span++
|
|
30
|
+
group.width += leaf.renderWidth
|
|
31
|
+
group.lastLeaf = leaf
|
|
32
|
+
} else {
|
|
33
|
+
headerRow.push(column)
|
|
34
|
+
groups.set(column, { span: 1, width: leaf.renderWidth, lastLeaf: leaf })
|
|
35
|
+
}
|
|
36
|
+
column = column.parentId ? columnCache[column.parentId]?.column : undefined
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return { headers, groups }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function renderRows(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode: boolean, headerGroups: VxeTableDefines.ColumnInfo[][], _rowIndex: number, cols: VxeTableDefines.ColumnInfo[], groups?: GroupWindow) {
|
|
17
43
|
const props = _vm
|
|
18
44
|
const $xeTable = _vm.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
19
45
|
const $xeGrid = $xeTable.$xeGrid
|
|
@@ -93,10 +119,12 @@ function renderRows(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode
|
|
|
93
119
|
const thAttrs: Record<string, string | number | null> = {
|
|
94
120
|
colid
|
|
95
121
|
}
|
|
122
|
+
const group = groups?.get(column)
|
|
96
123
|
let isMergeCell = false
|
|
97
124
|
// 合并行或列
|
|
98
125
|
if (!showCustomHeader) {
|
|
99
|
-
|
|
126
|
+
const colSpan = group ? group.span : column.colSpan
|
|
127
|
+
thAttrs.colspan = colSpan > 1 ? colSpan : null
|
|
100
128
|
thAttrs.rowspan = column.rowSpan > 1 ? column.rowSpan : null
|
|
101
129
|
}
|
|
102
130
|
if (mergeHeadFlag && mergeHeaderList.length && (showCustomHeader || isLastRow)) {
|
|
@@ -160,6 +188,8 @@ function renderRows(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode
|
|
|
160
188
|
|
|
161
189
|
if (showCustomHeader) {
|
|
162
190
|
// custom
|
|
191
|
+
} else if (isColGroup && group) {
|
|
192
|
+
tcStyle.width = `${group.width}px`
|
|
163
193
|
} else if (isColGroup && !isLastRow) {
|
|
164
194
|
let childWidth = 0
|
|
165
195
|
XEUtils.eachTree(column.children, (childRow) => {
|
|
@@ -236,7 +266,7 @@ function renderRows(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode
|
|
|
236
266
|
/**
|
|
237
267
|
* 列宽拖动
|
|
238
268
|
*/
|
|
239
|
-
!fixedHiddenColumn && showResizable && (!showCustomHeader || isLastRow)
|
|
269
|
+
!fixedHiddenColumn && showResizable && (!showCustomHeader || isLastRow) && (!group || !isColGroup || group.lastLeaf === getLastChildColumn(column))
|
|
240
270
|
? h('div', {
|
|
241
271
|
class: 'vxe-cell--col-resizable',
|
|
242
272
|
on: {
|
|
@@ -385,7 +415,7 @@ function renderFilterRows(h: CreateElement, _vm: any, isOptimizeMode: boolean, c
|
|
|
385
415
|
})
|
|
386
416
|
}
|
|
387
417
|
|
|
388
|
-
function renderHeads(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode: boolean, headerGroups: VxeTableDefines.ColumnInfo[][], renderColumnList: VxeTableDefines.ColumnInfo[]) {
|
|
418
|
+
function renderHeads(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMode: boolean, headerGroups: VxeTableDefines.ColumnInfo[][], renderColumnList: VxeTableDefines.ColumnInfo[], groups?: GroupWindow) {
|
|
389
419
|
const props = _vm
|
|
390
420
|
const $xeTable = _vm.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
391
421
|
const tableProps = $xeTable
|
|
@@ -394,6 +424,8 @@ function renderHeads(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMod
|
|
|
394
424
|
|
|
395
425
|
const { headerRowClassName, headerRowStyle } = tableProps
|
|
396
426
|
const floatingFilterOpts = $xeTable.computeFloatingFilterOpts
|
|
427
|
+
// 固定区可能仅有一个跨行的叶子表头;空层也要和主表占用同样高度。
|
|
428
|
+
const groupRowStyle = groups ? { height: `${getCalcHeight($xeTable.computeHeaderCellOpts.height) || $xeTable.computeDefaultRowHeight}px` } : undefined
|
|
397
429
|
const rowVNs = headerGroups.map((cols, _rowIndex) => {
|
|
398
430
|
const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType }
|
|
399
431
|
return h(
|
|
@@ -401,9 +433,9 @@ function renderHeads(h: CreateElement, _vm: any, isGroup: boolean, isOptimizeMod
|
|
|
401
433
|
{
|
|
402
434
|
key: _rowIndex,
|
|
403
435
|
class: ['vxe-header--row', headerRowClassName ? (XEUtils.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName) : ''],
|
|
404
|
-
style: headerRowStyle ? ((XEUtils.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle) as VxeComponentStyleType) :
|
|
436
|
+
style: headerRowStyle ? ((XEUtils.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle) as VxeComponentStyleType) : groupRowStyle
|
|
405
437
|
},
|
|
406
|
-
renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, _rowIndex, cols)
|
|
438
|
+
renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, _rowIndex, cols, groups)
|
|
407
439
|
)
|
|
408
440
|
})
|
|
409
441
|
|
|
@@ -442,6 +474,11 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
442
474
|
headerColumn
|
|
443
475
|
}
|
|
444
476
|
},
|
|
477
|
+
computed: {
|
|
478
|
+
groupedHeaderRows(): VxeTableDefines.ColumnInfo[][] {
|
|
479
|
+
return convertHeaderColumnToRows(this.tableGroupColumn || [])
|
|
480
|
+
}
|
|
481
|
+
},
|
|
445
482
|
watch: {
|
|
446
483
|
tableColumn() {
|
|
447
484
|
const _vm = this as any
|
|
@@ -509,7 +546,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
509
546
|
let renderColumnList = tableColumn as VxeTableDefines.ColumnInfo[]
|
|
510
547
|
const isOptimizeMode = isHeaderRenderOptimize
|
|
511
548
|
|
|
512
|
-
|
|
549
|
+
let groups: GroupWindow | undefined
|
|
550
|
+
if (isGroup && isOptimizeMode) {
|
|
551
|
+
renderColumnList = fixedType ? fixedColumn : tableColumn
|
|
552
|
+
const projection = projectHeaderWindow(renderColumnList, headerColumn, fullColumnIdData)
|
|
553
|
+
renderHeaderList = projection.headers
|
|
554
|
+
groups = projection.groups
|
|
555
|
+
} else if (isGroup) {
|
|
513
556
|
renderColumnList = visibleColumn
|
|
514
557
|
} else {
|
|
515
558
|
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
@@ -622,7 +665,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
622
665
|
{
|
|
623
666
|
ref: 'refHeaderTHead'
|
|
624
667
|
},
|
|
625
|
-
renderHeads(h, _vm, isGroup, isOptimizeMode, renderHeaderList, renderColumnList)
|
|
668
|
+
renderHeads(h, _vm, isGroup, isOptimizeMode, renderHeaderList, renderColumnList, groups)
|
|
626
669
|
)
|
|
627
670
|
]
|
|
628
671
|
),
|
|
@@ -670,13 +713,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
670
713
|
const tableReactData = $xeTable as unknown as TableReactData
|
|
671
714
|
const tableInternalData = $xeTable as unknown as TableInternalData
|
|
672
715
|
|
|
673
|
-
const props = _vm
|
|
674
|
-
|
|
675
716
|
const { showCustomHeader } = tableProps
|
|
676
717
|
const { collectColumn, visibleColumn } = tableInternalData
|
|
677
|
-
const { tableGroupColumn } = props
|
|
678
718
|
const { isGroup } = tableReactData
|
|
679
|
-
let spanColumns: VxeTableDefines.ColumnInfo[][] = isGroup ?
|
|
719
|
+
let spanColumns: VxeTableDefines.ColumnInfo[][] = isGroup ? (_vm as any).groupedHeaderRows : []
|
|
680
720
|
let visibleColgroups: VxeTableDefines.ColumnInfo[][] = []
|
|
681
721
|
if (showCustomHeader && spanColumns.length > 1) {
|
|
682
722
|
visibleColgroups = convertHeaderToGridRows(spanColumns)
|
|
@@ -60,6 +60,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE'
|
|
|
60
60
|
const maxXWidth = 5e6
|
|
61
61
|
|
|
62
62
|
const sourceType = 'table'
|
|
63
|
+
const filteredRowModels = new WeakMap<VxeTableConstructor, { source: any[]; length: number; keys: unknown[]; rows: any[] }>()
|
|
63
64
|
const customStorageQueues = new WeakMap<VxeTableConstructor, ReturnType<typeof createCustomStoreQueue>>()
|
|
64
65
|
|
|
65
66
|
// 仅合并等待同一轮 DOM 更新的展开行位置重算,不保留表格实例。
|
|
@@ -82,6 +83,7 @@ const rowOffsetIndexes = new WeakMap<
|
|
|
82
83
|
firstChangedIndex: number
|
|
83
84
|
resizeFlag: number
|
|
84
85
|
hasExpandColumn: boolean
|
|
86
|
+
uniformHeight: number
|
|
85
87
|
}
|
|
86
88
|
>()
|
|
87
89
|
|
|
@@ -916,7 +918,7 @@ function handleVirtualTreeToList($xeTable: VxeTableConstructor & VxeTablePrivate
|
|
|
916
918
|
* 编译处理后全量的表格数据
|
|
917
919
|
* 如果存在筛选条件,继续处理
|
|
918
920
|
*/
|
|
919
|
-
function updateAfterFullData($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
921
|
+
function updateAfterFullData($xeTable: VxeTableConstructor & VxeTablePrivateMethods, reason?: 'sort') {
|
|
920
922
|
const props = $xeTable
|
|
921
923
|
const reactData = $xeTable as unknown as TableReactData
|
|
922
924
|
const internalData = $xeTable as unknown as TableInternalData
|
|
@@ -936,6 +938,9 @@ function updateAfterFullData($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
936
938
|
let tableData: any[] = []
|
|
937
939
|
let tableTree: any[] = []
|
|
938
940
|
|
|
941
|
+
const previousFilter = reason === 'sort' ? filteredRowModels.get($xeTable) : undefined
|
|
942
|
+
filteredRowModels.delete($xeTable)
|
|
943
|
+
|
|
939
944
|
// 处理数据
|
|
940
945
|
if (!allRemoteFilter || !allRemoteSort) {
|
|
941
946
|
const filterColumns: {
|
|
@@ -1008,7 +1013,21 @@ function updateAfterFullData($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
1008
1013
|
})
|
|
1009
1014
|
tableData = tableTree
|
|
1010
1015
|
} else {
|
|
1011
|
-
|
|
1016
|
+
if (!treeConfig && filterOpts.cacheOnSort === true) {
|
|
1017
|
+
const keys: unknown[] = [allFilterMethod, rendererOpts]
|
|
1018
|
+
for (const { column, itemList } of filterColumns) {
|
|
1019
|
+
keys.push(column, column.field, column.filterMethod, column.filterRender, itemList.length)
|
|
1020
|
+
for (const item of itemList) keys.push(item, item.value, item.data)
|
|
1021
|
+
}
|
|
1022
|
+
const reuse = previousFilter && previousFilter.source === tableFullData && previousFilter.length === tableFullData.length &&
|
|
1023
|
+
keys.length === previousFilter.keys.length && keys.every((value, index) => value === previousFilter.keys[index])
|
|
1024
|
+
const rows = reuse ? previousFilter.rows : tableFullData.filter(handleFilter)
|
|
1025
|
+
filteredRowModels.set($xeTable, { source: tableFullData, length: tableFullData.length, keys, rows })
|
|
1026
|
+
// 自定义排序器可能原地排序;缓存保留筛选后的原始顺序。
|
|
1027
|
+
tableData = rows.slice()
|
|
1028
|
+
} else {
|
|
1029
|
+
tableData = treeConfig ? tableFullTreeData.filter(handleFilter) : tableFullData.filter(handleFilter)
|
|
1030
|
+
}
|
|
1012
1031
|
tableTree = tableData
|
|
1013
1032
|
}
|
|
1014
1033
|
} else {
|
|
@@ -1321,7 +1340,7 @@ function updateStyle($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
1321
1340
|
let renderColumnList = tableColumn
|
|
1322
1341
|
const isOptimizeMode = isHeaderRenderOptimize
|
|
1323
1342
|
|
|
1324
|
-
if (isGroup) {
|
|
1343
|
+
if (isGroup && !isOptimizeMode) {
|
|
1325
1344
|
renderColumnList = visibleColumn
|
|
1326
1345
|
} else {
|
|
1327
1346
|
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
@@ -1338,22 +1357,9 @@ function updateStyle($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
|
1338
1357
|
|
|
1339
1358
|
const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
1340
1359
|
|
|
1341
|
-
if (fixedType) {
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
wrapperElem.style.width = scrollXWidth ? `${scrollXWidth}px` : ''
|
|
1345
|
-
}
|
|
1346
|
-
} else {
|
|
1347
|
-
if (isOptimizeMode) {
|
|
1348
|
-
if (wrapperElem) {
|
|
1349
|
-
wrapperElem.style.width = tWidth ? `${tWidth}px` : ''
|
|
1350
|
-
}
|
|
1351
|
-
} else {
|
|
1352
|
-
if (wrapperElem) {
|
|
1353
|
-
wrapperElem.style.width = scrollXWidth ? `${scrollXWidth}px` : ''
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1360
|
+
if (fixedType && wrapperElem) {
|
|
1361
|
+
const width = isOptimizeMode ? tWidth : scrollXWidth
|
|
1362
|
+
wrapperElem.style.width = width ? `${width}px` : ''
|
|
1357
1363
|
}
|
|
1358
1364
|
|
|
1359
1365
|
if (currScrollElem) {
|
|
@@ -1645,7 +1651,7 @@ function updateStyleWithDedupe($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
1645
1651
|
let renderColumnList = tableColumn
|
|
1646
1652
|
const isOptimizeMode = isHeaderRenderOptimize
|
|
1647
1653
|
|
|
1648
|
-
if (isGroup) {
|
|
1654
|
+
if (isGroup && !isOptimizeMode) {
|
|
1649
1655
|
renderColumnList = visibleColumn
|
|
1650
1656
|
} else {
|
|
1651
1657
|
if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
|
|
@@ -1662,22 +1668,9 @@ function updateStyleWithDedupe($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
1662
1668
|
|
|
1663
1669
|
const tWidth = renderColumnList.reduce((previous, column) => previous + column.renderWidth, 0)
|
|
1664
1670
|
|
|
1665
|
-
if (fixedType) {
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
setLayoutStyle(wrapperElem, 'width', scrollXWidth ? `${scrollXWidth}px` : '')
|
|
1669
|
-
}
|
|
1670
|
-
} else {
|
|
1671
|
-
if (isOptimizeMode) {
|
|
1672
|
-
if (wrapperElem) {
|
|
1673
|
-
setLayoutStyle(wrapperElem, 'width', tWidth ? `${tWidth}px` : '')
|
|
1674
|
-
}
|
|
1675
|
-
} else {
|
|
1676
|
-
if (wrapperElem) {
|
|
1677
|
-
setLayoutStyle(wrapperElem, 'width', scrollXWidth ? `${scrollXWidth}px` : '')
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1671
|
+
if (fixedType && wrapperElem) {
|
|
1672
|
+
const width = isOptimizeMode ? tWidth : scrollXWidth
|
|
1673
|
+
setLayoutStyle(wrapperElem, 'width', width ? `${width}px` : '')
|
|
1681
1674
|
}
|
|
1682
1675
|
|
|
1683
1676
|
if (currScrollElem) {
|
|
@@ -1790,7 +1783,7 @@ function updateStyleWithDedupe($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
1790
1783
|
}
|
|
1791
1784
|
return $xeTable.$nextTick()
|
|
1792
1785
|
}
|
|
1793
|
-
function updateScrollXSpaceWithDedupe($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
1786
|
+
function updateScrollXSpaceWithDedupe($xeTable: VxeTableConstructor & VxeTablePrivateMethods, beforeWindowCommit: boolean) {
|
|
1794
1787
|
const reactData = $xeTable as unknown as TableReactData
|
|
1795
1788
|
const internalData = $xeTable as unknown as TableInternalData
|
|
1796
1789
|
|
|
@@ -1877,6 +1870,7 @@ function updateScrollXSpaceWithDedupe($xeTable: VxeTableConstructor & VxeTablePr
|
|
|
1877
1870
|
setLayoutStyle(scrollXSpaceEl, 'width', `${ySpaceWidth}px`)
|
|
1878
1871
|
}
|
|
1879
1872
|
|
|
1873
|
+
if (beforeWindowCommit) return
|
|
1880
1874
|
calcScrollbar($xeTable)
|
|
1881
1875
|
if (isScrollXBig && mouseOpts.area) {
|
|
1882
1876
|
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
@@ -2993,7 +2987,7 @@ function handleSortEvent($xeTable: VxeTableConstructor & VxeTablePrivateMethods,
|
|
|
2993
2987
|
}
|
|
2994
2988
|
if (isUpdate) {
|
|
2995
2989
|
if (!remote) {
|
|
2996
|
-
$xeTable.handleTableData(true)
|
|
2990
|
+
$xeTable.handleTableData(true, false, 'sort')
|
|
2997
2991
|
}
|
|
2998
2992
|
}
|
|
2999
2993
|
if (evnt) {
|
|
@@ -4608,12 +4602,14 @@ function handleInitDefaults($xeTable: VxeTableConstructor & VxeTablePrivateMetho
|
|
|
4608
4602
|
}
|
|
4609
4603
|
|
|
4610
4604
|
// 二次布局校正时复用未变化的窗口;逐项比较,不能只比较窗口范围或源数组引用。
|
|
4611
|
-
function
|
|
4605
|
+
function matchesVirtualWindow<T>(source: T[], previous: T[], start: number, end: number) {
|
|
4612
4606
|
const size = Math.max(0, Math.min(end, source.length) - start)
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4607
|
+
return start >= 0 && end >= 0 && Number.isInteger(start) && Number.isInteger(end) &&
|
|
4608
|
+
previous.length === size && previous.every((item, index) => item === source[start + index])
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
function getVirtualWindowSlice<T>(source: T[], previous: T[], start: number, end: number) {
|
|
4612
|
+
return matchesVirtualWindow(source, previous, start, end) ? previous : source.slice(start, end)
|
|
4617
4613
|
}
|
|
4618
4614
|
|
|
4619
4615
|
function handleTableColumn($xeTable: VxeTableConstructor & VxeTablePrivateMethods, reuseWindow = false) {
|
|
@@ -4668,7 +4664,7 @@ function loadScrollXData($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
|
|
|
4668
4664
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
4669
4665
|
scrollXStore.startIndex = offsetStartIndex
|
|
4670
4666
|
scrollXStore.endIndex = offsetEndIndex
|
|
4671
|
-
$xeTable.updateScrollXData()
|
|
4667
|
+
$xeTable.updateScrollXData(true)
|
|
4672
4668
|
}
|
|
4673
4669
|
}
|
|
4674
4670
|
$xeTable.closeTooltip()
|
|
@@ -4870,6 +4866,16 @@ function buildColumnInfo($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
|
|
|
4870
4866
|
if (props.showCustomHeader && reactData.isGroup && (columnOpts.resizable || props.resizable)) {
|
|
4871
4867
|
warnLog('vxe.error.notConflictProp', ['show-custom-header & colgroup', 'column-config.resizable=false'])
|
|
4872
4868
|
}
|
|
4869
|
+
if (reactData.scrollXLoad && !reactData.overflowX && reactData.tableColumn.length < internalData.visibleColumn.length &&
|
|
4870
|
+
!$xeTable.computeAutoWidthColumnList.length) {
|
|
4871
|
+
const body = getRefElem(internalData.elemStore['main-body-wrapper'])
|
|
4872
|
+
if (body && body.clientWidth) {
|
|
4873
|
+
// 列窗已选出,先按实际容器确认溢出,结束加载时就不会短暂渲染全部列。
|
|
4874
|
+
$xeTable.analyColumnWidth()
|
|
4875
|
+
autoCellWidth($xeTable)
|
|
4876
|
+
reactData.overflowX = reactData.scrollXWidth > body.clientWidth
|
|
4877
|
+
}
|
|
4878
|
+
}
|
|
4873
4879
|
reactData.isColLoading = false
|
|
4874
4880
|
return handleLazyRecalculate($xeTable, false, true, true)
|
|
4875
4881
|
})
|
|
@@ -5044,10 +5050,15 @@ function handleSyncScroll($xeTable: VxeTableConstructor & VxeTablePrivateMethods
|
|
|
5044
5050
|
|
|
5045
5051
|
let xRest = null
|
|
5046
5052
|
let yRest = null
|
|
5047
|
-
|
|
5053
|
+
const { startIndex, endIndex } = internalData.scrollYStore
|
|
5054
|
+
// 纯纵向收尾如果仍是同一批行,只在 DOM 提交后测一次,保留内容异步变化后的真实高度。
|
|
5055
|
+
const measureAfterCommit = !isAllOverflow && !!syncGuard && isRollY && !isRollX && scrollYLoad &&
|
|
5056
|
+
!reactData.expandColumn && !autoWidthColumnList.length &&
|
|
5057
|
+
matchesVirtualWindow(internalData.afterFullData, reactData.tableData, startIndex, endIndex)
|
|
5058
|
+
if (!isAllOverflow && !measureAfterCommit) {
|
|
5048
5059
|
measureScrollRowOffsets($xeTable)
|
|
5049
5060
|
}
|
|
5050
|
-
if (syncGuard) syncGuard.markMeasured()
|
|
5061
|
+
if (syncGuard && !measureAfterCommit) syncGuard.markMeasured()
|
|
5051
5062
|
if (isRollX && scrollXLoad) {
|
|
5052
5063
|
xRest = $xeTable.updateScrollXData()
|
|
5053
5064
|
}
|
|
@@ -5063,8 +5074,8 @@ function handleSyncScroll($xeTable: VxeTableConstructor & VxeTablePrivateMethods
|
|
|
5063
5074
|
}
|
|
5064
5075
|
if (!isAllOverflow) {
|
|
5065
5076
|
measureScrollRowOffsets($xeTable)
|
|
5077
|
+
if (syncGuard) syncGuard.markMeasured()
|
|
5066
5078
|
}
|
|
5067
|
-
if (syncGuard) syncGuard.markMeasured()
|
|
5068
5079
|
return $xeTable.updateScrollYSpace()
|
|
5069
5080
|
})
|
|
5070
5081
|
}
|
|
@@ -5310,7 +5321,22 @@ function handleUpdateColResize($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
5310
5321
|
$xeTable.dispatchEvent('column-resizable-change', params, evnt)
|
|
5311
5322
|
// 已废弃 resizable-change
|
|
5312
5323
|
$xeTable.dispatchEvent('resizable-change', params, evnt)
|
|
5313
|
-
|
|
5324
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
5325
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
5326
|
+
const fixedGeometry = getUniformRowHeight($xeTable) && ($xeTable.computeCellOpts.height || $xeTable.computeRowOpts.height) &&
|
|
5327
|
+
!$xeTable.treeConfig && !internalData.xeGanttView && !$xeTable.computeAutoWidthColumnList.length &&
|
|
5328
|
+
!reactData.isGroup && !reactData.isRowGroupStatus && !$xeTable.headerRowStyle && !$xeTable.headerCellStyle &&
|
|
5329
|
+
!$xeTable.showFooter && $xeTable.showHeaderOverflow && !internalData.visibleColumn.some(column => column.showHeaderOverflow === false)
|
|
5330
|
+
const root = $xeTable.$refs.refElem as HTMLElement
|
|
5331
|
+
const width = fixedGeometry && root ? root.clientWidth : 0
|
|
5332
|
+
const height = fixedGeometry && root ? root.clientHeight : 0
|
|
5333
|
+
setTimeout(() => {
|
|
5334
|
+
if (isTableDestroyed($xeTable)) return
|
|
5335
|
+
// 容器可能在业务事件之后改变尺寸,包括关闭 autoResize 的表格。
|
|
5336
|
+
if (!fixedGeometry || !root || root.clientWidth !== width || root.clientHeight !== height) {
|
|
5337
|
+
$xeTable.recalculate(true)
|
|
5338
|
+
}
|
|
5339
|
+
}, 300)
|
|
5314
5340
|
})
|
|
5315
5341
|
}
|
|
5316
5342
|
|
|
@@ -5360,8 +5386,15 @@ function updateRowOffsetTop($xeTable: VxeTableConstructor & VxeTablePrivateMetho
|
|
|
5360
5386
|
const rowOpts = $xeTable.computeRowOpts
|
|
5361
5387
|
const cellOpts = $xeTable.computeCellOpts
|
|
5362
5388
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
5363
|
-
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
5364
5389
|
const previous = rowOffsetIndexes.get($xeTable)
|
|
5390
|
+
// oTop 也供合并单元格和外部定位读取。同一份定高行序只写一次。
|
|
5391
|
+
const uniformHeight = cellOpts.height || rowOpts.height ? getUniformRowHeight($xeTable) : 0
|
|
5392
|
+
if (uniformHeight && previous && previous.uniformHeight === uniformHeight &&
|
|
5393
|
+
previous.rows === afterFullData && previous.rowOrder === internalData.afterFullRowMaps &&
|
|
5394
|
+
previous.cache === fullAllDataRowIdData && previous.length === afterFullData.length) {
|
|
5395
|
+
return
|
|
5396
|
+
}
|
|
5397
|
+
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
5365
5398
|
let startIndex = previous && previous.rows === afterFullData && previous.cache === fullAllDataRowIdData ? Math.max(0, Math.min(dirtyIndex, afterFullData.length)) : 0
|
|
5366
5399
|
const firstRow = afterFullData[startIndex]
|
|
5367
5400
|
const firstRest = firstRow ? fullAllDataRowIdData[handleGetRowId(firstRow)] : null
|
|
@@ -5390,6 +5423,7 @@ function updateRowOffsetTop($xeTable: VxeTableConstructor & VxeTablePrivateMetho
|
|
|
5390
5423
|
cellOpts,
|
|
5391
5424
|
defaultRowHeight,
|
|
5392
5425
|
hasExpandColumn: !!expandColumn,
|
|
5426
|
+
uniformHeight,
|
|
5393
5427
|
heightFlag: reactData.calcCellHeightFlag,
|
|
5394
5428
|
firstChangedIndex: Infinity,
|
|
5395
5429
|
resizeFlag: reactData.resizeHeightFlag
|
|
@@ -5962,7 +5996,10 @@ const tableMethods: any = {
|
|
|
5962
5996
|
if (rest && rest.row === row) {
|
|
5963
5997
|
// formatter 可以读取同一行的其它字段。
|
|
5964
5998
|
rest.formatData = undefined
|
|
5965
|
-
if (visibleDataRowIdData[id] === row)
|
|
5999
|
+
if (visibleDataRowIdData[id] === row) {
|
|
6000
|
+
rest.contentVersion = (rest.contentVersion || 0) + 1
|
|
6001
|
+
hasVisibleRow = true
|
|
6002
|
+
}
|
|
5966
6003
|
} else {
|
|
5967
6004
|
staleRow = true
|
|
5968
6005
|
}
|
|
@@ -6017,7 +6054,7 @@ const tableMethods: any = {
|
|
|
6017
6054
|
setTimeout(() => handleLazyRecalculate($xeTable, false, true, true), 50)
|
|
6018
6055
|
})
|
|
6019
6056
|
},
|
|
6020
|
-
handleTableData(force?: boolean, reuseWindow = false) {
|
|
6057
|
+
handleTableData(force?: boolean, reuseWindow = false, reason?: 'sort') {
|
|
6021
6058
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
6022
6059
|
const reactData = $xeTable as unknown as TableReactData
|
|
6023
6060
|
const internalData = $xeTable as unknown as TableInternalData
|
|
@@ -6029,7 +6066,7 @@ const tableMethods: any = {
|
|
|
6029
6066
|
// 是否进行数据处理
|
|
6030
6067
|
if (force) {
|
|
6031
6068
|
// 更新数据,处理筛选和排序
|
|
6032
|
-
updateAfterFullData($xeTable)
|
|
6069
|
+
updateAfterFullData($xeTable, reason)
|
|
6033
6070
|
// 如果为虚拟树,将树结构拍平
|
|
6034
6071
|
fullList = handleVirtualTreeToList($xeTable)
|
|
6035
6072
|
// 更新数据后清除合并缓存,涉及分组、筛选、排序等
|
|
@@ -8358,12 +8395,7 @@ const tableMethods: any = {
|
|
|
8358
8395
|
evnt.preventDefault()
|
|
8359
8396
|
const { fullColumnIdData } = internalData
|
|
8360
8397
|
const { column } = params
|
|
8361
|
-
|
|
8362
|
-
if (column.children && column.children.length) {
|
|
8363
|
-
XEUtils.eachTree(column.children, (childColumn) => {
|
|
8364
|
-
resizeColumn = childColumn
|
|
8365
|
-
})
|
|
8366
|
-
}
|
|
8398
|
+
const resizeColumn = getLastChildColumn(column)
|
|
8367
8399
|
const colid = resizeColumn.id
|
|
8368
8400
|
const colRest = fullColumnIdData[colid]
|
|
8369
8401
|
const dragBtnElem = evnt.target as HTMLDivElement
|
|
@@ -12796,7 +12828,7 @@ const tableMethods: any = {
|
|
|
12796
12828
|
})
|
|
12797
12829
|
// 如果是服务端排序,则跳过本地排序处理
|
|
12798
12830
|
if (!remote || (firstSortColumn && firstSortColumn.remoteSort)) {
|
|
12799
|
-
$xeTable.handleTableData(true)
|
|
12831
|
+
$xeTable.handleTableData(true, false, 'sort')
|
|
12800
12832
|
}
|
|
12801
12833
|
return $xeTable.$nextTick().then(() => {
|
|
12802
12834
|
updateRowOffsetTop($xeTable)
|
|
@@ -12834,7 +12866,7 @@ const tableMethods: any = {
|
|
|
12834
12866
|
clearAllSort($xeTable)
|
|
12835
12867
|
}
|
|
12836
12868
|
if (!sortOpts.remote) {
|
|
12837
|
-
$xeTable.handleTableData(true)
|
|
12869
|
+
$xeTable.handleTableData(true, false, 'sort')
|
|
12838
12870
|
}
|
|
12839
12871
|
return $xeTable.$nextTick().then(() => {
|
|
12840
12872
|
updateRowOffsetTop($xeTable)
|
|
@@ -12865,7 +12897,7 @@ const tableMethods: any = {
|
|
|
12865
12897
|
})
|
|
12866
12898
|
}
|
|
12867
12899
|
if (!sortOpts.remote) {
|
|
12868
|
-
$xeTable.handleTableData(true)
|
|
12900
|
+
$xeTable.handleTableData(true, false, 'sort')
|
|
12869
12901
|
}
|
|
12870
12902
|
|
|
12871
12903
|
if (!multiple) {
|
|
@@ -14368,13 +14400,17 @@ const tableMethods: any = {
|
|
|
14368
14400
|
fixed: ''
|
|
14369
14401
|
})
|
|
14370
14402
|
},
|
|
14371
|
-
updateScrollXData() {
|
|
14403
|
+
updateScrollXData(fromScroll = false) {
|
|
14372
14404
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
14373
14405
|
const reactData = $xeTable as unknown as TableReactData
|
|
14374
14406
|
|
|
14375
14407
|
const { isAllOverflow } = reactData
|
|
14408
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
14409
|
+
// 先移动占位和表体,等新列提交后再量 DOM、同步滚动条和固定区。
|
|
14410
|
+
const deferLayout = fromScroll && isAllOverflow && reactData.overflowX && reactData.scrollXWidth < maxXWidth &&
|
|
14411
|
+
!reactData.expandColumn && !internalData.xeGanttView && !$xeTable.computeAutoWidthColumnList.length
|
|
14376
14412
|
handleTableColumn($xeTable)
|
|
14377
|
-
$xeTable.updateScrollXSpace()
|
|
14413
|
+
$xeTable.updateScrollXSpace(deferLayout)
|
|
14378
14414
|
return $xeTable.$nextTick().then(() => {
|
|
14379
14415
|
handleTableColumn($xeTable, true)
|
|
14380
14416
|
$xeTable.updateScrollXSpace()
|
|
@@ -14384,10 +14420,10 @@ const tableMethods: any = {
|
|
|
14384
14420
|
})
|
|
14385
14421
|
},
|
|
14386
14422
|
// 更新横向 X 可视渲染上下剩余空间大小
|
|
14387
|
-
updateScrollXSpace() {
|
|
14423
|
+
updateScrollXSpace(beforeWindowCommit = false) {
|
|
14388
14424
|
// 入口只分流一次;关闭时不经过去重函数或逐项样式比较。
|
|
14389
14425
|
if (this.computeVirtualXOpts.experimentalSkipUnchangedStyle === true) {
|
|
14390
|
-
return updateScrollXSpaceWithDedupe(this as VxeTableConstructor & VxeTablePrivateMethods)
|
|
14426
|
+
return updateScrollXSpaceWithDedupe(this as VxeTableConstructor & VxeTablePrivateMethods, beforeWindowCommit)
|
|
14391
14427
|
}
|
|
14392
14428
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
14393
14429
|
const reactData = $xeTable as unknown as TableReactData
|
|
@@ -14476,6 +14512,7 @@ const tableMethods: any = {
|
|
|
14476
14512
|
scrollXSpaceEl.style.width = `${ySpaceWidth}px`
|
|
14477
14513
|
}
|
|
14478
14514
|
|
|
14515
|
+
if (beforeWindowCommit) return
|
|
14479
14516
|
calcScrollbar($xeTable)
|
|
14480
14517
|
if (isScrollXBig && mouseOpts.area) {
|
|
14481
14518
|
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
@@ -1461,22 +1461,14 @@ export default {
|
|
|
1461
1461
|
const props = $xeTable
|
|
1462
1462
|
const reactData = $xeTable as unknown as TableReactData
|
|
1463
1463
|
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
if (spanMethod || footerSpanMethod) {
|
|
1473
|
-
// 如果不支持优化模式
|
|
1474
|
-
} else {
|
|
1475
|
-
isOptimizeMode = true
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
return isOptimizeMode
|
|
1464
|
+
if (!reactData.scrollXLoad || !props.showHeaderOverflow || props.spanMethod || props.footerSpanMethod) return false
|
|
1465
|
+
if (!reactData.isGroup) return true
|
|
1466
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
1467
|
+
return !!(reactData.overflowX && !props.showCustomHeader && !props.headerRowStyle && !props.headerCellStyle &&
|
|
1468
|
+
!$xeTable.computeColumnOpts.drag && !$xeTable.computeMouseOpts.area &&
|
|
1469
|
+
!(reactData.mergeHeadFlag && internalData.mergeHeaderList.length) &&
|
|
1470
|
+
!XEUtils.findTree(reactData.tableGroupColumn, column => column.visible &&
|
|
1471
|
+
(column.showHeaderOverflow === false || column.width === 'auto' || column.minWidth === 'auto')))
|
|
1480
1472
|
},
|
|
1481
1473
|
computeIsBodyRenderOptimize() {
|
|
1482
1474
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|