@94ai/nf-table 8.1.9 → 8.3.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.
@@ -9979,8 +9979,10 @@ __sfc_main.setup = (__props, __ctx) => {
9979
9979
  if (!hasLeftFixed && !hasRightFixed) {
9980
9980
  return;
9981
9981
  }
9982
- vueDemi.nextTick(() => {
9982
+ let timer = setTimeout(() => {
9983
9983
  try {
9984
+ clearTimeout(timer);
9985
+ timer = void 0;
9984
9986
  if (elTableRef.value) {
9985
9987
  const childrenEle = elTableRef.value.$el.children;
9986
9988
  const eleChildrenContent = childrenEle[2].children[0].children[1].children;
@@ -10002,7 +10004,7 @@ __sfc_main.setup = (__props, __ctx) => {
10002
10004
  } catch (err) {
10003
10005
  console.error(err);
10004
10006
  }
10005
- });
10007
+ }, 50);
10006
10008
  }
10007
10009
  };
10008
10010
  const wrapperProps = vueDemi.computed(() => {
@@ -9977,8 +9977,10 @@ __sfc_main.setup = (__props, __ctx) => {
9977
9977
  if (!hasLeftFixed && !hasRightFixed) {
9978
9978
  return;
9979
9979
  }
9980
- nextTick(() => {
9980
+ let timer = setTimeout(() => {
9981
9981
  try {
9982
+ clearTimeout(timer);
9983
+ timer = void 0;
9982
9984
  if (elTableRef.value) {
9983
9985
  const childrenEle = elTableRef.value.$el.children;
9984
9986
  const eleChildrenContent = childrenEle[2].children[0].children[1].children;
@@ -10000,7 +10002,7 @@ __sfc_main.setup = (__props, __ctx) => {
10000
10002
  } catch (err) {
10001
10003
  console.error(err);
10002
10004
  }
10003
- });
10005
+ }, 50);
10004
10006
  }
10005
10007
  };
10006
10008
  const wrapperProps = computed(() => {
@@ -1603,8 +1603,10 @@ const resizeTable = () => {
1603
1603
  if (!hasLeftFixed && !hasRightFixed) {
1604
1604
  return
1605
1605
  }
1606
- nextTick(() => {
1606
+ let timer: ReturnType<typeof setTimeout> | undefined = setTimeout(() => {
1607
1607
  try {
1608
+ clearTimeout(timer)
1609
+ timer = undefined
1608
1610
  if (elTableRef.value) {
1609
1611
  const childrenEle = elTableRef.value.$el.children
1610
1612
  /** 内容table */
@@ -1629,7 +1631,7 @@ const resizeTable = () => {
1629
1631
  } catch (err) {
1630
1632
  console.error(err)
1631
1633
  }
1632
- })
1634
+ }, 50)
1633
1635
  }
1634
1636
  }
1635
1637
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "8.1.9",
3
+ "version": "8.3.0",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,13 +14,13 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^8.1.9",
18
- "@94ai/nf-button": "^8.1.9",
19
- "@94ai/nf-drawer": "^8.1.9",
20
- "@94ai/nf-message": "^8.1.9",
21
- "@94ai/nf-search-form": "^8.1.9",
22
- "@94ai/nf-tag": "^8.1.9",
23
- "@94ai/nf-theme-chalk": "^8.1.9",
17
+ "@94ai/common-utils": "^8.3.0",
18
+ "@94ai/nf-button": "^8.3.0",
19
+ "@94ai/nf-drawer": "^8.3.0",
20
+ "@94ai/nf-message": "^8.3.0",
21
+ "@94ai/nf-search-form": "^8.3.0",
22
+ "@94ai/nf-tag": "^8.3.0",
23
+ "@94ai/nf-theme-chalk": "^8.3.0",
24
24
  "idb-keyval": "^6.2.1",
25
25
  "vue-demi": "^0.14.5",
26
26
  "vue-router": "3.6.4",
@@ -39,5 +39,5 @@
39
39
  "types": "lib/index.d.ts",
40
40
  "main": "lib/nf-table.cjs.js",
41
41
  "module": "lib/nf-table.esm-bundler.js",
42
- "gitHead": "eb0b1c5ee29b277208e13eeebdb43d1b07554ce3"
42
+ "gitHead": "d5b29fecd87582ed9747c58e279d4490294c5891"
43
43
  }