@solar-taro/ui-vant 1.3.2 → 1.3.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.
Files changed (151) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/cascader/index.scss +7 -2
  3. package/cascader/index.vue.d.ts +102 -0
  4. package/cascader-picker/index.vue.d.ts +6 -6
  5. package/date-range-picker/index.vue.d.ts +3 -3
  6. package/index.d.ts +1 -0
  7. package/index.js +24 -22
  8. package/index10.js +50 -243
  9. package/index100.js +5 -4
  10. package/index101.js +7 -4
  11. package/index102.js +17 -5
  12. package/index103.js +10 -6
  13. package/index104.js +6 -10
  14. package/index105.js +4 -6
  15. package/index106.js +4 -6
  16. package/index107.js +5 -17
  17. package/index108.js +6 -4
  18. package/index109.js +10 -5
  19. package/index11.js +247 -38
  20. package/index110.js +31 -3
  21. package/index111.js +6 -3
  22. package/index112.js +16 -13
  23. package/index113.js +5 -8
  24. package/index114.js +4 -5
  25. package/index115.js +3 -5
  26. package/index116.js +3 -5
  27. package/index117.js +14 -5
  28. package/index118.js +8 -6
  29. package/index119.js +6 -3
  30. package/index12.js +44 -17
  31. package/index120.js +4 -16
  32. package/index121.js +5 -5
  33. package/index122.js +5 -3
  34. package/index123.js +5 -3
  35. package/index124.js +3 -10
  36. package/index125.js +17 -5
  37. package/index126.js +5 -4
  38. package/index127.js +3 -5
  39. package/index128.js +4 -3
  40. package/index129.js +9 -4
  41. package/index13.js +15 -25
  42. package/index130.js +5 -4
  43. package/index131.js +4 -10
  44. package/index132.js +5 -6
  45. package/index133.js +3 -7
  46. package/index134.js +3 -3
  47. package/index135.js +4 -7
  48. package/index136.js +11 -3
  49. package/index137.js +9 -0
  50. package/index138.js +9 -0
  51. package/index139.js +7 -0
  52. package/index14.js +28 -4
  53. package/index140.js +10 -0
  54. package/index141.js +5 -0
  55. package/index15.js +5 -64
  56. package/index16.js +64 -2
  57. package/index17.js +1 -1
  58. package/index18.js +1 -1
  59. package/index19.js +1 -1
  60. package/index2.js +1 -1
  61. package/index20.js +1 -1
  62. package/index21.js +1 -1
  63. package/index22.js +1 -1
  64. package/index23.js +1 -1
  65. package/index24.js +1 -1
  66. package/index25.js +2 -10
  67. package/index26.js +2 -9
  68. package/index27.js +5 -3
  69. package/index28.js +13 -5
  70. package/index29.js +9 -62
  71. package/index3.js +165 -118
  72. package/index30.js +8 -3
  73. package/index31.js +4 -8
  74. package/index32.js +62 -6
  75. package/index33.js +3 -3
  76. package/index34.js +8 -2
  77. package/index35.js +6 -5
  78. package/index36.js +3 -9
  79. package/index37.js +1 -4
  80. package/index38.js +6 -4
  81. package/index39.js +10 -3
  82. package/index4.js +113 -157
  83. package/index40.js +4 -3
  84. package/index41.js +4 -8
  85. package/index42.js +3 -5
  86. package/index43.js +4 -5
  87. package/index44.js +7 -6
  88. package/index45.js +4 -5
  89. package/index46.js +5 -9
  90. package/index47.js +7 -5
  91. package/index48.js +5 -6
  92. package/index49.js +9 -5
  93. package/index5.js +166 -27
  94. package/index50.js +5 -10
  95. package/index51.js +6 -6
  96. package/index52.js +5 -18
  97. package/index53.js +9 -11
  98. package/index54.js +6 -6
  99. package/index55.js +17 -12
  100. package/index56.js +11 -3
  101. package/index57.js +6 -11
  102. package/index58.js +12 -7
  103. package/index59.js +3 -9
  104. package/index6.js +29 -95
  105. package/index60.js +6 -5
  106. package/index61.js +793 -5
  107. package/index62.js +11 -8
  108. package/index63.js +7 -15
  109. package/index64.js +9 -5
  110. package/index65.js +5 -5
  111. package/index66.js +5 -8
  112. package/index67.js +9 -7
  113. package/index68.js +15 -5
  114. package/index69.js +5 -5
  115. package/index7.js +93 -39
  116. package/index70.js +5 -6
  117. package/index71.js +8 -6
  118. package/index72.js +7 -26
  119. package/index73.js +5 -5
  120. package/index74.js +5 -39
  121. package/index75.js +6 -6
  122. package/index76.js +6 -5
  123. package/index77.js +26 -15
  124. package/index78.js +5 -7
  125. package/index79.js +40 -2
  126. package/index8.js +40 -263
  127. package/index80.js +7 -3
  128. package/index81.js +5 -12
  129. package/index82.js +15 -5
  130. package/index83.js +8 -3
  131. package/index84.js +2 -4
  132. package/index85.js +3 -4
  133. package/index86.js +13 -4
  134. package/index87.js +5 -4
  135. package/index88.js +3 -4
  136. package/index89.js +3 -14
  137. package/index9.js +262 -54
  138. package/index90.js +4 -14
  139. package/index91.js +4 -9
  140. package/index92.js +4 -3
  141. package/index93.js +3 -5
  142. package/index94.js +14 -5
  143. package/index95.js +13 -5
  144. package/index96.js +7 -6
  145. package/index97.js +3 -18
  146. package/index98.js +4 -9
  147. package/index99.js +4 -4
  148. package/opper-controller/index.scss +12 -0
  149. package/package.json +1 -1
  150. package/select-picker/index.vue.d.ts +4 -4
  151. package/selector/index.vue.d.ts +10 -10
