vxe-table 3.13.0-beta.2 → 3.13.0-beta.4
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/edit/mixin.js +1 -8
- package/es/table/src/body.js +4 -2
- package/es/table/src/cell.js +3 -0
- package/es/table/src/footer.js +4 -2
- package/es/table/src/header.js +4 -2
- package/es/table/src/methods.js +23 -12
- package/es/table/src/table.js +6 -0
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +44 -27
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/edit/mixin.js +1 -10
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/body.js +4 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +3 -0
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +4 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +4 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +20 -12
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +6 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/module/edit/mixin.ts +1 -8
- package/packages/table/src/body.ts +5 -2
- package/packages/table/src/cell.ts +4 -1
- package/packages/table/src/footer.ts +5 -2
- package/packages/table/src/header.ts +5 -2
- package/packages/table/src/methods.ts +29 -15
- package/packages/table/src/table.ts +6 -0
- package/styles/components/table.scss +1 -1
- /package/es/{iconfont.1739506361723.ttf → iconfont.1739527648616.ttf} +0 -0
- /package/es/{iconfont.1739506361723.woff → iconfont.1739527648616.woff} +0 -0
- /package/es/{iconfont.1739506361723.woff2 → iconfont.1739527648616.woff2} +0 -0
- /package/lib/{iconfont.1739506361723.ttf → iconfont.1739527648616.ttf} +0 -0
- /package/lib/{iconfont.1739506361723.woff → iconfont.1739527648616.woff} +0 -0
- /package/lib/{iconfont.1739506361723.woff2 → iconfont.1739527648616.woff2} +0 -0
|
@@ -272,7 +272,7 @@ export default {
|
|
|
272
272
|
const { headerColumn } = this
|
|
273
273
|
|
|
274
274
|
const { mouseConfig, showHeaderOverflow: allColumnHeaderOverflow, spanMethod, footerSpanMethod } = tableProps
|
|
275
|
-
const { isGroup, scrollXLoad, scrollYLoad, dragCol } = tableReactData
|
|
275
|
+
const { isGroup, overflowX, scrollXLoad, scrollYLoad, dragCol } = tableReactData
|
|
276
276
|
const { visibleColumn, fullColumnIdData } = tableInternalData
|
|
277
277
|
|
|
278
278
|
const mouseOpts = $xeTable.computeMouseOpts
|
|
@@ -292,8 +292,11 @@ export default {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
if (fixedType) {
|
|
295
|
+
if (fixedType || !overflowX) {
|
|
296
296
|
renderColumnList = visibleColumn
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if (fixedType) {
|
|
297
300
|
// 如果是使用优化模式
|
|
298
301
|
if (isOptimizeMode) {
|
|
299
302
|
renderColumnList = fixedColumn || []
|
|
@@ -189,7 +189,7 @@ function cacheColumnMap ($xeTable: VxeTableConstructor) {
|
|
|
189
189
|
const { tableFullColumn, collectColumn } = internalData
|
|
190
190
|
const fullColumnIdData: Record<string, VxeTableDefines.ColumnCacheItem> = internalData.fullColumnIdData = {}
|
|
191
191
|
const fullColumnFieldData: Record<string, VxeTableDefines.ColumnCacheItem> = internalData.fullColumnFieldData = {}
|
|
192
|
-
const mouseOpts = $xeTable.computeMouseOpts
|
|
192
|
+
// const mouseOpts = $xeTable.computeMouseOpts
|
|
193
193
|
const columnOpts = $xeTable.computeColumnOpts
|
|
194
194
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
195
195
|
const { isCrossDrag, isSelfToChildDrag } = columnDragOpts
|
|
@@ -277,11 +277,11 @@ function cacheColumnMap ($xeTable: VxeTableConstructor) {
|
|
|
277
277
|
tableFullColumn.forEach(handleFunc)
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
280
|
+
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
281
|
+
// if (expandColumn && mouseOpts.area) {
|
|
282
|
+
// errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
|
|
283
|
+
// }
|
|
284
|
+
// }
|
|
285
285
|
|
|
286
286
|
if (process.env.VUE_APP_VXE_ENV === 'developmeznt') {
|
|
287
287
|
if (htmlColumn) {
|
|
@@ -7412,7 +7412,10 @@ const Methods = {
|
|
|
7412
7412
|
delete rExpandLazyLoadedMaps[rowid]
|
|
7413
7413
|
}
|
|
7414
7414
|
reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps
|
|
7415
|
-
$xeTable.$nextTick()
|
|
7415
|
+
$xeTable.$nextTick()
|
|
7416
|
+
.then(() => $xeTable.recalculate())
|
|
7417
|
+
.then(() => $xeTable.updateCellAreas())
|
|
7418
|
+
.then(() => resolve())
|
|
7416
7419
|
})
|
|
7417
7420
|
} else {
|
|
7418
7421
|
resolve()
|
|
@@ -7427,6 +7430,8 @@ const Methods = {
|
|
|
7427
7430
|
* @param {Boolean} expanded 是否展开
|
|
7428
7431
|
*/
|
|
7429
7432
|
setRowExpand (rows: any, expanded: any) {
|
|
7433
|
+
const $xeTable = this
|
|
7434
|
+
|
|
7430
7435
|
const { rowExpandedMaps, fullAllDataRowIdData, rowExpandLazyLoadedMaps, expandOpts, expandColumn: column } = this
|
|
7431
7436
|
let rExpandedMaps = { ...rowExpandedMaps }
|
|
7432
7437
|
const { reserve, lazy, accordion, toggleMethod } = expandOpts
|
|
@@ -7442,7 +7447,7 @@ const Methods = {
|
|
|
7442
7447
|
rExpandedMaps = {}
|
|
7443
7448
|
rows = rows.slice(rows.length - 1, rows.length)
|
|
7444
7449
|
}
|
|
7445
|
-
const validRows = toggleMethod ? rows.filter((row: any) => toggleMethod({ expanded, column, columnIndex, $columnIndex, row, rowIndex: this.getRowIndex(row), $rowIndex: this.getVMRowIndex(row) })) : rows
|
|
7450
|
+
const validRows: any[] = toggleMethod ? rows.filter((row: any) => toggleMethod({ expanded, column, columnIndex, $columnIndex, row, rowIndex: this.getRowIndex(row), $rowIndex: this.getVMRowIndex(row) })) : rows
|
|
7446
7451
|
if (expanded) {
|
|
7447
7452
|
validRows.forEach((row: any) => {
|
|
7448
7453
|
const rowid = getRowid(this, row)
|
|
@@ -7457,7 +7462,7 @@ const Methods = {
|
|
|
7457
7462
|
}
|
|
7458
7463
|
})
|
|
7459
7464
|
} else {
|
|
7460
|
-
validRows.forEach((item
|
|
7465
|
+
validRows.forEach((item) => {
|
|
7461
7466
|
const rowid = getRowid(this, item)
|
|
7462
7467
|
if (rExpandedMaps[rowid]) {
|
|
7463
7468
|
delete rExpandedMaps[rowid]
|
|
@@ -7465,11 +7470,13 @@ const Methods = {
|
|
|
7465
7470
|
})
|
|
7466
7471
|
}
|
|
7467
7472
|
if (reserve) {
|
|
7468
|
-
validRows.forEach((row
|
|
7473
|
+
validRows.forEach((row) => this.handleRowExpandReserve(row, expanded))
|
|
7469
7474
|
}
|
|
7470
7475
|
}
|
|
7471
7476
|
this.rowExpandedMaps = rExpandedMaps
|
|
7472
|
-
return Promise.all(lazyRests)
|
|
7477
|
+
return Promise.all(lazyRests)
|
|
7478
|
+
.then(() => $xeTable.recalculate())
|
|
7479
|
+
.then(() => $xeTable.updateCellAreas())
|
|
7473
7480
|
},
|
|
7474
7481
|
/**
|
|
7475
7482
|
* 判断行是否为展开状态
|
|
@@ -7491,6 +7498,8 @@ const Methods = {
|
|
|
7491
7498
|
* 手动清空展开行状态,数据会恢复成未展开的状态
|
|
7492
7499
|
*/
|
|
7493
7500
|
clearRowExpand () {
|
|
7501
|
+
const $xeTable = this
|
|
7502
|
+
|
|
7494
7503
|
const { expandOpts, tableFullData } = this
|
|
7495
7504
|
const { reserve } = expandOpts
|
|
7496
7505
|
const expList = this.getRowExpandRecords()
|
|
@@ -7502,7 +7511,7 @@ const Methods = {
|
|
|
7502
7511
|
if (expList.length) {
|
|
7503
7512
|
this.recalculate()
|
|
7504
7513
|
}
|
|
7505
|
-
})
|
|
7514
|
+
}).then(() => $xeTable.updateCellAreas())
|
|
7506
7515
|
},
|
|
7507
7516
|
clearRowExpandReserve () {
|
|
7508
7517
|
this.rowExpandedReserveRowMap = {}
|
|
@@ -8810,10 +8819,15 @@ const Methods = {
|
|
|
8810
8819
|
}
|
|
8811
8820
|
},
|
|
8812
8821
|
updateCellAreas () {
|
|
8813
|
-
|
|
8814
|
-
|
|
8822
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
8823
|
+
const props = $xeTable
|
|
8824
|
+
|
|
8825
|
+
const { mouseConfig } = props
|
|
8826
|
+
const mouseOpts = $xeTable.computeMouseOpts
|
|
8827
|
+
if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreaEvent) {
|
|
8828
|
+
return $xeTable.handleRecalculateCellAreaEvent()
|
|
8815
8829
|
}
|
|
8816
|
-
return
|
|
8830
|
+
return $xeTable.$nextTick()
|
|
8817
8831
|
},
|
|
8818
8832
|
dispatchEvent (type: ValueOf<VxeTableEmits>, params: Record<string, any>, evnt: Event | null) {
|
|
8819
8833
|
const $xeTable = this
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|