vxe-table 4.11.0-beta.2 → 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 (57) 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/body.js +4 -2
  8. package/es/table/src/cell.js +3 -0
  9. package/es/table/src/footer.js +4 -2
  10. package/es/table/src/header.js +4 -2
  11. package/es/table/src/table.js +24 -13
  12. package/es/table/style.css +1 -1
  13. package/es/table/style.min.css +1 -1
  14. package/es/ui/index.js +1 -1
  15. package/es/ui/src/log.js +1 -1
  16. package/es/vxe-table/style.css +1 -1
  17. package/es/vxe-table/style.min.css +1 -1
  18. package/lib/index.css +1 -1
  19. package/lib/index.min.css +1 -1
  20. package/lib/index.umd.js +38 -27
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/table/module/edit/hook.js +1 -9
  25. package/lib/table/module/edit/hook.min.js +1 -1
  26. package/lib/table/src/body.js +4 -1
  27. package/lib/table/src/body.min.js +1 -1
  28. package/lib/table/src/cell.js +3 -0
  29. package/lib/table/src/cell.min.js +1 -1
  30. package/lib/table/src/footer.js +4 -1
  31. package/lib/table/src/footer.min.js +1 -1
  32. package/lib/table/src/header.js +4 -1
  33. package/lib/table/src/header.min.js +1 -1
  34. package/lib/table/src/table.js +20 -13
  35. package/lib/table/src/table.min.js +1 -1
  36. package/lib/table/style/style.css +1 -1
  37. package/lib/table/style/style.min.css +1 -1
  38. package/lib/ui/index.js +1 -1
  39. package/lib/ui/index.min.js +1 -1
  40. package/lib/ui/src/log.js +1 -1
  41. package/lib/ui/src/log.min.js +1 -1
  42. package/lib/vxe-table/style/style.css +1 -1
  43. package/lib/vxe-table/style/style.min.css +1 -1
  44. package/package.json +1 -1
  45. package/packages/table/module/edit/hook.ts +1 -7
  46. package/packages/table/src/body.ts +5 -2
  47. package/packages/table/src/cell.ts +3 -0
  48. package/packages/table/src/footer.ts +5 -2
  49. package/packages/table/src/header.ts +5 -2
  50. package/packages/table/src/table.ts +25 -14
  51. package/styles/components/table.scss +1 -1
  52. /package/es/{iconfont.1739506388714.ttf → iconfont.1739527666244.ttf} +0 -0
  53. /package/es/{iconfont.1739506388714.woff → iconfont.1739527666244.woff} +0 -0
  54. /package/es/{iconfont.1739506388714.woff2 → iconfont.1739527666244.woff2} +0 -0
  55. /package/lib/{iconfont.1739506388714.ttf → iconfont.1739527666244.ttf} +0 -0
  56. /package/lib/{iconfont.1739506388714.woff → iconfont.1739527666244.woff} +0 -0
  57. /package/lib/{iconfont.1739506388714.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
  },
@@ -9046,7 +9051,7 @@ export default defineComponent({
9046
9051
  updateScrollYStatus,
9047
9052
  // 更新横向 X 可视渲染上下剩余空间大小
9048
9053
  updateScrollXSpace () {
9049
- const { isGroup, scrollXLoad } = reactData
9054
+ const { isGroup, scrollXLoad, overflowX } = reactData
9050
9055
  const { visibleColumn, scrollXStore, elemStore, tableWidth } = internalData
9051
9056
  const tableHeader = refTableHeader.value
9052
9057
  const tableBody = refTableBody.value
@@ -9060,7 +9065,7 @@ export default defineComponent({
9060
9065
  const footerElem = tableFooterElem ? tableFooterElem.querySelector('.vxe-table--footer') as HTMLTableElement : null
9061
9066
  const leftSpaceWidth = visibleColumn.slice(0, scrollXStore.startIndex).reduce((previous, column) => previous + column.renderWidth, 0)
9062
9067
  let marginLeft = ''
9063
- if (scrollXLoad) {
9068
+ if (scrollXLoad && overflowX) {
9064
9069
  marginLeft = `${leftSpaceWidth}px`
9065
9070
  }
9066
9071
  if (headerElem) {
@@ -9950,6 +9955,12 @@ export default defineComponent({
9950
9955
  watch(() => props.showFooter, () => {
9951
9956
  reScrollFlag.value++
9952
9957
  })
9958
+ watch(() => reactData.overflowX, () => {
9959
+ reScrollFlag.value++
9960
+ })
9961
+ watch(() => reactData.overflowY, () => {
9962
+ reScrollFlag.value++
9963
+ })
9953
9964
  watch(reScrollFlag, () => {
9954
9965
  nextTick(() => {
9955
9966
  tableMethods.recalculate(true).then(() => tableMethods.refreshScroll())
@@ -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 {