vxe-table 3.21.22 → 3.21.23

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.
Files changed (172) hide show
  1. package/es/{iconfont.1782890276645.ttf → iconfont.1783046294821.ttf} +0 -0
  2. package/es/iconfont.1783046294821.woff +0 -0
  3. package/es/iconfont.1783046294821.woff2 +0 -0
  4. package/es/index.css +1 -1
  5. package/es/index.min.css +1 -1
  6. package/es/locale/lang/ar-EG.js +12 -3
  7. package/es/locale/lang/de-DE.js +12 -3
  8. package/es/locale/lang/en-US.js +16 -7
  9. package/es/locale/lang/es-ES.js +12 -3
  10. package/es/locale/lang/fr-FR.js +12 -3
  11. package/es/locale/lang/hu-HU.js +12 -3
  12. package/es/locale/lang/hy-AM.js +12 -3
  13. package/es/locale/lang/id-ID.js +12 -3
  14. package/es/locale/lang/it-IT.js +11 -2
  15. package/es/locale/lang/ja-JP.js +12 -3
  16. package/es/locale/lang/ko-KR.js +12 -3
  17. package/es/locale/lang/ms-MY.js +12 -3
  18. package/es/locale/lang/nb-NO.js +12 -3
  19. package/es/locale/lang/pt-BR.js +12 -3
  20. package/es/locale/lang/ru-RU.js +12 -3
  21. package/es/locale/lang/th-TH.js +12 -3
  22. package/es/locale/lang/ug-CN.js +12 -3
  23. package/es/locale/lang/uk-UA.js +12 -3
  24. package/es/locale/lang/uz-UZ.js +12 -3
  25. package/es/locale/lang/vi-VN.js +11 -2
  26. package/es/locale/lang/zh-CHT.js +14 -5
  27. package/es/locale/lang/zh-CN.js +14 -5
  28. package/es/style.css +1 -1
  29. package/es/style.min.css +1 -1
  30. package/es/table/module/custom/mixin.js +84 -13
  31. package/es/table/module/custom/panel.js +485 -312
  32. package/es/table/src/columnInfo.js +13 -7
  33. package/es/table/src/methods.js +100 -59
  34. package/es/table/src/util.js +31 -1
  35. package/es/table/style.css +96 -49
  36. package/es/table/style.min.css +1 -1
  37. package/es/ui/index.js +16 -4
  38. package/es/ui/src/log.js +1 -1
  39. package/es/vxe-table/style.css +96 -49
  40. package/es/vxe-table/style.min.css +1 -1
  41. package/lib/{iconfont.1782890276645.ttf → iconfont.1783046294821.ttf} +0 -0
  42. package/lib/iconfont.1783046294821.woff +0 -0
  43. package/lib/iconfont.1783046294821.woff2 +0 -0
  44. package/lib/index.css +1 -1
  45. package/lib/index.min.css +1 -1
  46. package/lib/index.umd.js +557 -194
  47. package/lib/index.umd.min.js +1 -1
  48. package/lib/locale/lang/ar-EG.js +12 -3
  49. package/lib/locale/lang/ar-EG.min.js +1 -1
  50. package/lib/locale/lang/ar-EG.umd.js +12 -3
  51. package/lib/locale/lang/de-DE.js +12 -3
  52. package/lib/locale/lang/de-DE.min.js +1 -1
  53. package/lib/locale/lang/de-DE.umd.js +12 -3
  54. package/lib/locale/lang/en-US.js +16 -7
  55. package/lib/locale/lang/en-US.min.js +1 -1
  56. package/lib/locale/lang/en-US.umd.js +16 -7
  57. package/lib/locale/lang/es-ES.js +12 -3
  58. package/lib/locale/lang/es-ES.min.js +1 -1
  59. package/lib/locale/lang/es-ES.umd.js +12 -3
  60. package/lib/locale/lang/fr-FR.js +12 -3
  61. package/lib/locale/lang/fr-FR.min.js +1 -1
  62. package/lib/locale/lang/fr-FR.umd.js +12 -3
  63. package/lib/locale/lang/hu-HU.js +12 -3
  64. package/lib/locale/lang/hu-HU.min.js +1 -1
  65. package/lib/locale/lang/hu-HU.umd.js +12 -3
  66. package/lib/locale/lang/hy-AM.js +12 -3
  67. package/lib/locale/lang/hy-AM.min.js +1 -1
  68. package/lib/locale/lang/hy-AM.umd.js +12 -3
  69. package/lib/locale/lang/id-ID.js +12 -3
  70. package/lib/locale/lang/id-ID.min.js +1 -1
  71. package/lib/locale/lang/id-ID.umd.js +12 -3
  72. package/lib/locale/lang/it-IT.js +11 -2
  73. package/lib/locale/lang/it-IT.min.js +1 -1
  74. package/lib/locale/lang/it-IT.umd.js +11 -2
  75. package/lib/locale/lang/ja-JP.js +12 -3
  76. package/lib/locale/lang/ja-JP.min.js +1 -1
  77. package/lib/locale/lang/ja-JP.umd.js +12 -3
  78. package/lib/locale/lang/ko-KR.js +12 -3
  79. package/lib/locale/lang/ko-KR.min.js +1 -1
  80. package/lib/locale/lang/ko-KR.umd.js +12 -3
  81. package/lib/locale/lang/ms-MY.js +12 -3
  82. package/lib/locale/lang/ms-MY.min.js +1 -1
  83. package/lib/locale/lang/ms-MY.umd.js +12 -3
  84. package/lib/locale/lang/nb-NO.js +12 -3
  85. package/lib/locale/lang/nb-NO.min.js +1 -1
  86. package/lib/locale/lang/nb-NO.umd.js +12 -3
  87. package/lib/locale/lang/pt-BR.js +12 -3
  88. package/lib/locale/lang/pt-BR.min.js +1 -1
  89. package/lib/locale/lang/pt-BR.umd.js +12 -3
  90. package/lib/locale/lang/ru-RU.js +12 -3
  91. package/lib/locale/lang/ru-RU.min.js +1 -1
  92. package/lib/locale/lang/ru-RU.umd.js +12 -3
  93. package/lib/locale/lang/th-TH.js +12 -3
  94. package/lib/locale/lang/th-TH.min.js +1 -1
  95. package/lib/locale/lang/th-TH.umd.js +12 -3
  96. package/lib/locale/lang/ug-CN.js +12 -3
  97. package/lib/locale/lang/ug-CN.min.js +1 -1
  98. package/lib/locale/lang/ug-CN.umd.js +12 -3
  99. package/lib/locale/lang/uk-UA.js +12 -3
  100. package/lib/locale/lang/uk-UA.min.js +1 -1
  101. package/lib/locale/lang/uk-UA.umd.js +12 -3
  102. package/lib/locale/lang/uz-UZ.js +12 -3
  103. package/lib/locale/lang/uz-UZ.min.js +1 -1
  104. package/lib/locale/lang/uz-UZ.umd.js +12 -3
  105. package/lib/locale/lang/vi-VN.js +11 -2
  106. package/lib/locale/lang/vi-VN.min.js +1 -1
  107. package/lib/locale/lang/vi-VN.umd.js +11 -2
  108. package/lib/locale/lang/zh-CHT.js +14 -5
  109. package/lib/locale/lang/zh-CHT.min.js +1 -1
  110. package/lib/locale/lang/zh-CHT.umd.js +14 -5
  111. package/lib/locale/lang/zh-CN.js +14 -5
  112. package/lib/locale/lang/zh-CN.min.js +1 -1
  113. package/lib/locale/lang/zh-CN.umd.js +14 -5
  114. package/lib/style.css +1 -1
  115. package/lib/style.min.css +1 -1
  116. package/lib/table/module/custom/mixin.js +91 -11
  117. package/lib/table/module/custom/mixin.min.js +1 -1
  118. package/lib/table/module/custom/panel.js +376 -158
  119. package/lib/table/module/custom/panel.min.js +1 -1
  120. package/lib/table/src/columnInfo.js +16 -6
  121. package/lib/table/src/columnInfo.min.js +1 -1
  122. package/lib/table/src/methods.js +9 -8
  123. package/lib/table/src/methods.min.js +1 -1
  124. package/lib/table/src/util.js +35 -1
  125. package/lib/table/src/util.min.js +1 -1
  126. package/lib/table/style/style.css +96 -49
  127. package/lib/table/style/style.min.css +1 -1
  128. package/lib/ui/index.js +16 -4
  129. package/lib/ui/index.min.js +1 -1
  130. package/lib/ui/src/log.js +1 -1
  131. package/lib/ui/src/log.min.js +1 -1
  132. package/lib/vxe-table/style/style.css +96 -49
  133. package/lib/vxe-table/style/style.min.css +1 -1
  134. package/package.json +2 -2
  135. package/packages/locale/lang/ar-EG.ts +12 -3
  136. package/packages/locale/lang/de-DE.ts +12 -3
  137. package/packages/locale/lang/en-US.ts +16 -7
  138. package/packages/locale/lang/es-ES.ts +12 -3
  139. package/packages/locale/lang/fr-FR.ts +12 -3
  140. package/packages/locale/lang/hu-HU.ts +12 -3
  141. package/packages/locale/lang/hy-AM.ts +12 -3
  142. package/packages/locale/lang/id-ID.ts +12 -3
  143. package/packages/locale/lang/it-IT.ts +11 -2
  144. package/packages/locale/lang/ja-JP.ts +12 -3
  145. package/packages/locale/lang/ko-KR.ts +12 -3
  146. package/packages/locale/lang/ms-MY.ts +12 -3
  147. package/packages/locale/lang/nb-NO.ts +12 -3
  148. package/packages/locale/lang/pt-BR.ts +12 -3
  149. package/packages/locale/lang/ru-RU.ts +12 -3
  150. package/packages/locale/lang/th-TH.ts +12 -3
  151. package/packages/locale/lang/ug-CN.ts +12 -3
  152. package/packages/locale/lang/uk-UA.ts +12 -3
  153. package/packages/locale/lang/uz-UZ.ts +12 -3
  154. package/packages/locale/lang/vi-VN.ts +11 -2
  155. package/packages/locale/lang/zh-CHT.ts +14 -5
  156. package/packages/locale/lang/zh-CN.ts +14 -5
  157. package/packages/table/module/custom/mixin.ts +85 -14
  158. package/packages/table/module/custom/panel.ts +538 -307
  159. package/packages/table/src/columnInfo.ts +13 -7
  160. package/packages/table/src/methods.ts +116 -60
  161. package/packages/table/src/util.ts +34 -1
  162. package/packages/ui/index.ts +15 -3
  163. package/styles/components/icon.scss +29 -2
  164. package/styles/components/table-module/custom.scss +88 -67
  165. package/styles/icon/iconfont.ttf +0 -0
  166. package/styles/icon/iconfont.woff +0 -0
  167. package/styles/icon/iconfont.woff2 +0 -0
  168. package/styles/theme/base.scss +11 -0
  169. package/es/iconfont.1782890276645.woff +0 -0
  170. package/es/iconfont.1782890276645.woff2 +0 -0
  171. package/lib/iconfont.1782890276645.woff +0 -0
  172. package/lib/iconfont.1782890276645.woff2 +0 -0
