vxe-table 4.16.2 → 4.16.3

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/grid/src/grid.js +5 -1
  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/menu/hook.js +4 -2
  7. package/es/table/src/body.js +12 -14
  8. package/es/table/style.css +0 -4
  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 -4
  13. package/es/vxe-table/style.min.css +1 -1
  14. package/lib/grid/src/grid.js +6 -0
  15. package/lib/grid/src/grid.min.js +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.umd.js +25 -15
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/module/menu/hook.js +6 -0
  23. package/lib/table/module/menu/hook.min.js +1 -1
  24. package/lib/table/src/body.js +11 -13
  25. package/lib/table/src/body.min.js +1 -1
  26. package/lib/table/style/style.css +0 -4
  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 +0 -4
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/grid/src/grid.ts +5 -1
  36. package/packages/table/module/menu/hook.ts +5 -2
  37. package/packages/table/src/body.ts +11 -13
  38. package/styles/components/table.scss +0 -1
  39. /package/es/{iconfont.1756452373591.ttf → iconfont.1756629730733.ttf} +0 -0
  40. /package/es/{iconfont.1756452373591.woff → iconfont.1756629730733.woff} +0 -0
  41. /package/es/{iconfont.1756452373591.woff2 → iconfont.1756629730733.woff2} +0 -0
  42. /package/lib/{iconfont.1756452373591.ttf → iconfont.1756629730733.ttf} +0 -0
  43. /package/lib/{iconfont.1756452373591.woff → iconfont.1756629730733.woff} +0 -0
  44. /package/lib/{iconfont.1756452373591.woff2 → iconfont.1756629730733.woff2} +0 -0
@@ -148,6 +148,9 @@ hooks.add('tableMenuModule', {
148
148
  * 快捷菜单事件处理
149
149
  */
150
150
  handleGlobalContextmenuEvent (evnt) {
151
+ const $xeGrid = $xeTable.xeGrid
152
+ const $xeGantt = $xeTable.xeGantt
153
+
151
154
  const { mouseConfig, menuConfig } = props
152
155
  const { editStore, ctxMenuStore } = reactData
153
156
  const { visibleColumn } = internalData
@@ -165,7 +168,7 @@ hooks.add('tableMenuModule', {
165
168
  }
166
169
  if (internalData._keyCtx) {
167
170
  const type = 'body'
168
- const params: any = { type, $table: $xeTable, keyboard: true, columns: visibleColumn.slice(0), $event: evnt }
171
+ const params: any = { type, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, keyboard: true, columns: visibleColumn.slice(0), $event: evnt }
169
172
  // 如果开启单元格区域
170
173
  if (mouseConfig && mouseOpts.area) {
171
174
  const activeArea = $xeTable.getActiveCellArea()
@@ -192,7 +195,7 @@ hooks.add('tableMenuModule', {
192
195
  // target=td|th,直接向上找 table 去匹配即可
193
196
  return target.parentNode.parentNode.parentNode.getAttribute('xid') === xID
194
197
  })
195
- const params: any = { type: layout, $table: $xeTable, columns: visibleColumn.slice(0), $event: evnt }
198
+ const params: any = { type: layout, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, columns: visibleColumn.slice(0), $event: evnt }
196
199
  if (columnTargetNode.flag) {
197
200
  const cell = columnTargetNode.targetElem
198
201
  const columnNodeRest = $xeTable.getColumnNode(cell)
@@ -194,14 +194,13 @@ export default defineVxeComponent({
194
194
  // hover 进入事件
195
195
  if (showTitle || showTooltip || showAllTip || tooltipConfig) {
196
196
  tdOns.onMouseenter = (evnt: MouseEvent) => {
197
- if (isVMScrollProcess()) {
198
- return
199
- }
200
- if (showTitle) {
201
- updateCellTitle(evnt.currentTarget, column)
202
- } else if (showTooltip || showAllTip) {
203
- // 如果配置了显示 tooltip
204
- $xeTable.triggerBodyTooltipEvent(evnt, cellParams)
197
+ if (!isVMScrollProcess()) {
198
+ if (showTitle) {
199
+ updateCellTitle(evnt.currentTarget, column)
200
+ } else if (showTooltip || showAllTip) {
201
+ // 如果配置了显示 tooltip
202
+ $xeTable.triggerBodyTooltipEvent(evnt, cellParams)
203
+ }
205
204
  }
206
205
  $xeTable.dispatchEvent('cell-mouseenter', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
207
206
  }
@@ -209,11 +208,10 @@ export default defineVxeComponent({
209
208
  // hover 退出事件
210
209
  if (showTooltip || showAllTip || tooltipConfig) {
211
210
  tdOns.onMouseleave = (evnt: MouseEvent) => {
212
- if (isVMScrollProcess()) {
213
- return
214
- }
215
- if (showTooltip || showAllTip) {
216
- $xeTable.handleTargetLeaveEvent(evnt)
211
+ if (!isVMScrollProcess()) {
212
+ if (showTooltip || showAllTip) {
213
+ $xeTable.handleTargetLeaveEvent(evnt)
214
+ }
217
215
  }
218
216
  $xeTable.dispatchEvent('cell-mouseleave', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
219
217
  }
@@ -839,7 +839,6 @@ $btnThemeList: (
839
839
  }
840
840
  .vxe-cell-title-prefix-icon,
841
841
  .vxe-cell-title-suffix-icon {
842
- cursor: help;
843
842
  @for $index from 0 to list.length($btnThemeList) {
844
843
  $item: list.nth($btnThemeList, $index + 1);
845
844
  &.theme--#{map.get($item, name)} {