@deot/vc 1.0.67 → 1.0.68

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.
@@ -122660,12 +122660,19 @@ ${r}
122660
122660
  (0, vue.watch)(() => props.expandRowValue, (v) => {
122661
122661
  if (v) store.setExpandRowValueAdapter(v);
122662
122662
  }, { immediate: true });
122663
- (0, vue.watch)(() => scrollPosition.value, (v) => {
122663
+ (0, vue.watch)(() => [scrollPosition.value, props.data?.length], ([v]) => {
122664
122664
  raf(() => {
122665
122665
  const el = tableWrapper.value;
122666
122666
  if (!el) return;
122667
122667
  const className = `is-scrolling-${layout.states.scrollX ? v : "none"}`;
122668
- el && el.classList.replace(el.classList.item(el.classList.length - 1), className);
122668
+ if (el.classList.contains(className)) return;
122669
+ el.classList.remove(...[
122670
+ "left",
122671
+ "middle",
122672
+ "right",
122673
+ "none"
122674
+ ].map((i) => `is-scrolling-${i}`));
122675
+ el.classList.add(className);
122669
122676
  });
122670
122677
  }, { immediate: true });
122671
122678
  const tableId = getUid("table");
@@ -122720,7 +122727,7 @@ ${r}
122720
122727
  "class": [
122721
122728
  classes.value,
122722
122729
  tableId,
122723
- "vc-table is-scrolling-none"
122730
+ "vc-table"
122724
122731
  ],
122725
122732
  "onMouseleave": handleMouseLeave
122726
122733
  }, [
@@ -122662,12 +122662,19 @@ ${r}
122662
122662
  (0, vue.watch)(() => props.expandRowValue, (v) => {
122663
122663
  if (v) store.setExpandRowValueAdapter(v);
122664
122664
  }, { immediate: true });
122665
- (0, vue.watch)(() => scrollPosition.value, (v) => {
122665
+ (0, vue.watch)(() => [scrollPosition.value, props.data?.length], ([v]) => {
122666
122666
  raf(() => {
122667
122667
  const el = tableWrapper.value;
122668
122668
  if (!el) return;
122669
122669
  const className = `is-scrolling-${layout.states.scrollX ? v : "none"}`;
122670
- el && el.classList.replace(el.classList.item(el.classList.length - 1), className);
122670
+ if (el.classList.contains(className)) return;
122671
+ el.classList.remove(...[
122672
+ "left",
122673
+ "middle",
122674
+ "right",
122675
+ "none"
122676
+ ].map((i) => `is-scrolling-${i}`));
122677
+ el.classList.add(className);
122671
122678
  });
122672
122679
  }, { immediate: true });
122673
122680
  const tableId = getUid("table");
@@ -122722,7 +122729,7 @@ ${r}
122722
122729
  "class": [
122723
122730
  classes.value,
122724
122731
  tableId,
122725
- "vc-table is-scrolling-none"
122732
+ "vc-table"
122726
122733
  ],
122727
122734
  "onMouseleave": handleMouseLeave
122728
122735
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/vc",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@deot/vc-components": "^1.0.67",
23
- "@deot/vc-hooks": "^1.0.67",
24
- "@deot/vc-shared": "^1.0.67"
22
+ "@deot/vc-components": "^1.0.68",
23
+ "@deot/vc-hooks": "^1.0.68",
24
+ "@deot/vc-shared": "^1.0.68"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "vue": "*"