vxe-table 3.8.26 → 3.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.umd.js CHANGED
@@ -11524,7 +11524,7 @@ var es_array_concat = __webpack_require__(8706);
11524
11524
 
11525
11525
 
11526
11526
  function getLog(message, params) {
11527
- return "[vxe-table v".concat("3.8.26", "] ").concat(conf.i18n(message, params));
11527
+ return "[vxe-table v".concat("3.8.28", "] ").concat(conf.i18n(message, params));
11528
11528
  }
11529
11529
  function outLog(type) {
11530
11530
  return function (message, params) {
@@ -13231,7 +13231,7 @@ function component(comp) {
13231
13231
  components[comp.name] = comp;
13232
13232
  }
13233
13233
  }
13234
- var version = "3.8.26";
13234
+ var version = "3.8.28";
13235
13235
  var tableVersion = version;
13236
13236
  var VxeUI = {
13237
13237
  v: v,
@@ -13641,6 +13641,7 @@ var DomTools = {
13641
13641
 
13642
13642
 
13643
13643
 
13644
+
13644
13645
  var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn) {
13645
13646
  var result = [];
13646
13647
  columns.forEach(function (column) {
@@ -13974,6 +13975,9 @@ function rowToVisible($xetable, row) {
13974
13975
  function colToVisible($xetable, column) {
13975
13976
  var tableBody = $xetable.$refs.tableBody;
13976
13977
  var bodyElem = tableBody ? tableBody.$el : null;
13978
+ if (column && column.fixed) {
13979
+ return Promise.resolve();
13980
+ }
13977
13981
  if (bodyElem) {
13978
13982
  var tdElem = bodyElem.querySelector(".".concat(column.id));
13979
13983
  if (tdElem) {
@@ -17182,7 +17186,15 @@ var Methods = {
17182
17186
  if (keepSource) {
17183
17187
  this.cacheSourceMap(fullData);
17184
17188
  }
17185
- if (false) {}
17189
+ if (sYLoad) {
17190
+ if (!(this.height || this.maxHeight)) {
17191
+ errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
17192
+ }
17193
+ if (!this.showOverflow) {
17194
+ errLog('vxe.error.reqProp', ['table.show-overflow']);
17195
+ }
17196
+ if (false) {}
17197
+ }
17186
17198
  if (this.clearCellAreas && this.mouseConfig) {
17187
17199
  this.clearCellAreas();
17188
17200
  this.clearCopyCellArea();
@@ -18601,7 +18613,7 @@ var Methods = {
18601
18613
  * 如果为 true 则重置所有状态
18602
18614
  * 如果已关联工具栏,则会同步更新
18603
18615
  */
18604
- resetColumn: function resetColumn(options) {
18616
+ resetCustom: function resetCustom(options) {
18605
18617
  var collectColumn = this.collectColumn,
18606
18618
  customOpts = this.customOpts;
18607
18619
  var checkMethod = customOpts.checkMethod;
@@ -18631,6 +18643,10 @@ var Methods = {
18631
18643
  this.saveCustomStore('reset');
18632
18644
  return this.handleCustom();
18633
18645
  },
18646
+ resetColumn: function resetColumn(options) {
18647
+ warnLog('vxe.error.delFunc', ['resetColumn', 'resetCustom']);
18648
+ return this.resetCustom(options);
18649
+ },
18634
18650
  handleCustom: function handleCustom() {
18635
18651
  var mouseConfig = this.mouseConfig;
18636
18652
  if (mouseConfig) {
@@ -22144,7 +22160,7 @@ var Methods = {
22144
22160
  var hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
22145
22161
  var rowid = getRowid(this, row);
22146
22162
  if (lazy && row[hasChildField] && !treeExpandLazyLoadedMaps[rowid]) {
22147
- this.clearTreeExpandLoaded(row).then(function () {
22163
+ return this.clearTreeExpandLoaded(row).then(function () {
22148
22164
  return _this49.handleAsyncTreeExpandChilds(row);
22149
22165
  }).then(function () {
22150
22166
  if (transform) {
@@ -26280,7 +26296,12 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
26280
26296
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(autoFocus)) {
26281
26297
  inputElem = autoFocus.call(this, params);
26282
26298
  } else if (autoFocus) {
26283
- inputElem = cell.querySelector(autoFocus);
26299
+ if (autoFocus === true) {
26300
+ // 自动匹配模式,会自动匹配第一个可输入元素
26301
+ inputElem = cell.querySelector('input,textarea');
26302
+ } else {
26303
+ inputElem = cell.querySelector(autoFocus);
26304
+ }
26284
26305
  if (inputElem) {
26285
26306
  inputElem.focus();
26286
26307
  }
@@ -26787,7 +26808,7 @@ var msgQueue = [];
26787
26808
  var $listeners = this.$listeners,
26788
26809
  _this$events = this.events,
26789
26810
  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.26","BASE_URL":"/"}).VUE_APP_VXE_ENV === 'development') {
26811
+ if (({"NODE_ENV":"production","VUE_APP_VXE_TABLE_ENV":"production","VUE_APP_VXE_TABLE_VERSION":"3.8.28","BASE_URL":"/"}).VUE_APP_VXE_ENV === 'development') {
26791
26812
  if (this.type === 'modal' && this.showFooter && !(this.showConfirmButton || this.showCancelButton || this.$scopedSlots.footer)) {
26792
26813
  warnLog('vxe.modal.footPropErr');
26793
26814
  }