vxe-table 3.21.0 → 3.21.1
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/locale/lang/ar-EG.js +4 -2
- package/es/locale/lang/de-DE.js +4 -2
- package/es/locale/lang/en-US.js +4 -2
- package/es/locale/lang/es-ES.js +4 -2
- package/es/locale/lang/fr-FR.js +4 -2
- package/es/locale/lang/hu-HU.js +4 -2
- package/es/locale/lang/hy-AM.js +4 -2
- package/es/locale/lang/id-ID.js +4 -2
- package/es/locale/lang/it-IT.js +4 -2
- package/es/locale/lang/ja-JP.js +4 -2
- package/es/locale/lang/ko-KR.js +4 -2
- package/es/locale/lang/ms-MY.js +4 -2
- package/es/locale/lang/nb-NO.js +4 -2
- package/es/locale/lang/pt-BR.js +4 -2
- package/es/locale/lang/ru-RU.js +4 -2
- package/es/locale/lang/th-TH.js +4 -2
- package/es/locale/lang/ug-CN.js +4 -2
- package/es/locale/lang/uk-UA.js +4 -2
- package/es/locale/lang/uz-UZ.js +4 -2
- package/es/locale/lang/vi-VN.js +4 -2
- package/es/locale/lang/zh-CHT.js +4 -2
- package/es/locale/lang/zh-CN.js +4 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +45 -31
- package/es/table/src/table.js +1 -1
- package/es/table/style.css +4 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +4 -1
- 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 +34 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -2
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +4 -2
- package/lib/locale/lang/de-DE.js +4 -2
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +4 -2
- package/lib/locale/lang/en-US.js +4 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -2
- package/lib/locale/lang/es-ES.js +4 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -2
- package/lib/locale/lang/fr-FR.js +4 -2
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +4 -2
- package/lib/locale/lang/hu-HU.js +4 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -2
- package/lib/locale/lang/hy-AM.js +4 -2
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +4 -2
- package/lib/locale/lang/id-ID.js +4 -2
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +4 -2
- package/lib/locale/lang/it-IT.js +4 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +4 -2
- package/lib/locale/lang/ja-JP.js +4 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -2
- package/lib/locale/lang/ko-KR.js +4 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -2
- package/lib/locale/lang/ms-MY.js +4 -2
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +4 -2
- package/lib/locale/lang/nb-NO.js +4 -2
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +4 -2
- package/lib/locale/lang/pt-BR.js +4 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -2
- package/lib/locale/lang/ru-RU.js +4 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -2
- package/lib/locale/lang/th-TH.js +4 -2
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +4 -2
- package/lib/locale/lang/ug-CN.js +4 -2
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +4 -2
- package/lib/locale/lang/uk-UA.js +4 -2
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -2
- package/lib/locale/lang/uz-UZ.js +4 -2
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +4 -2
- package/lib/locale/lang/vi-VN.js +4 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +4 -2
- package/lib/locale/lang/zh-CHT.js +4 -2
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +4 -2
- package/lib/locale/lang/zh-CN.js +4 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +26 -13
- package/lib/table/module/custom/panel.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 +4 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -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 +4 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +4 -2
- package/packages/locale/lang/de-DE.ts +4 -2
- package/packages/locale/lang/en-US.ts +4 -2
- package/packages/locale/lang/es-ES.ts +4 -2
- package/packages/locale/lang/fr-FR.ts +4 -2
- package/packages/locale/lang/hu-HU.ts +4 -2
- package/packages/locale/lang/hy-AM.ts +4 -2
- package/packages/locale/lang/id-ID.ts +4 -2
- package/packages/locale/lang/it-IT.ts +4 -2
- package/packages/locale/lang/ja-JP.ts +4 -2
- package/packages/locale/lang/ko-KR.ts +4 -2
- package/packages/locale/lang/ms-MY.ts +4 -2
- package/packages/locale/lang/nb-NO.ts +4 -2
- package/packages/locale/lang/pt-BR.ts +4 -2
- package/packages/locale/lang/ru-RU.ts +4 -2
- package/packages/locale/lang/th-TH.ts +4 -2
- package/packages/locale/lang/ug-CN.ts +4 -2
- package/packages/locale/lang/uk-UA.ts +4 -2
- package/packages/locale/lang/uz-UZ.ts +4 -2
- package/packages/locale/lang/vi-VN.ts +4 -2
- package/packages/locale/lang/zh-CHT.ts +4 -2
- package/packages/locale/lang/zh-CN.ts +4 -2
- package/packages/table/module/custom/panel.ts +71 -53
- package/packages/table/src/table.ts +1 -1
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/custom.scss +5 -1
- /package/es/{iconfont.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
- /package/es/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
- /package/es/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
- /package/lib/{iconfont.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
- /package/lib/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
- /package/lib/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
|
@@ -574,7 +574,7 @@ export default {
|
|
|
574
574
|
const customPanelInternalData = $xeTableCustomPanel.internalData;
|
|
575
575
|
const { dragCol } = customPanelReactData;
|
|
576
576
|
const customOpts = $xeTable.computeCustomOpts;
|
|
577
|
-
const { immediate } = customOpts;
|
|
577
|
+
const { showSortDragButton, allowSort, immediate } = customOpts;
|
|
578
578
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
579
579
|
const { isCrossDrag, isToChildDrag } = columnDragOpts;
|
|
580
580
|
const optEl = evnt.currentTarget;
|
|
@@ -589,9 +589,12 @@ export default {
|
|
|
589
589
|
const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
|
|
590
590
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
591
591
|
if (!dragCol ||
|
|
592
|
+
!(showSortDragButton && allowSort) ||
|
|
592
593
|
(dragCol && dragCol.id === column.id) ||
|
|
593
594
|
(!isCrossDrag && column.level > 1) ||
|
|
594
|
-
(!immediate && column.level > 1)
|
|
595
|
+
(!immediate && column.level > 1) ||
|
|
596
|
+
(!isCrossDrag && dragCol.level > 1) ||
|
|
597
|
+
(!immediate && dragCol.level > 1)) {
|
|
595
598
|
showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
|
|
596
599
|
return;
|
|
597
600
|
}
|
|
@@ -747,7 +750,7 @@ export default {
|
|
|
747
750
|
const { immediate } = customOpts;
|
|
748
751
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
749
752
|
const { popupStyle } = customStore;
|
|
750
|
-
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
753
|
+
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
751
754
|
const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
|
|
752
755
|
const vSize = $xeTable.computeSize;
|
|
753
756
|
const { isCrossDrag } = columnDragOpts;
|
|
@@ -826,29 +829,31 @@ export default {
|
|
|
826
829
|
h('div', {
|
|
827
830
|
class: 'vxe-table-custom--name-option'
|
|
828
831
|
}, [
|
|
829
|
-
allowSort && showSortDragButton
|
|
830
|
-
?
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
h('span', {
|
|
834
|
-
class: ['vxe-table-custom--sort-btn', {
|
|
835
|
-
'is--disabled': isHidden
|
|
836
|
-
}],
|
|
837
|
-
attrs: {
|
|
838
|
-
title: getI18n('vxe.custom.setting.sortHelpTip')
|
|
839
|
-
},
|
|
840
|
-
on: isHidden
|
|
841
|
-
? {}
|
|
842
|
-
: {
|
|
843
|
-
mousedown: $xeTableCustomPanel.sortMousedownEvent,
|
|
844
|
-
mouseup: $xeTableCustomPanel.sortMouseupEvent
|
|
845
|
-
}
|
|
832
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
833
|
+
? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
834
|
+
? h('div', {
|
|
835
|
+
class: 'vxe-table-custom--sort-option'
|
|
846
836
|
}, [
|
|
847
|
-
h('
|
|
848
|
-
class:
|
|
849
|
-
|
|
837
|
+
h('span', {
|
|
838
|
+
class: ['vxe-table-custom--sort-btn', {
|
|
839
|
+
'is--disabled': isHidden
|
|
840
|
+
}],
|
|
841
|
+
attrs: {
|
|
842
|
+
title: getI18n('vxe.custom.setting.sortHelpTip')
|
|
843
|
+
},
|
|
844
|
+
on: isHidden
|
|
845
|
+
? {}
|
|
846
|
+
: {
|
|
847
|
+
mousedown: $xeTableCustomPanel.sortMousedownEvent,
|
|
848
|
+
mouseup: $xeTableCustomPanel.sortMouseupEvent
|
|
849
|
+
}
|
|
850
|
+
}, [
|
|
851
|
+
h('i', {
|
|
852
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
853
|
+
})
|
|
854
|
+
])
|
|
850
855
|
])
|
|
851
|
-
|
|
856
|
+
: renderEmptyElement($xeTable))
|
|
852
857
|
: renderEmptyElement($xeTable),
|
|
853
858
|
column.type === 'html'
|
|
854
859
|
? h('div', {
|
|
@@ -1134,9 +1139,10 @@ export default {
|
|
|
1134
1139
|
const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
|
|
1135
1140
|
const { isCustomStatus, customColumnList } = tableReactData;
|
|
1136
1141
|
const customOpts = $xeTable.computeCustomOpts;
|
|
1137
|
-
const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
1138
1142
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
1139
|
-
const
|
|
1143
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
1144
|
+
const { placement: aggPlacement } = aggregateOpts;
|
|
1145
|
+
const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
|
|
1140
1146
|
const columnOpts = $xeTable.computeColumnOpts;
|
|
1141
1147
|
const { maxFixedSize } = columnOpts;
|
|
1142
1148
|
const resizableOpts = $xeTable.computeResizableOpts;
|
|
@@ -1154,6 +1160,7 @@ export default {
|
|
|
1154
1160
|
const trVNs = [];
|
|
1155
1161
|
const isAllChecked = customStore.isAll;
|
|
1156
1162
|
const isAllIndeterminate = customStore.isIndeterminate;
|
|
1163
|
+
const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
|
|
1157
1164
|
const params = {
|
|
1158
1165
|
$table: $xeTable,
|
|
1159
1166
|
$grid: $xeGrid,
|
|
@@ -1238,8 +1245,8 @@ export default {
|
|
|
1238
1245
|
h('div', {
|
|
1239
1246
|
class: 'vxe-table-custom-popup--name'
|
|
1240
1247
|
}, [
|
|
1241
|
-
allowSort
|
|
1242
|
-
?
|
|
1248
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
1249
|
+
? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
1243
1250
|
? h('div', {
|
|
1244
1251
|
class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
1245
1252
|
'is--disabled': isHidden
|
|
@@ -1409,11 +1416,11 @@ export default {
|
|
|
1409
1416
|
default: () => {
|
|
1410
1417
|
return h('div', {
|
|
1411
1418
|
ref: 'refBodyWrapperElem',
|
|
1412
|
-
class: 'vxe-table-custom-popup--body-wrapper'
|
|
1419
|
+
class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
|
|
1413
1420
|
}, defaultSlot
|
|
1414
1421
|
? $xeTable.callSlot(defaultSlot, params, h)
|
|
1415
1422
|
: [
|
|
1416
|
-
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1423
|
+
!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1417
1424
|
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1418
1425
|
props: {
|
|
1419
1426
|
customStore
|
|
@@ -1502,7 +1509,14 @@ export default {
|
|
|
1502
1509
|
}, $xeTable.callSlot(bottomSlot, params, h))
|
|
1503
1510
|
: renderEmptyElement($xeTable),
|
|
1504
1511
|
$xeTableCustomPanel.renderDragTip(h)
|
|
1505
|
-
])
|
|
1512
|
+
]),
|
|
1513
|
+
isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1514
|
+
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1515
|
+
props: {
|
|
1516
|
+
customStore
|
|
1517
|
+
}
|
|
1518
|
+
})
|
|
1519
|
+
: renderEmptyElement($xeTable)
|
|
1506
1520
|
]);
|
|
1507
1521
|
},
|
|
1508
1522
|
footer: () => {
|
package/es/table/src/table.js
CHANGED
|
@@ -1706,7 +1706,7 @@ export default {
|
|
|
1706
1706
|
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
1707
1707
|
}
|
|
1708
1708
|
if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
|
|
1709
|
-
errLog('vxe.error.
|
|
1709
|
+
errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
1710
1710
|
}
|
|
1711
1711
|
if (props.editConfig && editOpts.activeMethod) {
|
|
1712
1712
|
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
package/es/table/style.css
CHANGED
|
@@ -1006,11 +1006,14 @@
|
|
|
1006
1006
|
.vxe-table-custom-popup--body-wrapper {
|
|
1007
1007
|
position: relative;
|
|
1008
1008
|
display: flex;
|
|
1009
|
-
flex-direction:
|
|
1009
|
+
flex-direction: row;
|
|
1010
1010
|
overflow: hidden;
|
|
1011
1011
|
height: 100%;
|
|
1012
1012
|
outline: 0;
|
|
1013
1013
|
}
|
|
1014
|
+
.vxe-table-custom-popup--body-wrapper.agg-layout--top, .vxe-table-custom-popup--body-wrapper.agg-layout--bottom {
|
|
1015
|
+
flex-direction: column;
|
|
1016
|
+
}
|
|
1014
1017
|
|
|
1015
1018
|
.vxe-table-custom-popup--handle-wrapper {
|
|
1016
1019
|
flex-grow: 1;
|