@creatorsn/vfluent3 0.3.99 → 0.3.101
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/dist/vfluent3.js +19 -11
- package/dist/vfluent3.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/vfluent3.js
CHANGED
|
@@ -14096,6 +14096,12 @@ const go = /* @__PURE__ */ Ce(Vg, [["render", Ig]]), xg = { class: "list-view-he
|
|
|
14096
14096
|
this.setSliderTarget();
|
|
14097
14097
|
}, 600);
|
|
14098
14098
|
},
|
|
14099
|
+
activated() {
|
|
14100
|
+
this.sliderRefreshInit();
|
|
14101
|
+
},
|
|
14102
|
+
deactivated() {
|
|
14103
|
+
clearInterval(this.timer.slider);
|
|
14104
|
+
},
|
|
14099
14105
|
methods: {
|
|
14100
14106
|
valueInit() {
|
|
14101
14107
|
let e = {
|
|
@@ -14263,18 +14269,20 @@ const go = /* @__PURE__ */ Ce(Vg, [["render", Ig]]), xg = { class: "list-view-he
|
|
|
14263
14269
|
this.$refs[`list_item_${e}`] && (this.thisSliderTarget = this.$refs[`list_item_${e}`][0], this.thisSliderIndex = e);
|
|
14264
14270
|
},
|
|
14265
14271
|
sliderRefreshInit() {
|
|
14266
|
-
this.timer.slider = setInterval(() => {
|
|
14272
|
+
clearInterval(this.timer.slider), this.timer.slider = setInterval(() => {
|
|
14267
14273
|
var e, i, t;
|
|
14268
|
-
if (this.thisSliderTarget) {
|
|
14269
|
-
|
|
14270
|
-
|
|
14271
|
-
|
|
14272
|
-
|
|
14273
|
-
|
|
14274
|
-
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14274
|
+
if (!(!this.$el || !this.thisSliderTarget)) {
|
|
14275
|
+
if (this.thisSliderTarget) {
|
|
14276
|
+
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;
|
|
14277
|
+
this.currentTop = r - n;
|
|
14278
|
+
} else
|
|
14279
|
+
this.currentTop = 0;
|
|
14280
|
+
if (this.thisSliderTarget) {
|
|
14281
|
+
let s = this.thisSliderTarget;
|
|
14282
|
+
this.currentHeight = (s == null ? void 0 : s.clientHeight) || 0;
|
|
14283
|
+
} else
|
|
14284
|
+
this.currentHeight = 0;
|
|
14285
|
+
}
|
|
14278
14286
|
}, 30);
|
|
14279
14287
|
},
|
|
14280
14288
|
dragOver(e, i) {
|