vxe-table 3.8.8-beta.5 → 3.8.8-beta.7

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 (112) hide show
  1. package/lib/custom/src/mixin.js +5 -10
  2. package/lib/custom/src/mixin.min.js +1 -1
  3. package/lib/custom/src/panel.js +102 -42
  4. package/lib/custom/src/panel.min.js +1 -1
  5. package/lib/custom/style/style.css +38 -6
  6. package/lib/custom/style/style.min.css +1 -1
  7. package/lib/edit/src/mixin.js +2 -2
  8. package/lib/edit/src/mixin.min.js +1 -1
  9. package/lib/export/src/mixin.js +2 -2
  10. package/lib/export/src/mixin.min.js +1 -1
  11. package/lib/filter/src/mixin.js +2 -2
  12. package/lib/filter/src/mixin.min.js +1 -1
  13. package/lib/filter/src/panel.js +5 -5
  14. package/lib/filter/src/panel.min.js +1 -1
  15. package/lib/form/src/form-config-item.js +9 -8
  16. package/lib/form/src/form-config-item.min.js +1 -1
  17. package/lib/form/src/form-item.js +9 -8
  18. package/lib/form/src/form-item.min.js +1 -1
  19. package/lib/form/src/form.js +3 -2
  20. package/lib/form/src/form.min.js +1 -1
  21. package/lib/form/src/render.js +2 -1
  22. package/lib/form/src/render.min.js +1 -1
  23. package/lib/form/src/util.js +5 -4
  24. package/lib/form/src/util.min.js +1 -1
  25. package/lib/icon/style/style.css +1 -1
  26. package/lib/icon/style/style.min.css +1 -1
  27. package/lib/index.css +1 -1
  28. package/lib/index.umd.js +299 -120
  29. package/lib/index.umd.min.js +1 -1
  30. package/lib/locale/lang/en-US.js +2 -1
  31. package/lib/locale/lang/en-US.min.js +1 -1
  32. package/lib/locale/lang/en-US.umd.js +2 -1
  33. package/lib/locale/lang/es-ES.js +2 -1
  34. package/lib/locale/lang/es-ES.min.js +1 -1
  35. package/lib/locale/lang/es-ES.umd.js +2 -1
  36. package/lib/locale/lang/ja-JP.js +2 -1
  37. package/lib/locale/lang/ja-JP.min.js +1 -1
  38. package/lib/locale/lang/ja-JP.umd.js +2 -1
  39. package/lib/locale/lang/pt-BR.js +2 -1
  40. package/lib/locale/lang/pt-BR.min.js +1 -1
  41. package/lib/locale/lang/pt-BR.umd.js +2 -1
  42. package/lib/locale/lang/zh-CN.js +2 -1
  43. package/lib/locale/lang/zh-CN.min.js +1 -1
  44. package/lib/locale/lang/zh-CN.umd.js +2 -1
  45. package/lib/locale/lang/zh-HK.min.js +1 -1
  46. package/lib/locale/lang/zh-HK.umd.js +2 -1
  47. package/lib/locale/lang/zh-MO.min.js +1 -1
  48. package/lib/locale/lang/zh-MO.umd.js +2 -1
  49. package/lib/locale/lang/zh-TC.js +2 -1
  50. package/lib/locale/lang/zh-TC.min.js +1 -1
  51. package/lib/locale/lang/zh-TC.umd.js +2 -1
  52. package/lib/locale/lang/zh-TW.min.js +1 -1
  53. package/lib/locale/lang/zh-TW.umd.js +2 -1
  54. package/lib/pager/src/pager.js +7 -1
  55. package/lib/pager/src/pager.min.js +1 -1
  56. package/lib/style.css +1 -1
  57. package/lib/style.min.css +1 -1
  58. package/lib/table/src/body.js +7 -4
  59. package/lib/table/src/body.min.js +1 -1
  60. package/lib/table/src/cell.js +17 -11
  61. package/lib/table/src/cell.min.js +1 -1
  62. package/lib/table/src/columnInfo.js +1 -0
  63. package/lib/table/src/columnInfo.min.js +1 -1
  64. package/lib/table/src/methods.js +111 -16
  65. package/lib/table/src/methods.min.js +1 -1
  66. package/lib/table/style/style.css +4 -0
  67. package/lib/table/style/style.min.css +1 -1
  68. package/lib/tools/log.js +1 -1
  69. package/lib/tools/log.min.js +1 -1
  70. package/lib/v-x-e-table/index.js +1 -1
  71. package/lib/v-x-e-table/index.min.js +1 -1
  72. package/lib/v-x-e-table/src/conf.js +5 -1
  73. package/lib/v-x-e-table/src/conf.min.js +1 -1
  74. package/lib/vxe-table/style/style.css +4 -0
  75. package/lib/vxe-table/style/style.min.css +1 -1
  76. package/lib/vxe-table-custom-module/style/style.css +38 -6
  77. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  78. package/package.json +1 -1
  79. package/packages/custom/src/mixin.js +5 -10
  80. package/packages/custom/src/panel.js +120 -59
  81. package/packages/edit/src/mixin.js +2 -2
  82. package/packages/export/src/mixin.js +2 -2
  83. package/packages/filter/src/mixin.js +2 -2
  84. package/packages/filter/src/panel.js +5 -5
  85. package/packages/form/src/form-config-item.js +9 -8
  86. package/packages/form/src/form-item.js +9 -8
  87. package/packages/form/src/form.js +3 -2
  88. package/packages/form/src/render.js +2 -1
  89. package/packages/form/src/util.js +5 -4
  90. package/packages/locale/lang/en-US.js +2 -1
  91. package/packages/locale/lang/es-ES.js +2 -1
  92. package/packages/locale/lang/ja-JP.js +2 -1
  93. package/packages/locale/lang/pt-BR.js +2 -1
  94. package/packages/locale/lang/zh-CN.js +2 -1
  95. package/packages/locale/lang/zh-TC.js +2 -1
  96. package/packages/pager/src/pager.js +5 -1
  97. package/packages/table/src/body.js +7 -5
  98. package/packages/table/src/cell.js +17 -11
  99. package/packages/table/src/columnInfo.js +2 -0
  100. package/packages/table/src/methods.js +98 -11
  101. package/packages/table/src/table.js +1 -1
  102. package/packages/v-x-e-table/src/conf.js +5 -1
  103. package/styles/custom.scss +41 -5
  104. package/styles/table.scss +10 -0
  105. package/styles/variable.scss +2 -0
  106. package/types/v-x-e-table/renderer.d.ts +158 -9
  107. /package/lib/icon/style/{iconfont.1717729278146.ttf → iconfont.1718470675024.ttf} +0 -0
  108. /package/lib/icon/style/{iconfont.1717729278146.woff → iconfont.1718470675024.woff} +0 -0
  109. /package/lib/icon/style/{iconfont.1717729278146.woff2 → iconfont.1718470675024.woff2} +0 -0
  110. /package/lib/{iconfont.1717729278146.ttf → iconfont.1718470675024.ttf} +0 -0
  111. /package/lib/{iconfont.1717729278146.woff → iconfont.1718470675024.woff} +0 -0
  112. /package/lib/{iconfont.1717729278146.woff2 → iconfont.1718470675024.woff2} +0 -0
