@fox-js/navigation 4.0.1-24 → 4.0.1-25
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/index.cjs.js +1 -1
- package/dist/index.esm.js +259 -249
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Transition as et, computed as X, createBlock as b, createElementBlock as nt, createElementVNode as it, createVNode as
|
|
2
|
-
import { FoxLeaveEnd as
|
|
1
|
+
import { Transition as et, computed as X, createBlock as b, createElementBlock as nt, createElementVNode as it, createVNode as ot, defineComponent as M, normalizeClass as at, normalizeStyle as H, onBeforeUnmount as rt, onMounted as st, openBlock as D, reactive as ct, renderSlot as lt, resolveComponent as C, resolveDynamicComponent as ut, unref as j, watch as dt, withCtx as W } from "vue";
|
|
2
|
+
import { FoxLeaveEnd as G, OperationType as $ } from "@fox-js/fox";
|
|
3
3
|
var ft = /* @__PURE__ */ M({
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -17,19 +17,19 @@ var ft = /* @__PURE__ */ M({
|
|
|
17
17
|
multi: !1,
|
|
18
18
|
name: t.routerViewName
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
default:
|
|
20
|
+
default: W(({ Component: l }) => [ot(et, { name: "fox-default-navigator__trans" }, {
|
|
21
|
+
default: W(() => [(D(), b(ut(l)))]),
|
|
22
22
|
_: 2
|
|
23
23
|
}, 1024)]),
|
|
24
24
|
_: 1
|
|
25
25
|
}, 8, ["name"]);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
}), vt = ft,
|
|
28
|
+
}), vt = ft, B = 10;
|
|
29
29
|
function gt(t, e) {
|
|
30
|
-
return t > e && t >
|
|
30
|
+
return t > e && t > B ? "horizontal" : e > t && e > B ? "vertical" : "";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function F() {
|
|
33
33
|
const t = {
|
|
34
34
|
startX: 0,
|
|
35
35
|
startY: 0,
|
|
@@ -46,20 +46,20 @@ function N() {
|
|
|
46
46
|
t.deltaX = 0, t.deltaY = 0, t.offsetX = 0, t.offsetY = 0, t.direction = "", t.startTime = 0;
|
|
47
47
|
};
|
|
48
48
|
return {
|
|
49
|
-
move: ((
|
|
50
|
-
if (
|
|
51
|
-
const w =
|
|
49
|
+
move: ((g) => {
|
|
50
|
+
if (g.touches) {
|
|
51
|
+
const w = g.touches[0];
|
|
52
52
|
t.deltaX = w.clientX - t.startX, t.deltaY = w.clientY - t.startY, t.moveX = w.clientX, t.moveY = w.clientY;
|
|
53
53
|
} else
|
|
54
|
-
t.deltaX =
|
|
54
|
+
t.deltaX = g.clientX - t.startX, t.deltaY = g.clientY - t.startY, t.moveX = g.clientX, t.moveY = g.clientY;
|
|
55
55
|
t.offsetX = Math.abs(t.deltaX), t.offsetY = Math.abs(t.deltaY), t.duration = Date.now() - t.startTime, t.direction || (t.direction = gt(t.offsetX, t.offsetY));
|
|
56
56
|
}),
|
|
57
|
-
start: ((
|
|
58
|
-
if (n(),
|
|
59
|
-
const w =
|
|
57
|
+
start: ((g) => {
|
|
58
|
+
if (n(), g.touches) {
|
|
59
|
+
const w = g.touches[0];
|
|
60
60
|
t.startX = w.clientX, t.startY = w.clientY;
|
|
61
61
|
} else
|
|
62
|
-
t.startX =
|
|
62
|
+
t.startX = g.clientX, t.startY = g.clientY;
|
|
63
63
|
t.startTime = Date.now();
|
|
64
64
|
}),
|
|
65
65
|
reset: n,
|
|
@@ -68,12 +68,12 @@ function N() {
|
|
|
68
68
|
state: t
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function mt(t) {
|
|
72
72
|
return t === window;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
const e =
|
|
76
|
-
if (
|
|
74
|
+
var J = (t) => {
|
|
75
|
+
const e = j(t);
|
|
76
|
+
if (mt(e)) {
|
|
77
77
|
const i = e.innerWidth, n = e.innerHeight;
|
|
78
78
|
return {
|
|
79
79
|
top: 0,
|
|
@@ -92,31 +92,31 @@ var G = (t) => {
|
|
|
92
92
|
width: 0,
|
|
93
93
|
height: 0
|
|
94
94
|
};
|
|
95
|
-
},
|
|
95
|
+
}, K = (t, e, i) => {
|
|
96
96
|
e = e ?? {
|
|
97
97
|
bubbles: !1,
|
|
98
98
|
cancelable: !1,
|
|
99
99
|
detail: void 0
|
|
100
100
|
};
|
|
101
101
|
const n = document.createEvent("Events");
|
|
102
|
-
let l = !0,
|
|
103
|
-
for (let
|
|
104
|
-
n.initEvent(t, l,
|
|
105
|
-
},
|
|
102
|
+
let l = !0, m = !0;
|
|
103
|
+
for (let g in e) g === "bubbles" ? l = !!e[g] : g === "cancelable" ? m = !!e[g] : n[g] = e[g];
|
|
104
|
+
n.initEvent(t, l, m), (i ?? document).dispatchEvent(n);
|
|
105
|
+
}, ht = 15, pt = 300, wt = 200;
|
|
106
106
|
function xt(t) {
|
|
107
107
|
t.stopPropagation();
|
|
108
108
|
}
|
|
109
109
|
function Tt(t, e, i = 1) {
|
|
110
110
|
return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function S(t, e = 0, i, n = wt) {
|
|
113
113
|
i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function U(t) {
|
|
116
116
|
t.style.transition = "", t.style.transform = "";
|
|
117
117
|
}
|
|
118
118
|
var _t = /^matrix\((.+)\)$/;
|
|
119
|
-
function
|
|
119
|
+
function V(t) {
|
|
120
120
|
let e = 0;
|
|
121
121
|
const i = t, { transform: n } = window.getComputedStyle(i);
|
|
122
122
|
if (n) {
|
|
@@ -125,9 +125,9 @@ function S(t) {
|
|
|
125
125
|
}
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function yt(t, e, i, n, l,
|
|
130
|
-
const
|
|
128
|
+
var k = /* @__PURE__ */ new WeakMap();
|
|
129
|
+
function yt(t, e, i, n, l, m, g = 600, w = 60, y = null) {
|
|
130
|
+
const a = {
|
|
131
131
|
active: !0,
|
|
132
132
|
startDistance: 0,
|
|
133
133
|
scrollDistance: 0,
|
|
@@ -135,42 +135,45 @@ function yt(t, e, i, n, l, h, v = 600, w = 60, y = null) {
|
|
|
135
135
|
moving: !1,
|
|
136
136
|
dragging: !1,
|
|
137
137
|
transitionEndTrigger: null
|
|
138
|
-
}, p = t.previousSibling,
|
|
139
|
-
let
|
|
140
|
-
if (
|
|
141
|
-
const _ =
|
|
138
|
+
}, p = t.previousSibling, h = F(), r = (o, f, v, E) => {
|
|
139
|
+
let u = f + a.startDistance;
|
|
140
|
+
if (v === "end") {
|
|
141
|
+
const _ = J(o);
|
|
142
142
|
let x = _.width * e;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
p &&
|
|
143
|
+
u < x ? u = 0 : u = _.width, a.transitionEndTrigger = () => {
|
|
144
|
+
a.moving = !1, m && o.classList.remove(m), setTimeout(() => {
|
|
145
|
+
p && U(p), u == 0 ? U(o) : K(G, {}, o), a.moving = !1;
|
|
146
146
|
}, w);
|
|
147
|
-
}, p &&
|
|
147
|
+
}, p && S(p, 0, "", 0), u > 0 && typeof n == "function" && n(l), S(o, u, "end", E);
|
|
148
148
|
} else
|
|
149
|
-
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
}, c = (
|
|
153
|
-
if (
|
|
154
|
-
|
|
149
|
+
u < 0 && (u = 0), S(o, u, "", 0);
|
|
150
|
+
}, d = () => {
|
|
151
|
+
a.transitionEndTrigger && (a.transitionEndTrigger(), a.transitionEndTrigger = null);
|
|
152
|
+
}, c = (o) => {
|
|
153
|
+
if (h.start(o), a.draging = y ? y(t, h.state.startX, h.state.startY) : !0, !a.draging) {
|
|
154
|
+
h.reset();
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
}, T = (
|
|
159
|
-
|
|
157
|
+
a.scrollDistance = 0, a.moving && (a.scrollDistance = V(t)), m && t.classList.add(m), a.transitionEndTrigger = null, a.moving = !0;
|
|
158
|
+
}, T = (o) => {
|
|
159
|
+
a.draging && (a.moving = !0, h.move(o), !h.isVertical() && (V(t) === 0 && h.state.deltaX < 0 || (xt(o), r(t, h.state.deltaX, "", 0))));
|
|
160
160
|
}, s = () => {
|
|
161
|
-
if (!
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
|
|
161
|
+
if (!a.draging || (a.draging = !1, h.isVertical()) || V(t) === 0 && h.state.deltaX < 0) return;
|
|
162
|
+
const o = h.state.deltaX;
|
|
163
|
+
if (o === 0) {
|
|
164
|
+
m && t.classList.remove(m), a.moving = !1;
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
const f =
|
|
168
|
-
f < pt && Math.abs(
|
|
167
|
+
const f = h.state.duration;
|
|
168
|
+
if (f < pt && Math.abs(o) > ht) {
|
|
169
|
+
const v = Tt(o, f, i);
|
|
170
|
+
r(t, v, "end", g);
|
|
171
|
+
} else r(t, o, "end", g);
|
|
169
172
|
};
|
|
170
|
-
t.addEventListener("transitionend",
|
|
171
|
-
state:
|
|
172
|
-
transitionend:
|
|
173
|
-
transitioncancel:
|
|
173
|
+
t.addEventListener("transitionend", d), t.addEventListener("transitioncancel", d), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), k.set(t, {
|
|
174
|
+
state: a,
|
|
175
|
+
transitionend: d,
|
|
176
|
+
transitioncancel: d,
|
|
174
177
|
touchstart: c,
|
|
175
178
|
touchmove: T,
|
|
176
179
|
touchend: s,
|
|
@@ -178,8 +181,8 @@ function yt(t, e, i, n, l, h, v = 600, w = 60, y = null) {
|
|
|
178
181
|
});
|
|
179
182
|
}
|
|
180
183
|
function $t(t) {
|
|
181
|
-
const e =
|
|
182
|
-
e && (
|
|
184
|
+
const e = k.get(t);
|
|
185
|
+
e && (k.delete(t), t.removeEventListener("transitionend", e.transitionend), t.removeEventListener("transitioncancel", e.transitioncancel), t.removeEventListener("touchstart", e.touchstart), t.removeEventListener("touchmove", e.touchmove), t.removeEventListener("touchend", e.touchend), t.removeEventListener("touchcancel", e.touchcancel));
|
|
183
186
|
}
|
|
184
187
|
var Et = /* @__PURE__ */ M({
|
|
185
188
|
__name: "index",
|
|
@@ -215,79 +218,79 @@ var Et = /* @__PURE__ */ M({
|
|
|
215
218
|
function l(r) {
|
|
216
219
|
return (r && r.params && r.params.animationType) ?? "slide";
|
|
217
220
|
}
|
|
218
|
-
function
|
|
221
|
+
function m(r) {
|
|
219
222
|
return (r && r.params && r.params.dragRemove) ?? e.dragRemove;
|
|
220
223
|
}
|
|
221
|
-
const
|
|
222
|
-
if (c?.opsType === $.Append ||
|
|
223
|
-
const s = l(c),
|
|
224
|
-
if (
|
|
224
|
+
const g = (r, d, c, T) => {
|
|
225
|
+
if (c?.opsType === $.Append || d) {
|
|
226
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
227
|
+
if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
|
|
225
228
|
return;
|
|
226
|
-
|
|
227
|
-
const f = `fox-root-navigator--${s}-${
|
|
228
|
-
r.classList.add(f), r.classList.add(
|
|
229
|
+
o === "enter" && (i = c, n = "enter");
|
|
230
|
+
const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-active`;
|
|
231
|
+
r.classList.add(f), r.classList.add(v);
|
|
229
232
|
}
|
|
230
|
-
}, w = (r,
|
|
231
|
-
if (c?.opsType === $.Append ||
|
|
232
|
-
const s = l(c),
|
|
233
|
-
if (
|
|
233
|
+
}, w = (r, d, c, T) => {
|
|
234
|
+
if (c?.opsType === $.Append || d) {
|
|
235
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
236
|
+
if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
|
|
234
237
|
return;
|
|
235
|
-
const f = `fox-root-navigator--${s}-${
|
|
236
|
-
r.classList.remove(f), r.classList.add(
|
|
238
|
+
const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-to`;
|
|
239
|
+
r.classList.remove(f), r.classList.add(v);
|
|
237
240
|
}
|
|
238
|
-
}, y = (r,
|
|
239
|
-
if (c?.opsType === $.Append ||
|
|
240
|
-
const s = l(c),
|
|
241
|
-
if (
|
|
242
|
-
const f = `fox-root-navigator--${s}-${
|
|
243
|
-
r.classList.remove(f), r.classList.remove(
|
|
241
|
+
}, y = (r, d, c, T) => {
|
|
242
|
+
if (c?.opsType === $.Append || d) {
|
|
243
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
244
|
+
if (o === "enter" && (i = null, n = null), s !== "pop") {
|
|
245
|
+
const f = `fox-root-navigator--${s}-${o}-active`, v = `fox-root-navigator--${s}-${o}-to`;
|
|
246
|
+
r.classList.remove(f), r.classList.remove(v);
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
|
-
if (
|
|
249
|
+
if (m(c) === !0 && !d && c?.opsType === $.Append) {
|
|
247
250
|
let s = null;
|
|
248
|
-
e.draggableArea && (s = function(
|
|
249
|
-
const E = f -
|
|
250
|
-
return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top &&
|
|
251
|
+
e.draggableArea && (s = function(o, f, v) {
|
|
252
|
+
const E = f - o.offsetLeft, u = v - o.offsetTop;
|
|
253
|
+
return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && u < e.draggableArea?.top || e.draggableArea?.bottom && u > e.draggableArea?.bottom);
|
|
251
254
|
}), yt(r, e.removeMoveRatio, e.momentumReduceRatio, e.removeViewPage, c, "fox-root-navigator__item--moving", e.swipeDuration, e.resetDelay, s);
|
|
252
255
|
}
|
|
253
|
-
},
|
|
254
|
-
if (c?.opsType === $.Append ||
|
|
255
|
-
const s = l(c),
|
|
256
|
-
if (
|
|
256
|
+
}, a = (r, d, c, T) => {
|
|
257
|
+
if (c?.opsType === $.Append || d) {
|
|
258
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
259
|
+
if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
|
|
257
260
|
return;
|
|
258
|
-
|
|
259
|
-
const f = `fox-root-navigator--${s}-${
|
|
260
|
-
r.classList.add(f), r.classList.add(
|
|
261
|
+
o === "leave" && (i = c, n = "leave");
|
|
262
|
+
const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-active`;
|
|
263
|
+
r.classList.add(f), r.classList.add(v);
|
|
261
264
|
}
|
|
262
|
-
}, p = (r,
|
|
263
|
-
if (c?.opsType === $.Append ||
|
|
264
|
-
const s = l(c),
|
|
265
|
-
if (
|
|
265
|
+
}, p = (r, d, c, T) => {
|
|
266
|
+
if (c?.opsType === $.Append || d) {
|
|
267
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
268
|
+
if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
|
|
266
269
|
return;
|
|
267
|
-
const f = `fox-root-navigator--${s}-${
|
|
268
|
-
r.classList.remove(f), r.classList.add(
|
|
270
|
+
const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-to`;
|
|
271
|
+
r.classList.remove(f), r.classList.add(v);
|
|
269
272
|
}
|
|
270
|
-
},
|
|
271
|
-
if (c?.opsType === $.Append ||
|
|
272
|
-
const s = l(c),
|
|
273
|
-
if (
|
|
274
|
-
const f = `fox-root-navigator--${s}-${
|
|
275
|
-
r.classList.remove(f), r.classList.remove(
|
|
273
|
+
}, h = (r, d, c, T) => {
|
|
274
|
+
if (c?.opsType === $.Append || d) {
|
|
275
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
276
|
+
if (o === "leave" && (i = null, n = null), s !== "pop") {
|
|
277
|
+
const f = `fox-root-navigator--${s}-${o}-active`, v = `fox-root-navigator--${s}-${o}-to`;
|
|
278
|
+
r.classList.remove(f), r.classList.remove(v);
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
|
-
|
|
281
|
+
m(c) && !d && $t(r);
|
|
279
282
|
};
|
|
280
|
-
return (r,
|
|
283
|
+
return (r, d) => {
|
|
281
284
|
const c = C("fox-router-view");
|
|
282
285
|
return D(), b(c, {
|
|
283
286
|
class: "fox-root-navigator",
|
|
284
287
|
"view-class": t.viewClass,
|
|
285
|
-
"before-enter":
|
|
288
|
+
"before-enter": g,
|
|
286
289
|
enter: w,
|
|
287
290
|
"after-enter": y,
|
|
288
|
-
"before-leave":
|
|
291
|
+
"before-leave": a,
|
|
289
292
|
leave: p,
|
|
290
|
-
"after-leave":
|
|
293
|
+
"after-leave": h,
|
|
291
294
|
multi: !0,
|
|
292
295
|
name: t.routerViewName,
|
|
293
296
|
"view-tag": t.viewTag,
|
|
@@ -333,14 +336,14 @@ function Ct(t) {
|
|
|
333
336
|
function Xt(t, e, i = 1) {
|
|
334
337
|
return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
|
|
335
338
|
}
|
|
336
|
-
function
|
|
339
|
+
function Y(t, e = 0, i, n = Rt) {
|
|
337
340
|
i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
|
|
338
341
|
}
|
|
339
|
-
function
|
|
342
|
+
function z(t) {
|
|
340
343
|
t.style.transition = "", t.style.transform = "";
|
|
341
344
|
}
|
|
342
345
|
var Pt = /^matrix\((.+)\)$/;
|
|
343
|
-
function
|
|
346
|
+
function O(t) {
|
|
344
347
|
let e = 0;
|
|
345
348
|
const i = t, { transform: n } = window.getComputedStyle(i);
|
|
346
349
|
if (n) {
|
|
@@ -349,9 +352,9 @@ function Y(t) {
|
|
|
349
352
|
}
|
|
350
353
|
return e;
|
|
351
354
|
}
|
|
352
|
-
var
|
|
353
|
-
function It(t, e, i, n, l,
|
|
354
|
-
const
|
|
355
|
+
var N = /* @__PURE__ */ new WeakMap();
|
|
356
|
+
function It(t, e, i, n, l, m, g = 600, w = 60, y = null) {
|
|
357
|
+
const a = {
|
|
355
358
|
active: !0,
|
|
356
359
|
startDistance: 0,
|
|
357
360
|
scrollDistance: 0,
|
|
@@ -359,42 +362,45 @@ function It(t, e, i, n, l, h, v = 600, w = 60, y = null) {
|
|
|
359
362
|
moving: !1,
|
|
360
363
|
dragging: !1,
|
|
361
364
|
transitionEndTrigger: null
|
|
362
|
-
}, p = t.previousSibling,
|
|
363
|
-
let
|
|
364
|
-
if (
|
|
365
|
-
const _ =
|
|
365
|
+
}, p = t.previousSibling, h = F(), r = (o, f, v, E) => {
|
|
366
|
+
let u = f + a.startDistance;
|
|
367
|
+
if (v === "end") {
|
|
368
|
+
const _ = J(o);
|
|
366
369
|
let x = _.width * e;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
p &&
|
|
370
|
+
u < x ? u = 0 : u = _.width, a.transitionEndTrigger = () => {
|
|
371
|
+
a.moving = !1, m && o.classList.remove(m), setTimeout(() => {
|
|
372
|
+
p && z(p), u == 0 ? z(o) : K(G, {}, o), a.moving = !1;
|
|
370
373
|
}, w);
|
|
371
|
-
}, p &&
|
|
374
|
+
}, p && Y(p, 0, "", 0), u > 0 && typeof n == "function" && n(l), Y(o, u, "end", E);
|
|
372
375
|
} else
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
}, c = (
|
|
377
|
-
if (
|
|
378
|
-
|
|
376
|
+
u < 0 && (u = 0), Y(o, u, "", 0);
|
|
377
|
+
}, d = () => {
|
|
378
|
+
a.transitionEndTrigger && (a.transitionEndTrigger(), a.transitionEndTrigger = null);
|
|
379
|
+
}, c = (o) => {
|
|
380
|
+
if (h.start(o), a.draging = y ? y(t, h.state.startX, h.state.startY) : !0, !a.draging) {
|
|
381
|
+
h.reset();
|
|
379
382
|
return;
|
|
380
383
|
}
|
|
381
|
-
|
|
382
|
-
}, T = (
|
|
383
|
-
|
|
384
|
+
a.scrollDistance = 0, a.moving && (a.scrollDistance = O(t)), m && t.classList.add(m), a.transitionEndTrigger = null, a.moving = !0;
|
|
385
|
+
}, T = (o) => {
|
|
386
|
+
a.draging && (a.moving = !0, h.move(o), !h.isVertical() && (O(t) === 0 && h.state.deltaX < 0 || (Ct(o), r(t, h.state.deltaX, "", 0))));
|
|
384
387
|
}, s = () => {
|
|
385
|
-
if (!
|
|
386
|
-
const
|
|
387
|
-
if (
|
|
388
|
-
|
|
388
|
+
if (!a.draging || (a.draging = !1, h.isVertical()) || O(t) === 0 && h.state.deltaX < 0) return;
|
|
389
|
+
const o = h.state.deltaX;
|
|
390
|
+
if (o === 0) {
|
|
391
|
+
m && t.classList.remove(m), a.moving = !1;
|
|
389
392
|
return;
|
|
390
393
|
}
|
|
391
|
-
const f =
|
|
392
|
-
f < At && Math.abs(
|
|
394
|
+
const f = h.state.duration;
|
|
395
|
+
if (f < At && Math.abs(o) > Mt) {
|
|
396
|
+
const v = Xt(o, f, i);
|
|
397
|
+
r(t, v, "end", g);
|
|
398
|
+
} else r(t, o, "end", g);
|
|
393
399
|
};
|
|
394
|
-
t.addEventListener("transitionend",
|
|
395
|
-
state:
|
|
396
|
-
transitionend:
|
|
397
|
-
transitioncancel:
|
|
400
|
+
t.addEventListener("transitionend", d), t.addEventListener("transitioncancel", d), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), N.set(t, {
|
|
401
|
+
state: a,
|
|
402
|
+
transitionend: d,
|
|
403
|
+
transitioncancel: d,
|
|
398
404
|
touchstart: c,
|
|
399
405
|
touchmove: T,
|
|
400
406
|
touchend: s,
|
|
@@ -402,8 +408,8 @@ function It(t, e, i, n, l, h, v = 600, w = 60, y = null) {
|
|
|
402
408
|
});
|
|
403
409
|
}
|
|
404
410
|
function St(t) {
|
|
405
|
-
const e =
|
|
406
|
-
e && (
|
|
411
|
+
const e = N.get(t);
|
|
412
|
+
e && (N.delete(t), t.removeEventListener("transitionend", e.transitionend), t.removeEventListener("transitioncancel", e.transitioncancel), t.removeEventListener("touchstart", e.touchstart), t.removeEventListener("touchmove", e.touchmove), t.removeEventListener("touchend", e.touchend), t.removeEventListener("touchcancel", e.touchcancel));
|
|
407
413
|
}
|
|
408
414
|
var Vt = /* @__PURE__ */ M({
|
|
409
415
|
__name: "index",
|
|
@@ -439,79 +445,79 @@ var Vt = /* @__PURE__ */ M({
|
|
|
439
445
|
function l(r) {
|
|
440
446
|
return (r && r.params && r.params.animationType) ?? "slide";
|
|
441
447
|
}
|
|
442
|
-
function
|
|
448
|
+
function m(r) {
|
|
443
449
|
return (r && r.params && r.params.dragRemove) ?? e.dragRemove;
|
|
444
450
|
}
|
|
445
|
-
const
|
|
446
|
-
if (c?.opsType === $.Append ||
|
|
447
|
-
const s = l(c),
|
|
448
|
-
if (
|
|
451
|
+
const g = (r, d, c, T) => {
|
|
452
|
+
if (c?.opsType === $.Append || d) {
|
|
453
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
454
|
+
if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
|
|
449
455
|
return;
|
|
450
|
-
|
|
451
|
-
const f = `fox-stack-navigator--${s}-${
|
|
452
|
-
r.classList.add(f), r.classList.add(
|
|
456
|
+
o === "enter" && (i = c, n = "enter");
|
|
457
|
+
const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-active`;
|
|
458
|
+
r.classList.add(f), r.classList.add(v);
|
|
453
459
|
}
|
|
454
|
-
}, w = (r,
|
|
455
|
-
if (c?.opsType === $.Append ||
|
|
456
|
-
const s = l(c),
|
|
457
|
-
if (
|
|
460
|
+
}, w = (r, d, c, T) => {
|
|
461
|
+
if (c?.opsType === $.Append || d) {
|
|
462
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
463
|
+
if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
|
|
458
464
|
return;
|
|
459
|
-
const f = `fox-stack-navigator--${s}-${
|
|
460
|
-
r.classList.remove(f), r.classList.add(
|
|
465
|
+
const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-to`;
|
|
466
|
+
r.classList.remove(f), r.classList.add(v);
|
|
461
467
|
}
|
|
462
|
-
}, y = (r,
|
|
463
|
-
if (c?.opsType === $.Append ||
|
|
464
|
-
const s = l(c),
|
|
465
|
-
if (
|
|
466
|
-
const f = `fox-stack-navigator--${s}-${
|
|
467
|
-
r.classList.remove(f), r.classList.remove(
|
|
468
|
+
}, y = (r, d, c, T) => {
|
|
469
|
+
if (c?.opsType === $.Append || d) {
|
|
470
|
+
const s = l(c), o = d ? "show" : "enter";
|
|
471
|
+
if (o === "enter" && (i = null, n = null), s !== "pop") {
|
|
472
|
+
const f = `fox-stack-navigator--${s}-${o}-active`, v = `fox-stack-navigator--${s}-${o}-to`;
|
|
473
|
+
r.classList.remove(f), r.classList.remove(v);
|
|
468
474
|
}
|
|
469
475
|
}
|
|
470
|
-
if (
|
|
476
|
+
if (m(c) === !0 && !d && c?.opsType === $.Append) {
|
|
471
477
|
let s = null;
|
|
472
|
-
e.draggableArea && (s = function(
|
|
473
|
-
const E = f -
|
|
474
|
-
return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top &&
|
|
478
|
+
e.draggableArea && (s = function(o, f, v) {
|
|
479
|
+
const E = f - o.offsetLeft, u = v - o.offsetTop;
|
|
480
|
+
return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && u < e.draggableArea?.top || e.draggableArea?.bottom && u > e.draggableArea?.bottom);
|
|
475
481
|
}), It(r, e.removeMoveRatio, e.momentumReduceRatio, e.removeViewPage, c, "fox-stack-navigator__item--moving", e.swipeDuration, e.resetDelay, s);
|
|
476
482
|
}
|
|
477
|
-
},
|
|
478
|
-
if (c?.opsType === $.Append ||
|
|
479
|
-
const s = l(c),
|
|
480
|
-
if (
|
|
483
|
+
}, a = (r, d, c, T) => {
|
|
484
|
+
if (c?.opsType === $.Append || d) {
|
|
485
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
486
|
+
if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
|
|
481
487
|
return;
|
|
482
|
-
|
|
483
|
-
const f = `fox-stack-navigator--${s}-${
|
|
484
|
-
r.classList.add(f), r.classList.add(
|
|
488
|
+
o === "leave" && (i = c, n = "leave");
|
|
489
|
+
const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-active`;
|
|
490
|
+
r.classList.add(f), r.classList.add(v);
|
|
485
491
|
}
|
|
486
|
-
}, p = (r,
|
|
487
|
-
if (c?.opsType === $.Append ||
|
|
488
|
-
const s = l(c),
|
|
489
|
-
if (
|
|
492
|
+
}, p = (r, d, c, T) => {
|
|
493
|
+
if (c?.opsType === $.Append || d) {
|
|
494
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
495
|
+
if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
|
|
490
496
|
return;
|
|
491
|
-
const f = `fox-stack-navigator--${s}-${
|
|
492
|
-
r.classList.remove(f), r.classList.add(
|
|
497
|
+
const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-to`;
|
|
498
|
+
r.classList.remove(f), r.classList.add(v);
|
|
493
499
|
}
|
|
494
|
-
},
|
|
495
|
-
if (c?.opsType === $.Append ||
|
|
496
|
-
const s = l(c),
|
|
497
|
-
if (
|
|
498
|
-
const f = `fox-stack-navigator--${s}-${
|
|
499
|
-
r.classList.remove(f), r.classList.remove(
|
|
500
|
+
}, h = (r, d, c, T) => {
|
|
501
|
+
if (c?.opsType === $.Append || d) {
|
|
502
|
+
const s = l(c), o = d ? "hide" : "leave";
|
|
503
|
+
if (o === "leave" && (i = null, n = null), s !== "pop") {
|
|
504
|
+
const f = `fox-stack-navigator--${s}-${o}-active`, v = `fox-stack-navigator--${s}-${o}-to`;
|
|
505
|
+
r.classList.remove(f), r.classList.remove(v);
|
|
500
506
|
}
|
|
501
507
|
}
|
|
502
|
-
|
|
508
|
+
m(c) && !d && St(r);
|
|
503
509
|
};
|
|
504
|
-
return (r,
|
|
510
|
+
return (r, d) => {
|
|
505
511
|
const c = C("fox-router-view");
|
|
506
512
|
return D(), b(c, {
|
|
507
513
|
class: "fox-stack-navigator",
|
|
508
514
|
"view-class": t.viewClass,
|
|
509
|
-
"before-enter":
|
|
515
|
+
"before-enter": g,
|
|
510
516
|
enter: w,
|
|
511
517
|
"after-enter": y,
|
|
512
|
-
"before-leave":
|
|
518
|
+
"before-leave": a,
|
|
513
519
|
leave: p,
|
|
514
|
-
"after-leave":
|
|
520
|
+
"after-leave": h,
|
|
515
521
|
multi: !0,
|
|
516
522
|
name: t.routerViewName,
|
|
517
523
|
"view-tag": t.viewTag,
|
|
@@ -544,7 +550,7 @@ var Vt = /* @__PURE__ */ M({
|
|
|
544
550
|
});
|
|
545
551
|
return (n, l) => (D(), nt("div", Ot, [it("div", {
|
|
546
552
|
class: "fox-swiper-navigator__inner",
|
|
547
|
-
style:
|
|
553
|
+
style: H(i.value)
|
|
548
554
|
}, [lt(n.$slots, "default")], 4)]));
|
|
549
555
|
}
|
|
550
556
|
}), Nt = kt, Ft = 0;
|
|
@@ -558,7 +564,7 @@ function qt(t) {
|
|
|
558
564
|
function Ht(t, e, i = 1) {
|
|
559
565
|
return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
|
|
560
566
|
}
|
|
561
|
-
function
|
|
567
|
+
function q(t, e = 0, i, n = zt) {
|
|
562
568
|
i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
|
|
563
569
|
}
|
|
564
570
|
var jt = class {
|
|
@@ -583,35 +589,35 @@ var jt = class {
|
|
|
583
589
|
touchmove = null;
|
|
584
590
|
touchend = null;
|
|
585
591
|
touchcancel = null;
|
|
586
|
-
constructor(t, e, i, n, l,
|
|
587
|
-
this.getStartDistance = t, this.openPage = e, this.isPageOpened = i, this.pageOpened = n, this.moveRatio = l, this.momentumReduceRatio =
|
|
592
|
+
constructor(t, e, i, n, l, m) {
|
|
593
|
+
this.getStartDistance = t, this.openPage = e, this.isPageOpened = i, this.pageOpened = n, this.moveRatio = l, this.momentumReduceRatio = m;
|
|
588
594
|
}
|
|
589
595
|
open() {
|
|
590
|
-
const t = this.el, e =
|
|
596
|
+
const t = this.el, e = F(), i = (n, l, m, g) => {
|
|
591
597
|
let w = l + this.startDistance;
|
|
592
598
|
const y = this.columnWidth * this.moveRatio;
|
|
593
|
-
if (
|
|
599
|
+
if (m === "end") {
|
|
594
600
|
if (l == 0) {
|
|
595
601
|
this.moving = !1;
|
|
596
602
|
return;
|
|
597
603
|
}
|
|
598
604
|
Math.abs(l) > y ? l > 0 ? w = this.startDistance + this.columnWidth : w = this.startDistance - this.columnWidth : w = this.startDistance;
|
|
599
|
-
let
|
|
600
|
-
|
|
601
|
-
const p = Math.floor(
|
|
602
|
-
this.isPageOpened(p) || this.openPage(p), w = -p * this.columnWidth,
|
|
605
|
+
let a = -w;
|
|
606
|
+
a < 0 ? a = 0 : a > this.width - this.columnWidth && (a = this.width - this.columnWidth);
|
|
607
|
+
const p = Math.floor(a / this.columnWidth);
|
|
608
|
+
this.isPageOpened(p) || this.openPage(p), w = -p * this.columnWidth, g && g > 0 && (this.transitionEndTrigger = () => {
|
|
603
609
|
this.moving = !1, this.pageOpened(p);
|
|
604
|
-
}),
|
|
610
|
+
}), q(n, w, "end", g), this.scrollDistance = w;
|
|
605
611
|
} else {
|
|
606
612
|
if (Math.abs(l) > y) {
|
|
607
613
|
let p = 0;
|
|
608
614
|
if (l > 0 ? p = Math.abs(this.startDistance + this.columnWidth) : p = Math.abs(this.startDistance - this.columnWidth), p >= 0 && p < this.width) {
|
|
609
|
-
const
|
|
610
|
-
this.isPageOpened(
|
|
615
|
+
const h = Math.floor(p / this.columnWidth);
|
|
616
|
+
this.isPageOpened(h) || this.openPage(h);
|
|
611
617
|
}
|
|
612
618
|
}
|
|
613
|
-
let
|
|
614
|
-
|
|
619
|
+
let a = -w;
|
|
620
|
+
a < this.min ? a = this.min : a > this.max && (a = this.max), q(n, -a, "", 0);
|
|
615
621
|
}
|
|
616
622
|
};
|
|
617
623
|
this.transitionend = () => {
|
|
@@ -625,22 +631,25 @@ var jt = class {
|
|
|
625
631
|
const n = e.state.deltaX;
|
|
626
632
|
if (n == 0) return;
|
|
627
633
|
const l = e.state.duration;
|
|
628
|
-
l < Ut && Math.abs(n) > Bt
|
|
634
|
+
if (l < Ut && Math.abs(n) > Bt) {
|
|
635
|
+
const m = Ht(n, l, this.momentumReduceRatio);
|
|
636
|
+
i(t, m, "end", this.swipeDuration);
|
|
637
|
+
} else i(t, n, "end", this.swipeDuration);
|
|
629
638
|
}, t.addEventListener("transitionend", this.transitionend), t.addEventListener("touchstart", this.touchstart), t.addEventListener("touchmove", this.touchmove), t.addEventListener("touchend", this.touchend), t.addEventListener("touchcancel", this.touchend);
|
|
630
639
|
}
|
|
631
640
|
close() {
|
|
632
641
|
const t = this.el;
|
|
633
|
-
this.transitionend && t.
|
|
642
|
+
this.transitionend && t.removeEventListener("transitionend", this.transitionend), this.touchstart && t.removeEventListener("touchstart", this.touchstart), this.touchmove && t.removeEventListener("touchmove", this.touchmove), this.touchend && t.removeEventListener("touchend", this.touchend), this.touchcancel && t.removeEventListener("touchcancel", this.touchcancel), this.el = null;
|
|
634
643
|
}
|
|
635
644
|
};
|
|
636
|
-
function Gt(t, e, i, n, l,
|
|
637
|
-
return new jt(t, e, i, n, l,
|
|
645
|
+
function Gt(t, e, i, n, l, m) {
|
|
646
|
+
return new jt(t, e, i, n, l, m);
|
|
638
647
|
}
|
|
639
648
|
function Jt(t) {
|
|
640
|
-
const e =
|
|
649
|
+
const e = j(t), i = window.getComputedStyle(e, null), n = parseFloat(i.getPropertyValue("padding-left")), l = parseFloat(i.getPropertyValue("padding-right")), m = parseFloat(i.getPropertyValue("padding-top")), g = parseFloat(i.getPropertyValue("padding-bottom"));
|
|
641
650
|
return {
|
|
642
651
|
width: e.clientWidth - n - l,
|
|
643
|
-
height: e.clientHeight -
|
|
652
|
+
height: e.clientHeight - m - g
|
|
644
653
|
};
|
|
645
654
|
}
|
|
646
655
|
var Kt = /* @__PURE__ */ M({
|
|
@@ -676,76 +685,77 @@ var Kt = /* @__PURE__ */ M({
|
|
|
676
685
|
openedIndexList: [],
|
|
677
686
|
width: i.width,
|
|
678
687
|
height: i.height
|
|
679
|
-
}), l = e,
|
|
680
|
-
if (n.openedIndexList.indexOf(
|
|
681
|
-
n.openedIndexList.push(
|
|
682
|
-
const _ = i.routes[
|
|
688
|
+
}), l = e, m = () => n.scrollDistance, g = (u) => {
|
|
689
|
+
if (n.openedIndexList.indexOf(u) === -1) {
|
|
690
|
+
n.openedIndexList.push(u);
|
|
691
|
+
const _ = i.routes[u];
|
|
683
692
|
try {
|
|
684
|
-
i.openViewPage(_,
|
|
693
|
+
i.openViewPage(_, u);
|
|
685
694
|
} catch (x) {
|
|
686
695
|
console.error(x);
|
|
687
696
|
}
|
|
688
697
|
}
|
|
689
|
-
}, w = (
|
|
690
|
-
n.index =
|
|
691
|
-
const _ = i.routes[
|
|
698
|
+
}, w = (u) => n.openedIndexList.indexOf(u) !== -1, y = (u) => {
|
|
699
|
+
n.index = u, n.width > 0 ? n.scrollDistance = -n.index * n.width : n.scrollDistance = 0;
|
|
700
|
+
const _ = i.routes[u];
|
|
692
701
|
l("update:activePath", _.path);
|
|
693
702
|
};
|
|
694
|
-
let
|
|
695
|
-
i.draggable && (
|
|
703
|
+
let a = null;
|
|
704
|
+
i.draggable && (a = Gt(m, g, w, y, i.moveRatio, i.momentumReduceRatio));
|
|
696
705
|
let p = null;
|
|
697
706
|
st(() => {
|
|
698
|
-
const
|
|
699
|
-
const x = Jt(
|
|
700
|
-
|
|
707
|
+
const u = s(), _ = () => {
|
|
708
|
+
const x = Jt(u);
|
|
709
|
+
h(i.activePath, i.routes, x.width, x.height, i.swipeDuration, i.direction);
|
|
701
710
|
};
|
|
702
|
-
if (window.ResizeObserver && (p = new window.ResizeObserver(_), p.observe(
|
|
711
|
+
if (window.ResizeObserver && (p = new window.ResizeObserver(_), p.observe(u)), _(), a) {
|
|
703
712
|
const x = f();
|
|
704
|
-
|
|
713
|
+
a.el = x, a.open();
|
|
705
714
|
}
|
|
706
715
|
}), rt(() => {
|
|
707
|
-
p && (p.disconnect(), p = null),
|
|
708
|
-
}),
|
|
716
|
+
p && (p.disconnect(), p = null), a && a.close();
|
|
717
|
+
}), dt([
|
|
709
718
|
() => i.activePath,
|
|
710
719
|
() => i.routes,
|
|
711
720
|
() => i.width,
|
|
712
721
|
() => i.height,
|
|
713
722
|
() => i.swipeDuration,
|
|
714
723
|
() => i.direction
|
|
715
|
-
], ([
|
|
716
|
-
|
|
724
|
+
], ([u, _, x, A, R, P]) => {
|
|
725
|
+
const I = x <= 0 ? n.width : x, L = A <= 0 ? n.height : A;
|
|
726
|
+
h(u, _, I, L, R, P);
|
|
717
727
|
});
|
|
718
|
-
const
|
|
719
|
-
const
|
|
720
|
-
if (n.index = _.findIndex((L) => L.path ===
|
|
728
|
+
const h = (u, _, x, A, R, P = "horizontal") => {
|
|
729
|
+
const I = u;
|
|
730
|
+
if (n.index = _.findIndex((L) => L.path === I), P === "horizontal") {
|
|
721
731
|
const L = x;
|
|
722
732
|
if (L > 0) {
|
|
723
733
|
n.width = x;
|
|
724
734
|
const Q = L * i.routes.length, Z = -L / 3, tt = L * (_.length - 1) + L / 3;
|
|
725
|
-
|
|
735
|
+
a && (a.columnWidth = L, a.width = Q, a.min = Z, a.max = tt), n.index !== -1 && (n.openedIndexList.push(n.index), n.scrollDistance = -L * n.index);
|
|
726
736
|
}
|
|
727
737
|
}
|
|
728
|
-
|
|
729
|
-
}, r = `fox-swiper-navigator-${Wt()}`,
|
|
730
|
-
const
|
|
731
|
-
return i.customClass &&
|
|
738
|
+
a && (a.swipeDuration = R);
|
|
739
|
+
}, r = `fox-swiper-navigator-${Wt()}`, d = X(() => {
|
|
740
|
+
const u = [r];
|
|
741
|
+
return i.customClass && u.push(i.customClass), u;
|
|
732
742
|
}), c = X(() => {
|
|
733
|
-
const
|
|
734
|
-
_ > 0 && (
|
|
743
|
+
const u = {}, _ = n.width > 0 ? n.width : i.width;
|
|
744
|
+
_ > 0 && (u.width = `${_}px`);
|
|
735
745
|
const x = n.height > 0 ? n.height : i.height;
|
|
736
|
-
return x > 0 && (
|
|
746
|
+
return x > 0 && (u.height = `${x}px`), i.customStyle && Object.assign(u, i.customStyle), u;
|
|
737
747
|
});
|
|
738
748
|
let T = null;
|
|
739
749
|
function s() {
|
|
740
750
|
return T || (T = document.querySelector(`.${r}`), T);
|
|
741
751
|
}
|
|
742
|
-
let
|
|
752
|
+
let o = null;
|
|
743
753
|
function f() {
|
|
744
|
-
return
|
|
754
|
+
return o || (o = document.querySelector(`.${r}>.fox-swiper-navigator__inner`), o);
|
|
745
755
|
}
|
|
746
|
-
const
|
|
756
|
+
const v = X(() => n.width > 0 ? `${n.width * i.routes.length}px` : "100%"), E = (u, _) => {
|
|
747
757
|
const x = i.routes.findIndex((A) => {
|
|
748
|
-
const R =
|
|
758
|
+
const R = u.path ?? u.name ?? "";
|
|
749
759
|
return A.path == R;
|
|
750
760
|
});
|
|
751
761
|
return n.width <= 0 ? {} : { style: {
|
|
@@ -753,11 +763,11 @@ var Kt = /* @__PURE__ */ M({
|
|
|
753
763
|
width: `${n.width}px`
|
|
754
764
|
} };
|
|
755
765
|
};
|
|
756
|
-
return (
|
|
766
|
+
return (u, _) => {
|
|
757
767
|
const x = C("fox-router-view");
|
|
758
768
|
return D(), b(x, {
|
|
759
|
-
class:
|
|
760
|
-
style:
|
|
769
|
+
class: at(d.value),
|
|
770
|
+
style: H(c.value),
|
|
761
771
|
"view-class": "fox-swiper-navigator__item",
|
|
762
772
|
tag: Nt,
|
|
763
773
|
"view-tag-props": E,
|
|
@@ -767,7 +777,7 @@ var Kt = /* @__PURE__ */ M({
|
|
|
767
777
|
"scroll-distance": n.scrollDistance,
|
|
768
778
|
"scroll-duration": t.scrollDuration,
|
|
769
779
|
direction: t.direction,
|
|
770
|
-
width:
|
|
780
|
+
width: v.value
|
|
771
781
|
}, null, 8, [
|
|
772
782
|
"class",
|
|
773
783
|
"style",
|