package/index9.js CHANGED
@@ -1,64 +1,272 @@
1
- import { defineComponent as v, computed as y, unref as h, mergeProps as w, createElementVNode as k, openBlock as C, createElementBlock as V, createCommentVNode as g } from "vue";
2
- import { useFilterList as B } from "@solar-taro/core";
3
- const b = h, K = w, N = k, u = C, r = V, E = g, L = ["show"], $ = ["title", "value-key", "columns", "loading", "default-index"], A = /* @__PURE__ */ v({
4
- inheritAttrs: !1,
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 "./index29.js";
8
+ import De from "./index7.js";
9
+ import { dialog as Se } from "./index16.js";
10
+ import { useDestroyed as F } from "./index30.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({
5
12
  __name: "index",
6
13
  props: {
7
- show: { type: Boolean },
8
- labelKey: { default: "fullName" },
9
- valueKey: { default: "id" },
10
- searchable: { type: Boolean, default: !0 },
11
- title: {},
12
- loading: { type: Boolean },
13
- options: {},
14
- modelValue: {},
15
- required: { type: Boolean }
14
+ show: { type: Boolean, default: !1 },
15
+ mac: {},
16
+ deviceId: {},
17
+ opper: {}
16
18
  },
17
- emits: ["close", "cancel", "confirm", "update:show", "update:modelValue"],
18
- setup(s, { emit: i }) {
19
- const n = i, l = s, d = y(() => {
20
- var e;
21
- return (e = l.options.findIndex((o) => o[l.valueKey] === l.modelValue)) != null ? e : 0;
22
- }), { keyword: p, filteredList: m } = B(
23
- () => l.options,
24
- (e, o) => e[l.labelKey].toLowerCase().includes(o.value.toLowerCase())
25
- );
26
- function c() {
27
- l.required || n("update:modelValue", null), n("cancel", l.modelValue), a();
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
+ });
38
+ })
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
+ });
28
102
  }
29
- function a() {
30
- n("update:show", !1), n("close");
103
+ function f() {
104
+ C.next();
31
105
  }
32
- function f({ detail: e }) {
33
- n("update:modelValue", e.value[l.valueKey]), n("confirm", e.value), n("update:show", !1);
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
+ }));
34
121
  }
35
- return (e, o) => (u(), r("van-popup", {
36
- show: e.show,
37
- position: "bottom",
38
- round: !0,
39
- "close-on-click-overlay": !0,
40
- onClose: o[3] || (o[3] = (t) => a())
41
- }, [
42
- N("van-picker", K(e.$attrs, {
43
- title: e.title,
44
- "show-toolbar": !0,
45
- "value-key": e.labelKey,
46
- columns: b(m),
47
- loading: e.loading,
48
- "default-index": d.value,
49
- onCancel: o[0] || (o[0] = (t) => c()),
50
- onConfirm: o[1] || (o[1] = (t) => f(t))
51
- }), null, 16, $),
52
- e.searchable && e.options.length ? (u(), r("van-search", {
53
- key: 0,
54
- shape: "round",
55
- "input-align": "center",
56
- placeholder: "请输入搜索关键词",
57
- onChange: o[2] || (o[2] = (t) => p.value = t.detail)
58
- }, null, 32)) : E("", !0)
59
- ], 40, L));
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
+ ]));
60
268
  }
