vxe-table 3.6.8 → 3.6.10-beta.0

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 (44) hide show
  1. package/lib/header/src/header.js +1 -1
  2. package/lib/header/src/header.min.js +1 -1
  3. package/lib/icon/style/{iconfont.1669391208345.ttf → iconfont.1673016554584.ttf} +0 -0
  4. package/lib/icon/style/{iconfont.1669391208345.woff → iconfont.1673016554584.woff} +0 -0
  5. package/lib/icon/style/{iconfont.1669391208345.woff2 → iconfont.1673016554584.woff2} +0 -0
  6. package/lib/icon/style/style.css +595 -3
  7. package/lib/icon/style/style.min.css +595 -3
  8. package/lib/{iconfont.1669391208345.ttf → iconfont.1673016554584.ttf} +0 -0
  9. package/lib/{iconfont.1669391208345.woff → iconfont.1673016554584.woff} +0 -0
  10. package/lib/{iconfont.1669391208345.woff2 → iconfont.1673016554584.woff2} +0 -0
  11. package/lib/index.css +1 -1
  12. package/lib/index.umd.js +63 -13
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/input/src/input.js +42 -4
  15. package/lib/input/src/input.min.js +1 -1
  16. package/lib/loading/src/loading.js +6 -2
  17. package/lib/loading/src/loading.min.js +1 -1
  18. package/lib/loading/style/style.css +1 -1
  19. package/lib/loading/style/style.min.css +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/src/methods.js +8 -2
  23. package/lib/table/src/methods.min.js +1 -1
  24. package/lib/table/src/table.js +2 -1
  25. package/lib/table/src/table.min.js +1 -1
  26. package/lib/table/src/util.js +2 -2
  27. package/lib/table/src/util.min.js +1 -1
  28. package/lib/table/style/style.css +1 -1
  29. package/lib/table/style/style.min.css +1 -1
  30. package/lib/tools/log.js +1 -1
  31. package/lib/tools/log.min.js +1 -1
  32. package/lib/v-x-e-table/index.js +1 -1
  33. package/lib/v-x-e-table/index.min.js +1 -1
  34. package/lib/v-x-e-table/style/style.css +595 -4
  35. package/lib/v-x-e-table/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/header/src/header.js +2 -2
  38. package/packages/input/src/input.js +31 -4
  39. package/packages/loading/src/loading.js +7 -2
  40. package/packages/table/src/methods.js +8 -2
  41. package/packages/table/src/table.js +2 -1
  42. package/packages/table/src/util.js +1 -1
  43. package/styles/icon.scss +2 -0
  44. package/styles/loading.scss +2 -1
package/lib/index.umd.js CHANGED
@@ -10572,7 +10572,7 @@ var es_array_concat = __webpack_require__(2222);
10572
10572
 
10573
10573
 
10574
10574
  function getLog(message, params) {
10575
- return "[vxe-table v".concat("3.6.8-beta.0", "] ").concat(conf.i18n(message, params));
10575
+ return "[vxe-table v".concat("3.6.9", "] ").concat(conf.i18n(message, params));
10576
10576
  }
