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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.19.49",
3
+ "version": "3.19.52",
4
4
  "description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -67,7 +67,8 @@
67
67
  "vue": "~2.6.14",
68
68
  "vue-i18n": "^8.15.1",
69
69
  "vue-router": "^3.5.1",
70
- "vue-template-compiler": "2.6.14"
70
+ "vue-template-compiler": "2.6.14",
71
+ "vxe-pc-ui": "3.11.25"
71
72
  },
72
73
  "vetur": {
73
74
  "tags": "helper/vetur/tags.json",
@@ -273,7 +273,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
273
273
  const filterOpts = $xeTable.computeFilterOpts
274
274
  const hasCheckOption = $xeFilterPanel.computeHasCheckOption
275
275
  const { filterRender, filterMultiple } = column
276
- const { confirmButtonText, resetButtonText, showFooter } = filterOpts
276
+ const { confirmButtonText, resetButtonText, showFooter } = filterOpts as any
277
277
  const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
278
278
  const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate
279
279
  let showFlFoot = !!filterMultiple
@@ -312,8 +312,9 @@ export default {
312
312
  if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
313
313
  const gMenuOpts = menus.get(menu.code)
314
314
  const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, $event: evnt })
315
- if (gMenuOpts && gMenuOpts.menuMethod) {
316
- gMenuOpts.menuMethod(params, evnt)
315
+ const tmMethod = gMenuOpts ? (gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod) : null
316
+ if (tmMethod) {
317
+ tmMethod(params, evnt)
317
318
  }
318
319
  // 在 v4 中废弃事件 context-menu-click
319
320
  if ($xeTable.$listeners['context-menu-click']) {
@@ -985,7 +985,7 @@ renderer.mixin({
985
985
  const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1)
986
986
  let amountLabel = XEUtils.toFixed(XEUtils.floor(itemValue, digits), digits)
987
987
  if (!autoFill) {
988
- amountLabel = XEUtils.toNumber(amountLabel)
988
+ amountLabel = XEUtils.toNumber(amountLabel) as any
989
989
  }
990
990
  return amountLabel
991
991
  } else if (type === 'amount') {
@@ -391,7 +391,7 @@ export const Cell = {
391
391
  const tableInternalData = $table as unknown as TableInternalData
392
392
  const { isRowGroupStatus } = tableReactData
393
393
  const { editConfig } = tableProps
394
- const { field, slots, editRender, cellRender, rowGroupNode, aggFunc, formatter } = column
394
+ const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column
395
395
  const isEnableEdit = editConfig && isEnableConf(editConfig)
396
396
  const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null
397
397
  const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null
@@ -464,8 +464,9 @@ export const Cell = {
464
464
  return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h))
465
465
  }
466
466
  const renderOpts = editRenderOpts || cellRenderOpts
467
- // formatter > (renderTableCell | renderTableDefault)
468
- if (renderOpts && !formatter) {
467
+ // 如果是编辑表格:renderTableCell > formatter
468
+ // 如果是查看表格:renderTableDefault > formatter
469
+ if (renderOpts) {
469
470
  const compConf = renderer.get(renderOpts.name)
470
471
  if (compConf) {
471
472
  const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault)
@@ -4603,8 +4603,8 @@ const tableMethods: any = {
4603
4603
  })
4604
4604
  reactData.tableData = tableData
4605
4605
  internalData.visibleDataRowIdData = visibleDataRowIdMaps
4606
- if ($xeGanttView && $xeGanttView.updateViewData) {
4607
- $xeGanttView.updateViewData(force)
4606
+ if ($xeGanttView && ($xeGanttView as any).updateViewData) {
4607
+ ($xeGanttView as any).updateViewData(force)
4608
4608
  }
4609
4609
  return $xeTable.$nextTick()
4610
4610
  },
@@ -16,7 +16,7 @@
16
16
  user-select: none;
17
17
  color: var(--vxe-ui-font-color);
18
18
  font-family: var(--vxe-ui-font-family);
19
- background-color: var(--vxe-ui-table-menu-background-color);
19
+ background-color: var(--vxe-ui-layout-background-color);
20
20
  }
21
21
  .vxe-context-menu--link {
22
22
  display: flex;
@@ -46,7 +46,7 @@
46
46
  margin: 0;
47
47
  padding: 0;
48
48
  list-style-type: none;
49
- border-bottom: 1px solid #E8EAED;
49
+ border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
50
50
  li {
51
51
  position: relative;
52
52
  margin: 1px 0;
@@ -55,11 +55,8 @@
55
55
  border: 0;
56
56
  }
57
57
  &.link--active {
58
- background-color: #C5C5C5;
59
- border-color:#C5C5C5;
60
- & > .vxe-context-menu--link {
61
- color: #2B2B2B;
62
- }
58
+ background-color: var(--vxe-ui-base-hover-background-color);
59
+ border-color: var(--vxe-ui-base-hover-background-color);
63
60
  }
64
61
  &.link--loading,
65
62
  &.link--disabled {
@@ -68,8 +65,6 @@
68
65
  cursor: no-drop;
69
66
  }
70
67
  &.link--active {
71
- border-color:#C0C1C2;
72
- background-color: #EEEEEE;
73
68
  &:hover {
74
69
  background-color: inherit;
75
70
  }