@@ -310,6 +310,23 @@ export default {
310
310
  $xeTable.dispatchEvent('custom-fixed-change', { column, fixed: targetFixed }, evnt);
311
311
  }
312
312
  },
313
+ changeAlignOption(column, targetAlign, colProperty, renderProperty, eName, evnt) {
314
+ const $xeTableCustomPanel = this;
315
+ const $xeTable = $xeTableCustomPanel.$xeTable;
316
+ const tableReactData = $xeTable;
317
+ const customOpts = $xeTable.computeCustomOpts;
318
+ if (customOpts.immediate) {
319
+ column[colProperty] = targetAlign;
320
+ column[renderProperty] = targetAlign;
321
+ tableReactData.isCustomStatus = true;
322
+ $xeTable.handleCustom();
323
+ $xeTable.saveCustomStore(`update:${colProperty}`);
324
+ }
325
+ else {
326
+ column[renderProperty] = targetAlign;
327
+ }
328
+ $xeTable.dispatchEvent(eName, { column, [colProperty]: targetAlign }, evnt);
329
+ },
313
330
  allOptionEvent(evnt) {
314
331
  const $xeTableCustomPanel = this;
315
332
  const $xeTable = $xeTableCustomPanel.$xeTable;
@@ -764,7 +781,7 @@ export default {
764
781
  const { isCustomStatus, customColumnList, isCustomDragStatus } = tableReactData;
765
782
  const customOpts = $xeTable.computeCustomOpts;
766
783
  const columnDragOpts = $xeTable.computeColumnDragOpts;
767
- const { popupStyle } = customStore;
784
+ const { defPopupStyle } = customStore;
768
785
  const { immediate, checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
769
786
  const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
770
787
  const vSize = $xeTable.computeSize;
@@ -957,36 +974,38 @@ export default {
957
974
  !parentItem && allowFixed
958
975
  ? h('div', {
959
976
  class: 'vxe-table-custom--fixed-option'
960
- }, [
961
- h(VxeUIButtonComponent, {
962
- props: {
963
- mode: 'text',
964
- icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
965
- status: column.renderFixed === 'left' ? 'primary' : '',
966
- disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
967
- title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
968
- },
969
- on: {
970
- click: ({ $event }) => {
971
- $xeTableCustomPanel.changeFixedOption(column, 'left', $event);
977
+ }, VxeUIButtonComponent
978
+ ? [
979
+ h(VxeUIButtonComponent, {
980
+ props: {
981
+ mode: 'text',
982
+ icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
983
+ status: column.renderFixed === 'left' ? 'primary' : '',
984
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
985
+ title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
986
+ },
987
+ on: {
988
+ click: ({ $event }) => {
989
+ $xeTableCustomPanel.changeFixedOption(column, 'left', $event);
990
+ }
972
991
  }
973
- }
974
- }),
975
- h(VxeUIButtonComponent, {
976
- props: {
977
- mode: 'text',
978
- icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
979
- status: column.renderFixed === 'right' ? 'primary' : '',
980
- disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
981
- title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
982
- },
983
- on: {
984
- click: ({ $event }) => {
985
- $xeTableCustomPanel.changeFixedOption(column, 'right', $event);
992
+ }),
993
+ h(VxeUIButtonComponent, {
994
+ props: {
995
+ mode: 'text',
996
+ icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
997
+ status: column.renderFixed === 'right' ? 'primary' : '',
998
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
999
+ title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
1000
+ },
1001
+ on: {
1002
+ click: ({ $event }) => {
1003
+ $xeTableCustomPanel.changeFixedOption(column, 'right', $event);
1004
+ }
986
1005
  }
987
- }
988
- })
989
- ])
1006
+ })
1007
+ ]
1008
+ : [])
990
1009
  : renderEmptyElement($xeTable)
991
1010
  ]));
992
1011
  }
