@solar-taro/ui-vant 1.3.5 → 1.4.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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.3.6 (2025-09-28)
2
+
3
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
4
+
5
+ ## 1.3.5 (2025-09-28)
6
+
7
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
8
+
1
9
  ## 1.3.4 (2025-09-24)
2
10
 
3
11
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
package/index11.js CHANGED
@@ -1,28 +1,19 @@
1
- import { defineComponent as M, ref as D, computed as h, renderSlot as _, openBlock as A, createElementBlock as G, createCommentVNode as H, mergeProps as J, resolveDirective as Q, withDirectives as U, unref as X, toDisplayString as Y, createElementVNode as Z, normalizeClass as x, normalizeStyle as ee, withCtx as le, createBlock as te, Fragment as oe, renderList as ne, createVNode as ae } from "vue";
2
- import { useFilterList as se } from "@solar-taro/core";
3
- import { SunLazyRender as re, SunVirtualScroll as ie } from "@solar-taro/ui-sun";
4
- import C from "./index28.js";
5
- import ue from "./index7.js";
6
- const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O = x, w = ee, N = le, R = te, T = oe, ce = ne, pe = ae, ve = ["label", "value", "placeholder", "required", "disabled"], fe = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], me = ["show", "title"], he = ["value"], ye = ["onTap"], ge = {
7
- class: "sun-selector-option-label",
8
- name: "title"
9
- }, be = {
10
- key: 0,
11
- class: "sun-selector-option-icon",
12
- slot: "right-icon",
13
- name: "success"
14
- }, ke = ["onTap"], Ve = {
15
- class: "sun-selector-option-label",
16
- name: "title"
17
- }, $e = {
18
- key: 0,
19
- class: "sun-selector-option-icon",
20
- slot: "right-icon",
21
- name: "success"
22
- }, Ke = {
1
+ import { defineComponent as H, ref as L, computed as h, renderSlot as J, openBlock as Q, createElementBlock as U, createCommentVNode as X, mergeProps as Y, resolveDirective as Z, withDirectives as _, unref as x, toDisplayString as ee, createTextVNode as le, createElementVNode as te, normalizeClass as oe, withCtx as ne, createSlots as se, createVNode as re, normalizeStyle as ae, createBlock as ie, Fragment as ue, renderList as de } from "vue";
2
+ import { useFilterList as ce } from "@solar-taro/core";
3
+ import { SunLazyRender as pe, SunVirtualScroll as fe } from "@solar-taro/ui-sun";
4
+ import C from "./index31.js";
5
+ import E from "./index6.js";
6
+ import ve from "./index7.js";
7
+ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le, f = te, P = oe, c = ne, j = se, I = re, z = ae, N = ie, T = ue, he = de, ge = ["label", "value", "placeholder", "required", "disabled"], be = {
8
+ key: 1,
9
+ name: "right-icon"
10
+ }, ke = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Ve = {
11
+ key: 1,
12
+ name: "right-icon"
13
+ }, $e = ["show", "title"], Se = ["value"], Ke = { class: "sun-selector-option-label" }, we = {
23
14
  key: 0,
24
15
  class: "van-button-container"
25
- }, Ne = /* @__PURE__ */ M({
16
+ }, qe = /* @__PURE__ */ H({
26
17
  __name: "index",
27
18
  props: {
28
19
  type: { default: "field" },
@@ -34,7 +25,7 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
34
25
  labelKey: { default: "fullName" },
35
26
  valueKey: { default: "id" },
36
27
  loading: { type: Boolean },
37
- height: { default: "70vh" },
28
+ height: { default: "64vh" },
38
29
  required: { type: Boolean },
39
30
  disabled: { type: Boolean },
40
31
  delimiter: { default: "," },
@@ -45,13 +36,13 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
45
36
  compareWith: { type: Function, default: (g, b) => g === b }
46
37
  },
47
38
  emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
48
- setup(g, { expose: b, emit: P }) {
49
- const t = g, r = P, k = D(!1), V = D(!1), { keyword: W, filteredList: $ } = se(
39
+ setup(g, { expose: b, emit: M }) {
40
+ const t = g, a = M, k = L(!1), V = L(!1), { keyword: W, filteredList: $ } = ce(
50
41
  () => t.options,
51
42
  (e, l) => e[t.labelKey].includes(l.value)
52
- ), K = h(() => {
43
+ ), S = h(() => {
53
44
  var e;
54
- if (p.value) {
45
+ if (v.value) {
55
46
  const l = C(t.modelValue) ? null : t.options.find(
56
47
  (n) => t.compareWith(n[t.valueKey], t.modelValue)
57
48
  );
@@ -63,23 +54,23 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
63
54
  return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
64
55
  }
65
56
  ).join(t.delimiter);
66
- }), S = h(() => !C(t.modelValue) && !t.required), p = h(() => t.mode === "single"), j = h(() => {
57
+ }), K = h(() => !C(t.modelValue) && !t.required), v = h(() => t.mode === "single"), A = h(() => {
67
58
  var n, o;
68
- let e, l = 48;
59
+ let e, l = 47;
69
60
  return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
70
61
  });
71
- function i(e) {
62
+ function u(e) {
72
63
  var n;
73
64
  const l = e[t.valueKey];
74
- return p.value ? C(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
65
+ return v.value ? C(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
75
66
  }
76
- function v() {
67
+ function m() {
77
68
  t.disabled || (k.value = !0, V.value || setTimeout(() => {
78
69
  V.value = !0;
79
70
  }, 300));
80
71
  }
81
- function f() {
82
- k.value = !1, r("close");
72
+ function y() {
73
+ k.value = !1, a("close");
83
74
  }
84
75
  function q() {
85
76
  var l;
@@ -88,155 +79,187 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
88
79
  (o) => t.compareWith(o[t.valueKey], n)
89
80
  )
90
81
  )) || [];
91
- r("confirm", e), f();
82
+ a("confirm", e), y();
92
83
  }
93
- function m(e) {
84
+ function D(e) {
94
85
  const l = e[t.valueKey];
95
86
  let n = t.modelValue;
96
- p.value ? (i(e) ? t.required || (r("unselect", e), n = null) : (r("select", e), n = l), f()) : i(e) ? (r("unselect", e), n = t.modelValue.filter(
87
+ v.value ? (u(e) ? t.required || (a("unselect", e), n = null) : (a("select", e), n = l), y()) : u(e) ? (a("unselect", e), n = t.modelValue.filter(
97
88
  (o) => !t.compareWith(o, l)
98
- )) : (r("select", e), n = (t.modelValue || []).concat(
89
+ )) : (a("select", e), n = (t.modelValue || []).concat(
99
90
  e[t.valueKey]
100
- )), r("update:modelValue", n);
91
+ )), a("update:modelValue", n);
101
92
  }
102
- function z() {
103
- r("clear", t.modelValue), r("update:modelValue", null);
93
+ function w() {
94
+ a("clear", t.modelValue), a("update:modelValue", null);
104
95
  }
105
96
  return b({
106
- present: v,
107
- clear: z
97
+ present: m,
98
+ clear: w
108
99
  }), (e, l) => {
109
- const n = de("readonly");
110
- return a(), s(T, null, [
111
- y(e.$slots, "default", {
112
- present: v,
113
- label: K.value
100
+ const n = me("readonly");
101
+ return s(), r(T, null, [
102
+ p(e.$slots, "default", {
103
+ present: m,
104
+ label: S.value
114
105
  }, () => [
115
- e.type === "field" ? E((a(), s("van-field", L({ key: 0 }, e.$attrs, {
106
+ e.type === "field" ? O((s(), r("van-field", F({ key: 0 }, e.$attrs, {
116
107
  class: "sun-selector",
117
108
  label: e.label,
118
- value: K.value,
109
+ value: S.value,
119
110
  placeholder: e.placeholder,
120
111
  required: e.required,
121
112
  disabled: e.disabled,
122
- onClickInput: l[1] || (l[1] = (o) => v())
113
+ onClickInput: l[1] || (l[1] = (o) => m())
123
114
  }), [
124
- S.value ? (a(), s("van-icon", {
115
+ K.value ? (s(), r("van-icon", {
125
116
  key: 0,
126
117
  slot: "right-icon",
127
118
  name: "clear",
128
- onTap: l[0] || (l[0] = (o) => z())
129
- }, null, 32)) : u("", !0)
130
- ], 16, ve)), [
119
+ onTap: l[0] || (l[0] = (o) => w())
120
+ }, null, 32)) : d("", !0),
121
+ e.$slots.end ? (s(), r("slot-view", be, [
122
+ p(e.$slots, "end")
123
+ ])) : d("", !0)
124
+ ], 16, ge)), [
131
125
  [n]
132
- ]) : e.type === "search" ? E((a(), s("van-search", L({ key: 1 }, e.$attrs, {
126
+ ]) : e.type === "search" ? O((s(), r("van-search", F({ key: 1 }, e.$attrs, {
133
127
  class: "sun-selector",
134
128
  label: e.label,
135
- value: K.value,
129
+ value: S.value,
136
130
  placeholder: e.placeholder,
137
- "use-right-icon-slot": S.value,
131
+ "use-right-icon-slot": K.value,
138
132
  shape: "round",
139
133
  clearable: !1,
140
134
  disabled: e.disabled,
141
- onClickInput: l[3] || (l[3] = (o) => v())
135
+ onClickInput: l[3] || (l[3] = (o) => m())
142
136
  }), [
143
- S.value ? (a(), s("van-icon", {
137
+ K.value ? (s(), r("van-icon", {
144
138
  key: 0,
145
139
  slot: "right-icon",
146
140
  name: "clear",
147
- onTap: l[2] || (l[2] = (o) => z())
148
- }, null, 32)) : u("", !0)
149
- ], 16, fe)), [
141
+ onTap: l[2] || (l[2] = (o) => w())
142
+ }, null, 32)) : d("", !0),
143
+ e.$slots.end ? (s(), r("slot-view", Ve, [
144
+ p(e.$slots, "end")
145
+ ])) : d("", !0)
146
+ ], 16, ke)), [
150
147
  [n]
151
- ]) : u("", !0)
148
+ ]) : d("", !0)
152
149
  ]),
153
- pe(d(re), { hook: "created" }, {
154
- default: N(() => [
155
- c("van-action-sheet", {
150
+ I(i(pe), { hook: "created" }, {
151
+ default: c(() => [
152
+ f("van-action-sheet", {
156
153
  show: k.value,
157
154
  title: e.placeholder,
158
155
  "close-on-click-overlay": !0,
159
- onClose: l[8] || (l[8] = (o) => f()),
160
- onCancel: l[9] || (l[9] = (o) => f())
156
+ onClose: l[8] || (l[8] = (o) => y()),
157
+ onCancel: l[9] || (l[9] = (o) => y())
161
158
  }, [
162
- e.searchable ? (a(), s("van-search", {
159
+ e.searchable ? (s(), r("van-search", {
163
160
  key: 0,
164
161
  shape: "round",
165
162
  "input-align": "center",
166
- value: d(W),
163
+ value: i(W),
167
164
  placeholder: "输入关键字搜索",
168
165
  onChange: l[4] || (l[4] = (o) => W.value = o.detail.trim())
169
- }, null, 40, he)) : u("", !0),
170
- e.virtual ? (a(), s(T, { key: 1 }, [
171
- V.value ? (a(), R(d(ie), {
166
+ }, null, 40, Se)) : d("", !0),
167
+ e.virtual ? (s(), r(T, { key: 1 }, [
168
+ V.value ? (s(), N(i(fe), {
172
169
  key: 0,
173
170
  class: "sun-selector-options",
174
171
  refresher: e.refresher,
175
172
  refreshing: e.refreshing,
176
- items: d($),
177
- "item-size": j.value.itemSize,
173
+ items: i($),
174
+ "item-size": A.value.itemSize,
178
175
  "item-key": e.valueKey,
179
- style: w({ height: e.height }),
180
- onRefresh: l[5] || (l[5] = (o) => r("refresh"))
176
+ style: z({ height: e.height }),
177
+ onRefresh: l[5] || (l[5] = (o) => a("refresh"))
181
178
  }, {
182
- default: N(({ item: o, index: B }) => [
183
- y(e.$slots, "option", {
184
- option: o,
185
- index: B,
186
- active: i(o),
187
- select: () => m(o)
188
- }, () => [
189
- c("van-cell", {
190
- class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
191
- clickable: !0,
192
- size: "large",
193
- onTap: (I) => m(o)
194
- }, [
195
- c("slot-view", ge, F(o[e.labelKey]), 1),
196
- i(o) ? (a(), s("van-icon", be)) : u("", !0)
197
- ], 42, ye)
198
- ])
179
+ default: c(({ item: o, index: B }) => [
180
+ I(i(E), {
181
+ lass: "sun-selector-option",
182
+ class: P({ "sun-selector-option-active": u(o) }),
183
+ clickable: !0,
184
+ onTap: (G) => D(o)
185
+ }, j({
186
+ default: c(() => [
187
+ p(e.$slots, "option", {
188
+ option: o,
189
+ index: B,
190
+ active: u(o)
191
+ }, () => [
192
+ ye(R(o[e.labelKey]), 1)
193
+ ])
194
+ ]),
195
+ _: 2
196
+ }, [
197
+ u(o) ? {
198
+ name: "end",
199
+ fn: c(() => [
200
+ l[10] || (l[10] = f("van-icon", {
201
+ class: "sun-selector-option-icon",
202
+ slot: "right-icon",
203
+ name: "success"
204
+ }, null, -1))
205
+ ]),
206
+ key: "0"
207
+ } : void 0
208
+ ]), 1032, ["class", "onTap"])
199
209
  ]),
200
210
  _: 3
201
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), s("view", {
211
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(), r("view", {
202
212
  key: 1,
203
- style: w({ height: e.height })
213
+ style: z({ height: e.height })
204
214
  }, null, 4))
205
- ], 64)) : (a(), R(d(ue), {
215
+ ], 64)) : (s(), N(i(ve), {
206
216
  key: 2,
207
217
  class: "sun-selector-options",
208
218
  refresher: e.refresher,
209
219
  refreshing: e.refreshing,
210
- data: d($),
220
+ data: i($),
211
221
  loading: e.loading,
212
222
  "empty-type": "search",
213
- style: w({ height: e.height }),
214
- onRefresh: l[6] || (l[6] = (o) => r("refresh"))
223
+ style: z({ height: e.height }),
224
+ onRefresh: l[6] || (l[6] = (o) => a("refresh"))
215
225
  }, {
216
- default: N(() => [
217
- (a(!0), s(T, null, ce(d($), (o, B) => y(e.$slots, "option", {
226
+ default: c(() => [
227
+ (s(!0), r(T, null, he(i($), (o, B) => (s(), N(i(E), {
218
228
  key: o[e.valueKey],
219
- option: o,
220
- index: B,
221
- active: i(o),
222
- select: () => m(o)
223
- }, () => [
224
- c("van-cell", {
225
- class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
226
- clickable: !0,
227
- size: "large",
228
- onTap: (I) => m(o)
229
- }, [
230
- c("slot-view", Ve, F(o[e.labelKey]), 1),
231
- i(o) ? (a(), s("van-icon", $e)) : u("", !0)
232
- ], 42, ke)
233
- ])), 128))
229
+ lass: "sun-selector-option",
230
+ class: P({ "sun-selector-option-active": u(o) }),
231
+ clickable: !0,
232
+ onTap: (G) => D(o)
233
+ }, j({
234
+ default: c(() => [
235
+ p(e.$slots, "option", {
236
+ option: o,
237
+ index: B,
238
+ active: u(o)
239
+ }, () => [
240
+ f("view", Ke, R(o[e.labelKey]), 1)
241
+ ])
242
+ ]),
243
+ _: 2
244
+ }, [
245
+ u(o) ? {
246
+ name: "end",
247
+ fn: c(() => [
248
+ l[11] || (l[11] = f("van-icon", {
249
+ class: "sun-selector-option-icon",
250
+ slot: "right-icon",
251
+ name: "success"
252
+ }, null, -1))
253
+ ]),
254
+ key: "0"
255
+ } : void 0
256
+ ]), 1032, ["class", "onTap"]))), 128))
234
257
  ]),
235
258
  _: 3
236
259
  }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
237
- y(e.$slots, "footer", { confirm: q }, () => [
238
- p.value ? u("", !0) : (a(), s("view", Ke, [
239
- c("van-button", {
260
+ p(e.$slots, "footer", { confirm: q }, () => [
261
+ v.value ? d("", !0) : (s(), r("view", we, [
262
+ f("van-button", {
240
263
  type: "primary",
241
264
  round: "true",
242
265
  block: "true",
@@ -244,7 +267,7 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
244
267
  }, "确定", 32)
245
268
  ]))
246
269
  ])
247
- ], 40, me)
270
+ ], 40, $e)
248
271
  ]),
249
272
  _: 3
250
273
  })
@@ -253,5 +276,5 @@ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O =
253
276
  }
254
277
  });
255
278
  export {
256
- Ne as default
279
+ qe as default
257
280
  };
package/index125.js CHANGED
@@ -1,8 +1,8 @@
1
- import p from "./index134.js";
2
- import a from "./index135.js";
3
- import l from "./index136.js";
4
- import s from "./index137.js";
5
- import m from "./index138.js";
1
+ import p from "./index135.js";
2
+ import a from "./index136.js";
3
+ import l from "./index137.js";
4
+ import s from "./index138.js";
5
+ import m from "./index139.js";
6
6
  function t(o) {
7
7
  var e = -1, h = o == null ? 0 : o.length;
8
8
  for (this.clear(); ++e < h; ) {
package/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index139.js";
1
+ import e from "./index134.js";
2
2
  function n(r, a) {
3
3
  var t = r.__data__;
4
4
  return e(a) ? t[typeof a == "string" ? "string" : "hash"] : t.map;
package/index134.js CHANGED
@@ -1,6 +1,6 @@
1
- import t from "./index141.js";
2
- function e() {
3
- this.__data__ = t ? t(null) : {}, this.size = 0;
1
+ function e(t) {
2
+ var o = typeof t;
3
+ return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
4
4
  }
5
5
  export {
6
6
  e as default
package/index135.js CHANGED
@@ -1,7 +1,7 @@
1
- function s(t) {
2
- var e = this.has(t) && delete this.__data__[t];
3
- return this.size -= e ? 1 : 0, e;
1
+ import t from "./index141.js";
2
+ function e() {
3
+ this.__data__ = t ? t(null) : {}, this.size = 0;
4
4
  }
5
5
  export {
6
- s as default
6
+ e as default
7
7
  };
package/index136.js CHANGED
@@ -1,13 +1,7 @@
1
- import e from "./index141.js";
2
- var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
3
- function h(a) {
4
- var r = this.__data__;
5
- if (e) {
6
- var t = r[a];
7
- return t === n ? void 0 : t;
8
- }
9
- return _.call(r, a) ? r[a] : void 0;
1
+ function s(t) {
2
+ var e = this.has(t) && delete this.__data__[t];
3
+ return this.size -= e ? 1 : 0, e;
10
4
  }
11
5
  export {
12
- h as default
6
+ s as default
13
7
  };
package/index137.js CHANGED
@@ -1,9 +1,13 @@
1
- import r from "./index141.js";
2
- var e = Object.prototype, o = e.hasOwnProperty;
3
- function p(t) {
4
- var a = this.__data__;
5
- return r ? a[t] !== void 0 : o.call(a, t);
1
+ import e from "./index141.js";
2
+ var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
3
+ function h(a) {
4
+ var r = this.__data__;
5
+ if (e) {
6
+ var t = r[a];
7
+ return t === n ? void 0 : t;
8
+ }
9
+ return _.call(r, a) ? r[a] : void 0;
6
10
  }
7
11
  export {
8
- p as default
12
+ h as default
9
13
  };
package/index138.js CHANGED
@@ -1,9 +1,9 @@
1
- import e from "./index141.js";
2
- var h = "__lodash_hash_undefined__";
3
- function s(t, a) {
4
- var _ = this.__data__;
5
- return this.size += this.has(t) ? 0 : 1, _[t] = e && a === void 0 ? h : a, this;
1
+ import r from "./index141.js";
2
+ var e = Object.prototype, o = e.hasOwnProperty;
3
+ function p(t) {
4
+ var a = this.__data__;
5
+ return r ? a[t] !== void 0 : o.call(a, t);
6
6
  }
7
7
  export {
8
- s as default
8
+ p as default
9
9
  };
package/index139.js CHANGED
@@ -1,7 +1,9 @@
1
- function e(t) {
2
- var o = typeof t;
3
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
1
+ import e from "./index141.js";
2
+ var h = "__lodash_hash_undefined__";
3
+ function s(t, a) {
4
+ var _ = this.__data__;
5
+ return this.size += this.has(t) ? 0 : 1, _[t] = e && a === void 0 ? h : a, this;
4
6
  }
5
7
  export {
6
- e as default
8
+ s as default
7
9
  };
package/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index19.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index11.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index24.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index12.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index26.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index12.js";
1
+ import f from "./index11.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index28.js CHANGED
@@ -1,6 +1,8 @@
1
- function n(l) {
2
- return l == null;
1
+ import o from "./index34.js";
2
+ var r = 1, n = 4;
3
+ function L(e) {
4
+ return o(e, r | n);
3
5
  }
4
6
  export {
5
- n as default
7
+ L as default
6
8
  };
package/index29.js CHANGED
@@ -1,8 +1,12 @@
1
- import o from "./index34.js";
2
- var r = 1, n = 4;
3
- function L(e) {
4
- return o(e, r | n);
1
+ import "rxjs";
2
+ import { ref as i } from "vue";
3
+ import { takeUntilDestroyed as p } from "./index32.js";
4
+ function c(t, o) {
5
+ const e = i(o);
6
+ return (typeof t == "function" ? t() : t).pipe(p()).subscribe((r) => {
7
+ e.value = r;
8
+ }), e;
5
9
  }
6
10
  export {
7
- L as default
11
+ c as useObservable
8
12
  };
package/index30.js CHANGED
@@ -1,12 +1,11 @@
1
- import "rxjs";
2
- import { ref as i } from "vue";
3
- import { takeUntilDestroyed as p } from "./index32.js";
4
- function c(t, o) {
5
- const e = i(o);
6
- return (typeof t == "function" ? t() : t).pipe(p()).subscribe((r) => {
7
- e.value = r;
1
+ import { Subject as o } from "rxjs";
2
+ import { onUnmounted as t } from "vue";
3
+ function m() {
4
+ const e = new o();
5
+ return t(() => {
6
+ e.next(), e.complete();
8
7
  }), e;
9
8
  }
10
9
  export {
11
- c as useObservable
10
+ m as useDestroyed
12
11
  };
package/index31.js CHANGED
@@ -1,11 +1,6 @@
1
- import { Subject as o } from "rxjs";
2
- import { onUnmounted as t } from "vue";
3
- function m() {
4
- const e = new o();
5
- return t(() => {
6
- e.next(), e.complete();
7
- }), e;
1
+ function n(l) {
2
+ return l == null;
8
3
  }
9
4
  export {
10
- m as useDestroyed
5
+ n as default
11
6
  };
package/index32.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { takeUntil as e } from "rxjs";
2
- import { useDestroyed as o } from "./index31.js";
2
+ import { useDestroyed as o } from "./index30.js";
3
3
  function i() {
4
4
  const t = o();
5
5
  return e(t);
package/index34.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import S from "./index69.js";
2
2
  import L from "./index67.js";
3
- import B from "./index64.js";
3
+ import B from "./index63.js";
4
4
  import I from "./index70.js";
5
5
  import O from "./index71.js";
6
6
  import _ from "./index72.js";
package/index4.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, ref as N, computed as r, mergeProps as I, createElementVNode as L, openBlock as P, createElementBlock as $, createCommentVNode as q } from "vue";
2
- import y from "./index29.js";
2
+ import y from "./index28.js";
3
3
  const D = I, A = L, v = P, h = $, T = q, j = ["show"], z = ["title", "value-key", "columns", "loading"], H = /* @__PURE__ */ E({
4
4
  inheritAttrs: !1,
5
5
  __name: "index",
package/index63.js CHANGED
@@ -1,14 +1,10 @@
1
- import m from "./index64.js";
2
- import t from "./index65.js";
3
- function v(a, f, i, u) {
4
- var d = !i;
5
- i || (i = {});
6
- for (var s = -1, e = f.length; ++s < e; ) {
7
- var n = f[s], r = void 0;
8
- r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
9
- }
10
- return i;
1
+ import t from "./index64.js";
2
+ import i from "./index35.js";
3
+ var s = Object.prototype, p = s.hasOwnProperty;
4
+ function l(r, a, o) {
5
+ var n = r[a];
6
+ (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
11
7
  }
12
8
  export {
13
- v as default
9
+ l as default
14
10
  };
package/index64.js CHANGED
@@ -1,10 +1,12 @@
1
- import t from "./index65.js";
2
- import i from "./index35.js";
3
- var s = Object.prototype, p = s.hasOwnProperty;
4
- function l(r, a, o) {
5
- var n = r[a];
6
- (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
1
+ import u from "./index68.js";
2
+ function i(r, e, t) {
3
+ e == "__proto__" && u ? u(r, e, {
4
+ configurable: !0,
5
+ enumerable: !0,
6
+ value: t,
7
+ writable: !0
8
+ }) : r[e] = t;
7
9
  }
8
10
  export {
9
- l as default
11
+ i as default
10
12
  };
package/index65.js CHANGED
@@ -1,12 +1,14 @@
1
- import u from "./index68.js";
2
- function i(r, e, t) {
3
- e == "__proto__" && u ? u(r, e, {
4
- configurable: !0,
5
- enumerable: !0,
6
- value: t,
7
- writable: !0
8
- }) : r[e] = t;
1
+ import m from "./index63.js";
2
+ import t from "./index64.js";
3
+ function v(a, f, i, u) {
4
+ var d = !i;
5
+ i || (i = {});
6
+ for (var s = -1, e = f.length; ++s < e; ) {
7
+ var n = f[s], r = void 0;
8
+ r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
9
+ }
10
+ return i;
9
11
  }
10
12
  export {
11
- i as default
13
+ v as default
12
14
  };
package/index70.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index63.js";
1
+ import o from "./index65.js";
2
2
  import e from "./index56.js";
3
3
  function m(r, t) {
4
4
  return r && o(t, e(t), r);
package/index71.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index63.js";
1
+ import t from "./index65.js";
2
2
  import o from "./index59.js";
3
3
  function i(n, r) {
4
4
  return n && t(r, o(r), n);
package/index74.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index63.js";
1
+ import m from "./index65.js";
2
2
  import r from "./index118.js";
3
3
  function f(o, t) {
4
4
  return m(o, r(o), t);
package/index75.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index63.js";
1
+ import m from "./index65.js";
2
2
  import r from "./index110.js";
3
3
  function e(o, t) {
4
4
  return m(o, r(o), t);
package/index9.js CHANGED
@@ -4,10 +4,10 @@ import { BluetoothLowEnergeDevice as me } from "@opper/wx";
4
4
  import { checkBluetooth as V, bluetoothService as w, vibrator as fe, overlay as r, withLoading as we } from "@solar-taro/core";
5
5
  import { getSystemInfo as he, openSetting as be } from "@tarojs/taro";
6
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 "./index30.js";
7
+ import { useObservable as j } from "./index29.js";
8
8
  import De from "./index7.js";
9
9
  import { dialog as Se } from "./index16.js";
10
- import { useDestroyed as F } from "./index31.js";
10
+ import { useDestroyed as F } from "./index30.js";
11
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({
12
12
  __name: "index",
13
13
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "1.3.5",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -1,10 +1,10 @@
1
1
  .sun-selector {
2
2
  &-option {
3
- &-active {
4
- --cell-background-color: rgba(var(--color-primary-rgb), 0.1);
3
+ &-active.sun-item {
4
+ --background: rgba(var(--color-primary-rgb), 0.1);
5
5
  }
6
6
 
7
- &-active &-label {
7
+ &-active {
8
8
  font-weight: bold;
9
9
  }
10
10
 
@@ -9,11 +9,11 @@ declare function __VLS_template(): {
9
9
  present: typeof present;
10
10
  label: any;
11
11
  }): any;
12
+ end?(_: {}): any;
12
13
  option?(_: {
13
14
  option: SelectorOption;
14
15
  index: number;
15
16
  active: boolean;
16
- select: () => void;
17
17
  }): any;
18
18
  footer?(_: {
19
19
  confirm: typeof confirm;