y-design-ssr 1.1.6 → 1.1.8
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/index.mjs +1960 -1785
- 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 -327
- package/libs/tabs/index.umd.js +2 -2
- package/libs/tabs/src/smoothscroll-polyfill.d.ts +6 -0
- package/package.json +3 -3
package/libs/tab/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
const { children: e, addChild:
|
|
6
|
-
return
|
|
7
|
-
index:
|
|
8
|
-
parent:
|
|
1
|
+
import { inject as M, getCurrentInstance as S, onUnmounted as V, computed as w, ref as X, reactive as P, defineComponent as _, createVNode as $, onBeforeUnmount as D, isVNode as H } from "vue";
|
|
2
|
+
const I = (r) => {
|
|
3
|
+
const n = M(r, null), o = S();
|
|
4
|
+
if (n && o) {
|
|
5
|
+
const { children: e, addChild: s, removeChild: u } = n;
|
|
6
|
+
return s(o), V(() => u(o)), {
|
|
7
|
+
index: w(() => e.indexOf(o)),
|
|
8
|
+
parent: n
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
parent: null,
|
|
13
|
-
index:
|
|
13
|
+
index: X(-1)
|
|
14
14
|
};
|
|
15
|
-
},
|
|
16
|
-
(
|
|
15
|
+
}, y = (r, n) => n ? typeof n == "string" ? ` ${r}--${n}` : Array.isArray(n) ? n.reduce((o, e) => o + y(r, e), "") : Object.keys(n).reduce(
|
|
16
|
+
(o, e) => o + (n[e] ? y(r, e) : ""),
|
|
17
17
|
""
|
|
18
|
-
) : "",
|
|
19
|
-
let e =
|
|
20
|
-
return e && typeof e != "string" && (
|
|
21
|
-
},
|
|
18
|
+
) : "", z = (r) => (n, o) => {
|
|
19
|
+
let e = n, s = o;
|
|
20
|
+
return e && typeof e != "string" && (s = e, e = ""), e = e ? `${r}__${e}` : r, `${e}${y(e, s)}`;
|
|
21
|
+
}, U = () => (r, n) => n ? `${y(`y-${r}`, n)}` : `y-${r}`, W = {
|
|
22
22
|
"pull-refresh": {
|
|
23
23
|
pulling: "下拉刷新...",
|
|
24
24
|
loosing: "释放刷新...",
|
|
@@ -30,15 +30,15 @@ const y = (n) => {
|
|
|
30
30
|
validateMessage: "请输入正确内容"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"zh-CN":
|
|
33
|
+
X("zh-CN");
|
|
34
|
+
P({
|
|
35
|
+
"zh-CN": W
|
|
36
36
|
});
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
return [
|
|
40
|
-
}, [
|
|
41
|
-
name:
|
|
37
|
+
const v = (r) => {
|
|
38
|
+
const n = `y-${r}`;
|
|
39
|
+
return [n, z(n), U()];
|
|
40
|
+
}, [G, oe] = v("swipe"), K = G, [q, F] = v("swipe-item"), k = /* @__PURE__ */ _({
|
|
41
|
+
name: q,
|
|
42
42
|
props: {
|
|
43
43
|
clonenNode: {
|
|
44
44
|
type: Object,
|
|
@@ -49,42 +49,219 @@ const s = (n) => {
|
|
|
49
49
|
default: -1
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
setup(
|
|
53
|
-
slots:
|
|
52
|
+
setup(r, {
|
|
53
|
+
slots: n
|
|
54
54
|
}) {
|
|
55
|
-
const
|
|
55
|
+
const o = S(), {
|
|
56
56
|
parent: e
|
|
57
|
-
} =
|
|
58
|
-
!
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
const
|
|
63
|
-
return e != null && e.props.autoHeight && (e == null ? void 0 : e.activeIndex) !==
|
|
64
|
-
height: o,
|
|
65
|
-
width: c,
|
|
66
|
-
marginBottom: l
|
|
67
|
-
} : {
|
|
68
|
-
width: o,
|
|
57
|
+
} = I(K);
|
|
58
|
+
!r.clonenNode && o && (e == null || e.children.push(o));
|
|
59
|
+
const s = w(() => r.clonenNode ? r.index : e == null ? void 0 : e.children.findIndex((c) => c.proxy === (o == null ? void 0 : o.proxy))), u = w(() => {
|
|
60
|
+
const c = `${(e == null ? void 0 : e.itemDetail.size) || 0}px`;
|
|
61
|
+
let i = "auto";
|
|
62
|
+
const f = `${(e == null ? void 0 : e.itemDetail.space) || 0}px`;
|
|
63
|
+
return e != null && e.props.autoHeight && (e == null ? void 0 : e.activeIndex) !== s.value && (i = "0"), e != null && e.props.vertical ? {
|
|
69
64
|
height: c,
|
|
70
|
-
|
|
65
|
+
width: i,
|
|
66
|
+
marginBottom: f
|
|
67
|
+
} : {
|
|
68
|
+
width: c,
|
|
69
|
+
height: i,
|
|
70
|
+
marginRight: f
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
return () => {
|
|
74
|
-
var
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
class:
|
|
78
|
-
style:
|
|
79
|
-
}, [
|
|
74
|
+
var i, f;
|
|
75
|
+
const c = ((i = e == null ? void 0 : e.itemShowedList) == null ? void 0 : i.list[s.value || 0]) || !1;
|
|
76
|
+
return $("div", {
|
|
77
|
+
class: F(),
|
|
78
|
+
style: u.value
|
|
79
|
+
}, [c ? r.clonenNode || ((f = n.default) == null ? void 0 : f.call(n)) : null]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
});
|
|
83
|
+
var x = {}, A = {
|
|
84
|
+
get exports() {
|
|
85
|
+
return x;
|
|
86
|
+
},
|
|
87
|
+
set exports(r) {
|
|
88
|
+
x = r;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
(function(r, n) {
|
|
92
|
+
(function() {
|
|
93
|
+
function o() {
|
|
94
|
+
var e = window, s = document;
|
|
95
|
+
if ("scrollBehavior" in s.documentElement.style && e.__forceSmoothScrollPolyfill__ !== !0)
|
|
96
|
+
return;
|
|
97
|
+
var u = e.HTMLElement || e.Element, c = 468, i = {
|
|
98
|
+
scroll: e.scroll || e.scrollTo,
|
|
99
|
+
scrollBy: e.scrollBy,
|
|
100
|
+
elementScroll: u.prototype.scroll || O,
|
|
101
|
+
scrollIntoView: u.prototype.scrollIntoView
|
|
102
|
+
}, f = e.performance && e.performance.now ? e.performance.now.bind(e.performance) : Date.now;
|
|
103
|
+
function N(t) {
|
|
104
|
+
var l = ["MSIE ", "Trident/", "Edge/"];
|
|
105
|
+
return new RegExp(l.join("|")).test(t);
|
|
106
|
+
}
|
|
107
|
+
var T = N(e.navigator.userAgent) ? 1 : 0;
|
|
108
|
+
function O(t, l) {
|
|
109
|
+
this.scrollLeft = t, this.scrollTop = l;
|
|
110
|
+
}
|
|
111
|
+
function L(t) {
|
|
112
|
+
return 0.5 * (1 - Math.cos(Math.PI * t));
|
|
113
|
+
}
|
|
114
|
+
function g(t) {
|
|
115
|
+
if (t === null || typeof t != "object" || t.behavior === void 0 || t.behavior === "auto" || t.behavior === "instant")
|
|
116
|
+
return !0;
|
|
117
|
+
if (typeof t == "object" && t.behavior === "smooth")
|
|
118
|
+
return !1;
|
|
119
|
+
throw new TypeError(
|
|
120
|
+
"behavior member of ScrollOptions " + t.behavior + " is not a valid value for enumeration ScrollBehavior."
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function B(t, l) {
|
|
124
|
+
if (l === "Y")
|
|
125
|
+
return t.clientHeight + T < t.scrollHeight;
|
|
126
|
+
if (l === "X")
|
|
127
|
+
return t.clientWidth + T < t.scrollWidth;
|
|
128
|
+
}
|
|
129
|
+
function E(t, l) {
|
|
130
|
+
var a = e.getComputedStyle(t, null)["overflow" + l];
|
|
131
|
+
return a === "auto" || a === "scroll";
|
|
132
|
+
}
|
|
133
|
+
function j(t) {
|
|
134
|
+
var l = B(t, "Y") && E(t, "Y"), a = B(t, "X") && E(t, "X");
|
|
135
|
+
return l || a;
|
|
136
|
+
}
|
|
137
|
+
function C(t) {
|
|
138
|
+
for (; t !== s.body && j(t) === !1; )
|
|
139
|
+
t = t.parentNode || t.host;
|
|
140
|
+
return t;
|
|
141
|
+
}
|
|
142
|
+
function Y(t) {
|
|
143
|
+
var l = f(), a, m, p, d = (l - t.startTime) / c;
|
|
144
|
+
d = d > 1 ? 1 : d, a = L(d), m = t.startX + (t.x - t.startX) * a, p = t.startY + (t.y - t.startY) * a, t.method.call(t.scrollable, m, p), (m !== t.x || p !== t.y) && e.requestAnimationFrame(Y.bind(e, t));
|
|
145
|
+
}
|
|
146
|
+
function h(t, l, a) {
|
|
147
|
+
var m, p, d, b, R = f();
|
|
148
|
+
t === s.body ? (m = e, p = e.scrollX || e.pageXOffset, d = e.scrollY || e.pageYOffset, b = i.scroll) : (m = t, p = t.scrollLeft, d = t.scrollTop, b = O), Y({
|
|
149
|
+
scrollable: m,
|
|
150
|
+
method: b,
|
|
151
|
+
startTime: R,
|
|
152
|
+
startX: p,
|
|
153
|
+
startY: d,
|
|
154
|
+
x: l,
|
|
155
|
+
y: a
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
e.scroll = e.scrollTo = function() {
|
|
159
|
+
if (arguments[0] !== void 0) {
|
|
160
|
+
if (g(arguments[0]) === !0) {
|
|
161
|
+
i.scroll.call(
|
|
162
|
+
e,
|
|
163
|
+
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : e.scrollX || e.pageXOffset,
|
|
164
|
+
// use top prop, second argument if present or fallback to scrollY
|
|
165
|
+
arguments[0].top !== void 0 ? arguments[0].top : arguments[1] !== void 0 ? arguments[1] : e.scrollY || e.pageYOffset
|
|
166
|
+
);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
h.call(
|
|
170
|
+
e,
|
|
171
|
+
s.body,
|
|
172
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left : e.scrollX || e.pageXOffset,
|
|
173
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top : e.scrollY || e.pageYOffset
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}, e.scrollBy = function() {
|
|
177
|
+
if (arguments[0] !== void 0) {
|
|
178
|
+
if (g(arguments[0])) {
|
|
179
|
+
i.scrollBy.call(
|
|
180
|
+
e,
|
|
181
|
+
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : 0,
|
|
182
|
+
arguments[0].top !== void 0 ? arguments[0].top : arguments[1] !== void 0 ? arguments[1] : 0
|
|
183
|
+
);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
h.call(
|
|
187
|
+
e,
|
|
188
|
+
s.body,
|
|
189
|
+
~~arguments[0].left + (e.scrollX || e.pageXOffset),
|
|
190
|
+
~~arguments[0].top + (e.scrollY || e.pageYOffset)
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
}, u.prototype.scroll = u.prototype.scrollTo = function() {
|
|
194
|
+
if (arguments[0] !== void 0) {
|
|
195
|
+
if (g(arguments[0]) === !0) {
|
|
196
|
+
if (typeof arguments[0] == "number" && arguments[1] === void 0)
|
|
197
|
+
throw new SyntaxError("Value could not be converted");
|
|
198
|
+
i.elementScroll.call(
|
|
199
|
+
this,
|
|
200
|
+
// use left prop, first number argument or fallback to scrollLeft
|
|
201
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left : typeof arguments[0] != "object" ? ~~arguments[0] : this.scrollLeft,
|
|
202
|
+
// use top prop, second argument or fallback to scrollTop
|
|
203
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top : arguments[1] !== void 0 ? ~~arguments[1] : this.scrollTop
|
|
204
|
+
);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
var t = arguments[0].left, l = arguments[0].top;
|
|
208
|
+
h.call(
|
|
209
|
+
this,
|
|
210
|
+
this,
|
|
211
|
+
typeof t > "u" ? this.scrollLeft : ~~t,
|
|
212
|
+
typeof l > "u" ? this.scrollTop : ~~l
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
}, u.prototype.scrollBy = function() {
|
|
216
|
+
if (arguments[0] !== void 0) {
|
|
217
|
+
if (g(arguments[0]) === !0) {
|
|
218
|
+
i.elementScroll.call(
|
|
219
|
+
this,
|
|
220
|
+
arguments[0].left !== void 0 ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft,
|
|
221
|
+
arguments[0].top !== void 0 ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop
|
|
222
|
+
);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
this.scroll({
|
|
226
|
+
left: ~~arguments[0].left + this.scrollLeft,
|
|
227
|
+
top: ~~arguments[0].top + this.scrollTop,
|
|
228
|
+
behavior: arguments[0].behavior
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}, u.prototype.scrollIntoView = function() {
|
|
232
|
+
if (g(arguments[0]) === !0) {
|
|
233
|
+
i.scrollIntoView.call(
|
|
234
|
+
this,
|
|
235
|
+
arguments[0] === void 0 ? !0 : arguments[0]
|
|
236
|
+
);
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
var t = C(this), l = t.getBoundingClientRect(), a = this.getBoundingClientRect();
|
|
240
|
+
t !== s.body ? (h.call(
|
|
241
|
+
this,
|
|
242
|
+
t,
|
|
243
|
+
t.scrollLeft + a.left - l.left,
|
|
244
|
+
t.scrollTop + a.top - l.top
|
|
245
|
+
), e.getComputedStyle(t).position !== "fixed" && e.scrollBy({
|
|
246
|
+
left: l.left,
|
|
247
|
+
top: l.top,
|
|
248
|
+
behavior: "smooth"
|
|
249
|
+
})) : e.scrollBy({
|
|
250
|
+
left: a.left,
|
|
251
|
+
top: a.top,
|
|
252
|
+
behavior: "smooth"
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
r.exports = { polyfill: o };
|
|
257
|
+
})();
|
|
258
|
+
})(A);
|
|
259
|
+
const [J, le] = v("tabs"), Q = J;
|
|
260
|
+
function Z(r) {
|
|
261
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !H(r);
|
|
85
262
|
}
|
|
86
|
-
const [
|
|
87
|
-
name:
|
|
263
|
+
const [ee] = v("tab"), te = /* @__PURE__ */ _({
|
|
264
|
+
name: ee,
|
|
88
265
|
props: {
|
|
89
266
|
title: {
|
|
90
267
|
type: String,
|
|
@@ -99,30 +276,30 @@ const [A] = s("tab"), D = /* @__PURE__ */ h({
|
|
|
99
276
|
default: !1
|
|
100
277
|
}
|
|
101
278
|
},
|
|
102
|
-
setup(
|
|
103
|
-
slots:
|
|
279
|
+
setup(r, {
|
|
280
|
+
slots: n
|
|
104
281
|
}) {
|
|
105
282
|
const {
|
|
106
|
-
parent:
|
|
107
|
-
} =
|
|
108
|
-
return e.proxy && (
|
|
109
|
-
|
|
283
|
+
parent: o
|
|
284
|
+
} = I(Q), e = S();
|
|
285
|
+
return e.proxy && (o == null || o.children.push(e.proxy)), D(() => {
|
|
286
|
+
o && (o.children = o.children.filter((s) => s !== e.proxy));
|
|
110
287
|
}), () => {
|
|
111
|
-
let
|
|
112
|
-
return
|
|
113
|
-
default: () => [
|
|
288
|
+
let s;
|
|
289
|
+
return n.default ? $(k, null, Z(s = n.default()) ? s : {
|
|
290
|
+
default: () => [s]
|
|
114
291
|
}) : null;
|
|
115
292
|
};
|
|
116
293
|
}
|
|
117
294
|
});
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
const { name: e } =
|
|
122
|
-
e &&
|
|
123
|
-
},
|
|
295
|
+
function re(r) {
|
|
296
|
+
const n = r;
|
|
297
|
+
return n.install = (o) => {
|
|
298
|
+
const { name: e } = r;
|
|
299
|
+
e && o.component(e, r);
|
|
300
|
+
}, n;
|
|
124
301
|
}
|
|
125
|
-
const
|
|
302
|
+
const se = re(te);
|
|
126
303
|
export {
|
|
127
|
-
|
|
304
|
+
se as default
|
|
128
305
|
};
|
package/libs/tab/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(p,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(p=typeof globalThis<"u"?globalThis:p||self,s(p.tab={},p.Vue))})(this,function(p,s){"use strict";const T=r=>{const n=s.inject(r,null),o=s.getCurrentInstance();if(n&&o){const{children:e,addChild:i,removeChild:c}=n;return i(o),s.onUnmounted(()=>c(o)),{index:s.computed(()=>e.indexOf(o)),parent:n}}return{parent:null,index:s.ref(-1)}},b=(r,n)=>n?typeof n=="string"?` ${r}--${n}`:Array.isArray(n)?n.reduce((o,e)=>o+b(r,e),""):Object.keys(n).reduce((o,e)=>o+(n[e]?b(r,e):""),""):"",I=r=>(n,o)=>{let e=n,i=o;return e&&typeof e!="string"&&(i=e,e=""),e=e?`${r}__${e}`:r,`${e}${b(e,i)}`},N=()=>(r,n)=>n?`${b(`y-${r}`,n)}`:`y-${r}`,X={"pull-refresh":{pulling:"下拉刷新...",loosing:"释放刷新...",loading:"数据加载中...",success:"数据已更新",failed:"数据跟新失败,请稍后再试"},"form-item":{validateMessage:"请输入正确内容"}};s.ref("zh-CN"),s.reactive({"zh-CN":X});const v=r=>{const n=`y-${r}`;return[n,I(n),N()]},[$,A]=v("swipe"),C=$,[j,L]=v("swipe-item"),M=s.defineComponent({name:j,props:{clonenNode:{type:Object,default:null},index:{type:Number,default:-1}},setup(r,{slots:n}){const o=s.getCurrentInstance(),{parent:e}=T(C);!r.clonenNode&&o&&(e==null||e.children.push(o));const i=s.computed(()=>r.clonenNode?r.index:e==null?void 0:e.children.findIndex(f=>f.proxy===(o==null?void 0:o.proxy))),c=s.computed(()=>{const f=`${(e==null?void 0:e.itemDetail.size)||0}px`;let u="auto";const d=`${(e==null?void 0:e.itemDetail.space)||0}px`;return e!=null&&e.props.autoHeight&&(e==null?void 0:e.activeIndex)!==i.value&&(u="0"),e!=null&&e.props.vertical?{height:f,width:u,marginBottom:d}:{width:f,height:u,marginRight:d}});return()=>{var u,d;const f=((u=e==null?void 0:e.itemShowedList)==null?void 0:u.list[i.value||0])||!1;return s.createVNode("div",{class:L(),style:c.value},[f?r.clonenNode||((d=n.default)==null?void 0:d.call(n)):null])}}});var O={},R={get exports(){return O},set exports(r){O=r}};(function(r,n){(function(){function o(){var e=window,i=document;if("scrollBehavior"in i.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;var c=e.HTMLElement||e.Element,f=468,u={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:c.prototype.scroll||E,scrollIntoView:c.prototype.scrollIntoView},d=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function q(t){var l=["MSIE ","Trident/","Edge/"];return new RegExp(l.join("|")).test(t)}var B=q(e.navigator.userAgent)?1:0;function E(t,l){this.scrollLeft=t,this.scrollTop=l}function G(t){return .5*(1-Math.cos(Math.PI*t))}function y(t){if(t===null||typeof t!="object"||t.behavior===void 0||t.behavior==="auto"||t.behavior==="instant")return!0;if(typeof t=="object"&&t.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function Y(t,l){if(l==="Y")return t.clientHeight+B<t.scrollHeight;if(l==="X")return t.clientWidth+B<t.scrollWidth}function _(t,l){var a=e.getComputedStyle(t,null)["overflow"+l];return a==="auto"||a==="scroll"}function K(t){var l=Y(t,"Y")&&_(t,"Y"),a=Y(t,"X")&&_(t,"X");return l||a}function F(t){for(;t!==i.body&&K(t)===!1;)t=t.parentNode||t.host;return t}function x(t){var l=d(),a,g,h,m=(l-t.startTime)/f;m=m>1?1:m,a=G(m),g=t.startX+(t.x-t.startX)*a,h=t.startY+(t.y-t.startY)*a,t.method.call(t.scrollable,g,h),(g!==t.x||h!==t.y)&&e.requestAnimationFrame(x.bind(e,t))}function S(t,l,a){var g,h,m,w,k=d();t===i.body?(g=e,h=e.scrollX||e.pageXOffset,m=e.scrollY||e.pageYOffset,w=u.scroll):(g=t,h=t.scrollLeft,m=t.scrollTop,w=E),x({scrollable:g,method:w,startTime:k,startX:h,startY:m,x:l,y:a})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(y(arguments[0])===!0){u.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,i.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(y(arguments[0])){u.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,i.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},c.prototype.scroll=c.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(y(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");u.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var t=arguments[0].left,l=arguments[0].top;S.call(this,this,typeof t>"u"?this.scrollLeft:~~t,typeof l>"u"?this.scrollTop:~~l)}},c.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(y(arguments[0])===!0){u.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},c.prototype.scrollIntoView=function(){if(y(arguments[0])===!0){u.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var t=F(this),l=t.getBoundingClientRect(),a=this.getBoundingClientRect();t!==i.body?(S.call(this,t,t.scrollLeft+a.left-l.left,t.scrollTop+a.top-l.top),e.getComputedStyle(t).position!=="fixed"&&e.scrollBy({left:l.left,top:l.top,behavior:"smooth"})):e.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}}r.exports={polyfill:o}})()})(R);const[V,J]=v("tabs"),P=V;function D(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!s.isVNode(r)}const[H]=v("tab"),z=s.defineComponent({name:H,props:{title:{type:String,default:""},name:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},setup(r,{slots:n}){const{parent:o}=T(P),e=s.getCurrentInstance();return e.proxy&&(o==null||o.children.push(e.proxy)),s.onBeforeUnmount(()=>{o&&(o.children=o.children.filter(i=>i!==e.proxy))}),()=>{let i;return n.default?s.createVNode(M,null,D(i=n.default())?i:{default:()=>[i]}):null}}});function U(r){const n=r;return n.install=o=>{const{name:e}=r;e&&o.component(e,r)},n}const W=U(z);p.default=W,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|