3h1-ui 2.14.2 → 2.14.3

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/es/index.js CHANGED
@@ -12820,11 +12820,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12820
12820
  }
12821
12821
  });
12822
12822
  const EditableCell_vue_vue_type_style_index_0_lang = "";
12823
- const rowIndex = ref(0);
12824
- function hasRefresh(isHover) {
12825
- if (isHover) {
12826
- rowIndex.value++;
12827
- }
12823
+ let rowIndex = 0;
12824
+ function isNeedRefresh() {
12825
+ rowIndex++;
12828
12826
  }
12829
12827
  function renderEditCell(column) {
12830
12828
  return ({ text: value, record, index: index2 }) => {
@@ -12862,7 +12860,7 @@ function renderEditCell(column) {
12862
12860
  record,
12863
12861
  column,
12864
12862
  index: index2,
12865
- key: unref(rowIndex)
12863
+ key: rowIndex
12866
12864
  });
12867
12865
  };
12868
12866
  }
@@ -13784,7 +13782,7 @@ function useCustomRow(propsRef, {
13784
13782
  emit
13785
13783
  }) {
13786
13784
  const customRow = (record, index2) => {
13787
- hasRefresh(true);
13785
+ isNeedRefresh();
13788
13786
  return {
13789
13787
  onClick: (e) => {
13790
13788
  e == null ? void 0 : e.stopPropagation();
@@ -13827,23 +13825,18 @@ function useCustomRow(propsRef, {
13827
13825
  }
13828
13826
  }
13829
13827
  handleClick();
13830
- hasRefresh(false);
13831
13828
  emit("row-click", record, index2, e);
13832
13829
  },
13833
13830
  onDblclick: (event) => {
13834
- hasRefresh(false);
13835
13831
  emit("row-dbClick", record, index2, event);
13836
13832
  },
13837
13833
  onContextmenu: (event) => {
13838
- hasRefresh(false);
13839
13834
  emit("row-contextmenu", record, index2, event);
13840
13835
  },
13841
13836
  onMouseenter: (event) => {
13842
- hasRefresh(false);
13843
13837
  emit("row-mouseenter", record, index2, event);
13844
13838
  },
13845
13839
  onMouseleave: (event) => {
13846
- hasRefresh(false);
13847
13840
  emit("row-mouseleave", record, index2, event);
13848
13841
  }
13849
13842
  };
package/lib/index.js CHANGED
@@ -12822,11 +12822,9 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
12822
12822
  }
12823
12823
  });
12824
12824
  const EditableCell_vue_vue_type_style_index_0_lang = "";
12825
- const rowIndex = vue.ref(0);
12826
- function hasRefresh(isHover) {
12827
- if (isHover) {
12828
- rowIndex.value++;
12829
- }
12825
+ let rowIndex = 0;
12826
+ function isNeedRefresh() {
12827
+ rowIndex++;
12830
12828
  }
12831
12829
  function renderEditCell(column) {
12832
12830
  return ({ text: value, record, index: index2 }) => {
@@ -12864,7 +12862,7 @@ function renderEditCell(column) {
12864
12862
  record,
12865
12863
  column,
12866
12864
  index: index2,
12867
- key: vue.unref(rowIndex)
12865
+ key: rowIndex
12868
12866
  });
12869
12867
  };
12870
12868
  }
@@ -13786,7 +13784,7 @@ function useCustomRow(propsRef, {
13786
13784
  emit
13787
13785
  }) {
13788
13786
  const customRow = (record, index2) => {
13789
- hasRefresh(true);
13787
+ isNeedRefresh();
13790
13788
  return {
13791
13789
  onClick: (e) => {
13792
13790
  e == null ? void 0 : e.stopPropagation();
@@ -13829,23 +13827,18 @@ function useCustomRow(propsRef, {
13829
13827
  }
13830
13828
  }
13831
13829
  handleClick();
13832
- hasRefresh(false);
13833
13830
  emit("row-click", record, index2, e);
13834
13831
  },
13835
13832
  onDblclick: (event) => {
13836
- hasRefresh(false);
13837
13833
  emit("row-dbClick", record, index2, event);
13838
13834
  },
13839
13835
  onContextmenu: (event) => {
13840
- hasRefresh(false);
13841
13836
  emit("row-contextmenu", record, index2, event);
13842
13837
  },
13843
13838
  onMouseenter: (event) => {
13844
- hasRefresh(false);
13845
13839
  emit("row-mouseenter", record, index2, event);
13846
13840
  },
13847
13841
  onMouseleave: (event) => {
13848
- hasRefresh(false);
13849
13842
  emit("row-mouseleave", record, index2, event);
13850
13843
  }
13851
13844
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.2",
3
+ "version": "2.14.3",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",