@creatorsn/vfluent3 0.3.97 → 0.3.99

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.
@@ -10,6 +10,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
10
10
  readonly modelValue?: string | undefined;
11
11
  readonly max?: number | undefined;
12
12
  readonly isDot?: boolean | undefined;
13
+ readonly offsetTop?: string | undefined;
14
+ readonly offsetRight?: string | undefined;
13
15
  };
14
16
  $emit: (event: "update:modelValue", ...args: any[]) => void;
15
17
  }, {
@@ -43,6 +45,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
43
45
  readonly modelValue?: string | undefined;
44
46
  readonly max?: number | undefined;
45
47
  readonly isDot?: boolean | undefined;
48
+ readonly offsetTop?: string | undefined;
49
+ readonly offsetRight?: string | undefined;
46
50
  };
47
51
  $emit: (event: "update:modelValue", ...args: any[]) => void;
48
52
  }, {
@@ -73,6 +77,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
73
77
  readonly modelValue?: string | undefined;
74
78
  readonly max?: number | undefined;
75
79
  readonly isDot?: boolean | undefined;
80
+ readonly offsetTop?: string | undefined;
81
+ readonly offsetRight?: string | undefined;
76
82
  };
77
83
  $emit: (event: "update:modelValue", ...args: any[]) => void;
78
84
  }, {
@@ -9,6 +9,8 @@ declare const _default: {
9
9
  readonly modelValue?: string | undefined;
10
10
  readonly max?: number | undefined;
11
11
  readonly isDot?: boolean | undefined;
12
+ readonly offsetTop?: string | undefined;
13
+ readonly offsetRight?: string | undefined;
12
14
  };
13
15
  $emit: (event: "update:modelValue", ...args: any[]) => void;
14
16
  }, {
@@ -42,6 +44,8 @@ declare const _default: {
42
44
  readonly modelValue?: string | undefined;
43
45
  readonly max?: number | undefined;
44
46
  readonly isDot?: boolean | undefined;
47
+ readonly offsetTop?: string | undefined;
48
+ readonly offsetRight?: string | undefined;
45
49
  };
46
50
  $emit: (event: "update:modelValue", ...args: any[]) => void;
47
51
  }, {
@@ -72,6 +76,8 @@ declare const _default: {
72
76
  readonly modelValue?: string | undefined;
73
77
  readonly max?: number | undefined;
74
78
  readonly isDot?: boolean | undefined;
79
+ readonly offsetTop?: string | undefined;
80
+ readonly offsetRight?: string | undefined;
75
81
  };
76
82
  $emit: (event: "update:modelValue", ...args: any[]) => void;
77
83
  }, {
package/dist/vfluent3.js CHANGED
@@ -1813,6 +1813,12 @@ const xa = /* @__PURE__ */ u("p", null, "Badge", -1), Ea = { class: "badge-conte
1813
1813
  hidden: {
1814
1814
  default: !1
1815
1815
  },
1816
+ offsetTop: {
1817
+ default: ""
1818
+ },
1819
+ offsetRight: {
1820
+ default: ""
1821
+ },
1816
1822
  type: {
1817
1823
  default: "default"
1818
1824
  }
@@ -1827,7 +1833,11 @@ const xa = /* @__PURE__ */ u("p", null, "Badge", -1), Ea = { class: "badge-conte
1827
1833
  ]),
1828
1834
  S(u("sup", {
1829
1835
  class: T(["fv-badge-container", { dot: e.isDot }]),
1830
- style: v({ background: t.finalColor })
1836
+ style: v({
1837
+ top: e.offsetTop,
1838
+ right: e.offsetRight,
1839
+ background: t.finalColor
1840
+ })
1831
1841
  }, [
1832
1842
  u("p", Ea, z(t.finalValue), 1)
1833
1843
  ], 6), [
@@ -14254,14 +14264,15 @@ const go = /* @__PURE__ */ Ce(Vg, [["render", Ig]]), xg = { class: "list-view-he
14254
14264
  },
14255
14265
  sliderRefreshInit() {
14256
14266
  this.timer.slider = setInterval(() => {
14267
+ var e, i, t;
14257
14268
  if (this.thisSliderTarget) {
14258
- let e = this.thisSliderTarget, i = this.$el.getBoundingClientRect().top, t = e.getBoundingClientRect().top;
14259
- this.currentTop = t - i;
14269
+ let s = this.thisSliderTarget, n = ((i = (e = this.$el) == null ? void 0 : e.getBoundingClientRect()) == null ? void 0 : i.top) || 0, r = ((t = s == null ? void 0 : s.getBoundingClientRect()) == null ? void 0 : t.top) || 0;
14270
+ this.currentTop = r - n;
14260
14271
  } else
14261
14272
  this.currentTop = 0;
14262
14273
  if (this.thisSliderTarget) {
14263
- let e = this.thisSliderTarget;
14264
- this.currentHeight = e.clientHeight;
14274
+ let s = this.thisSliderTarget;
14275
+ this.currentHeight = (s == null ? void 0 : s.clientHeight) || 0;
14265
14276
  } else
14266
14277
  this.currentHeight = 0;
14267
14278
  }, 30);