@solar-taro/ui-vant 1.6.5 → 2.1.0
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/CHANGELOG.md +17 -0
- package/cascader/index.vue.d.ts +35 -99
- package/cascader-picker/index.vue.d.ts +11 -51
- package/date-range-picker/index.vue.d.ts +9 -36
- package/directives/bind-function.d.ts +0 -1
- package/directives/datetime-picker.d.ts +0 -1
- package/directives/readonly.d.ts +0 -1
- package/index.d.ts +0 -2
- package/index.js +21 -25
- package/index.scss +6 -0
- package/index10.js +292 -50
- package/index100.js +3 -16
- package/index101.js +5 -10
- package/index102.js +6 -5
- package/index103.js +10 -5
- package/index104.js +6 -4
- package/index105.js +793 -5
- package/index106.js +6 -6
- package/index107.js +18 -10
- package/index108.js +4 -6
- package/index109.js +4 -17
- package/index11.js +17 -303
- package/index110.js +3 -4
- package/index111.js +3 -4
- package/index112.js +14 -3
- package/index113.js +8 -4
- package/index114.js +5 -14
- package/index115.js +6 -8
- package/index116.js +5 -5
- package/index117.js +5 -5
- package/index118.js +5 -5
- package/index119.js +3 -6
- package/index12.js +28 -45
- package/index120.js +17 -5
- package/index121.js +5 -6
- package/index122.js +28 -790
- package/index123.js +4 -3
- package/index124.js +2 -16
- package/index125.js +8 -4
- package/index126.js +5 -3
- package/index127.js +4 -3
- package/index128.js +5 -9
- package/index129.js +3 -6
- package/index13.js +4 -18
- package/index130.js +3 -3
- package/index131.js +4 -5
- package/index132.js +11 -3
- package/index133.js +5 -30
- package/index134.js +6 -4
- package/index135.js +4 -4
- package/index136.js +7 -10
- package/index137.js +3 -7
- package/index14.js +62 -27
- package/index15.js +2 -5
- package/index16.js +2 -64
- package/index17.js +1 -1
- package/index18.js +2 -6
- package/index19.js +1 -1
- package/index2.js +1 -1
- package/index20.js +1 -1
- package/index22.js +1 -1
- package/index23.js +6 -2
- package/index24.js +10 -2
- package/index25.js +9 -2
- package/index26.js +14 -2
- package/index27.js +4 -2
- package/index28.js +62 -3
- package/index29.js +3 -13
- package/index3.js +3 -3
- package/index30.js +8 -10
- package/index31.js +6 -8
- package/index32.js +3 -62
- package/index33.js +2 -4
- package/index34.js +6 -8
- package/index35.js +9 -6
- package/index36.js +4 -3
- package/index37.js +4 -2
- package/index38.js +3 -6
- package/index39.js +3 -9
- package/index4.js +1 -1
- package/index40.js +7 -4
- package/index41.js +5 -4
- package/index42.js +5 -3
- package/index43.js +6 -3
- package/index44.js +5 -7
- package/index45.js +9 -5
- package/index46.js +4 -4
- package/index47.js +6 -6
- package/index48.js +5 -6
- package/index49.js +10 -9
- package/index5.js +1 -1
- package/index50.js +7 -5
- package/index51.js +17 -6
- package/index52.js +12 -5
- package/index53.js +6 -9
- package/index54.js +12 -6
- package/index55.js +3 -17
- package/index56.js +7 -11
- package/index57.js +9 -6
- package/index58.js +10 -11
- package/index59.js +5 -3
- package/index6.js +92 -29
- package/index60.js +5 -7
- package/index61.js +9 -10
- package/index62.js +15 -11
- package/index63.js +5 -5
- package/index64.js +5 -5
- package/index65.js +9 -9
- package/index66.js +6 -15
- package/index67.js +5 -5
- package/index68.js +5 -5
- package/index69.js +6 -8
- package/index7.js +39 -90
- package/index70.js +6 -6
- package/index71.js +26 -6
- package/index72.js +5 -5
- package/index73.js +39 -6
- package/index74.js +6 -6
- package/index75.js +6 -26
- package/index76.js +15 -6
- package/index77.js +6 -38
- package/index78.js +2 -7
- package/index79.js +3 -6
- package/index8.js +264 -40
- package/index80.js +12 -14
- package/index81.js +4 -7
- package/index82.js +3 -2
- package/index83.js +4 -3
- package/index84.js +3 -12
- package/index85.js +4 -5
- package/index86.js +4 -3
- package/index87.js +3 -3
- package/index88.js +15 -4
- package/index89.js +14 -4
- package/index9.js +54 -262
- package/index90.js +9 -4
- package/index91.js +3 -4
- package/index92.js +4 -13
- package/index93.js +5 -13
- package/index94.js +5 -8
- package/index95.js +8 -3
- package/index96.js +16 -4
- package/index97.js +10 -5
- package/index98.js +5 -5
- package/index99.js +4 -7
- package/list/index.vue.d.ts +14 -9
- package/modal/index.vue.d.ts +19 -41
- package/opper-controller/index.vue.d.ts +8 -36
- package/overlay/overlay.d.ts +0 -1
- package/package.json +2 -2
- package/plugin.d.ts +0 -1
- package/select-picker/index.vue.d.ts +11 -45
- package/selector/index.vue.d.ts +86 -147
- package/index138.js +0 -9
- package/index139.js +0 -7
- package/index140.js +0 -10
- package/index141.js +0 -5
- package/item/index.d.ts +0 -1
- package/item/index.scss +0 -37
- package/item/index.vue.d.ts +0 -44
- package/tabbar/index.d.ts +0 -1
- package/tabbar/index.scss +0 -78
- package/tabbar/index.vue.d.ts +0 -58
package/index76.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import u from "./index41.js";
|
|
2
|
+
var r = Object.create, c = /* @__PURE__ */ function() {
|
|
3
|
+
function e() {
|
|
4
|
+
}
|
|
5
|
+
return function(t) {
|
|
6
|
+
if (!u(t))
|
|
7
|
+
return {};
|
|
8
|
+
if (r)
|
|
9
|
+
return r(t);
|
|
10
|
+
e.prototype = t;
|
|
11
|
+
var n = new e();
|
|
12
|
+
return e.prototype = void 0, n;
|
|
13
|
+
};
|
|
14
|
+
}();
|
|
6
15
|
export {
|
|
7
|
-
|
|
16
|
+
c as default
|
|
8
17
|
};
|
package/index77.js
CHANGED
|
@@ -1,42 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import i from "./index120.js";
|
|
6
|
-
var s = "[object Boolean]", u = "[object Date]", T = "[object Map]", b = "[object Number]", l = "[object RegExp]", m = "[object Set]", y = "[object String]", f = "[object Symbol]", p = "[object ArrayBuffer]", j = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", d = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", C = "[object Uint8Array]", S = "[object Uint8ClampedArray]", U = "[object Uint16Array]", v = "[object Uint32Array]";
|
|
7
|
-
function R(a, t, r) {
|
|
8
|
-
var e = a.constructor;
|
|
9
|
-
switch (t) {
|
|
10
|
-
case p:
|
|
11
|
-
return o(a);
|
|
12
|
-
case s:
|
|
13
|
-
case u:
|
|
14
|
-
return new e(+a);
|
|
15
|
-
case j:
|
|
16
|
-
return n(a, r);
|
|
17
|
-
case A:
|
|
18
|
-
case w:
|
|
19
|
-
case d:
|
|
20
|
-
case B:
|
|
21
|
-
case x:
|
|
22
|
-
case C:
|
|
23
|
-
case S:
|
|
24
|
-
case U:
|
|
25
|
-
case v:
|
|
26
|
-
return i(a, r);
|
|
27
|
-
case T:
|
|
28
|
-
return new e();
|
|
29
|
-
case b:
|
|
30
|
-
case y:
|
|
31
|
-
return new e(a);
|
|
32
|
-
case l:
|
|
33
|
-
return c(a);
|
|
34
|
-
case m:
|
|
35
|
-
return new e();
|
|
36
|
-
case f:
|
|
37
|
-
return g(a);
|
|
1
|
+
function d(e, i) {
|
|
2
|
+
for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
|
|
3
|
+
var l = e[n];
|
|
4
|
+
i(l, n, e) && (t[u++] = l);
|
|
38
5
|
}
|
|
6
|
+
return t;
|
|
39
7
|
}
|
|
40
8
|
export {
|
|
41
|
-
|
|
9
|
+
d as default
|
|
42
10
|
};
|
package/index78.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import r from "./index95.js";
|
|
3
|
-
import e from "./index63.js";
|
|
4
|
-
function p(t) {
|
|
5
|
-
return typeof t.constructor == "function" && !e(t) ? o(r(t)) : {};
|
|
6
|
-
}
|
|
1
|
+
var l = typeof global == "object" && global && global.Object === Object && global;
|
|
7
2
|
export {
|
|
8
|
-
|
|
3
|
+
l as default
|
|
9
4
|
};
|
package/index79.js
CHANGED
package/index8.js
CHANGED
|
@@ -1,48 +1,272 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as J, ref as I, computed as Q, watch as X, onUnmounted as Y, unref as Z, createElementVNode as ee, toDisplayString as te, vShow as ne, withDirectives as oe, normalizeClass as ie, createTextVNode as se, Fragment as re, openBlock as le, createElementBlock as ce, renderList as ae, normalizeStyle as ue, withCtx as de, createVNode as pe } from "vue";
|
|
2
|
+
import { isOpperDevice as ve } from "@opper/core";
|
|
3
|
+
import { BluetoothLowEnergeDevice as me } from "@opper/wx";
|
|
4
|
+
import { checkBluetooth as V, bluetoothService as w, vibrator as fe, overlay as r, withLoading as we } from "@solar-taro/core";
|
|
5
|
+
import { getSystemInfo as he, openSetting as be } from "@tarojs/taro";
|
|
6
|
+
import { filter as A, switchMap as m, combineLatest as ge, of as E, map as $, catchError as D, tap as B, timer as ye, takeUntil as N, finalize as O, from as _e } from "rxjs";
|
|
7
|
+
import { useObservable as j } from "./index24.js";
|
|
8
|
+
import De from "./index6.js";
|
|
9
|
+
import { dialog as Se } from "./index14.js";
|
|
10
|
+
import { useDestroyed as F } from "./index25.js";
|
|
11
|
+
const l = Z, n = ee, p = te, Ce = ne, ke = oe, xe = ie, Ie = se, T = re, h = le, b = ce, Ee = ae, $e = ue, Be = de, Ne = pe, Oe = { class: "sun-opper-controller" }, Te = ["show"], Me = { class: "sun-opper-controller-device" }, Pe = { class: "sun-opper-controller-device-header" }, Re = { class: "sun-opper-controller-device-name" }, ze = { class: "sun-opper-controller-device-infos" }, Le = { class: "sun-opper-controller-device-info" }, Ve = { class: "sun-opper-controller-device-info" }, Ae = { class: "sun-opper-controller-device-info" }, je = { class: "sun-opper-controller-device-info" }, Fe = { class: "van-button-container" }, Ue = ["title", "label", "onTap"], qe = { class: "van-button-container" }, Ke = ["show"], nt = /* @__PURE__ */ J({
|
|
7
12
|
__name: "index",
|
|
8
13
|
props: {
|
|
9
|
-
show: { type: Boolean },
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
confirmDisabled: { type: Boolean }
|
|
14
|
+
show: { type: Boolean, default: !1 },
|
|
15
|
+
mac: {},
|
|
16
|
+
deviceId: {},
|
|
17
|
+
opper: {}
|
|
14
18
|
},
|
|
15
|
-
emits: ["update:show", "
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
emits: ["update:show", "connect", "disconnect"],
|
|
20
|
+
setup(U, { emit: q }) {
|
|
21
|
+
const v = U, S = q, s = v.opper, M = F(), C = F(), a = I({}), u = I(!1), P = j(() => s.connected), g = I(!1), R = Q(() => Object.values(a.value)), d = j(() => s.connected.pipe(
|
|
22
|
+
A(Boolean),
|
|
23
|
+
m(() => {
|
|
24
|
+
const o = s.device;
|
|
25
|
+
return ge({
|
|
26
|
+
id: E(o.id),
|
|
27
|
+
name: o.name,
|
|
28
|
+
version: o.firmwareRevision,
|
|
29
|
+
accuracy: s.accuracyChange,
|
|
30
|
+
volt: s.batteryChange.pipe(
|
|
31
|
+
$(([e]) => e)
|
|
32
|
+
),
|
|
33
|
+
charging: s.batteryChange.pipe(
|
|
34
|
+
$(([, e]) => !!e)
|
|
35
|
+
),
|
|
36
|
+
serialNumber: o.serialNumber
|
|
37
|
+
});
|
|
29
38
|
})
|
|
30
|
-
}), [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
), {}), K = [
|
|
40
|
+
{ id: 1, name: "断开连接" },
|
|
41
|
+
{ id: 2, name: "断开连接并关机", color: "var(--color-danger)" }
|
|
42
|
+
];
|
|
43
|
+
let k = !1;
|
|
44
|
+
function x() {
|
|
45
|
+
if (!V()) return;
|
|
46
|
+
let o = null;
|
|
47
|
+
u.value = !0, w.openAdapter().pipe(
|
|
48
|
+
D((e) => {
|
|
49
|
+
var t, c;
|
|
50
|
+
if ((c = (t = e.errMsg) == null ? void 0 : t.includes) != null && c.call(t, "already"))
|
|
51
|
+
return E(null);
|
|
52
|
+
throw e;
|
|
53
|
+
}),
|
|
54
|
+
m(
|
|
55
|
+
() => w.startDevicesDiscovery({
|
|
56
|
+
allowDuplicatesKey: !0,
|
|
57
|
+
powerLevel: "high"
|
|
58
|
+
})
|
|
59
|
+
),
|
|
60
|
+
B(
|
|
61
|
+
() => ye(0, 1250).pipe(
|
|
62
|
+
N(C)
|
|
63
|
+
).subscribe(() => fe.short())
|
|
64
|
+
),
|
|
65
|
+
m(() => w.devicesChange),
|
|
66
|
+
$((e) => e.filter((t) => ve({
|
|
67
|
+
id: t.deviceId,
|
|
68
|
+
name: t.name
|
|
69
|
+
}))),
|
|
70
|
+
N(C),
|
|
71
|
+
D((e) => {
|
|
72
|
+
var t, c, i;
|
|
73
|
+
throw e.errno === 103 ? r.modal("温馨提示", "请先授予小程序蓝牙与位置权限").then(() => {
|
|
74
|
+
be();
|
|
75
|
+
}) : (c = (t = e.errMsg) == null ? void 0 : t.includes) != null && c.call(t, "permission") ? r.tips("请先授予微信蓝牙与位置权限") : (i = e.errMsg) != null && i.includes("frequently") ? r.tips("操作频繁,请稍后再试") : r.tips(e.errMsg), f(), e;
|
|
76
|
+
}),
|
|
77
|
+
O(() => {
|
|
78
|
+
u.value = !1, a.value = {}, w.stopDevicesDiscovery().subscribe();
|
|
79
|
+
})
|
|
80
|
+
).subscribe((e) => {
|
|
81
|
+
const t = v.mac || v.deviceId;
|
|
82
|
+
if (t) {
|
|
83
|
+
const i = t.slice(-5).replace(":", ""), _ = e.find(
|
|
84
|
+
(L) => L.deviceId === t || // 由于 iOS 的 deviceId 不是 MAC,但是蓝牙名字上有 MAC 后四位,这里通过比对 MAC 来选择设备
|
|
85
|
+
L.name.endsWith(i)
|
|
86
|
+
);
|
|
87
|
+
if (_)
|
|
88
|
+
return y(_.deviceId);
|
|
89
|
+
}
|
|
90
|
+
if (e.length === 1) {
|
|
91
|
+
if (o != null || (o = Date.now()), Date.now() - o > 5e3)
|
|
92
|
+
return y(e[0].deviceId);
|
|
93
|
+
} else e.length > 1 && (o = null);
|
|
94
|
+
Object.keys(a.value).forEach((i) => {
|
|
95
|
+
a.value[i].recommended = !1, Date.now() - a.value[i].discoveryTime > 5e3 && delete a.value[i];
|
|
96
|
+
}), e.forEach((i) => {
|
|
97
|
+
a.value[i.deviceId] = i, i.discoveryTime = Date.now();
|
|
98
|
+
});
|
|
99
|
+
const c = [...Object.values(a.value)].sort((i, _) => _.RSSI - i.RSSI)[0];
|
|
100
|
+
c && (c.recommended = !0);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function f() {
|
|
104
|
+
C.next();
|
|
105
|
+
}
|
|
106
|
+
function y(o) {
|
|
107
|
+
k || (r.loading("正在连接"), k = !0, M.next(), s.connect(new me(o)).pipe(
|
|
108
|
+
B(() => {
|
|
109
|
+
f(), S("connect", o), r.success("连接成功"), setTimeout(z, 600);
|
|
110
|
+
}),
|
|
111
|
+
D((e) => {
|
|
112
|
+
throw e.errCode === 10003 ? r.tips("连接超时,请重试") : r.tips(`连接失败:${e.errCode}:${e.errMsg}`), e;
|
|
113
|
+
}),
|
|
114
|
+
O(() => k = !1),
|
|
115
|
+
m(() => s.connected.pipe(A((e) => !e))),
|
|
116
|
+
// 监听断开
|
|
117
|
+
N(M)
|
|
118
|
+
).subscribe(() => {
|
|
119
|
+
S("disconnect", o), r.error("连接断开");
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
function W(o) {
|
|
123
|
+
V() && (u.value = !0, w.openAdapter().pipe(
|
|
124
|
+
O(() => {
|
|
125
|
+
u.value = !1;
|
|
126
|
+
})
|
|
127
|
+
).subscribe(() => {
|
|
128
|
+
y(o);
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
function G() {
|
|
132
|
+
var o;
|
|
133
|
+
(o = s.disconnect()) == null || o.pipe(
|
|
134
|
+
we("正在断开")
|
|
135
|
+
).subscribe();
|
|
136
|
+
}
|
|
137
|
+
function H({ detail: o }) {
|
|
138
|
+
switch (o.id) {
|
|
139
|
+
case 1:
|
|
140
|
+
G();
|
|
141
|
+
break;
|
|
142
|
+
case 2:
|
|
143
|
+
_e(Se.confirm("温馨提示", "您确定要关闭设备电源吗?")).pipe(
|
|
144
|
+
B(() => r.loading("正在关机")),
|
|
145
|
+
m(() => s.shutdown()),
|
|
146
|
+
D(() => E(null)),
|
|
147
|
+
// 关机后距离信号丢失还有一段时间,这里主动断开连接,改进用户体验
|
|
148
|
+
m(() => s.disconnect())
|
|
149
|
+
).subscribe(() => {
|
|
150
|
+
r.success("设备已关机");
|
|
151
|
+
});
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function z() {
|
|
156
|
+
S("update:show", !1);
|
|
157
|
+
}
|
|
158
|
+
return X(() => v.show, async (o) => {
|
|
159
|
+
if (o) {
|
|
160
|
+
if (!P.value)
|
|
161
|
+
if (v.mac) {
|
|
162
|
+
const { platform: e } = await he();
|
|
163
|
+
e === "ios" ? x() : W(v.mac);
|
|
164
|
+
} else
|
|
165
|
+
x();
|
|
166
|
+
} else
|
|
167
|
+
u.value && f();
|
|
168
|
+
}), Y(() => {
|
|
169
|
+
f();
|
|
170
|
+
}), (o, e) => (h(), b("view", Oe, [
|
|
171
|
+
n("van-action-sheet", {
|
|
172
|
+
show: o.show,
|
|
173
|
+
title: "OPPER",
|
|
174
|
+
"close-on-click-overlay": !0,
|
|
175
|
+
onClose: e[2] || (e[2] = (t) => z())
|
|
176
|
+
}, [
|
|
177
|
+
l(P) ? (h(), b(T, { key: 0 }, [
|
|
178
|
+
n("view", Me, [
|
|
179
|
+
n("view", Pe, [
|
|
180
|
+
e[7] || (e[7] = n("view", { class: "sun-opper-controller-device-title" }, "设备已连接", -1)),
|
|
181
|
+
n("view", Re, [
|
|
182
|
+
Ie(p(l(d).name || "OPPER") + " ", 1),
|
|
183
|
+
n("view", {
|
|
184
|
+
class: xe(["sun-opper-controller-device-battery", { "sun-opper-controller-device-battery-active": l(d).charging }])
|
|
185
|
+
}, [
|
|
186
|
+
e[6] || (e[6] = n("van-icon", {
|
|
187
|
+
"class-prefix": "iconfont",
|
|
188
|
+
name: "lightning"
|
|
189
|
+
}, null, -1)),
|
|
190
|
+
ke(n("text", null, p(l(d).volt) + "%", 513), [
|
|
191
|
+
[Ce, l(d).volt]
|
|
192
|
+
])
|
|
193
|
+
], 2)
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
n("view", ze, [
|
|
197
|
+
n("view", Le, [
|
|
198
|
+
e[8] || (e[8] = n("view", null, "设备号", -1)),
|
|
199
|
+
n("view", null, p(l(d).id), 1)
|
|
200
|
+
]),
|
|
201
|
+
n("view", Ve, [
|
|
202
|
+
e[9] || (e[9] = n("view", null, "秤台精度", -1)),
|
|
203
|
+
n("view", null, p(l(d).accuracy || 1) + "克", 1)
|
|
204
|
+
]),
|
|
205
|
+
n("view", Ae, [
|
|
206
|
+
e[10] || (e[10] = n("view", null, "固件版本", -1)),
|
|
207
|
+
n("view", null, p(l(d).version), 1)
|
|
208
|
+
]),
|
|
209
|
+
n("view", je, [
|
|
210
|
+
e[11] || (e[11] = n("view", null, "序列号", -1)),
|
|
211
|
+
n("view", null, p(l(d).serialNumber), 1)
|
|
212
|
+
])
|
|
213
|
+
])
|
|
214
|
+
]),
|
|
215
|
+
n("view", Fe, [
|
|
216
|
+
n("van-button", {
|
|
217
|
+
type: "danger",
|
|
218
|
+
round: "true",
|
|
219
|
+
block: "true",
|
|
220
|
+
onTap: e[0] || (e[0] = (t) => g.value = !0)
|
|
221
|
+
}, " 断开连接 ", 32)
|
|
222
|
+
])
|
|
223
|
+
], 64)) : (h(), b(T, { key: 1 }, [
|
|
224
|
+
Ne(l(De), {
|
|
225
|
+
class: "sun-opper-controller-device-list",
|
|
226
|
+
refresher: !1,
|
|
227
|
+
data: R.value,
|
|
228
|
+
loading: u.value,
|
|
229
|
+
"loading-text": "正在扫描",
|
|
230
|
+
"empty-type": "search",
|
|
231
|
+
"empty-text": "暂无设备"
|
|
232
|
+
}, {
|
|
233
|
+
default: Be(() => [
|
|
234
|
+
(h(!0), b(T, null, Ee(R.value, (t) => (h(), b("van-cell", {
|
|
235
|
+
key: t.deviceId,
|
|
236
|
+
title: t.name,
|
|
237
|
+
label: t.deviceId,
|
|
238
|
+
size: "large",
|
|
239
|
+
clickable: !0,
|
|
240
|
+
onTap: (c) => y(t.deviceId)
|
|
241
|
+
}, [
|
|
242
|
+
n("text", {
|
|
243
|
+
style: $e({ color: t.recommended ? "var(--color-success)" : "inherit" })
|
|
244
|
+
}, p(t.RSSI) + "dBm", 5)
|
|
245
|
+
], 40, Ue))), 128))
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}, 8, ["data", "loading"]),
|
|
249
|
+
n("view", qe, [
|
|
250
|
+
n("van-button", {
|
|
251
|
+
type: "primary",
|
|
252
|
+
round: "true",
|
|
253
|
+
block: "true",
|
|
254
|
+
onTap: e[1] || (e[1] = (t) => u.value ? f() : x())
|
|
255
|
+
}, p(u.value ? "停止扫描" : "扫描 OPPER 设备"), 33)
|
|
256
|
+
])
|
|
257
|
+
], 64))
|
|
258
|
+
], 40, Te),
|
|
259
|
+
n("van-action-sheet", {
|
|
260
|
+
show: g.value,
|
|
261
|
+
actions: K,
|
|
262
|
+
"cancel-text": "取消",
|
|
263
|
+
onSelect: e[3] || (e[3] = (t) => H(t)),
|
|
264
|
+
onCancel: e[4] || (e[4] = (t) => g.value = !1),
|
|
265
|
+
onClose: e[5] || (e[5] = (t) => g.value = !1)
|
|
266
|
+
}, null, 40, Ke)
|
|
267
|
+
]));
|
|
44
268
|
}
|
|
45
269
|
});
|
|
46
270
|
export {
|
|
47
|
-
|
|
271
|
+
nt as default
|
|
48
272
|
};
|
package/index80.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
|
|
1
|
+
import e from "./index79.js";
|
|
2
|
+
var o = Object.prototype, c = o.hasOwnProperty, f = o.toString, r = e ? e.toStringTag : void 0;
|
|
3
|
+
function p(t) {
|
|
4
|
+
var a = c.call(t, r), n = t[r];
|
|
5
|
+
try {
|
|
6
|
+
t[r] = void 0;
|
|
7
|
+
var i = !0;
|
|
8
|
+
} catch {
|
|
4
9
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (r)
|
|
9
|
-
return r(t);
|
|
10
|
-
e.prototype = t;
|
|
11
|
-
var n = new e();
|
|
12
|
-
return e.prototype = void 0, n;
|
|
13
|
-
};
|
|
14
|
-
}();
|
|
10
|
+
var g = f.call(t);
|
|
11
|
+
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
+
}
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
p as default
|
|
17
15
|
};
|
package/index81.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
i(l, n, e) && (t[u++] = l);
|
|
5
|
-
}
|
|
6
|
-
return t;
|
|
1
|
+
var o = Object.prototype, r = o.toString;
|
|
2
|
+
function e(t) {
|
|
3
|
+
return r.call(t);
|
|
7
4
|
}
|
|
8
5
|
export {
|
|
9
|
-
|
|
6
|
+
e as default
|
|
10
7
|
};
|
package/index82.js
CHANGED
package/index83.js
CHANGED
package/index84.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var a = c.call(t, r), n = t[r];
|
|
5
|
-
try {
|
|
6
|
-
t[r] = void 0;
|
|
7
|
-
var i = !0;
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
var g = f.call(t);
|
|
11
|
-
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
-
}
|
|
1
|
+
import o from "./index106.js";
|
|
2
|
+
import r from "./index38.js";
|
|
3
|
+
var p = o(r, "Map");
|
|
13
4
|
export {
|
|
14
5
|
p as default
|
|
15
6
|
};
|
package/index85.js
CHANGED
package/index86.js
CHANGED
package/index87.js
CHANGED
package/index88.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var o = Function.prototype, n = o.toString;
|
|
2
|
+
function e(t) {
|
|
3
|
+
if (t != null) {
|
|
4
|
+
try {
|
|
5
|
+
return n.call(t);
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
return t + "";
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return "";
|
|
14
|
+
}
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
e as default
|
|
6
17
|
};
|
package/index89.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import o from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import o from "./index35.js";
|
|
2
|
+
import e from "./index90.js";
|
|
3
|
+
import a from "./index41.js";
|
|
4
|
+
import n from "./index88.js";
|
|
5
|
+
var p = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, c = Object.prototype, f = s.toString, m = c.hasOwnProperty, u = RegExp(
|
|
6
|
+
"^" + f.call(m).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7
|
+
);
|
|
8
|
+
function O(r) {
|
|
9
|
+
if (!a(r) || e(r))
|
|
10
|
+
return !1;
|
|
11
|
+
var t = o(r) ? u : i;
|
|
12
|
+
return t.test(n(r));
|
|
13
|
+
}
|
|
4
14
|
export {
|
|
5
|
-
|
|
15
|
+
O as default
|
|
6
16
|
};
|