vxe-table 4.13.46 → 4.13.47
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/grid/src/grid.js +1 -1
- package/es/locale/lang/ar-EG.js +9 -0
- package/es/locale/lang/de-DE.js +9 -0
- package/es/locale/lang/en-US.js +9 -0
- package/es/locale/lang/es-ES.js +9 -0
- package/es/locale/lang/fr-FR.js +9 -0
- package/es/locale/lang/hu-HU.js +9 -0
- package/es/locale/lang/hy-AM.js +9 -0
- package/es/locale/lang/id-ID.js +9 -0
- package/es/locale/lang/it-IT.js +9 -0
- package/es/locale/lang/ja-JP.js +9 -0
- package/es/locale/lang/ko-KR.js +9 -0
- package/es/locale/lang/ms-MY.js +9 -0
- package/es/locale/lang/nb-NO.js +9 -0
- package/es/locale/lang/pt-BR.js +9 -0
- package/es/locale/lang/ru-RU.js +9 -0
- package/es/locale/lang/th-TH.js +9 -0
- package/es/locale/lang/ug-CN.js +9 -0
- package/es/locale/lang/uk-UA.js +9 -0
- package/es/locale/lang/uz-UZ.js +9 -0
- package/es/locale/lang/vi-VN.js +9 -0
- package/es/locale/lang/zh-CHT.js +9 -0
- package/es/locale/lang/zh-CN.js +9 -0
- package/es/style.css +1 -1
- package/es/table/module/custom/hook.js +20 -5
- package/es/table/module/custom/panel.js +26 -12
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/table.js +44 -5
- package/es/ui/index.js +6 -5
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +73 -35
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +9 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +9 -0
- package/lib/locale/lang/de-DE.js +9 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +9 -0
- package/lib/locale/lang/en-US.js +9 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +9 -0
- package/lib/locale/lang/es-ES.js +9 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +9 -0
- package/lib/locale/lang/fr-FR.js +9 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +9 -0
- package/lib/locale/lang/hu-HU.js +9 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +9 -0
- package/lib/locale/lang/hy-AM.js +9 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +9 -0
- package/lib/locale/lang/id-ID.js +9 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +9 -0
- package/lib/locale/lang/it-IT.js +9 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +9 -0
- package/lib/locale/lang/ja-JP.js +9 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +9 -0
- package/lib/locale/lang/ko-KR.js +9 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +9 -0
- package/lib/locale/lang/ms-MY.js +9 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +9 -0
- package/lib/locale/lang/nb-NO.js +9 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +9 -0
- package/lib/locale/lang/pt-BR.js +9 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +9 -0
- package/lib/locale/lang/ru-RU.js +9 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +9 -0
- package/lib/locale/lang/th-TH.js +9 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +9 -0
- package/lib/locale/lang/ug-CN.js +9 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +9 -0
- package/lib/locale/lang/uk-UA.js +9 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +9 -0
- package/lib/locale/lang/uz-UZ.js +9 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +9 -0
- package/lib/locale/lang/vi-VN.js +9 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +9 -0
- package/lib/locale/lang/zh-CHT.js +9 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +9 -0
- package/lib/locale/lang/zh-CN.js +9 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +9 -0
- package/lib/style.css +1 -1
- package/lib/table/module/custom/hook.js +20 -5
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +25 -13
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +10 -10
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +6 -5
- 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/package.json +1 -1
- package/packages/grid/src/grid.ts +1 -1
- package/packages/locale/lang/ar-EG.ts +9 -0
- package/packages/locale/lang/de-DE.ts +9 -0
- package/packages/locale/lang/en-US.ts +9 -0
- package/packages/locale/lang/es-ES.ts +9 -0
- package/packages/locale/lang/fr-FR.ts +9 -0
- package/packages/locale/lang/hu-HU.ts +9 -0
- package/packages/locale/lang/hy-AM.ts +9 -0
- package/packages/locale/lang/id-ID.ts +9 -0
- package/packages/locale/lang/it-IT.ts +9 -0
- package/packages/locale/lang/ja-JP.ts +9 -0
- package/packages/locale/lang/ko-KR.ts +9 -0
- package/packages/locale/lang/ms-MY.ts +9 -0
- package/packages/locale/lang/nb-NO.ts +9 -0
- package/packages/locale/lang/pt-BR.ts +9 -0
- package/packages/locale/lang/ru-RU.ts +9 -0
- package/packages/locale/lang/th-TH.ts +9 -0
- package/packages/locale/lang/ug-CN.ts +9 -0
- package/packages/locale/lang/uk-UA.ts +9 -0
- package/packages/locale/lang/uz-UZ.ts +9 -0
- package/packages/locale/lang/vi-VN.ts +9 -0
- package/packages/locale/lang/zh-CHT.ts +9 -0
- package/packages/locale/lang/zh-CN.ts +9 -0
- package/packages/table/module/custom/hook.ts +18 -5
- package/packages/table/module/custom/panel.ts +25 -12
- package/packages/table/src/columnInfo.ts +1 -0
- package/packages/table/src/table.ts +45 -5
- package/packages/ui/index.ts +5 -4
- /package/es/{iconfont.1750660623154.ttf → iconfont.1750732182259.ttf} +0 -0
- /package/es/{iconfont.1750660623154.woff → iconfont.1750732182259.woff} +0 -0
- /package/es/{iconfont.1750660623154.woff2 → iconfont.1750732182259.woff2} +0 -0
- /package/lib/{iconfont.1750660623154.ttf → iconfont.1750732182259.ttf} +0 -0
- /package/lib/{iconfont.1750660623154.woff → iconfont.1750732182259.woff} +0 -0
- /package/lib/{iconfont.1750660623154.woff2 → iconfont.1750732182259.woff2} +0 -0
|
@@ -39,15 +39,17 @@ export default defineVxeComponent({
|
|
|
39
39
|
const refDragLineElem = ref() as Ref<HTMLDivElement>
|
|
40
40
|
const refDragTipElem = ref() as Ref<HTMLDivElement>
|
|
41
41
|
|
|
42
|
-
const customPanelReactData
|
|
42
|
+
const customPanelReactData = reactive<TableCustomPanelReactData>({
|
|
43
43
|
dragCol: null,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
dragGroupField: null,
|
|
45
|
+
dragAggFnCol: null,
|
|
46
46
|
dragTipText: ''
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
const customPanelInternalData: TableCustomPanelInternalData = {
|
|
50
50
|
// prevDragCol: undefined,
|
|
51
|
+
// prevDragGroupField: undefined,
|
|
52
|
+
// prevDragAggFnColid: undefined,
|
|
51
53
|
// prevDragToChild: false,
|
|
52
54
|
// prevDragPos: null
|
|
53
55
|
}
|
|
@@ -230,8 +232,8 @@ export default defineVxeComponent({
|
|
|
230
232
|
const { prevDragToChild } = customPanelInternalData
|
|
231
233
|
const bodyWrapperRect = bodyWrapperElem.getBoundingClientRect()
|
|
232
234
|
const customBodyRect = customBodyElem.getBoundingClientRect()
|
|
235
|
+
const dragLineEl = refDragLineElem.value
|
|
233
236
|
if (optEl) {
|
|
234
|
-
const dragLineEl = refDragLineElem.value
|
|
235
237
|
if (dragLineEl) {
|
|
236
238
|
if (showLine) {
|
|
237
239
|
const optRect = optEl.getBoundingClientRect()
|
|
@@ -246,6 +248,10 @@ export default defineVxeComponent({
|
|
|
246
248
|
dragLineEl.style.display = ''
|
|
247
249
|
}
|
|
248
250
|
}
|
|
251
|
+
} else {
|
|
252
|
+
if (dragLineEl) {
|
|
253
|
+
dragLineEl.style.display = 'node'
|
|
254
|
+
}
|
|
249
255
|
}
|
|
250
256
|
const dragTipEl = refDragTipElem.value
|
|
251
257
|
if (dragTipEl) {
|
|
@@ -293,6 +299,8 @@ export default defineVxeComponent({
|
|
|
293
299
|
const column = $xeTable.getColumnById(colid)
|
|
294
300
|
trEl.draggable = true
|
|
295
301
|
customPanelReactData.dragCol = column
|
|
302
|
+
customPanelReactData.dragGroupField = null
|
|
303
|
+
customPanelReactData.dragAggFnCol = null
|
|
296
304
|
updateColDropTipContent()
|
|
297
305
|
addClass(trEl, 'active--drag-origin')
|
|
298
306
|
}
|
|
@@ -305,6 +313,8 @@ export default defineVxeComponent({
|
|
|
305
313
|
hideDropTip()
|
|
306
314
|
trEl.draggable = false
|
|
307
315
|
customPanelReactData.dragCol = null
|
|
316
|
+
customPanelReactData.dragGroupField = null
|
|
317
|
+
customPanelReactData.dragAggFnCol = null
|
|
308
318
|
removeClass(trEl, 'active--drag-origin')
|
|
309
319
|
}
|
|
310
320
|
|
|
@@ -312,8 +322,8 @@ export default defineVxeComponent({
|
|
|
312
322
|
if (evnt.dataTransfer) {
|
|
313
323
|
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0)
|
|
314
324
|
}
|
|
315
|
-
customPanelInternalData.
|
|
316
|
-
customPanelInternalData.
|
|
325
|
+
customPanelInternalData.prevDragGroupField = null
|
|
326
|
+
customPanelInternalData.prevDragAggFnColid = null
|
|
317
327
|
}
|
|
318
328
|
|
|
319
329
|
const sortDragendEvent = (evnt: DragEvent) => {
|
|
@@ -326,10 +336,10 @@ export default defineVxeComponent({
|
|
|
326
336
|
const columnDragOpts = computeColumnDragOpts.value
|
|
327
337
|
const { isCrossDrag, isSelfToChildDrag, isToChildDrag, dragEndMethod } = columnDragOpts
|
|
328
338
|
const { dragCol } = customPanelReactData
|
|
329
|
-
const { prevDragCol,
|
|
339
|
+
const { prevDragCol, prevDragGroupField, prevDragAggFnColid, prevDragPos, prevDragToChild } = customPanelInternalData
|
|
330
340
|
const dragOffsetIndex = prevDragPos === 'bottom' ? 1 : 0
|
|
331
341
|
|
|
332
|
-
if (
|
|
342
|
+
if (prevDragGroupField || prevDragAggFnColid) {
|
|
333
343
|
if ($xeTable.handlePivotTableAggregatePanelDragendEvent) {
|
|
334
344
|
$xeTable.handlePivotTableAggregatePanelDragendEvent(evnt)
|
|
335
345
|
}
|
|
@@ -499,8 +509,10 @@ export default defineVxeComponent({
|
|
|
499
509
|
|
|
500
510
|
hideDropTip()
|
|
501
511
|
customPanelReactData.dragCol = null
|
|
502
|
-
|
|
503
|
-
|
|
512
|
+
customPanelReactData.dragGroupField = null
|
|
513
|
+
customPanelReactData.dragAggFnCol = null
|
|
514
|
+
customPanelInternalData.prevDragGroupField = null
|
|
515
|
+
customPanelInternalData.prevDragAggFnColid = null
|
|
504
516
|
trEl.draggable = false
|
|
505
517
|
trEl.removeAttribute('drag-pos')
|
|
506
518
|
removeClass(trEl, 'active--drag-target')
|
|
@@ -517,14 +529,15 @@ export default defineVxeComponent({
|
|
|
517
529
|
const colid = optEl.getAttribute('colid')
|
|
518
530
|
const column = $xeTable.getColumnById(colid)
|
|
519
531
|
const { dragCol } = customPanelReactData
|
|
520
|
-
customPanelInternalData.
|
|
521
|
-
customPanelInternalData.
|
|
532
|
+
customPanelInternalData.prevDragGroupField = null
|
|
533
|
+
customPanelInternalData.prevDragAggFnColid = null
|
|
522
534
|
// 是否移入有效列
|
|
523
535
|
if (column && (isCrossDrag || column.level === 1)) {
|
|
524
536
|
evnt.preventDefault()
|
|
525
537
|
const offsetY = evnt.clientY - optEl.getBoundingClientRect().y
|
|
526
538
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom'
|
|
527
539
|
if (
|
|
540
|
+
!dragCol ||
|
|
528
541
|
(dragCol && dragCol.id === column.id) ||
|
|
529
542
|
(!isCrossDrag && column.level > 1) ||
|
|
530
543
|
(!immediate && column.level > 1) ||
|
|
@@ -249,6 +249,7 @@ export default defineVxeComponent({
|
|
|
249
249
|
isRowGroupStatus: false,
|
|
250
250
|
rowGroupList: [],
|
|
251
251
|
aggHandleFields: [],
|
|
252
|
+
aggHandleAggColumns: [],
|
|
252
253
|
|
|
253
254
|
rowGroupExpandedFlag: 1,
|
|
254
255
|
rowExpandedFlag: 1,
|
|
@@ -1544,7 +1545,8 @@ export default defineVxeComponent({
|
|
|
1544
1545
|
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom)
|
|
1545
1546
|
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom)
|
|
1546
1547
|
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom)
|
|
1547
|
-
|
|
1548
|
+
const isCustomAggFunc = hangleStorageDefaultValue(storageOpts.aggFunc, isAllCustom)
|
|
1549
|
+
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort || isCustomAggFunc)) {
|
|
1548
1550
|
if (!tableId) {
|
|
1549
1551
|
errLog('vxe.error.reqProp', ['id'])
|
|
1550
1552
|
return
|
|
@@ -3148,6 +3150,17 @@ export default defineVxeComponent({
|
|
|
3148
3150
|
})
|
|
3149
3151
|
}
|
|
3150
3152
|
|
|
3153
|
+
const handleUpdateAggValues = () => {
|
|
3154
|
+
const { visibleColumn } = internalData
|
|
3155
|
+
const aggCols: VxeTableDefines.ColumnInfo[] = []
|
|
3156
|
+
visibleColumn.forEach(column => {
|
|
3157
|
+
if (column.aggFunc) {
|
|
3158
|
+
aggCols.push(column)
|
|
3159
|
+
}
|
|
3160
|
+
})
|
|
3161
|
+
reactData.aggHandleAggColumns = aggCols
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3151
3164
|
const handleUpdateRowGroup = (groupFields?: string[]) => {
|
|
3152
3165
|
const aggFields: string[] = []
|
|
3153
3166
|
const aggConfs: { field: string }[] = []
|
|
@@ -3161,6 +3174,7 @@ export default defineVxeComponent({
|
|
|
3161
3174
|
}
|
|
3162
3175
|
reactData.rowGroupList = aggConfs
|
|
3163
3176
|
reactData.aggHandleFields = aggFields
|
|
3177
|
+
handleUpdateAggValues()
|
|
3164
3178
|
}
|
|
3165
3179
|
|
|
3166
3180
|
const handleeGroupSummary = (aggList: VxeTableDefines.AggregateRowInfo[]) => {
|
|
@@ -3645,6 +3659,7 @@ export default defineVxeComponent({
|
|
|
3645
3659
|
}
|
|
3646
3660
|
})
|
|
3647
3661
|
handleTableColumn()
|
|
3662
|
+
handleUpdateAggValues()
|
|
3648
3663
|
if (isReset) {
|
|
3649
3664
|
updateColumnOffsetLeft()
|
|
3650
3665
|
return $xeTable.updateFooter().then(() => {
|
|
@@ -6769,15 +6784,18 @@ export default defineVxeComponent({
|
|
|
6769
6784
|
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom)
|
|
6770
6785
|
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom)
|
|
6771
6786
|
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom)
|
|
6787
|
+
const isCustomAggFunc = hangleStorageDefaultValue(storageOpts.aggFunc, isAllCustom)
|
|
6772
6788
|
const resizableData: Record<string, number> = {}
|
|
6773
6789
|
const sortData: Record<string, number> = {}
|
|
6774
6790
|
const visibleData: Record<string, boolean> = {}
|
|
6775
6791
|
const fixedData: Record<string, VxeColumnPropTypes.Fixed> = {}
|
|
6792
|
+
const aggFuncData: Record<string, VxeColumnPropTypes.AggFunc> = {}
|
|
6776
6793
|
const storeData: VxeTableDefines.CustomStoreData = {
|
|
6777
6794
|
resizableData: undefined,
|
|
6778
6795
|
sortData: undefined,
|
|
6779
6796
|
visibleData: undefined,
|
|
6780
|
-
fixedData: undefined
|
|
6797
|
+
fixedData: undefined,
|
|
6798
|
+
aggFuncData: undefined
|
|
6781
6799
|
}
|
|
6782
6800
|
if (!id) {
|
|
6783
6801
|
if (storage) {
|
|
@@ -6789,6 +6807,7 @@ export default defineVxeComponent({
|
|
|
6789
6807
|
let hasSort = 0
|
|
6790
6808
|
let hasFixed = 0
|
|
6791
6809
|
let hasVisible = 0
|
|
6810
|
+
let hasAggFunc = 0
|
|
6792
6811
|
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
6793
6812
|
const colKey = column.getKey()
|
|
6794
6813
|
if (!colKey) {
|
|
@@ -6819,6 +6838,10 @@ export default defineVxeComponent({
|
|
|
6819
6838
|
visibleData[colKey] = true
|
|
6820
6839
|
}
|
|
6821
6840
|
}
|
|
6841
|
+
if (isCustomAggFunc && column.aggFunc !== column.defaultAggFunc) {
|
|
6842
|
+
hasAggFunc = 1
|
|
6843
|
+
aggFuncData[colKey] = column.aggFunc
|
|
6844
|
+
}
|
|
6822
6845
|
})
|
|
6823
6846
|
if (hasResizable) {
|
|
6824
6847
|
storeData.resizableData = resizableData
|
|
@@ -6832,6 +6855,9 @@ export default defineVxeComponent({
|
|
|
6832
6855
|
if (hasVisible) {
|
|
6833
6856
|
storeData.visibleData = visibleData
|
|
6834
6857
|
}
|
|
6858
|
+
if (hasAggFunc) {
|
|
6859
|
+
storeData.aggFuncData = aggFuncData
|
|
6860
|
+
}
|
|
6835
6861
|
return storeData
|
|
6836
6862
|
},
|
|
6837
6863
|
focus () {
|
|
@@ -8260,11 +8286,12 @@ export default defineVxeComponent({
|
|
|
8260
8286
|
const isCustomVisible = hangleStorageDefaultValue(storageOpts.visible, isAllCustom)
|
|
8261
8287
|
const isCustomFixed = hangleStorageDefaultValue(storageOpts.fixed, isAllCustom)
|
|
8262
8288
|
const isCustomSort = hangleStorageDefaultValue(storageOpts.sort, isAllCustom)
|
|
8289
|
+
const isCustomAggFunc = hangleStorageDefaultValue(storageOpts.aggFunc, isAllCustom)
|
|
8263
8290
|
if (type !== 'reset') {
|
|
8264
8291
|
// fix:修复拖动列宽,重置按钮无法点击的问题
|
|
8265
8292
|
reactData.isCustomStatus = true
|
|
8266
8293
|
}
|
|
8267
|
-
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
8294
|
+
if (storage && (customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort || isCustomAggFunc)) {
|
|
8268
8295
|
if (!tableId) {
|
|
8269
8296
|
errLog('vxe.error.reqProp', ['id'])
|
|
8270
8297
|
return nextTick()
|
|
@@ -10634,6 +10661,9 @@ export default defineVxeComponent({
|
|
|
10634
10661
|
}
|
|
10635
10662
|
}
|
|
10636
10663
|
},
|
|
10664
|
+
handleUpdateAggData () {
|
|
10665
|
+
return loadTableData(internalData.tableSynchData, true)
|
|
10666
|
+
},
|
|
10637
10667
|
updateZindex () {
|
|
10638
10668
|
if (props.zIndex) {
|
|
10639
10669
|
internalData.tZindex = props.zIndex
|
|
@@ -11651,6 +11681,16 @@ export default defineVxeComponent({
|
|
|
11651
11681
|
return
|
|
11652
11682
|
}
|
|
11653
11683
|
}
|
|
11684
|
+
if (!$xeTable.handlePivotTableAggregateData) {
|
|
11685
|
+
if (customOpts.allowGroup) {
|
|
11686
|
+
errLog('vxe.error.notProp', ['custom-config.allowGroup'])
|
|
11687
|
+
return
|
|
11688
|
+
}
|
|
11689
|
+
if (customOpts.allowValues) {
|
|
11690
|
+
errLog('vxe.error.notProp', ['custom-config.allowValues'])
|
|
11691
|
+
return
|
|
11692
|
+
}
|
|
11693
|
+
}
|
|
11654
11694
|
if (treeConfig && rowOpts.drag && !treeOpts.transform) {
|
|
11655
11695
|
errLog('vxe.error.notSupportProp', ['column-config.drag', 'tree-config.transform=false', 'tree-config.transform=true'])
|
|
11656
11696
|
}
|
|
@@ -11663,8 +11703,8 @@ export default defineVxeComponent({
|
|
|
11663
11703
|
if (aggregateOpts.countFields) {
|
|
11664
11704
|
warnLog('vxe.error.delProp', ['row-group-config.countFields', 'column.agg-func'])
|
|
11665
11705
|
}
|
|
11666
|
-
if (aggregateOpts.
|
|
11667
|
-
warnLog('vxe.error.delProp', ['row-group-config.
|
|
11706
|
+
if (aggregateOpts.aggregateMethod) {
|
|
11707
|
+
warnLog('vxe.error.delProp', ['row-group-config.aggregateMethod', 'aggregate-config.countMethod'])
|
|
11668
11708
|
}
|
|
11669
11709
|
if (props.treeConfig && treeOpts.children) {
|
|
11670
11710
|
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField'])
|
package/packages/ui/index.ts
CHANGED
|
@@ -108,6 +108,7 @@ VxeUI.setConfig({
|
|
|
108
108
|
// rowGroup: false,
|
|
109
109
|
// aggFunc: false
|
|
110
110
|
},
|
|
111
|
+
// autoAggGroupValues: false,
|
|
111
112
|
// checkMethod () {},
|
|
112
113
|
modalOptions: {
|
|
113
114
|
showMaximize: true,
|
|
@@ -321,10 +322,10 @@ VxeUI.setIcon({
|
|
|
321
322
|
TABLE_DRAG_DISABLED: iconPrefix + 'no-drop',
|
|
322
323
|
TABLE_ROW_GROUP_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
323
324
|
TABLE_ROW_GROUP_CLOSE: iconPrefix + 'arrow-right',
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
TABLE_AGGREGATE_GROUPING: iconPrefix + 'grouping',
|
|
326
|
+
TABLE_AGGREGATE_VALUES: iconPrefix + 'values',
|
|
327
|
+
TABLE_AGGREGATE_SORT: iconPrefix + 'drag-handle',
|
|
328
|
+
TABLE_AGGREGATE_DELETE: iconPrefix + 'close',
|
|
328
329
|
|
|
329
330
|
// toolbar
|
|
330
331
|
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|