y-design-ssr 0.2.2 → 0.2.4
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/button/index.css +1 -579
- package/libs/button/index.mjs +66 -111
- package/libs/button/index.umd.js +2 -203
- package/libs/button/package.json +5 -0
- package/libs/cell/index.css +1 -1077
- package/libs/cell/index.mjs +104 -167
- package/libs/cell/index.umd.js +2 -300
- package/libs/cell/package.json +5 -0
- package/libs/checkbox/index.css +1 -1053
- package/libs/checkbox/index.mjs +127 -242
- package/libs/checkbox/index.umd.js +2 -369
- package/libs/checkbox/package.json +5 -0
- package/libs/checkboxGroup/index.css +1 -422
- package/libs/checkboxGroup/index.mjs +87 -173
- package/libs/checkboxGroup/index.umd.js +2 -265
- package/libs/checkboxGroup/package.json +5 -0
- package/libs/col/index.css +1 -615
- package/libs/col/index.mjs +81 -246
- package/libs/col/index.umd.js +2 -305
- package/libs/col/package.json +5 -0
- package/libs/countdown/index.css +1 -417
- package/libs/countdown/index.mjs +71 -179
- package/libs/countdown/index.umd.js +2 -231
- package/libs/countdown/package.json +5 -0
- package/libs/dialog/index.css +1 -1405
- package/libs/dialog/index.mjs +476 -646
- package/libs/dialog/index.umd.js +2 -1128
- package/libs/dialog/package.json +5 -0
- package/libs/empty/index.css +1 -457
- package/libs/empty/index.mjs +44 -91
- package/libs/empty/index.umd.js +2 -139
- package/libs/empty/package.json +5 -0
- package/libs/form/index.css +1 -477
- package/libs/form/index.mjs +126 -226
- package/libs/form/index.umd.js +2 -319
- package/libs/form/package.json +5 -0
- package/libs/formItem/index.css +1 -477
- package/libs/formItem/index.mjs +126 -276
- package/libs/formItem/index.umd.js +2 -372
- package/libs/formItem/package.json +5 -0
- package/libs/icon/index.css +1 -982
- package/libs/icon/index.mjs +58 -107
- package/libs/icon/index.umd.js +2 -186
- package/libs/icon/package.json +5 -0
- package/libs/index.css +1 -2902
- package/libs/index.mjs +2348 -3789
- package/libs/index.umd.js +2 -5509
- package/libs/input/index.css +1 -483
- package/libs/input/index.mjs +92 -183
- package/libs/input/index.umd.js +2 -274
- package/libs/input/package.json +5 -0
- package/libs/layout/index.css +1 -684
- package/libs/layout/index.mjs +130 -230
- package/libs/layout/index.umd.js +2 -318
- package/libs/layout/package.json +5 -0
- package/libs/list/index.css +1 -440
- package/libs/list/index.mjs +207 -388
- package/libs/list/index.umd.js +2 -571
- package/libs/list/package.json +5 -0
- package/libs/loading/index.css +1 -548
- package/libs/loading/index.mjs +118 -196
- package/libs/loading/index.umd.js +2 -321
- package/libs/loading/package.json +5 -0
- package/libs/mask/index.css +1 -426
- package/libs/mask/index.mjs +70 -131
- package/libs/mask/index.umd.js +2 -201
- package/libs/mask/package.json +5 -0
- package/libs/popup/index.css +1 -465
- package/libs/popup/index.mjs +134 -210
- package/libs/popup/index.umd.js +2 -358
- package/libs/popup/package.json +5 -0
- package/libs/progress/index.css +1 -488
- package/libs/progress/index.mjs +128 -200
- package/libs/progress/index.umd.js +2 -322
- package/libs/progress/package.json +5 -0
- package/libs/pullrefresh/index.css +1 -441
- package/libs/pullrefresh/index.mjs +111 -241
- package/libs/pullrefresh/index.umd.js +2 -302
- package/libs/pullrefresh/package.json +5 -0
- package/libs/row/index.css +1 -485
- package/libs/row/index.mjs +89 -181
- package/libs/row/index.umd.js +2 -237
- package/libs/row/package.json +5 -0
- package/libs/slider/index.css +1 -558
- package/libs/slider/index.mjs +160 -356
- package/libs/slider/index.umd.js +2 -453
- package/libs/slider/package.json +5 -0
- package/libs/stepper/index.css +1 -489
- package/libs/stepper/index.mjs +101 -181
- package/libs/stepper/index.umd.js +2 -269
- package/libs/stepper/package.json +5 -0
- package/libs/swipe/index.css +1 -506
- package/libs/swipe/index.mjs +259 -542
- package/libs/swipe/index.umd.js +2 -703
- package/libs/swipe/package.json +5 -0
- package/libs/swipeItem/index.css +1 -424
- package/libs/swipeItem/index.mjs +52 -111
- package/libs/swipeItem/index.umd.js +2 -154
- package/libs/swipeItem/package.json +5 -0
- package/libs/switch/index.css +1 -472
- package/libs/switch/index.mjs +62 -121
- package/libs/switch/index.umd.js +2 -200
- package/libs/switch/package.json +5 -0
- package/libs/tab/index.mjs +68 -131
- package/libs/tab/index.umd.js +1 -190
- package/libs/tab/package.json +5 -0
- package/libs/tabs/index.css +1 -514
- package/libs/tabs/index.mjs +410 -751
- package/libs/tabs/index.umd.js +2 -1020
- package/libs/tabs/package.json +5 -0
- package/libs/toast/index.css +1 -1050
- package/libs/toast/index.mjs +114 -183
- package/libs/toast/index.umd.js +2 -306
- package/libs/toast/package.json +5 -0
- package/libs/tooltip/index.css +1 -514
- package/libs/tooltip/index.mjs +155 -293
- package/libs/tooltip/index.umd.js +2 -416
- package/libs/tooltip/package.json +5 -0
- package/package.json +5 -12
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
import { ref, reactive, defineComponent, getCurrentInstance, computed, onMounted, onUnmounted, createVNode } from "vue";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (Array.isArray(mods)) {
|
|
10
|
-
return mods.reduce((acc, cur) => acc + getMods(el, cur), "");
|
|
11
|
-
}
|
|
12
|
-
return Object.keys(mods).reduce(
|
|
13
|
-
(acc, cur) => acc + (mods[cur] ? getMods(el, cur) : ""),
|
|
14
|
-
""
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
const createBEM = (block) => {
|
|
18
|
-
return (el, mods) => {
|
|
19
|
-
let _el = el;
|
|
20
|
-
let _mods = mods;
|
|
21
|
-
if (_el && typeof _el !== "string") {
|
|
22
|
-
_mods = _el;
|
|
23
|
-
_el = "";
|
|
24
|
-
}
|
|
25
|
-
_el = _el ? `${block}__${_el}` : block;
|
|
26
|
-
return `${_el}${getMods(_el, _mods)}`;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const createGlobalBem = () => {
|
|
30
|
-
return (el, mods) => {
|
|
31
|
-
if (!mods) {
|
|
32
|
-
return `y-${el}`;
|
|
33
|
-
}
|
|
34
|
-
return `${getMods(`y-${el}`, mods)}`;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
const defaultLang = {
|
|
1
|
+
import { ref as T, reactive as P, defineComponent as H, getCurrentInstance as F, computed as C, onMounted as Y, onUnmounted as X, createVNode as x } from "vue";
|
|
2
|
+
const y = (t, n) => n ? typeof n == "string" ? ` ${t}--${n}` : Array.isArray(n) ? n.reduce((r, a) => r + y(t, a), "") : Object.keys(n).reduce(
|
|
3
|
+
(r, a) => r + (n[a] ? y(t, a) : ""),
|
|
4
|
+
""
|
|
5
|
+
) : "", k = (t) => (n, r) => {
|
|
6
|
+
let a = n, s = r;
|
|
7
|
+
return a && typeof a != "string" && (s = a, a = ""), a = a ? `${t}__${a}` : t, `${a}${y(a, s)}`;
|
|
8
|
+
}, z = () => (t, n) => n ? `${y(`y-${t}`, n)}` : `y-${t}`, B = {
|
|
38
9
|
"pull-refresh": {
|
|
39
10
|
pulling: "下拉刷新...",
|
|
40
11
|
loosing: "释放刷新...",
|
|
@@ -45,88 +16,59 @@ const defaultLang = {
|
|
|
45
16
|
"form-item": {
|
|
46
17
|
validateMessage: "请输入正确内容"
|
|
47
18
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"zh-CN": defaultLang
|
|
52
|
-
});
|
|
53
|
-
const locale$1 = {
|
|
19
|
+
}, b = T("zh-CN"), M = P({
|
|
20
|
+
"zh-CN": B
|
|
21
|
+
}), j = {
|
|
54
22
|
text() {
|
|
55
|
-
return
|
|
23
|
+
return M[b.value];
|
|
56
24
|
},
|
|
57
|
-
use(
|
|
58
|
-
|
|
59
|
-
this.add({ [newLang]: newConfigs });
|
|
25
|
+
use(t, n) {
|
|
26
|
+
b.value = t, this.add({ [t]: n });
|
|
60
27
|
},
|
|
61
|
-
add(
|
|
62
|
-
Object.assign(
|
|
28
|
+
add(t = {}) {
|
|
29
|
+
Object.assign(M, t);
|
|
63
30
|
}
|
|
64
|
-
}
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
const hasInnerScroll = (e) => {
|
|
79
|
-
const currentTarget = e.currentTarget;
|
|
80
|
-
const target = e.target;
|
|
81
|
-
let bool = false;
|
|
82
|
-
if (currentTarget === target)
|
|
83
|
-
return bool;
|
|
84
|
-
const _hasInnerScroll = (t) => {
|
|
85
|
-
if (t.offsetHeight !== t.scrollHeight && t.scrollTop !== 0) {
|
|
86
|
-
bool = true;
|
|
87
|
-
} else if (t.parentElement && t.parentElement !== currentTarget) {
|
|
88
|
-
_hasInnerScroll(t.parentElement);
|
|
89
|
-
}
|
|
31
|
+
}, V = (t) => {
|
|
32
|
+
const n = `y-${t}`;
|
|
33
|
+
return [n, k(n), z()];
|
|
34
|
+
}, W = (t) => j.text()[t], q = (t, n, r, a) => {
|
|
35
|
+
const s = Math.abs(t - r), l = Math.abs(n - a), g = Math.sqrt(s * s + l * l);
|
|
36
|
+
return 90 - Math.round(Math.asin(l / g) / Math.PI * 180);
|
|
37
|
+
}, w = (t) => {
|
|
38
|
+
const n = t.currentTarget, r = t.target;
|
|
39
|
+
let a = !1;
|
|
40
|
+
if (n === r)
|
|
41
|
+
return a;
|
|
42
|
+
const s = (l) => {
|
|
43
|
+
l.offsetHeight !== l.scrollHeight && l.scrollTop !== 0 ? a = !0 : l.parentElement && l.parentElement !== n && s(l.parentElement);
|
|
90
44
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const locale = createLocale("pull-refresh");
|
|
96
|
-
const ANGLE = 30;
|
|
97
|
-
const ANIMATION_TIME = 0.5;
|
|
98
|
-
let RefreshStatus = /* @__PURE__ */ function(RefreshStatus2) {
|
|
99
|
-
RefreshStatus2["DEFUALT"] = "normal";
|
|
100
|
-
RefreshStatus2["PULLING"] = "pulling";
|
|
101
|
-
RefreshStatus2["LOOSING"] = "loosing";
|
|
102
|
-
RefreshStatus2["LOADING"] = "loading";
|
|
103
|
-
RefreshStatus2["SUCCESS"] = "success";
|
|
104
|
-
RefreshStatus2["FAILED"] = "failed";
|
|
105
|
-
return RefreshStatus2;
|
|
45
|
+
return r && s(r), a;
|
|
46
|
+
}, [J, S] = V("pull-refresh"), h = W("pull-refresh"), K = 30, U = 0.5;
|
|
47
|
+
let u = /* @__PURE__ */ function(t) {
|
|
48
|
+
return t.DEFUALT = "normal", t.PULLING = "pulling", t.LOOSING = "loosing", t.LOADING = "loading", t.SUCCESS = "success", t.FAILED = "failed", t;
|
|
106
49
|
}({});
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
name,
|
|
50
|
+
const Q = (t) => t < 60 ? 1 : 1 - (t - 60) / 600, A = /* @__PURE__ */ H({
|
|
51
|
+
name: J,
|
|
110
52
|
props: {
|
|
111
53
|
pullingText: {
|
|
112
54
|
type: String,
|
|
113
|
-
default:
|
|
55
|
+
default: h.pulling
|
|
114
56
|
},
|
|
115
57
|
loosingText: {
|
|
116
58
|
type: String,
|
|
117
|
-
default:
|
|
59
|
+
default: h.loosing
|
|
118
60
|
},
|
|
119
61
|
loadingText: {
|
|
120
62
|
type: String,
|
|
121
|
-
default:
|
|
63
|
+
default: h.loading
|
|
122
64
|
},
|
|
123
65
|
successText: {
|
|
124
66
|
type: String,
|
|
125
|
-
default:
|
|
67
|
+
default: h.success
|
|
126
68
|
},
|
|
127
69
|
failedText: {
|
|
128
70
|
type: String,
|
|
129
|
-
default:
|
|
71
|
+
default: h.failed
|
|
130
72
|
},
|
|
131
73
|
statusHeight: {
|
|
132
74
|
type: Number,
|
|
@@ -134,163 +76,91 @@ const Pullrefresh = /* @__PURE__ */ defineComponent({
|
|
|
134
76
|
},
|
|
135
77
|
disabled: {
|
|
136
78
|
type: Boolean,
|
|
137
|
-
default:
|
|
79
|
+
default: !1
|
|
138
80
|
}
|
|
139
81
|
},
|
|
140
|
-
setup(
|
|
141
|
-
slots,
|
|
142
|
-
emit,
|
|
143
|
-
expose
|
|
82
|
+
setup(t, {
|
|
83
|
+
slots: n,
|
|
84
|
+
emit: r,
|
|
85
|
+
expose: a
|
|
144
86
|
}) {
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
const $children = [...$el.childNodes];
|
|
157
|
-
return $children == null ? void 0 : $children.filter((node) => node.nodeType !== 3 || node.nodeValue !== "");
|
|
158
|
-
});
|
|
159
|
-
const callback = (status = "success") => {
|
|
160
|
-
refreshStatus.value = status;
|
|
161
|
-
setTimeout(() => {
|
|
162
|
-
translateY.value = 0;
|
|
163
|
-
}, 500);
|
|
164
|
-
setTimeout(() => {
|
|
165
|
-
refreshStatus.value = RefreshStatus.DEFUALT;
|
|
87
|
+
const s = F();
|
|
88
|
+
let l = 0, g = 0, p = 0, N = null;
|
|
89
|
+
const c = T(0), L = T(0), o = T(u.DEFUALT), I = C(() => {
|
|
90
|
+
var v;
|
|
91
|
+
const i = [...((v = s == null ? void 0 : s.proxy) == null ? void 0 : v.$el).childNodes];
|
|
92
|
+
return i == null ? void 0 : i.filter((d) => d.nodeType !== 3 || d.nodeValue !== "");
|
|
93
|
+
}), G = (e = "success") => {
|
|
94
|
+
o.value = e, setTimeout(() => {
|
|
95
|
+
c.value = 0;
|
|
96
|
+
}, 500), setTimeout(() => {
|
|
97
|
+
o.value = u.DEFUALT;
|
|
166
98
|
}, 1e3);
|
|
99
|
+
}, D = () => {
|
|
100
|
+
c.value = t.statusHeight, L.value = U, o.value = u.LOADING, r("load", G);
|
|
101
|
+
}, m = (e) => {
|
|
102
|
+
l = e instanceof TouchEvent ? e.touches[0].pageX : e.pageX, g = e instanceof TouchEvent ? e.touches[0].pageY : e.pageY, I.value.length !== 2 || I.value[1].nodeType === 3 ? N = s == null ? void 0 : s.vnode.el : N = I.value[1], !t.disabled && !w(e) && N.scrollTop === 0 && o.value === u.DEFUALT && (o.value = u.PULLING, c.value = 0, L.value = 0);
|
|
103
|
+
}, E = (e) => {
|
|
104
|
+
const i = e instanceof TouchEvent ? e.touches[0].pageX : e.pageX, v = e instanceof TouchEvent ? e.touches[0].pageY : e.pageY, d = q(l, g, i, v);
|
|
105
|
+
p = v - g, (o.value === u.PULLING || o.value === u.LOOSING) && p > 0 && d < K && (e.preventDefault(), c.value = p * Q(p), p > t.statusHeight && o.value === u.PULLING && (o.value = u.LOOSING));
|
|
106
|
+
}, f = (e) => {
|
|
107
|
+
o.value === u.LOOSING ? (c.value = t.statusHeight, L.value = U, o.value = u.LOADING, r("load", G, e)) : o.value === u.PULLING && (c.value = 0, o.value = u.DEFUALT);
|
|
167
108
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
translateY.value = 0;
|
|
185
|
-
transitionTime.value = 0;
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
const touchMove = (e) => {
|
|
189
|
-
const x = e instanceof TouchEvent ? e.touches[0].pageX : e.pageX;
|
|
190
|
-
const y = e instanceof TouchEvent ? e.touches[0].pageY : e.pageY;
|
|
191
|
-
const angle = getAngle(_startPosX, _startPosY, x, y);
|
|
192
|
-
_transitionHeight = y - _startPosY;
|
|
193
|
-
if ((refreshStatus.value === RefreshStatus.PULLING || refreshStatus.value === RefreshStatus.LOOSING) && _transitionHeight > 0 && angle < ANGLE) {
|
|
194
|
-
e.preventDefault();
|
|
195
|
-
translateY.value = _transitionHeight * getScale(_transitionHeight);
|
|
196
|
-
if (_transitionHeight > props.statusHeight && refreshStatus.value === RefreshStatus.PULLING) {
|
|
197
|
-
refreshStatus.value = RefreshStatus.LOOSING;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
const touchEnd = (e) => {
|
|
202
|
-
if (refreshStatus.value === RefreshStatus.LOOSING) {
|
|
203
|
-
translateY.value = props.statusHeight;
|
|
204
|
-
transitionTime.value = ANIMATION_TIME;
|
|
205
|
-
refreshStatus.value = RefreshStatus.LOADING;
|
|
206
|
-
emit("load", callback, e);
|
|
207
|
-
} else if (refreshStatus.value === RefreshStatus.PULLING) {
|
|
208
|
-
translateY.value = 0;
|
|
209
|
-
refreshStatus.value = RefreshStatus.DEFUALT;
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
onMounted(() => {
|
|
213
|
-
const $el = instance == null ? void 0 : instance.vnode.el;
|
|
214
|
-
$el == null ? void 0 : $el.addEventListener("touchstart", touchStart, {
|
|
215
|
-
passive: false
|
|
216
|
-
});
|
|
217
|
-
$el == null ? void 0 : $el.addEventListener("touchmove", touchMove, {
|
|
218
|
-
passive: false
|
|
219
|
-
});
|
|
220
|
-
$el == null ? void 0 : $el.addEventListener("touchend", touchEnd, {
|
|
221
|
-
passive: false
|
|
222
|
-
});
|
|
223
|
-
$el == null ? void 0 : $el.addEventListener("mousedown", touchStart, {
|
|
224
|
-
passive: false
|
|
225
|
-
});
|
|
226
|
-
$el == null ? void 0 : $el.addEventListener("mousemove", touchMove, {
|
|
227
|
-
passive: false
|
|
228
|
-
});
|
|
229
|
-
$el == null ? void 0 : $el.addEventListener("mouseup", touchEnd, {
|
|
230
|
-
passive: false
|
|
231
|
-
});
|
|
232
|
-
$el == null ? void 0 : $el.addEventListener("mouseout", touchEnd, {
|
|
233
|
-
passive: false
|
|
109
|
+
Y(() => {
|
|
110
|
+
const e = s == null ? void 0 : s.vnode.el;
|
|
111
|
+
e == null || e.addEventListener("touchstart", m, {
|
|
112
|
+
passive: !1
|
|
113
|
+
}), e == null || e.addEventListener("touchmove", E, {
|
|
114
|
+
passive: !1
|
|
115
|
+
}), e == null || e.addEventListener("touchend", f, {
|
|
116
|
+
passive: !1
|
|
117
|
+
}), e == null || e.addEventListener("mousedown", m, {
|
|
118
|
+
passive: !1
|
|
119
|
+
}), e == null || e.addEventListener("mousemove", E, {
|
|
120
|
+
passive: !1
|
|
121
|
+
}), e == null || e.addEventListener("mouseup", f, {
|
|
122
|
+
passive: !1
|
|
123
|
+
}), e == null || e.addEventListener("mouseout", f, {
|
|
124
|
+
passive: !1
|
|
234
125
|
});
|
|
126
|
+
}), X(() => {
|
|
127
|
+
const e = s == null ? void 0 : s.vnode.el;
|
|
128
|
+
e == null || e.removeEventListener("touchstart", m), e == null || e.removeEventListener("touchmove", E), e == null || e.removeEventListener("touchend", f), e == null || e.removeEventListener("mousedown", m), e == null || e.removeEventListener("mousemove", E), e == null || e.removeEventListener("mouseup", f), e == null || e.removeEventListener("mouseout", f);
|
|
235
129
|
});
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
$el == null ? void 0 : $el.removeEventListener("touchmove", touchMove);
|
|
240
|
-
$el == null ? void 0 : $el.removeEventListener("touchend", touchEnd);
|
|
241
|
-
$el == null ? void 0 : $el.removeEventListener("mousedown", touchStart);
|
|
242
|
-
$el == null ? void 0 : $el.removeEventListener("mousemove", touchMove);
|
|
243
|
-
$el == null ? void 0 : $el.removeEventListener("mouseup", touchEnd);
|
|
244
|
-
$el == null ? void 0 : $el.removeEventListener("mouseout", touchEnd);
|
|
245
|
-
});
|
|
246
|
-
const _renderStatus = () => {
|
|
247
|
-
var _a;
|
|
248
|
-
if (refreshStatus.value === RefreshStatus.DEFUALT)
|
|
249
|
-
return null;
|
|
250
|
-
if (slots[refreshStatus.value])
|
|
251
|
-
return (_a = slots[refreshStatus.value]) == null ? void 0 : _a.call(slots);
|
|
252
|
-
return createVNode("p", null, [props[`${refreshStatus.value}Text`]]);
|
|
130
|
+
const _ = () => {
|
|
131
|
+
var e;
|
|
132
|
+
return o.value === u.DEFUALT ? null : n[o.value] ? (e = n[o.value]) == null ? void 0 : e.call(n) : x("p", null, [t[`${o.value}Text`]]);
|
|
253
133
|
};
|
|
254
|
-
|
|
255
|
-
refresh
|
|
256
|
-
})
|
|
257
|
-
|
|
258
|
-
var _a;
|
|
134
|
+
return a({
|
|
135
|
+
refresh: D
|
|
136
|
+
}), () => {
|
|
137
|
+
var O;
|
|
259
138
|
const {
|
|
260
|
-
statusHeight
|
|
261
|
-
} =
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
WebkitTransform: `translate3d(0, ${translateY.value}px, 0)`,
|
|
269
|
-
transform: `translate3d(0, ${translateY.value}px, 0)`,
|
|
270
|
-
transition
|
|
139
|
+
statusHeight: e
|
|
140
|
+
} = t, i = c.value > e ? e : c.value, v = `all ${L.value}s ease 0s`, d = `translate3d(0, ${-c.value}px, 0)`;
|
|
141
|
+
return x("div", {
|
|
142
|
+
class: S(),
|
|
143
|
+
style: {
|
|
144
|
+
WebkitTransform: `translate3d(0, ${c.value}px, 0)`,
|
|
145
|
+
transform: `translate3d(0, ${c.value}px, 0)`,
|
|
146
|
+
transition: v
|
|
271
147
|
}
|
|
272
|
-
}, [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
height: `${
|
|
276
|
-
WebkitTransform: `${
|
|
277
|
-
transform: `${
|
|
278
|
-
transition
|
|
148
|
+
}, [x("div", {
|
|
149
|
+
class: S("status"),
|
|
150
|
+
style: {
|
|
151
|
+
height: `${i}px`,
|
|
152
|
+
WebkitTransform: `${d} scale(${i / e})`,
|
|
153
|
+
transform: `${d} scale(${i / e})`,
|
|
154
|
+
transition: v
|
|
279
155
|
}
|
|
280
|
-
}, [
|
|
156
|
+
}, [_()]), (O = n.default) == null ? void 0 : O.call(n)]);
|
|
281
157
|
};
|
|
282
158
|
}
|
|
283
159
|
});
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
const animation = "";
|
|
288
|
-
const theme = "";
|
|
289
|
-
const style = "";
|
|
290
|
-
Pullrefresh.install = (Vue) => {
|
|
291
|
-
const { name: name2 } = Pullrefresh;
|
|
292
|
-
Vue.component(name2, Pullrefresh);
|
|
160
|
+
A.install = (t) => {
|
|
161
|
+
const { name: n } = A;
|
|
162
|
+
t.component(n, A);
|
|
293
163
|
};
|
|
294
164
|
export {
|
|
295
|
-
|
|
165
|
+
A as default
|
|
296
166
|
};
|