vxe-table 3.21.12 → 3.21.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 (44) 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/panel.js +5 -5
  6. package/es/table/src/methods.js +6 -2
  7. package/es/table/src/table.js +1 -1
  8. package/es/table/style.css +11 -7
  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 +11 -7
  13. package/es/vxe-table/style.min.css +1 -1
  14. package/lib/index.css +1 -1
  15. package/lib/index.min.css +1 -1
  16. package/lib/index.umd.js +10 -10
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/module/menu/panel.js +5 -5
  21. package/lib/table/module/menu/panel.min.js +1 -1
  22. package/lib/table/src/methods.js +2 -2
  23. package/lib/table/src/methods.min.js +1 -1
  24. package/lib/table/src/table.js +1 -1
  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/methods.ts +6 -2
  37. package/packages/table/src/table.ts +1 -1
  38. package/styles/components/table-module/menu.scss +5 -2
  39. /package/es/{iconfont.1781140842818.ttf → iconfont.1781229212834.ttf} +0 -0
  40. /package/es/{iconfont.1781140842818.woff → iconfont.1781229212834.woff} +0 -0
  41. /package/es/{iconfont.1781140842818.woff2 → iconfont.1781229212834.woff2} +0 -0
  42. /package/lib/{iconfont.1781140842818.ttf → iconfont.1781229212834.ttf} +0 -0
  43. /package/lib/{iconfont.1781140842818.woff → iconfont.1781229212834.woff} +0 -0
  44. /package/lib/{iconfont.1781140842818.woff2 → iconfont.1781229212834.woff2} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "3.21.12",
3
+ "version": "3.21.13",
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",
@@ -61,7 +61,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
61
61
  return options.every((item) => item.visible === false)
62
62
  ? renderEmptyElement($xeTable)
63
63
  : h('ul', {
64
- class: 'vxe-context-menu--option-wrapper',
64
+ class: 'vxe-table--context-menu-group-wrapper',
65
65
  key: gIndex
66
66
  }, options.map((item, index) => {
67
67
  const { children, loading } = item
@@ -74,7 +74,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
74
74
  return item.visible === false
75
75
  ? renderEmptyElement($xeTable)
76
76
  : h('li', {
77
- class: [item.className, {
77
+ class: ['vxe-table--context-menu--option', item.className, {
78
78
  'link--loading': loading,
79
79
  'link--disabled': item.disabled,
80
80
  'link--active': item === ctxMenuStore.selected
@@ -128,12 +128,12 @@ export default /* define-vxe-component start */ defineVxeComponent({
128
128
  suffixOpts.content ? h('span', `${suffixOpts.content}`) : renderEmptyElement($xeTable)
129
129
  ])
130
130
  ]),
131
- hasChildMenus && item.children
131
+ hasChildMenus && children
132
132
  ? h('ul', {
133
133
  class: ['vxe-table--context-menu-clild-wrapper', {
134
134
  'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
135
135
  }]
136
- }, item.children.map((child, cIndex) => {
136
+ }, children.map((child, cIndex) => {
137
137
  const { loading: childLoading } = child
138
138
  const childPrefixOpts = Object.assign({}, child.prefixConfig)
139
139
  const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon
@@ -143,7 +143,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
143
143
  return child.visible === false
144
144
  ? null
145
145
  : h('li', {
146
- class: [child.className, {
146
+ class: ['vxe-table--context-menu--option', child.className, {
147
147
  'link--loading': childLoading,
148
148
  'link--disabled': child.disabled,
149
149
  'link--active': child === ctxMenuStore.selectChild
@@ -453,7 +453,11 @@ function updateScrollYStatus ($xeTable: VxeTableConstructor & VxeTablePrivateMet
453
453
  const { transform } = treeOpts
454
454
  const allList = fullData || internalData.tableFullData
455
455
  // 如果gt为0,则总是启用
456
- const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length)
456
+ let scrollYLoad = !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length)
457
+ if (scrollYLoad && (treeConfig && !transform)) {
458
+ errLog('vxe.error.notSupportProp', ['[table] virtual-y-config.enabled=true', 'tree-config.transform=false', 'tree-config.transform=true'])
459
+ scrollYLoad = false
460
+ }
457
461
  reactData.scrollYLoad = scrollYLoad
458
462
  syncGanttScrollYStatus($xeTable)
459
463
  return scrollYLoad
@@ -5160,7 +5164,7 @@ const tableMethods: any = {
5160
5164
  const hasChildField = treeOpts.hasChild || treeOpts.hasChildField
5161
5165
  XEUtils.eachTree(tableFullTreeData, (row, index, items, path, parentRow, nodes) => {
5162
5166
  const rowid = handleUpdateRowId(row)
5163
- if (treeConfig && lazy) {
5167
+ if (lazy) {
5164
5168
  if (row[hasChildField] && row[childrenField] === undefined) {
5165
5169
  row[childrenField] = null
5166
5170
  }
@@ -1863,7 +1863,7 @@ export default {
1863
1863
  warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod'])
1864
1864
  }
1865
1865
  if (props.treeConfig && checkboxOpts.isShiftKey) {
1866
- errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey'])
1866
+ errLog('vxe.error.reqSupportProp', ['tree-config', 'checkbox-config.isShiftKey=false'])
1867
1867
  }
1868
1868
  if (checkboxOpts.halfField) {
1869
1869
  warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
@@ -18,13 +18,16 @@
18
18
  font-family: var(--vxe-ui-font-family);
19
19
  background-color: var(--vxe-ui-layout-background-color);
20
20
  }
21
+ .vxe-context-menu--option {
22
+ color: var(--vxe-ui-font-color);
23
+ }
21
24
  .vxe-context-menu--link {
22
25
  display: flex;
23
26
  flex-direction: row;
24
27
  width: var(--vxe-ui-table-menu-item-width);
25
28
  line-height: 26px;
26
29
  padding: 0 0.8em;
27
- color: var(--vxe-ui-font-color);
30
+ color: inherit;
28
31
  cursor: pointer;
29
32
  .vxe-context-menu--link-prefix,
30
33
  .vxe-context-menu--link-suffix {
@@ -41,7 +44,7 @@
41
44
  white-space: nowrap;
42
45
  }
43
46
  }
44
- .vxe-context-menu--option-wrapper,
47
+ .vxe-table--context-menu-group-wrapper,
45
48
  .vxe-table--context-menu-clild-wrapper {
46
49
  margin: 0;
47
50
  padding: 0;