vxe-table 3.19.49 → 3.19.52

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 (43) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/module/menu/mixin.js +3 -2
  6. package/es/table/src/cell.js +4 -3
  7. package/es/table/style.css +4 -14
  8. package/es/table/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-table/style.css +4 -14
  12. package/es/vxe-table/style.min.css +1 -1
  13. package/lib/index.css +1 -1
  14. package/lib/index.min.css +1 -1
  15. package/lib/index.umd.js +1925 -1841
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/table/module/menu/mixin.js +3 -2
  20. package/lib/table/module/menu/mixin.min.js +1 -1
  21. package/lib/table/src/cell.js +4 -4
  22. package/lib/table/src/cell.min.js +1 -1
  23. package/lib/table/style/style.css +4 -14
  24. package/lib/table/style/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-table/style/style.css +4 -14
  30. package/lib/vxe-table/style/style.min.css +1 -1
  31. package/package.json +3 -2
  32. package/packages/table/module/filter/panel.ts +1 -1
  33. package/packages/table/module/menu/mixin.ts +3 -2
  34. package/packages/table/render/index.ts +1 -1
  35. package/packages/table/src/cell.ts +4 -3
  36. package/packages/table/src/methods.ts +2 -2
  37. package/styles/components/table-module/menu.scss +4 -9
  38. /package/es/{iconfont.1770107781487.ttf → iconfont.1780227435755.ttf} +0 -0
  39. /package/es/{iconfont.1770107781487.woff → iconfont.1780227435755.woff} +0 -0
  40. /package/es/{iconfont.1770107781487.woff2 → iconfont.1780227435755.woff2} +0 -0
  41. /package/lib/{iconfont.1770107781487.ttf → iconfont.1780227435755.ttf} +0 -0
  42. /package/lib/{iconfont.1770107781487.woff → iconfont.1780227435755.woff} +0 -0
  43. /package/lib/{iconfont.1770107781487.woff2 → iconfont.1780227435755.woff2} +0 -0
@@ -309,8 +309,9 @@ export default {
309
309
  if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
310
310
  const gMenuOpts = menus.get(menu.code);
311
311
  const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, $event: evnt });
312
- if (gMenuOpts && gMenuOpts.menuMethod) {
313
- gMenuOpts.menuMethod(params, evnt);
312
+ const tmMethod = gMenuOpts ? (gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod) : null;
313
+ if (tmMethod) {
314
+ tmMethod(params, evnt);
314
315
  }
315
316
  // 在 v4 中废弃事件 context-menu-click
316
317
  if ($xeTable.$listeners['context-menu-click']) {
@@ -370,7 +370,7 @@ export const Cell = {
370
370
  const tableInternalData = $table;
371
371
  const { isRowGroupStatus } = tableReactData;
372
372
  const { editConfig } = tableProps;
373
- const { field, slots, editRender, cellRender, rowGroupNode, aggFunc, formatter } = column;
373
+ const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column;
374
374
  const isEnableEdit = editConfig && isEnableConf(editConfig);
375
375
  const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
376
376
  const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
@@ -445,8 +445,9 @@ export const Cell = {
445
445
  return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h));
446
446
  }
447
447
  const renderOpts = editRenderOpts || cellRenderOpts;
448
- // formatter > (renderTableCell | renderTableDefault)
449
- if (renderOpts && !formatter) {
448
+ // 如果是编辑表格:renderTableCell > formatter
449
+ // 如果是查看表格:renderTableDefault > formatter
450
+ if (renderOpts) {
450
451
  const compConf = renderer.get(renderOpts.name);
451
452
  if (compConf) {
452
453
  const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault);
@@ -1663,7 +1663,7 @@
1663
1663
  user-select: none;
1664
1664
  color: var(--vxe-ui-font-color);
1665
1665
  font-family: var(--vxe-ui-font-family);
1666
- background-color: var(--vxe-ui-table-menu-background-color);
1666
+ background-color: var(--vxe-ui-layout-background-color);
1667
1667
  }
1668
1668
 
1669
1669
  .vxe-context-menu--link {
@@ -1695,7 +1695,7 @@
1695
1695
  margin: 0;
1696
1696
  padding: 0;
1697
1697
  list-style-type: none;
1698
- border-bottom: 1px solid #E8EAED;
1698
+ border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
1699
1699
  }
1700
1700
  .vxe-context-menu--option-wrapper li,
1701
1701
  .vxe-table--context-menu-clild-wrapper li {
@@ -1709,12 +1709,8 @@
1709
1709
  }
1710
1710
  .vxe-context-menu--option-wrapper li.link--active,
1711
1711
  .vxe-table--context-menu-clild-wrapper li.link--active {
1712
- background-color: #C5C5C5;
1713
- border-color: #C5C5C5;
1714
- }
1715
- .vxe-context-menu--option-wrapper li.link--active > .vxe-context-menu--link,
1716
- .vxe-table--context-menu-clild-wrapper li.link--active > .vxe-context-menu--link {
1717
- color: #2B2B2B;
1712
+ background-color: var(--vxe-ui-base-hover-background-color);
1713
+ border-color: var(--vxe-ui-base-hover-background-color);
1718
1714
  }
1719
1715
  .vxe-context-menu--option-wrapper li.link--loading > .vxe-context-menu--link, .vxe-context-menu--option-wrapper li.link--disabled > .vxe-context-menu--link,
1720
1716
  .vxe-table--context-menu-clild-wrapper li.link--loading > .vxe-context-menu--link,
@@ -1722,12 +1718,6 @@
1722
1718
  color: var(--vxe-ui-font-disabled-color);
1723
1719
  cursor: no-drop;
1724
1720
  }
1725
- .vxe-context-menu--option-wrapper li.link--loading.link--active, .vxe-context-menu--option-wrapper li.link--disabled.link--active,
1726
- .vxe-table--context-menu-clild-wrapper li.link--loading.link--active,
1727
- .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active {
1728
- border-color: #C0C1C2;
1729
- background-color: #EEEEEE;
1730
- }
1731
1721
  .vxe-context-menu--option-wrapper li.link--loading.link--active:hover, .vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,
1732
1722
  .vxe-table--context-menu-clild-wrapper li.link--loading.link--active:hover,
1733
1723
  .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover {