vxe-table 4.19.12 → 4.19.13

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/dist/all.esm.js +14 -10
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/table/module/menu/panel.js +5 -5
  9. package/es/table/src/table.js +7 -3
  10. package/es/table/style.css +11 -7
  11. package/es/table/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-table/style.css +11 -7
  15. package/es/vxe-table/style.min.css +1 -1
  16. package/lib/index.css +1 -1
  17. package/lib/index.min.css +1 -1
  18. package/lib/index.umd.js +10 -10
  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/panel.js +5 -5
  23. package/lib/table/module/menu/panel.min.js +1 -1
  24. package/lib/table/src/table.js +3 -3
  25. package/lib/table/src/table.min.js +1 -1
  26. package/lib/table/style/style.css +11 -7
  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 +11 -7
  33. package/lib/vxe-table/style/style.min.css +1 -1
  34. package/package.json +1 -1
  35. package/packages/table/module/menu/panel.ts +5 -5
  36. package/packages/table/src/table.ts +7 -3
  37. package/styles/components/table-module/menu.scss +5 -2
  38. /package/es/{iconfont.1781140839085.ttf → iconfont.1781229243647.ttf} +0 -0
  39. /package/es/{iconfont.1781140839085.woff → iconfont.1781229243647.woff} +0 -0
  40. /package/es/{iconfont.1781140839085.woff2 → iconfont.1781229243647.woff2} +0 -0
  41. /package/lib/{iconfont.1781140839085.ttf → iconfont.1781229243647.ttf} +0 -0
  42. /package/lib/{iconfont.1781140839085.woff → iconfont.1781229243647.woff} +0 -0
  43. /package/lib/{iconfont.1781140839085.woff2 → iconfont.1781229243647.woff2} +0 -0
