vxe-table 4.13.39 → 4.13.40
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/README.en.md +2 -0
- package/README.ja-JP.md +2 -0
- package/README.md +3 -0
- package/README.zh-TW.md +3 -1
- package/es/grid/src/grid.js +21 -6
- package/es/{iconfont.1749800539928.ttf → iconfont.1750082858834.ttf} +0 -0
- package/es/iconfont.1750082858834.woff +0 -0
- package/es/iconfont.1750082858834.woff2 +0 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +6 -0
- package/es/locale/lang/de-DE.js +6 -0
- package/es/locale/lang/en-US.js +6 -0
- package/es/locale/lang/es-ES.js +6 -0
- package/es/locale/lang/fr-FR.js +6 -0
- package/es/locale/lang/hu-HU.js +6 -0
- package/es/locale/lang/hy-AM.js +6 -0
- package/es/locale/lang/id-ID.js +6 -0
- package/es/locale/lang/it-IT.js +6 -0
- package/es/locale/lang/ja-JP.js +6 -0
- package/es/locale/lang/ko-KR.js +6 -0
- package/es/locale/lang/ms-MY.js +6 -0
- package/es/locale/lang/nb-NO.js +6 -0
- package/es/locale/lang/pt-BR.js +6 -0
- package/es/locale/lang/ru-RU.js +6 -0
- package/es/locale/lang/th-TH.js +6 -0
- package/es/locale/lang/ug-CN.js +6 -0
- package/es/locale/lang/uk-UA.js +6 -0
- package/es/locale/lang/uz-UZ.js +6 -0
- package/es/locale/lang/vi-VN.js +6 -0
- package/es/locale/lang/zh-CHT.js +6 -0
- package/es/locale/lang/zh-CN.js +6 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +29 -4
- package/es/table/module/custom/panel.js +105 -93
- package/es/table/module/export/export-panel.js +3 -2
- package/es/table/module/export/import-panel.js +3 -2
- package/es/table/module/filter/panel.js +3 -2
- package/es/table/module/menu/panel.js +3 -2
- package/es/table/src/body.js +7 -5
- package/es/table/src/column.js +3 -2
- package/es/table/src/footer.js +3 -2
- package/es/table/src/group.js +3 -2
- package/es/table/src/header.js +3 -2
- package/es/table/src/props.js +28 -7
- package/es/table/src/table.js +64 -47
- package/es/table/style.css +22 -3
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +3 -2
- package/es/ui/index.js +3 -0
- package/es/ui/src/comp.js +2 -0
- package/es/vxe-table/style.css +22 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +20 -5
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/{iconfont.1749800539928.ttf → iconfont.1750082858834.ttf} +0 -0
- package/lib/iconfont.1750082858834.woff +0 -0
- package/lib/iconfont.1750082858834.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +146 -48
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +6 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +6 -0
- package/lib/locale/lang/de-DE.js +6 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +6 -0
- package/lib/locale/lang/en-US.js +6 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +6 -0
- package/lib/locale/lang/es-ES.js +6 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +6 -0
- package/lib/locale/lang/fr-FR.js +6 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +6 -0
- package/lib/locale/lang/hu-HU.js +6 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +6 -0
- package/lib/locale/lang/hy-AM.js +6 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +6 -0
- package/lib/locale/lang/id-ID.js +6 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +6 -0
- package/lib/locale/lang/it-IT.js +6 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +6 -0
- package/lib/locale/lang/ja-JP.js +6 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +6 -0
- package/lib/locale/lang/ko-KR.js +6 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +6 -0
- package/lib/locale/lang/ms-MY.js +6 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +6 -0
- package/lib/locale/lang/nb-NO.js +6 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +6 -0
- package/lib/locale/lang/pt-BR.js +6 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +6 -0
- package/lib/locale/lang/ru-RU.js +6 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +6 -0
- package/lib/locale/lang/th-TH.js +6 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +6 -0
- package/lib/locale/lang/ug-CN.js +6 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +6 -0
- package/lib/locale/lang/uk-UA.js +6 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +6 -0
- package/lib/locale/lang/uz-UZ.js +6 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +6 -0
- package/lib/locale/lang/vi-VN.js +6 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +6 -0
- package/lib/locale/lang/zh-CHT.js +6 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +6 -0
- package/lib/locale/lang/zh-CN.js +6 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +6 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +32 -4
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +14 -3
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +2 -1
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +2 -1
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/filter/panel.js +2 -1
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/menu/panel.js +2 -1
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/body.js +9 -9
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/column.js +2 -1
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/footer.js +2 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +2 -1
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +2 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/props.js +28 -7
- package/lib/table/src/table.js +13 -11
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +22 -3
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +2 -1
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +3 -0
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +8 -0
- package/lib/ui/src/comp.min.js +1 -0
- package/lib/vxe-table/style/style.css +22 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +29 -7
- package/packages/locale/lang/ar-EG.ts +6 -0
- package/packages/locale/lang/de-DE.ts +6 -0
- package/packages/locale/lang/en-US.ts +6 -0
- package/packages/locale/lang/es-ES.ts +6 -0
- package/packages/locale/lang/fr-FR.ts +6 -0
- package/packages/locale/lang/hu-HU.ts +6 -0
- package/packages/locale/lang/hy-AM.ts +6 -0
- package/packages/locale/lang/id-ID.ts +6 -0
- package/packages/locale/lang/it-IT.ts +6 -0
- package/packages/locale/lang/ja-JP.ts +6 -0
- package/packages/locale/lang/ko-KR.ts +6 -0
- package/packages/locale/lang/ms-MY.ts +6 -0
- package/packages/locale/lang/nb-NO.ts +6 -0
- package/packages/locale/lang/pt-BR.ts +6 -0
- package/packages/locale/lang/ru-RU.ts +6 -0
- package/packages/locale/lang/th-TH.ts +6 -0
- package/packages/locale/lang/ug-CN.ts +6 -0
- package/packages/locale/lang/uk-UA.ts +6 -0
- package/packages/locale/lang/uz-UZ.ts +6 -0
- package/packages/locale/lang/vi-VN.ts +6 -0
- package/packages/locale/lang/zh-CHT.ts +6 -0
- package/packages/locale/lang/zh-CN.ts +6 -0
- package/packages/table/module/custom/hook.ts +27 -4
- package/packages/table/module/custom/panel.ts +114 -102
- package/packages/table/module/export/export-panel.ts +3 -2
- package/packages/table/module/export/import-panel.ts +3 -2
- package/packages/table/module/filter/panel.ts +3 -2
- package/packages/table/module/menu/panel.ts +3 -2
- package/packages/table/src/body.ts +10 -8
- package/packages/table/src/cell.ts +14 -14
- package/packages/table/src/column.ts +3 -2
- package/packages/table/src/footer.ts +3 -2
- package/packages/table/src/group.ts +3 -2
- package/packages/table/src/header.ts +3 -2
- package/packages/table/src/props.ts +28 -7
- package/packages/table/src/table.ts +66 -46
- package/packages/toolbar/src/toolbar.ts +3 -2
- package/packages/ui/index.ts +11 -0
- package/packages/ui/src/comp.ts +3 -0
- package/styles/components/icon.scss +13 -1
- package/styles/components/table-module/custom.scss +9 -2
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/es/iconfont.1749800539928.woff +0 -0
- package/es/iconfont.1749800539928.woff2 +0 -0
- package/lib/iconfont.1749800539928.woff +0 -0
- package/lib/iconfont.1749800539928.woff2 +0 -0
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Erfolgreich ersetzt {0} Zellen'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Einfrierensäule',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Successfully replaced {0} cells'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: 'Group',
|
|
564
|
+
values: 'Values'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Freeze column',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Reemplazó con éxito {0} celdas'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Columna de congelación',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Cellules {0} remplacées avec succès'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Colonne de gel',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Sikeresen cserélte a {0} sejteket'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Fagyasztási oszlop',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Berhasil menggantikan {0} sel'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Kolom beku',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Sostituire correttamente le celle {0}'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Colonna di congelamento',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: '{0} sel berjaya diganti'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Lajur membekukan',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Vellykket erstattet {0} celler'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Frysekolonne',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Células substituídas com sucesso {0}'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Coluna de congelamento',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Успешно заменен {0} ячейки'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Замораживание колонки',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'جەمئىي {0} دانە ئۇچۇر ئالماشتۇرۇلدى'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'قۇر توڭلىتىش',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Успішно замінив {0} комірок'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Заморожування стовпчика',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: '{0} hujayralar muvaffaqiyatli almashtirildi'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Muzlatish ustuni',
|
|
@@ -558,6 +558,12 @@ export default {
|
|
|
558
558
|
replaceSuccess: 'Đã thay thế thành công {0} ô'
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
+
extendPivotTable: {
|
|
562
|
+
aggregation: {
|
|
563
|
+
grouping: '分组',
|
|
564
|
+
values: '值'
|
|
565
|
+
}
|
|
566
|
+
},
|
|
561
567
|
filterComplexInput: {
|
|
562
568
|
menus: {
|
|
563
569
|
fixedColumn: 'Đóng băng cột',
|
|
@@ -9,7 +9,7 @@ const tableCustomMethodKeys: (keyof TableCustomMethods)[] = ['openCustom', 'clos
|
|
|
9
9
|
VxeUI.hooks.add('tableCustomModule', {
|
|
10
10
|
setupTable ($xeTable) {
|
|
11
11
|
const { reactData, internalData } = $xeTable
|
|
12
|
-
const { computeCustomOpts } = $xeTable.getComputeMaps()
|
|
12
|
+
const { computeCustomOpts, computeRowGroupFields } = $xeTable.getComputeMaps()
|
|
13
13
|
const { refElem } = $xeTable.getRefMaps()
|
|
14
14
|
|
|
15
15
|
const $xeGrid = $xeTable.xeGrid
|
|
@@ -71,7 +71,7 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const saveCustom = () => {
|
|
74
|
-
const { customColumnList } = reactData
|
|
74
|
+
const { customColumnList, aggHandleFields, rowGroupList } = reactData
|
|
75
75
|
const customOpts = computeCustomOpts.value
|
|
76
76
|
const { allowVisible, allowSort, allowFixed, allowResizable } = customOpts
|
|
77
77
|
XEUtils.eachTree(customColumnList, (column, index, items, path, parentColumn) => {
|
|
@@ -104,7 +104,18 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
104
104
|
setTimeout(() => {
|
|
105
105
|
reactData.isDragColMove = false
|
|
106
106
|
}, 1000)
|
|
107
|
-
return $xeTable.saveCustomStore('confirm')
|
|
107
|
+
return $xeTable.saveCustomStore('confirm').then(() => {
|
|
108
|
+
if (($xeTable as any).handlePivotTableAggregateData) {
|
|
109
|
+
if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
|
|
110
|
+
// 改动聚合分组
|
|
111
|
+
if (aggHandleFields.length) {
|
|
112
|
+
$xeTable.setRowGroups(aggHandleFields)
|
|
113
|
+
} else {
|
|
114
|
+
$xeTable.clearRowGroups()
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
})
|
|
108
119
|
}
|
|
109
120
|
|
|
110
121
|
const cancelCustom = () => {
|
|
@@ -179,6 +190,7 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
179
190
|
saveCustom,
|
|
180
191
|
cancelCustom,
|
|
181
192
|
resetCustom (options) {
|
|
193
|
+
const { rowGroupList } = reactData
|
|
182
194
|
const { collectColumn } = internalData
|
|
183
195
|
const customOpts = computeCustomOpts.value
|
|
184
196
|
const { checkMethod } = customOpts
|
|
@@ -205,7 +217,18 @@ VxeUI.hooks.add('tableCustomModule', {
|
|
|
205
217
|
})
|
|
206
218
|
reactData.isCustomStatus = false
|
|
207
219
|
$xeTable.saveCustomStore('reset')
|
|
208
|
-
return $xeTable.handleCustom()
|
|
220
|
+
return $xeTable.handleCustom().then(() => {
|
|
221
|
+
if (($xeTable as any).handlePivotTableAggregateData) {
|
|
222
|
+
const rowGroupFields = computeRowGroupFields.value
|
|
223
|
+
if (rowGroupFields ? rowGroupFields.length : rowGroupList.length) {
|
|
224
|
+
if (rowGroupFields && rowGroupFields.length) {
|
|
225
|
+
$xeTable.setRowGroups(rowGroupFields)
|
|
226
|
+
} else {
|
|
227
|
+
$xeTable.clearRowGroups()
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
})
|
|
209
232
|
},
|
|
210
233
|
toggleCustomAllCheckbox () {
|
|
211
234
|
const { customStore } = reactData
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, inject, ref, Ref, VNode, PropType, nextTick, TransitionGroup, createCommentVNode } from 'vue'
|
|
2
|
+
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
2
3
|
import { VxeUI } from '../../../ui'
|
|
3
4
|
import { formatText } from '../../../ui/src/utils'
|
|
4
5
|
import { getTpImg, addClass, removeClass, hasControlKey } from '../../../ui/src/dom'
|
|
@@ -10,7 +11,7 @@ import type { VxeTableDefines, VxeTablePrivateMethods, VxeTableConstructor, VxeT
|
|
|
10
11
|
|
|
11
12
|
const { getI18n, getIcon, renderEmptyElement } = VxeUI
|
|
12
13
|
|
|
13
|
-
export default
|
|
14
|
+
export default defineVxeComponent({
|
|
14
15
|
name: 'TableCustomPanel',
|
|
15
16
|
props: {
|
|
16
17
|
customStore: {
|
|
@@ -509,8 +510,10 @@ export default defineComponent({
|
|
|
509
510
|
|
|
510
511
|
const renderSimplePanel = () => {
|
|
511
512
|
const $xeGrid = $xeTable.xeGrid
|
|
513
|
+
const tableProps = $xeTable.props
|
|
512
514
|
|
|
513
515
|
const { customStore } = props
|
|
516
|
+
const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps
|
|
514
517
|
const { isCustomStatus, customColumnList } = reactData
|
|
515
518
|
const customOpts = computeCustomOpts.value
|
|
516
519
|
const { immediate } = customOpts
|
|
@@ -665,112 +668,121 @@ export default defineComponent({
|
|
|
665
668
|
: {}
|
|
666
669
|
}, customStore.visible
|
|
667
670
|
? [
|
|
671
|
+
!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
|
|
672
|
+
? h($xeTable.getPivotTableAggregateSimplePanel(), {
|
|
673
|
+
customStore
|
|
674
|
+
})
|
|
675
|
+
: renderEmptyElement($xeTable),
|
|
668
676
|
h('div', {
|
|
669
|
-
class: 'vxe-table-custom--
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
h('
|
|
677
|
-
class: 'vxe-table-custom--
|
|
677
|
+
class: 'vxe-table-custom--handle-wrapper'
|
|
678
|
+
}, [
|
|
679
|
+
h('div', {
|
|
680
|
+
class: 'vxe-table-custom--header'
|
|
681
|
+
}, headerSlot
|
|
682
|
+
? $xeTable.callSlot(headerSlot, params)
|
|
683
|
+
: [
|
|
684
|
+
h('ul', {
|
|
685
|
+
class: 'vxe-table-custom--panel-list'
|
|
678
686
|
}, [
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
|
|
687
|
+
h('li', {
|
|
688
|
+
class: 'vxe-table-custom--option'
|
|
689
|
+
}, [
|
|
690
|
+
allowVisible
|
|
691
|
+
? h('div', {
|
|
692
|
+
class: ['vxe-table-custom--checkbox-option', {
|
|
693
|
+
'is--checked': isAllChecked,
|
|
694
|
+
'is--indeterminate': isAllIndeterminate
|
|
695
|
+
}],
|
|
696
|
+
title: getI18n('vxe.table.allTitle'),
|
|
697
|
+
onClick: allOptionEvent
|
|
698
|
+
}, [
|
|
699
|
+
h('span', {
|
|
700
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
701
|
+
}),
|
|
702
|
+
h('span', {
|
|
703
|
+
class: 'vxe-checkbox--label'
|
|
704
|
+
}, getI18n('vxe.toolbar.customAll'))
|
|
705
|
+
])
|
|
706
|
+
: h('span', {
|
|
692
707
|
class: 'vxe-checkbox--label'
|
|
693
|
-
}, getI18n('vxe.
|
|
694
|
-
|
|
695
|
-
: h('span', {
|
|
696
|
-
class: 'vxe-checkbox--label'
|
|
697
|
-
}, getI18n('vxe.table.customTitle'))
|
|
708
|
+
}, getI18n('vxe.table.customTitle'))
|
|
709
|
+
])
|
|
698
710
|
])
|
|
699
|
-
])
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
711
|
+
]),
|
|
712
|
+
h('div', {
|
|
713
|
+
ref: bodyElemRef,
|
|
714
|
+
class: 'vxe-table-custom--body'
|
|
715
|
+
}, [
|
|
716
|
+
topSlot
|
|
717
|
+
? h('div', {
|
|
718
|
+
class: 'vxe-table-custom--panel-top'
|
|
719
|
+
}, $xeTable.callSlot(topSlot, params))
|
|
720
|
+
: renderEmptyElement($xeTable),
|
|
721
|
+
defaultSlot
|
|
722
|
+
? h('div', {
|
|
723
|
+
class: 'vxe-table-custom--panel-body'
|
|
724
|
+
}, $xeTable.callSlot(defaultSlot, params))
|
|
725
|
+
: h(TransitionGroup, {
|
|
726
|
+
class: 'vxe-table-custom--panel-list',
|
|
727
|
+
name: 'vxe-table-custom--list',
|
|
728
|
+
tag: 'ul',
|
|
729
|
+
...customWrapperOns
|
|
730
|
+
}, {
|
|
731
|
+
default: () => colVNs
|
|
732
|
+
}),
|
|
733
|
+
bottomSlot
|
|
734
|
+
? h('div', {
|
|
735
|
+
class: 'vxe-table-custom--panel-bottom'
|
|
736
|
+
}, $xeTable.callSlot(bottomSlot, params))
|
|
737
|
+
: renderEmptyElement($xeTable),
|
|
738
|
+
renderDragTip()
|
|
739
|
+
]),
|
|
740
|
+
customOpts.showFooter
|
|
723
741
|
? h('div', {
|
|
724
|
-
class: 'vxe-table-custom--
|
|
725
|
-
},
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
mode: 'text',
|
|
766
|
-
status: 'primary',
|
|
767
|
-
content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
|
|
768
|
-
onClick: confirmCustomEvent
|
|
769
|
-
})
|
|
770
|
-
: createCommentVNode())
|
|
742
|
+
class: 'vxe-table-custom--footer'
|
|
743
|
+
}, footerSlot
|
|
744
|
+
? $xeTable.callSlot(footerSlot, params)
|
|
745
|
+
: [
|
|
746
|
+
h('div', {
|
|
747
|
+
class: 'vxe-table-custom--footer-buttons'
|
|
748
|
+
}, [
|
|
749
|
+
VxeUIButtonComponent
|
|
750
|
+
? h(VxeUIButtonComponent, {
|
|
751
|
+
mode: 'text',
|
|
752
|
+
content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
|
|
753
|
+
disabled: !isCustomStatus,
|
|
754
|
+
onClick: resetCustomEvent
|
|
755
|
+
})
|
|
756
|
+
: createCommentVNode(),
|
|
757
|
+
immediate
|
|
758
|
+
? (VxeUIButtonComponent
|
|
759
|
+
? h(VxeUIButtonComponent, {
|
|
760
|
+
mode: 'text',
|
|
761
|
+
content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
|
|
762
|
+
onClick: cancelCloseEvent
|
|
763
|
+
})
|
|
764
|
+
: createCommentVNode())
|
|
765
|
+
: (VxeUIButtonComponent
|
|
766
|
+
? h(VxeUIButtonComponent, {
|
|
767
|
+
mode: 'text',
|
|
768
|
+
content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
|
|
769
|
+
onClick: cancelCustomEvent
|
|
770
|
+
})
|
|
771
|
+
: createCommentVNode()),
|
|
772
|
+
immediate
|
|
773
|
+
? createCommentVNode()
|
|
774
|
+
: (VxeUIButtonComponent
|
|
775
|
+
? h(VxeUIButtonComponent, {
|
|
776
|
+
mode: 'text',
|
|
777
|
+
status: 'primary',
|
|
778
|
+
content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
|
|
779
|
+
onClick: confirmCustomEvent
|
|
780
|
+
})
|
|
781
|
+
: createCommentVNode())
|
|
782
|
+
])
|
|
771
783
|
])
|
|
772
|
-
|
|
773
|
-
|
|
784
|
+
: null
|
|
785
|
+
])
|
|
774
786
|
]
|
|
775
787
|
: [])
|
|
776
788
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, createCommentVNode, ref, Ref, computed, reactive, inject, nextTick } from 'vue'
|
|
2
|
+
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
2
3
|
import { VxeUI } from '../../../ui'
|
|
3
4
|
import XEUtils from 'xe-utils'
|
|
4
5
|
import { formatText } from '../../../ui/src/utils'
|
|
@@ -9,7 +10,7 @@ import type { VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods } fro
|
|
|
9
10
|
|
|
10
11
|
const { getI18n, getIcon } = VxeUI
|
|
11
12
|
|
|
12
|
-
export default
|
|
13
|
+
export default defineVxeComponent({
|
|
13
14
|
name: 'VxeTableExportPanel',
|
|
14
15
|
props: {
|
|
15
16
|
defaultOptions: Object as any,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, ref, Ref, computed, inject, reactive, nextTick, createCommentVNode } from 'vue'
|
|
2
|
+
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
2
3
|
import { VxeUI } from '../../../ui'
|
|
3
4
|
import XEUtils from 'xe-utils'
|
|
4
5
|
import { parseFile } from '../../../ui/src/utils'
|
|
@@ -9,7 +10,7 @@ import type { VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods } fro
|
|
|
9
10
|
|
|
10
11
|
const { getI18n, getIcon } = VxeUI
|
|
11
12
|
|
|
12
|
-
export default
|
|
13
|
+
export default defineVxeComponent({
|
|
13
14
|
name: 'VxeTableImportPanel',
|
|
14
15
|
props: {
|
|
15
16
|
defaultOptions: Object as any,
|