61
269
  });
62
270
  export {
63
- A as default
271
+ nt as default
64
272
  };
package/index90.js CHANGED
@@ -1,16 +1,6 @@
1
- import o from "./index36.js";
2
- import e from "./index91.js";
3
- import a from "./index42.js";
4
- import n from "./index89.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
- }
1
+ import o from "./index111.js";
2
+ import r from "./index42.js";
3
+ var p = o(r, "Map");
14
4
  export {
15
- O as default
5
+ p as default
16
6
  };
package/index91.js CHANGED
@@ -1,11 +1,6 @@
1
- import e from "./index119.js";
2
- var a = function() {
3
- var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
4
- return r ? "Symbol(src)_1." + r : "";
5
- }();
6
- function t(r) {
7
- return !!a && a in r;
8
- }
1
+ import o from "./index111.js";
2
+ import r from "./index42.js";
3
+ var m = o(r, "Promise");
9
4
  export {
10
- t as default
5
+ m as default
11
6
  };
package/index92.js CHANGED
@@ -1,5 +1,6 @@
1
- import t from "./index93.js";
2
- var o = t(Object.getPrototypeOf, Object);
1
+ import t from "./index111.js";
2
+ import o from "./index42.js";
3
+ var a = t(o, "Set");
3
4
  export {
4
- o as default
5
+ a as default
5
6
  };
package/index93.js CHANGED
@@ -1,8 +1,6 @@
1
- function e(r, n) {
2
- return function(t) {
3
- return r(n(t));
4
- };
5
- }
1
+ import a from "./index111.js";
2
+ import o from "./index42.js";
3
+ var e = a(o, "WeakMap");
6
4
  export {
7
5
  e as default
8
6
  };
package/index94.js CHANGED
@@ -1,8 +1,17 @@
1
- function i(r, t) {
2
- for (var e = -1, a = Array(r); ++e < r; )
3
- a[e] = t(e);
4
- return a;
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 "";
5
14
  }
6
15
  export {
7
- i as default
16
+ e as default
8
17
  };
package/index95.js CHANGED
@@ -1,8 +1,16 @@
1
- var o = 9007199254740991, d = /^(?:0|[1-9]\d*)$/;
2
- function f(r, s) {
3
- var t = typeof r;
4
- return s = s == null ? o : s, !!s && (t == "number" || t != "symbol" && d.test(r)) && r > -1 && r % 1 == 0 && r < s;
1
+ import o from "./index39.js";
2
+ import e from "./index96.js";
3
+ import a from "./index45.js";
4
+ import n from "./index94.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));
5
13
  }
6
14
  export {
7
- f as default
15
+ O as default
8
16
  };
