y-design-ssr 1.1.7 → 1.1.9
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/libs/dialog/index.d.ts +9 -0
- package/libs/dialog/index.mjs +114 -107
- package/libs/dialog/index.umd.js +1 -1
- package/libs/dialog/src/dialog.d.ts +13 -0
- package/libs/index.mjs +2022 -1839
- package/libs/index.umd.js +1 -1
- package/libs/tab/index.mjs +244 -67
- package/libs/tab/index.umd.js +1 -1
- package/libs/tabs/index.mjs +502 -326
- package/libs/tabs/index.umd.js +2 -2
- package/libs/tabs/src/smoothscroll-polyfill.d.ts +6 -0
- package/package.json +2 -1
package/libs/tabs/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
3
|
-
(
|
|
1
|
+
import { ref as X, reactive as D, getCurrentInstance as oe, provide as Se, isVNode as ae, inject as Te, onUnmounted as Ne, computed as x, defineComponent as U, createVNode as N, watch as Z, onMounted as ce, nextTick as ee, onBeforeUnmount as Ce, onBeforeUpdate as Ee } from "vue";
|
|
2
|
+
const H = (e, o) => o ? typeof o == "string" ? ` ${e}--${o}` : Array.isArray(o) ? o.reduce((i, t) => i + H(e, t), "") : Object.keys(o).reduce(
|
|
3
|
+
(i, t) => i + (o[t] ? H(e, t) : ""),
|
|
4
4
|
""
|
|
5
|
-
) : "",
|
|
6
|
-
let
|
|
7
|
-
return
|
|
8
|
-
},
|
|
5
|
+
) : "", Le = (e) => (o, i) => {
|
|
6
|
+
let t = o, m = i;
|
|
7
|
+
return t && typeof t != "string" && (m = t, t = ""), t = t ? `${e}__${t}` : e, `${t}${H(t, m)}`;
|
|
8
|
+
}, ze = () => (e, o) => o ? `${H(`y-${e}`, o)}` : `y-${e}`, Be = {
|
|
9
9
|
"pull-refresh": {
|
|
10
10
|
pulling: "下拉刷新...",
|
|
11
11
|
loosing: "释放刷新...",
|
|
@@ -17,58 +17,58 @@ const V = (e, n) => n ? typeof n == "string" ? ` ${e}--${n}` : Array.isArray(n)
|
|
|
17
17
|
validateMessage: "请输入正确内容"
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"zh-CN":
|
|
20
|
+
X("zh-CN");
|
|
21
|
+
D({
|
|
22
|
+
"zh-CN": Be
|
|
23
23
|
});
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
return [
|
|
24
|
+
const G = (e) => {
|
|
25
|
+
const o = `y-${e}`;
|
|
26
|
+
return [o, Le(o), ze()];
|
|
27
27
|
};
|
|
28
|
-
var te = /* @__PURE__ */ ((e) => (e.left = "left", e.top = "top", e.bottom = "bottom", e.right = "right", e))(te || {}),
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
Array.isArray(
|
|
28
|
+
var te = /* @__PURE__ */ ((e) => (e.left = "left", e.top = "top", e.bottom = "bottom", e.right = "right", e))(te || {}), F = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(F || {});
|
|
29
|
+
const se = (e, o) => typeof e == "string" && e.includes("%") && e.includes("%") ? o * Number(e.replace(/%/g, "")) / 100 : Number(e), Ie = (e) => {
|
|
30
|
+
const o = [], i = (t) => {
|
|
31
|
+
Array.isArray(t) && t.forEach((m) => {
|
|
32
32
|
var u;
|
|
33
|
-
|
|
33
|
+
ae(m) && (o.push(m), (u = m.component) != null && u.subTree && i(m.component.subTree.children), m.children && i(m.children));
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
},
|
|
38
|
-
const
|
|
39
|
-
e.sort((
|
|
40
|
-
},
|
|
41
|
-
const
|
|
36
|
+
return i(e), o;
|
|
37
|
+
}, $e = (e, o) => {
|
|
38
|
+
const i = Ie(o.subTree.children);
|
|
39
|
+
e.sort((t, m) => i.indexOf(t.vnode) - i.indexOf(m.vnode));
|
|
40
|
+
}, ue = (e) => {
|
|
41
|
+
const o = oe(), i = D([]);
|
|
42
42
|
return {
|
|
43
|
-
children:
|
|
44
|
-
initProvide: (
|
|
43
|
+
children: i,
|
|
44
|
+
initProvide: (m) => {
|
|
45
45
|
Se(e, {
|
|
46
|
-
addChild: (
|
|
47
|
-
|
|
46
|
+
addChild: (a) => {
|
|
47
|
+
a.proxy && (i.push(a), o && $e(i, o));
|
|
48
48
|
},
|
|
49
|
-
removeChild: (
|
|
50
|
-
const
|
|
51
|
-
|
|
49
|
+
removeChild: (a) => {
|
|
50
|
+
const d = i.indexOf(a);
|
|
51
|
+
i.splice(d, 1);
|
|
52
52
|
},
|
|
53
|
-
children:
|
|
54
|
-
...
|
|
53
|
+
children: i,
|
|
54
|
+
...m
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
const { children:
|
|
62
|
-
return
|
|
63
|
-
index:
|
|
64
|
-
parent:
|
|
58
|
+
}, fe = (e) => {
|
|
59
|
+
const o = Te(e, null), i = oe();
|
|
60
|
+
if (o && i) {
|
|
61
|
+
const { children: t, addChild: m, removeChild: u } = o;
|
|
62
|
+
return m(i), Ne(() => u(i)), {
|
|
63
|
+
index: x(() => t.indexOf(i)),
|
|
64
|
+
parent: o
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
68
|
parent: null,
|
|
69
|
-
index:
|
|
69
|
+
index: X(-1)
|
|
70
70
|
};
|
|
71
|
-
}, [De,
|
|
71
|
+
}, [De, xe] = G("swipe-item"), K = /* @__PURE__ */ U({
|
|
72
72
|
name: De,
|
|
73
73
|
props: {
|
|
74
74
|
clonenNode: {
|
|
@@ -81,36 +81,36 @@ const ie = (e, n) => typeof e == "string" && e.includes("%") && e.includes("%")
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
setup(e, {
|
|
84
|
-
slots:
|
|
84
|
+
slots: o
|
|
85
85
|
}) {
|
|
86
|
-
const
|
|
87
|
-
parent:
|
|
88
|
-
} =
|
|
89
|
-
!e.clonenNode &&
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
let
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
height:
|
|
96
|
-
width:
|
|
97
|
-
marginBottom:
|
|
86
|
+
const i = oe(), {
|
|
87
|
+
parent: t
|
|
88
|
+
} = fe(me);
|
|
89
|
+
!e.clonenNode && i && (t == null || t.children.push(i));
|
|
90
|
+
const m = x(() => e.clonenNode ? e.index : t == null ? void 0 : t.children.findIndex((f) => f.proxy === (i == null ? void 0 : i.proxy))), u = x(() => {
|
|
91
|
+
const f = `${(t == null ? void 0 : t.itemDetail.size) || 0}px`;
|
|
92
|
+
let a = "auto";
|
|
93
|
+
const d = `${(t == null ? void 0 : t.itemDetail.space) || 0}px`;
|
|
94
|
+
return t != null && t.props.autoHeight && (t == null ? void 0 : t.activeIndex) !== m.value && (a = "0"), t != null && t.props.vertical ? {
|
|
95
|
+
height: f,
|
|
96
|
+
width: a,
|
|
97
|
+
marginBottom: d
|
|
98
98
|
} : {
|
|
99
|
-
width:
|
|
100
|
-
height:
|
|
101
|
-
marginRight:
|
|
99
|
+
width: f,
|
|
100
|
+
height: a,
|
|
101
|
+
marginRight: d
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
return () => {
|
|
105
|
-
var
|
|
106
|
-
const
|
|
107
|
-
return
|
|
108
|
-
class:
|
|
105
|
+
var a, d;
|
|
106
|
+
const f = ((a = t == null ? void 0 : t.itemShowedList) == null ? void 0 : a.list[m.value || 0]) || !1;
|
|
107
|
+
return N("div", {
|
|
108
|
+
class: xe(),
|
|
109
109
|
style: u.value
|
|
110
|
-
}, [
|
|
110
|
+
}, [f ? e.clonenNode || ((d = o.default) == null ? void 0 : d.call(o)) : null]);
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
}),
|
|
113
|
+
}), Ye = {
|
|
114
114
|
autoplayTime: {
|
|
115
115
|
type: Number,
|
|
116
116
|
default: 0
|
|
@@ -175,130 +175,130 @@ const ie = (e, n) => typeof e == "string" && e.includes("%") && e.includes("%")
|
|
|
175
175
|
type: String,
|
|
176
176
|
default: "center"
|
|
177
177
|
}
|
|
178
|
-
}, [
|
|
179
|
-
name:
|
|
178
|
+
}, [de, q] = G("swipe"), me = de, Xe = /* @__PURE__ */ U({
|
|
179
|
+
name: de,
|
|
180
180
|
components: {
|
|
181
181
|
YSwipeItem: K
|
|
182
182
|
},
|
|
183
|
-
props:
|
|
183
|
+
props: Ye,
|
|
184
184
|
setup(e, {
|
|
185
|
-
slots:
|
|
186
|
-
emit:
|
|
187
|
-
expose:
|
|
185
|
+
slots: o,
|
|
186
|
+
emit: i,
|
|
187
|
+
expose: t
|
|
188
188
|
}) {
|
|
189
189
|
const {
|
|
190
|
-
initProvide:
|
|
191
|
-
} =
|
|
190
|
+
initProvide: m
|
|
191
|
+
} = ue(me), u = D([]), f = X(Number(e.initIndex)), a = D({
|
|
192
192
|
// 元素尺寸
|
|
193
193
|
size: 0,
|
|
194
194
|
// 间距
|
|
195
195
|
space: 0,
|
|
196
196
|
// 元素宽度比swipe小,占满整个视窗
|
|
197
197
|
isFillViewport: !1
|
|
198
|
-
}),
|
|
198
|
+
}), d = D({
|
|
199
199
|
// 偏移量
|
|
200
200
|
offset: 0,
|
|
201
201
|
// 视窗大小
|
|
202
202
|
viewportSize: 0,
|
|
203
203
|
// 重复节点个数
|
|
204
204
|
cloneNodeCount: 0
|
|
205
|
-
}),
|
|
206
|
-
const
|
|
207
|
-
for (let
|
|
208
|
-
|
|
209
|
-
return
|
|
210
|
-
},
|
|
205
|
+
}), L = X(), p = X(), O = () => {
|
|
206
|
+
const n = u.length, r = [];
|
|
207
|
+
for (let h = 0; h < n; h++)
|
|
208
|
+
r.push(!e.lazy);
|
|
209
|
+
return r;
|
|
210
|
+
}, M = () => {
|
|
211
211
|
if (!e.lazy)
|
|
212
212
|
return;
|
|
213
|
-
const
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
for (let
|
|
218
|
-
if (!
|
|
219
|
-
const
|
|
220
|
-
(
|
|
213
|
+
const n = a.size + a.space, r = u.length * n;
|
|
214
|
+
let h = -(d.offset + c.offset) - d.cloneNodeCount * n;
|
|
215
|
+
h < 0 && (h += r);
|
|
216
|
+
const B = h + d.viewportSize;
|
|
217
|
+
for (let T = 0; T < u.length; T++)
|
|
218
|
+
if (!I.list[T]) {
|
|
219
|
+
const $ = n * T, k = $ + a.size;
|
|
220
|
+
($ >= h && $ < B || k > h && k < B || $ < h && k > B) && (I.list[T] = !0);
|
|
221
221
|
}
|
|
222
|
-
},
|
|
223
|
-
list:
|
|
224
|
-
}),
|
|
225
|
-
|
|
222
|
+
}, I = D({
|
|
223
|
+
list: O()
|
|
224
|
+
}), w = () => {
|
|
225
|
+
I.list = O(), M();
|
|
226
226
|
};
|
|
227
|
-
Z(() => [...u],
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
if (
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
227
|
+
Z(() => [...u], w);
|
|
228
|
+
const _ = (n, r) => {
|
|
229
|
+
n ? a.size = se(n, r) : a.size = r, a.space = Number(e.itemSpace) || 0, a.isFillViewport = a.size >= r, d.viewportSize = r, d.cloneNodeCount = P();
|
|
230
|
+
}, P = () => {
|
|
231
|
+
if (z.value) {
|
|
232
|
+
const n = a.size + a.space;
|
|
233
|
+
if (n === 0)
|
|
234
234
|
return 0;
|
|
235
|
-
const
|
|
236
|
-
return Math.min(
|
|
235
|
+
const r = d.viewportSize * 2 - n, h = Math.ceil(r / n);
|
|
236
|
+
return Math.min(h, u.length - 1);
|
|
237
237
|
}
|
|
238
238
|
return 0;
|
|
239
|
-
},
|
|
240
|
-
if (!
|
|
239
|
+
}, Y = () => {
|
|
240
|
+
if (!L.value)
|
|
241
241
|
return;
|
|
242
242
|
const {
|
|
243
|
-
width:
|
|
244
|
-
height:
|
|
245
|
-
} =
|
|
246
|
-
e.vertical ?
|
|
243
|
+
width: n,
|
|
244
|
+
height: r
|
|
245
|
+
} = L.value.getBoundingClientRect();
|
|
246
|
+
e.vertical ? _(e.itemSize, r) : _(e.itemSize, n), f.value = f.value >= u.length ? u.length - 1 : f.value, f.value < 0 && (f.value = 0), l(f.value), w(), b();
|
|
247
247
|
};
|
|
248
|
-
|
|
249
|
-
if (ee(
|
|
250
|
-
}), e.touchable &&
|
|
251
|
-
const
|
|
252
|
-
|
|
248
|
+
ce(() => {
|
|
249
|
+
if (ee(Y).catch(() => {
|
|
250
|
+
}), e.touchable && L.value) {
|
|
251
|
+
const n = L.value;
|
|
252
|
+
n.addEventListener("touchstart", A, !1), n.addEventListener("mousedown", A, !1), n.addEventListener("touchmove", W, !1), n.addEventListener("mousemove", W, !1), n.addEventListener("touchend", R, !1), n.addEventListener("mouseup", R, !1), n.addEventListener("mouseleave", R, !1), n.addEventListener("touchcancel", R, !1);
|
|
253
253
|
}
|
|
254
|
-
window.addEventListener("resize",
|
|
254
|
+
window.addEventListener("resize", Y, !1), window.addEventListener("orientationchange", Y, !1);
|
|
255
255
|
}), Ce(() => {
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
|
|
256
|
+
if (v(), e.touchable && L.value) {
|
|
257
|
+
const n = L.value;
|
|
258
|
+
n.removeEventListener("touchstart", A, !1), n.removeEventListener("mousedown", A, !1), n.removeEventListener("mousemove", W, !1), n.removeEventListener("touchmove", W, !1), n.removeEventListener("mouseup", R, !1), n.removeEventListener("touchend", R, !1), n.removeEventListener("mouseleave", R, !1), n.removeEventListener("touchcancel", R, !1);
|
|
259
259
|
}
|
|
260
|
-
window.removeEventListener("resize",
|
|
260
|
+
window.removeEventListener("resize", Y, !1), window.removeEventListener("orientationchange", Y, !1);
|
|
261
261
|
});
|
|
262
|
-
const j =
|
|
263
|
-
let
|
|
262
|
+
const j = x(() => {
|
|
263
|
+
let n = 0;
|
|
264
264
|
switch (e.align) {
|
|
265
|
-
case
|
|
266
|
-
|
|
265
|
+
case F.start:
|
|
266
|
+
n = 0;
|
|
267
267
|
break;
|
|
268
|
-
case
|
|
269
|
-
|
|
268
|
+
case F.center:
|
|
269
|
+
n = (d.viewportSize - a.size) / 2;
|
|
270
270
|
break;
|
|
271
|
-
case
|
|
272
|
-
|
|
271
|
+
case F.end:
|
|
272
|
+
n = d.viewportSize - a.size;
|
|
273
273
|
break;
|
|
274
274
|
default:
|
|
275
|
-
|
|
275
|
+
n = 0;
|
|
276
276
|
}
|
|
277
|
-
return
|
|
278
|
-
}),
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
|
|
277
|
+
return n;
|
|
278
|
+
}), z = x(() => e.loop && u.length > 1), l = (n) => {
|
|
279
|
+
const r = a.size + a.space;
|
|
280
|
+
z.value ? d.offset = -r * (n + d.cloneNodeCount) + j.value : (d.offset = -r * n + j.value, e.align !== "center" && (n === 0 && (d.offset = 0), n === u.length - 1 && (d.offset = -r * n + d.viewportSize - a.size)));
|
|
281
|
+
}, g = () => {
|
|
282
|
+
l(f.value), i("afterChange", f.value);
|
|
283
|
+
}, y = (n) => (u.length + n) % u.length, C = (n, r = !0) => {
|
|
284
|
+
f.value = y(n), l(n), M(), i("change", f.value), r ? (c.transitionEnabled = !0, p.value && p.value.addEventListener("transitionend", () => {
|
|
285
|
+
c.transitionEnabled = !1, g();
|
|
286
286
|
}, {
|
|
287
287
|
once: !0
|
|
288
|
-
})) :
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
},
|
|
292
|
-
|
|
288
|
+
})) : g();
|
|
289
|
+
}, E = (n = !0) => {
|
|
290
|
+
C(f.value - 1, n);
|
|
291
|
+
}, S = (n = !0) => {
|
|
292
|
+
C(f.value + 1, n);
|
|
293
293
|
};
|
|
294
|
-
let
|
|
295
|
-
const
|
|
296
|
-
e.autoplayTime &&
|
|
297
|
-
},
|
|
298
|
-
e.autoplayTime && u.length > 1 && (
|
|
299
|
-
|
|
294
|
+
let s = null;
|
|
295
|
+
const v = () => {
|
|
296
|
+
e.autoplayTime && s && clearInterval(s);
|
|
297
|
+
}, b = () => {
|
|
298
|
+
e.autoplayTime && u.length > 1 && (s && clearInterval(s), s = setInterval(() => {
|
|
299
|
+
S();
|
|
300
300
|
}, Number(e.autoplayTime)));
|
|
301
|
-
},
|
|
301
|
+
}, c = D({
|
|
302
302
|
// 拖拽中
|
|
303
303
|
isDragging: !1,
|
|
304
304
|
// 是否首次拖动
|
|
@@ -315,96 +315,96 @@ const ie = (e, n) => typeof e == "string" && e.includes("%") && e.includes("%")
|
|
|
315
315
|
transitionEnabled: !1,
|
|
316
316
|
// 当前次拖拽不满足翻页条件
|
|
317
317
|
isDissatisfy: !1
|
|
318
|
-
}),
|
|
319
|
-
if (
|
|
318
|
+
}), A = (n) => {
|
|
319
|
+
if (c.transitionEnabled)
|
|
320
320
|
return;
|
|
321
|
-
let
|
|
322
|
-
"touches" in
|
|
323
|
-
},
|
|
324
|
-
if (!
|
|
321
|
+
let r = 0, h = 0;
|
|
322
|
+
"touches" in n ? (r = n.touches[0].clientX, h = n.touches[0].clientY) : (r = n.clientX, h = n.clientY), c.startX = r, c.startY = h, c.isDragging = !0, c.isFirstTouch = !0, c.startTime = /* @__PURE__ */ new Date(), v();
|
|
323
|
+
}, W = (n) => {
|
|
324
|
+
if (!c.isDragging)
|
|
325
325
|
return;
|
|
326
|
-
let
|
|
327
|
-
"touches" in
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
|
|
326
|
+
let r = 0, h = 0;
|
|
327
|
+
"touches" in n ? (r = n.touches[0].clientX, h = n.touches[0].clientY) : (r = n.clientX, h = n.clientY);
|
|
328
|
+
const B = r - c.startX, T = h - c.startY;
|
|
329
|
+
if (c.isFirstTouch && (c.isFirstTouch = !1, Math.abs(B) < Math.abs(T) !== e.vertical)) {
|
|
330
|
+
c.isDragging = !1;
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
percent:
|
|
335
|
-
offset:
|
|
336
|
-
}),
|
|
337
|
-
},
|
|
338
|
-
if (!
|
|
333
|
+
n.preventDefault(), c.offset = e.vertical ? T : B, M(), i("dragging", {
|
|
334
|
+
percent: c.offset / (a.size + a.space),
|
|
335
|
+
offset: c.offset
|
|
336
|
+
}), c.isDissatisfy = !1;
|
|
337
|
+
}, R = () => {
|
|
338
|
+
if (!c.isDragging)
|
|
339
339
|
return;
|
|
340
|
-
|
|
341
|
-
const
|
|
342
|
-
he() && (Math.abs(
|
|
343
|
-
},
|
|
344
|
-
if (
|
|
340
|
+
c.isDragging = !1;
|
|
341
|
+
const r = (/* @__PURE__ */ new Date()).getTime() - c.startTime.getTime();
|
|
342
|
+
he() && (Math.abs(c.offset) > ge.value || Math.abs(c.offset) / r > 0.5) ? (c.offset > 0 ? E() : S(), c.offset = 0, c.isDissatisfy = !1) : (c.offset = 0, c.isDissatisfy = !0), b();
|
|
343
|
+
}, ge = x(() => se(e.minSwipeDistance, a.size + a.space)), he = () => {
|
|
344
|
+
if (z.value)
|
|
345
345
|
return !0;
|
|
346
|
-
const
|
|
347
|
-
return
|
|
348
|
-
},
|
|
349
|
-
const
|
|
350
|
-
return e.vertical ? (
|
|
351
|
-
}),
|
|
352
|
-
|
|
353
|
-
moveTo:
|
|
354
|
-
next:
|
|
355
|
-
prev:
|
|
356
|
-
resize:
|
|
346
|
+
const n = c.offset > 0 ? f.value - 1 : f.value + 1;
|
|
347
|
+
return n >= 0 && n < u.length;
|
|
348
|
+
}, ye = x(() => {
|
|
349
|
+
const n = c.isDragging && !e.isFollowHand ? d.offset : d.offset + c.offset, r = {};
|
|
350
|
+
return e.vertical ? (r.transform = `translate3d(0, ${n}px, 0)`, r.transitionDuration = c.transitionEnabled || c.isDissatisfy ? `${e.duration}ms` : "0ms") : (r.transform = `translate3d(${n}px, 0, 0)`, r.transitionDuration = c.transitionEnabled || c.isDissatisfy ? `${e.duration}ms` : "0ms"), c.isDragging && (r.transition = "none"), e.vertical && (r.flexDirection = "column"), e.autoHeight && (r.display = "block", r.whiteSpace = "nowrap"), r;
|
|
351
|
+
}), pe = x(() => ["y-swipe__dots", `y-swipe__dots--${e.dotsPosition || (e.vertical ? te.left : te.bottom)}`]);
|
|
352
|
+
t({
|
|
353
|
+
moveTo: C,
|
|
354
|
+
next: S,
|
|
355
|
+
prev: E,
|
|
356
|
+
resize: Y
|
|
357
357
|
});
|
|
358
|
-
const be =
|
|
358
|
+
const be = D({
|
|
359
359
|
children: u,
|
|
360
|
-
activeIndex:
|
|
360
|
+
activeIndex: f,
|
|
361
361
|
props: e,
|
|
362
|
-
itemDetail:
|
|
363
|
-
itemShowedList:
|
|
362
|
+
itemDetail: a,
|
|
363
|
+
itemShowedList: I
|
|
364
364
|
});
|
|
365
|
-
|
|
366
|
-
const we = () => e.dots ?
|
|
367
|
-
class:
|
|
368
|
-
}, [u.map((
|
|
369
|
-
const
|
|
370
|
-
active:
|
|
365
|
+
m(be);
|
|
366
|
+
const we = () => e.dots ? N("div", {
|
|
367
|
+
class: pe.value
|
|
368
|
+
}, [u.map((n, r) => {
|
|
369
|
+
const h = q("dot", {
|
|
370
|
+
active: r === f.value
|
|
371
371
|
});
|
|
372
|
-
return
|
|
373
|
-
class:
|
|
372
|
+
return N("div", {
|
|
373
|
+
class: h,
|
|
374
374
|
style: {
|
|
375
375
|
backgroundColor: e.dotsColor
|
|
376
376
|
},
|
|
377
|
-
key:
|
|
377
|
+
key: r
|
|
378
378
|
}, null);
|
|
379
379
|
})]) : null;
|
|
380
380
|
return () => {
|
|
381
|
-
var
|
|
382
|
-
return
|
|
381
|
+
var n;
|
|
382
|
+
return N("div", {
|
|
383
383
|
class: q(),
|
|
384
|
-
ref:
|
|
385
|
-
}, [
|
|
384
|
+
ref: L
|
|
385
|
+
}, [N("div", {
|
|
386
386
|
class: q("track"),
|
|
387
|
-
style:
|
|
388
|
-
ref:
|
|
389
|
-
}, [Array(
|
|
390
|
-
var
|
|
391
|
-
const
|
|
392
|
-
return
|
|
393
|
-
clonenNode:
|
|
394
|
-
index:
|
|
387
|
+
style: ye.value,
|
|
388
|
+
ref: p
|
|
389
|
+
}, [Array(d.cloneNodeCount).fill("").map((r, h) => {
|
|
390
|
+
var $, k, V;
|
|
391
|
+
const B = y(h - d.cloneNodeCount), T = (V = ($ = u[B]) == null ? void 0 : (k = $.slots).default) == null ? void 0 : V.call(k);
|
|
392
|
+
return T ? N(K, {
|
|
393
|
+
clonenNode: T,
|
|
394
|
+
index: B
|
|
395
395
|
}, null) : null;
|
|
396
|
-
}), (
|
|
397
|
-
var
|
|
398
|
-
const
|
|
399
|
-
return
|
|
400
|
-
clonenNode:
|
|
401
|
-
index:
|
|
396
|
+
}), (n = o.default) == null ? void 0 : n.call(o), Array(d.cloneNodeCount).fill("").map((r, h) => {
|
|
397
|
+
var $, k, V;
|
|
398
|
+
const B = y(h), T = (V = ($ = u[B]) == null ? void 0 : (k = $.slots).default) == null ? void 0 : V.call(k);
|
|
399
|
+
return T ? N(K, {
|
|
400
|
+
clonenNode: T,
|
|
401
|
+
index: B
|
|
402
402
|
}, null) : null;
|
|
403
|
-
})]),
|
|
403
|
+
})]), o.dots ? o.dots() : we()]);
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
}), [
|
|
407
|
-
name:
|
|
406
|
+
}), [Oe, ie] = G("tabs-title"), re = /* @__PURE__ */ U({
|
|
407
|
+
name: Oe,
|
|
408
408
|
props: {
|
|
409
409
|
active: {
|
|
410
410
|
type: Boolean,
|
|
@@ -429,34 +429,34 @@ const ie = (e, n) => typeof e == "string" && e.includes("%") && e.includes("%")
|
|
|
429
429
|
},
|
|
430
430
|
setup(e) {
|
|
431
431
|
const {
|
|
432
|
-
parent:
|
|
433
|
-
} =
|
|
432
|
+
parent: o
|
|
433
|
+
} = fe(ve), i = x(() => [{
|
|
434
434
|
"y-el--clickable": !e.disabled
|
|
435
|
-
},
|
|
435
|
+
}, ie({
|
|
436
436
|
scrollable: e.scrollable,
|
|
437
437
|
disabled: e.disabled
|
|
438
|
-
}),
|
|
438
|
+
}), ie(`${(o == null ? void 0 : o.props.size) || "middle"}`, {
|
|
439
439
|
active: e.active
|
|
440
|
-
}),
|
|
441
|
-
...
|
|
440
|
+
}), o == null ? void 0 : o.props.titleClass, e.active ? o == null ? void 0 : o.props.titleActiveClass : ""]), t = x(() => ({
|
|
441
|
+
...o == null ? void 0 : o.props.titleStyle,
|
|
442
442
|
...e.active ? {
|
|
443
|
-
...
|
|
443
|
+
...o == null ? void 0 : o.props.titleActiveStyle
|
|
444
444
|
} : {}
|
|
445
445
|
}));
|
|
446
446
|
return () => {
|
|
447
447
|
const {
|
|
448
|
-
title:
|
|
448
|
+
title: m,
|
|
449
449
|
titleSlot: u
|
|
450
450
|
} = e;
|
|
451
|
-
return
|
|
452
|
-
class:
|
|
453
|
-
title:
|
|
454
|
-
style:
|
|
451
|
+
return N("div", {
|
|
452
|
+
class: i.value,
|
|
453
|
+
title: m,
|
|
454
|
+
style: t.value,
|
|
455
455
|
role: "presentation"
|
|
456
|
-
}, [u ? u() :
|
|
456
|
+
}, [u ? u() : m]);
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
|
-
}), J = null,
|
|
459
|
+
}), J = null, _e = {
|
|
460
460
|
initIndex: {
|
|
461
461
|
type: Number,
|
|
462
462
|
default: 0
|
|
@@ -523,157 +523,333 @@ const ie = (e, n) => typeof e == "string" && e.includes("%") && e.includes("%")
|
|
|
523
523
|
default: "center"
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
var ne = {}, ke = {
|
|
527
|
+
get exports() {
|
|
528
|
+
return ne;
|
|
529
|
+
},
|
|
530
|
+
set exports(e) {
|
|
531
|
+
ne = e;
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
(function(e, o) {
|
|
535
|
+
(function() {
|
|
536
|
+
function i() {
|
|
537
|
+
var t = window, m = document;
|
|
538
|
+
if ("scrollBehavior" in m.documentElement.style && t.__forceSmoothScrollPolyfill__ !== !0)
|
|
539
|
+
return;
|
|
540
|
+
var u = t.HTMLElement || t.Element, f = 468, a = {
|
|
541
|
+
scroll: t.scroll || t.scrollTo,
|
|
542
|
+
scrollBy: t.scrollBy,
|
|
543
|
+
elementScroll: u.prototype.scroll || O,
|
|
544
|
+
scrollIntoView: u.prototype.scrollIntoView
|
|
545
|
+
}, d = t.performance && t.performance.now ? t.performance.now.bind(t.performance) : Date.now;
|
|
546
|
+
function L(l) {
|
|
547
|
+
var g = ["MSIE ", "Trident/", "Edge/"];
|
|
548
|
+
return new RegExp(g.join("|")).test(l);
|
|
549
|
+
}
|
|
550
|
+
var p = L(t.navigator.userAgent) ? 1 : 0;
|
|
551
|
+
function O(l, g) {
|
|
552
|
+
this.scrollLeft = l, this.scrollTop = g;
|
|
553
|
+
}
|
|
554
|
+
function M(l) {
|
|
555
|
+
return 0.5 * (1 - Math.cos(Math.PI * l));
|
|
556
|
+
}
|
|
557
|
+
function I(l) {
|
|
558
|
+
if (l === null || typeof l != "object" || l.behavior === void 0 || l.behavior === "auto" || l.behavior === "instant")
|
|
559
|
+
return !0;
|
|
560
|
+
if (typeof l == "object" && l.behavior === "smooth")
|
|
561
|
+
return !1;
|
|
562
|
+
throw new TypeError(
|
|
563
|
+
"behavior member of ScrollOptions " + l.behavior + " is not a valid value for enumeration ScrollBehavior."
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
function w(l, g) {
|
|
567
|
+
if (g === "Y")
|
|
568
|
+
return l.clientHeight + p < l.scrollHeight;
|
|
569
|
+
if (g === "X")
|
|
570
|
+
return l.clientWidth + p < l.scrollWidth;
|
|
571
|
+
}
|
|
572
|
+
function _(l, g) {
|
|
573
|
+
var y = t.getComputedStyle(l, null)["overflow" + g];
|
|
574
|
+
return y === "auto" || y === "scroll";
|
|
575
|
+
}
|
|
576
|
+
function P(l) {
|
|
577
|
+
var g = w(l, "Y") && _(l, "Y"), y = w(l, "X") && _(l, "X");
|
|
578
|
+
return g || y;
|
|
579
|
+
}
|
|
580
|
+
function Y(l) {
|
|
581
|
+
for (; l !== m.body && P(l) === !1; )
|
|
582
|
+
l = l.parentNode || l.host;
|
|
583
|
+
return l;
|
|
584
|
+
}
|
|
585
|
+
function j(l) {
|
|
586
|
+
var g = d(), y, C, E, S = (g - l.startTime) / f;
|
|
587
|
+
S = S > 1 ? 1 : S, y = M(S), C = l.startX + (l.x - l.startX) * y, E = l.startY + (l.y - l.startY) * y, l.method.call(l.scrollable, C, E), (C !== l.x || E !== l.y) && t.requestAnimationFrame(j.bind(t, l));
|
|
588
|
+
}
|
|
589
|
+
function z(l, g, y) {
|
|
590
|
+
var C, E, S, s, v = d();
|
|
591
|
+
l === m.body ? (C = t, E = t.scrollX || t.pageXOffset, S = t.scrollY || t.pageYOffset, s = a.scroll) : (C = l, E = l.scrollLeft, S = l.scrollTop, s = O), j({
|
|
592
|
+
scrollable: C,
|
|
593
|
+
method: s,
|
|
594
|
+
startTime: v,
|
|
595
|
+
startX: E,
|
|
596
|
+
startY: S,
|
|
597
|
+
x: g,
|
|
598
|
+
y
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
t.scroll = t.scrollTo = function() {
|
|
602
|
+
if (arguments[0] !== void 0) {
|
|
603
|
+
if (I(arguments[0]) === !0) {
|
|
604
|
+
a.scroll.call(
|
|
605
|
+
t,
|
|
606
|
+
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : t.scrollX || t.pageXOffset,
|
|
607
|
+
// use top prop, second argument if present or fallback to scrollY
|
|
608
|
+
arguments[0].top !== void 0 ? arguments[0].top : arguments[1] !== void 0 ? arguments[1] : t.scrollY || t.pageYOffset
|
|
609
|
+
);
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
z.call(
|
|
613
|
+
t,
|
|
614
|
+
m.body,
|
|
615
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left : t.scrollX || t.pageXOffset,
|
|
616
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top : t.scrollY || t.pageYOffset
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
}, t.scrollBy = function() {
|
|
620
|
+
if (arguments[0] !== void 0) {
|
|
621
|
+
if (I(arguments[0])) {
|
|
622
|
+
a.scrollBy.call(
|
|
623
|
+
t,
|
|
624
|
+
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : 0,
|
|
625
|
+
arguments[0].top !== void 0 ? arguments[0].top : arguments[1] !== void 0 ? arguments[1] : 0
|
|
626
|
+
);
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
z.call(
|
|
630
|
+
t,
|
|
631
|
+
m.body,
|
|
632
|
+
~~arguments[0].left + (t.scrollX || t.pageXOffset),
|
|
633
|
+
~~arguments[0].top + (t.scrollY || t.pageYOffset)
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
}, u.prototype.scroll = u.prototype.scrollTo = function() {
|
|
637
|
+
if (arguments[0] !== void 0) {
|
|
638
|
+
if (I(arguments[0]) === !0) {
|
|
639
|
+
if (typeof arguments[0] == "number" && arguments[1] === void 0)
|
|
640
|
+
throw new SyntaxError("Value could not be converted");
|
|
641
|
+
a.elementScroll.call(
|
|
642
|
+
this,
|
|
643
|
+
// use left prop, first number argument or fallback to scrollLeft
|
|
644
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left : typeof arguments[0] != "object" ? ~~arguments[0] : this.scrollLeft,
|
|
645
|
+
// use top prop, second argument or fallback to scrollTop
|
|
646
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top : arguments[1] !== void 0 ? ~~arguments[1] : this.scrollTop
|
|
647
|
+
);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
var l = arguments[0].left, g = arguments[0].top;
|
|
651
|
+
z.call(
|
|
652
|
+
this,
|
|
653
|
+
this,
|
|
654
|
+
typeof l > "u" ? this.scrollLeft : ~~l,
|
|
655
|
+
typeof g > "u" ? this.scrollTop : ~~g
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
}, u.prototype.scrollBy = function() {
|
|
659
|
+
if (arguments[0] !== void 0) {
|
|
660
|
+
if (I(arguments[0]) === !0) {
|
|
661
|
+
a.elementScroll.call(
|
|
662
|
+
this,
|
|
663
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft,
|
|
664
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop
|
|
665
|
+
);
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
this.scroll({
|
|
669
|
+
left: ~~arguments[0].left + this.scrollLeft,
|
|
670
|
+
top: ~~arguments[0].top + this.scrollTop,
|
|
671
|
+
behavior: arguments[0].behavior
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
}, u.prototype.scrollIntoView = function() {
|
|
675
|
+
if (I(arguments[0]) === !0) {
|
|
676
|
+
a.scrollIntoView.call(
|
|
677
|
+
this,
|
|
678
|
+
arguments[0] === void 0 ? !0 : arguments[0]
|
|
679
|
+
);
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
var l = Y(this), g = l.getBoundingClientRect(), y = this.getBoundingClientRect();
|
|
683
|
+
l !== m.body ? (z.call(
|
|
684
|
+
this,
|
|
685
|
+
l,
|
|
686
|
+
l.scrollLeft + y.left - g.left,
|
|
687
|
+
l.scrollTop + y.top - g.top
|
|
688
|
+
), t.getComputedStyle(l).position !== "fixed" && t.scrollBy({
|
|
689
|
+
left: g.left,
|
|
690
|
+
top: g.top,
|
|
691
|
+
behavior: "smooth"
|
|
692
|
+
})) : t.scrollBy({
|
|
693
|
+
left: y.left,
|
|
694
|
+
top: y.top,
|
|
695
|
+
behavior: "smooth"
|
|
696
|
+
});
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
e.exports = { polyfill: i };
|
|
700
|
+
})();
|
|
701
|
+
})(ke);
|
|
702
|
+
function Re(e) {
|
|
703
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ae(e);
|
|
528
704
|
}
|
|
529
|
-
const [
|
|
530
|
-
name:
|
|
705
|
+
const [le, Q] = G("tabs"), ve = le, je = /* @__PURE__ */ U({
|
|
706
|
+
name: le,
|
|
531
707
|
components: {
|
|
532
|
-
YTabTitle:
|
|
708
|
+
YTabTitle: re
|
|
533
709
|
},
|
|
534
|
-
props:
|
|
710
|
+
props: _e,
|
|
535
711
|
setup(e, {
|
|
536
|
-
slots:
|
|
537
|
-
emit:
|
|
538
|
-
expose:
|
|
712
|
+
slots: o,
|
|
713
|
+
emit: i,
|
|
714
|
+
expose: t
|
|
539
715
|
}) {
|
|
540
716
|
const {
|
|
541
|
-
initProvide:
|
|
542
|
-
} =
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
|
|
717
|
+
initProvide: m
|
|
718
|
+
} = ue(ve), u = X(!1), f = D([]), a = X(), d = x(() => f.length > e.titleScrollThreshold), L = (s) => f.findIndex((v) => (v.$props ? v.$props.name : "") === s), p = X(e.initName ? L(e.initName) : e.initIndex), O = (s) => {
|
|
719
|
+
p.value = s;
|
|
720
|
+
const v = a.value;
|
|
721
|
+
v && (v == null || v.moveTo(s, e.changeWithAnimation));
|
|
546
722
|
};
|
|
547
|
-
|
|
548
|
-
scrollToByIndex: (
|
|
549
|
-
|
|
723
|
+
t({
|
|
724
|
+
scrollToByIndex: (s) => {
|
|
725
|
+
O(s);
|
|
550
726
|
},
|
|
551
|
-
scrollToByName: (
|
|
552
|
-
const
|
|
553
|
-
|
|
727
|
+
scrollToByName: (s) => {
|
|
728
|
+
const v = L(s);
|
|
729
|
+
O(v);
|
|
554
730
|
}
|
|
555
731
|
});
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
},
|
|
732
|
+
const w = X([]), _ = X(), P = (s) => (v) => {
|
|
733
|
+
w.value[s] = v;
|
|
734
|
+
}, Y = (s) => {
|
|
559
735
|
const {
|
|
560
|
-
title:
|
|
561
|
-
name:
|
|
562
|
-
disabled:
|
|
563
|
-
} =
|
|
564
|
-
|
|
736
|
+
title: v,
|
|
737
|
+
name: b,
|
|
738
|
+
disabled: c
|
|
739
|
+
} = f[s].$props || {};
|
|
740
|
+
p.value !== s && (i(c ? "disabledClick" : "click", s, v, b), !c && O(s));
|
|
565
741
|
}, j = async () => {
|
|
566
742
|
await ee(() => {
|
|
567
|
-
if (!
|
|
743
|
+
if (!d.value || !_.value)
|
|
568
744
|
return;
|
|
569
|
-
const
|
|
570
|
-
if (!
|
|
745
|
+
const s = _.value;
|
|
746
|
+
if (!s || !w.value[p.value])
|
|
571
747
|
return;
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
left:
|
|
748
|
+
const v = w.value[p.value].$el, b = v.offsetLeft - (s.offsetWidth - v.offsetWidth) / 2;
|
|
749
|
+
s.scrollTo({
|
|
750
|
+
left: b,
|
|
575
751
|
behavior: "smooth"
|
|
576
752
|
});
|
|
577
753
|
});
|
|
578
754
|
};
|
|
579
|
-
|
|
580
|
-
|
|
755
|
+
Ee(() => {
|
|
756
|
+
w.value = [];
|
|
581
757
|
});
|
|
582
|
-
const
|
|
758
|
+
const z = D({
|
|
583
759
|
transform: "translateX(50%)",
|
|
584
760
|
transition: "all 0ms ease-out"
|
|
585
|
-
}),
|
|
761
|
+
}), l = async () => {
|
|
586
762
|
await ee(() => {
|
|
587
|
-
if (!
|
|
763
|
+
if (!w.value || w.value.length === 0)
|
|
588
764
|
return;
|
|
589
|
-
const
|
|
590
|
-
|
|
765
|
+
const s = p.value >= w.value.length ? 0 : p.value, v = w.value[s].$el, b = v.offsetLeft + v.offsetWidth / 2;
|
|
766
|
+
z.transform = `translateX(${b}px) translateX(-50%)`, u.value && (z.transition = `all ${e.duration}ms ease-out`), u.value = !0;
|
|
591
767
|
});
|
|
592
|
-
},
|
|
768
|
+
}, g = (s) => {
|
|
593
769
|
const {
|
|
594
|
-
title:
|
|
595
|
-
name:
|
|
596
|
-
} =
|
|
597
|
-
|
|
598
|
-
},
|
|
770
|
+
title: v,
|
|
771
|
+
name: b
|
|
772
|
+
} = f[s].$props || {};
|
|
773
|
+
i("change", s, v, b), p.value = s;
|
|
774
|
+
}, y = (s) => {
|
|
599
775
|
const {
|
|
600
|
-
title:
|
|
601
|
-
name:
|
|
602
|
-
} =
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
-
children:
|
|
606
|
-
activeIndex:
|
|
776
|
+
title: v,
|
|
777
|
+
name: b
|
|
778
|
+
} = f[s].$props || {};
|
|
779
|
+
i("afterChange", s, v, b), p.value = s;
|
|
780
|
+
}, C = D({
|
|
781
|
+
children: f,
|
|
782
|
+
activeIndex: p,
|
|
607
783
|
props: e
|
|
608
784
|
});
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
return
|
|
612
|
-
await
|
|
613
|
-
}), Z(() =>
|
|
614
|
-
await
|
|
785
|
+
m(C);
|
|
786
|
+
const E = (s) => S(s) && /^\d+(\.\d+)?$/.test(s) ? `${s}px` : s, S = (s) => Object.prototype.toString.call(s) === "[object String]";
|
|
787
|
+
return ce(async () => {
|
|
788
|
+
ne.polyfill(), await l();
|
|
789
|
+
}), Z(() => p.value, async () => {
|
|
790
|
+
await l(), await j();
|
|
615
791
|
}), Z(() => {
|
|
616
|
-
var
|
|
617
|
-
return (
|
|
792
|
+
var s;
|
|
793
|
+
return (s = o.default) == null ? void 0 : s.length;
|
|
618
794
|
}, async () => {
|
|
619
|
-
await
|
|
795
|
+
await l();
|
|
620
796
|
}), () => {
|
|
621
|
-
let
|
|
622
|
-
return
|
|
623
|
-
class:
|
|
624
|
-
}, [
|
|
797
|
+
let s;
|
|
798
|
+
return N("div", {
|
|
799
|
+
class: le
|
|
800
|
+
}, [N("div", {
|
|
625
801
|
class: Q("list")
|
|
626
|
-
}, [
|
|
627
|
-
ref:
|
|
802
|
+
}, [N("div", {
|
|
803
|
+
ref: _,
|
|
628
804
|
class: Q("list-child-wrapper", {
|
|
629
|
-
scrollable:
|
|
805
|
+
scrollable: d.value,
|
|
630
806
|
[e.size]: e.size,
|
|
631
807
|
[e.align]: e.align
|
|
632
808
|
})
|
|
633
|
-
}, [
|
|
634
|
-
title:
|
|
635
|
-
disabled:
|
|
636
|
-
"title-slot":
|
|
637
|
-
key:
|
|
638
|
-
ref:
|
|
639
|
-
active:
|
|
640
|
-
scrollable:
|
|
641
|
-
onClick: () =>
|
|
642
|
-
}, null)),
|
|
809
|
+
}, [f.length > 0 && f.map((v, b) => N(re, {
|
|
810
|
+
title: v.title,
|
|
811
|
+
disabled: v.disabled,
|
|
812
|
+
"title-slot": v.$slots.title,
|
|
813
|
+
key: b,
|
|
814
|
+
ref: P(b),
|
|
815
|
+
active: p.value === b,
|
|
816
|
+
scrollable: d.value,
|
|
817
|
+
onClick: () => Y(b)
|
|
818
|
+
}, null)), N("div", {
|
|
643
819
|
class: Q("line"),
|
|
644
820
|
style: {
|
|
645
|
-
...
|
|
646
|
-
width:
|
|
647
|
-
height:
|
|
821
|
+
...z,
|
|
822
|
+
width: E(e.lineWidth),
|
|
823
|
+
height: E(e.lineHeight),
|
|
648
824
|
backgroundColor: e.lineColor
|
|
649
825
|
}
|
|
650
|
-
}, null)])]),
|
|
651
|
-
ref:
|
|
826
|
+
}, null)])]), o.default ? N(Xe, {
|
|
827
|
+
ref: a,
|
|
652
828
|
dots: !1,
|
|
653
829
|
loop: !1,
|
|
654
|
-
initIndex:
|
|
830
|
+
initIndex: p.value,
|
|
655
831
|
lazy: e.lazy,
|
|
656
832
|
touchable: e.touchable,
|
|
657
833
|
duration: e.duration,
|
|
658
834
|
"is-follow-hand": e.changeWithAnimation,
|
|
659
|
-
onChange:
|
|
660
|
-
onAfterChange:
|
|
661
|
-
},
|
|
662
|
-
default: () => [
|
|
835
|
+
onChange: g,
|
|
836
|
+
onAfterChange: y
|
|
837
|
+
}, Re(s = o.default()) ? s : {
|
|
838
|
+
default: () => [s]
|
|
663
839
|
}) : null]);
|
|
664
840
|
};
|
|
665
841
|
}
|
|
666
842
|
});
|
|
667
|
-
function
|
|
668
|
-
const
|
|
669
|
-
return
|
|
670
|
-
const { name:
|
|
671
|
-
|
|
672
|
-
},
|
|
843
|
+
function Me(e) {
|
|
844
|
+
const o = e;
|
|
845
|
+
return o.install = (i) => {
|
|
846
|
+
const { name: t } = e;
|
|
847
|
+
t && i.component(t, e);
|
|
848
|
+
}, o;
|
|
673
849
|
}
|
|
674
|
-
const
|
|
850
|
+
const Ve = Me(je);
|
|
675
851
|
export {
|
|
676
|
-
|
|
677
|
-
|
|
852
|
+
_e as acceptProps,
|
|
853
|
+
Ve as default,
|
|
678
854
|
J as unknownProp
|
|
679
855
|
};
|