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
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.16.2";
3141
+ const version = "4.16.3";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3641,7 +3641,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3641
3641
  const {
3642
3642
  log: log_log
3643
3643
  } = core_.VxeUI;
3644
- const log_version = `table v${"4.16.2"}`;
3644
+ const log_version = `table v${"4.16.3"}`;
3645
3645
  const warnLog = log_log.create('warn', log_version);
3646
3646
  const errLog = log_log.create('error', log_version);
3647
3647
  ;// ./packages/table/src/columnInfo.ts
@@ -7405,14 +7405,13 @@ const renderType = 'body';
7405
7405
  // hover 进入事件
7406
7406
  if (showTitle || showTooltip || showAllTip || tooltipConfig) {
7407
7407
  tdOns.onMouseenter = evnt => {
7408
- if (isVMScrollProcess()) {
7409
- return;
7410
- }
7411
- if (showTitle) {
7412
- updateCellTitle(evnt.currentTarget, column);
7413
- } else if (showTooltip || showAllTip) {
7414
- // 如果配置了显示 tooltip
7415
- $xeTable.triggerBodyTooltipEvent(evnt, cellParams);
7408
+ if (!isVMScrollProcess()) {
7409
+ if (showTitle) {
7410
+ updateCellTitle(evnt.currentTarget, column);
7411
+ } else if (showTooltip || showAllTip) {
7412
+ // 如果配置了显示 tooltip
7413
+ $xeTable.triggerBodyTooltipEvent(evnt, cellParams);
7414
+ }
7416
7415
  }
7417
7416
  $xeTable.dispatchEvent('cell-mouseenter', Object.assign({
7418
7417
  cell: evnt.currentTarget
@@ -7422,11 +7421,10 @@ const renderType = 'body';
7422
7421
  // hover 退出事件
7423
7422
  if (showTooltip || showAllTip || tooltipConfig) {
7424
7423
  tdOns.onMouseleave = evnt => {
7425
- if (isVMScrollProcess()) {
7426
- return;
7427
- }
7428
- if (showTooltip || showAllTip) {
7429
- $xeTable.handleTargetLeaveEvent(evnt);
7424
+ if (!isVMScrollProcess()) {
7425
+ if (showTooltip || showAllTip) {
7426
+ $xeTable.handleTargetLeaveEvent(evnt);
7427
+ }
7430
7428
  }
7431
7429
  $xeTable.dispatchEvent('cell-mouseleave', Object.assign({
7432
7430
  cell: evnt.currentTarget
@@ -11934,6 +11932,8 @@ menu_hook_hooks.add('tableMenuModule', {
11934
11932
  * 快捷菜单事件处理
11935
11933
  */
11936
11934
  handleGlobalContextmenuEvent(evnt) {
11935
+ const $xeGrid = $xeTable.xeGrid;
11936
+ const $xeGantt = $xeTable.xeGantt;
11937
11937
  const {
11938
11938
  mouseConfig,
11939
11939
  menuConfig
@@ -11964,6 +11964,8 @@ menu_hook_hooks.add('tableMenuModule', {
11964
11964
  const params = {
11965
11965
  type,
11966
11966
  $table: $xeTable,
11967
+ $grid: $xeGrid,
11968
+ $gantt: $xeGantt,
11967
11969
  keyboard: true,
11968
11970
  columns: visibleColumn.slice(0),
11969
11971
  $event: evnt
@@ -11997,6 +11999,8 @@ menu_hook_hooks.add('tableMenuModule', {
11997
11999
  const params = {
11998
12000
  type: layout,
11999
12001
  $table: $xeTable,
12002
+ $grid: $xeGrid,
12003
+ $gantt: $xeGantt,
12000
12004
  columns: visibleColumn.slice(0),
12001
12005
  $event: evnt
12002
12006
  };
@@ -20999,6 +21003,8 @@ function grid_createInternalData() {
20999
21003
  let itemValue = null;
21000
21004
  if (itemRender) {
21001
21005
  const {
21006
+ startField,
21007
+ endField,
21002
21008
  defaultValue
21003
21009
  } = itemRender;
21004
21010
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(defaultValue)) {
@@ -21008,6 +21014,10 @@ function grid_createInternalData() {
21008
21014
  } else if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(defaultValue)) {
21009
21015
  itemValue = defaultValue;
21010
21016
  }
21017
+ if (startField && endField) {
21018
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(fData, startField, null);
21019
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(fData, endField, null);
21020
+ }
21011
21021
  }
21012
21022
  fData[field] = itemValue;
21013
21023
  }