package/index96.js CHANGED
@@ -1,9 +1,10 @@
1
- function t(n) {
2
- var r = [];
3
- if (n != null)
4
- for (var e in Object(n))
5
- r.push(e);
6
- return r;
1
+ import e from "./index124.js";
2
+ var a = function() {
3
+ var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
4
+ return r ? "Symbol(src)_1." + r : "";
5
+ }();
6
+ function t(r) {
7
+ return !!a && a in r;
7
8
  }
8
9
  export {
9
10
  t as default
package/index97.js CHANGED
@@ -1,20 +1,5 @@
1
- import r from "./index98.js";
2
- import m from "./index99.js";
3
- import h from "./index100.js";
4
- import l from "./index101.js";
5
- import c from "./index102.js";
6
- function e(t) {
7
- var o = -1, a = t == null ? 0 : t.length;
8
- for (this.clear(); ++o < a; ) {
9
- var p = t[o];
10
- this.set(p[0], p[1]);
11
- }
12
- }
13
- e.prototype.clear = r;
14
- e.prototype.delete = m;
15
- e.prototype.get = h;
16
- e.prototype.has = l;
17
- e.prototype.set = c;
1
+ import t from "./index98.js";
2
+ var o = t(Object.getPrototypeOf, Object);
18
3
  export {
19
- e as default
4
+ o as default
20
5
  };
package/index98.js CHANGED
@@ -1,13 +1,8 @@
1
- import a from "./index120.js";
2
- import t from "./index107.js";
3
- import e from "./index85.js";
4
- function o() {
5
- this.size = 0, this.__data__ = {
6
- hash: new a(),
7
- map: new (e || t)(),
8
- string: new a()
1
+ function e(r, n) {
2
+ return function(t) {
3
+ return r(n(t));
9
4
  };
10
5
  }
11
6
  export {
12
- o as default
7
+ e as default
13
8
  };
package/index99.js CHANGED
@@ -1,7 +1,7 @@
1
- import a from "./index121.js";
2
- function i(e) {
3
- var t = a(this, e).delete(e);
4
- return this.size -= t ? 1 : 0, t;
1
+ function i(r, t) {
2
+ for (var e = -1, a = Array(r); ++e < r; )
3
+ a[e] = t(e);
4
+ return a;
5
5
  }
6
6
  export {
7
7
  i as default
@@ -20,6 +20,14 @@
20
20
  font-size: 16px;
21
21
  }
22
22
 
23
+ &-battery {
24
+ color: var(--color-primary);
25
+
26
+ &-active {
27
+ color: var(--color-success);
28
+ }
29
+ }
30
+
23
31
  &-info {
24
32
  display: flex;
25
33
  justify-content: space-between;
@@ -27,6 +35,10 @@
27
35
 
28
36
  > view {
29
37
  flex-shrink: 0;
38
+
39
+ &:last-child {
40
+ color: var(--color-secondary);
41
+ }
30
42
  }
31
43
  }
32
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -17,10 +17,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  searchable: boolean;
18
18
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
19
  confirm: (options: any) => void;
20
- cancel: (model: any) => void;
20
+ "update:modelValue": (model: any) => void;
21
21
  close: () => void;
22
22
  "update:show": (args_0: boolean) => void;
23
- "update:modelValue": (model: any) => void;
23
+ cancel: (model: any) => void;
24
24
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
25
  show: boolean;
26
26
  labelKey?: string;
@@ -37,10 +37,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
37
37
  searchable: boolean;
38
38
  }>>> & Readonly<{
39
39
  onConfirm?: ((options: any) => any) | undefined;
40
- onCancel?: ((model: any) => any) | undefined;
40
+ "onUpdate:modelValue"?: ((model: any) => any) | undefined;
41
41
  onClose?: (() => any) | undefined;
42
42
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
43
- "onUpdate:modelValue"?: ((model: any) => any) | undefined;
43
+ onCancel?: ((model: any) => any) | undefined;
44
44
  }>, {
45
45
  labelKey: string;
46
46
  valueKey: string;
@@ -55,12 +55,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
55
55
  present: typeof present;
56
56
  clear: typeof clear;
57
57
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ select: (args_0: SelectorOption) => void;
59
+ clear: (args_0: unknown) => void;
58
60
  confirm: (args_0: SelectorOption[]) => void;
59
- close: () => void;
60
61
  "update:modelValue": (args_0: unknown) => void;
61
- clear: (args_0: unknown) => void;
62
- select: (args_0: SelectorOption) => void;
63
62
  refresh: () => void;
63
+ close: () => void;
64
64
  unselect: (args_0: SelectorOption) => void;
65
65
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
66
66
  type?: "field" | "search";
@@ -95,22 +95,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
95
95
  searchable: boolean;
96
96
  compareWith: (a: any, b: any) => boolean;
97
97
  }>>> & Readonly<{
98
+ onSelect?: ((args_0: SelectorOption) => any) | undefined;
99
+ onClear?: ((args_0: unknown) => any) | undefined;
98
100
  onConfirm?: ((args_0: SelectorOption[]) => any) | undefined;
99
- onClose?: (() => any) | undefined;
100
101
  "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
101
- onClear?: ((args_0: unknown) => any) | undefined;
102
- onSelect?: ((args_0: SelectorOption) => any) | undefined;
103
102
  onRefresh?: (() => any) | undefined;
103
+ onClose?: (() => any) | undefined;
104
104
  onUnselect?: ((args_0: SelectorOption) => any) | undefined;
105
105
  }>, {
106
- labelKey: string;
107
- valueKey: string;
108
- searchable: boolean;
109
106
  type: "field" | "search";
107
+ height: string;
110
108
  mode: "single" | "multiple";
111
109
  placeholder: string;
112
- height: string;
110
+ labelKey: string;
111
+ valueKey: string;
113
112
  delimiter: string;
113
+ searchable: boolean;
114
114
  compareWith: (a: any, b: any) => boolean;
115
115
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
116
116
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;