vxe-table 4.7.0-alpha.14 → 4.7.0-alpha.16

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.
@@ -3355,7 +3355,7 @@ export default defineComponent({
3355
3355
  },
3356
3356
  openTooltip(target, content) {
3357
3357
  const $commTip = refCommTooltip.value;
3358
- if ($commTip) {
3358
+ if ($commTip && $commTip.open) {
3359
3359
  return $commTip.open(target, content);
3360
3360
  }
3361
3361
  return nextTick();
@@ -3374,11 +3374,11 @@ export default defineComponent({
3374
3374
  content: null,
3375
3375
  visible: false
3376
3376
  });
3377
- if ($tooltip) {
3377
+ if ($tooltip && $tooltip.close) {
3378
3378
  $tooltip.close();
3379
3379
  }
3380
3380
  }
3381
- if ($commTip) {
3381
+ if ($commTip && $commTip.close) {
3382
3382
  $commTip.close();
3383
3383
  }
3384
3384
  return nextTick();
@@ -4986,7 +4986,7 @@ export default defineComponent({
4986
4986
  tableMethods.closeTooltip();
4987
4987
  }
4988
4988
  else {
4989
- if ($tooltip) {
4989
+ if ($tooltip && $tooltip.setActived) {
4990
4990
  $tooltip.setActived(true);
4991
4991
  }
4992
4992
  }
@@ -5015,7 +5015,7 @@ export default defineComponent({
5015
5015
  });
5016
5016
  nextTick(() => {
5017
5017
  const $tooltip = refTooltip.value;
5018
- if ($tooltip) {
5018
+ if ($tooltip && $tooltip.open) {
5019
5019
  $tooltip.open(isCellOverflow ? overflowElem : (tipElem || overflowElem), formatText(content));
5020
5020
  }
5021
5021
  });
@@ -5685,7 +5685,7 @@ export default defineComponent({
5685
5685
  // tooltipStore.currOpts = { content: null }
5686
5686
  nextTick(() => {
5687
5687
  const $tooltip = refTooltip.value;
5688
- if ($tooltip) {
5688
+ if ($tooltip && $tooltip.open) {
5689
5689
  $tooltip.open(evnt.currentTarget, content);
5690
5690
  }
5691
5691
  });
@@ -5756,13 +5756,13 @@ export default defineComponent({
5756
5756
  handleTargetLeaveEvent() {
5757
5757
  const tooltipOpts = computeTooltipOpts.value;
5758
5758
  let $tooltip = refTooltip.value;
5759
- if ($tooltip) {
5759
+ if ($tooltip && $tooltip.setActived) {
5760
5760
  $tooltip.setActived(false);
5761
5761
  }
5762
5762
  if (tooltipOpts.enterable) {
5763
5763
  internalData.tooltipTimeout = setTimeout(() => {
5764
5764
  $tooltip = refTooltip.value;
5765
- if ($tooltip && !$tooltip.isActived()) {
5765
+ if ($tooltip && $tooltip.isActived && !$tooltip.isActived()) {
5766
5766
  tableMethods.closeTooltip();
5767
5767
  }
5768
5768
  }, tooltipOpts.leaveDelay);
package/es/ui/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { VxeUI, setConfig, setIcon } from '@vxe-ui/core';
2
- VxeUI.tableVersion = process.env.VUE_APP_VXE_TABLE_VERSION;
2
+ VxeUI.version = "4.7.0-alpha.16";
3
+ VxeUI.tableVersion = "4.7.0-alpha.16";
3
4
  setConfig({
4
5
  emptyCell: ' ',
5
6
  table: {
@@ -202,10 +203,10 @@ setIcon({
202
203
  TABLE_EXPAND_LOADED: iconPrefix + 'spinner roll',
203
204
  TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
204
205
  TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
205
- TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked',
206
+ TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
206
207
  TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
207
- TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate',
208
- TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked',
208
+ TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
209
+ TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
209
210
  TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
210
211
  // toolbar
211
212
  TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
@@ -221,7 +222,16 @@ setIcon({
221
222
  TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + 'fixed-right',
222
223
  TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + 'fixed-right-fill'
223
224
  });
224
- // 兼容老版本
225
+ /**
226
+ * 已废弃,兼容老版本
227
+ * @deprecated
228
+ */
225
229
  export const VXETable = VxeUI;
230
+ /**
231
+ * 已废弃
232
+ * @deprecated
233
+ */
234
+ export const globalStore = VxeUI.globalStore || {};
235
+ VxeUI.globalStore = globalStore;
226
236
  export * from '@vxe-ui/core';
227
237
  export default VxeUI;
package/lib/index.umd.js CHANGED
@@ -8831,7 +8831,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
8831
8831
  },
8832
8832
  openTooltip(target, content) {
8833
8833
  const $commTip = refCommTooltip.value;
8834
- if ($commTip) {
8834
+ if ($commTip && $commTip.open) {
8835
8835
  return $commTip.open(target, content);
8836
8836
  }
8837
8837
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
@@ -8852,11 +8852,11 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
8852
8852
  content: null,
8853
8853
  visible: false
8854
8854
  });
8855
- if ($tooltip) {
8855
+ if ($tooltip && $tooltip.close) {
8856
8856
  $tooltip.close();
8857
8857
  }
8858
8858
  }
8859
- if ($commTip) {
8859
+ if ($commTip && $commTip.close) {
8860
8860
  $commTip.close();
8861
8861
  }
8862
8862
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
@@ -10688,7 +10688,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
10688
10688
  if (isClear) {
10689
10689
  tableMethods.closeTooltip();
10690
10690
  } else {
10691
- if ($tooltip) {
10691
+ if ($tooltip && $tooltip.setActived) {
10692
10692
  $tooltip.setActived(true);
10693
10693
  }
10694
10694
  }
@@ -10725,7 +10725,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
10725
10725
  });
10726
10726
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
10727
10727
  const $tooltip = refTooltip.value;
10728
- if ($tooltip) {
10728
+ if ($tooltip && $tooltip.open) {
10729
10729
  $tooltip.open(isCellOverflow ? overflowElem : tipElem || overflowElem, (0,utils/* formatText */.vX)(content));
10730
10730
  }
10731
10731
  });
@@ -11514,7 +11514,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
11514
11514
  // tooltipStore.currOpts = { content: null }
11515
11515
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
11516
11516
  const $tooltip = refTooltip.value;
11517
- if ($tooltip) {
11517
+ if ($tooltip && $tooltip.open) {
11518
11518
  $tooltip.open(evnt.currentTarget, content);
11519
11519
  }
11520
11520
  });
@@ -11603,13 +11603,13 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
11603
11603
  handleTargetLeaveEvent() {
11604
11604
  const tooltipOpts = computeTooltipOpts.value;
11605
11605
  let $tooltip = refTooltip.value;
11606
- if ($tooltip) {
11606
+ if ($tooltip && $tooltip.setActived) {
11607
11607
  $tooltip.setActived(false);
11608
11608
  }
11609
11609
  if (tooltipOpts.enterable) {
11610
11610
  internalData.tooltipTimeout = setTimeout(() => {
11611
11611
  $tooltip = refTooltip.value;
11612
- if ($tooltip && !$tooltip.isActived()) {
11612
+ if ($tooltip && $tooltip.isActived && !$tooltip.isActived()) {
11613
11613
  tableMethods.closeTooltip();
11614
11614
  }
11615
11615
  }, tooltipOpts.leaveDelay);
@@ -21084,15 +21084,17 @@ const Toolbar = VxeToolbar;
21084
21084
 
21085
21085
  __webpack_require__.r(__webpack_exports__);
21086
21086
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21087
- /* harmony export */ VXETable: function() { return /* binding */ VXETable; }
21087
+ /* harmony export */ VXETable: function() { return /* binding */ VXETable; },
21088
+ /* harmony export */ globalStore: function() { return /* binding */ globalStore; }
21088
21089
  /* harmony export */ });
21089
21090
  /* harmony import */ var _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8514);
21090
21091
  /* harmony import */ var _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__);
21091
21092
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
21092
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__) if(["default","VXETable"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
21093
+ /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__) if(["default","VXETable","globalStore"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
21093
21094
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
21094
21095
 
21095
- _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.tableVersion = ({"NODE_ENV":"production","VUE_APP_VXE_ENV":"development","VUE_APP_VXE_VERSION":"4.7.0-alpha.14","BASE_URL":"/"}).VUE_APP_VXE_TABLE_VERSION;
21096
+ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.version = "4.7.0-alpha.16";
21097
+ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.tableVersion = "4.7.0-alpha.16";
21096
21098
  (0,_vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.setConfig)({
21097
21099
  emptyCell: ' ',
21098
21100
  table: {
@@ -21295,10 +21297,10 @@ const iconPrefix = 'vxe-icon-';
21295
21297
  TABLE_EXPAND_LOADED: iconPrefix + 'spinner roll',
21296
21298
  TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
21297
21299
  TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
21298
- TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked',
21300
+ TABLE_CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
21299
21301
  TABLE_CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',
21300
- TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate',
21301
- TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked',
21302
+ TABLE_CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
21303
+ TABLE_RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
21302
21304
  TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
21303
21305
  // toolbar
21304
21306
  TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
@@ -21314,8 +21316,17 @@ const iconPrefix = 'vxe-icon-';
21314
21316
  TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + 'fixed-right',
21315
21317
  TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + 'fixed-right-fill'
21316
21318
  });
21317
- // 兼容老版本
21319
+ /**
21320
+ * 已废弃,兼容老版本
21321
+ * @deprecated
21322
+ */
21318
21323
  const VXETable = _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI;
21324
+ /**
21325
+ * 已废弃
21326
+ * @deprecated
21327
+ */
21328
+ const globalStore = _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.globalStore || {};
21329
+ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.globalStore = globalStore;
21319
21330
 
21320
21331
  /* harmony default export */ __webpack_exports__["default"] = (_vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI);
21321
21332