@@ -20,6 +20,7 @@ var _default = exports.default = {
20
20
  var colid = column.getKey();
21
21
  column.renderFixed = column.fixed;
22
22
  column.renderVisible = column.visible;
23
+ column.renderResizeWidth = column.renderWidth;
23
24
  sortMaps[colid] = column.renderSortNumber;
24
25
  fixedMaps[colid] = column.fixed;
25
26
  visibleMaps[colid] = column.visible;
@@ -50,20 +51,14 @@ var _default = exports.default = {
50
51
  return this.$nextTick();
51
52
  },
52
53
  calcMaxHeight: function calcMaxHeight() {
53
- var $refs = this.$refs,
54
+ var $el = this.$el,
54
55
  customStore = this.customStore;
55
- var customWrapperElem = $refs.customWrapper ? $refs.customWrapper.$el : null;
56
- var headElem = $refs.tableHeader ? $refs.tableHeader.$el : null;
57
- var bodyElem = $refs.tableBody ? $refs.tableBody.$el : null;
58
56
  // 判断面板不能大于表格高度
59
57
  var tableHeight = 0;
60
- if (headElem) {
61
- tableHeight += headElem.clientHeight;
58
+ if ($el) {
59
+ tableHeight = $el.clientHeight - 30;
62
60
  }
63
- if (bodyElem) {
64
- tableHeight += bodyElem.clientHeight;
65
- }
66
- customStore.maxHeight = Math.max(0, customWrapperElem ? Math.min(customWrapperElem.clientHeight, tableHeight - 80) : 0);
61
+ customStore.maxHeight = Math.max(4, tableHeight);
67
62
  },
68
63
  checkCustomStatus: function checkCustomStatus() {
69
64
  var customStore = this.customStore,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var _default=exports.default={methods:{_openCustom:function(){var t=this,e=this.initStore,i=this.customStore,s=this.collectColumn,o={},n={},u={};return _xeUtils.default.eachTree(s,function(t){var e=t.getKey();t.renderFixed=t.fixed,t.renderVisible=t.visible,o[e]=t.renderSortNumber,n[e]=t.fixed,u[e]=t.visible},{children:"children"}),i.oldSortMaps=o,i.oldFixedMaps=n,i.oldVisibleMaps=u,this.customColumnList=s.slice(0),i.visible=!0,e.custom=!0,this.checkCustomStatus(),this.calcMaxHeight(),this.$nextTick().then(function(){return t.calcMaxHeight()})},_closeCustom:function(){var t=this.customStore,e=this.customOpts;return t.visible&&(t.visible=!1,e.immediate||this.handleCustom()),this.$nextTick()},calcMaxHeight:function(){var t=this.$refs,e=this.customStore,i=t.customWrapper?t.customWrapper.$el:null,s=t.tableHeader?t.tableHeader.$el:null,t=t.tableBody?t.tableBody.$el:null,o=0;s&&(o+=s.clientHeight),t&&(o+=t.clientHeight),e.maxHeight=Math.max(0,i?Math.min(i.clientHeight,o-80):0)},checkCustomStatus:function(){var t=this.customStore,e=this.collectColumn,i=this.customOpts.checkMethod;t.isAll=e.every(function(t){return!!i&&!i({column:t})||t.renderVisible}),t.isIndeterminate=!t.isAll&&e.some(function(t){return(!i||i({column:t}))&&(t.renderVisible||t.halfVisible)})},emitCustomEvent:function(t,e){(this.$xegrid||this).$emit("custom",{type:t,$table:this,$grid:this.$xegrid,$event:e})},triggerCustomEvent:function(t){var e=this.customStore;e.visible?(this.closeCustom(),this.emitCustomEvent("close",t)):(e.btnEl=t.target,this.openCustom(),this.emitCustomEvent("open",t))},customOpenEvent:function(t){var e=this.customStore;e.visible||(e.activeBtn=!0,e.btnEl=t.target,this.openCustom(),this.emitCustomEvent("open",t))},customColseEvent:function(t){var e=this.customStore;e.visible&&(e.activeBtn=!1,this.closeCustom(),this.emitCustomEvent("close",t))}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var _default=exports.default={methods:{_openCustom:function(){var t=this,e=this.initStore,i=this.customStore,s=this.collectColumn,o={},n={},r={};return _xeUtils.default.eachTree(s,function(t){var e=t.getKey();t.renderFixed=t.fixed,t.renderVisible=t.visible,t.renderResizeWidth=t.renderWidth,o[e]=t.renderSortNumber,n[e]=t.fixed,r[e]=t.visible},{children:"children"}),i.oldSortMaps=o,i.oldFixedMaps=n,i.oldVisibleMaps=r,this.customColumnList=s.slice(0),i.visible=!0,e.custom=!0,this.checkCustomStatus(),this.calcMaxHeight(),this.$nextTick().then(function(){return t.calcMaxHeight()})},_closeCustom:function(){var t=this.customStore,e=this.customOpts;return t.visible&&(t.visible=!1,e.immediate||this.handleCustom()),this.$nextTick()},calcMaxHeight:function(){var t=this.$el,e=this.customStore,i=0;t&&(i=t.clientHeight-30),e.maxHeight=Math.max(4,i)},checkCustomStatus:function(){var t=this.customStore,e=this.collectColumn,i=this.customOpts.checkMethod;t.isAll=e.every(function(t){return!!i&&!i({column:t})||t.renderVisible}),t.isIndeterminate=!t.isAll&&e.some(function(t){return(!i||i({column:t}))&&(t.renderVisible||t.halfVisible)})},emitCustomEvent:function(t,e){(this.$xegrid||this).$emit("custom",{type:t,$table:this,$grid:this.$xegrid,$event:e})},triggerCustomEvent:function(t){var e=this.customStore;e.visible?(this.closeCustom(),this.emitCustomEvent("close",t)):(e.btnEl=t.target,this.openCustom(),this.emitCustomEvent("open",t))},customOpenEvent:function(t){var e=this.customStore;e.visible||(e.activeBtn=!0,e.btnEl=t.target,this.openCustom(),this.emitCustomEvent("open",t))},customColseEvent:function(t){var e=this.customStore;e.visible&&(e.activeBtn=!1,this.closeCustom(),this.emitCustomEvent("close",t))}}};
@@ -38,9 +38,11 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
38
38
  var maxHeight = customStore.maxHeight;
39
39
  var checkMethod = customOpts.checkMethod,
40
40
  visibleMethod = customOpts.visibleMethod,
41
+ allowVisible = customOpts.allowVisible,
41
42
  allowSort = customOpts.allowSort,
42
43
  allowFixed = customOpts.allowFixed,
43
- trigger = customOpts.trigger;
44
+ trigger = customOpts.trigger,
45
+ placement = customOpts.placement;
44
46
  var colVNs = [];
45
47
  var customWrapperOns = {};
46
48
  // hover 触发
@@ -73,7 +75,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
73
75
  dragend: _vm.sortDragendEvent,
74
76
  dragover: _vm.sortDragoverEvent
75
77
  }
76
- }, [h('div', {
78
+ }, [allowVisible ? h('div', {
77
79
  class: ['vxe-table-custom--checkbox-option', {
78
80
  'is--checked': isChecked,
79
81
  'is--indeterminate': isIndeterminate,
@@ -91,7 +93,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
91
93
  }
92
94
  }, [h('span', {
93
95
  class: ['vxe-checkbox--icon', isIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
94
- })]), allowSort && column.level === 1 ? h('div', {
96
+ })]) : _e(), allowSort && column.level === 1 ? h('div', {
95
97
  class: 'vxe-table-custom--sort-option'
96
98
  }, [h('span', {
97
99
  class: 'vxe-table-custom--sort-btn',
@@ -144,14 +146,17 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
144
146
  var isAllIndeterminate = customStore.isIndeterminate;
145
147
  return h('div', {
146
148
  key: 'simple',
147
- class: ['vxe-table-custom-wrapper', {
149
+ class: ['vxe-table-custom-wrapper', "placement--".concat(placement), {
148
150
  'is--active': customStore.visible
149
- }]
151
+ }],
152
+ style: maxHeight && !['left', 'right'].includes(placement) ? {
153
+ maxHeight: "".concat(maxHeight, "px")
154
+ } : {}
150
155
  }, customStore.visible ? [h('ul', {
151
156
  class: 'vxe-table-custom--header'
152
157
  }, [h('li', {
153
158
  class: 'vxe-table-custom--option'
154
- }, [h('div', {
159
+ }, [allowVisible ? h('div', {
155
160
  class: ['vxe-table-custom--checkbox-option', {
156
161
  'is--checked': isAllChecked,
157
162
  'is--indeterminate': isAllIndeterminate
@@ -166,7 +171,9 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
166
171
  class: ['vxe-checkbox--icon', isAllIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
167
172
  }), h('span', {
168
173
  class: 'vxe-checkbox--label'
169
- }, _conf.default.i18n('vxe.toolbar.customAll'))])])]), h('div', {
174
+ }, _conf.default.i18n('vxe.toolbar.customAll'))]) : h('span', {
175
+ class: 'vxe-checkbox--label'
176
+ }, _conf.default.i18n('vxe.table.customTitle'))])]), h('div', {
170
177
  ref: 'bodyElemRef',
171
178
  class: 'vxe-table-custom--list-wrapper'
172
179
  }, [h('transition-group', {
@@ -175,9 +182,6 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
175
182
  name: 'vxe-table-custom--list',
176
183
  tag: 'ul'
177
184
  },
178
- style: maxHeight ? {
179
- maxHeight: "".concat(maxHeight, "px")
180
- } : {},
181
185
  on: customWrapperOns
182
186
  }, colVNs), h('div', {
183
187
  ref: 'dragHintElemRef',
@@ -209,10 +213,14 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
209
213
  customColumnList = $xetable.customColumnList,
210
214
  columnOpts = $xetable.columnOpts,
211
215
  isMaxFixedColumn = $xetable.isMaxFixedColumn;
212
- var allowSort = customOpts.allowSort,
216
+ var modalOptions = customOpts.modalOptions,
217
+ allowVisible = customOpts.allowVisible,
218
+ allowSort = customOpts.allowSort,
213
219
  allowFixed = customOpts.allowFixed,
220
+ allowResizable = customOpts.allowResizable,
214
221
  checkMethod = customOpts.checkMethod,
215
222
  visibleMethod = customOpts.visibleMethod;
223
+ var modalOpts = Object.assign({}, modalOptions);
216
224
  var trVNs = [];
217
225
  _xeUtils.default.eachTree(customColumnList, function (column, index, items, path, parent) {
218
226
  var isVisible = visibleMethod ? visibleMethod({
@@ -239,7 +247,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
239
247
  dragend: _vm.sortDragendEvent,
240
248
  dragover: _vm.sortDragoverEvent
241
249
  }
242
- }, [h('td', {
250
+ }, [allowVisible ? h('td', {
243
251
  class: 'vxe-table-custom-popup--column-item col--visible'
244
252
  }, [h('div', {
245
253
  class: ['vxe-table-custom--checkbox-option', {
@@ -259,7 +267,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
259
267
  }
260
268
  }, [h('span', {
261
269
  class: ['vxe-checkbox--icon', isIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
262
- })])]), allowSort ? h('td', {
270
+ })])]) : _e(), allowSort ? h('td', {
263
271
  class: 'vxe-table-custom-popup--column-item col--sort'
264
272
  }, [column.level === 1 ? h('span', {
265
273
  class: 'vxe-table-custom-popup--column-sort-btn',
@@ -272,16 +280,29 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
272
280
  }
273
281
  }, [h('i', {
274
282
  class: _conf.default.icon.TABLE_CUSTOM_SORT
275
- })]) : null]) : _e(), h('td', {
283
+ })]) : h('span', '-')]) : _e(), h('td', {
276
284
  class: 'vxe-table-custom-popup--column-item col--name'
277
285
  }, [h('div', {
278
286
  class: 'vxe-table-custom-popup--name',
279
287
  attrs: {
280
288
  title: colTitle
281
289
  }
282
- }, colTitle)]), allowFixed ? h('td', {
290
+ }, colTitle)]), allowResizable ? h('td', {
291
+ class: 'vxe-table-custom-popup--column-item col--resizable'
292
+ }, [!isChecked || column.children && column.children.length ? h('span', '-') : h('vxe-input', {
293
+ props: {
294
+ type: 'integer',
295
+ min: 40,
296
+ value: column.renderResizeWidth
297
+ },
298
+ on: {
299
+ modelValue: function modelValue(value) {
300
+ column.renderResizeWidth = Math.max(40, Number(value));
301
+ }
302
+ }
303
+ })]) : _e(), allowFixed ? h('td', {
283
304
  class: 'vxe-table-custom-popup--column-item col--fixed'
284
- }, [!parent ? h('vxe-radio-group', {
305
+ }, [parent ? h('span', '-') : h('vxe-radio-group', {
285
306
  props: {
286
307
  value: column.renderFixed || '',
287
308
  type: 'button',
@@ -306,7 +327,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
306
327
  // changePopupFixedOption(column)
307
328
  // }
308
329
  }
309
- }) : null]) : _e()]));
330
+ })]) : _e()]));
310
331
  }
311
332
  });
312
333
  var isAllChecked = customStore.isAll;
