ui-process-h5 2.5.61 → 2.5.63
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/package.json +1 -1
- package/v2/style.css +1 -1
- package/v2/ui-process-h5.js +110 -99
- package/v2/ui-process-h5.umd.cjs +5 -5
- package/v2.7/style.css +1 -1
- package/v2.7/ui-process-h5.js +208 -197
- package/v2.7/ui-process-h5.umd.cjs +5 -5
- package/v3/style.css +1 -1
- package/v3/ui-process-h5.js +225 -214
- package/v3/ui-process-h5.umd.cjs +1 -1
package/v2/ui-process-h5.js
CHANGED
|
@@ -435,8 +435,8 @@ function te(e, s, t, i, a) {
|
|
|
435
435
|
return Y.target && (n.depend(), p && (p.dep.depend(), Array.isArray(m) && ln(m))), m;
|
|
436
436
|
},
|
|
437
437
|
set: function(m) {
|
|
438
|
-
var
|
|
439
|
-
m ===
|
|
438
|
+
var v = o ? o.call(e) : t;
|
|
439
|
+
m === v || m !== m && v !== v || (process.env.NODE_ENV !== "production" && i && i(), !(o && !l) && (l ? l.call(e, m) : t = m, p = !a && _e(m), n.notify()));
|
|
440
440
|
}
|
|
441
441
|
});
|
|
442
442
|
}
|
|
@@ -679,8 +679,8 @@ function jr(e, s, t, i, a) {
|
|
|
679
679
|
o.push(p.expectedType || ""), r = p.valid;
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
var h = o.some(function(
|
|
683
|
-
return
|
|
682
|
+
var h = o.some(function(v) {
|
|
683
|
+
return v;
|
|
684
684
|
});
|
|
685
685
|
if (!r && h) {
|
|
686
686
|
g(
|
|
@@ -1147,8 +1147,8 @@ function go(e, s, t, i, a) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
var h = Re(l), m = je(l);
|
|
1149
1149
|
if (!(h in n) && !(m in n) && (n[l] = t[l], a)) {
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1150
|
+
var v = e.on || (e.on = {});
|
|
1151
|
+
v["update:" + l] = function(I) {
|
|
1152
1152
|
t[l] = I;
|
|
1153
1153
|
};
|
|
1154
1154
|
}
|
|
@@ -1233,11 +1233,11 @@ function ii(e, s, t, i, a) {
|
|
|
1233
1233
|
get: function() {
|
|
1234
1234
|
return Ft(e.scopedSlots, this.slots());
|
|
1235
1235
|
}
|
|
1236
|
-
}), l && (this.$options = r, this.$slots = this.slots(), this.$scopedSlots = Ft(e.scopedSlots, this.$slots)), r._scopeId ? this._c = function(h, m,
|
|
1237
|
-
var x = Ht(o, h, m,
|
|
1236
|
+
}), l && (this.$options = r, this.$slots = this.slots(), this.$scopedSlots = Ft(e.scopedSlots, this.$slots)), r._scopeId ? this._c = function(h, m, v, I) {
|
|
1237
|
+
var x = Ht(o, h, m, v, I, p);
|
|
1238
1238
|
return x && !Array.isArray(x) && (x.fnScopeId = r._scopeId, x.fnContext = i), x;
|
|
1239
|
-
} : this._c = function(h, m,
|
|
1240
|
-
return Ht(o, h, m,
|
|
1239
|
+
} : this._c = function(h, m, v, I) {
|
|
1240
|
+
return Ht(o, h, m, v, I, p);
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
1243
|
gn(ii.prototype);
|
|
@@ -1258,9 +1258,9 @@ function bo(e, s, t, i, a) {
|
|
|
1258
1258
|
if (h instanceof q)
|
|
1259
1259
|
return Ri(h, t, p.parent, n, p);
|
|
1260
1260
|
if (Array.isArray(h)) {
|
|
1261
|
-
for (var m = ti(h) || [],
|
|
1262
|
-
|
|
1263
|
-
return
|
|
1261
|
+
for (var m = ti(h) || [], v = new Array(m.length), I = 0; I < m.length; I++)
|
|
1262
|
+
v[I] = Ri(m[I], t, p.parent, n, p);
|
|
1263
|
+
return v;
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
1266
|
function Ri(e, s, t, i, a) {
|
|
@@ -1488,8 +1488,8 @@ function Mo(e, s) {
|
|
|
1488
1488
|
return fe(i, t);
|
|
1489
1489
|
});
|
|
1490
1490
|
var o = function(m) {
|
|
1491
|
-
for (var
|
|
1492
|
-
i[
|
|
1491
|
+
for (var v = 0, I = i.length; v < I; v++)
|
|
1492
|
+
i[v].$forceUpdate();
|
|
1493
1493
|
m && (i.length = 0, n !== null && (clearTimeout(n), n = null), r !== null && (clearTimeout(r), r = null));
|
|
1494
1494
|
}, l = Gt(function(m) {
|
|
1495
1495
|
e.resolved = ps(m, s), a ? i.length = 0 : o(!0);
|
|
@@ -1654,8 +1654,8 @@ function _o(e, s, t, i, a) {
|
|
|
1654
1654
|
if (e.$options._parentVnode = i, e.$vnode = i, e._vnode && (e._vnode.parent = i), e.$options._renderChildren = a, e.$attrs = i.data.attrs || Z, e.$listeners = t || Z, s && e.$options.props) {
|
|
1655
1655
|
Ie(!1);
|
|
1656
1656
|
for (var p = e._props, h = e.$options._propKeys || [], m = 0; m < h.length; m++) {
|
|
1657
|
-
var
|
|
1658
|
-
p[
|
|
1657
|
+
var v = h[m], I = e.$options.props;
|
|
1658
|
+
p[v] = $s(v, I, s, e);
|
|
1659
1659
|
}
|
|
1660
1660
|
Ie(!0), e.$options.propsData = s;
|
|
1661
1661
|
}
|
|
@@ -2384,27 +2384,27 @@ function Wl(e) {
|
|
|
2384
2384
|
})) && S.isUnknownElement(u.tag);
|
|
2385
2385
|
}
|
|
2386
2386
|
var h = 0;
|
|
2387
|
-
function m(u, c, f,
|
|
2388
|
-
if (d(u.elm) && d(w) && (u = w[k] = bs(u)), u.isRootInsert = !y, !
|
|
2387
|
+
function m(u, c, f, A, y, w, k) {
|
|
2388
|
+
if (d(u.elm) && d(w) && (u = w[k] = bs(u)), u.isRootInsert = !y, !v(u, c, f, A)) {
|
|
2389
2389
|
var b = u.data, B = u.children, N = u.tag;
|
|
2390
2390
|
d(N) ? (process.env.NODE_ENV !== "production" && (b && b.pre && h++, p(u, h) && g(
|
|
2391
2391
|
"Unknown custom element: <" + N + '> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',
|
|
2392
2392
|
u.context
|
|
2393
|
-
)), u.elm = u.ns ? n.createElementNS(u.ns, N) : n.createElement(N, u), Ne(u), ae(u, B, c), d(b) && K(u, c), T(f, u.elm,
|
|
2393
|
+
)), u.elm = u.ns ? n.createElementNS(u.ns, N) : n.createElement(N, u), Ne(u), ae(u, B, c), d(b) && K(u, c), T(f, u.elm, A), process.env.NODE_ENV !== "production" && b && b.pre && h--) : M(u.isComment) ? (u.elm = n.createComment(u.text), T(f, u.elm, A)) : (u.elm = n.createTextNode(u.text), T(f, u.elm, A));
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function v(u, c, f, A) {
|
|
2397
2397
|
var y = u.data;
|
|
2398
2398
|
if (d(y)) {
|
|
2399
2399
|
var w = d(u.componentInstance) && y.keepAlive;
|
|
2400
2400
|
if (d(y = y.hook) && d(y = y.init) && y(u, !1), d(u.componentInstance))
|
|
2401
|
-
return I(u, c), T(f, u.elm,
|
|
2401
|
+
return I(u, c), T(f, u.elm, A), M(w) && x(u, c, f, A), !0;
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
2404
|
function I(u, c) {
|
|
2405
2405
|
d(u.data.pendingInsert) && (c.push.apply(c, u.data.pendingInsert), u.data.pendingInsert = null), u.elm = u.componentInstance.$el, V(u) ? (K(u, c), Ne(u)) : ($e(u), c.push(u));
|
|
2406
2406
|
}
|
|
2407
|
-
function x(u, c, f,
|
|
2407
|
+
function x(u, c, f, A) {
|
|
2408
2408
|
for (var y, w = u; w.componentInstance; )
|
|
2409
2409
|
if (w = w.componentInstance._vnode, d(y = w.data) && d(y = y.transition)) {
|
|
2410
2410
|
for (y = 0; y < i.activate.length; ++y)
|
|
@@ -2412,7 +2412,7 @@ function Wl(e) {
|
|
|
2412
2412
|
c.push(w);
|
|
2413
2413
|
break;
|
|
2414
2414
|
}
|
|
2415
|
-
T(f, u.elm,
|
|
2415
|
+
T(f, u.elm, A);
|
|
2416
2416
|
}
|
|
2417
2417
|
function T(u, c, f) {
|
|
2418
2418
|
d(u) && (d(f) ? n.parentNode(f) === u && n.insertBefore(u, c, f) : n.appendChild(u, c));
|
|
@@ -2420,8 +2420,8 @@ function Wl(e) {
|
|
|
2420
2420
|
function ae(u, c, f) {
|
|
2421
2421
|
if (Array.isArray(c)) {
|
|
2422
2422
|
process.env.NODE_ENV !== "production" && Ye(c);
|
|
2423
|
-
for (var
|
|
2424
|
-
m(c[
|
|
2423
|
+
for (var A = 0; A < c.length; ++A)
|
|
2424
|
+
m(c[A], f, u.elm, null, !0, c, A);
|
|
2425
2425
|
} else
|
|
2426
2426
|
we(u.text) && n.appendChild(u.elm, n.createTextNode(String(u.text)));
|
|
2427
2427
|
}
|
|
@@ -2444,14 +2444,14 @@ function Wl(e) {
|
|
|
2444
2444
|
d(c = f.context) && d(c = c.$options._scopeId) && n.setStyleScope(u.elm, c), f = f.parent;
|
|
2445
2445
|
d(c = Fe) && c !== u.context && c !== u.fnContext && d(c = c.$options._scopeId) && n.setStyleScope(u.elm, c);
|
|
2446
2446
|
}
|
|
2447
|
-
function Ke(u, c, f,
|
|
2448
|
-
for (;
|
|
2449
|
-
m(f[
|
|
2447
|
+
function Ke(u, c, f, A, y, w) {
|
|
2448
|
+
for (; A <= y; ++A)
|
|
2449
|
+
m(f[A], w, u, c, !1, f, A);
|
|
2450
2450
|
}
|
|
2451
2451
|
function Ee(u) {
|
|
2452
|
-
var c, f,
|
|
2453
|
-
if (d(
|
|
2454
|
-
for (d(c =
|
|
2452
|
+
var c, f, A = u.data;
|
|
2453
|
+
if (d(A))
|
|
2454
|
+
for (d(c = A.hook) && d(c = c.destroy) && c(u), c = 0; c < i.destroy.length; ++c)
|
|
2455
2455
|
i.destroy[c](u);
|
|
2456
2456
|
if (d(c = u.children))
|
|
2457
2457
|
for (f = 0; f < u.children.length; ++f)
|
|
@@ -2459,44 +2459,44 @@ function Wl(e) {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
function ce(u, c, f) {
|
|
2461
2461
|
for (; c <= f; ++c) {
|
|
2462
|
-
var
|
|
2463
|
-
d(
|
|
2462
|
+
var A = u[c];
|
|
2463
|
+
d(A) && (d(A.tag) ? (ee(A), Ee(A)) : l(A.elm));
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
function ee(u, c) {
|
|
2467
2467
|
if (d(c) || d(u.data)) {
|
|
2468
|
-
var f,
|
|
2469
|
-
for (d(c) ? c.listeners +=
|
|
2468
|
+
var f, A = i.remove.length + 1;
|
|
2469
|
+
for (d(c) ? c.listeners += A : c = o(u.elm, A), d(f = u.componentInstance) && d(f = f._vnode) && d(f.data) && ee(f, c), f = 0; f < i.remove.length; ++f)
|
|
2470
2470
|
i.remove[f](u, c);
|
|
2471
2471
|
d(f = u.data.hook) && d(f = f.remove) ? f(u, c) : c();
|
|
2472
2472
|
} else
|
|
2473
2473
|
l(u.elm);
|
|
2474
2474
|
}
|
|
2475
|
-
function lt(u, c, f,
|
|
2475
|
+
function lt(u, c, f, A, y) {
|
|
2476
2476
|
var w = 0, k = 0, b = c.length - 1, B = c[0], N = c[b], E = f.length - 1, L = f[0], z = f[E], Be, Ae, ve, Ci, os = !y;
|
|
2477
2477
|
for (process.env.NODE_ENV !== "production" && Ye(f); w <= b && k <= E; )
|
|
2478
|
-
C(B) ? B = c[++w] : C(N) ? N = c[--b] : Se(B, L) ? (pe(B, L,
|
|
2479
|
-
w > b ? (Ci = C(f[E + 1]) ? null : f[E + 1].elm, Ke(u, Ci, f, k, E,
|
|
2478
|
+
C(B) ? B = c[++w] : C(N) ? N = c[--b] : Se(B, L) ? (pe(B, L, A, f, k), B = c[++w], L = f[++k]) : Se(N, z) ? (pe(N, z, A, f, E), N = c[--b], z = f[--E]) : Se(B, z) ? (pe(B, z, A, f, E), os && n.insertBefore(u, B.elm, n.nextSibling(N.elm)), B = c[++w], z = f[--E]) : Se(N, L) ? (pe(N, L, A, f, k), os && n.insertBefore(u, N.elm, B.elm), N = c[--b], L = f[++k]) : (C(Be) && (Be = Hl(c, w, b)), Ae = d(L.key) ? Be[L.key] : wt(L, c, w, b), C(Ae) ? m(L, A, u, B.elm, !1, f, k) : (ve = c[Ae], Se(ve, L) ? (pe(ve, L, A, f, k), c[Ae] = void 0, os && n.insertBefore(u, ve.elm, B.elm)) : m(L, A, u, B.elm, !1, f, k)), L = f[++k]);
|
|
2479
|
+
w > b ? (Ci = C(f[E + 1]) ? null : f[E + 1].elm, Ke(u, Ci, f, k, E, A)) : k > E && ce(c, w, b);
|
|
2480
2480
|
}
|
|
2481
2481
|
function Ye(u) {
|
|
2482
2482
|
for (var c = {}, f = 0; f < u.length; f++) {
|
|
2483
|
-
var
|
|
2483
|
+
var A = u[f], y = A.key;
|
|
2484
2484
|
d(y) && (c[y] ? g(
|
|
2485
2485
|
"Duplicate keys detected: '" + y + "'. This may cause an update error.",
|
|
2486
|
-
|
|
2486
|
+
A.context
|
|
2487
2487
|
) : c[y] = !0);
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
|
-
function wt(u, c, f,
|
|
2491
|
-
for (var y = f; y <
|
|
2490
|
+
function wt(u, c, f, A) {
|
|
2491
|
+
for (var y = f; y < A; y++) {
|
|
2492
2492
|
var w = c[y];
|
|
2493
2493
|
if (d(w) && Se(u, w))
|
|
2494
2494
|
return y;
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
|
-
function pe(u, c, f,
|
|
2497
|
+
function pe(u, c, f, A, y, w) {
|
|
2498
2498
|
if (u !== c) {
|
|
2499
|
-
d(c.elm) && d(
|
|
2499
|
+
d(c.elm) && d(A) && (c = A[y] = bs(c));
|
|
2500
2500
|
var k = c.elm = u.elm;
|
|
2501
2501
|
if (M(u.isAsyncPlaceholder)) {
|
|
2502
2502
|
d(c.asyncFactory.resolved) ? ge(u.elm, c, f) : c.isAsyncPlaceholder = !0;
|
|
@@ -2521,15 +2521,15 @@ function Wl(e) {
|
|
|
2521
2521
|
if (M(f) && d(u.parent))
|
|
2522
2522
|
u.parent.data.pendingInsert = c;
|
|
2523
2523
|
else
|
|
2524
|
-
for (var
|
|
2525
|
-
c[
|
|
2524
|
+
for (var A = 0; A < c.length; ++A)
|
|
2525
|
+
c[A].data.hook.insert(c[A]);
|
|
2526
2526
|
}
|
|
2527
2527
|
var xe = !1, Nt = W("attrs,class,staticClass,staticStyle,key");
|
|
2528
|
-
function ge(u, c, f,
|
|
2528
|
+
function ge(u, c, f, A) {
|
|
2529
2529
|
var y, w = c.tag, k = c.data, b = c.children;
|
|
2530
|
-
if (
|
|
2530
|
+
if (A = A || k && k.pre, c.elm = u, M(c.isComment) && d(c.asyncFactory))
|
|
2531
2531
|
return c.isAsyncPlaceholder = !0, !0;
|
|
2532
|
-
if (process.env.NODE_ENV !== "production" && !He(u, c,
|
|
2532
|
+
if (process.env.NODE_ENV !== "production" && !He(u, c, A))
|
|
2533
2533
|
return !1;
|
|
2534
2534
|
if (d(k) && (d(y = k.hook) && d(y = y.init) && y(c, !0), d(y = c.componentInstance)))
|
|
2535
2535
|
return I(c, f), !0;
|
|
@@ -2542,7 +2542,7 @@ function Wl(e) {
|
|
|
2542
2542
|
return process.env.NODE_ENV !== "production" && typeof console < "u" && !xe && (xe = !0, console.warn("Parent: ", u), console.warn("server innerHTML: ", y), console.warn("client innerHTML: ", u.innerHTML)), !1;
|
|
2543
2543
|
} else {
|
|
2544
2544
|
for (var B = !0, N = u.firstChild, E = 0; E < b.length; E++) {
|
|
2545
|
-
if (!N || !ge(N, b[E], f,
|
|
2545
|
+
if (!N || !ge(N, b[E], f, A)) {
|
|
2546
2546
|
B = !1;
|
|
2547
2547
|
break;
|
|
2548
2548
|
}
|
|
@@ -2567,7 +2567,7 @@ function Wl(e) {
|
|
|
2567
2567
|
function He(u, c, f) {
|
|
2568
2568
|
return d(c.tag) ? c.tag.indexOf("vue-component") === 0 || !p(c, f) && c.tag.toLowerCase() === (u.tagName && u.tagName.toLowerCase()) : u.nodeType === (c.isComment ? 8 : 3);
|
|
2569
2569
|
}
|
|
2570
|
-
return function(c, f,
|
|
2570
|
+
return function(c, f, A, y) {
|
|
2571
2571
|
if (C(f)) {
|
|
2572
2572
|
d(c) && Ee(c);
|
|
2573
2573
|
return;
|
|
@@ -2581,7 +2581,7 @@ function Wl(e) {
|
|
|
2581
2581
|
pe(c, f, k, null, null, y);
|
|
2582
2582
|
else {
|
|
2583
2583
|
if (b) {
|
|
2584
|
-
if (c.nodeType === 1 && c.hasAttribute(bi) && (c.removeAttribute(bi),
|
|
2584
|
+
if (c.nodeType === 1 && c.hasAttribute(bi) && (c.removeAttribute(bi), A = !0), M(A)) {
|
|
2585
2585
|
if (ge(c, f, k))
|
|
2586
2586
|
return me(f, k, !0), c;
|
|
2587
2587
|
process.env.NODE_ENV !== "production" && g(
|
|
@@ -2633,14 +2633,14 @@ function Zl(e, s) {
|
|
|
2633
2633
|
p = a[l], h = n[l], p ? (h.oldValue = p.value, h.oldArg = p.arg, ut(h, "update", s, e), h.def && h.def.componentUpdated && o.push(h)) : (ut(h, "bind", s, e), h.def && h.def.inserted && r.push(h));
|
|
2634
2634
|
if (r.length) {
|
|
2635
2635
|
var m = function() {
|
|
2636
|
-
for (var
|
|
2637
|
-
ut(r[
|
|
2636
|
+
for (var v = 0; v < r.length; v++)
|
|
2637
|
+
ut(r[v], "inserted", s, e);
|
|
2638
2638
|
};
|
|
2639
2639
|
t ? ye(s, "insert", m) : m();
|
|
2640
2640
|
}
|
|
2641
2641
|
if (o.length && ye(s, "postpatch", function() {
|
|
2642
|
-
for (var
|
|
2643
|
-
ut(o[
|
|
2642
|
+
for (var v = 0; v < o.length; v++)
|
|
2643
|
+
ut(o[v], "componentUpdated", s, e);
|
|
2644
2644
|
}), !t)
|
|
2645
2645
|
for (l in a)
|
|
2646
2646
|
n[l] || ut(a[l], "unbind", e, e, i);
|
|
@@ -2954,12 +2954,12 @@ var Ac = /\b(transform|all)(,|$)/;
|
|
|
2954
2954
|
function Vn(e, s) {
|
|
2955
2955
|
var t = window.getComputedStyle(e), i = (t[Vt + "Delay"] || "").split(", "), a = (t[Vt + "Duration"] || "").split(", "), n = pa(i, a), r = (t[Fs + "Delay"] || "").split(", "), o = (t[Fs + "Duration"] || "").split(", "), l = pa(r, o), p, h = 0, m = 0;
|
|
2956
2956
|
s === We ? n > 0 && (p = We, h = n, m = a.length) : s === gs ? l > 0 && (p = gs, h = l, m = o.length) : (h = Math.max(n, l), p = h > 0 ? n > l ? We : gs : null, m = p ? p === We ? a.length : o.length : 0);
|
|
2957
|
-
var
|
|
2957
|
+
var v = p === We && Ac.test(t[Vt + "Property"]);
|
|
2958
2958
|
return {
|
|
2959
2959
|
type: p,
|
|
2960
2960
|
timeout: h,
|
|
2961
2961
|
propCount: m,
|
|
2962
|
-
hasTransform:
|
|
2962
|
+
hasTransform: v
|
|
2963
2963
|
};
|
|
2964
2964
|
}
|
|
2965
2965
|
function pa(e, s) {
|
|
@@ -2977,11 +2977,11 @@ function Us(e, s) {
|
|
|
2977
2977
|
d(t._leaveCb) && (t._leaveCb.cancelled = !0, t._leaveCb());
|
|
2978
2978
|
var i = Pn(e.data.transition);
|
|
2979
2979
|
if (!C(i) && !(d(t._enterCb) || t.nodeType !== 1)) {
|
|
2980
|
-
for (var a = i.css, n = i.type, r = i.enterClass, o = i.enterToClass, l = i.enterActiveClass, p = i.appearClass, h = i.appearToClass, m = i.appearActiveClass,
|
|
2980
|
+
for (var a = i.css, n = i.type, r = i.enterClass, o = i.enterToClass, l = i.enterActiveClass, p = i.appearClass, h = i.appearToClass, m = i.appearActiveClass, v = i.beforeEnter, I = i.enter, x = i.afterEnter, T = i.enterCancelled, ae = i.beforeAppear, V = i.appear, K = i.afterAppear, Ne = i.appearCancelled, Ke = i.duration, Ee = Fe, ce = Fe.$vnode; ce && ce.parent; )
|
|
2981
2981
|
Ee = ce.context, ce = ce.parent;
|
|
2982
2982
|
var ee = !Ee._isMounted || !e.isRootInsert;
|
|
2983
2983
|
if (!(ee && !V && V !== "")) {
|
|
2984
|
-
var lt = ee && p ? p : r, Ye = ee && m ? m : l, wt = ee && h ? h : o, pe = ee && ae ||
|
|
2984
|
+
var lt = ee && p ? p : r, Ye = ee && m ? m : l, wt = ee && h ? h : o, pe = ee && ae || v, me = ee && typeof V == "function" ? V : I, xe = ee && K || x, Nt = ee && Ne || T, ge = ft(
|
|
2985
2985
|
U(Ke) ? Ke.enter : Ke
|
|
2986
2986
|
);
|
|
2987
2987
|
process.env.NODE_ENV !== "production" && ge != null && Gn(ge, "enter", e);
|
|
@@ -2989,8 +2989,8 @@ function Us(e, s) {
|
|
|
2989
2989
|
He && (he(t, wt), he(t, Ye)), c.cancelled ? (He && he(t, lt), Nt && Nt(t)) : xe && xe(t), t._enterCb = null;
|
|
2990
2990
|
});
|
|
2991
2991
|
e.data.show || ye(e, "insert", function() {
|
|
2992
|
-
var f = t.parentNode,
|
|
2993
|
-
|
|
2992
|
+
var f = t.parentNode, A = f && f._pending && f._pending[e.key];
|
|
2993
|
+
A && A.tag === e.tag && A.elm._leaveCb && A.elm._leaveCb(), me && me(t, c);
|
|
2994
2994
|
}), pe && pe(t), He && (Ue(t, lt), Ue(t, Ye), Fn(function() {
|
|
2995
2995
|
he(t, lt), c.cancelled || (Ue(t, wt), u || (_n(ge) ? setTimeout(c, ge) : Un(t, n, c)));
|
|
2996
2996
|
})), e.data.show && (s && s(), me && me(t, c)), !He && !u && c();
|
|
@@ -3005,12 +3005,12 @@ function Rn(e, s) {
|
|
|
3005
3005
|
return s();
|
|
3006
3006
|
if (d(t._leaveCb))
|
|
3007
3007
|
return;
|
|
3008
|
-
var a = i.css, n = i.type, r = i.leaveClass, o = i.leaveToClass, l = i.leaveActiveClass, p = i.beforeLeave, h = i.leave, m = i.afterLeave,
|
|
3008
|
+
var a = i.css, n = i.type, r = i.leaveClass, o = i.leaveToClass, l = i.leaveActiveClass, p = i.beforeLeave, h = i.leave, m = i.afterLeave, v = i.leaveCancelled, I = i.delayLeave, x = i.duration, T = a !== !1 && !ot, ae = fi(h), V = ft(
|
|
3009
3009
|
U(x) ? x.leave : x
|
|
3010
3010
|
);
|
|
3011
3011
|
process.env.NODE_ENV !== "production" && d(V) && Gn(V, "leave", e);
|
|
3012
3012
|
var K = t._leaveCb = Gt(function() {
|
|
3013
|
-
t.parentNode && t.parentNode._pending && (t.parentNode._pending[e.key] = null), T && (he(t, o), he(t, l)), K.cancelled ? (T && he(t, r),
|
|
3013
|
+
t.parentNode && t.parentNode._pending && (t.parentNode._pending[e.key] = null), T && (he(t, o), he(t, l)), K.cancelled ? (T && he(t, r), v && v(t)) : (s(), m && m(t)), t._leaveCb = null;
|
|
3014
3014
|
});
|
|
3015
3015
|
I ? I(Ne) : Ne();
|
|
3016
3016
|
function Ne() {
|
|
@@ -3236,11 +3236,11 @@ var Ec = function(e) {
|
|
|
3236
3236
|
if (a === "in-out") {
|
|
3237
3237
|
if (gt(r))
|
|
3238
3238
|
return p;
|
|
3239
|
-
var
|
|
3240
|
-
|
|
3239
|
+
var v, I = function() {
|
|
3240
|
+
v();
|
|
3241
3241
|
};
|
|
3242
3242
|
ye(l, "afterEnter", I), ye(l, "enterCancelled", I), ye(m, "delayLeave", function(x) {
|
|
3243
|
-
|
|
3243
|
+
v = x;
|
|
3244
3244
|
});
|
|
3245
3245
|
}
|
|
3246
3246
|
}
|
|
@@ -3279,11 +3279,11 @@ var Sc = {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
if (a) {
|
|
3282
|
-
for (var
|
|
3282
|
+
for (var v = [], I = [], x = 0; x < a.length; x++) {
|
|
3283
3283
|
var T = a[x];
|
|
3284
|
-
T.data.transition = o, T.data.pos = T.elm.getBoundingClientRect(), i[T.key] ?
|
|
3284
|
+
T.data.transition = o, T.data.pos = T.elm.getBoundingClientRect(), i[T.key] ? v.push(T) : I.push(T);
|
|
3285
3285
|
}
|
|
3286
|
-
this.kept = s(t, null,
|
|
3286
|
+
this.kept = s(t, null, v), this.removed = I;
|
|
3287
3287
|
}
|
|
3288
3288
|
return s(t, null, r);
|
|
3289
3289
|
},
|
|
@@ -3940,10 +3940,10 @@ function op(e) {
|
|
|
3940
3940
|
function s() {
|
|
3941
3941
|
var r = this, o = r.$options, l = o.setup, p = o.render;
|
|
3942
3942
|
if (p && (o.render = function() {
|
|
3943
|
-
for (var m = this,
|
|
3944
|
-
|
|
3943
|
+
for (var m = this, v = [], I = 0; I < arguments.length; I++)
|
|
3944
|
+
v[I] = arguments[I];
|
|
3945
3945
|
return vs(Xt(r), function() {
|
|
3946
|
-
return p.apply(m,
|
|
3946
|
+
return p.apply(m, v);
|
|
3947
3947
|
});
|
|
3948
3948
|
}), !!l) {
|
|
3949
3949
|
if (!Pe(l)) {
|
|
@@ -3965,10 +3965,10 @@ function op(e) {
|
|
|
3965
3965
|
m = l(o, p);
|
|
3966
3966
|
}), !!m) {
|
|
3967
3967
|
if (Pe(m)) {
|
|
3968
|
-
var
|
|
3968
|
+
var v = m;
|
|
3969
3969
|
r.$options.render = function() {
|
|
3970
3970
|
return wa(r, p.slots), vs(h, function() {
|
|
3971
|
-
return
|
|
3971
|
+
return v();
|
|
3972
3972
|
});
|
|
3973
3973
|
};
|
|
3974
3974
|
return;
|
|
@@ -4032,10 +4032,10 @@ function op(e) {
|
|
|
4032
4032
|
G(o, h, {
|
|
4033
4033
|
get: function() {
|
|
4034
4034
|
return function() {
|
|
4035
|
-
for (var
|
|
4036
|
-
|
|
4035
|
+
for (var v = [], I = 0; I < arguments.length; I++)
|
|
4036
|
+
v[I] = arguments[I];
|
|
4037
4037
|
var x = r[m];
|
|
4038
|
-
x.apply(r,
|
|
4038
|
+
x.apply(r, v);
|
|
4039
4039
|
};
|
|
4040
4040
|
}
|
|
4041
4041
|
});
|
|
@@ -4219,8 +4219,8 @@ function P(e, s, t, i, a, n, r, o) {
|
|
|
4219
4219
|
var l = typeof e == "function" ? e.options : e;
|
|
4220
4220
|
s && (l.render = s, l.staticRenderFns = t, l._compiled = !0), i && (l.functional = !0), n && (l._scopeId = "data-v-" + n);
|
|
4221
4221
|
var p;
|
|
4222
|
-
if (r ? (p = function(
|
|
4223
|
-
|
|
4222
|
+
if (r ? (p = function(v) {
|
|
4223
|
+
v = v || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !v && typeof __VUE_SSR_CONTEXT__ < "u" && (v = __VUE_SSR_CONTEXT__), a && a.call(this, v), v && v._registeredComponents && v._registeredComponents.add(r);
|
|
4224
4224
|
}, l._ssrRegister = p) : a && (p = o ? function() {
|
|
4225
4225
|
a.call(
|
|
4226
4226
|
this,
|
|
@@ -8020,7 +8020,14 @@ var Gu = function() {
|
|
|
8020
8020
|
on: {
|
|
8021
8021
|
click: e.undo
|
|
8022
8022
|
}
|
|
8023
|
-
}, [e._v("\u64A4\u9500")])])
|
|
8023
|
+
}, [e._v("\u64A4\u9500")])]), t("TopTips", {
|
|
8024
|
+
ref: "topTips",
|
|
8025
|
+
attrs: {
|
|
8026
|
+
text: e.textTips,
|
|
8027
|
+
statusTips: e.statusTips,
|
|
8028
|
+
type: e.typeTips
|
|
8029
|
+
}
|
|
8030
|
+
})], 1);
|
|
8024
8031
|
}, _u = [];
|
|
8025
8032
|
const Ju = {
|
|
8026
8033
|
data() {
|
|
@@ -8032,7 +8039,10 @@ const Ju = {
|
|
|
8032
8039
|
isDrawing: !1,
|
|
8033
8040
|
paths: [],
|
|
8034
8041
|
currentPath: [],
|
|
8035
|
-
historyPics: []
|
|
8042
|
+
historyPics: [],
|
|
8043
|
+
textTips: "",
|
|
8044
|
+
statusTips: !1,
|
|
8045
|
+
typeTips: "success"
|
|
8036
8046
|
};
|
|
8037
8047
|
},
|
|
8038
8048
|
methods: {
|
|
@@ -8075,13 +8085,14 @@ const Ju = {
|
|
|
8075
8085
|
this.$refs.canvasRef.getContext ? (this.ctx.clearRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height), this.ctx.fillStyle = "#fff", this.ctx.fillRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height), this.signatureImage = "", this.paths = []) : (this.ctx.clearRect(0, 0, this.$refs.canvasRef.$el.offsetWidth, this.$refs.canvasRef.$el.offsetHeight), this.ctx.draw(!0), this.signatureImage = "", this.paths = []), this.$emit("saveSignature", "", !1);
|
|
8076
8086
|
},
|
|
8077
8087
|
fixAccuracy(e, s) {
|
|
8078
|
-
|
|
8079
|
-
|
|
8088
|
+
this.handleTips("", !0, "loading");
|
|
8089
|
+
let t = s, i = e;
|
|
8090
|
+
for (; ; ) {
|
|
8080
8091
|
t !== s && (i = this.$refs.canvasRef.toDataURL("image/jpeg", t));
|
|
8081
|
-
const
|
|
8082
|
-
if (console.log("File Size (KB):",
|
|
8083
|
-
return console.log("finallySize: ",
|
|
8084
|
-
t - 0.
|
|
8092
|
+
const a = new Blob([i], { type: "text/plain" }), o = new File([a], "text.txt").size / 1024;
|
|
8093
|
+
if (console.log("File Size (KB):", o), o <= 64)
|
|
8094
|
+
return console.log("finallySize: ", o), this.handleTips("", !1, "loading"), this.$refs.canvasRef.toDataURL("image/jpeg", t);
|
|
8095
|
+
t - 0.05 > 0 ? t -= 0.05 : t = t / 2;
|
|
8085
8096
|
}
|
|
8086
8097
|
},
|
|
8087
8098
|
saveSignature() {
|
|
@@ -8093,15 +8104,12 @@ const Ju = {
|
|
|
8093
8104
|
if (this.$refs.canvasRef.getContext) {
|
|
8094
8105
|
let t = 1, i = null;
|
|
8095
8106
|
i = this.$refs.canvasRef.toDataURL("image/jpeg", t);
|
|
8096
|
-
const a =
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
i = this.fixAccuracy(this.$refs.canvasRef.toDataURL("image/jpeg", h), h), this.signatureImage = i || "";
|
|
8103
|
-
let m = JSON.parse(localStorage.getItem("signaturesArr")) || [];
|
|
8104
|
-
m.unshift(this.signatureImage), this.historyPics = m.slice(0, 3), localStorage.setItem("signaturesArr", JSON.stringify(this.historyPics)), this.$emit("saveSignature", this.signatureImage, !0);
|
|
8107
|
+
const a = new Blob([i], { type: "text/plain" }), o = new File([a], "text.txt").size / 1024;
|
|
8108
|
+
console.log("\u521D\u59CB\u957F\u5EA6", o);
|
|
8109
|
+
let l = 64 * t / o;
|
|
8110
|
+
i = this.fixAccuracy(this.$refs.canvasRef.toDataURL("image/jpeg", l), l), this.signatureImage = i || "";
|
|
8111
|
+
let p = JSON.parse(localStorage.getItem("signaturesArr")) || [];
|
|
8112
|
+
p.unshift(this.signatureImage), this.historyPics = p.slice(0, 3), localStorage.setItem("signaturesArr", JSON.stringify(this.historyPics)), this.$emit("saveSignature", this.signatureImage, !0);
|
|
8105
8113
|
} else
|
|
8106
8114
|
uni.canvasToTempFilePath({
|
|
8107
8115
|
canvasId: "canvas-id",
|
|
@@ -8121,6 +8129,9 @@ const Ju = {
|
|
|
8121
8129
|
},
|
|
8122
8130
|
useHistory(e) {
|
|
8123
8131
|
this.historyPics[e] && this.$emit("saveSignature", this.historyPics[e], !0);
|
|
8132
|
+
},
|
|
8133
|
+
handleTips(e, s, t) {
|
|
8134
|
+
this.textTips = e, this.statusTips = s, this.typeTips = t, this.$refs.topTips.handleOpen();
|
|
8124
8135
|
}
|
|
8125
8136
|
},
|
|
8126
8137
|
computed: {
|
|
@@ -8157,7 +8168,7 @@ var qu = /* @__PURE__ */ P(
|
|
|
8157
8168
|
_u,
|
|
8158
8169
|
!1,
|
|
8159
8170
|
ju,
|
|
8160
|
-
"
|
|
8171
|
+
"b8294e28",
|
|
8161
8172
|
null,
|
|
8162
8173
|
null
|
|
8163
8174
|
);
|