vxe-table 3.13.0-beta.3 → 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.
Files changed (44) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/module/edit/mixin.js +1 -8
  6. package/es/table/src/cell.js +3 -0
  7. package/es/table/src/methods.js +23 -12
  8. package/es/table/style.css +1 -1
  9. package/es/table/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-table/style.css +1 -1
  13. package/es/vxe-table/style.min.css +1 -1
  14. package/lib/index.css +1 -1
  15. package/lib/index.min.css +1 -1
  16. package/lib/index.umd.js +26 -24
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/module/edit/mixin.js +1 -10
  21. package/lib/table/module/edit/mixin.min.js +1 -1
  22. package/lib/table/src/cell.js +3 -0
  23. package/lib/table/src/cell.min.js +1 -1
  24. package/lib/table/src/methods.js +20 -12
  25. package/lib/table/src/methods.min.js +1 -1
  26. package/lib/table/style/style.css +1 -1
  27. package/lib/table/style/style.min.css +1 -1
  28. package/lib/ui/index.js +1 -1
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/lib/vxe-table/style/style.css +1 -1
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/table/module/edit/mixin.ts +1 -8
  36. package/packages/table/src/cell.ts +4 -1
  37. package/packages/table/src/methods.ts +29 -15
  38. package/styles/components/table.scss +1 -1
  39. /package/es/{iconfont.1739513027972.ttf → iconfont.1739527648616.ttf} +0 -0
  40. /package/es/{iconfont.1739513027972.woff → iconfont.1739527648616.woff} +0 -0
  41. /package/es/{iconfont.1739513027972.woff2 → iconfont.1739527648616.woff2} +0 -0
  42. /package/lib/{iconfont.1739513027972.ttf → iconfont.1739527648616.ttf} +0 -0
  43. /package/lib/{iconfont.1739513027972.woff → iconfont.1739527648616.woff} +0 -0
  44. /package/lib/{iconfont.1739513027972.woff2 → iconfont.1739527648616.woff2} +0 -0
@@ -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
- if (expandColumn && mouseOpts.area) {
282
- errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
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().then(() => $xeTable.recalculate()).then(() => resolve())
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: any) => {
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: any) => this.handleRowExpandReserve(row, expanded))
7473
+ validRows.forEach((row) => this.handleRowExpandReserve(row, expanded))
7469
7474
  }
7470
7475
  }
7471
7476
  this.rowExpandedMaps = rExpandedMaps
7472
- return Promise.all(lazyRests).then(this.recalculate)
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
- if (this.mouseConfig && this.mouseOpts.area && this.handleRecalculateCellAreas) {
8814
- return this.handleRecalculateCellAreas()
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 this.$nextTick()
8830
+ return $xeTable.$nextTick()
8817
8831
  },
8818
8832
  dispatchEvent (type: ValueOf<VxeTableEmits>, params: Record<string, any>, evnt: Event | null) {
8819
8833
  const $xeTable = this
@@ -271,7 +271,7 @@
271
271
  display: none;
272
272
  position: absolute;
273
273
  pointer-events: none;
274
- z-index: 1;
274
+ z-index: 6;
275
275
  }
276
276
 
277
277
  .vxe-table--header-wrapper {