@@ -314,13 +335,13 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
314
335
  return h('vxe-modal', {
315
336
  key: 'popup',
316
337
  props: {
317
- className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
338
+ className: ['vxe-table-custom-popup-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
318
339
  value: customStore.visible,
319
- title: _conf.default.i18n('vxe.custom.cstmTitle'),
320
- width: '40vw',
321
- minWidth: 520,
322
- height: '50vh',
323
- minHeight: 300,
340
+ title: modalOpts.title || _conf.default.i18n('vxe.custom.cstmTitle'),
341
+ width: modalOpts.width || '50vw',
342
+ minWidth: modalOpts.minWidth || 700,
343
+ height: modalOpts.height || '50vh',
344
+ minHeight: modalOpts.minHeight || 400,
324
345
  mask: true,
325
346
  lockView: true,
326
347
  showFooter: true,
@@ -340,11 +361,11 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
340
361
  class: 'vxe-table-custom-popup--body'
341
362
  }, [h('div', {
342
363
  class: 'vxe-table-custom-popup--table-wrapper'
343
- }, [h('table', {}, [h('colgroup', {}, [h('col', {
364
+ }, [h('table', {}, [h('colgroup', {}, [allowVisible ? h('col', {
344
365
  style: {
345
366
  width: '80px'
346
367
  }
347
- }), allowSort ? h('col', {
368
+ }) : _e(), allowSort ? h('col', {
348
369
  style: {
349
370
  width: '80px'
350
371
  }
@@ -352,11 +373,15 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
352
373
  style: {
353
374
  minWidth: '120px'
354
375
  }
355
- }), allowFixed ? h('col', {
376
+ }), allowResizable ? h('col', {
377
+ style: {
378
+ width: '140px'
379
+ }
380
+ }) : _e(), allowFixed ? h('col', {
356
381
  style: {
357
382
  width: '200px'
358
383
  }
359
- }) : _e()]), h('thead', {}, [h('tr', {}, [h('th', {}, [h('div', {
384
+ }) : _e()]), h('thead', {}, [h('tr', {}, [allowVisible ? h('th', {}, [h('div', {
360
385
  class: ['vxe-table-custom--checkbox-option', {
361
386
  'is--checked': isAllChecked,
362
387
  'is--indeterminate': isAllIndeterminate
@@ -371,7 +396,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
371
396
  class: ['vxe-checkbox--icon', isAllIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
372
397
  }), h('span', {
373
398
  class: 'vxe-checkbox--label'
374
- }, _conf.default.i18n('vxe.toolbar.customAll'))])]), allowSort ? h('th', {}, [h('span', {
399
+ }, _conf.default.i18n('vxe.toolbar.customAll'))])]) : _e(), allowSort ? h('th', {}, [h('span', {
375
400
  class: 'vxe-table-custom-popup--table-sort-help-title'
376
401
  }, _conf.default.i18n('vxe.custom.setting.colSort')), h('vxe-tooltip', {
377
402
  props: {
@@ -385,7 +410,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
385
410
  });
386
411
  }
387
412
  }
388
- })]) : _e(), h('th', {}, _conf.default.i18n('vxe.custom.setting.colTitle')), allowFixed ? h('th', {}, _conf.default.i18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : _e()])]), h('transition-group', {
413
+ })]) : _e(), h('th', {}, _conf.default.i18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, _conf.default.i18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, _conf.default.i18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : _e()])]), h('transition-group', {
389
414
  class: 'vxe-table-custom--body',
390
415
  props: {
391
416
  tag: 'tbody',
@@ -485,18 +510,39 @@ var _default2 = exports.default = {
485
510
  updateStore({
486
511
  id: id,
487
512
  type: type,
488
- storeData: this.getStoreData()
513
+ storeData: $xetable.getCustomStoreData()
489
514
  });
490
515
  }
491
516
  },
492
517
  confirmCustomEvent: function confirmCustomEvent(evnt) {
493
518
  var $xetable = this.$xetable;
494
- var customColumnList = $xetable.customColumnList;
495
- customColumnList.forEach(function (column, index) {
496
- var sortIndex = index + 1;
497
- column.renderSortNumber = sortIndex;
498
- column.fixed = column.renderFixed;
499
- column.visible = column.renderVisible;
519
+ var customOpts = $xetable.customOpts,
520
+ customColumnList = $xetable.customColumnList;
521
+ var allowVisible = customOpts.allowVisible,
522
+ allowSort = customOpts.allowSort,
523
+ allowFixed = customOpts.allowFixed,
524
+ allowResizable = customOpts.allowResizable;
525
+ _xeUtils.default.eachTree(customColumnList, function (column, index, items, path, parent) {
526
+ if (!parent) {
527
+ if (allowSort) {
528
+ var sortIndex = index + 1;
529
+ column.renderSortNumber = sortIndex;
530
+ }
531
+ if (allowFixed) {
532
+ column.fixed = column.renderFixed;
533
+ }
534
+ }
535
+ if (allowResizable) {
536
+ if (column.renderVisible && (!column.children || column.children.length)) {
537
+ if (column.renderResizeWidth !== column.renderWidth) {
538
+ column.resizeWidth = column.renderResizeWidth;
539
+ column.renderWidth = column.renderResizeWidth;
540
+ }
541
+ }
542
+ }
543
+ if (allowVisible) {
544
+ column.visible = column.renderVisible;
545
+ }
500
546
  });
501
547
  $xetable.closeCustom();
502
548
  $xetable.emitCustomEvent('confirm', evnt);
@@ -505,19 +551,33 @@ var _default2 = exports.default = {
505
551
  cancelCustomEvent: function cancelCustomEvent(evnt) {
506
552
  var $xetable = this.$xetable;
507
553
  var customStore = $xetable.customStore,
554
+ customOpts = $xetable.customOpts,
508
555
  customColumnList = $xetable.customColumnList;
509
556
  var oldSortMaps = customStore.oldSortMaps,
510
557
  oldFixedMaps = customStore.oldFixedMaps,
511
558
  oldVisibleMaps = customStore.oldVisibleMaps;
559
+ var allowVisible = customOpts.allowVisible,
560
+ allowSort = customOpts.allowSort,
561
+ allowFixed = customOpts.allowFixed,
562
+ allowResizable = customOpts.allowResizable;
512
563
  _xeUtils.default.eachTree(customColumnList, function (column) {
513
564
  var colid = column.getKey();
514
565
  var visible = !!oldVisibleMaps[colid];
515
566
  var fixed = oldFixedMaps[colid] || '';
516
- column.renderVisible = visible;
517
- column.visible = visible;
518
- column.renderFixed = fixed;
519
- column.fixed = fixed;
520
- column.renderSortNumber = oldSortMaps[colid] || 0;
567
+ if (allowVisible) {
568
+ column.renderVisible = visible;
569
+ column.visible = visible;
570
+ }
571
+ if (allowFixed) {
572
+ column.renderFixed = fixed;
573
+ column.fixed = fixed;
574
+ }
575
+ if (allowSort) {
576
+ column.renderSortNumber = oldSortMaps[colid] || 0;
577
+ }
578
+ if (allowResizable) {
579
+ column.renderResizeWidth = column.renderWidth;
580
+ }
521
581
  }, {
522
582
  children: 'children'
523
583
  });
@@ -529,7 +589,7 @@ var _default2 = exports.default = {
529
589
  $xetable.resetColumn(true);
530
590
  $xetable.closeCustom();
531
591
  $xetable.emitCustomEvent('reset', evnt);
532
- this.handleSaveStore('confirm');
592
+ this.handleSaveStore('reset');
533
593
  },
534
594
  resetCustomEvent: function resetCustomEvent(evnt) {
535
595
  var _this = this;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vXETable=_interopRequireDefault(require("../../v-x-e-table")),_utils=_interopRequireDefault(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var formatText=_utils.default.formatText,addClass=_dom.default.addClass,removeClass=_dom.default.removeClass;function updateDropHint(e,t){var o,e=e.$refs,n=e.dragHintElemRef,e=e.bodyElemRef;e&&n&&(o=(e=e.parentNode).getBoundingClientRect(),n.style.display="block",n.style.top="".concat(Math.min(e.clientHeight-e.scrollTop-n.clientHeight,t.clientY-o.y),"px"),n.style.left="".concat(Math.min(e.clientWidth-e.scrollLeft-n.clientWidth-16,t.clientX-o.x),"px"))}var renderSimplePanel=function(u,d){var m=d._e,e=d.$xetable,t=d.customStore,o=e.customColumnList,n=e.customOpts,f=e.isMaxFixedColumn,e=t.maxHeight,v=n.checkMethod,p=n.visibleMethod,x=n.allowSort,b=n.allowFixed,i=n.trigger,h=[],l={},i=("hover"===i&&(l.mouseenter=d.handleWrapperMouseenterEvent,l.mouseleave=d.handleWrapperMouseleaveEvent),_xeUtils.default.eachTree(o,function(e,t,o,n,i){var l,s,a,r,c;p&&!p({column:e})||(l=e.renderVisible,s=e.halfVisible,a=e.children&&e.children.length,r=formatText(e.getTitle(),1),c=!!v&&!v({column:e}),h.push(u("li",{key:e.id,attrs:{colid:e.id},class:["vxe-table-custom--option","level--".concat(e.level),{"is--group":a}],on:{dragstart:d.sortDragstartEvent,dragend:d.sortDragendEvent,dragover:d.sortDragoverEvent}},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":l,"is--indeterminate":s,"is--disabled":c}],attrs:{title:_conf.default.i18n("vxe.custom.setting.colVisible")},on:{click:function(){c||d.changeCheckboxOption(e)}}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:l?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]})]),x&&1===e.level?u("div",{class:"vxe-table-custom--sort-option"},[u("span",{class:"vxe-table-custom--sort-btn",attrs:{title:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},on:{mousedown:d.sortMousedownEvent,mouseup:d.sortMouseupEvent}},[u("i",{class:_conf.default.icon.TABLE_CUSTOM_SORT})])]):m(),u("div",{class:"vxe-table-custom--checkbox-label",attrs:{title:r}},r),!i&&b?u("div",{class:"vxe-table-custom--fixed-option"},[u("span",{class:["vxe-table-custom--fixed-left-option","left"===e.renderFixed?_conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:_conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT,{"is--checked":"left"===e.renderFixed,"is--disabled":f&&!e.renderFixed}],attrs:{title:_conf.default.i18n("left"===e.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:function(){d.changeFixedOption(e,"left")}}}),u("span",{class:["vxe-table-custom--fixed-right-option","right"===e.renderFixed?_conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:_conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT,{"is--checked":"right"===e.renderFixed,"is--disabled":f&&!e.renderFixed}],attrs:{title:_conf.default.i18n("right"===e.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:function(){d.changeFixedOption(e,"right")}}})]):m()])))}),t.isAll),o=t.isIndeterminate;return u("div",{key:"simple",class:["vxe-table-custom-wrapper",{"is--active":t.visible}]},t.visible?[u("ul",{class:"vxe-table-custom--header"},[u("li",{class:"vxe-table-custom--option"},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":i,"is--indeterminate":o}],attrs:{title:_conf.default.i18n("vxe.table.allTitle")},on:{click:d.allCustomEvent}},[u("span",{class:["vxe-checkbox--icon",o?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:i?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]}),u("span",{class:"vxe-checkbox--label"},_conf.default.i18n("vxe.toolbar.customAll"))])])]),u("div",{ref:"bodyElemRef",class:"vxe-table-custom--list-wrapper"},[u("transition-group",{class:"vxe-table-custom--body",props:{name:"vxe-table-custom--list",tag:"ul"},style:e?{maxHeight:"".concat(e,"px")}:{},on:l},h),u("div",{ref:"dragHintElemRef",class:"vxe-table-custom-popup--drag-hint"},_conf.default.i18n("vxe.custom.cstmDragTarget",[d.dragColumn?d.dragColumn.getTitle():""]))]),n.showFooter?u("div",{class:"vxe-table-custom--footer"},[u("button",{class:"btn--reset",on:{click:d.resetCustomEvent}},n.resetButtonText||_conf.default.i18n("vxe.table.customRestore")),n.immediate?m():u("button",{class:"btn--cancel",on:{click:d.cancelCustomEvent}},n.resetButtonText||_conf.default.i18n("vxe.table.customCancel")),u("button",{class:"btn--confirm",on:{click:d.confirmCustomEvent}},n.confirmButtonText||_conf.default.i18n("vxe.table.customConfirm"))]):null]:[])},renderPopupPanel=function(u,d){var m=d._e,e=d.$xetable,t=d.customStore,o=e.customOpts,n=e.customColumnList,i=e.columnOpts,f=e.isMaxFixedColumn,v=o.allowSort,p=o.allowFixed,x=o.checkMethod,b=o.visibleMethod,h=[],l=(_xeUtils.default.eachTree(n,function(t,e,o,n,i){var l,s,a,r,c;b&&!b({column:t})||(l=t.renderVisible,s=t.halfVisible,a=formatText(t.getTitle(),1),r=t.children&&t.children.length,c=!!x&&!x({column:t}),h.push(u("tr",{key:t.id,attrs:{colid:t.id},class:["vxe-table-custom-popup--row level--".concat(t.level),{"is--group":r}],on:{dragstart:d.sortDragstartEvent,dragend:d.sortDragendEvent,dragover:d.sortDragoverEvent}},[u("td",{class:"vxe-table-custom-popup--column-item col--visible"},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":l,"is--indeterminate":s,"is--disabled":c}],attrs:{title:_conf.default.i18n("vxe.custom.setting.colVisible")},on:{click:function(){c||d.changeCheckboxOption(t)}}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:l?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]})])]),v?u("td",{class:"vxe-table-custom-popup--column-item col--sort"},[1===t.level?u("span",{class:"vxe-table-custom-popup--column-sort-btn",attrs:{title:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},on:{mousedown:d.sortMousedownEvent,mouseup:d.sortMouseupEvent}},[u("i",{class:_conf.default.icon.TABLE_CUSTOM_SORT})]):null]):m(),u("td",{class:"vxe-table-custom-popup--column-item col--name"},[u("div",{class:"vxe-table-custom-popup--name",attrs:{title:a}},a)]),p?u("td",{class:"vxe-table-custom-popup--column-item col--fixed"},[i?null:u("vxe-radio-group",{props:{value:t.renderFixed||"",type:"button",size:"mini",options:[{label:_conf.default.i18n("vxe.custom.setting.fixedLeft"),value:"left",disabled:f},{label:_conf.default.i18n("vxe.custom.setting.fixedUnset"),value:""},{label:_conf.default.i18n("vxe.custom.setting.fixedRight"),value:"right",disabled:f}]},on:{input:function(e){t.renderFixed=e}}})]):m()])))}),t.isAll),s=t.isIndeterminate;return u("vxe-modal",{key:"popup",props:{className:"vxe-table-custom-popup-wrapper vxe-table--ignore-clear",value:t.visible,title:_conf.default.i18n("vxe.custom.cstmTitle"),width:"40vw",minWidth:520,height:"50vh",minHeight:300,mask:!0,lockView:!0,showFooter:!0,resize:!0,escClosable:!0,destroyOnClose:!0},on:{input:function(e){t.visible=e}},scopedSlots:{default:function(){return u("div",{ref:"bodyElemRef",class:"vxe-table-custom-popup--body"},[u("div",{class:"vxe-table-custom-popup--table-wrapper"},[u("table",{},[u("colgroup",{},[u("col",{style:{width:"80px"}}),v?u("col",{style:{width:"80px"}}):m(),u("col",{style:{minWidth:"120px"}}),p?u("col",{style:{width:"200px"}}):m()]),u("thead",{},[u("tr",{},[u("th",{},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":l,"is--indeterminate":s}],attrs:{title:_conf.default.i18n("vxe.table.allTitle")},on:{click:d.allCustomEvent}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:l?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]}),u("span",{class:"vxe-checkbox--label"},_conf.default.i18n("vxe.toolbar.customAll"))])]),v?u("th",{},[u("span",{class:"vxe-table-custom-popup--table-sort-help-title"},_conf.default.i18n("vxe.custom.setting.colSort")),u("vxe-tooltip",{props:{enterable:!0,content:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},scopedSlots:{default:function(){return u("i",{class:"vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill"})}}})]):m(),u("th",{},_conf.default.i18n("vxe.custom.setting.colTitle")),p?u("th",{},_conf.default.i18n("vxe.custom.setting.colFixed",[i.maxFixedSize||0])):m()])]),u("transition-group",{class:"vxe-table-custom--body",props:{tag:"tbody",name:"vxe-table-custom--list"}},h)])]),u("div",{ref:"dragHintElemRef",class:"vxe-table-custom-popup--drag-hint"},_conf.default.i18n("vxe.custom.cstmDragTarget",[d.dragColumn?d.dragColumn.getTitle():""]))])},footer:function(){return u("div",{class:"vxe-table-custom-popup--footer"},[u("vxe-button",{props:{content:o.resetButtonText||_conf.default.i18n("vxe.custom.cstmRestore")},on:{click:d.resetCustomEvent}}),u("vxe-button",{props:{content:o.resetButtonText||_conf.default.i18n("vxe.custom.cstmCancel")},on:{click:d.cancelCustomEvent}}),u("vxe-button",{props:{status:"primary",content:o.confirmButtonText||_conf.default.i18n("vxe.custom.cstmConfirm")},on:{click:d.confirmCustomEvent}})])}}})},_default2=exports.default={name:"VxeTableCustomPanel",props:{customStore:{type:Object,default:function(){return{}}}},inject:{$xetable:{default:null}},data:function(){return{dragColumn:null}},computed:{},render:function(e){return("popup"===this.$xetable.customOpts.mode?renderPopupPanel:renderSimplePanel)(e,this)},methods:{handleWrapperMouseenterEvent:function(e){var t=this.$xetable;this.customStore.activeWrapper=!0,t.customOpenEvent(e)},handleWrapperMouseleaveEvent:function(e){var t=this.$xetable,o=this.customStore;o.activeWrapper=!1,setTimeout(function(){o.activeBtn||o.activeWrapper||t.customColseEvent(e)},300)},getStoreData:function(){return{}},handleSaveStore:function(e){var t=this.$xetable,o=t.id,t=t.customOpts,n=t.storage,t=t.updateStore;n&&o&&t&&t({id:o,type:e,storeData:this.getStoreData()})},confirmCustomEvent:function(e){var t=this.$xetable;t.customColumnList.forEach(function(e,t){e.renderSortNumber=t+1,e.fixed=e.renderFixed,e.visible=e.renderVisible}),t.closeCustom(),t.emitCustomEvent("confirm",e),this.handleSaveStore("confirm")},cancelCustomEvent:function(e){var t=this.$xetable,o=t.customStore,n=t.customColumnList,i=o.oldSortMaps,l=o.oldFixedMaps,s=o.oldVisibleMaps;_xeUtils.default.eachTree(n,function(e){var t=e.getKey(),o=!!s[t],n=l[t]||"";e.renderVisible=o,e.visible=o,e.renderFixed=n,e.fixed=n,e.renderSortNumber=i[t]||0},{children:"children"}),t.closeCustom(),t.emitCustomEvent("cancel",e)},handleResetCustomEvent:function(e){var t=this.$xetable;t.resetColumn(!0),t.closeCustom(),t.emitCustomEvent("reset",e),this.handleSaveStore("confirm")},resetCustomEvent:function(t){var o=this;_vXETable.default.modal?_vXETable.default.modal.confirm({content:_conf.default.i18n("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(function(e){"confirm"===e&&o.handleResetCustomEvent(t)}):this.handleResetCustomEvent(t)},resetPopupCustomEvent:function(t){var o=this;_vXETable.default.modal?_vXETable.default.modal.confirm({content:_conf.default.i18n("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(function(e){"confirm"===e&&o.resetCustomEvent(t)}):this.resetCustomEvent(t)},handleOptionCheck:function(t){var e=this.$xetable.customColumnList,e=_xeUtils.default.findTree(e,function(e){return e===t});e&&e.parent&&(e=e.parent).children&&e.children.length&&(e.visible=e.children.every(function(e){return e.visible}),e.halfVisible=!e.visible&&e.children.some(function(e){return e.visible||e.halfVisible}),this.handleOptionCheck(e))},changeCheckboxOption:function(e){var t=this.$xetable,o=t.customOpts,n=!e.renderVisible;_xeUtils.default.eachTree([e],function(e){e.renderVisible=n,e.halfVisible=!1}),this.handleOptionCheck(e),o.immediate&&t.handleCustom(),t.checkCustomStatus()},changeFixedOption:function(e,t){var o=this.$xetable.isMaxFixedColumn;e.renderFixed===t?e.renderFixed="":o&&!e.renderFixed||(e.renderFixed=t)},allCustomEvent:function(){var e=this.$xetable,t=this.customStore,o=e.customOpts,n=e.customColumnList,i=o.checkMethod,l=!t.isAll;_xeUtils.default.eachTree(n,function(e){i&&!i({column:e})||(e.renderVisible=l,e.halfVisible=!1)}),t.isAll=l,e.checkCustomStatus()},sortMousedownEvent:function(e){var t=this.$xetable,e=e.currentTarget.parentNode.parentNode,o=e.getAttribute("colid"),t=t.getColumnById(o);e.draggable=!0,this.dragColumn=t,addClass(e,"active--drag-origin")},sortMouseupEvent:function(e){var e=e.currentTarget.parentNode.parentNode,t=this.$refs.dragHintElemRef;e.draggable=!1,this.dragColumn=null,removeClass(e,"active--drag-origin"),t&&(t.style.display="")},sortDragstartEvent:function(e){var t=new Image;e.dataTransfer&&e.dataTransfer.setDragImage(t,0,0)},sortDragendEvent:function(e){var t=this.$xetable,o=this.prevDropTrEl,n=t.customColumnList,e=e.currentTarget,i=this.$refs.dragHintElemRef;if(o){if(o!==e){var l=o.getAttribute("drag-pos"),s=e.getAttribute("colid"),a=t.getColumnById(s);if(!a)return;var s=_xeUtils.default.findIndexOf(n,function(e){return e.id===a.id}),r=o.getAttribute("colid"),c=t.getColumnById(r);if(!c)return;n.splice(s,1);t=_xeUtils.default.findIndexOf(n,function(e){return e.id===c.id});n.splice(t+("bottom"===l?1:0),0,a)}o.draggable=!1,o.removeAttribute("drag-pos"),removeClass(o,"active--drag-target")}this.dragColumn=null,e.draggable=!1,e.removeAttribute("drag-pos"),i&&(i.style.display=""),removeClass(e,"active--drag-target"),removeClass(e,"active--drag-origin")},sortDragoverEvent:function(e){var t=this.$xetable,o=this.prevDropTrEl,n=e.currentTarget,o=(o!==n&&removeClass(o,"active--drag-target"),n.getAttribute("colid")),t=t.getColumnById(o);t&&1===t.level&&(e.preventDefault(),o=e.clientY-n.getBoundingClientRect().y<n.clientHeight/2?"top":"bottom",addClass(n,"active--drag-target"),n.setAttribute("drag-pos",o),this.prevDropTrEl=n),updateDropHint(this,e)}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vXETable=_interopRequireDefault(require("../../v-x-e-table")),_utils=_interopRequireDefault(require("../../tools/utils")),_dom=_interopRequireDefault(require("../../tools/dom")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var formatText=_utils.default.formatText,addClass=_dom.default.addClass,removeClass=_dom.default.removeClass;function updateDropHint(e,t){var o,e=e.$refs,i=e.dragHintElemRef,e=e.bodyElemRef;e&&i&&(o=(e=e.parentNode).getBoundingClientRect(),i.style.display="block",i.style.top="".concat(Math.min(e.clientHeight-e.scrollTop-i.clientHeight,t.clientY-o.y),"px"),i.style.left="".concat(Math.min(e.clientWidth-e.scrollLeft-i.clientWidth-16,t.clientX-o.x),"px"))}var renderSimplePanel=function(u,d){var m=d._e,e=d.$xetable,t=d.customStore,o=e.customColumnList,i=e.customOpts,f=e.isMaxFixedColumn,e=t.maxHeight,v=i.checkMethod,p=i.visibleMethod,x=i.allowVisible,b=i.allowSort,h=i.allowFixed,l=i.trigger,n=i.placement,g=[],s={},l=("hover"===l&&(s.mouseenter=d.handleWrapperMouseenterEvent,s.mouseleave=d.handleWrapperMouseleaveEvent),_xeUtils.default.eachTree(o,function(e,t,o,i,l){var n,s,a,r,c;p&&!p({column:e})||(n=e.renderVisible,s=e.halfVisible,a=e.children&&e.children.length,r=formatText(e.getTitle(),1),c=!!v&&!v({column:e}),g.push(u("li",{key:e.id,attrs:{colid:e.id},class:["vxe-table-custom--option","level--".concat(e.level),{"is--group":a}],on:{dragstart:d.sortDragstartEvent,dragend:d.sortDragendEvent,dragover:d.sortDragoverEvent}},[x?u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":n,"is--indeterminate":s,"is--disabled":c}],attrs:{title:_conf.default.i18n("vxe.custom.setting.colVisible")},on:{click:function(){c||d.changeCheckboxOption(e)}}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:n?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]})]):m(),b&&1===e.level?u("div",{class:"vxe-table-custom--sort-option"},[u("span",{class:"vxe-table-custom--sort-btn",attrs:{title:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},on:{mousedown:d.sortMousedownEvent,mouseup:d.sortMouseupEvent}},[u("i",{class:_conf.default.icon.TABLE_CUSTOM_SORT})])]):m(),u("div",{class:"vxe-table-custom--checkbox-label",attrs:{title:r}},r),!l&&h?u("div",{class:"vxe-table-custom--fixed-option"},[u("span",{class:["vxe-table-custom--fixed-left-option","left"===e.renderFixed?_conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:_conf.default.icon.TOOLBAR_TOOLS_FIXED_LEFT,{"is--checked":"left"===e.renderFixed,"is--disabled":f&&!e.renderFixed}],attrs:{title:_conf.default.i18n("left"===e.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:function(){d.changeFixedOption(e,"left")}}}),u("span",{class:["vxe-table-custom--fixed-right-option","right"===e.renderFixed?_conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:_conf.default.icon.TOOLBAR_TOOLS_FIXED_RIGHT,{"is--checked":"right"===e.renderFixed,"is--disabled":f&&!e.renderFixed}],attrs:{title:_conf.default.i18n("right"===e.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:function(){d.changeFixedOption(e,"right")}}})]):m()])))}),t.isAll),o=t.isIndeterminate;return u("div",{key:"simple",class:["vxe-table-custom-wrapper","placement--".concat(n),{"is--active":t.visible}],style:e&&!["left","right"].includes(n)?{maxHeight:"".concat(e,"px")}:{}},t.visible?[u("ul",{class:"vxe-table-custom--header"},[u("li",{class:"vxe-table-custom--option"},[x?u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":l,"is--indeterminate":o}],attrs:{title:_conf.default.i18n("vxe.table.allTitle")},on:{click:d.allCustomEvent}},[u("span",{class:["vxe-checkbox--icon",o?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:l?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]}),u("span",{class:"vxe-checkbox--label"},_conf.default.i18n("vxe.toolbar.customAll"))]):u("span",{class:"vxe-checkbox--label"},_conf.default.i18n("vxe.table.customTitle"))])]),u("div",{ref:"bodyElemRef",class:"vxe-table-custom--list-wrapper"},[u("transition-group",{class:"vxe-table-custom--body",props:{name:"vxe-table-custom--list",tag:"ul"},on:s},g),u("div",{ref:"dragHintElemRef",class:"vxe-table-custom-popup--drag-hint"},_conf.default.i18n("vxe.custom.cstmDragTarget",[d.dragColumn?d.dragColumn.getTitle():""]))]),i.showFooter?u("div",{class:"vxe-table-custom--footer"},[u("button",{class:"btn--reset",on:{click:d.resetCustomEvent}},i.resetButtonText||_conf.default.i18n("vxe.table.customRestore")),i.immediate?m():u("button",{class:"btn--cancel",on:{click:d.cancelCustomEvent}},i.resetButtonText||_conf.default.i18n("vxe.table.customCancel")),u("button",{class:"btn--confirm",on:{click:d.confirmCustomEvent}},i.confirmButtonText||_conf.default.i18n("vxe.table.customConfirm"))]):null]:[])},renderPopupPanel=function(u,d){var m=d._e,e=d.$xetable,t=d.customStore,o=e.customOpts,i=e.customColumnList,l=e.columnOpts,f=e.isMaxFixedColumn,e=o.modalOptions,v=o.allowVisible,p=o.allowSort,x=o.allowFixed,b=o.allowResizable,h=o.checkMethod,g=o.visibleMethod,e=Object.assign({},e),C=[],n=(_xeUtils.default.eachTree(i,function(t,e,o,i,l){var n,s,a,r,c;g&&!g({column:t})||(n=t.renderVisible,s=t.halfVisible,a=formatText(t.getTitle(),1),r=t.children&&t.children.length,c=!!h&&!h({column:t}),C.push(u("tr",{key:t.id,attrs:{colid:t.id},class:["vxe-table-custom-popup--row level--".concat(t.level),{"is--group":r}],on:{dragstart:d.sortDragstartEvent,dragend:d.sortDragendEvent,dragover:d.sortDragoverEvent}},[v?u("td",{class:"vxe-table-custom-popup--column-item col--visible"},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":n,"is--indeterminate":s,"is--disabled":c}],attrs:{title:_conf.default.i18n("vxe.custom.setting.colVisible")},on:{click:function(){c||d.changeCheckboxOption(t)}}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:n?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]})])]):m(),p?u("td",{class:"vxe-table-custom-popup--column-item col--sort"},[1===t.level?u("span",{class:"vxe-table-custom-popup--column-sort-btn",attrs:{title:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},on:{mousedown:d.sortMousedownEvent,mouseup:d.sortMouseupEvent}},[u("i",{class:_conf.default.icon.TABLE_CUSTOM_SORT})]):u("span","-")]):m(),u("td",{class:"vxe-table-custom-popup--column-item col--name"},[u("div",{class:"vxe-table-custom-popup--name",attrs:{title:a}},a)]),b?u("td",{class:"vxe-table-custom-popup--column-item col--resizable"},[!n||t.children&&t.children.length?u("span","-"):u("vxe-input",{props:{type:"integer",min:40,value:t.renderResizeWidth},on:{modelValue:function(e){t.renderResizeWidth=Math.max(40,Number(e))}}})]):m(),x?u("td",{class:"vxe-table-custom-popup--column-item col--fixed"},[l?u("span","-"):u("vxe-radio-group",{props:{value:t.renderFixed||"",type:"button",size:"mini",options:[{label:_conf.default.i18n("vxe.custom.setting.fixedLeft"),value:"left",disabled:f},{label:_conf.default.i18n("vxe.custom.setting.fixedUnset"),value:""},{label:_conf.default.i18n("vxe.custom.setting.fixedRight"),value:"right",disabled:f}]},on:{input:function(e){t.renderFixed=e}}})]):m()])))}),t.isAll),s=t.isIndeterminate;return u("vxe-modal",{key:"popup",props:{className:["vxe-table-custom-popup-wrapper","vxe-table--ignore-clear",e.className||""].join(" "),value:t.visible,title:e.title||_conf.default.i18n("vxe.custom.cstmTitle"),width:e.width||"50vw",minWidth:e.minWidth||700,height:e.height||"50vh",minHeight:e.minHeight||400,mask:!0,lockView:!0,showFooter:!0,resize:!0,escClosable:!0,destroyOnClose:!0},on:{input:function(e){t.visible=e}},scopedSlots:{default:function(){return u("div",{ref:"bodyElemRef",class:"vxe-table-custom-popup--body"},[u("div",{class:"vxe-table-custom-popup--table-wrapper"},[u("table",{},[u("colgroup",{},[v?u("col",{style:{width:"80px"}}):m(),p?u("col",{style:{width:"80px"}}):m(),u("col",{style:{minWidth:"120px"}}),b?u("col",{style:{width:"140px"}}):m(),x?u("col",{style:{width:"200px"}}):m()]),u("thead",{},[u("tr",{},[v?u("th",{},[u("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":n,"is--indeterminate":s}],attrs:{title:_conf.default.i18n("vxe.table.allTitle")},on:{click:d.allCustomEvent}},[u("span",{class:["vxe-checkbox--icon",s?_conf.default.icon.TABLE_CHECKBOX_INDETERMINATE:n?_conf.default.icon.TABLE_CHECKBOX_CHECKED:_conf.default.icon.TABLE_CHECKBOX_UNCHECKED]}),u("span",{class:"vxe-checkbox--label"},_conf.default.i18n("vxe.toolbar.customAll"))])]):m(),p?u("th",{},[u("span",{class:"vxe-table-custom-popup--table-sort-help-title"},_conf.default.i18n("vxe.custom.setting.colSort")),u("vxe-tooltip",{props:{enterable:!0,content:_conf.default.i18n("vxe.custom.setting.sortHelpTip")},scopedSlots:{default:function(){return u("i",{class:"vxe-table-custom-popup--table-sort-help-icon vxe-icon-question-circle-fill"})}}})]):m(),u("th",{},_conf.default.i18n("vxe.custom.setting.colTitle")),b?u("th",{},_conf.default.i18n("vxe.custom.setting.colResizable")):m(),x?u("th",{},_conf.default.i18n("vxe.custom.setting.colFixed",[l.maxFixedSize||0])):m()])]),u("transition-group",{class:"vxe-table-custom--body",props:{tag:"tbody",name:"vxe-table-custom--list"}},C)])]),u("div",{ref:"dragHintElemRef",class:"vxe-table-custom-popup--drag-hint"},_conf.default.i18n("vxe.custom.cstmDragTarget",[d.dragColumn?d.dragColumn.getTitle():""]))])},footer:function(){return u("div",{class:"vxe-table-custom-popup--footer"},[u("vxe-button",{props:{content:o.resetButtonText||_conf.default.i18n("vxe.custom.cstmRestore")},on:{click:d.resetCustomEvent}}),u("vxe-button",{props:{content:o.resetButtonText||_conf.default.i18n("vxe.custom.cstmCancel")},on:{click:d.cancelCustomEvent}}),u("vxe-button",{props:{status:"primary",content:o.confirmButtonText||_conf.default.i18n("vxe.custom.cstmConfirm")},on:{click:d.confirmCustomEvent}})])}}})},_default2=exports.default={name:"VxeTableCustomPanel",props:{customStore:{type:Object,default:function(){return{}}}},inject:{$xetable:{default:null}},data:function(){return{dragColumn:null}},computed:{},render:function(e){return("popup"===this.$xetable.customOpts.mode?renderPopupPanel:renderSimplePanel)(e,this)},methods:{handleWrapperMouseenterEvent:function(e){var t=this.$xetable;this.customStore.activeWrapper=!0,t.customOpenEvent(e)},handleWrapperMouseleaveEvent:function(e){var t=this.$xetable,o=this.customStore;o.activeWrapper=!1,setTimeout(function(){o.activeBtn||o.activeWrapper||t.customColseEvent(e)},300)},getStoreData:function(){return{}},handleSaveStore:function(e){var t=this.$xetable,o=t.id,i=t.customOpts,l=i.storage,i=i.updateStore;l&&o&&i&&i({id:o,type:e,storeData:t.getCustomStoreData()})},confirmCustomEvent:function(e){var t=this.$xetable,o=t.customOpts,i=t.customColumnList,n=o.allowVisible,s=o.allowSort,a=o.allowFixed,r=o.allowResizable;_xeUtils.default.eachTree(i,function(e,t,o,i,l){l||(s&&(e.renderSortNumber=t+1),a&&(e.fixed=e.renderFixed)),r&&e.renderVisible&&(!e.children||e.children.length)&&e.renderResizeWidth!==e.renderWidth&&(e.resizeWidth=e.renderResizeWidth,e.renderWidth=e.renderResizeWidth),n&&(e.visible=e.renderVisible)}),t.closeCustom(),t.emitCustomEvent("confirm",e),this.handleSaveStore("confirm")},cancelCustomEvent:function(e){var t=this.$xetable,o=t.customStore,i=t.customOpts,l=t.customColumnList,n=o.oldSortMaps,s=o.oldFixedMaps,a=o.oldVisibleMaps,r=i.allowVisible,c=i.allowSort,u=i.allowFixed,d=i.allowResizable;_xeUtils.default.eachTree(l,function(e){var t=e.getKey(),o=!!a[t],i=s[t]||"";r&&(e.renderVisible=o,e.visible=o),u&&(e.renderFixed=i,e.fixed=i),c&&(e.renderSortNumber=n[t]||0),d&&(e.renderResizeWidth=e.renderWidth)},{children:"children"}),t.closeCustom(),t.emitCustomEvent("cancel",e)},handleResetCustomEvent:function(e){var t=this.$xetable;t.resetColumn(!0),t.closeCustom(),t.emitCustomEvent("reset",e),this.handleSaveStore("reset")},resetCustomEvent:function(t){var o=this;_vXETable.default.modal?_vXETable.default.modal.confirm({content:_conf.default.i18n("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(function(e){"confirm"===e&&o.handleResetCustomEvent(t)}):this.handleResetCustomEvent(t)},resetPopupCustomEvent:function(t){var o=this;_vXETable.default.modal?_vXETable.default.modal.confirm({content:_conf.default.i18n("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(function(e){"confirm"===e&&o.resetCustomEvent(t)}):this.resetCustomEvent(t)},handleOptionCheck:function(t){var e=this.$xetable.customColumnList,e=_xeUtils.default.findTree(e,function(e){return e===t});e&&e.parent&&(e=e.parent).children&&e.children.length&&(e.visible=e.children.every(function(e){return e.visible}),e.halfVisible=!e.visible&&e.children.some(function(e){return e.visible||e.halfVisible}),this.handleOptionCheck(e))},changeCheckboxOption:function(e){var t=this.$xetable,o=t.customOpts,i=!e.renderVisible;_xeUtils.default.eachTree([e],function(e){e.renderVisible=i,e.halfVisible=!1}),this.handleOptionCheck(e),o.immediate&&t.handleCustom(),t.checkCustomStatus()},changeFixedOption:function(e,t){var o=this.$xetable.isMaxFixedColumn;e.renderFixed===t?e.renderFixed="":o&&!e.renderFixed||(e.renderFixed=t)},allCustomEvent:function(){var e=this.$xetable,t=this.customStore,o=e.customOpts,i=e.customColumnList,l=o.checkMethod,n=!t.isAll;_xeUtils.default.eachTree(i,function(e){l&&!l({column:e})||(e.renderVisible=n,e.halfVisible=!1)}),t.isAll=n,e.checkCustomStatus()},sortMousedownEvent:function(e){var t=this.$xetable,e=e.currentTarget.parentNode.parentNode,o=e.getAttribute("colid"),t=t.getColumnById(o);e.draggable=!0,this.dragColumn=t,addClass(e,"active--drag-origin")},sortMouseupEvent:function(e){var e=e.currentTarget.parentNode.parentNode,t=this.$refs.dragHintElemRef;e.draggable=!1,this.dragColumn=null,removeClass(e,"active--drag-origin"),t&&(t.style.display="")},sortDragstartEvent:function(e){var t=new Image;e.dataTransfer&&e.dataTransfer.setDragImage(t,0,0)},sortDragendEvent:function(e){var t=this.$xetable,o=this.prevDropTrEl,i=t.customColumnList,e=e.currentTarget,l=this.$refs.dragHintElemRef;if(o){if(o!==e){var n=o.getAttribute("drag-pos"),s=e.getAttribute("colid"),a=t.getColumnById(s);if(!a)return;var s=_xeUtils.default.findIndexOf(i,function(e){return e.id===a.id}),r=o.getAttribute("colid"),c=t.getColumnById(r);if(!c)return;i.splice(s,1);t=_xeUtils.default.findIndexOf(i,function(e){return e.id===c.id});i.splice(t+("bottom"===n?1:0),0,a)}o.draggable=!1,o.removeAttribute("drag-pos"),removeClass(o,"active--drag-target")}this.dragColumn=null,e.draggable=!1,e.removeAttribute("drag-pos"),l&&(l.style.display=""),removeClass(e,"active--drag-target"),removeClass(e,"active--drag-origin")},sortDragoverEvent:function(e){var t=this.$xetable,o=this.prevDropTrEl,i=e.currentTarget,o=(o!==i&&removeClass(o,"active--drag-target"),i.getAttribute("colid")),t=t.getColumnById(o);t&&1===t.level&&(e.preventDefault(),o=e.clientY-i.getBoundingClientRect().y<i.clientHeight/2?"top":"bottom",addClass(i,"active--drag-target"),i.setAttribute("drag-pos",o),this.prevDropTrEl=i),updateDropHint(this,e)}}};
@@ -216,6 +216,7 @@
216
216
 
217
217
  .vxe-table-custom-wrapper {
218
218
  display: none;
219
+ flex-direction: column;
219
220
  position: absolute;
220
221
  top: 1px;
221
222
  right: 2px;
@@ -226,26 +227,53 @@
226
227
  border-radius: 4px;
227
228
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.16);
228
229
  }
230
+ .vxe-table-custom-wrapper.placement--top-left {
231
+ top: 2px;
232
+ left: 2px;
233
+ }
234
+ .vxe-table-custom-wrapper.placement--top-right {
235
+ top: 2px;
236
+ right: 2px;
237
+ }
238
+ .vxe-table-custom-wrapper.placement--bottom-left {
239
+ bottom: 2px;
240
+ left: 2px;
241
+ }
242
+ .vxe-table-custom-wrapper.placement--bottom-right {
243
+ bottom: 2px;
244
+ right: 2px;
245
+ }
246
+ .vxe-table-custom-wrapper.placement--left {
247
+ left: 2px;
248
+ }
249
+ .vxe-table-custom-wrapper.placement--right {
250
+ right: 2px;
251
+ }
252
+ .vxe-table-custom-wrapper.placement--left, .vxe-table-custom-wrapper.placement--right {
253
+ top: 2px;
254
+ height: calc(100% - 4px);
255
+ }
229
256
  .vxe-table-custom-wrapper.is--active {
230
- display: block;
257
+ display: flex;
231
258
  }
232
259
 
233
260
  .vxe-table-custom--list-wrapper {
234
261
  display: block;
262
+ flex-grow: 1;
263
+ overflow-x: hidden;
264
+ overflow-y: auto;
235
265
  }
236
266
 
237
267
  .vxe-table-custom--header,
238
268
  .vxe-table-custom--body {
239
269
  list-style-type: none;
240
- overflow-x: hidden;
241
- overflow-y: auto;
242
270
  margin: 0;
243
271
  padding: 0;
244
272
  }
245
273
  .vxe-table-custom--header > li,
246
274
  .vxe-table-custom--body > li {
247
275
  max-width: 26em;
248
- min-width: 18em;
276
+ min-width: 17em;
249
277
  padding: 0.2em 1em 0.2em 1em;
250
278
  }
251
279
  .vxe-table-custom--header > li.level--2,
@@ -306,6 +334,7 @@
306
334
  }
307
335
 
308
336
  .vxe-table-custom--header {
337
+ flex-shrink: 0;
309
338
  padding: 0.28em 0;
310
339
  font-weight: 700;
311
340
  border-bottom: 1px solid #DADCE0;
@@ -317,7 +346,6 @@
317
346
 
318
347
  .vxe-table-custom--body {
319
348
  padding: 0.2em 0;
320
- max-height: 20em;
321
349
  }
322
350
  .vxe-table-custom--body .vxe-table-custom--checkbox-option:hover {
323
351
  background-color: #f5f7fa;
@@ -326,6 +354,7 @@
326
354
  .vxe-table-custom--footer {
327
355
  display: flex;
328
356
  flex-direction: row;
357
+ flex-shrink: 0;
329
358
  border-top: 1px solid #DADCE0;
330
359
  text-align: right;
331
360
  }
@@ -552,9 +581,12 @@
552
581
  .vxe-table-custom-popup--column-item {
553
582
  position: relative;
554
583
  }
555
- .vxe-table-custom-popup--column-item.col--sort, .vxe-table-custom-popup--column-item.col--visible, .vxe-table-custom-popup--column-item.col--fixed {
584
+ .vxe-table-custom-popup--column-item.col--sort, .vxe-table-custom-popup--column-item.col--visible, .vxe-table-custom-popup--column-item.col--resizable, .vxe-table-custom-popup--column-item.col--fixed {
556
585
  text-align: center;
557
586
  }
587
+ .vxe-table-custom-popup--column-item.col--resizable > .vxe-input {
588
+ width: 100%;
589
+ }
558
590
 
559
591
  .vxe-table-custom-popup--row.active--drag-target[drag-pos=top] .vxe-table-custom-popup--column-item::after {
560
592
  display: block;
@@ -1 +1 @@
1
- [class*=vxe-],[class*=vxe-] :after,[class*=vxe-] :before,[class*=vxe-]:after,[class*=vxe-]:before{box-sizing:border-box}[class*=vxe-]{font-variant:tabular-nums;font-feature-settings:"tnum"}.vxe-primary-color{color:#409eff}.vxe-success-color{color:#67c23a}.vxe-info-color{color:#909399}.vxe-warning-color{color:#e6a23c}.vxe-danger-color{color:#f56c6c}.vxe-perfect-color{color:#f8f8f9}.vxe-row:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-row>.vxe-col--1{float:left;width:4.16667%}.vxe-row>.vxe-col--2{float:left;width:8.33333%}.vxe-row>.vxe-col--3{float:left;width:12.5%}.vxe-row>.vxe-col--4{float:left;width:16.66667%}.vxe-row>.vxe-col--5{float:left;width:20.83333%}.vxe-row>.vxe-col--6{float:left;width:25%}.vxe-row>.vxe-col--7{float:left;width:29.16667%}.vxe-row>.vxe-col--8{float:left;width:33.33333%}.vxe-row>.vxe-col--9{float:left;width:37.5%}.vxe-row>.vxe-col--10{float:left;width:41.66667%}.vxe-row>.vxe-col--11{float:left;width:45.83333%}.vxe-row>.vxe-col--12{float:left;width:50%}.vxe-row>.vxe-col--13{float:left;width:54.16667%}.vxe-row>.vxe-col--14{float:left;width:58.33333%}.vxe-row>.vxe-col--15{float:left;width:62.5%}.vxe-row>.vxe-col--16{float:left;width:66.66667%}.vxe-row>.vxe-col--17{float:left;width:70.83333%}.vxe-row>.vxe-col--18{float:left;width:75%}.vxe-row>.vxe-col--19{float:left;width:79.16667%}.vxe-row>.vxe-col--20{float:left;width:83.33333%}.vxe-row>.vxe-col--21{float:left;width:87.5%}.vxe-row>.vxe-col--22{float:left;width:91.66667%}.vxe-row>.vxe-col--23{float:left;width:95.83333%}.vxe-row>.vxe-col--24{float:left;width:100%}.is--animat .vxe-filter--btn:after,.is--animat .vxe-filter--btn:before,.is--animat .vxe-sort--asc-btn:after,.is--animat .vxe-sort--asc-btn:before,.is--animat .vxe-sort--desc-btn:after,.is--animat .vxe-sort--desc-btn:before{transition:border .1s ease-in-out}.is--animat .vxe-input--wrapper .vxe-input{transition:border .1s ease-in-out}.is--animat .vxe-table--expand-btn,.is--animat .vxe-tree--node-btn{transition:transform .1s ease-in-out}.is--animat .vxe-checkbox>input:checked+span,.is--animat .vxe-radio>input:checked+span{transition:background-color .1s ease-in-out}.vxe-table-custom--option{position:relative;display:flex;flex-direction:row}.vxe-table-custom--option.active--drag-target[drag-pos=top]::after{display:block;top:-2px}.vxe-table-custom--option.active--drag-target[drag-pos=bottom]::after{display:block;bottom:-2px}.vxe-table-custom--option:first-child[drag-pos=top]::after{top:0}.vxe-table-custom--option:last-child[drag-pos=bottom]::after{bottom:0}.vxe-table-custom--option::after{display:none;content:"";position:absolute;left:-1px;width:calc(100% + 1px);height:3px;background-color:#409eff;z-index:12}.vxe-table-custom--option:last-child::after{width:100%}.vxe-table-custom-wrapper{display:none;position:absolute;top:1px;right:2px;text-align:left;background-color:#fff;z-index:19;border:1px solid #e8eaec;border-radius:4px;box-shadow:0 0 10px 0 rgba(0,0,0,.16)}.vxe-table-custom-wrapper.is--active{display:block}.vxe-table-custom--list-wrapper{display:block}.vxe-table-custom--body,.vxe-table-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0}.vxe-table-custom--body>li,.vxe-table-custom--header>li{max-width:26em;min-width:18em;padding:.2em 1em .2em 1em}.vxe-table-custom--body>li.level--2,.vxe-table-custom--header>li.level--2{padding-left:3.5em}.vxe-table-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-table-custom--body>li.level--3,.vxe-table-custom--header>li.level--3{padding-left:4.5em}.vxe-table-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-table-custom--body>li.level--4,.vxe-table-custom--header>li.level--4{padding-left:5.5em}.vxe-table-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-table-custom--body>li.level--5,.vxe-table-custom--header>li.level--5{padding-left:6.5em}.vxe-table-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-table-custom--body>li.level--6,.vxe-table-custom--header>li.level--6{padding-left:7.5em}.vxe-table-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-table-custom--body>li.level--7,.vxe-table-custom--header>li.level--7{padding-left:8.5em}.vxe-table-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-table-custom--body>li.level--8,.vxe-table-custom--header>li.level--8{padding-left:9.5em}.vxe-table-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-table-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid #dadce0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--body{padding:.2em 0;max-height:20em}.vxe-table-custom--body .vxe-table-custom--checkbox-option:hover{background-color:#f5f7fa}.vxe-table-custom--footer{display:flex;flex-direction:row;border-top:1px solid #dadce0;text-align:right}.vxe-table-custom--footer button{background-color:transparent;width:50%;height:2.8em;border:0;color:#606266;text-align:center;cursor:pointer}.vxe-table-custom--footer button:focus{outline:0}.vxe-table-custom--footer button:hover{color:#409eff}.vxe-table-custom--checkbox-option .vxe-checkbox--icon{font-size:1.34em}.vxe-table-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--checkbox-option.is--checked,.vxe-table-custom--checkbox-option.is--indeterminate{color:#409eff}.vxe-table-custom--checkbox-option.is--checked .vxe-checkbox--icon,.vxe-table-custom--checkbox-option.is--indeterminate .vxe-checkbox--icon{color:#409eff}.vxe-table-custom--checkbox-option:not(.is--disabled){cursor:pointer}.vxe-table-custom--checkbox-option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.vxe-table-custom--checkbox-option.is--disabled{color:#bfbfbf;cursor:not-allowed}.vxe-table-custom--checkbox-option.is--disabled .vxe-checkbox--icon{color:#dcdfe6}.vxe-table-custom--checkbox-option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-table-custom--checkbox-option,.vxe-table-custom--sort-option{padding-right:.4em;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--sort-option{display:flex;flex-direction:row;align-items:center;justify-content:center}.vxe-table-custom--sort-btn{padding-left:.2em;padding-right:.4em;cursor:grabbing}.vxe-table-custom--sort-btn:hover{color:#409eff}.vxe-table-custom--checkbox-label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table-custom--fixed-option{flex-shrink:0;padding-left:.5em;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--fixed-left-option,.vxe-table-custom--fixed-right-option{line-height:1.34em;font-size:1.1em;padding:0 .2em;cursor:pointer}.vxe-table-custom--fixed-left-option.is--checked,.vxe-table-custom--fixed-left-option:hover,.vxe-table-custom--fixed-right-option.is--checked,.vxe-table-custom--fixed-right-option:hover{color:#409eff}.vxe-table-custom--fixed-left-option.is--disabled,.vxe-table-custom--fixed-right-option.is--disabled{cursor:no-drop;color:#dcdfe6}.vxe-table-custom-popup--body{overflow:auto;height:100%}.vxe-table-custom-popup--table-wrapper{border-bottom:1px solid #e8eaec}.vxe-table-custom-popup--table-wrapper table{width:100%;border:0;table-layout:fixed;word-break:break-all;border-spacing:0;border-collapse:separate}.vxe-table-custom-popup--table-wrapper table th{position:sticky;top:0;text-align:left;border-top:1px solid #e8eaec;border-bottom:1px solid #e8eaec;border-left:1px solid #e8eaec;background-color:#f8f8f9;z-index:7}.vxe-table-custom-popup--table-wrapper table td{border-top:1px solid #e8eaec;border-left:1px solid #e8eaec}.vxe-table-custom-popup--table-wrapper table tr:first-child td{border-top:0}.vxe-table-custom-popup--table-wrapper table tr:hover{background-color:#f5f7fa}.vxe-table-custom-popup--table-wrapper table td,.vxe-table-custom-popup--table-wrapper table th{height:44px;padding:0 .6em}.vxe-table-custom-popup--table-wrapper table td:last-child,.vxe-table-custom-popup--table-wrapper table th:last-child{border-right:1px solid #e8eaec}.vxe-table-custom-popup--drag-hint{display:none;position:absolute;top:0;left:0;padding:.6em 1em .6em 1.8em;max-width:300px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background-color:#fff;box-shadow:0 0 10px 0 rgba(0,0,0,.2);z-index:33}.vxe-table-custom-popup--name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table-custom-popup--row.level--2 .vxe-table-custom-popup--name{padding-left:24px}.vxe-table-custom-popup--row.level--3 .vxe-table-custom-popup--name{padding-left:48px}.vxe-table-custom-popup--row.level--4 .vxe-table-custom-popup--name{padding-left:72px}.vxe-table-custom-popup--row.level--5 .vxe-table-custom-popup--name{padding-left:96px}.vxe-table-custom-popup--row.level--6 .vxe-table-custom-popup--name{padding-left:120px}.vxe-table-custom-popup--row.level--7 .vxe-table-custom-popup--name{padding-left:144px}.vxe-table-custom-popup--row.level--8 .vxe-table-custom-popup--name{padding-left:168px}.vxe-table-custom-popup--row.level--9 .vxe-table-custom-popup--name{padding-left:192px}.vxe-table-custom-popup--column-item{position:relative}.vxe-table-custom-popup--column-item.col--fixed,.vxe-table-custom-popup--column-item.col--sort,.vxe-table-custom-popup--column-item.col--visible{text-align:center}.vxe-table-custom-popup--row.active--drag-target[drag-pos=top] .vxe-table-custom-popup--column-item::after{display:block;top:-2px}.vxe-table-custom-popup--row.active--drag-target[drag-pos=bottom] .vxe-table-custom-popup--column-item::after{display:block;bottom:-2px}.vxe-table-custom-popup--row:first-child[drag-pos=top] .vxe-table-custom-popup--column-item::after{top:0}.vxe-table-custom-popup--row:last-child[drag-pos=bottom] .vxe-table-custom-popup--column-item::after{bottom:0}.vxe-table-custom-popup--column-item::after{display:none;content:"";position:absolute;left:-1px;width:calc(100% + 1px);height:3px;background-color:#409eff;z-index:12}.vxe-table-custom-popup--column-item:last-child::after{width:100%}.vxe-table-custom--list-move{transition:transform .35s}.vxe-table-custom-popup--column-sort-btn{font-size:1.2em;padding:.2em .5em;cursor:grab}.vxe-table-custom-popup--column-sort-btn:hover{color:#409eff}.vxe-table-custom-popup--column-sort-btn:active{cursor:grabbing}.vxe-table-custom-popup--table-sort-help-icon,.vxe-table-custom-popup--table-sort-help-title{vertical-align:middle}.vxe-table-custom-popup--table-sort-help-icon{margin-left:5px;cursor:help}
1
+ [class*=vxe-],[class*=vxe-] :after,[class*=vxe-] :before,[class*=vxe-]:after,[class*=vxe-]:before{box-sizing:border-box}[class*=vxe-]{font-variant:tabular-nums;font-feature-settings:"tnum"}.vxe-primary-color{color:#409eff}.vxe-success-color{color:#67c23a}.vxe-info-color{color:#909399}.vxe-warning-color{color:#e6a23c}.vxe-danger-color{color:#f56c6c}.vxe-perfect-color{color:#f8f8f9}.vxe-row:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-row>.vxe-col--1{float:left;width:4.16667%}.vxe-row>.vxe-col--2{float:left;width:8.33333%}.vxe-row>.vxe-col--3{float:left;width:12.5%}.vxe-row>.vxe-col--4{float:left;width:16.66667%}.vxe-row>.vxe-col--5{float:left;width:20.83333%}.vxe-row>.vxe-col--6{float:left;width:25%}.vxe-row>.vxe-col--7{float:left;width:29.16667%}.vxe-row>.vxe-col--8{float:left;width:33.33333%}.vxe-row>.vxe-col--9{float:left;width:37.5%}.vxe-row>.vxe-col--10{float:left;width:41.66667%}.vxe-row>.vxe-col--11{float:left;width:45.83333%}.vxe-row>.vxe-col--12{float:left;width:50%}.vxe-row>.vxe-col--13{float:left;width:54.16667%}.vxe-row>.vxe-col--14{float:left;width:58.33333%}.vxe-row>.vxe-col--15{float:left;width:62.5%}.vxe-row>.vxe-col--16{float:left;width:66.66667%}.vxe-row>.vxe-col--17{float:left;width:70.83333%}.vxe-row>.vxe-col--18{float:left;width:75%}.vxe-row>.vxe-col--19{float:left;width:79.16667%}.vxe-row>.vxe-col--20{float:left;width:83.33333%}.vxe-row>.vxe-col--21{float:left;width:87.5%}.vxe-row>.vxe-col--22{float:left;width:91.66667%}.vxe-row>.vxe-col--23{float:left;width:95.83333%}.vxe-row>.vxe-col--24{float:left;width:100%}.is--animat .vxe-filter--btn:after,.is--animat .vxe-filter--btn:before,.is--animat .vxe-sort--asc-btn:after,.is--animat .vxe-sort--asc-btn:before,.is--animat .vxe-sort--desc-btn:after,.is--animat .vxe-sort--desc-btn:before{transition:border .1s ease-in-out}.is--animat .vxe-input--wrapper .vxe-input{transition:border .1s ease-in-out}.is--animat .vxe-table--expand-btn,.is--animat .vxe-tree--node-btn{transition:transform .1s ease-in-out}.is--animat .vxe-checkbox>input:checked+span,.is--animat .vxe-radio>input:checked+span{transition:background-color .1s ease-in-out}.vxe-table-custom--option{position:relative;display:flex;flex-direction:row}.vxe-table-custom--option.active--drag-target[drag-pos=top]::after{display:block;top:-2px}.vxe-table-custom--option.active--drag-target[drag-pos=bottom]::after{display:block;bottom:-2px}.vxe-table-custom--option:first-child[drag-pos=top]::after{top:0}.vxe-table-custom--option:last-child[drag-pos=bottom]::after{bottom:0}.vxe-table-custom--option::after{display:none;content:"";position:absolute;left:-1px;width:calc(100% + 1px);height:3px;background-color:#409eff;z-index:12}.vxe-table-custom--option:last-child::after{width:100%}.vxe-table-custom-wrapper{display:none;flex-direction:column;position:absolute;top:1px;right:2px;text-align:left;background-color:#fff;z-index:19;border:1px solid #e8eaec;border-radius:4px;box-shadow:0 0 10px 0 rgba(0,0,0,.16)}.vxe-table-custom-wrapper.placement--top-left{top:2px;left:2px}.vxe-table-custom-wrapper.placement--top-right{top:2px;right:2px}.vxe-table-custom-wrapper.placement--bottom-left{bottom:2px;left:2px}.vxe-table-custom-wrapper.placement--bottom-right{bottom:2px;right:2px}.vxe-table-custom-wrapper.placement--left{left:2px}.vxe-table-custom-wrapper.placement--right{right:2px}.vxe-table-custom-wrapper.placement--left,.vxe-table-custom-wrapper.placement--right{top:2px;height:calc(100% - 4px)}.vxe-table-custom-wrapper.is--active{display:flex}.vxe-table-custom--list-wrapper{display:block;flex-grow:1;overflow-x:hidden;overflow-y:auto}.vxe-table-custom--body,.vxe-table-custom--header{list-style-type:none;margin:0;padding:0}.vxe-table-custom--body>li,.vxe-table-custom--header>li{max-width:26em;min-width:17em;padding:.2em 1em .2em 1em}.vxe-table-custom--body>li.level--2,.vxe-table-custom--header>li.level--2{padding-left:3.5em}.vxe-table-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-table-custom--body>li.level--3,.vxe-table-custom--header>li.level--3{padding-left:4.5em}.vxe-table-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-table-custom--body>li.level--4,.vxe-table-custom--header>li.level--4{padding-left:5.5em}.vxe-table-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-table-custom--body>li.level--5,.vxe-table-custom--header>li.level--5{padding-left:6.5em}.vxe-table-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-table-custom--body>li.level--6,.vxe-table-custom--header>li.level--6{padding-left:7.5em}.vxe-table-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-table-custom--body>li.level--7,.vxe-table-custom--header>li.level--7{padding-left:8.5em}.vxe-table-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-table-custom--body>li.level--8,.vxe-table-custom--header>li.level--8{padding-left:9.5em}.vxe-table-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-table-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-table-custom--header{flex-shrink:0;padding:.28em 0;font-weight:700;border-bottom:1px solid #dadce0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--body{padding:.2em 0}.vxe-table-custom--body .vxe-table-custom--checkbox-option:hover{background-color:#f5f7fa}.vxe-table-custom--footer{display:flex;flex-direction:row;flex-shrink:0;border-top:1px solid #dadce0;text-align:right}.vxe-table-custom--footer button{background-color:transparent;width:50%;height:2.8em;border:0;color:#606266;text-align:center;cursor:pointer}.vxe-table-custom--footer button:focus{outline:0}.vxe-table-custom--footer button:hover{color:#409eff}.vxe-table-custom--checkbox-option .vxe-checkbox--icon{font-size:1.34em}.vxe-table-custom--checkbox-option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--checkbox-option.is--checked,.vxe-table-custom--checkbox-option.is--indeterminate{color:#409eff}.vxe-table-custom--checkbox-option.is--checked .vxe-checkbox--icon,.vxe-table-custom--checkbox-option.is--indeterminate .vxe-checkbox--icon{color:#409eff}.vxe-table-custom--checkbox-option:not(.is--disabled){cursor:pointer}.vxe-table-custom--checkbox-option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.vxe-table-custom--checkbox-option.is--disabled{color:#bfbfbf;cursor:not-allowed}.vxe-table-custom--checkbox-option.is--disabled .vxe-checkbox--icon{color:#dcdfe6}.vxe-table-custom--checkbox-option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-table-custom--checkbox-option,.vxe-table-custom--sort-option{padding-right:.4em;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--sort-option{display:flex;flex-direction:row;align-items:center;justify-content:center}.vxe-table-custom--sort-btn{padding-left:.2em;padding-right:.4em;cursor:grabbing}.vxe-table-custom--sort-btn:hover{color:#409eff}.vxe-table-custom--checkbox-label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table-custom--fixed-option{flex-shrink:0;padding-left:.5em;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-table-custom--fixed-left-option,.vxe-table-custom--fixed-right-option{line-height:1.34em;font-size:1.1em;padding:0 .2em;cursor:pointer}.vxe-table-custom--fixed-left-option.is--checked,.vxe-table-custom--fixed-left-option:hover,.vxe-table-custom--fixed-right-option.is--checked,.vxe-table-custom--fixed-right-option:hover{color:#409eff}.vxe-table-custom--fixed-left-option.is--disabled,.vxe-table-custom--fixed-right-option.is--disabled{cursor:no-drop;color:#dcdfe6}.vxe-table-custom-popup--body{overflow:auto;height:100%}.vxe-table-custom-popup--table-wrapper{border-bottom:1px solid #e8eaec}.vxe-table-custom-popup--table-wrapper table{width:100%;border:0;table-layout:fixed;word-break:break-all;border-spacing:0;border-collapse:separate}.vxe-table-custom-popup--table-wrapper table th{position:sticky;top:0;text-align:left;border-top:1px solid #e8eaec;border-bottom:1px solid #e8eaec;border-left:1px solid #e8eaec;background-color:#f8f8f9;z-index:7}.vxe-table-custom-popup--table-wrapper table td{border-top:1px solid #e8eaec;border-left:1px solid #e8eaec}.vxe-table-custom-popup--table-wrapper table tr:first-child td{border-top:0}.vxe-table-custom-popup--table-wrapper table tr:hover{background-color:#f5f7fa}.vxe-table-custom-popup--table-wrapper table td,.vxe-table-custom-popup--table-wrapper table th{height:44px;padding:0 .6em}.vxe-table-custom-popup--table-wrapper table td:last-child,.vxe-table-custom-popup--table-wrapper table th:last-child{border-right:1px solid #e8eaec}.vxe-table-custom-popup--drag-hint{display:none;position:absolute;top:0;left:0;padding:.6em 1em .6em 1.8em;max-width:300px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;background-color:#fff;box-shadow:0 0 10px 0 rgba(0,0,0,.2);z-index:33}.vxe-table-custom-popup--name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table-custom-popup--row.level--2 .vxe-table-custom-popup--name{padding-left:24px}.vxe-table-custom-popup--row.level--3 .vxe-table-custom-popup--name{padding-left:48px}.vxe-table-custom-popup--row.level--4 .vxe-table-custom-popup--name{padding-left:72px}.vxe-table-custom-popup--row.level--5 .vxe-table-custom-popup--name{padding-left:96px}.vxe-table-custom-popup--row.level--6 .vxe-table-custom-popup--name{padding-left:120px}.vxe-table-custom-popup--row.level--7 .vxe-table-custom-popup--name{padding-left:144px}.vxe-table-custom-popup--row.level--8 .vxe-table-custom-popup--name{padding-left:168px}.vxe-table-custom-popup--row.level--9 .vxe-table-custom-popup--name{padding-left:192px}.vxe-table-custom-popup--column-item{position:relative}.vxe-table-custom-popup--column-item.col--fixed,.vxe-table-custom-popup--column-item.col--resizable,.vxe-table-custom-popup--column-item.col--sort,.vxe-table-custom-popup--column-item.col--visible{text-align:center}.vxe-table-custom-popup--column-item.col--resizable>.vxe-input{width:100%}.vxe-table-custom-popup--row.active--drag-target[drag-pos=top] .vxe-table-custom-popup--column-item::after{display:block;top:-2px}.vxe-table-custom-popup--row.active--drag-target[drag-pos=bottom] .vxe-table-custom-popup--column-item::after{display:block;bottom:-2px}.vxe-table-custom-popup--row:first-child[drag-pos=top] .vxe-table-custom-popup--column-item::after{top:0}.vxe-table-custom-popup--row:last-child[drag-pos=bottom] .vxe-table-custom-popup--column-item::after{bottom:0}.vxe-table-custom-popup--column-item::after{display:none;content:"";position:absolute;left:-1px;width:calc(100% + 1px);height:3px;background-color:#409eff;z-index:12}.vxe-table-custom-popup--column-item:last-child::after{width:100%}.vxe-table-custom--list-move{transition:transform .35s}.vxe-table-custom-popup--column-sort-btn{font-size:1.2em;padding:.2em .5em;cursor:grab}.vxe-table-custom-popup--column-sort-btn:hover{color:#409eff}.vxe-table-custom-popup--column-sort-btn:active{cursor:grabbing}.vxe-table-custom-popup--table-sort-help-icon,.vxe-table-custom-popup--table-sort-help-title{vertical-align:middle}.vxe-table-custom-popup--table-sort-help-icon{margin-left:5px;cursor:help}
@@ -767,10 +767,10 @@ var _default = exports.default = {
767
767
  autoselect = editRender.autoselect;
768
768
  var inputElem;
769
769
  if (!autofocus && compRender) {
770
- autofocus = compRender.autofocus;
770
+ autofocus = compRender.tableAutofocus || compRender.autofocus;
771
771
  }
772
772
  if (!autoselect && compRender) {
773
- autoselect = compRender.autoselect;
773
+ autoselect = compRender.tableAutoSelect || compRender.autoselect;
774
774
  }
775
775
  // 如果指定了聚焦 class
776
776
  if (_xeUtils.default.isFunction(autofocus)) {