vxe-table 4.19.0 → 4.19.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 +39 -27
- 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 -19
- 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 -14
- 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 +1 -1
- 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 +66 -50
- 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.1779330847998.ttf → iconfont.1779447258442.ttf} +0 -0
- /package/es/{iconfont.1779330847998.woff → iconfont.1779447258442.woff} +0 -0
- /package/es/{iconfont.1779330847998.woff2 → iconfont.1779447258442.woff2} +0 -0
- /package/lib/{iconfont.1779330847998.ttf → iconfont.1779447258442.ttf} +0 -0
- /package/lib/{iconfont.1779330847998.woff → iconfont.1779447258442.woff} +0 -0
- /package/lib/{iconfont.1779330847998.woff2 → iconfont.1779447258442.woff2} +0 -0
|
@@ -34,7 +34,7 @@ export default defineVxeComponent({
|
|
|
34
34
|
const VxeUIRadioGroupComponent = VxeUI.getComponent('VxeRadioGroup');
|
|
35
35
|
const $xeTable = inject('$xeTable', {});
|
|
36
36
|
const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
37
|
-
const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts } = $xeTable.getComputeMaps();
|
|
37
|
+
const { computeSize, computeCustomOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
|
|
38
38
|
const refElem = ref();
|
|
39
39
|
const refBodyWrapperElem = ref();
|
|
40
40
|
const refCustomBodyElem = ref();
|
|
@@ -498,7 +498,7 @@ export default defineVxeComponent({
|
|
|
498
498
|
};
|
|
499
499
|
const sortDragoverEvent = (evnt) => {
|
|
500
500
|
const customOpts = computeCustomOpts.value;
|
|
501
|
-
const { immediate } = customOpts;
|
|
501
|
+
const { showSortDragButton, allowSort, immediate } = customOpts;
|
|
502
502
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
503
503
|
const { isCrossDrag, isToChildDrag } = columnDragOpts;
|
|
504
504
|
const optEl = evnt.currentTarget;
|
|
@@ -514,9 +514,12 @@ export default defineVxeComponent({
|
|
|
514
514
|
const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
|
|
515
515
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
516
516
|
if (!dragCol ||
|
|
517
|
+
!(showSortDragButton && allowSort) ||
|
|
517
518
|
(dragCol && dragCol.id === column.id) ||
|
|
518
519
|
(!isCrossDrag && column.level > 1) ||
|
|
519
|
-
(!immediate && column.level > 1)
|
|
520
|
+
(!immediate && column.level > 1) ||
|
|
521
|
+
(!isCrossDrag && dragCol.level > 1) ||
|
|
522
|
+
(!immediate && dragCol.level > 1)) {
|
|
520
523
|
showDropTip(evnt, optEl, false, dragPos);
|
|
521
524
|
return;
|
|
522
525
|
}
|
|
@@ -648,7 +651,7 @@ export default defineVxeComponent({
|
|
|
648
651
|
const { immediate } = customOpts;
|
|
649
652
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
650
653
|
const { popupStyle } = customStore;
|
|
651
|
-
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
654
|
+
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
652
655
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
653
656
|
const vSize = computeSize.value;
|
|
654
657
|
const { isCrossDrag } = columnDragOpts;
|
|
@@ -719,23 +722,25 @@ export default defineVxeComponent({
|
|
|
719
722
|
h('div', {
|
|
720
723
|
class: 'vxe-table-custom--name-option'
|
|
721
724
|
}, [
|
|
722
|
-
allowSort && showSortDragButton
|
|
723
|
-
?
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
725
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
726
|
+
? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
727
|
+
? h('div', {
|
|
728
|
+
class: 'vxe-table-custom--sort-option'
|
|
729
|
+
}, [
|
|
730
|
+
h('span', Object.assign({ class: ['vxe-table-custom--sort-btn', {
|
|
731
|
+
'is--disabled': isHidden
|
|
732
|
+
}], title: getI18n('vxe.custom.setting.sortHelpTip') }, (isHidden
|
|
733
|
+
? {}
|
|
734
|
+
: {
|
|
735
|
+
onMousedown: sortMousedownEvent,
|
|
736
|
+
onMouseup: sortMouseupEvent
|
|
737
|
+
})), [
|
|
738
|
+
h('i', {
|
|
739
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
740
|
+
})
|
|
741
|
+
])
|
|
737
742
|
])
|
|
738
|
-
|
|
743
|
+
: renderEmptyElement($xeTable))
|
|
739
744
|
: renderEmptyElement($xeTable),
|
|
740
745
|
column.type === 'html'
|
|
741
746
|
? h('div', {
|
|
@@ -968,9 +973,10 @@ export default defineVxeComponent({
|
|
|
968
973
|
const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
|
|
969
974
|
const { isCustomStatus, customColumnList } = tableReactData;
|
|
970
975
|
const customOpts = computeCustomOpts.value;
|
|
971
|
-
const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
|
|
972
976
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
973
|
-
const
|
|
977
|
+
const aggregateOpts = computeAggregateOpts.value;
|
|
978
|
+
const { placement: aggPlacement } = aggregateOpts;
|
|
979
|
+
const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
|
|
974
980
|
const columnOpts = computeColumnOpts.value;
|
|
975
981
|
const { maxFixedSize } = columnOpts;
|
|
976
982
|
const resizableOpts = computeResizableOpts.value;
|
|
@@ -988,6 +994,7 @@ export default defineVxeComponent({
|
|
|
988
994
|
const trVNs = [];
|
|
989
995
|
const isAllChecked = customStore.isAll;
|
|
990
996
|
const isAllIndeterminate = customStore.isIndeterminate;
|
|
997
|
+
const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
|
|
991
998
|
const params = {
|
|
992
999
|
$table: $xeTable,
|
|
993
1000
|
$grid: $xeGrid,
|
|
@@ -1064,8 +1071,8 @@ export default defineVxeComponent({
|
|
|
1064
1071
|
h('div', {
|
|
1065
1072
|
class: 'vxe-table-custom-popup--name'
|
|
1066
1073
|
}, [
|
|
1067
|
-
allowSort
|
|
1068
|
-
?
|
|
1074
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
1075
|
+
? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
1069
1076
|
? h('div', Object.assign({ class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
1070
1077
|
'is--disabled': isHidden
|
|
1071
1078
|
}], title: getI18n('vxe.custom.setting.sortHelpTip') }, (isHidden
|
|
@@ -1204,11 +1211,11 @@ export default defineVxeComponent({
|
|
|
1204
1211
|
default: () => {
|
|
1205
1212
|
return h('div', {
|
|
1206
1213
|
ref: refBodyWrapperElem,
|
|
1207
|
-
class: 'vxe-table-custom-popup--body-wrapper'
|
|
1214
|
+
class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
|
|
1208
1215
|
}, defaultSlot
|
|
1209
1216
|
? $xeTable.callSlot(defaultSlot, params)
|
|
1210
1217
|
: [
|
|
1211
|
-
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1218
|
+
!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1212
1219
|
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1213
1220
|
customStore
|
|
1214
1221
|
})
|
|
@@ -1291,7 +1298,12 @@ export default defineVxeComponent({
|
|
|
1291
1298
|
}, $xeTable.callSlot(bottomSlot, params))
|
|
1292
1299
|
: renderEmptyElement($xeTable),
|
|
1293
1300
|
renderDragTip()
|
|
1294
|
-
])
|
|
1301
|
+
]),
|
|
1302
|
+
isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1303
|
+
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1304
|
+
customStore
|
|
1305
|
+
})
|
|
1306
|
+
: renderEmptyElement($xeTable)
|
|
1295
1307
|
]);
|
|
1296
1308
|
},
|
|
1297
1309
|
footer: () => {
|
package/es/table/src/table.js
CHANGED
|
@@ -13886,7 +13886,7 @@ export default defineVxeComponent({
|
|
|
13886
13886
|
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
13887
13887
|
}
|
|
13888
13888
|
if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
|
|
13889
|
-
errLog('vxe.error.
|
|
13889
|
+
errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
13890
13890
|
}
|
|
13891
13891
|
if (props.editConfig && editOpts.activeMethod) {
|
|
13892
13892
|
warnLog('vxe.error.delProp', ['edit-config.activeMethod', '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;
|