vxe-table 3.13.7 → 3.13.8

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/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ja-JP.js +2 -2
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/table/module/edit/mixin.js +7 -5
  7. package/es/table/src/methods.js +1 -1
  8. package/es/table/style.css +0 -17
  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 +0 -17
  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 +10 -8
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/locale/lang/ja-JP.js +2 -2
  19. package/lib/locale/lang/ja-JP.min.js +1 -1
  20. package/lib/locale/lang/ja-JP.umd.js +2 -2
  21. package/lib/style.css +1 -1
  22. package/lib/style.min.css +1 -1
  23. package/lib/table/module/edit/mixin.js +7 -5
  24. package/lib/table/module/edit/mixin.min.js +1 -1
  25. package/lib/table/src/methods.js +1 -1
  26. package/lib/table/src/methods.min.js +1 -1
  27. package/lib/table/style/style.css +0 -17
  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 +0 -17
  34. package/lib/vxe-table/style/style.min.css +1 -1
  35. package/package.json +1 -1
  36. package/packages/locale/lang/ja-JP.ts +2 -2
  37. package/packages/table/module/edit/mixin.ts +7 -5
  38. package/packages/table/src/methods.ts +1 -1
  39. package/styles/components/table.scss +0 -19
  40. /package/es/{iconfont.1740188839037.ttf → iconfont.1740359276306.ttf} +0 -0
  41. /package/es/{iconfont.1740188839037.woff → iconfont.1740359276306.woff} +0 -0
  42. /package/es/{iconfont.1740188839037.woff2 → iconfont.1740359276306.woff2} +0 -0
  43. /package/lib/{iconfont.1740188839037.ttf → iconfont.1740359276306.ttf} +0 -0
  44. /package/lib/{iconfont.1740188839037.woff → iconfont.1740359276306.woff} +0 -0
  45. /package/lib/{iconfont.1740188839037.woff2 → iconfont.1740359276306.woff2} +0 -0
@@ -320,7 +320,7 @@ function handleClearEdit ($xeTable: VxeTableConstructor & VxeTablePrivateMethods
320
320
  return $xeTable.$nextTick().then(() => $xeTable.updateCellAreas())
321
321
  }
322
322
 
323
- function handleEditActive ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, params: any, evnt: Event | null, isFocus: boolean) {
323
+ function handleEditActive ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, params: any, evnt: Event | null, isFocus: boolean, isPos: boolean) {
324
324
  const props = $xeTable
325
325
  const reactData = $xeTable as unknown as TableReactData
326
326
 
@@ -413,7 +413,7 @@ function handleEditActive ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
413
413
  column.renderHeight = cell.offsetHeight
414
414
  actived.args = params
415
415
  actived.column = column
416
- if (isFocus) {
416
+ if (isPos) {
417
417
  setTimeout(() => {
418
418
  $xeTable.handleFocus(params, evnt)
419
419
  })
@@ -444,7 +444,7 @@ function handleEditCell ($xeTable: VxeTableConstructor & VxeTablePrivateMethods,
444
444
  columnIndex: $xeTable.getColumnIndex(column),
445
445
  cell,
446
446
  $table: $xeTable
447
- }, null, false)
447
+ }, null, isPos, isPos)
448
448
  internalData._lastCallTime = Date.now()
449
449
  }
450
450
  return $xeTable.$nextTick()
@@ -717,7 +717,7 @@ export default {
717
717
  handleEdit (params: any, evnt: any) {
718
718
  const $xeTable = this
719
719
 
720
- return handleEditActive($xeTable, params, evnt, true)
720
+ return handleEditActive($xeTable, params, evnt, true, true)
721
721
  },
722
722
  /**
723
723
  * @deprecated
@@ -860,10 +860,12 @@ export default {
860
860
  const $xeTable = this
861
861
 
862
862
  let column = XEUtils.find(this.visibleColumn, column => isEnableConf(column.editRender))
863
+ let isPos = false
863
864
  if (fieldOrColumn) {
865
+ isPos = true
864
866
  column = XEUtils.isString(fieldOrColumn) ? this.getColumnByField(fieldOrColumn) : fieldOrColumn
865
867
  }
866
- return handleEditCell($xeTable, row, column, false)
868
+ return handleEditCell($xeTable, row, column, isPos)
867
869
  },
868
870
  _setActiveCell (row: any, fieldOrColumn: any) {
869
871
  if (process.env.VUE_APP_VXE_ENV === 'development') {
@@ -6067,7 +6067,7 @@ const Methods = {
6067
6067
  const rowid = getRowid(this, row)
6068
6068
  this.clearHoverRow()
6069
6069
  if ($el) {
6070
- XEUtils.arrayEach($el.querySelectorAll(`[rowid="${rowid}"]`), elem => addClass(elem, 'row--hover'))
6070
+ XEUtils.arrayEach($el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]`), elem => addClass(elem, 'row--hover'))
6071
6071
  }
6072
6072
  this.hoverRow = row
6073
6073
  },
@@ -648,15 +648,6 @@
648
648
  .vxe-table {
649
649
  .vxe-table--header-wrapper {
650
650
  color: var(--vxe-ui-table-header-font-color);
651
- &::after {
652
- content: "";
653
- position: absolute;
654
- left: 0;
655
- bottom: 0;
656
- height: 0;
657
- width: 100%;
658
- border-bottom: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
659
- }
660
651
  }
661
652
  /*排序*/
662
653
  .vxe-cell--sort {
@@ -993,11 +984,6 @@
993
984
  }
994
985
  }
995
986
  }
996
- &.header-cell--area {
997
- .vxe-table--header-wrapper {
998
- user-select: none;
999
- }
1000
- }
1001
987
  &.body-cell--area {
1002
988
  .vxe-table--body-wrapper {
1003
989
  user-select: none;
@@ -1249,11 +1235,6 @@
1249
1235
  .vxe-table--border-line {
1250
1236
  display: none;
1251
1237
  }
1252
- .vxe-table--header-wrapper {
1253
- &::after {
1254
- display: none;
1255
- }
1256
- }
1257
1238
  }
1258
1239
 
1259
1240
  &.size--medium {