10577
10577
  function outLog(type) {
10578
10578
  return function (message, params) {
@@ -11742,7 +11742,7 @@ function _t(key, args) {
11742
11742
  var v = 'v3';
11743
11743
  var VXETable = {
11744
11744
  v: v,
11745
- version: "3.6.8-beta.0",
11745
+ version: "3.6.9",
11746
11746
  reg: reg,
11747
11747
  use: use,
11748
11748
  setup: setup,
@@ -12277,7 +12277,7 @@ function toFilters(filters) {
12277
12277
  }
12278
12278
  return filters;
12279
12279
  }
12280
- function getColMinWidth(params) {
12280
+ function getColReMinWidth(params) {
12281
12281
  var $table = params.$table,
12282
12282
  column = params.column,
12283
12283
  cell = params.cell;
@@ -13694,7 +13694,7 @@ var cellType = 'header';
13694
13694
  var pos = dom.getOffsetPos(dragBtnElem, $el);
13695
13695
  var dragBtnWidth = dragBtnElem.clientWidth;
13696
13696
  var dragBtnOffsetWidth = Math.floor(dragBtnWidth / 2);
13697
- var minInterval = getColMinWidth(params) - dragBtnOffsetWidth; // 列之间的最小间距
13697
+ var minInterval = getColReMinWidth(params) - dragBtnOffsetWidth; // 列之间的最小间距
13698
13698
  var dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval;
13699
13699
  var dragPosLeft = pos.left + dragBtnOffsetWidth;
13700
13700
  var domMousemove = document.onmousemove;
@@ -17813,8 +17813,14 @@ var Methods = {
17813
17813
  column = params.column;
17814
17814
  var cell = evnt.currentTarget;
17815
17815
  this.handleTargetEnterEvent(tooltipStore.column !== column || tooltipStore.row !== row);
17816
- if (isEnableConf(editConfig)) {
17817
- if (editOpts.mode === 'row' && actived.row === row || actived.row === row && actived.column === column) {
17816
+ // 单元格处于编辑状态时不触发提示框
17817
+ if (column.editRender && isEnableConf(editConfig)) {
17818
+ // 如果是行编辑模式
17819
+ if (editOpts.mode === 'row' && actived.row === row) {
17820
+ return;
17821
+ }
17822
+ // 如果是单元格编辑模式
17823
+ if (actived.row === row && actived.column === column) {
17818
17824
  return;
17819
17825
  }
17820
17826
  }
@@ -20407,13 +20413,17 @@ funcs.forEach(function (name) {
20407
20413
  }
20408
20414
  },
20409
20415
  render: function render(h) {
20410
- var loadingIcon = this.loadingIcon,
20416
+ var $scopedSlots = this.$scopedSlots,
20417
+ loadingIcon = this.loadingIcon,
20411
20418
  loadingText = this.loadingText;
20419
+ var defaultSlot = $scopedSlots.default;
20412
20420
  return h('div', {
20413
20421
  class: ['vxe-loading', {
20414
20422
  'is--visible': this.value
20415
20423
  }]
20416
- }, [h('div', {
20424
+ }, defaultSlot ? [h('div', {
20425
+ class: 'vxe-loading--warpper'
20426
+ }, defaultSlot.call(this, {}))] : [h('div', {
20417
20427
  class: 'vxe-loading--chunk'
20418
20428
  }, [loadingIcon ? h('i', {
20419
20429
  class: loadingIcon
@@ -21421,6 +21431,7 @@ function handleUupdateResize(_vm) {
21421
21431
  },
21422
21432
  render: function render(h) {
21423
21433
  var _e = this._e,
21434
+ $scopedSlots = this.$scopedSlots,
21424
21435
  tId = this.tId,
21425
21436
  tableData = this.tableData,
21426
21437
  tableColumn = this.tableColumn,
@@ -21578,7 +21589,7 @@ function handleUupdateResize(_vm) {
21578
21589
  icon: loadingOpts.icon,
21579
21590
  text: loadingOpts.text
21580
21591
  }
21581
- }),
21592
+ }, this.callSlot($scopedSlots.loading, {})),
21582
21593
  /**
21583
21594
  * 筛选
21584
21595
  */
@@ -24753,6 +24764,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
24753
24764
 
24754
24765
 
24755
24766
 
24767
+
24756
24768
 
24757
24769
 
24758
24770
  var yearSize = 12;
@@ -26618,8 +26630,39 @@ function renderExtraSuffixIcon(h, _vm) {
26618
26630
  this.dateTimeChangeEvent(evnt);
26619
26631
  },
26620
26632
  dateConfirmEvent: function dateConfirmEvent() {
26621
- if (this.isDateTimeType || this.multiple) {
26622
- this.dateChange(this.dateValue || this.currentDate);
26633
+ var datetimePanelValue = this.datetimePanelValue,
26634
+ isDateTimeType = this.isDateTimeType,
26635
+ dateValueFormat = this.dateValueFormat,
26636
+ dateMultipleValue = this.dateMultipleValue;
26637
+ if (this.isDateTimeType) {
26638
+ if (this.multiple) {
26639
+ // 如果为多选
26640
+ if (isDateTimeType) {
26641
+ // 如果是datetime特殊类型
26642
+ var dateListValue = this.dateListValue;
26643
+ var datetimeRest = [];
26644
+ dateListValue.forEach(function (item) {
26645
+ if (item) {
26646
+ item.setHours(datetimePanelValue.getHours());
26647
+ item.setMinutes(datetimePanelValue.getMinutes());
26648
+ item.setSeconds(datetimePanelValue.getSeconds());
26649
+ datetimeRest.push(item);
26650
+ }
26651
+ });
26652
+ this.emitModel(datetimeRest.map(function (date) {
26653
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat);
26654
+ }).join(','), {
26655
+ type: 'update'
26656
+ });
26657
+ } else {
26658
+ // 如果是日期类型
26659
+ this.emitModel(dateMultipleValue.join(','), {
26660
+ type: 'update'
26661
+ });
26662
+ }
26663
+ } else {
26664
+ this.dateChange(this.dateValue || this.currentDate);
26665
+ }
26623
26666
  }
26624
26667
  this.hidePanel();
26625
26668
  },
@@ -26823,15 +26866,22 @@ function renderExtraSuffixIcon(h, _vm) {
26823
26866
  // 如果是datetime特殊类型
26824
26867
  var dateListValue = this.dateListValue;
26825
26868
  var datetimeRest = [];
26869
+ var eqIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(dateListValue, function (val) {
26870
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isDateSame(date, val, 'yyyyMMdd');
26871
+ });
26872
+ if (eqIndex === -1) {
26873
+ dateListValue.push(date);
26874
+ } else {
26875
+ dateListValue.splice(eqIndex, 1);
26876
+ }
26826
26877
  dateListValue.forEach(function (item) {
26827
- if (item && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isDateSame(date, item, 'yyyyMMdd')) {
26878
+ if (item) {
26828
26879
  item.setHours(datetimePanelValue.getHours());
26829
26880
  item.setMinutes(datetimePanelValue.getMinutes());
26830
26881
  item.setSeconds(datetimePanelValue.getSeconds());
26831
26882
  datetimeRest.push(item);
26832
26883
  }
26833
26884
  });
26834
- datetimeRest.push(date);
26835
26885
  this.emitModel(datetimeRest.map(function (date) {
26836
26886
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat);
26837
26887
  }).join(','), {