vxe-table 3.8.7-beta.3 → 3.8.7-beta.5

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
@@ -10727,6 +10727,7 @@ __webpack_require__.d(__webpack_exports__, {
10727
10727
  VxeTextarea: function() { return /* reexport */ VxeTextarea; },
10728
10728
  VxeToolbar: function() { return /* reexport */ VxeToolbar; },
10729
10729
  VxeTooltip: function() { return /* reexport */ VxeTooltip; },
10730
+ VxeUI: function() { return /* reexport */ VxeUI; },
10730
10731
  _t: function() { return /* reexport */ _t; },
10731
10732
  commands: function() { return /* reexport */ commands; },
10732
10733
  config: function() { return /* reexport */ config; },
@@ -10743,6 +10744,7 @@ __webpack_require__.d(__webpack_exports__, {
10743
10744
  renderer: function() { return /* reexport */ renderer; },
10744
10745
  saveFile: function() { return /* reexport */ saveLocalFile; },
10745
10746
  setConfig: function() { return /* reexport */ setConfig; },
10747
+ setIcon: function() { return /* reexport */ setIcon; },
10746
10748
  setup: function() { return /* reexport */ setup; },
10747
10749
  t: function() { return /* reexport */ t; },
10748
10750
  use: function() { return /* reexport */ use; },
@@ -10822,6 +10824,7 @@ __webpack_require__.d(all_namespaceObject, {
10822
10824
  VxeTextarea: function() { return VxeTextarea; },
10823
10825
  VxeToolbar: function() { return VxeToolbar; },
10824
10826
  VxeTooltip: function() { return VxeTooltip; },
10827
+ VxeUI: function() { return VxeUI; },
10825
10828
  _t: function() { return _t; },
10826
10829
  commands: function() { return commands; },
10827
10830
  config: function() { return config; },
@@ -10837,6 +10840,7 @@ __webpack_require__.d(all_namespaceObject, {
10837
10840
  renderer: function() { return renderer; },
10838
10841
  saveFile: function() { return saveLocalFile; },
10839
10842
  setConfig: function() { return setConfig; },
10843
+ setIcon: function() { return setIcon; },
10840
10844
  setup: function() { return setup; },
10841
10845
  t: function() { return t; },
10842
10846
  use: function() { return use; },
@@ -10960,6 +10964,100 @@ function _createClass(Constructor, protoProps, staticProps) {
10960
10964
  }
10961
10965
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
10962
10966
  var es_array_push = __webpack_require__(4114);
10967
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
10968
+ var es_object_assign = __webpack_require__(9085);
10969
+ ;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
10970
+ var storeEl = null;
10971
+ var storeId = 'z-index-manage';
10972
+ var storeMainKey = 'm';
10973
+ var storeSubKey = 's';
10974
+ var storeData = {
10975
+ m: 1000,
10976
+ s: 1000
10977
+ };
10978
+ function getDom() {
10979
+ if (!storeEl) {
10980
+ if (typeof document !== 'undefined') {
10981
+ storeEl = document.getElementById(storeId);
10982
+ if (!storeEl) {
10983
+ storeEl = document.createElement('div');
10984
+ storeEl.id = storeId;
10985
+ storeEl.style.display = 'none';
10986
+ document.body.appendChild(storeEl);
10987
+ setCurrent(storeData.m);
10988
+ setSubCurrent(storeData.s);
10989
+ }
10990
+ }
10991
+ }
10992
+ return storeEl;
10993
+ }
10994
+ function createSetHandle(key) {
10995
+ return function (value) {
10996
+ if (value) {
10997
+ value = Number(value);
10998
+ storeData[key] = value;
10999
+ var doc = getDom();
11000
+ if (doc) {
11001
+ if (doc.dataset) {
11002
+ doc.dataset[key] = value + '';
11003
+ }
11004
+ else {
11005
+ doc.setAttribute('data-' + key, value + '');
11006
+ }
11007
+ }
11008
+ }
11009
+ return storeData[key];
11010
+ };
11011
+ }
11012
+ var setCurrent = createSetHandle(storeMainKey);
11013
+ function createGetHandle(key, nextMethod) {
11014
+ return function getCurrent(currZindex) {
11015
+ var zIndex;
11016
+ var doc = getDom();
11017
+ if (doc) {
11018
+ var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
11019
+ if (domVal) {
11020
+ zIndex = Number(domVal);
11021
+ }
11022
+ }
11023
+ if (!zIndex) {
11024
+ zIndex = storeData[key];
11025
+ }
11026
+ if (currZindex) {
11027
+ if (Number(currZindex) < zIndex) {
11028
+ return nextMethod();
11029
+ }
11030
+ return currZindex;
11031
+ }
11032
+ return zIndex;
11033
+ };
11034
+ }
11035
+ var getCurrent = createGetHandle(storeMainKey, getNext);
11036
+ function getNext() {
11037
+ return setCurrent(getCurrent() + 1);
11038
+ }
11039
+ var setSubCurrent = createSetHandle(storeSubKey);
11040
+ var _getSubCurrent = createGetHandle(storeSubKey, getSubNext);
11041
+ function getSubCurrent() {
11042
+ return getCurrent() + _getSubCurrent();
11043
+ }
11044
+ function getSubNext() {
11045
+ setSubCurrent(_getSubCurrent() + 1);
11046
+ return getSubCurrent();
11047
+ }
11048
+ /**
11049
+ * Web common z-index style management
11050
+ */
11051
+ var DomZIndex = {
11052
+ setCurrent: setCurrent,
11053
+ getCurrent: getCurrent,
11054
+ getNext: getNext,
11055
+ setSubCurrent: setSubCurrent,
11056
+ getSubCurrent: getSubCurrent,
11057
+ getSubNext: getSubNext
11058
+ };
11059
+ /* harmony default export */ var index_esm = (DomZIndex);
11060
+
10963
11061
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/conf.js
10964
11062
  var iconPrefix = 'vxe-icon-';
10965
11063
  /* harmony default export */ var conf = ({
@@ -11351,7 +11449,7 @@ var es_array_concat = __webpack_require__(8706);
11351
11449
 
11352
11450
 
11353
11451
  function getLog(message, params) {
11354
- return "[vxe-table v".concat("3.8.7-beta.3", "] ").concat(conf.i18n(message, params));
11452
+ return "[vxe-table v".concat("3.8.7-beta.5", "] ").concat(conf.i18n(message, params));
11355
11453
  }
11356
11454
  function outLog(type) {
11357
11455
  return function (message, params) {
@@ -11540,98 +11638,6 @@ function _toConsumableArray(arr) {
11540
11638
  }
11541
11639
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
11542
11640
  var es_array_splice = __webpack_require__(4554);
11543
- ;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
11544
- var storeEl = null;
11545
- var storeId = 'z-index-manage';
11546
- var storeMainKey = 'm';
11547
- var storeSubKey = 's';
11548
- var storeData = {
11549
- m: 1000,
11550
- s: 1000
11551
- };
11552
- function getDom() {
11553
- if (!storeEl) {
11554
- if (typeof document !== 'undefined') {
11555
- storeEl = document.getElementById(storeId);
11556
- if (!storeEl) {
11557
- storeEl = document.createElement('div');
11558
- storeEl.id = storeId;
11559
- storeEl.style.display = 'none';
11560
- document.body.appendChild(storeEl);
11561
- setCurrent(storeData.m);
11562
- setSubCurrent(storeData.s);
11563
- }
11564
- }
11565
- }
11566
- return storeEl;
11567
- }
11568
- function createSetHandle(key) {
11569
- return function (value) {
11570
- if (value) {
11571
- value = Number(value);
11572
- storeData[key] = value;
11573
- var doc = getDom();
11574
- if (doc) {
11575
- if (doc.dataset) {
11576
- doc.dataset[key] = value + '';
11577
- }
11578
- else {
11579
- doc.setAttribute('data-' + key, value + '');
11580
- }
11581
- }
11582
- }
11583
- return storeData[key];
11584
- };
11585
- }
11586
- var setCurrent = createSetHandle(storeMainKey);
11587
- function createGetHandle(key, nextMethod) {
11588
- return function getCurrent(currZindex) {
11589
- var zIndex;
11590
- var doc = getDom();
11591
- if (doc) {
11592
- var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
11593
- if (domVal) {
11594
- zIndex = Number(domVal);
11595
- }
11596
- }
11597
- if (!zIndex) {
11598
- zIndex = storeData[key];
11599
- }
11600
- if (currZindex) {
11601
- if (Number(currZindex) < zIndex) {
11602
- return nextMethod();
11603
- }
11604
- return currZindex;
11605
- }
11606
- return zIndex;
11607
- };
11608
- }
11609
- var getCurrent = createGetHandle(storeMainKey, getNext);
11610
- function getNext() {
11611
- return setCurrent(getCurrent() + 1);
11612
- }
11613
- var setSubCurrent = createSetHandle(storeSubKey);
11614
- var _getSubCurrent = createGetHandle(storeSubKey, getSubNext);
11615
- function getSubCurrent() {
11616
- return getCurrent() + _getSubCurrent();
11617
- }
11618
- function getSubNext() {
11619
- setSubCurrent(_getSubCurrent() + 1);
11620
- return getSubCurrent();
11621
- }
11622
- /**
11623
- * Web common z-index style management
11624
- */
11625
- var DomZIndex = {
11626
- setCurrent: setCurrent,
11627
- getCurrent: getCurrent,
11628
- getNext: getNext,
11629
- setSubCurrent: setSubCurrent,
11630
- getSubCurrent: getSubCurrent,
11631
- getSubNext: getSubNext
11632
- };
11633
- /* harmony default export */ var index_esm = (DomZIndex);
11634
-
11635
11641
  ;// CONCATENATED MODULE: ./packages/tools/utils.js
11636
11642
 
11637
11643
 
@@ -12970,26 +12976,6 @@ function setTheme(options) {
12970
12976
  }
12971
12977
  }
12972
12978
  }
12973
- ;// CONCATENATED MODULE: ./packages/v-x-e-table/src/config.js
12974
-
12975
-
12976
-
12977
-
12978
-
12979
- /**
12980
- * 全局参数设置
12981
- */
12982
- function setConfig(options) {
12983
- if (options) {
12984
- if (options.theme) {
12985
- setTheme(options);
12986
- }
12987
- if (options.zIndex) {
12988
- index_esm.setCurrent(options.zIndex);
12989
- }
12990
- }
12991
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
12992
- }
12993
12979
  ;// CONCATENATED MODULE: ./packages/v-x-e-table/index.js
12994
12980
 
12995
12981
 
@@ -13006,6 +12992,7 @@ function setConfig(options) {
13006
12992
 
13007
12993
 
13008
12994
 
12995
+
13009
12996
  var installedPlugins = [];
13010
12997
  function use(Plugin, options) {
13011
12998
  /* eslint-disable @typescript-eslint/no-use-before-define */
@@ -13036,6 +13023,22 @@ function getExportOrImpotType(types, flag) {
13036
13023
  });
13037
13024
  return rest;
13038
13025
  }
13026
+
13027
+ /**
13028
+ * 全局参数设置
13029
+ */
13030
+ var setConfig = function setConfig(options) {
13031
+ if (options) {
13032
+ if (options.theme) {
13033
+ setTheme(options);
13034
+ }
13035
+ if (options.zIndex) {
13036
+ index_esm.setCurrent(options.zIndex);
13037
+ }
13038
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
13039
+ }
13040
+ return VXETable;
13041
+ };
13039
13042
  var VXETableConfig = /*#__PURE__*/function () {
13040
13043
  function VXETableConfig() {
13041
13044
  _classCallCheck(this, VXETableConfig);
@@ -13104,13 +13107,20 @@ var config = function config(options) {
13104
13107
  if (false) {}
13105
13108
  return setConfig(options);
13106
13109
  };
13110
+ function setIcon(options) {
13111
+ if (options) {
13112
+ Object.assign(conf.icon, options);
13113
+ }
13114
+ return VXETable;
13115
+ }
13107
13116
  var globalStore = {};
13108
13117
  var VXETable = {
13109
13118
  v: v,
13110
- version: "3.8.7-beta.3",
13119
+ version: "3.8.7-beta.5",
13111
13120
  reg: reg,
13112
13121
  use: use,
13113
13122
  setConfig: setConfig,
13123
+ setIcon: setIcon,
13114
13124
  globalStore: globalStore,
13115
13125
  interceptor: interceptor,
13116
13126
  renderer: renderer,
@@ -13125,16 +13135,14 @@ var VXETable = {
13125
13135
  setup: setup,
13126
13136
  globalConfs: globalConfs
13127
13137
  };
13138
+ var VxeUI = VXETable;
13128
13139
  setTheme(globalStore);
13129
13140
 
13130
13141
 
13131
13142
 
13132
13143
 
13133
13144
 
13134
-
13135
13145
  /* harmony default export */ var v_x_e_table = (VXETable);
13136
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
13137
- var es_object_assign = __webpack_require__(9085);
13138
13146
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
13139
13147
  var es_array_iterator = __webpack_require__(3792);
13140
13148
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
@@ -19705,14 +19713,15 @@ var Methods = {
19705
19713
  backMethod = keyboardOpts.backMethod;
19706
19714
  // 如果是删除键
19707
19715
  if (keyboardOpts.isDel && (selected.row || selected.column)) {
19716
+ var delPaqrams = {
19717
+ row: selected.row,
19718
+ rowIndex: _this29.getRowIndex(selected.row),
19719
+ column: selected.column,
19720
+ columnIndex: _this29.getColumnIndex(selected.column),
19721
+ $table: _this29
19722
+ };
19708
19723
  if (delMethod) {
19709
- delMethod({
19710
- row: selected.row,
19711
- rowIndex: _this29.getRowIndex(selected.row),
19712
- column: selected.column,
19713
- columnIndex: _this29.getColumnIndex(selected.column),
19714
- $table: _this29
19715
- });
19724
+ delMethod(delPaqrams);
19716
19725
  } else {
19717
19726
  setCellValue(selected.row, selected.column, null);
19718
19727
  }
@@ -19732,6 +19741,7 @@ var Methods = {
19732
19741
  // 如果按下 del 键,更新表尾数据
19733
19742
  _this29.updateFooter();
19734
19743
  }
19744
+ _this29.emitEvent('cell-delete-value', delPaqrams, evnt);
19735
19745
  } else if (isBack && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
19736
19746
  // 如果树形表格回退键关闭当前行返回父节点
19737
19747
  var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this29.afterFullData, function (item) {