vxe-table 4.11.0-beta.3 → 4.11.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 (45) hide show
  1. package/README.md +18 -13
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/table/module/edit/hook.js +1 -7
  7. package/es/table/src/cell.js +3 -0
  8. package/es/table/src/table.js +16 -11
  9. package/es/table/style.css +1 -1
  10. package/es/table/style.min.css +1 -1
  11. package/es/ui/index.js +1 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-table/style.css +1 -1
  14. package/es/vxe-table/style.min.css +1 -1
  15. package/lib/index.css +1 -1
  16. package/lib/index.min.css +1 -1
  17. package/lib/index.umd.js +17 -22
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/table/module/edit/hook.js +1 -9
  22. package/lib/table/module/edit/hook.min.js +1 -1
  23. package/lib/table/src/cell.js +3 -0
  24. package/lib/table/src/cell.min.js +1 -1
  25. package/lib/table/src/table.js +11 -11
  26. package/lib/table/src/table.min.js +1 -1
  27. package/lib/table/style/style.css +1 -1
  28. package/lib/table/style/style.min.css +1 -1
  29. package/lib/ui/index.js +1 -1
  30. package/lib/ui/index.min.js +1 -1
  31. package/lib/ui/src/log.js +1 -1
  32. package/lib/ui/src/log.min.js +1 -1
  33. package/lib/vxe-table/style/style.css +1 -1
  34. package/lib/vxe-table/style/style.min.css +1 -1
  35. package/package.json +1 -1
  36. package/packages/table/module/edit/hook.ts +1 -7
  37. package/packages/table/src/cell.ts +3 -0
  38. package/packages/table/src/table.ts +17 -12
  39. package/styles/components/table.scss +1 -1
  40. /package/es/{iconfont.1739513039826.ttf → iconfont.1739527666244.ttf} +0 -0
  41. /package/es/{iconfont.1739513039826.woff → iconfont.1739527666244.woff} +0 -0
  42. /package/es/{iconfont.1739513039826.woff2 → iconfont.1739527666244.woff2} +0 -0
  43. /package/lib/{iconfont.1739513039826.ttf → iconfont.1739527666244.ttf} +0 -0
  44. /package/lib/{iconfont.1739513039826.woff → iconfont.1739527666244.woff} +0 -0
  45. /package/lib/{iconfont.1739513039826.woff2 → iconfont.1739527666244.woff2} +0 -0
@@ -1246,7 +1246,7 @@ export default defineComponent({
1246
1246
  const { tableFullColumn, collectColumn } = internalData
1247
1247
  const fullColumnIdData: Record<string, VxeTableDefines.ColumnCacheItem> = internalData.fullColumnIdData = {}
1248
1248
  const fullColumnFieldData: Record<string, VxeTableDefines.ColumnCacheItem> = internalData.fullColumnFieldData = {}
1249
- const mouseOpts = computeMouseOpts.value
1249
+ // const mouseOpts = computeMouseOpts.value
1250
1250
  const columnOpts = computeColumnOpts.value
1251
1251
  const columnDragOpts = computeColumnDragOpts.value
1252
1252
  const { isCrossDrag, isSelfToChildDrag } = columnDragOpts
@@ -1333,11 +1333,11 @@ export default defineComponent({
1333
1333
  tableFullColumn.forEach(handleFunc)
1334
1334
  }
1335
1335
 
1336
- if (process.env.VUE_APP_VXE_ENV === 'development') {
1337
- if (expandColumn && mouseOpts.area) {
1338
- errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
1339
- }
1340
- }
1336
+ // if (process.env.VUE_APP_VXE_ENV === 'development') {
1337
+ // if (expandColumn && mouseOpts.area) {
1338
+ // errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
1339
+ // }
1340
+ // }
1341
1341
 
1342
1342
  if (process.env.VUE_APP_VXE_ENV === 'development') {
1343
1343
  if (htmlColumn) {
@@ -2607,7 +2607,10 @@ export default defineComponent({
2607
2607
  delete rExpandLazyLoadedMaps[rowid]
2608
2608
  }
2609
2609
  reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps
2610
- nextTick().then(() => tableMethods.recalculate()).then(() => resolve())
2610
+ nextTick()
2611
+ .then(() => $xeTable.recalculate())
2612
+ .then(() => $xeTable.updateCellAreas())
2613
+ .then(() => resolve())
2611
2614
  })
2612
2615
  } else {
2613
2616
  resolve()
@@ -5251,11 +5254,13 @@ export default defineComponent({
5251
5254
  })
5252
5255
  }
5253
5256
  if (reserve) {
5254
- validRows.forEach((row: any) => handleRowExpandReserve(row, expanded))
5257
+ validRows.forEach((row) => handleRowExpandReserve(row, expanded))
5255
5258
  }
5256
5259
  }
5257
5260
  reactData.rowExpandedMaps = rExpandedMaps
5258
- return Promise.all(lazyRests).then(() => tableMethods.recalculate())
5261
+ return Promise.all(lazyRests)
5262
+ .then(() => $xeTable.recalculate())
5263
+ .then(() => $xeTable.updateCellAreas())
5259
5264
  },
5260
5265
  /**
5261
5266
  * 判断行是否为展开状态
@@ -5289,7 +5294,7 @@ export default defineComponent({
5289
5294
  if (expList.length) {
5290
5295
  tableMethods.recalculate()
5291
5296
  }
5292
- })
5297
+ }).then(() => $xeTable.updateCellAreas())
5293
5298
  },
5294
5299
  clearRowExpandReserve () {
5295
5300
  internalData.rowExpandedReserveRowMap = {}
@@ -5712,8 +5717,8 @@ export default defineComponent({
5712
5717
  updateCellAreas () {
5713
5718
  const { mouseConfig } = props
5714
5719
  const mouseOpts = computeMouseOpts.value
5715
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
5716
- return $xeTable.handleRecalculateCellAreas()
5720
+ if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreaEvent) {
5721
+ return $xeTable.handleRecalculateCellAreaEvent()
5717
5722
  }
5718
5723
  return nextTick()
5719
5724
  },
@@ -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 {