@@ -42,7 +42,7 @@ export default defineVxeComponent({
42
42
  return options.every(item => item.visible === false)
43
43
  ? renderEmptyElement($xeTable)
44
44
  : h('ul', {
45
- class: 'vxe-context-menu--option-wrapper',
45
+ class: 'vxe-table--context-menu-group-wrapper',
46
46
  key: gIndex
47
47
  }, options.map((item, index) => {
48
48
  const { children, loading } = item;
@@ -55,7 +55,7 @@ export default defineVxeComponent({
55
55
  return item.visible === false
56
56
  ? renderEmptyElement($xeTable)
57
57
  : h('li', {
58
- class: [item.className, {
58
+ class: ['vxe-table--context-menu--option', item.className, {
59
59
  'link--loading': loading,
60
60
  'link--disabled': item.disabled,
61
61
  'link--active': item === ctxMenuStore.selected
@@ -105,12 +105,12 @@ export default defineVxeComponent({
105
105
  suffixOpts.content ? h('span', `${suffixOpts.content}`) : renderEmptyElement($xeTable)
106
106
  ])
107
107
  ]),
108
- hasChildMenus && item.children
108
+ hasChildMenus && children
109
109
  ? h('ul', {
110
110
  class: ['vxe-table--context-menu-clild-wrapper', {
111
111
  'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
112
112
  }]
113
- }, item.children.map((child, cIndex) => {
113
+ }, children.map((child, cIndex) => {
114
114
  const { loading: childLoading } = child;
115
115
  const childPrefixOpts = Object.assign({}, child.prefixConfig);
116
116
  const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
@@ -120,7 +120,7 @@ export default defineVxeComponent({
120
120
  return child.visible === false
121
121
  ? null
122
122
  : h('li', {
123
- class: [child.className, {
123
+ class: ['vxe-table--context-menu--option', child.className, {
124
124
  'link--loading': childLoading,
125
125
  'link--disabled': child.disabled,
126
126
  'link--active': child === ctxMenuStore.selectChild
@@ -4170,7 +4170,11 @@ export default defineVxeComponent({
4170
4170
  const { transform } = treeOpts;
4171
4171
  const allList = fullData || internalData.tableFullData;
4172
4172
  // 如果gt为0,则总是启用
4173
- const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
4173
+ let scrollYLoad = !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
4174
+ if (scrollYLoad && (treeConfig && !transform)) {
4175
+ errLog('vxe.error.notSupportProp', ['[table] virtual-y-config.enabled=true', 'tree-config.transform=false', 'tree-config.transform=true']);
4176
+ scrollYLoad = false;
4177
+ }
4174
4178
  reactData.scrollYLoad = scrollYLoad;
4175
4179
  syncGanttScrollYStatus();
4176
4180
  return scrollYLoad;
@@ -9430,7 +9434,7 @@ export default defineVxeComponent({
9430
9434
  const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
9431
9435
  XEUtils.eachTree(tableFullTreeData, (row, index, items, path, parentRow, nodes) => {
9432
9436
  const rowid = handleUpdateRowId(row);
9433
- if (treeConfig && lazy) {
9437
+ if (lazy) {
9434
9438
  if (row[hasChildField] && row[childrenField] === undefined) {
9435
9439
  row[childrenField] = null;
9436
9440
  }
@@ -14237,7 +14241,7 @@ export default defineVxeComponent({
14237
14241
  warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
14238
14242
  }
14239
14243
  if (props.treeConfig && checkboxOpts.isShiftKey) {
14240
- errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
14244
+ errLog('vxe.error.reqSupportProp', ['tree-config', 'checkbox-config.isShiftKey=false']);
14241
14245
  }
14242
14246
  if (checkboxOpts.halfField) {
14243
14247
  warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
@@ -1698,13 +1698,17 @@
1698
1698
  background-color: var(--vxe-ui-layout-background-color);
1699
1699
  }
1700
1700
 
1701
+ .vxe-context-menu--option {
1702
+ color: var(--vxe-ui-font-color);
1703
+ }
1704
+
1701
1705
  .vxe-context-menu--link {
1702
1706
  display: flex;
1703
1707
  flex-direction: row;
1704
1708
  width: var(--vxe-ui-table-menu-item-width);
1705
1709
  line-height: 26px;
1706
1710
  padding: 0 0.8em;
1707
- color: var(--vxe-ui-font-color);
1711
+ color: inherit;
1708
1712
  cursor: pointer;
1709
1713
  }
1710
1714
  .vxe-context-menu--link .vxe-context-menu--link-prefix,
@@ -1722,35 +1726,35 @@
1722
1726
  white-space: nowrap;
1723
1727
  }
1724
1728
 
1725
- .vxe-context-menu--option-wrapper,
1729
+ .vxe-table--context-menu-group-wrapper,
1726
1730
  .vxe-table--context-menu-clild-wrapper {
1727
1731
  margin: 0;
1728
1732
  padding: 0;
1729
1733
  list-style-type: none;
1730
1734
  border-bottom: 1px solid var(--vxe-ui-base-popup-border-color);
1731
1735
  }
1732
- .vxe-context-menu--option-wrapper li,
1736
+ .vxe-table--context-menu-group-wrapper li,
1733
1737
  .vxe-table--context-menu-clild-wrapper li {
1734
1738
  position: relative;
1735
1739
  margin: 1px 0;
1736
1740
  border: 1px solid transparent;
1737
1741
  }
1738
- .vxe-context-menu--option-wrapper li:last-child,
1742
+ .vxe-table--context-menu-group-wrapper li:last-child,
1739
1743
  .vxe-table--context-menu-clild-wrapper li:last-child {
1740
1744
  border: 0;
1741
1745
  }
1742
- .vxe-context-menu--option-wrapper li.link--active,
1746
+ .vxe-table--context-menu-group-wrapper li.link--active,
1743
1747
  .vxe-table--context-menu-clild-wrapper li.link--active {
1744
1748
  background-color: var(--vxe-ui-base-hover-background-color);
1745
1749
  border-color: var(--vxe-ui-base-hover-background-color);
1746
1750
  }
1747
- .vxe-context-menu--option-wrapper li.link--loading > .vxe-context-menu--link, .vxe-context-menu--option-wrapper li.link--disabled > .vxe-context-menu--link,
1751
+ .vxe-table--context-menu-group-wrapper li.link--loading > .vxe-context-menu--link, .vxe-table--context-menu-group-wrapper li.link--disabled > .vxe-context-menu--link,
1748
1752
  .vxe-table--context-menu-clild-wrapper li.link--loading > .vxe-context-menu--link,
1749
1753
  .vxe-table--context-menu-clild-wrapper li.link--disabled > .vxe-context-menu--link {
1750
1754
  color: var(--vxe-ui-font-disabled-color);
1751
1755
  cursor: no-drop;
1752
1756
  }
1753
- .vxe-context-menu--option-wrapper li.link--loading.link--active:hover, .vxe-context-menu--option-wrapper li.link--disabled.link--active:hover,
1757
+ .vxe-table--context-menu-group-wrapper li.link--loading.link--active:hover, .vxe-table--context-menu-group-wrapper li.link--disabled.link--active:hover,
1754
1758
  .vxe-table--context-menu-clild-wrapper li.link--loading.link--active:hover,
1755
1759
  .vxe-table--context-menu-clild-wrapper li.link--disabled.link--active:hover {
1756
1760
  background-color: inherit;