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
|
@@ -614,7 +614,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
614
614
|
|
|
615
615
|
const { dragCol } = customPanelReactData
|
|
616
616
|
const customOpts = $xeTable.computeCustomOpts
|
|
617
|
-
const { immediate } = customOpts
|
|
617
|
+
const { showSortDragButton, allowSort, immediate } = customOpts
|
|
618
618
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
619
619
|
const { isCrossDrag, isToChildDrag } = columnDragOpts
|
|
620
620
|
const optEl = evnt.currentTarget as HTMLElement
|
|
@@ -630,9 +630,12 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
630
630
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom'
|
|
631
631
|
if (
|
|
632
632
|
!dragCol ||
|
|
633
|
+
!(showSortDragButton && allowSort) ||
|
|
633
634
|
(dragCol && dragCol.id === column.id) ||
|
|
634
635
|
(!isCrossDrag && column.level > 1) ||
|
|
635
|
-
(!immediate && column.level > 1)
|
|
636
|
+
(!immediate && column.level > 1) ||
|
|
637
|
+
(!isCrossDrag && dragCol.level > 1) ||
|
|
638
|
+
(!immediate && dragCol.level > 1)
|
|
636
639
|
) {
|
|
637
640
|
showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos)
|
|
638
641
|
return
|
|
@@ -799,7 +802,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
799
802
|
const { immediate } = customOpts
|
|
800
803
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
801
804
|
const { popupStyle } = customStore
|
|
802
|
-
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
|
|
805
|
+
const { checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
|
|
803
806
|
const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn
|
|
804
807
|
const vSize = $xeTable.computeSize
|
|
805
808
|
const { isCrossDrag } = columnDragOpts
|
|
@@ -879,29 +882,33 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
879
882
|
h('div', {
|
|
880
883
|
class: 'vxe-table-custom--name-option'
|
|
881
884
|
}, [
|
|
882
|
-
allowSort && showSortDragButton
|
|
883
|
-
?
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
885
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
886
|
+
? (
|
|
887
|
+
showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
888
|
+
? h('div', {
|
|
889
|
+
class: 'vxe-table-custom--sort-option'
|
|
890
|
+
}, [
|
|
891
|
+
h('span', {
|
|
892
|
+
class: ['vxe-table-custom--sort-btn', {
|
|
893
|
+
'is--disabled': isHidden
|
|
894
|
+
}],
|
|
895
|
+
attrs: {
|
|
896
|
+
title: getI18n('vxe.custom.setting.sortHelpTip')
|
|
897
|
+
},
|
|
898
|
+
on: isHidden
|
|
899
|
+
? {}
|
|
900
|
+
: {
|
|
901
|
+
mousedown: $xeTableCustomPanel.sortMousedownEvent,
|
|
902
|
+
mouseup: $xeTableCustomPanel.sortMouseupEvent
|
|
903
|
+
}
|
|
904
|
+
}, [
|
|
905
|
+
h('i', {
|
|
906
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
907
|
+
})
|
|
908
|
+
])
|
|
909
|
+
])
|
|
910
|
+
: renderEmptyElement($xeTable)
|
|
911
|
+
)
|
|
905
912
|
: renderEmptyElement($xeTable),
|
|
906
913
|
column.type === 'html'
|
|
907
914
|
? h('div', {
|
|
@@ -1190,9 +1197,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1190
1197
|
const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps
|
|
1191
1198
|
const { isCustomStatus, customColumnList } = tableReactData
|
|
1192
1199
|
const customOpts = $xeTable.computeCustomOpts
|
|
1193
|
-
const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts
|
|
1194
1200
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
1195
|
-
const
|
|
1201
|
+
const aggregateOpts = $xeTable.computeAggregateOpts
|
|
1202
|
+
const { placement: aggPlacement } = aggregateOpts
|
|
1203
|
+
const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts
|
|
1196
1204
|
const columnOpts = $xeTable.computeColumnOpts
|
|
1197
1205
|
const { maxFixedSize } = columnOpts
|
|
1198
1206
|
const resizableOpts = $xeTable.computeResizableOpts
|
|
@@ -1210,6 +1218,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1210
1218
|
const trVNs: VNode[] = []
|
|
1211
1219
|
const isAllChecked = customStore.isAll
|
|
1212
1220
|
const isAllIndeterminate = customStore.isIndeterminate
|
|
1221
|
+
const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom'
|
|
1213
1222
|
const params = {
|
|
1214
1223
|
$table: $xeTable,
|
|
1215
1224
|
$grid: $xeGrid,
|
|
@@ -1296,29 +1305,31 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1296
1305
|
h('div', {
|
|
1297
1306
|
class: 'vxe-table-custom-popup--name'
|
|
1298
1307
|
}, [
|
|
1299
|
-
allowSort
|
|
1300
|
-
?
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1308
|
+
(allowSort && showSortDragButton) || (allowGroup || allowValues)
|
|
1309
|
+
? (
|
|
1310
|
+
showSortBtn || ((allowGroup || allowValues) && !isColGroup)
|
|
1311
|
+
? h('div', {
|
|
1312
|
+
class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
1313
|
+
'is--disabled': isHidden
|
|
1314
|
+
}],
|
|
1315
|
+
attrs: {
|
|
1316
|
+
title: getI18n('vxe.custom.setting.sortHelpTip')
|
|
1317
|
+
},
|
|
1318
|
+
on: (isHidden
|
|
1319
|
+
? {}
|
|
1320
|
+
: {
|
|
1321
|
+
mousedown: $xeTableCustomPanel.sortMousedownEvent,
|
|
1322
|
+
mouseup: $xeTableCustomPanel.sortMouseupEvent
|
|
1323
|
+
})
|
|
1324
|
+
}, [
|
|
1325
|
+
h('i', {
|
|
1326
|
+
class: getIcon().TABLE_CUSTOM_SORT
|
|
1313
1327
|
})
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
: h('div', {
|
|
1320
|
-
class: 'vxe-table-custom-popup--column-sort-placeholder'
|
|
1321
|
-
}))
|
|
1328
|
+
])
|
|
1329
|
+
: h('div', {
|
|
1330
|
+
class: 'vxe-table-custom-popup--column-sort-placeholder'
|
|
1331
|
+
})
|
|
1332
|
+
)
|
|
1322
1333
|
: renderEmptyElement($xeTable),
|
|
1323
1334
|
column.type === 'html'
|
|
1324
1335
|
? h('div', {
|
|
@@ -1471,11 +1482,11 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1471
1482
|
default: () => {
|
|
1472
1483
|
return h('div', {
|
|
1473
1484
|
ref: 'refBodyWrapperElem',
|
|
1474
|
-
class: 'vxe-table-custom-popup--body-wrapper'
|
|
1485
|
+
class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
|
|
1475
1486
|
}, defaultSlot
|
|
1476
1487
|
? $xeTable.callSlot(defaultSlot, params, h)
|
|
1477
1488
|
: [
|
|
1478
|
-
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1489
|
+
!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1479
1490
|
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1480
1491
|
props: {
|
|
1481
1492
|
customStore
|
|
@@ -1565,7 +1576,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1565
1576
|
}, $xeTable.callSlot(bottomSlot, params, h))
|
|
1566
1577
|
: renderEmptyElement($xeTable),
|
|
1567
1578
|
$xeTableCustomPanel.renderDragTip(h)
|
|
1568
|
-
])
|
|
1579
|
+
]),
|
|
1580
|
+
isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
|
|
1581
|
+
? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
1582
|
+
props: {
|
|
1583
|
+
customStore
|
|
1584
|
+
}
|
|
1585
|
+
})
|
|
1586
|
+
: renderEmptyElement($xeTable)
|
|
1569
1587
|
])
|
|
1570
1588
|
},
|
|
1571
1589
|
footer: () => {
|
|
@@ -1839,7 +1839,7 @@ export default {
|
|
|
1839
1839
|
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
|
|
1840
1840
|
}
|
|
1841
1841
|
if (mouseOpts.area && (props.treeConfig && !treeOpts.transform)) {
|
|
1842
|
-
errLog('vxe.error.
|
|
1842
|
+
errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true'])
|
|
1843
1843
|
}
|
|
1844
1844
|
if (props.editConfig && editOpts.activeMethod) {
|
|
1845
1845
|
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod'])
|
package/packages/ui/index.ts
CHANGED
|
@@ -225,10 +225,14 @@
|
|
|
225
225
|
.vxe-table-custom-popup--body-wrapper {
|
|
226
226
|
position: relative;
|
|
227
227
|
display: flex;
|
|
228
|
-
flex-direction:
|
|
228
|
+
flex-direction: row;
|
|
229
229
|
overflow: hidden;
|
|
230
230
|
height: 100%;
|
|
231
231
|
outline: 0;
|
|
232
|
+
&.agg-layout--top,
|
|
233
|
+
&.agg-layout--bottom {
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
}
|
|
232
236
|
}
|
|
233
237
|
.vxe-table-custom-popup--handle-wrapper {
|
|
234
238
|
flex-grow: 1;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|