@@ -998,7 +1017,7 @@ export default {
998
1017
  [`size--${vSize}`]: vSize,
999
1018
  'is--active': customStore.visible
1000
1019
  }],
1001
- style: popupStyle
1020
+ style: defPopupStyle
1002
1021
  }, customStore.visible
1003
1022
  ? [
1004
1023
  h('div', {
@@ -1138,53 +1157,25 @@ export default {
1138
1157
  ]
1139
1158
  : []);
1140
1159
  },
1141
- renderPopupPanel(h) {
1142
- const VxeUIModalComponent = VxeUI.getComponent('VxeModal');
1143
- const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer');
1160
+ renderPopupBodys(h) {
1144
1161
  const VxeUIButtonComponent = VxeUI.getComponent('VxeButton');
1145
1162
  const VxeUINumberInputComponent = VxeUI.getComponent('VxeNumberInput');
1163
+ const VxeUIRadioGroupComponent = VxeUI.getComponent('VxeRadioGroup');
1146
1164
  const $xeTableCustomPanel = this;
1147
- const props = $xeTableCustomPanel;
1148
1165
  const $xeTable = $xeTableCustomPanel.$xeTable;
1149
1166
  const tableProps = $xeTable;
1150
1167
  const tableReactData = $xeTable;
1151
- const $xeGrid = $xeTable.$xeGrid;
1152
- const $xeGantt = $xeTable.$xeGantt;
1153
- const { customStore } = props;
1154
- const { treeConfig, rowGroupConfig, aggregateConfig, resizable: allResizable } = tableProps;
1155
- const { isCustomStatus, customColumnList } = tableReactData;
1168
+ const { resizable: allResizable } = tableProps;
1169
+ const { customColumnList } = tableReactData;
1156
1170
  const customOpts = $xeTable.computeCustomOpts;
1157
1171
  const columnDragOpts = $xeTable.computeColumnDragOpts;
1158
- const aggregateOpts = $xeTable.computeAggregateOpts;
1159
- const { placement: aggPlacement } = aggregateOpts;
1160
- const { mode, immediate, showSortDragButton, showSortMoveButton, showSortPutButton, modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
1172
+ const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton, allowVisible, allowSort, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
1161
1173
  const columnOpts = $xeTable.computeColumnOpts;
1162
- const { maxFixedSize } = columnOpts;
1163
1174
  const resizableOpts = $xeTable.computeResizableOpts;
1164
1175
  const { minWidth: reMinWidth, maxWidth: reMaxWidth } = resizableOpts;
1165
- const modalOpts = Object.assign({}, modalOptions);
1166
- const drawerOpts = Object.assign({}, drawerOptions);
1167
1176
  const isMaxFixedColumn = $xeTable.computeIsMaxFixedColumn;
1168
1177
  const { isCrossDrag, isPeerDrag } = columnDragOpts;
1169
- const slots = customOpts.slots || {};
1170
- const headerSlot = slots.header;
1171
- const topSlot = slots.top;
1172
- const bottomSlot = slots.bottom;
1173
- const defaultSlot = slots.default;
1174
- const footerSlot = slots.footer;
1175
1178
  const trVNs = [];
1176
- const isAllChecked = customStore.isAll;
1177
- const isAllIndeterminate = customStore.isIndeterminate;
1178
- const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
1179
- const params = {
1180
- $table: $xeTable,
1181
- $grid: $xeGrid,
1182
- $gantt: $xeGantt,
1183
- columns: customColumnList,
1184
- isAllChecked,
1185
- isAllIndeterminate,
1186
- isCustomStatus
1187
- };
1188
1179
  XEUtils.eachTree(customColumnList, (column, index, items, path, parentItem) => {
1189
1180
  const isVisible = visibleMethod ? visibleMethod({ $table: $xeTable, column }) : true;
1190
1181
  if (isVisible) {
@@ -1216,225 +1207,455 @@ export default {
1216
1207
  const isDisabled = checkMethod ? !checkMethod({ $table: $xeTable, column }) : false;
1217
1208
  const isHidden = !isChecked;
1218
1209
  const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
1219
- trVNs.push(h('tr', {
1220
- key: column.id,
1221
- attrs: {
1222
- colid: column.id
1223
- },
1224
- class: [`vxe-table-custom-popup--row level--${column.level}`, {
1225
- 'is--group': isColGroup
1226
- }],
1227
- on: {
1228
- dragstart: $xeTableCustomPanel.sortDragstartEvent,
1229
- dragend: $xeTableCustomPanel.sortDragendEvent,
1230
- dragover: $xeTableCustomPanel.sortDragoverEvent
1231
- }
1232
- }, [
1233
- allowVisible
1234
- ? h('td', {
1235
- class: 'vxe-table-custom-popup--column-item col--visible'
1236
- }, [
1237
- h('div', {
1238
- class: ['vxe-table-custom--checkbox-option', {
1239
- 'is--checked': isChecked,
1240
- 'is--indeterminate': isIndeterminate,
1241
- 'is--disabled': isDisabled
1242
- }],
1243
- attrs: {
1244
- title: getI18n('vxe.custom.setting.colVisible')
1245
- },
1246
- on: {
1247
- click: (evnt) => {
1248
- if (!isDisabled) {
1249
- $xeTableCustomPanel.changeCheckboxOption(column, evnt);
1250
- }
1210
+ const alignList = [
1211
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_LEFT, value: 'left', title: getI18n('vxe.custom.setting.anLeftTitle'), disabled: isHidden },
1212
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_CENTER, value: 'center', title: getI18n('vxe.custom.setting.anCenterTitle'), disabled: isHidden },
1213
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_RIGHT, value: 'right', title: getI18n('vxe.custom.setting.anRightTitle'), disabled: isHidden }
1214
+ ];
1215
+ const tdVNs = [];
1216
+ if (allowVisible) {
1217
+ tdVNs.push(h('td', {
1218
+ key: 'av',
1219
+ class: 'vxe-table-custom-popup--column-td col--visible'
1220
+ }, [
1221
+ h('div', {
1222
+ class: ['vxe-table-custom--checkbox-option', {
1223
+ 'is--checked': isChecked,
1224
+ 'is--indeterminate': isIndeterminate,
1225
+ 'is--disabled': isDisabled
1226
+ }],
1227
+ attrs: {
1228
+ title: getI18n('vxe.custom.setting.colVisible')
1229
+ },
1230
+ on: {
1231
+ click: (evnt) => {
1232
+ if (!isDisabled) {
1233
+ $xeTableCustomPanel.changeCheckboxOption(column, evnt);
1251
1234
  }
1252
1235
  }
1253
- }, [
1254
- h('span', {
1255
- class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1256
- })
1257
- ])
1236
+ }
1237
+ }, [
1238
+ h('span', {
1239
+ class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1240
+ })
1258
1241
  ])
1259
- : renderEmptyElement($xeTable),
1260
- h('td', {
1261
- class: 'vxe-table-custom-popup--column-item col--name'
1242
+ ]));
1243
+ }
1244
+ tdVNs.push(h('td', {
1245
+ key: 'at',
1246
+ class: 'vxe-table-custom-popup--column-td col--name'
1247
+ }, [
1248
+ h('div', {
1249
+ class: 'vxe-table-custom-popup--name'
1262
1250
  }, [
1263
- h('div', {
1264
- class: 'vxe-table-custom-popup--name'
1265
- }, [
1266
- (allowSort && showSortDragButton) || (allowGroup || allowValues)
1267
- ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1268
- ? h('div', {
1269
- class: ['vxe-table-custom-popup--column-sort-btn', {
1270
- 'is--disabled': isHidden
1271
- }],
1272
- attrs: {
1273
- title: getI18n('vxe.custom.setting.sortHelpTip')
1274
- },
1275
- on: (isHidden
1276
- ? {}
1277
- : {
1278
- mousedown: $xeTableCustomPanel.sortMousedownEvent,
1279
- mouseup: $xeTableCustomPanel.sortMouseupEvent
1280
- })
1281
- }, [
1282
- h('i', {
1283
- class: getIcon().TABLE_CUSTOM_SORT
1284
- })
1285
- ])
1286
- : h('div', {
1287
- class: 'vxe-table-custom-popup--column-sort-placeholder'
1288
- }))
1289
- : renderEmptyElement($xeTable),
1290
- column.type === 'html'
1251
+ (allowSort && showSortDragButton) || (allowGroup || allowValues)
1252
+ ? (showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1291
1253
  ? h('div', {
1292
- key: '1',
1293
- class: 'vxe-table-custom-popup--title',
1294
- domProps: {
1295
- innerHTML: colTitle
1296
- }
1297
- })
1298
- : h('div', {
1299
- key: '0',
1300
- class: 'vxe-table-custom-popup--title',
1254
+ class: ['vxe-table-custom-popup--column-sort-btn', {
1255
+ 'is--disabled': isHidden
1256
+ }],
1301
1257
  attrs: {
1302
- title: colTitle
1303
- }
1304
- }, colTitle),
1305
- showSortBtn && (showSortMoveButton || showSortPutButton)
1306
- ? h('div', {
1307
- class: 'vxe-table-custom-popup--move-btn'
1308
- }, VxeUIButtonComponent
1309
- ? [
1310
- showSortMoveButton
1311
- ? h(VxeUIButtonComponent, {
1312
- props: {
1313
- mode: 'text',
1314
- content: getI18n('vxe.custom.setting.moveUp'),
1315
- title: getI18n('vxe.custom.setting.moveUpTitle'),
1316
- disabled: index <= 0
1317
- },
1318
- on: {
1319
- click(evntParame) {
1320
- $xeTableCustomPanel.sortMoveUpEvent(evntParame, column);
1321
- }
1322
- }
1323
- })
1324
- : renderEmptyElement($xeTable),
1325
- showSortMoveButton
1326
- ? h(VxeUIButtonComponent, {
1327
- props: {
1328
- mode: 'text',
1329
- content: getI18n('vxe.custom.setting.moveDn'),
1330
- title: getI18n('vxe.custom.setting.moveDnTitle'),
1331
- disabled: index >= items.length - 1
1332
- },
1333
- on: {
1334
- click(evntParame) {
1335
- $xeTableCustomPanel.sortMoveDnEvent(evntParame, column);
1336
- }
1258
+ title: getI18n('vxe.custom.setting.sortHelpTip')
1259
+ },
1260
+ on: (isHidden
1261
+ ? {}
1262
+ : {
1263
+ mousedown: $xeTableCustomPanel.sortMousedownEvent,
1264
+ mouseup: $xeTableCustomPanel.sortMouseupEvent
1265
+ })
1266
+ }, [
1267
+ h('i', {
1268
+ class: getIcon().TABLE_CUSTOM_SORT
1269
+ })
1270
+ ])
1271
+ : h('div', {
1272
+ class: 'vxe-table-custom-popup--column-sort-placeholder'
1273
+ }))
1274
+ : renderEmptyElement($xeTable),
1275
+ column.type === 'html'
1276
+ ? h('div', {
1277
+ key: '1',
1278
+ class: 'vxe-table-custom-popup--title',
1279
+ domProps: {
1280
+ innerHTML: colTitle
1281
+ }
1282
+ })
1283
+ : h('div', {
1284
+ key: '0',
1285
+ class: 'vxe-table-custom-popup--title',
1286
+ attrs: {
1287
+ title: colTitle
1288
+ }
1289
+ }, colTitle),
1290
+ showSortBtn && (showSortMoveButton || showSortPutButton)
1291
+ ? h('div', {
1292
+ class: 'vxe-table-custom-popup--move-btn'
1293
+ }, VxeUIButtonComponent
1294
+ ? [
1295
+ showSortMoveButton
1296
+ ? h(VxeUIButtonComponent, {
1297
+ props: {
1298
+ mode: 'text',
1299
+ icon: 'vxe-icon-arrows-up',
1300
+ title: getI18n('vxe.custom.setting.moveUpTitle'),
1301
+ disabled: index <= 0
1302
+ },
1303
+ on: {
1304
+ click(evntParame) {
1305
+ $xeTableCustomPanel.sortMoveUpEvent(evntParame, column);
1337
1306
  }
1338
- })
1339
- : renderEmptyElement($xeTable),
1340
- showSortPutButton && !parentItem
1341
- ? h(VxeUIButtonComponent, {
1342
- props: {
1343
- mode: 'text',
1344
- content: getI18n('vxe.custom.setting.putTop'),
1345
- title: getI18n('vxe.custom.setting.putTopTitle'),
1346
- disabled: index <= 0
1347
- },
1348
- on: {
1349
- click(evntParame) {
1350
- $xeTableCustomPanel.sortMoveTopEvent(evntParame, column);
1351
- }
1307
+ }
1308
+ })
1309
+ : renderEmptyElement($xeTable),
1310
+ showSortMoveButton
1311
+ ? h(VxeUIButtonComponent, {
1312
+ props: {
1313
+ mode: 'text',
1314
+ icon: 'vxe-icon-arrows-down',
1315
+ title: getI18n('vxe.custom.setting.moveDnTitle'),
1316
+ disabled: index >= items.length - 1
1317
+ },
1318
+ on: {
1319
+ click(evntParame) {
1320
+ $xeTableCustomPanel.sortMoveDnEvent(evntParame, column);
1352
1321
  }
1353
- })
1354
- : renderEmptyElement($xeTable),
1355
- showSortPutButton && !parentItem
1356
- ? h(VxeUIButtonComponent, {
1357
- props: {
1358
- mode: 'text',
1359
- content: getI18n('vxe.custom.setting.putBottom'),
1360
- title: getI18n('vxe.custom.setting.putBottomTitle'),
1361
- disabled: index >= items.length - 1
1362
- },
1363
- on: {
1364
- click(evntParame) {
1365
- $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column);
1366
- }
1322
+ }
1323
+ })
1324
+ : renderEmptyElement($xeTable),
1325
+ showSortPutButton && !parentItem
1326
+ ? h(VxeUIButtonComponent, {
1327
+ props: {
1328
+ mode: 'text',
1329
+ icon: 'vxe-icon-top',
1330
+ title: getI18n('vxe.custom.setting.putTopTitle'),
1331
+ disabled: index <= 0
1332
+ },
1333
+ on: {
1334
+ click(evntParame) {
1335
+ $xeTableCustomPanel.sortMoveTopEvent(evntParame, column);
1367
1336
  }
1368
- })
1369
- : renderEmptyElement($xeTable)
1370
- ]
1371
- : [])
1372
- : renderEmptyElement($xeTable)
1373
- ])
1374
- ]),
1375
- allowResizable
1376
- ? h('td', {
1377
- class: 'vxe-table-custom-popup--column-item col--resizable'
1378
- }, [
1379
- ((column.children && column.children.length) ||
1380
- !(XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable)))
1381
- ? h('span', '-')
1382
- : (VxeUINumberInputComponent
1383
- ? h(VxeUINumberInputComponent, {
1384
- props: {
1385
- type: 'integer',
1386
- immediate: false,
1387
- disabled: isHidden,
1388
- value: column.renderResizeWidth,
1389
- min: customMinWidth || undefined,
1390
- max: customMaxWidth || undefined
1391
- },
1392
- on: {
1393
- modelValue(value) {
1394
- column.renderResizeWidth = Math.max(0, Number(value));
1337
+ }
1338
+ })
1339
+ : renderEmptyElement($xeTable),
1340
+ showSortPutButton && !parentItem
1341
+ ? h(VxeUIButtonComponent, {
1342
+ props: {
1343
+ mode: 'text',
1344
+ icon: 'vxe-icon-bottom',
1345
+ title: getI18n('vxe.custom.setting.putBottomTitle'),
1346
+ disabled: index >= items.length - 1
1395
1347
  },
1396
- change() {
1397
- $xeTableCustomPanel.changeColumnWidth(column);
1348
+ on: {
1349
+ click(evntParame) {
1350
+ $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column);
1351
+ }
1398
1352
  }
1353
+ })
1354
+ : renderEmptyElement($xeTable)
1355
+ ]
1356
+ : [])
1357
+ : renderEmptyElement($xeTable)
1358
+ ])
1359
+ ]));
1360
+ if (allowResizable) {
1361
+ tdVNs.push(h('td', {
1362
+ key: 'aw',
1363
+ class: 'vxe-table-custom-popup--column-td col--resizable'
1364
+ }, [
1365
+ ((column.children && column.children.length) ||
1366
+ !(XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable)))
1367
+ ? h('span', '-')
1368
+ : (VxeUINumberInputComponent
1369
+ ? h(VxeUINumberInputComponent, {
1370
+ props: {
1371
+ type: 'integer',
1372
+ immediate: false,
1373
+ disabled: isHidden,
1374
+ value: column.renderResizeWidth,
1375
+ min: customMinWidth || undefined,
1376
+ max: customMaxWidth || undefined
1377
+ },
1378
+ on: {
1379
+ modelValue(value) {
1380
+ const width = Math.max(0, Number(value));
1381
+ column.renderResizeWidth = width;
1382
+ },
1383
+ change() {
1384
+ $xeTableCustomPanel.changeColumnWidth(column);
1399
1385
  }
1400
- })
1401
- : renderEmptyElement($xeTableCustomPanel))
1402
- ])
1403
- : renderEmptyElement($xeTable),
1404
- allowFixed
1405
- ? h('td', {
1406
- class: 'vxe-table-custom-popup--column-item col--fixed'
1407
- }, [
1408
- parentItem
1409
- ? h('span', '-')
1410
- : h('vxe-radio-group', {
1386
+ }
1387
+ })
1388
+ : renderEmptyElement($xeTable))
1389
+ ]));
1390
+ }
1391
+ if (allowFixed) {
1392
+ tdVNs.push(h('td', {
1393
+ key: 'af',
1394
+ class: 'vxe-table-custom-popup--column-td col--fixed'
1395
+ }, parentItem
1396
+ ? [h('span', '-')]
1397
+ : (VxeUIRadioGroupComponent
1398
+ ? [
1399
+ h(VxeUIButtonComponent, {
1411
1400
  props: {
1412
- value: column.renderFixed || '',
1401
+ icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
1402
+ status: column.renderFixed === 'left' ? 'primary' : '',
1403
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1404
+ title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
1405
+ },
1406
+ on: {
1407
+ click: ({ $event }) => {
1408
+ $xeTableCustomPanel.changeFixedOption(column, 'left', $event);
1409
+ }
1410
+ }
1411
+ }),
1412
+ h(VxeUIButtonComponent, {
1413
+ props: {
1414
+ icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
1415
+ status: column.renderFixed === 'right' ? 'primary' : '',
1416
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1417
+ title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
1418
+ },
1419
+ on: {
1420
+ click: ({ $event }) => {
1421
+ $xeTableCustomPanel.changeFixedOption(column, 'right', $event);
1422
+ }
1423
+ }
1424
+ })
1425
+ ]
1426
+ : [])));
1427
+ }
1428
+ if (allowAlign) {
1429
+ tdVNs.push(h('td', {
1430
+ key: 'aa',
1431
+ class: 'vxe-table-custom-popup--column-td col--align'
1432
+ }, VxeUIRadioGroupComponent
1433
+ ? [
1434
+ h(VxeUIRadioGroupComponent, {
1435
+ props: {
1436
+ value: column.renderAlign || '',
1437
+ type: 'button',
1438
+ strict: false,
1439
+ disabled: isHidden,
1440
+ options: alignList
1441
+ },
1442
+ on: {
1443
+ change({ value, $event }) {
1444
+ $xeTableCustomPanel.changeAlignOption(column, value, 'align', 'renderAlign', 'custom-align-change', $event);
1445
+ }
1446
+ }
1447
+ })
1448
+ ]
1449
+ : []));
1450
+ }
1451
+ if (allowHeaderAlign) {
1452
+ tdVNs.push(h('td', {
1453
+ key: 'aha',
1454
+ class: 'vxe-table-custom-popup--column-td col--header-align'
1455
+ }, isColGroup
1456
+ ? [h('span', '-')]
1457
+ : (VxeUIRadioGroupComponent
1458
+ ? [
1459
+ h(VxeUIRadioGroupComponent, {
1460
+ props: {
1461
+ value: column.renderHeaderAlign || '',
1413
1462
  type: 'button',
1414
- size: 'mini',
1463
+ strict: false,
1415
1464
  disabled: isHidden,
1416
- options: [
1417
- { label: getI18n('vxe.custom.setting.fixedLeft'), value: 'left', disabled: isHidden || isMaxFixedColumn },
1418
- { label: getI18n('vxe.custom.setting.fixedUnset'), value: '', disabled: isHidden },
1419
- { label: getI18n('vxe.custom.setting.fixedRight'), value: 'right', disabled: isHidden || isMaxFixedColumn }
1420
- ]
1465
+ options: alignList
1421
1466
  },
1422
1467
  on: {
1423
- change({ label, $event }) {
1424
- $xeTableCustomPanel.changeFixedOption(column, label, $event);
1468
+ change({ value, $event }) {
1469
+ $xeTableCustomPanel.changeAlignOption(column, value, 'headerAlign', 'renderHeaderAlign', 'custom-header-align-change', $event);
1425
1470
  }
1426
1471
  }
1427
1472
  })
1428
- ])
1429
- : renderEmptyElement($xeTable)
1430
- ]));
1473
+ ]
1474
+ : [])));
1475
+ }
1476
+ if (allowFooterAlign) {
1477
+ tdVNs.push(h('td', {
1478
+ key: 'afa',
1479
+ class: 'vxe-table-custom-popup--column-td col--footer-align'
1480
+ }, isColGroup
1481
+ ? [h('span', '-')]
1482
+ : (VxeUIRadioGroupComponent
1483
+ ? [
1484
+ h(VxeUIRadioGroupComponent, {
1485
+ props: {
1486
+ value: column.renderFooterAlign || '',
1487
+ type: 'button',
1488
+ strict: false,
1489
+ disabled: isHidden,
1490
+ options: alignList
1491
+ },
1492
+ on: {
1493
+ change({ value, $event }) {
1494
+ $xeTableCustomPanel.changeAlignOption(column, value, 'footerAlign', 'renderFooterAlign', 'custom-footer-align-change', $event);
1495
+ }
1496
+ }
1497
+ })
1498
+ ]
1499
+ : [])));
1500
+ }
1501
+ trVNs.push(h('tr', {
1502
+ key: column.id,
1503
+ attrs: {
1504
+ colid: column.id
1505
+ },
1506
+ class: [`vxe-table-custom-popup--row level--${column.level}`, {
1507
+ 'is--group': isColGroup
1508
+ }],
1509
+ on: {
1510
+ dragstart: $xeTableCustomPanel.sortDragstartEvent,
1511
+ dragend: $xeTableCustomPanel.sortDragendEvent,
1512
+ dragover: $xeTableCustomPanel.sortDragoverEvent
1513
+ }
1514
+ }, tdVNs));
1431
1515
  }
1432
1516
  });
1517
+ return trVNs;
1518
+ },
1519
+ renderPopupPanel(h) {
1520
+ const VxeUIModalComponent = VxeUI.getComponent('VxeModal');
1521
+ const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer');
1522
+ const VxeUIButtonComponent = VxeUI.getComponent('VxeButton');
1523
+ const $xeTableCustomPanel = this;
1524
+ const props = $xeTableCustomPanel;
1525
+ const $xeTable = $xeTableCustomPanel.$xeTable;
1526
+ const tableProps = $xeTable;
1527
+ const tableReactData = $xeTable;
1528
+ const $xeGrid = $xeTable.$xeGrid;
1529
+ const $xeGantt = $xeTable.$xeGantt;
1530
+ const { customStore } = props;
1531
+ const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps;
1532
+ const { isCustomStatus, customColumnList } = tableReactData;
1533
+ const vSize = $xeTable.computeSize;
1534
+ const customOpts = $xeTable.computeCustomOpts;
1535
+ const aggregateOpts = $xeTable.computeAggregateOpts;
1536
+ const { panePopupStyle } = customStore;
1537
+ const { placement: aggPlacement } = aggregateOpts;
1538
+ const { mode, immediate, modalOptions, drawerOptions, allowVisible, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable } = customOpts;
1539
+ const columnOpts = $xeTable.computeColumnOpts;
1540
+ const { maxFixedSize } = columnOpts;
1541
+ const modalOpts = Object.assign({}, modalOptions);
1542
+ const drawerOpts = Object.assign({}, drawerOptions);
1543
+ const slots = customOpts.slots || {};
1544
+ const headerSlot = slots.header;
1545
+ const topSlot = slots.top;
1546
+ const bottomSlot = slots.bottom;
1547
+ const defaultSlot = slots.default;
1548
+ const footerSlot = slots.footer;
1549
+ const isAllChecked = customStore.isAll;
1550
+ const isAllIndeterminate = customStore.isIndeterminate;
1551
+ const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
1552
+ const params = {
1553
+ $table: $xeTable,
1554
+ $grid: $xeGrid,
1555
+ $gantt: $xeGantt,
1556
+ columns: customColumnList,
1557
+ isAllChecked,
1558
+ isAllIndeterminate,
1559
+ isCustomStatus
1560
+ };
1561
+ const colVNs = [];
1562
+ const headVNs = [];
1563
+ if (allowVisible) {
1564
+ colVNs.push(h('col', {
1565
+ key: 'av',
1566
+ class: 'vxe-table-custom-popup--column-col col--checkbox'
1567
+ }));
1568
+ headVNs.push(h('th', {
1569
+ key: 'av',
1570
+ class: 'vxe-table-custom-popup--column-th col--checkbox'
1571
+ }, [
1572
+ h('div', {
1573
+ class: ['vxe-table-custom--checkbox-option', {
1574
+ 'is--checked': isAllChecked,
1575
+ 'is--indeterminate': isAllIndeterminate
1576
+ }],
1577
+ attrs: {
1578
+ title: getI18n('vxe.table.allTitle')
1579
+ },
1580
+ on: {
1581
+ click: $xeTableCustomPanel.allOptionEvent
1582
+ }
1583
+ }, [
1584
+ h('span', {
1585
+ class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1586
+ })
1587
+ // h('span', {
1588
+ // class: 'vxe-checkbox--label'
1589
+ // }, getI18n('vxe.toolbar.customAll'))
1590
+ ])
1591
+ ]));
1592
+ }
1593
+ colVNs.push(h('col', {
1594
+ key: 'at',
1595
+ class: 'vxe-table-custom-popup--column-col col--title'
1596
+ }));
1597
+ headVNs.push(h('th', {
1598
+ key: 'at',
1599
+ class: 'vxe-table-custom-popup--column-th col--title'
1600
+ }, getI18n('vxe.custom.setting.colTitle')));
1601
+ if (allowResizable) {
1602
+ colVNs.push(h('col', {
1603
+ key: 'aw',
1604
+ class: 'vxe-table-custom-popup--column-col col--width'
1605
+ }));
1606
+ headVNs.push(h('th', {
1607
+ key: 'aw',
1608
+ class: 'vxe-table-custom-popup--column-th col--width'
1609
+ }, getI18n('vxe.custom.setting.colResizable')));
1610
+ }
1611
+ if (allowFixed) {
1612
+ colVNs.push(h('col', {
1613
+ key: 'af',
1614
+ class: 'vxe-table-custom-popup--column-col col--fixed'
1615
+ }));
1616
+ headVNs.push(h('th', {
1617
+ key: 'af',
1618
+ class: 'vxe-table-custom-popup--column-th col--fixed'
1619
+ }, getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize])));
1620
+ }
1621
+ if (allowAlign) {
1622
+ colVNs.push(h('col', {
1623
+ key: 'aa',
1624
+ class: 'vxe-table-custom-popup--column-col col--align'
1625
+ }));
1626
+ headVNs.push(h('th', {
1627
+ key: 'aa',
1628
+ class: 'vxe-table-custom-popup--column-th col--align'
1629
+ }, getI18n('vxe.custom.setting.colAlign')));
1630
+ }
1631
+ if (allowHeaderAlign) {
1632
+ colVNs.push(h('col', {
1633
+ key: 'aha',
1634
+ class: 'vxe-table-custom-popup--column-col col--header-align'
1635
+ }));
1636
+ headVNs.push(h('th', {
1637
+ key: 'aha',
1638
+ class: 'vxe-table-custom-popup--column-th col--header-align'
1639
+ }, getI18n('vxe.custom.setting.colHeadAlign')));
1640
+ }
1641
+ if (allowFooterAlign) {
1642
+ colVNs.push(h('col', {
1643
+ key: 'afa',
1644
+ class: 'vxe-table-custom-popup--column-col col--footer-align'
1645
+ }));
1646
+ headVNs.push(h('th', {
1647
+ key: 'afa',
1648
+ class: 'vxe-table-custom-popup--column-th col--footer-align'
1649
+ }, getI18n('vxe.custom.setting.colFootAlign')));
1650
+ }
1433
1651
  const scopedSlots = {
1434
1652
  default: () => {
1435
1653
  return h('div', {
1436
1654
  ref: 'refBodyWrapperElem',
1437
- class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
1655
+ class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`, {
1656
+ [`size--${vSize}`]: vSize
1657
+ }],
1658
+ style: panePopupStyle
1438
1659
  }, defaultSlot
1439
1660
  ? $xeTable.callSlot(defaultSlot, params, h)
1440
1661
  : [
@@ -1458,59 +1679,9 @@ export default {
1458
1679
  class: 'vxe-table-custom-popup--table-wrapper'
1459
1680
  }, [
1460
1681
  h('table', {}, [
1461
- h('colgroup', {}, [
1462
- allowVisible
1463
- ? h('col', {
1464
- class: 'vxe-table-custom-popup--table-col-seq'
1465
- })
1466
- : renderEmptyElement($xeTable),
1467
- h('col', {
1468
- class: 'vxe-table-custom-popup--table-col-title'
1469
- }),
1470
- allowResizable
1471
- ? h('col', {
1472
- class: 'vxe-table-custom-popup--table-col-width'
1473
- })
1474
- : renderEmptyElement($xeTable),
1475
- allowFixed
1476
- ? h('col', {
1477
- class: 'vxe-table-custom-popup--table-col-fixed'
1478
- })
1479
- : renderEmptyElement($xeTable)
1480
- ]),
1682
+ h('colgroup', {}, colVNs),
1481
1683
  h('thead', {}, [
1482
- h('tr', {}, [
1483
- allowVisible
1484
- ? h('th', {}, [
1485
- h('div', {
1486
- class: ['vxe-table-custom--checkbox-option', {
1487
- 'is--checked': isAllChecked,
1488
- 'is--indeterminate': isAllIndeterminate
1489
- }],
1490
- attrs: {
1491
- title: getI18n('vxe.table.allTitle')
1492
- },
1493
- on: {
1494
- click: $xeTableCustomPanel.allOptionEvent
1495
- }
1496
- }, [
1497
- h('span', {
1498
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1499
- }),
1500
- h('span', {
1501
- class: 'vxe-checkbox--label'
1502
- }, getI18n('vxe.toolbar.customAll'))
1503
- ])
1504
- ])
1505
- : renderEmptyElement($xeTable),
1506
- h('th', {}, getI18n('vxe.custom.setting.colTitle')),
1507
- allowResizable
1508
- ? h('th', {}, getI18n('vxe.custom.setting.colResizable'))
1509
- : renderEmptyElement($xeTable),
1510
- allowFixed
1511
- ? h('th', {}, getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize]))
1512
- : renderEmptyElement($xeTable)
1513
- ])
1684
+ h('tr', {}, headVNs)
1514
1685
  ]),
1515
1686
  h('transition-group', {
1516
1687
  class: 'vxe-table-custom--panel-list',
@@ -1518,7 +1689,7 @@ export default {
1518
1689
  tag: 'tbody',
1519
1690
  name: 'vxe-table-custom--list'
1520
1691
  }
1521
- }, trVNs)
1692
+ }, $xeTableCustomPanel.renderPopupBodys(h))
1522
1693
  ])
1523
1694
  ]),
1524
1695
  bottomSlot
@@ -1556,6 +1727,7 @@ export default {
1556
1727
  immediate
1557
1728
  ? h(VxeUIButtonComponent, {
1558
1729
  props: {
1730
+ status: 'primary',
1559
1731
  content: customOpts.resetButtonText || getI18n('vxe.table.customClose')
1560
1732
  },
1561
1733
  on: {
@@ -1616,11 +1788,11 @@ export default {
1616
1788
  ? h(VxeUIModalComponent, {
1617
1789
  key: 'modal',
1618
1790
  props: {
1619
- className: ['vxe-table-custom-popup-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
1791
+ className: ['vxe-table-custom-modal-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
1620
1792
  value: customStore.visible,
1621
1793
  title: modalOpts.title || getI18n('vxe.custom.cstmTitle'),
1622
- width: modalOpts.width || Math.min(880, document.documentElement.clientWidth),
1623
- minWidth: modalOpts.minWidth || 700,
1794
+ width: modalOpts.width || Math.min(1000, document.documentElement.clientWidth),
1795
+ minWidth: modalOpts.minWidth || 800,
1624
1796
  height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
1625
1797
  minHeight: modalOpts.minHeight || 400,
1626
1798
  showZoom: modalOpts.showZoom,
@@ -1629,6 +1801,7 @@ export default {
1629
1801
  mask: modalOpts.mask,
1630
1802
  lockView: modalOpts.lockView,
1631
1803
  resize: modalOpts.resize,
1804
+ transfer: modalOpts.transfer,
1632
1805
  escClosable: !!modalOpts.escClosable,
1633
1806
  maskClosable: !!modalOpts.maskClosable,
1634
1807
  destroyOnClose: true,