vxe-table 3.8.23 → 3.8.25

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 (134) hide show
  1. package/lib/button/style/style.css +10 -10
  2. package/lib/button/style/style.min.css +1 -1
  3. package/lib/custom/src/mixin.js +1 -1
  4. package/lib/custom/src/mixin.min.js +1 -1
  5. package/lib/custom/src/panel.js +18 -7
  6. package/lib/custom/src/panel.min.js +1 -1
  7. package/lib/edit/src/mixin.js +8 -2
  8. package/lib/edit/src/mixin.min.js +1 -1
  9. package/lib/icon/style/style.css +1 -1
  10. package/lib/icon/style/style.min.css +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/index.umd.js +99 -40
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/keyboard/src/mixin.js +1 -1
  15. package/lib/keyboard/src/mixin.min.js +1 -1
  16. package/lib/locale/lang/en-US.js +2 -1
  17. package/lib/locale/lang/en-US.min.js +1 -1
  18. package/lib/locale/lang/en-US.umd.js +2 -1
  19. package/lib/locale/lang/es-ES.js +2 -1
  20. package/lib/locale/lang/es-ES.min.js +1 -1
  21. package/lib/locale/lang/es-ES.umd.js +2 -1
  22. package/lib/locale/lang/hu-HU.d.ts +8 -0
  23. package/lib/locale/lang/hu-HU.js +675 -0
  24. package/lib/locale/lang/hu-HU.min.js +1 -0
  25. package/lib/locale/lang/hu-HU.umd.js +689 -0
  26. package/lib/locale/lang/ja-JP.js +2 -1
  27. package/lib/locale/lang/ja-JP.min.js +1 -1
  28. package/lib/locale/lang/ja-JP.umd.js +2 -1
  29. package/lib/locale/lang/ko-KR.d.ts +8 -0
  30. package/lib/locale/lang/ko-KR.js +675 -0
  31. package/lib/locale/lang/ko-KR.min.js +1 -0
  32. package/lib/locale/lang/ko-KR.umd.js +689 -0
  33. package/lib/locale/lang/pt-BR.js +2 -1
  34. package/lib/locale/lang/pt-BR.min.js +1 -1
  35. package/lib/locale/lang/pt-BR.umd.js +2 -1
  36. package/lib/locale/lang/ru-RU.d.ts +8 -0
  37. package/lib/locale/lang/ru-RU.js +675 -0
  38. package/lib/locale/lang/ru-RU.min.js +1 -0
  39. package/lib/locale/lang/ru-RU.umd.js +689 -0
  40. package/lib/locale/lang/uk-UA.d.ts +8 -0
  41. package/lib/locale/lang/uk-UA.js +675 -0
  42. package/lib/locale/lang/uk-UA.min.js +1 -0
  43. package/lib/locale/lang/uk-UA.umd.js +689 -0
  44. package/lib/locale/lang/zh-CHT.d.ts +8 -0
  45. package/lib/locale/lang/zh-CHT.js +675 -0
  46. package/lib/locale/lang/zh-CHT.min.js +1 -0
  47. package/lib/locale/lang/zh-CHT.umd.js +689 -0
  48. package/lib/locale/lang/zh-CN.js +2 -1
  49. package/lib/locale/lang/zh-CN.min.js +1 -1
  50. package/lib/locale/lang/zh-CN.umd.js +2 -1
  51. package/lib/locale/lang/zh-HK.js +2 -2
  52. package/lib/locale/lang/zh-HK.min.js +1 -1
  53. package/lib/locale/lang/zh-HK.umd.js +7 -672
  54. package/lib/locale/lang/zh-MO.js +2 -2
  55. package/lib/locale/lang/zh-MO.min.js +1 -1
  56. package/lib/locale/lang/zh-MO.umd.js +7 -672
  57. package/lib/locale/lang/zh-TC.js +3 -668
  58. package/lib/locale/lang/zh-TC.min.js +1 -1
  59. package/lib/locale/lang/zh-TC.umd.js +7 -672
  60. package/lib/locale/lang/zh-TW.js +2 -2
  61. package/lib/locale/lang/zh-TW.min.js +1 -1
  62. package/lib/locale/lang/zh-TW.umd.js +7 -672
  63. package/lib/modal/src/modal.js +5 -0
  64. package/lib/modal/src/modal.min.js +1 -1
  65. package/lib/style.css +1 -1
  66. package/lib/style.min.css +1 -1
  67. package/lib/table/src/body.js +1 -0
  68. package/lib/table/src/body.min.js +1 -1
  69. package/lib/table/src/cell.js +9 -7
  70. package/lib/table/src/cell.min.js +1 -1
  71. package/lib/table/src/methods.js +17 -9
  72. package/lib/table/src/methods.min.js +1 -1
  73. package/lib/table/style/style.css +1 -0
  74. package/lib/table/style/style.min.css +1 -1
  75. package/lib/textarea/src/textarea.js +2 -2
  76. package/lib/textarea/src/textarea.min.js +1 -1
  77. package/lib/textarea/style/style.css +4 -3
  78. package/lib/textarea/style/style.min.css +1 -1
  79. package/lib/tools/log.js +1 -1
  80. package/lib/tools/log.min.js +1 -1
  81. package/lib/tooltip/src/tooltip.js +23 -7
  82. package/lib/tooltip/src/tooltip.min.js +1 -1
  83. package/lib/v-x-e-table/index.js +7 -1
  84. package/lib/v-x-e-table/index.min.js +1 -1
  85. package/lib/validator/src/mixin.js +1 -1
  86. package/lib/validator/src/mixin.min.js +1 -1
  87. package/lib/vxe-button/style/style.css +10 -10
  88. package/lib/vxe-button/style/style.min.css +1 -1
  89. package/lib/vxe-table/style/style.css +1 -0
  90. package/lib/vxe-table/style/style.min.css +1 -1
  91. package/lib/vxe-textarea/style/style.css +4 -3
  92. package/lib/vxe-textarea/style/style.min.css +1 -1
  93. package/package.json +1 -1
  94. package/packages/custom/src/mixin.js +1 -1
  95. package/packages/custom/src/panel.js +18 -7
  96. package/packages/edit/src/mixin.js +8 -2
  97. package/packages/keyboard/src/mixin.js +1 -1
  98. package/packages/locale/lang/en-US.js +2 -1
  99. package/packages/locale/lang/es-ES.js +2 -1
  100. package/packages/locale/lang/hu-HU.d.ts +8 -0
  101. package/packages/locale/lang/hu-HU.js +671 -0
  102. package/packages/locale/lang/ja-JP.js +2 -1
  103. package/packages/locale/lang/ko-KR.d.ts +8 -0
  104. package/packages/locale/lang/ko-KR.js +671 -0
  105. package/packages/locale/lang/pt-BR.js +2 -1
  106. package/packages/locale/lang/ru-RU.d.ts +8 -0
  107. package/packages/locale/lang/ru-RU.js +671 -0
  108. package/packages/locale/lang/uk-UA.d.ts +8 -0
  109. package/packages/locale/lang/uk-UA.js +671 -0
  110. package/packages/locale/lang/zh-CHT.d.ts +8 -0
  111. package/packages/locale/lang/zh-CHT.js +671 -0
  112. package/packages/locale/lang/zh-CN.js +2 -1
  113. package/packages/locale/lang/zh-HK.js +2 -2
  114. package/packages/locale/lang/zh-MO.js +2 -2
  115. package/packages/locale/lang/zh-TC.js +2 -669
  116. package/packages/locale/lang/zh-TW.js +2 -2
  117. package/packages/modal/src/modal.js +6 -1
  118. package/packages/table/src/body.js +1 -1
  119. package/packages/table/src/cell.js +6 -5
  120. package/packages/table/src/methods.js +16 -9
  121. package/packages/textarea/src/textarea.js +3 -3
  122. package/packages/tooltip/src/tooltip.js +23 -7
  123. package/packages/v-x-e-table/index.js +5 -0
  124. package/packages/validator/src/mixin.js +1 -1
  125. package/styles/table.scss +1 -0
  126. package/styles/textarea.scss +3 -2
  127. package/styles/variable.scss +18 -18
  128. package/types/column.d.ts +57 -1
  129. /package/lib/icon/style/{iconfont.1724894779531.ttf → iconfont.1728875776495.ttf} +0 -0
  130. /package/lib/icon/style/{iconfont.1724894779531.woff → iconfont.1728875776495.woff} +0 -0
  131. /package/lib/icon/style/{iconfont.1724894779531.woff2 → iconfont.1728875776495.woff2} +0 -0
  132. /package/lib/{iconfont.1724894779531.ttf → iconfont.1728875776495.ttf} +0 -0
  133. /package/lib/{iconfont.1724894779531.woff → iconfont.1728875776495.woff} +0 -0
  134. /package/lib/{iconfont.1724894779531.woff2 → iconfont.1728875776495.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10735,6 +10735,7 @@ __webpack_require__.d(__webpack_exports__, {
10735
10735
  "default": function() { return /* binding */ entry_lib; },
10736
10736
  formats: function() { return /* reexport */ formats; },
10737
10737
  getComponent: function() { return /* reexport */ getComponent; },
10738
+ getConfig: function() { return /* reexport */ getConfig; },
10738
10739
  getTheme: function() { return /* reexport */ getTheme; },
10739
10740
  globalConfs: function() { return /* reexport */ globalConfs; },
10740
10741
  globalStore: function() { return /* reexport */ globalStore; },
@@ -10837,6 +10838,7 @@ __webpack_require__.d(all_namespaceObject, {
10837
10838
  config: function() { return config; },
10838
10839
  formats: function() { return formats; },
10839
10840
  getComponent: function() { return getComponent; },
10841
+ getConfig: function() { return getConfig; },
10840
10842
  getTheme: function() { return getTheme; },
10841
10843
  globalConfs: function() { return globalConfs; },
10842
10844
  globalStore: function() { return globalStore; },
@@ -11522,7 +11524,7 @@ var es_array_concat = __webpack_require__(8706);
11522
11524
 
11523
11525
 
11524
11526
  function getLog(message, params) {
11525
- return "[vxe-table v".concat("3.8.23", "] ").concat(conf.i18n(message, params));
11527
+ return "[vxe-table v".concat("3.8.25", "] ").concat(conf.i18n(message, params));
11526
11528
  }
11527
11529
  function outLog(type) {
11528
11530
  return function (message, params) {
@@ -13142,6 +13144,9 @@ var setConfig = function setConfig(options) {
13142
13144
  }
13143
13145
  return VxeUI;
13144
13146
  };
13147
+ function getConfig(key, defaultValue) {
13148
+ return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(conf, key, defaultValue) : conf;
13149
+ }
13145
13150
  var VXETableConfig = /*#__PURE__*/function () {
13146
13151
  function VXETableConfig() {
13147
13152
  _classCallCheck(this, VXETableConfig);
@@ -13226,7 +13231,7 @@ function component(comp) {
13226
13231
  components[comp.name] = comp;
13227
13232
  }
13228
13233
  }
13229
- var version = "3.8.23";
13234
+ var version = "3.8.25";
13230
13235
  var tableVersion = version;
13231
13236
  var VxeUI = {
13232
13237
  v: v,
@@ -13235,6 +13240,7 @@ var VxeUI = {
13235
13240
  reg: reg,
13236
13241
  use: use,
13237
13242
  setConfig: setConfig,
13243
+ getConfig: getConfig,
13238
13244
  setIcon: setIcon,
13239
13245
  globalStore: globalStore,
13240
13246
  interceptor: interceptor,
@@ -14147,6 +14153,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
14147
14153
  var params = {
14148
14154
  $table: $xetable,
14149
14155
  $grid: $xetable.$xegrid,
14156
+ isEdit: false,
14150
14157
  seq: seq,
14151
14158
  rowid: rowid,
14152
14159
  row: row,
@@ -16659,26 +16666,28 @@ var Cell = {
16659
16666
  formatter = column.formatter;
16660
16667
  var compConf = v_x_e_table.renderer.get(editRender.name);
16661
16668
  var rtEdit = compConf ? compConf.renderTableEdit || compConf.renderEdit : null;
16669
+ var cellParams = Object.assign({
16670
+ $type: '',
16671
+ isEdit: isEdit
16672
+ }, params);
16662
16673
  if (isEdit) {
16663
16674
  if (slots && slots.edit) {
16664
- return $table.callSlot(slots.edit, params, h);
16675
+ return $table.callSlot(slots.edit, cellParams, h);
16665
16676
  }
16666
16677
  if (rtEdit) {
16667
- return getSlotVNs(rtEdit.call($table, h, editRender, Object.assign({
16668
- $type: 'edit'
16669
- }, params)));
16678
+ return getSlotVNs(rtEdit.call($table, h, editRender, cellParams));
16670
16679
  }
16671
16680
  return [];
16672
16681
  }
16673
16682
  if (slots && slots.default) {
16674
- return $table.callSlot(slots.default, params, h);
16683
+ return $table.callSlot(slots.default, cellParams, h);
16675
16684
  }
16676
16685
  if (formatter) {
16677
16686
  return [h('span', {
16678
16687
  class: 'vxe-cell--label'
16679
- }, [getDefaultCellLabel(params)])];
16688
+ }, [getDefaultCellLabel(cellParams)])];
16680
16689
  }
16681
- return Cell.renderDefaultCell.call(_vm, h, params);
16690
+ return Cell.renderDefaultCell.call(_vm, h, cellParams);
16682
16691
  }
16683
16692
  };
16684
16693
  /* harmony default export */ var cell = (Cell);
@@ -18835,9 +18844,9 @@ var Methods = {
18835
18844
  /**
18836
18845
  * 刷新列配置
18837
18846
  */
18838
- refreshColumn: function refreshColumn(resiveOrder) {
18847
+ refreshColumn: function refreshColumn(initOrder) {
18839
18848
  var _this22 = this;
18840
- if (resiveOrder) {
18849
+ if (initOrder) {
18841
18850
  var columnList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(this.collectColumn, 'renderSortNumber');
18842
18851
  this.collectColumn = columnList;
18843
18852
  var tableFullColumn = methods_getColumnList(columnList);
@@ -18864,7 +18873,8 @@ var Methods = {
18864
18873
  isGroup = this.isGroup,
18865
18874
  columnStore = this.columnStore,
18866
18875
  sXOpts = this.sXOpts,
18867
- scrollXStore = this.scrollXStore;
18876
+ scrollXStore = this.scrollXStore,
18877
+ fullColumnIdData = this.fullColumnIdData;
18868
18878
  // 如果是分组表头,如果子列全部被隐藏,则根列也隐藏
18869
18879
  if (isGroup) {
18870
18880
  var leftGroupList = [];
@@ -18945,6 +18955,13 @@ var Methods = {
18945
18955
  this.clearMergeFooterItems();
18946
18956
  }
18947
18957
  this.scrollXLoad = scrollXLoad;
18958
+ visibleColumn.forEach(function (column, index) {
18959
+ var colid = column.id;
18960
+ var rest = fullColumnIdData[colid];
18961
+ if (rest) {
18962
+ rest._index = index;
18963
+ }
18964
+ });
18948
18965
  this.visibleColumn = visibleColumn;
18949
18966
  this.handleTableColumn();
18950
18967
  return this.updateFooter().then(function () {
@@ -19841,7 +19858,7 @@ var Methods = {
19841
19858
  if (selected.row && selected.column) {
19842
19859
  evnt.stopPropagation();
19843
19860
  evnt.preventDefault();
19844
- _this31.handleActived(selected.args, evnt);
19861
+ _this31.handleEdit(selected.args, evnt);
19845
19862
  }
19846
19863
  }
19847
19864
  } else if (isContextMenu) {
@@ -19960,7 +19977,7 @@ var Methods = {
19960
19977
  backMethod(_params3);
19961
19978
  } else {
19962
19979
  setCellValue(selected.row, selected.column, null);
19963
- _this31.handleActived(selected.args, evnt);
19980
+ _this31.handleEdit(selected.args, evnt);
19964
19981
  }
19965
19982
  _this31.emitEvent('cell-backspace-value', _params3, evnt);
19966
19983
  }
@@ -20011,7 +20028,7 @@ var Methods = {
20011
20028
  editMethod(_params5);
20012
20029
  } else {
20013
20030
  setCellValue(selected.row, selected.column, null);
20014
- _this31.handleActived(selected.args, evnt);
20031
+ _this31.handleEdit(selected.args, evnt);
20015
20032
  }
20016
20033
  var afterEditMethod = editOpts.afterEditMethod;
20017
20034
  if (afterEditMethod) {
@@ -21353,7 +21370,7 @@ var Methods = {
21353
21370
  this.checkValidate('blur').catch(function (e) {
21354
21371
  return e;
21355
21372
  }).then(function () {
21356
- _this39.handleActived(params, evnt).then(function () {
21373
+ _this39.handleEdit(params, evnt).then(function () {
21357
21374
  return _this39.checkValidate('change');
21358
21375
  }).catch(function (e) {
21359
21376
  return e;
@@ -21468,14 +21485,14 @@ var Methods = {
21468
21485
  this.checkValidate('blur').catch(function (e) {
21469
21486
  return e;
21470
21487
  }).then(function () {
21471
- _this40.handleActived(params, evnt).then(function () {
21488
+ _this40.handleEdit(params, evnt).then(function () {
21472
21489
  return _this40.checkValidate('change');
21473
21490
  }).catch(function (e) {
21474
21491
  return e;
21475
21492
  });
21476
21493
  });
21477
21494
  } else if (editOpts.mode === 'cell') {
21478
- this.handleActived(params, evnt).then(function () {
21495
+ this.handleEdit(params, evnt).then(function () {
21479
21496
  return _this40.checkValidate('change');
21480
21497
  }).catch(function (e) {
21481
21498
  return e;
@@ -26027,7 +26044,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
26027
26044
  /**
26028
26045
  * 处理激活编辑
26029
26046
  */
26030
- handleActived: function handleActived(params, evnt) {
26047
+ handleEdit: function handleEdit(params, evnt) {
26031
26048
  var _this7 = this;
26032
26049
  var editStore = this.editStore,
26033
26050
  editOpts = this.editOpts,
@@ -26132,6 +26149,12 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
26132
26149
  }
26133
26150
  return this.$nextTick();
26134
26151
  },
26152
+ /**
26153
+ * @deprecated
26154
+ */
26155
+ handleActived: function handleActived(params, evnt) {
26156
+ return this.handleEdit(params, evnt);
26157
+ },
26135
26158
  _getColumnModel: function _getColumnModel(row, column) {
26136
26159
  var model = column.model,
26137
26160
  editRender = column.editRender;
@@ -26312,7 +26335,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
26312
26335
  return this.scrollToRow(row, true).then(function () {
26313
26336
  var cell = _this9.getCellElement(row, column);
26314
26337
  if (cell) {
26315
- _this9.handleActived({
26338
+ _this9.handleEdit({
26316
26339
  row: row,
26317
26340
  rowIndex: _this9.getRowIndex(row),
26318
26341
  column: column,
@@ -26764,6 +26787,11 @@ var msgQueue = [];
26764
26787
  var $listeners = this.$listeners,
26765
26788
  _this$events = this.events,
26766
26789
  events = _this$events === void 0 ? {} : _this$events;
26790
+ if (({"NODE_ENV":"production","VUE_APP_VXE_TABLE_ENV":"production","VUE_APP_VXE_TABLE_VERSION":"3.8.25","BASE_URL":"/"}).VUE_APP_VXE_ENV === 'development') {
26791
+ if (this.type === 'modal' && this.showFooter && !(this.showConfirmButton || this.showCancelButton || this.$scopedSlots.footer)) {
26792
+ warnLog('vxe.modal.footPropErr');
26793
+ }
26794
+ }
26767
26795
  if (this.value) {
26768
26796
  this.open();
26769
26797
  }
@@ -34084,7 +34112,7 @@ function getCheckboxRangeRows(_vm, params, targetTrElem, moveRange) {
34084
34112
  if (editConfig) {
34085
34113
  if (editOpts.trigger === 'click' || editOpts.trigger === 'dblclick') {
34086
34114
  if (editOpts.mode === 'row') {
34087
- this.handleActived(params, evnt);
34115
+ this.handleEdit(params, evnt);
34088
34116
  } else {
34089
34117
  this.scrollToRow(params.row, params.column).then(function () {
34090
34118
  return _this.handleSelected(params, evnt);
@@ -34513,7 +34541,7 @@ function validErrorRuleValue(rule, val) {
34513
34541
  _this.emitEvent('valid-error', params);
34514
34542
  resolve();
34515
34543
  } else {
34516
- _this.handleActived(params, {
34544
+ _this.handleEdit(params, {
34517
34545
  type: 'valid-error',
34518
34546
  trigger: 'call'
34519
34547
  }).then(function () {
@@ -35006,7 +35034,7 @@ var Validator = VxeTableValidatorModule;
35006
35034
  // 判断面板不能大于表格高度
35007
35035
  var tableHeight = 0;
35008
35036
  if ($el) {
35009
- tableHeight = $el.clientHeight - 30;
35037
+ tableHeight = $el.clientHeight - 28;
35010
35038
  }
35011
35039
  customStore.maxHeight = Math.max(4, tableHeight);
35012
35040
  },
@@ -36128,7 +36156,10 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
36128
36156
  allowFixed = customOpts.allowFixed,
36129
36157
  allowResizable = customOpts.allowResizable;
36130
36158
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column, index, items, path, parent) {
36131
- if (!parent) {
36159
+ if (parent) {
36160
+ // 更新子列信息
36161
+ column.fixed = parent.fixed;
36162
+ } else {
36132
36163
  if (allowSort) {
36133
36164
  var sortIndex = index + 1;
36134
36165
  column.renderSortNumber = sortIndex;
@@ -36279,22 +36310,30 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
36279
36310
  customOpts = $xetable.customOpts;
36280
36311
  if (customOpts.immediate) {
36281
36312
  if (column.renderFixed === colFixed) {
36282
- column.fixed = '';
36283
- column.renderFixed = '';
36313
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], function (col) {
36314
+ col.fixed = '';
36315
+ col.renderFixed = '';
36316
+ });
36284
36317
  } else {
36285
36318
  if (!isMaxFixedColumn || column.renderFixed) {
36286
- column.fixed = colFixed;
36287
- column.renderFixed = colFixed;
36319
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], function (col) {
36320
+ col.fixed = colFixed;
36321
+ col.renderFixed = colFixed;
36322
+ });
36288
36323
  }
36289
36324
  }
36290
36325
  $xetable.handleCustom();
36291
36326
  $xetable.saveCustomStore('update:fixed');
36292
36327
  } else {
36293
36328
  if (column.renderFixed === colFixed) {
36294
- column.renderFixed = '';
36329
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], function (col) {
36330
+ col.renderFixed = '';
36331
+ });
36295
36332
  } else {
36296
36333
  if (!isMaxFixedColumn || column.renderFixed) {
36297
- column.renderFixed = colFixed;
36334
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], function (col) {
36335
+ col.renderFixed = colFixed;
36336
+ });
36298
36337
  }
36299
36338
  }
36300
36339
  }
@@ -39562,7 +39601,7 @@ var autoTxtElem;
39562
39601
  maxlength: [String, Number],
39563
39602
  rows: {
39564
39603
  type: [String, Number],
39565
- default: 2
39604
+ default: null
39566
39605
  },
39567
39606
  cols: {
39568
39607
  type: [String, Number],
@@ -39670,7 +39709,7 @@ var autoTxtElem;
39670
39709
  attrs.placeholder = getFuncText(placeholder);
39671
39710
  }
39672
39711
  return h('div', {
39673
- class: ['vxe-textarea', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--autosize', autosize), 'is--disabled', disabled), 'def--rows', !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(rows)), 'def--cols', !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cols))],
39712
+ class: ['vxe-textarea', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--autosize', autosize), 'is--disabled', disabled), 'is--rows', !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(rows)), 'is--cols', !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cols))],
39674
39713
  attrs: {
39675
39714
  spellcheck: false
39676
39715
  }
@@ -40100,11 +40139,12 @@ function renderContent(h, _vm) {
40100
40139
  var $scopedSlots = _vm.$scopedSlots,
40101
40140
  useHTML = _vm.useHTML,
40102
40141
  tipContent = _vm.tipContent;
40103
- if ($scopedSlots.content) {
40142
+ var contentSlot = $scopedSlots.content;
40143
+ if (contentSlot) {
40104
40144
  return h('div', {
40105
40145
  key: 1,
40106
40146
  class: 'vxe-table--tooltip-content'
40107
- }, $scopedSlots.content.call(this, {}));
40147
+ }, contentSlot.call(this, {}));
40108
40148
  }
40109
40149
  if (useHTML) {
40110
40150
  return h('div', {
@@ -40189,7 +40229,11 @@ function renderContent(h, _vm) {
40189
40229
  },
40190
40230
  value: function value(_value) {
40191
40231
  if (!this.isUpdate) {
40192
- this[_value ? 'open' : 'close']();
40232
+ if (_value) {
40233
+ this.handleVisible(this.target, this.content);
40234
+ } else {
40235
+ this.close();
40236
+ }
40193
40237
  }
40194
40238
  this.isUpdate = false;
40195
40239
  }
@@ -40234,7 +40278,7 @@ function renderContent(h, _vm) {
40234
40278
  }
40235
40279
  }
40236
40280
  if (value) {
40237
- this.open();
40281
+ this.handleVisible(target, content);
40238
40282
  }
40239
40283
  }
40240
40284
  },
@@ -40286,7 +40330,7 @@ function renderContent(h, _vm) {
40286
40330
  },
40287
40331
  methods: {
40288
40332
  open: function open(target, content) {
40289
- return this.toVisible(target || this.target, content);
40333
+ return this.handleVisible(target || this.target, content);
40290
40334
  },
40291
40335
  close: function close() {
40292
40336
  this.tipTarget = null;
@@ -40314,6 +40358,13 @@ function renderContent(h, _vm) {
40314
40358
  }
40315
40359
  },
40316
40360
  toVisible: function toVisible(target, content) {
40361
+ return this.handleVisible(target, content);
40362
+ },
40363
+ handleVisible: function handleVisible(target, content) {
40364
+ var contentSlot = this.$scopedSlots.default;
40365
+ if (!contentSlot && (content === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(content))) {
40366
+ return this.$nextTick();
40367
+ }
40317
40368
  if (target) {
40318
40369
  var trigger = this.trigger,
40319
40370
  enterDelay = this.enterDelay;
@@ -40350,10 +40401,14 @@ function renderContent(h, _vm) {
40350
40401
  this.tipActive = !!actived;
40351
40402
  },
40352
40403
  clickEvent: function clickEvent() {
40353
- this[this.visible ? 'close' : 'open']();
40404
+ if (this.visible) {
40405
+ this.close();
40406
+ } else {
40407
+ this.handleVisible(this.target, this.content);
40408
+ }
40354
40409
  },
40355
40410
  targetMouseenterEvent: function targetMouseenterEvent() {
40356
- this.open();
40411
+ this.handleVisible(this.target, this.content);
40357
40412
  },
40358
40413
  targetMouseleaveEvent: function targetMouseleaveEvent() {
40359
40414
  var _this3 = this;
@@ -43044,7 +43099,8 @@ var Pulldown = VxePulldown;
43044
43099
  zoomIn: '最大化',
43045
43100
  zoomOut: '还原',
43046
43101
  close: '关闭',
43047
- miniMaxSize: '最小化窗口的数量不能超过 {0} 个'
43102
+ miniMaxSize: '最小化窗口的数量不能超过 {0} 个',
43103
+ footPropErr: 'show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用'
43048
43104
  },
43049
43105
  drawer: {
43050
43106
  close: '关闭'
@@ -43616,6 +43672,9 @@ setConfig({
43616
43672
 
43617
43673
 
43618
43674
  if (typeof window !== 'undefined' && window.Vue) {
43675
+ if (!window.VxeUITable) {
43676
+ window.VxeUITable = all_namespaceObject;
43677
+ }
43619
43678
  window.Vue.use(all_namespaceObject);
43620
43679
  }
43621
43680