vxe-table 3.8.2 → 3.8.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/lib/button/style/style.css +6 -6
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/checkbox/src/group.js +7 -2
  4. package/lib/checkbox/src/group.min.js +1 -1
  5. package/lib/custom/src/mixin.js +3 -1
  6. package/lib/custom/src/mixin.min.js +1 -1
  7. package/lib/custom/src/panel.js +198 -45
  8. package/lib/custom/src/panel.min.js +1 -1
  9. package/lib/custom/style/style.css +327 -80
  10. package/lib/custom/style/style.min.css +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.css +1 -1
  14. package/lib/index.umd.js +316 -95
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/input/style/style.css +0 -1
  17. package/lib/input/style/style.min.css +1 -1
  18. package/lib/loading/src/loading.js +1 -1
  19. package/lib/loading/src/loading.min.js +1 -1
  20. package/lib/loading/style/style.css +1 -1
  21. package/lib/loading/style/style.min.css +1 -1
  22. package/lib/locale/lang/en-US.js +18 -7
  23. package/lib/locale/lang/en-US.min.js +1 -1
  24. package/lib/locale/lang/en-US.umd.js +18 -7
  25. package/lib/locale/lang/es-ES.js +18 -7
  26. package/lib/locale/lang/es-ES.min.js +1 -1
  27. package/lib/locale/lang/es-ES.umd.js +18 -7
  28. package/lib/locale/lang/ja-JP.js +18 -6
  29. package/lib/locale/lang/ja-JP.min.js +1 -1
  30. package/lib/locale/lang/ja-JP.umd.js +18 -6
  31. package/lib/locale/lang/pt-BR.js +18 -7
  32. package/lib/locale/lang/pt-BR.min.js +1 -1
  33. package/lib/locale/lang/pt-BR.umd.js +18 -7
  34. package/lib/locale/lang/zh-CN.js +18 -7
  35. package/lib/locale/lang/zh-CN.min.js +1 -1
  36. package/lib/locale/lang/zh-CN.umd.js +18 -7
  37. package/lib/locale/lang/zh-HK.min.js +1 -1
  38. package/lib/locale/lang/zh-HK.umd.js +18 -7
  39. package/lib/locale/lang/zh-MO.min.js +1 -1
  40. package/lib/locale/lang/zh-MO.umd.js +18 -7
  41. package/lib/locale/lang/zh-TC.js +18 -7
  42. package/lib/locale/lang/zh-TC.min.js +1 -1
  43. package/lib/locale/lang/zh-TC.umd.js +18 -7
  44. package/lib/locale/lang/zh-TW.min.js +1 -1
  45. package/lib/locale/lang/zh-TW.umd.js +18 -7
  46. package/lib/modal/src/modal.js +1 -1
  47. package/lib/modal/src/modal.min.js +1 -1
  48. package/lib/radio/src/group.js +7 -2
  49. package/lib/radio/src/group.min.js +1 -1
  50. package/lib/style.css +1 -1
  51. package/lib/style.min.css +1 -1
  52. package/lib/table/src/columnInfo.js +10 -1
  53. package/lib/table/src/columnInfo.min.js +1 -1
  54. package/lib/table/src/methods.js +56 -33
  55. package/lib/table/src/methods.min.js +1 -1
  56. package/lib/table/src/table.js +4 -3
  57. package/lib/table/src/table.min.js +1 -1
  58. package/lib/table/style/style.css +4 -4
  59. package/lib/table/style/style.min.css +1 -1
  60. package/lib/tools/event.js +3 -3
  61. package/lib/tools/event.min.js +1 -1
  62. package/lib/tools/log.js +1 -1
  63. package/lib/tools/log.min.js +1 -1
  64. package/lib/v-x-e-table/index.js +1 -1
  65. package/lib/v-x-e-table/index.min.js +1 -1
  66. package/lib/v-x-e-table/style/style.css +1 -1
  67. package/lib/v-x-e-table/style/style.min.css +1 -1
  68. package/lib/vxe-button/style/style.css +6 -6
  69. package/lib/vxe-button/style/style.min.css +1 -1
  70. package/lib/vxe-input/style/style.css +0 -1
  71. package/lib/vxe-input/style/style.min.css +1 -1
  72. package/lib/vxe-loading/style/style.css +1 -1
  73. package/lib/vxe-loading/style/style.min.css +1 -1
  74. package/lib/vxe-table/style/style.css +4 -4
  75. package/lib/vxe-table/style/style.min.css +1 -1
  76. package/lib/vxe-table-custom-module/style/style.css +327 -80
  77. package/lib/vxe-table-custom-module/style/style.min.css +1 -1
  78. package/package.json +1 -1
  79. package/packages/checkbox/src/group.js +6 -2
  80. package/packages/custom/src/mixin.js +2 -1
  81. package/packages/custom/src/panel.js +214 -52
  82. package/packages/loading/src/loading.js +1 -1
  83. package/packages/locale/lang/en-US.js +18 -7
  84. package/packages/locale/lang/es-ES.js +18 -7
  85. package/packages/locale/lang/ja-JP.js +18 -6
  86. package/packages/locale/lang/pt-BR.js +18 -7
  87. package/packages/locale/lang/zh-CN.js +18 -7
  88. package/packages/locale/lang/zh-TC.js +18 -7
  89. package/packages/modal/src/modal.js +1 -1
  90. package/packages/radio/src/group.js +6 -2
  91. package/packages/table/src/columnInfo.js +9 -3
  92. package/packages/table/src/methods.js +51 -33
  93. package/packages/table/src/table.js +4 -3
  94. package/packages/tools/event.js +3 -3
  95. package/styles/base/common.scss +4 -4
  96. package/styles/button.scss +5 -5
  97. package/styles/custom.scss +192 -86
  98. package/styles/helpers/mixin.scss +1 -1
  99. package/styles/input.scss +1 -2
  100. package/styles/loading.scss +1 -1
  101. package/styles/modal.scss +2 -2
  102. package/styles/select.scss +1 -1
  103. package/styles/table.scss +2 -2
  104. /package/lib/icon/style/{iconfont.1714101947757.ttf → iconfont.1714297580334.ttf} +0 -0
  105. /package/lib/icon/style/{iconfont.1714101947757.woff → iconfont.1714297580334.woff} +0 -0
  106. /package/lib/icon/style/{iconfont.1714101947757.woff2 → iconfont.1714297580334.woff2} +0 -0
  107. /package/lib/{iconfont.1714101947757.ttf → iconfont.1714297580334.ttf} +0 -0
  108. /package/lib/{iconfont.1714101947757.woff → iconfont.1714297580334.woff} +0 -0
  109. /package/lib/{iconfont.1714101947757.woff2 → iconfont.1714297580334.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11346,7 +11346,7 @@ var es_array_concat = __webpack_require__(8706);
11346
11346
 
11347
11347
 
11348
11348
  function getLog(message, params) {
11349
- return "[vxe-table v".concat("3.8.2", "] ").concat(conf.i18n(message, params));
11349
+ return "[vxe-table v".concat("3.8.3-beta.1", "] ").concat(conf.i18n(message, params));
11350
11350
  }
11351
11351
  function outLog(type) {
11352
11352
  return function (message, params) {
@@ -13067,7 +13067,7 @@ var setup = config;
13067
13067
  var globalStore = {};
13068
13068
  var VXETable = {
13069
13069
  v: v,
13070
- version: "3.8.2",
13070
+ version: "3.8.3-beta.1",
13071
13071
  reg: reg,
13072
13072
  use: use,
13073
13073
  setup: setup,
@@ -13110,6 +13110,7 @@ var es_string_fixed = __webpack_require__(4298);
13110
13110
 
13111
13111
 
13112
13112
 
13113
+
13113
13114
  var ColumnInfo = /*#__PURE__*/function () {
13114
13115
  /* eslint-disable @typescript-eslint/no-use-before-define */
13115
13116
  function ColumnInfo($xetable, _vm) {
@@ -13183,9 +13184,18 @@ var ColumnInfo = /*#__PURE__*/function () {
13183
13184
  level: 1,
13184
13185
  rowSpan: 1,
13185
13186
  colSpan: 1,
13187
+ // 数据排序
13186
13188
  order: null,
13189
+ // 用于记录排序类型,升序和倒序
13187
13190
  sortTime: 0,
13188
- customOrder: 0,
13191
+ // 用于多列的先后顺序
13192
+
13193
+ // 列排序
13194
+ sortNumber: 0,
13195
+ // 用于记录自定义列顺序
13196
+ renderSortNumber: 0,
13197
+ // 用于记录自定义列顺序
13198
+
13189
13199
  renderWidth: 0,
13190
13200
  renderHeight: 0,
13191
13201
  resizeWidth: 0,
@@ -15572,9 +15582,9 @@ var GlobalEvent = {
15572
15582
  };
15573
15583
  if (browse.isDoc) {
15574
15584
  if (!browse.msie) {
15575
- document.addEventListener('copy', GlobalEvent.trigger, false);
15576
- document.addEventListener('cut', GlobalEvent.trigger, false);
15577
- document.addEventListener('paste', GlobalEvent.trigger, false);
15585
+ window.addEventListener('copy', GlobalEvent.trigger, false);
15586
+ window.addEventListener('cut', GlobalEvent.trigger, false);
15587
+ window.addEventListener('paste', GlobalEvent.trigger, false);
15578
15588
  }
15579
15589
  document.addEventListener('keydown', GlobalEvent.trigger, false);
15580
15590
  document.addEventListener('contextmenu', GlobalEvent.trigger, false);
@@ -16553,7 +16563,7 @@ var debounceScrollYDuration = browse.msie ? 80 : 20;
16553
16563
  var resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH';
16554
16564
  var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
16555
16565
  var fixedStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_FIXED';
16556
- var orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER';
16566
+ var sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
16557
16567
 
16558
16568
  /**
16559
16569
  * 生成行的唯一主键
@@ -17131,7 +17141,7 @@ var Methods = {
17131
17141
  this.collectColumn = collectColumn;
17132
17142
  var tableFullColumn = methods_getColumnList(collectColumn);
17133
17143
  this.tableFullColumn = tableFullColumn;
17134
- this.cacheColumnMap();
17144
+ this.cacheColumnMap(true);
17135
17145
  this.restoreCustomStorage();
17136
17146
  this.parseColumns().then(function () {
17137
17147
  if (_this9.scrollXLoad) {
@@ -17307,7 +17317,7 @@ var Methods = {
17307
17317
  * 更新数据列的 Map
17308
17318
  * 牺牲数据组装的耗时,用来换取使用过程中的流畅
17309
17319
  */
17310
- cacheColumnMap: function cacheColumnMap() {
17320
+ cacheColumnMap: function cacheColumnMap(isInit) {
17311
17321
  var _this13 = this;
17312
17322
  var tableFullColumn = this.tableFullColumn,
17313
17323
  collectColumn = this.collectColumn,
@@ -17368,6 +17378,9 @@ var Methods = {
17368
17378
  if (fullColumnIdData[colid]) {
17369
17379
  errLog('vxe.error.colRepet', ['colId', colid]);
17370
17380
  }
17381
+ if (isInit) {
17382
+ column.sortNumber = index;
17383
+ }
17371
17384
  fullColumnIdData[colid] = rest;
17372
17385
  fullColumnMap.set(column, rest);
17373
17386
  };
@@ -18298,7 +18311,8 @@ var Methods = {
18298
18311
  var opts = Object.assign({
18299
18312
  visible: true,
18300
18313
  resizable: options === true,
18301
- fixed: options === true
18314
+ fixed: options === true,
18315
+ sort: options === true
18302
18316
  }, options);
18303
18317
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column) {
18304
18318
  if (opts.resizable) {
@@ -18307,6 +18321,9 @@ var Methods = {
18307
18321
  if (opts.fixed) {
18308
18322
  column.fixed = column.defaultFixed;
18309
18323
  }
18324
+ if (opts.sort) {
18325
+ column.renderSortNumber = column.sortNumber;
18326
+ }
18310
18327
  if (!checkMethod || checkMethod({
18311
18328
  column: column
18312
18329
  })) {
@@ -18324,7 +18341,7 @@ var Methods = {
18324
18341
  handleCustom: function handleCustom() {
18325
18342
  this.saveCustomVisible();
18326
18343
  this.analyColumnWidth();
18327
- return this.refreshColumn();
18344
+ return this.refreshColumn(true);
18328
18345
  },
18329
18346
  /**
18330
18347
  * 还原自定义列操作状态
@@ -18335,12 +18352,13 @@ var Methods = {
18335
18352
  customConfig = this.customConfig,
18336
18353
  customOpts = this.customOpts;
18337
18354
  var storage = customOpts.storage;
18338
- var isAllStorage = customOpts.storage === true;
18339
- var isCustomResizable = isAllStorage || storage && storage.resizable;
18340
- var isCustomVisible = isAllStorage || storage && storage.visible;
18341
- var isCustomFixed = storage === true || storage && storage.fixed;
18342
- var isCustomOrder = storage === true || storage && storage.order;
18343
- if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomOrder)) {
18355
+ var isAllStorage = storage === true;
18356
+ var storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
18357
+ var isCustomResizable = isAllStorage || storageOpts.resizable;
18358
+ var isCustomVisible = isAllStorage || storageOpts.visible;
18359
+ var isCustomFixed = isAllStorage || storageOpts.fixed;
18360
+ var isCustomSort = isAllStorage || storageOpts.sort;
18361
+ if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
18344
18362
  var customMap = {};
18345
18363
  if (!id) {
18346
18364
  errLog('vxe.error.reqProp', ['id']);
@@ -18379,18 +18397,23 @@ var Methods = {
18379
18397
  }
18380
18398
  }
18381
18399
  // 自定义顺序
18382
- if (isCustomOrder) {
18383
- var columnOrderStorage = getCustomStorageMap(orderStorageKey)[id];
18384
- if (columnOrderStorage) {
18385
- // const colOrderSeqs = columnOrderStorage.split(',')
18386
- // colOrderSeqs.forEach((orderConf) => {
18387
- // const [colKey, order] = orderConf.split('|')
18388
- // if (customMap[colKey]) {
18389
- // customMap[colKey].order = order
18390
- // } else {
18391
- // customMap[colKey] = { order }
18392
- // }
18393
- // })
18400
+ if (isCustomSort) {
18401
+ var columnSortStorage = getCustomStorageMap(sortStorageKey)[id];
18402
+ if (columnSortStorage) {
18403
+ var colOrderSeqs = columnSortStorage.split(',');
18404
+ colOrderSeqs.forEach(function (orderConf) {
18405
+ var _orderConf$split = orderConf.split('|'),
18406
+ _orderConf$split2 = _slicedToArray(_orderConf$split, 2),
18407
+ colKey = _orderConf$split2[0],
18408
+ sortNumber = _orderConf$split2[1];
18409
+ if (customMap[colKey]) {
18410
+ customMap[colKey].sortNumber = sortNumber;
18411
+ } else {
18412
+ customMap[colKey] = {
18413
+ sortNumber: sortNumber
18414
+ };
18415
+ }
18416
+ });
18394
18417
  }
18395
18418
  }
18396
18419
  if (isCustomVisible) {
@@ -18432,7 +18455,7 @@ var Methods = {
18432
18455
  var visible = _ref5.visible,
18433
18456
  resizeWidth = _ref5.resizeWidth,
18434
18457
  fixed = _ref5.fixed,
18435
- order = _ref5.order;
18458
+ sortNumber = _ref5.sortNumber;
18436
18459
  var column = keyMap[field];
18437
18460
  if (column) {
18438
18461
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(resizeWidth)) {
@@ -18444,8 +18467,8 @@ var Methods = {
18444
18467
  if (fixed) {
18445
18468
  column.fixed = fixed;
18446
18469
  }
18447
- if (order) {
18448
- column.colSeq = order;
18470
+ if (sortNumber) {
18471
+ column.colSeq = Number(sortNumber);
18449
18472
  }
18450
18473
  }
18451
18474
  });
@@ -18457,8 +18480,9 @@ var Methods = {
18457
18480
  customConfig = this.customConfig,
18458
18481
  customOpts = this.customOpts;
18459
18482
  var storage = customOpts.storage;
18460
- var isAllStorage = customOpts.storage === true;
18461
- var isCustomFixed = isAllStorage || storage && storage.fixed;
18483
+ var isAllStorage = storage === true;
18484
+ var storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
18485
+ var isCustomFixed = isAllStorage || storageOpts.fixed;
18462
18486
  if (customConfig && isCustomFixed) {
18463
18487
  var columnFixedStorageMap = getCustomStorageMap(fixedStorageKey);
18464
18488
  var colFixeds = [];
@@ -18485,8 +18509,9 @@ var Methods = {
18485
18509
  customOpts = this.customOpts;
18486
18510
  var checkMethod = customOpts.checkMethod,
18487
18511
  storage = customOpts.storage;
18488
- var isAllStorage = customOpts.storage === true;
18489
- var isCustomVisible = isAllStorage || storage && storage.visible;
18512
+ var isAllStorage = storage === true;
18513
+ var storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
18514
+ var isCustomVisible = isAllStorage || storageOpts.visible;
18490
18515
  if (customConfig && isCustomVisible) {
18491
18516
  var columnVisibleStorageMap = getCustomStorageMap(visibleStorageKey);
18492
18517
  var colHides = [];
@@ -18522,8 +18547,9 @@ var Methods = {
18522
18547
  customConfig = this.customConfig,
18523
18548
  customOpts = this.customOpts;
18524
18549
  var storage = customOpts.storage;
18525
- var isAllStorage = customOpts.storage === true;
18526
- var isResizable = isAllStorage || storage && storage.resizable;
18550
+ var isAllStorage = storage === true;
18551
+ var storageOpts = isAllStorage ? {} : Object.assign({}, storage || {});
18552
+ var isResizable = isAllStorage || storageOpts.resizable;
18527
18553
  if (customConfig && isResizable) {
18528
18554
  var columnWidthStorageMap = getCustomStorageMap(resizableStorageKey);
18529
18555
  var columnWidthStorage;
@@ -18555,8 +18581,15 @@ var Methods = {
18555
18581
  /**
18556
18582
  * 刷新列配置
18557
18583
  */
18558
- refreshColumn: function refreshColumn() {
18584
+ refreshColumn: function refreshColumn(resiveOrder) {
18559
18585
  var _this21 = this;
18586
+ if (resiveOrder) {
18587
+ var columnList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(this.collectColumn, 'renderSortNumber');
18588
+ this.collectColumn = columnList;
18589
+ var tableFullColumn = methods_getColumnList(columnList);
18590
+ this.tableFullColumn = tableFullColumn;
18591
+ this.cacheColumnMap();
18592
+ }
18560
18593
  return this.parseColumns().then(function () {
18561
18594
  return _this21.refreshScroll();
18562
18595
  }).then(function () {
@@ -22716,7 +22749,7 @@ funcs.forEach(function (name) {
22716
22749
  'is--visible': this.value
22717
22750
  }]
22718
22751
  }, defaultSlot ? [h('div', {
22719
- class: 'vxe-loading--warpper'
22752
+ class: 'vxe-loading--wrapper'
22720
22753
  }, defaultSlot.call(this, {}))] : [h('div', {
22721
22754
  class: 'vxe-loading--chunk'
22722
22755
  }, [loadingIcon ? h('i', {
@@ -23221,6 +23254,7 @@ function handleUupdateResize(_vm) {
23221
23254
  export: false,
23222
23255
  custom: false
23223
23256
  },
23257
+ customColumnList: [],
23224
23258
  // 刷新列标识,当列筛选被改变时,触发表格刷新数据
23225
23259
  upDataFlag: 0,
23226
23260
  // 刷新列标识,当列的特定属性被改变时,触发表格刷新列
@@ -23494,9 +23528,9 @@ function handleUupdateResize(_vm) {
23494
23528
  return Object.assign({}, conf.table.customConfig, this.customConfig);
23495
23529
  },
23496
23530
  fixedColumnSize: function fixedColumnSize() {
23497
- var tableFullColumn = this.tableFullColumn;
23531
+ var collectColumn = this.collectColumn;
23498
23532
  var fixedSize = 0;
23499
- tableFullColumn.forEach(function (column) {
23533
+ collectColumn.forEach(function (column) {
23500
23534
  if (column.fixed) {
23501
23535
  fixedSize++;
23502
23536
  }
@@ -23846,7 +23880,7 @@ function handleUupdateResize(_vm) {
23846
23880
  var leftList = columnStore.leftList,
23847
23881
  rightList = columnStore.rightList;
23848
23882
  return h('div', {
23849
- class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && conf.cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'is--header', showHeader), 'is--footer', showFooter), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), 'is--loading', loading), 'is--empty', !loading && !tableData.length), 'is--scroll-y', overflowY), _defineProperty(_defineProperty(_defineProperty(_ref, 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
23883
+ class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && conf.cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'is--header', showHeader), 'is--footer', showFooter), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), 'is--loading', loading), 'is--empty', !loading && !tableData.length), 'is--scroll-y', overflowY), _defineProperty(_defineProperty(_defineProperty(_ref, 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
23850
23884
  on: {
23851
23885
  keydown: this.keydownEvent
23852
23886
  }
@@ -26005,6 +26039,8 @@ var Edit = VxeTableEditModule;
26005
26039
 
26006
26040
 
26007
26041
 
26042
+
26043
+
26008
26044
 
26009
26045
  var allActivedModals = [];
26010
26046
  var msgQueue = [];
@@ -26339,7 +26375,7 @@ var msgQueue = [];
26339
26375
  }, h)) : title ? getFuncText(title) : conf.i18n('vxe.alert.title')), h('div', {
26340
26376
  class: 'vxe-modal--header-right'
26341
26377
  }, [cornerSlot ? h('span', {
26342
- class: 'vxe-modal--corner-warpper'
26378
+ class: 'vxe-modal--corner-wrapper'
26343
26379
  }, getSlotVNs(cornerSlot({
26344
26380
  $modal: this
26345
26381
  }))) : _e(), showZoom ? h('i', {
@@ -34318,14 +34354,17 @@ var Validator = VxeTableValidatorModule;
34318
34354
  /* harmony default export */ var validator = ((/* unused pure expression or super */ null && (VxeTableValidatorModule)));
34319
34355
  ;// CONCATENATED MODULE: ./packages/custom/src/mixin.js
34320
34356
 
34357
+
34321
34358
  /* harmony default export */ var custom_src_mixin = ({
34322
34359
  methods: {
34323
34360
  _openCustom: function _openCustom() {
34324
34361
  var _this = this;
34325
34362
  var initStore = this.initStore,
34326
- customStore = this.customStore;
34363
+ customStore = this.customStore,
34364
+ collectColumn = this.collectColumn;
34327
34365
  customStore.visible = true;
34328
34366
  initStore.custom = true;
34367
+ this.customColumnList = collectColumn.slice(0);
34329
34368
  this.checkCustomStatus();
34330
34369
  this.calcMaxHeight();
34331
34370
  return this.$nextTick().then(function () {
@@ -34422,11 +34461,31 @@ var Validator = VxeTableValidatorModule;
34422
34461
 
34423
34462
 
34424
34463
 
34464
+
34465
+
34466
+ var panel_formatText = utils.formatText;
34467
+ var panel_addClass = dom.addClass,
34468
+ panel_removeClass = dom.removeClass;
34469
+ function updateDropHint(_vm, evnt) {
34470
+ var $refs = _vm.$refs;
34471
+ var dragHintEl = $refs.dragHintElemRef;
34472
+ var bodyEl = $refs.bodyElemRef;
34473
+ if (!bodyEl) {
34474
+ return;
34475
+ }
34476
+ if (dragHintEl) {
34477
+ var warpperEl = bodyEl.parentNode;
34478
+ var warpperRect = warpperEl.getBoundingClientRect();
34479
+ dragHintEl.style.display = 'block';
34480
+ dragHintEl.style.top = "".concat(Math.min(warpperEl.clientHeight - warpperEl.scrollTop - dragHintEl.clientHeight, evnt.clientY - warpperRect.y), "px");
34481
+ dragHintEl.style.left = "".concat(Math.min(warpperEl.clientWidth - warpperEl.scrollLeft - dragHintEl.clientWidth - 16, evnt.clientX - warpperRect.x), "px");
34482
+ }
34483
+ }
34425
34484
  function renderSimplePanel(h, _vm) {
34426
34485
  var $xetable = _vm.$xetable,
34427
34486
  customStore = _vm.customStore;
34428
34487
  var customOpts = $xetable.customOpts,
34429
- collectColumn = $xetable.collectColumn,
34488
+ customColumnList = $xetable.customColumnList,
34430
34489
  isMaxFixedColumn = $xetable.isMaxFixedColumn;
34431
34490
  var maxHeight = customStore.maxHeight;
34432
34491
  var checkMethod = customOpts.checkMethod,
@@ -34436,18 +34495,18 @@ function renderSimplePanel(h, _vm) {
34436
34495
  var customWrapperOns = {};
34437
34496
  // hover 触发
34438
34497
  if (trigger === 'hover') {
34439
- customWrapperOns.onMouseenter = _vm.handleWrapperMouseenterEvent;
34440
- customWrapperOns.onMouseleave = _vm.handleWrapperMouseleaveEvent;
34498
+ customWrapperOns.mouseenter = _vm.handleWrapperMouseenterEvent;
34499
+ customWrapperOns.mouseleave = _vm.handleWrapperMouseleaveEvent;
34441
34500
  }
34442
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column, index, items, path, parent) {
34501
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column, index, items, path, parent) {
34443
34502
  var isVisible = visibleMethod ? visibleMethod({
34444
34503
  column: column
34445
34504
  }) : true;
34446
34505
  if (isVisible) {
34447
34506
  var isChecked = column.visible;
34448
34507
  var isIndeterminate = column.halfVisible;
34449
- var colTitle = utils.formatText(column.getTitle(), 1);
34450
34508
  var isColGroup = column.children && column.children.length;
34509
+ var colTitle = panel_formatText(column.getTitle(), 1);
34451
34510
  var isDisabled = checkMethod ? !checkMethod({
34452
34511
  column: column
34453
34512
  }) : false;
@@ -34457,14 +34516,12 @@ function renderSimplePanel(h, _vm) {
34457
34516
  'is--group': isColGroup
34458
34517
  }]
34459
34518
  }, [h('div', {
34519
+ title: colTitle,
34460
34520
  class: ['vxe-table-custom--checkbox-option', {
34461
34521
  'is--checked': isChecked,
34462
34522
  'is--indeterminate': isIndeterminate,
34463
34523
  'is--disabled': isDisabled
34464
34524
  }],
34465
- attrs: {
34466
- title: colTitle
34467
- },
34468
34525
  on: {
34469
34526
  click: function click() {
34470
34527
  if (!isDisabled) {
@@ -34533,12 +34590,13 @@ function renderSimplePanel(h, _vm) {
34533
34590
  class: ['vxe-checkbox--icon', isAllIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
34534
34591
  }), h('span', {
34535
34592
  class: 'vxe-checkbox--label'
34536
- }, conf.i18n('vxe.toolbar.customAll'))])])]), h('ul', _objectSpread2({
34593
+ }, conf.i18n('vxe.toolbar.customAll'))])])]), h('ul', {
34537
34594
  class: 'vxe-table-custom--body',
34538
34595
  style: maxHeight ? {
34539
34596
  maxHeight: "".concat(maxHeight, "px")
34540
- } : {}
34541
- }, customWrapperOns), colVNs), customOpts.showFooter ? h('div', {
34597
+ } : {},
34598
+ on: customWrapperOns
34599
+ }, colVNs), customOpts.showFooter ? h('div', {
34542
34600
  class: 'vxe-table-custom--footer'
34543
34601
  }, [h('button', {
34544
34602
  class: 'btn--reset',
@@ -34552,41 +34610,59 @@ function renderSimplePanel(h, _vm) {
34552
34610
  }
34553
34611
  }, customOpts.confirmButtonText || conf.i18n('vxe.toolbar.customConfirm'))]) : null]);
34554
34612
  }
34555
- var renderPopupPanel = function renderPopupPanel(h, _vm) {
34613
+ function renderPopupPanel(h, _vm) {
34556
34614
  var $xetable = _vm.$xetable,
34557
34615
  customStore = _vm.customStore;
34558
34616
  var customOpts = $xetable.customOpts,
34559
- collectColumn = $xetable.collectColumn,
34617
+ customColumnList = $xetable.customColumnList,
34560
34618
  isMaxFixedColumn = $xetable.isMaxFixedColumn;
34561
34619
  var checkMethod = customOpts.checkMethod,
34562
34620
  visibleMethod = customOpts.visibleMethod;
34563
34621
  var trVNs = [];
34564
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column, index, items, path, parent) {
34622
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column, index, items, path, parent) {
34565
34623
  var isVisible = visibleMethod ? visibleMethod({
34566
34624
  column: column
34567
34625
  }) : true;
34568
34626
  if (isVisible) {
34569
34627
  var isChecked = column.visible;
34570
34628
  var isIndeterminate = column.halfVisible;
34571
- var colTitle = utils.formatText(column.getTitle(), 1);
34629
+ var colTitle = panel_formatText(column.getTitle(), 1);
34572
34630
  var isColGroup = column.children && column.children.length;
34573
34631
  var isDisabled = checkMethod ? !checkMethod({
34574
34632
  column: column
34575
34633
  }) : false;
34576
34634
  trVNs.push(h('tr', {
34577
34635
  key: column.id,
34578
- class: ["vxe-table-custom-popup--row-level".concat(column.level), {
34636
+ class: ["vxe-table-custom-popup--row level--".concat(column.level), {
34579
34637
  'is--group': isColGroup
34580
- }]
34638
+ }],
34639
+ attrs: {
34640
+ colid: column.id
34641
+ },
34642
+ on: {
34643
+ dragstart: _vm.sortDragstartEvent,
34644
+ dragend: _vm.sortDragendEvent,
34645
+ dragover: _vm.sortDragoverEvent
34646
+ }
34581
34647
  }, [h('td', {
34582
- class: 'vxe-table-custom-popup--column-name'
34648
+ class: 'vxe-table-custom-popup--column-item col--sort'
34649
+ }, [column.level === 1 ? h('span', {
34650
+ class: 'vxe-table-custom-popup--column-sort-btn',
34651
+ on: {
34652
+ mousedown: _vm.sortMousedownEvent,
34653
+ mouseup: _vm.sortMouseupEvent
34654
+ }
34655
+ }, [h('i', {
34656
+ class: 'vxe-icon-sort'
34657
+ })]) : null]), h('td', {
34658
+ class: 'vxe-table-custom-popup--column-item col--name'
34583
34659
  }, [h('div', {
34584
34660
  class: 'vxe-table-custom-popup--name',
34585
34661
  attrs: {
34586
34662
  title: colTitle
34587
34663
  }
34588
34664
  }, colTitle)]), h('td', {
34589
- class: 'vxe-table-custom-popup--column-visiblw'
34665
+ class: 'vxe-table-custom-popup--column-item col--visible'
34590
34666
  }, [h('div', {
34591
34667
  class: ['vxe-table-custom--checkbox-option', {
34592
34668
  'is--checked': isChecked,
@@ -34603,22 +34679,23 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34603
34679
  }, [h('span', {
34604
34680
  class: ['vxe-checkbox--icon', isIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
34605
34681
  })])]), h('td', {
34606
- class: 'vxe-table-custom-popup--column-fixed'
34682
+ class: 'vxe-table-custom-popup--column-item col--fixed'
34607
34683
  }, [!parent && customOpts.allowFixed ? h('vxe-radio-group', {
34608
34684
  props: {
34609
34685
  value: column.fixed || '',
34610
- disabled: isMaxFixedColumn,
34611
34686
  type: 'button',
34612
34687
  size: 'mini',
34613
34688
  options: [{
34614
- label: '左侧',
34615
- value: 'left'
34689
+ label: conf.i18n('vxe.custom.setting.fixedLeft'),
34690
+ value: 'left',
34691
+ disabled: isMaxFixedColumn
34616
34692
  }, {
34617
- label: '不固定',
34693
+ label: conf.i18n('vxe.custom.setting.fixedUnset'),
34618
34694
  value: ''
34619
34695
  }, {
34620
- label: '右侧',
34621
- value: 'right'
34696
+ label: conf.i18n('vxe.custom.setting.fixedRight'),
34697
+ value: 'right',
34698
+ disabled: isMaxFixedColumn
34622
34699
  }]
34623
34700
  },
34624
34701
  on: {
@@ -34635,15 +34712,19 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34635
34712
  return h('vxe-modal', {
34636
34713
  key: 'popup',
34637
34714
  props: {
34638
- className: 'vxe-table-custom-popup-warpper vxe-table--ignore-clear',
34639
34715
  value: customStore.visible,
34640
34716
  title: conf.i18n('vxe.custom.cstmTitle'),
34641
- width: 700,
34642
- maxHeight: 500,
34717
+ className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
34718
+ width: '40vw',
34719
+ minWidth: 500,
34720
+ height: '50vh',
34721
+ minHeight: 300,
34643
34722
  mask: true,
34644
34723
  lockView: true,
34645
34724
  showFooter: true,
34646
- escClosable: true
34725
+ resize: true,
34726
+ escClosable: true,
34727
+ destroyOnClose: true
34647
34728
  },
34648
34729
  on: {
34649
34730
  input: function input(value) {
@@ -34653,8 +34734,15 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34653
34734
  scopedSlots: {
34654
34735
  default: function _default() {
34655
34736
  return h('div', {
34737
+ ref: 'bodyElemRef',
34656
34738
  class: 'vxe-table-custom-popup--body'
34657
- }, [h('table', {}, [h('colgroup', {}, [h('col'), h('col', {
34739
+ }, [h('div', {
34740
+ class: 'vxe-table-custom-popup--table-wrapper'
34741
+ }, [h('table', {}, [h('colgroup', {}, [h('col', {
34742
+ style: {
34743
+ width: '60px'
34744
+ }
34745
+ }), h('col'), h('col', {
34658
34746
  style: {
34659
34747
  width: '80px'
34660
34748
  }
@@ -34662,7 +34750,16 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34662
34750
  style: {
34663
34751
  width: '200px'
34664
34752
  }
34665
- })]), h('thead', {}, [h('tr', {}, [h('th', {}, '标题'), h('th', {}, '是否显示'), h('th', {}, '是否固定')])]), h('tbody', {}, trVNs)])]);
34753
+ })]), h('thead', {}, [h('tr', {}, [h('th', {}, conf.i18n('vxe.custom.setting.colSort')), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), h('th', {}, conf.i18n('vxe.custom.setting.colVisible')), h('th', {}, conf.i18n('vxe.custom.setting.colFixed'))])]), h('transition-group', {
34754
+ class: 'vxe-table-custom--body',
34755
+ props: {
34756
+ tag: 'tbody',
34757
+ name: 'vxe-table-custom--flip'
34758
+ }
34759
+ }, trVNs)])]), h('div', {
34760
+ ref: 'dragHintElemRef',
34761
+ class: 'vxe-table-custom-popup--drag-hint'
34762
+ }, conf.i18n('vxe.custom.cstmDragTarget', [_vm.dragColumn ? _vm.dragColumn.getTitle() : '']))]);
34666
34763
  },
34667
34764
  footer: function footer() {
34668
34765
  return h('div', {
@@ -34693,7 +34790,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34693
34790
  }
34694
34791
  }
34695
34792
  });
34696
- };
34793
+ }
34697
34794
  /* harmony default export */ var custom_src_panel = ({
34698
34795
  name: 'VxeTableCustomPanel',
34699
34796
  props: {
@@ -34709,6 +34806,11 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34709
34806
  default: null
34710
34807
  }
34711
34808
  },
34809
+ data: function data() {
34810
+ return {
34811
+ dragColumn: null
34812
+ };
34813
+ },
34712
34814
  computed: {},
34713
34815
  render: function render(h) {
34714
34816
  var $xetable = this.$xetable;
@@ -34756,8 +34858,8 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34756
34858
  },
34757
34859
  handleOptionCheck: function handleOptionCheck(column) {
34758
34860
  var $xetable = this.$xetable;
34759
- var collectColumn = $xetable.collectColumn;
34760
- var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn, function (item) {
34861
+ var customColumnList = $xetable.customColumnList;
34862
+ var matchObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(customColumnList, function (item) {
34761
34863
  return item === column;
34762
34864
  });
34763
34865
  if (matchObj && matchObj.parent) {
@@ -34807,12 +34909,12 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34807
34909
  },
34808
34910
  allCustomEvent: function allCustomEvent() {
34809
34911
  var $xetable = this.$xetable,
34810
- customStore = this.customStore,
34811
- collectColumn = this.collectColumn,
34812
- customOpts = this.customOpts;
34912
+ customStore = this.customStore;
34913
+ var customOpts = $xetable.customOpts,
34914
+ customColumnList = $xetable.customColumnList;
34813
34915
  var checkMethod = customOpts.checkMethod;
34814
34916
  var isAll = !customStore.isAll;
34815
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column) {
34917
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column) {
34816
34918
  if (!checkMethod || checkMethod({
34817
34919
  column: column
34818
34920
  })) {
@@ -34822,6 +34924,103 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
34822
34924
  });
34823
34925
  customStore.isAll = isAll;
34824
34926
  $xetable.checkCustomStatus();
34927
+ },
34928
+ sortMousedownEvent: function sortMousedownEvent(evnt) {
34929
+ var $xetable = this.$xetable;
34930
+ var btnEl = evnt.currentTarget;
34931
+ var tdEl = btnEl.parentNode;
34932
+ var trEl = tdEl.parentNode;
34933
+ var colid = trEl.getAttribute('colid');
34934
+ var column = $xetable.getColumnById(colid);
34935
+ trEl.draggable = true;
34936
+ this.dragColumn = column;
34937
+ panel_addClass(trEl, 'active--drag-origin');
34938
+ },
34939
+ sortMouseupEvent: function sortMouseupEvent(evnt) {
34940
+ var btnEl = evnt.currentTarget;
34941
+ var tdEl = btnEl.parentNode;
34942
+ var trEl = tdEl.parentNode;
34943
+ var dragHintEl = this.$refs.dragHintElemRef;
34944
+ trEl.draggable = false;
34945
+ this.dragColumn = null;
34946
+ panel_removeClass(trEl, 'active--drag-origin');
34947
+ if (dragHintEl) {
34948
+ dragHintEl.style.display = '';
34949
+ }
34950
+ },
34951
+ sortDragstartEvent: function sortDragstartEvent(evnt) {
34952
+ var img = new Image();
34953
+ if (evnt.dataTransfer) {
34954
+ evnt.dataTransfer.setDragImage(img, 0, 0);
34955
+ }
34956
+ },
34957
+ sortDragendEvent: function sortDragendEvent(evnt) {
34958
+ var $xetable = this.$xetable,
34959
+ prevDropTrEl = this.prevDropTrEl;
34960
+ var customColumnList = $xetable.customColumnList;
34961
+ var trEl = evnt.currentTarget;
34962
+ var dragHintEl = this.$refs.dragHintElemRef;
34963
+ if (prevDropTrEl) {
34964
+ // 判断是否有拖动
34965
+ if (prevDropTrEl !== trEl) {
34966
+ var dragOffset = prevDropTrEl.getAttribute('drag-pos');
34967
+ var colid = trEl.getAttribute('colid');
34968
+ var column = $xetable.getColumnById(colid);
34969
+ if (!column) {
34970
+ return;
34971
+ }
34972
+ var cIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(customColumnList, function (item) {
34973
+ return item.id === column.id;
34974
+ });
34975
+ var targetColid = prevDropTrEl.getAttribute('colid');
34976
+ var targetColumn = $xetable.getColumnById(targetColid);
34977
+ if (!targetColumn) {
34978
+ return;
34979
+ }
34980
+ // 移出源位置
34981
+ customColumnList.splice(cIndex, 1);
34982
+ var tcIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(customColumnList, function (item) {
34983
+ return item.id === targetColumn.id;
34984
+ });
34985
+ // 插新位置
34986
+ customColumnList.splice(tcIndex + (dragOffset === 'bottom' ? 1 : 0), 0, column);
34987
+ }
34988
+ prevDropTrEl.draggable = false;
34989
+ prevDropTrEl.removeAttribute('drag-pos');
34990
+ panel_removeClass(prevDropTrEl, 'active--drag-target');
34991
+ }
34992
+ this.dragColumn = null;
34993
+ trEl.draggable = false;
34994
+ trEl.removeAttribute('drag-pos');
34995
+ if (dragHintEl) {
34996
+ dragHintEl.style.display = '';
34997
+ }
34998
+ panel_removeClass(trEl, 'active--drag-target');
34999
+ panel_removeClass(trEl, 'active--drag-origin');
35000
+ // 更新顺序
35001
+ customColumnList.forEach(function (column, index) {
35002
+ column.renderSortNumber = index;
35003
+ });
35004
+ },
35005
+ sortDragoverEvent: function sortDragoverEvent(evnt) {
35006
+ var $xetable = this.$xetable,
35007
+ prevDropTrEl = this.prevDropTrEl;
35008
+ var trEl = evnt.currentTarget;
35009
+ if (prevDropTrEl !== trEl) {
35010
+ panel_removeClass(prevDropTrEl, 'active--drag-target');
35011
+ }
35012
+ var colid = trEl.getAttribute('colid');
35013
+ var column = $xetable.getColumnById(colid);
35014
+ // 是否移入有效元行
35015
+ if (column && column.level === 1) {
35016
+ evnt.preventDefault();
35017
+ var offsetY = evnt.clientY - trEl.getBoundingClientRect().y;
35018
+ var dragOffset = offsetY < trEl.clientHeight / 2 ? 'top' : 'bottom';
35019
+ panel_addClass(trEl, 'active--drag-target');
35020
+ trEl.setAttribute('drag-pos', dragOffset);
35021
+ this.prevDropTrEl = trEl;
35022
+ }
35023
+ updateDropHint(this, evnt);
34825
35024
  }
34826
35025
  }
34827
35026
  });
@@ -37391,6 +37590,7 @@ var Checkbox = VxeCheckbox;
37391
37590
 
37392
37591
 
37393
37592
 
37593
+
37394
37594
  /* harmony default export */ var src_group = ({
37395
37595
  name: 'VxeCheckboxGroup',
37396
37596
  props: {
@@ -37439,13 +37639,17 @@ var Checkbox = VxeCheckbox;
37439
37639
  },
37440
37640
  valueField: function valueField() {
37441
37641
  return this.propsOpts.value || 'value';
37642
+ },
37643
+ disabledField: function disabledField() {
37644
+ return this.propsOpts.disabled || 'disabled';
37442
37645
  }
37443
37646
  },
37444
37647
  render: function render(h) {
37445
37648
  var $scopedSlots = this.$scopedSlots,
37446
37649
  options = this.options,
37447
37650
  valueField = this.valueField,
37448
- labelField = this.labelField;
37651
+ labelField = this.labelField,
37652
+ disabledField = this.disabledField;
37449
37653
  var defaultSlot = $scopedSlots.default;
37450
37654
  return h('div', {
37451
37655
  class: 'vxe-checkbox-group'
@@ -37453,7 +37657,8 @@ var Checkbox = VxeCheckbox;
37453
37657
  return h('vxe-checkbox', {
37454
37658
  props: {
37455
37659
  label: item[valueField],
37456
- content: item[labelField]
37660
+ content: item[labelField],
37661
+ disabled: item[disabledField]
37457
37662
  }
37458
37663
  });
37459
37664
  }) : []);
@@ -37553,6 +37758,9 @@ var Radio = VxeRadio;
37553
37758
  },
37554
37759
  valueField: function valueField() {
37555
37760
  return this.propsOpts.value || 'value';
37761
+ },
37762
+ disabledField: function disabledField() {
37763
+ return this.propsOpts.disabled || 'disabled';
37556
37764
  }
37557
37765
  },
37558
37766
  data: function data() {
@@ -37565,7 +37773,8 @@ var Radio = VxeRadio;
37565
37773
  options = this.options,
37566
37774
  type = this.type,
37567
37775
  valueField = this.valueField,
37568
- labelField = this.labelField;
37776
+ labelField = this.labelField,
37777
+ disabledField = this.disabledField;
37569
37778
  var defaultSlot = $scopedSlots.default;
37570
37779
  var btnComp = type === 'button' ? 'vxe-radio-button' : 'vxe-radio';
37571
37780
  return h('div', {
@@ -37574,7 +37783,8 @@ var Radio = VxeRadio;
37574
37783
  return h(btnComp, {
37575
37784
  props: {
37576
37785
  label: item[valueField],
37577
- content: item[labelField]
37786
+ content: item[labelField],
37787
+ disabled: item[disabledField]
37578
37788
  }
37579
37789
  });
37580
37790
  }) : []);
@@ -41339,7 +41549,7 @@ var Pulldown = VxePulldown;
41339
41549
  text: '加载中...'
41340
41550
  },
41341
41551
  error: {
41342
- groupFixed: '如果使用分组表头,固定列必须按组设置',
41552
+ groupFixed: '如果使用分组表头,冻结列必须按组设置',
41343
41553
  groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
41344
41554
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
41345
41555
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
@@ -41392,7 +41602,7 @@ var Pulldown = VxePulldown;
41392
41602
  customAll: '全部',
41393
41603
  customConfirm: '确认',
41394
41604
  customRestore: '重置',
41395
- maxFixedCol: '最大固定列的数量不能超过 {0} 个'
41605
+ maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
41396
41606
  },
41397
41607
  grid: {
41398
41608
  selectOneRecord: '请至少选择一条记录!',
@@ -41427,7 +41637,7 @@ var Pulldown = VxePulldown;
41427
41637
  endPageTitle: '末页'
41428
41638
  },
41429
41639
  alert: {
41430
- title: '消息提示'
41640
+ title: '系统提示'
41431
41641
  },
41432
41642
  button: {
41433
41643
  confirm: '确认',
@@ -41440,7 +41650,18 @@ var Pulldown = VxePulldown;
41440
41650
  cstmTitle: '列设置',
41441
41651
  cstmRestore: '恢复默认',
41442
41652
  cstmCancel: '取消',
41443
- cstmConfirm: '确定'
41653
+ cstmConfirm: '确定',
41654
+ cstmConfirmRestore: '请确认是否恢复成默认列配置?',
41655
+ cstmDragTarget: '移动目标:{0}',
41656
+ setting: {
41657
+ colSort: '排序',
41658
+ colTitle: '标题',
41659
+ colVisible: '是否显示',
41660
+ colFixed: '冻结列',
41661
+ fixedLeft: '左侧',
41662
+ fixedUnset: '不设置',
41663
+ fixedRight: '右侧'
41664
+ }
41444
41665
  },
41445
41666
  import: {
41446
41667
  modes: {
@@ -41519,9 +41740,9 @@ var Pulldown = VxePulldown;
41519
41740
  customAll: '全部',
41520
41741
  customConfirm: '确认',
41521
41742
  customRestore: '重置',
41522
- fixedLeft: '固定在左侧',
41523
- fixedRight: '固定在右侧',
41524
- cancelfixed: '取消固定'
41743
+ fixedLeft: '冻结在左侧',
41744
+ fixedRight: '冻结在右侧',
41745
+ cancelfixed: '取消冻结列'
41525
41746
  },
41526
41747
  input: {
41527
41748
  date: {