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.
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/panel.js +5 -5
- package/es/table/src/methods.js +6 -2
- package/es/table/src/table.js +1 -1
- package/es/table/style.css +11 -7
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +11 -7
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +10 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/panel.js +5 -5
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/methods.js +2 -2
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +11 -7
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +11 -7
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/module/menu/panel.ts +5 -5
- package/packages/table/src/methods.ts +6 -2
- package/packages/table/src/table.ts +1 -1
- package/styles/components/table-module/menu.scss +5 -2
- /package/es/{iconfont.1781140842818.ttf → iconfont.1781229212834.ttf} +0 -0
- /package/es/{iconfont.1781140842818.woff → iconfont.1781229212834.woff} +0 -0
- /package/es/{iconfont.1781140842818.woff2 → iconfont.1781229212834.woff2} +0 -0
- /package/lib/{iconfont.1781140842818.ttf → iconfont.1781229212834.ttf} +0 -0
- /package/lib/{iconfont.1781140842818.woff → iconfont.1781229212834.woff} +0 -0
- /package/lib/{iconfont.1781140842818.woff2 → iconfont.1781229212834.woff2} +0 -0
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
return options.every((item) => item.visible === false)
|
|
50
50
|
? renderEmptyElement($xeTable)
|
|
51
51
|
: h('ul', {
|
|
52
|
-
class: 'vxe-context-menu
|
|
52
|
+
class: 'vxe-table--context-menu-group-wrapper',
|
|
53
53
|
key: gIndex
|
|
54
54
|
}, options.map((item, index) => {
|
|
55
55
|
const { children, loading } = item;
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
return item.visible === false
|
|
63
63
|
? renderEmptyElement($xeTable)
|
|
64
64
|
: h('li', {
|
|
65
|
-
class: [item.className, {
|
|
65
|
+
class: ['vxe-table--context-menu--option', item.className, {
|
|
66
66
|
'link--loading': loading,
|
|
67
67
|
'link--disabled': item.disabled,
|
|
68
68
|
'link--active': item === ctxMenuStore.selected
|
|
@@ -116,12 +116,12 @@ export default {
|
|
|
116
116
|
suffixOpts.content ? h('span', `${suffixOpts.content}`) : renderEmptyElement($xeTable)
|
|
117
117
|
])
|
|
118
118
|
]),
|
|
119
|
-
hasChildMenus &&
|
|
119
|
+
hasChildMenus && children
|
|
120
120
|
? h('ul', {
|
|
121
121
|
class: ['vxe-table--context-menu-clild-wrapper', {
|
|
122
122
|
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
123
123
|
}]
|
|
124
|
-
},
|
|
124
|
+
}, children.map((child, cIndex) => {
|
|
125
125
|
const { loading: childLoading } = child;
|
|
126
126
|
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
127
127
|
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
return child.visible === false
|
|
132
132
|
? null
|
|
133
133
|
: h('li', {
|
|
134
|
-
class: [child.className, {
|
|
134
|
+
class: ['vxe-table--context-menu--option', child.className, {
|
|
135
135
|
'link--loading': childLoading,
|
|
136
136
|
'link--disabled': child.disabled,
|
|
137
137
|
'link--active': child === ctxMenuStore.selectChild
|
package/es/table/src/methods.js
CHANGED
|
@@ -415,7 +415,11 @@ function updateScrollYStatus($xeTable, fullData) {
|
|
|
415
415
|
const { transform } = treeOpts;
|
|
416
416
|
const allList = fullData || internalData.tableFullData;
|
|
417
417
|
// 如果gt为0,则总是启用
|
|
418
|
-
|
|
418
|
+
let scrollYLoad = !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
|
|
419
|
+
if (scrollYLoad && (treeConfig && !transform)) {
|
|
420
|
+
errLog('vxe.error.notSupportProp', ['[table] virtual-y-config.enabled=true', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
421
|
+
scrollYLoad = false;
|
|
422
|
+
}
|
|
419
423
|
reactData.scrollYLoad = scrollYLoad;
|
|
420
424
|
syncGanttScrollYStatus($xeTable);
|
|
421
425
|
return scrollYLoad;
|
|
@@ -4937,7 +4941,7 @@ const tableMethods = {
|
|
|
4937
4941
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
4938
4942
|
XEUtils.eachTree(tableFullTreeData, (row, index, items, path, parentRow, nodes) => {
|
|
4939
4943
|
const rowid = handleUpdateRowId(row);
|
|
4940
|
-
if (
|
|
4944
|
+
if (lazy) {
|
|
4941
4945
|
if (row[hasChildField] && row[childrenField] === undefined) {
|
|
4942
4946
|
row[childrenField] = null;
|
|
4943
4947
|
}
|
package/es/table/src/table.js
CHANGED
|
@@ -1728,7 +1728,7 @@ export default {
|
|
|
1728
1728
|
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
|
1729
1729
|
}
|
|
1730
1730
|
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
1731
|
-
errLog('vxe.error.
|
|
1731
|
+
errLog('vxe.error.reqSupportProp', ['tree-config', 'checkbox-config.isShiftKey=false']);
|
|
1732
1732
|
}
|
|
1733
1733
|
if (checkboxOpts.halfField) {
|
|
1734
1734
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
package/es/table/style.css
CHANGED
|
@@ -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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|