vxe-table 3.7.0 → 3.7.2

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
@@ -10527,6 +10527,7 @@ __webpack_require__.d(__webpack_exports__, {
10527
10527
  "default": () => (/* binding */ entry_lib),
10528
10528
  "formats": () => (/* reexport */ formats),
10529
10529
  "globalConfs": () => (/* reexport */ globalConfs),
10530
+ "globalStore": () => (/* reexport */ globalStore),
10530
10531
  "install": () => (/* reexport */ install),
10531
10532
  "interceptor": () => (/* reexport */ interceptor),
10532
10533
  "menus": () => (/* reexport */ menus),
@@ -10585,6 +10586,7 @@ __webpack_require__.d(all_namespaceObject, {
10585
10586
  "config": () => (config),
10586
10587
  "formats": () => (formats),
10587
10588
  "globalConfs": () => (globalConfs),
10589
+ "globalStore": () => (globalStore),
10588
10590
  "install": () => (install),
10589
10591
  "interceptor": () => (interceptor),
10590
10592
  "menus": () => (menus),
@@ -11047,7 +11049,7 @@ var es_array_concat = __webpack_require__(2222);
11047
11049
 
11048
11050
 
11049
11051
  function getLog(message, params) {
11050
- return "[vxe-table v".concat("3.7.0", "] ").concat(conf.i18n(message, params));
11052
+ return "[vxe-table v".concat("3.7.1", "] ").concat(conf.i18n(message, params));
11051
11053
  }
11052
11054
  function outLog(type) {
11053
11055
  return function (message, params) {
@@ -12489,13 +12491,14 @@ function _t(key, args) {
12489
12491
  }
12490
12492
  var v = 'v3';
12491
12493
  var setup = config;
12494
+ var globalStore = {};
12492
12495
  var VXETable = {
12493
12496
  v: v,
12494
- version: "3.7.0",
12497
+ version: "3.7.1",
12495
12498
  reg: reg,
12496
12499
  use: use,
12497
12500
  setup: setup,
12498
- config: config,
12501
+ globalStore: globalStore,
12499
12502
  interceptor: interceptor,
12500
12503
  renderer: renderer,
12501
12504
  commands: commands,
@@ -12503,7 +12506,10 @@ var VXETable = {
12503
12506
  menus: menus,
12504
12507
  validators: validators,
12505
12508
  t: t,
12506
- _t: _t
12509
+ _t: _t,
12510
+ // 已废弃
12511
+ config: config,
12512
+ globalConfs: globalConfs
12507
12513
  };
12508
12514
 
12509
12515
 
@@ -22780,13 +22786,20 @@ function handleUupdateResize(_vm) {
22780
22786
  var _this12 = this;
22781
22787
  if (false) { var $listeners; }
22782
22788
  if (this.autoResize) {
22783
- var resizeObserver = createResizeEvent(this.resizeOpts.refreshDelay ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().throttle(function () {
22784
- _this12.recalculate(true);
22789
+ var handleWarpperResize = this.resizeOpts.refreshDelay ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().throttle(function () {
22790
+ return _this12.recalculate(true);
22785
22791
  }, this.resizeOpts.refreshDelay, {
22786
22792
  leading: true,
22787
22793
  trailing: true
22788
- }) : function () {
22789
- _this12.recalculate(true);
22794
+ }) : null;
22795
+ var resizeObserver = createResizeEvent(handleWarpperResize ? function () {
22796
+ if (_this12.autoResize) {
22797
+ requestAnimationFrame(handleWarpperResize);
22798
+ }
22799
+ } : function () {
22800
+ if (_this12.autoResize) {
22801
+ _this12.recalculate(true);
22802
+ }
22790
22803
  });
22791
22804
  resizeObserver.observe(this.$el);
22792
22805
  resizeObserver.observe(this.getParentElem());
@@ -23043,6 +23056,10 @@ var Table = Object.assign(table, {
23043
23056
  table.mixins.push(window.VXETableMixin);
23044
23057
  delete window.VXETableMixin;
23045
23058
  }
23059
+ if (typeof window !== 'undefined' && window.VXETablePro && window.VXETablePro.init) {
23060
+ window.VXETablePro.init(v_x_e_table);
23061
+ delete window.VXETablePro;
23062
+ }
23046
23063
  v_x_e_table.Vue = Vue;
23047
23064
  v_x_e_table.Table = table;
23048
23065
  v_x_e_table.TableComponent = table;