@solar-taro/ui-vant 2.8.0 → 2.8.2

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,17 @@
1
+ ## 2.8.1 (2026-05-14)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ui-vant/selector:** enhance multi-select style with and update slot context
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
11
+ ## 2.8.0 (2026-05-13)
12
+
13
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
14
+
1
15
  ## 2.7.2 (2026-05-13)
2
16
 
3
17
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
package/index10.js CHANGED
@@ -1,11 +1,15 @@
1
- import { defineComponent as X, ref as F, computed as m, renderSlot as Y, openBlock as Z, createElementBlock as _, createCommentVNode as x, createElementVNode as ee, mergeProps as le, resolveDirective as te, withDirectives as oe, unref as ae, toDisplayString as se, createTextVNode as ne, normalizeClass as re, withCtx as ie, createSlots as ue, createVNode as de, normalizeStyle as pe, createBlock as ce, Fragment as fe, renderList as ve } from "vue";
2
- import { useFilterList as me } from "@solar-taro/core";
3
- import { SunLazyRender as he, SunVirtualScroll as ye, SunItem as O } from "@solar-taro/ui-sun";
4
- import { createReusableTemplate as be } from "./index24.js";
5
- import B from "./index25.js";
6
- import ge from "./index7.js";
7
- import Ve from "./index6.js";
8
- const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = se, $e = ne, j = re, s = ie, C = ue, y = de, z = pe, N = ce, L = fe, we = ve, Se = ["label", "value", "placeholder", "required", "disabled"], Ke = { name: "right-icon" }, Te = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Be = { name: "right-icon" }, Ce = ["value"], ze = { class: "sun-selector-option-label" }, Fe = /* @__PURE__ */ X({
1
+ import { defineComponent as _, ref as I, computed as v, renderSlot as x, toDisplayString as ee, createTextVNode as le, Fragment as te, openBlock as oe, createElementBlock as se, createCommentVNode as ae, renderList as ne, unref as re, withCtx as ie, createBlock as ue, createElementVNode as de, mergeProps as pe, resolveDirective as ce, withDirectives as fe, normalizeClass as ve, createSlots as me, createVNode as ye, normalizeStyle as he } from "vue";
2
+ import { useFilterList as be } from "@solar-taro/core";
3
+ import { SunTag as ge, SunLazyRender as ke, SunVirtualScroll as Ve, SunItem as M } from "@solar-taro/ui-sun";
4
+ import { createReusableTemplate as $e } from "./index25.js";
5
+ import we from "./index7.js";
6
+ import Se from "./index6.js";
7
+ import P from "./index26.js";
8
+ const d = x, T = ee, L = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n = ie, B = ue, y = de, A = pe, Te = ce, U = fe, G = ve, D = me, b = ye, W = he, Be = ["label", "placeholder", "required", "disabled"], Ke = {
9
+ key: 0,
10
+ name: "input",
11
+ class: "sun-selector-input"
12
+ }, Ce = { name: "right-icon" }, ze = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Ne = { name: "right-icon" }, Le = ["value"], De = { class: "sun-selector-option-label" }, Me = /* @__PURE__ */ _({
9
13
  __name: "index",
10
14
  props: {
11
15
  type: { default: "field" },
@@ -27,199 +31,209 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
27
31
  virtual: { type: [Boolean, Object] },
28
32
  refresher: { type: Boolean },
29
33
  refreshing: { type: Boolean },
30
- compareWith: { type: Function, default: (w, S) => w === S }
34
+ compareWith: { type: Function, default: (K, C) => K === C }
31
35
  },
32
36
  emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
33
- setup(w, { expose: S, emit: A }) {
34
- const [U, D] = be(), o = w, d = A, b = F(!1), g = F(!1), G = m(() => o.searcher || ((e, l) => e[o.labelKey].toLowerCase().includes(l))), { keyword: W, filteredList: K } = me(() => o.options, G.value), T = m(() => {
37
+ setup(K, { expose: C, emit: H }) {
38
+ const [J, q] = $e(), o = K, p = H, g = I(!1), k = I(!1), Q = v(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), { keyword: O, filteredList: z } = be(() => o.options, Q.value), V = v(() => {
35
39
  var e;
36
40
  if (c.value) {
37
- const l = B(o.modelValue) ? null : o.options.find(
38
- (a) => o.compareWith(a[o.valueKey], o.modelValue)
41
+ const t = o.options.find(
42
+ (s) => o.compareWith(s[o.valueKey], o.modelValue)
39
43
  );
40
- return (l == null ? void 0 : l[o.labelKey]) || "";
44
+ return t ? [t] : [];
41
45
  }
42
- return (e = o.modelValue) == null ? void 0 : e.map(
43
- (l) => {
44
- var a;
45
- return ((a = o.options.find((t) => o.compareWith(t[o.valueKey], l))) == null ? void 0 : a[o.labelKey]) || "";
46
- }
47
- ).join(o.delimiter);
48
- }), V = m(() => !J(o.modelValue) && o.clearable), c = m(() => o.mode === "single"), H = m(() => {
49
- var a, t;
50
- let e, l = 47;
51
- return typeof o.virtual != "boolean" && (a = o.virtual) != null && a.itemSize && (l = (t = o.virtual) == null ? void 0 : t.itemSize), { id: e, itemSize: l };
46
+ return ((e = o.modelValue) != null ? e : []).map(
47
+ (t) => o.options.find((s) => o.compareWith(s[o.valueKey], t))
48
+ ).filter(Boolean);
49
+ }), N = v(() => V.value.map((e) => e[o.labelKey]).join(o.delimiter)), $ = v(() => !Y(o.modelValue) && o.clearable), c = v(() => o.mode === "single"), X = v(() => {
50
+ var s, l;
51
+ let e, t = 47;
52
+ return typeof o.virtual != "boolean" && (s = o.virtual) != null && s.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
52
53
  });
53
- function J(e) {
54
- return B(e) ? !0 : c.value ? !1 : e.length < 1;
54
+ function Y(e) {
55
+ return P(e) ? !0 : c.value ? !1 : e.length < 1;
55
56
  }
56
- function i(e) {
57
- var a;
58
- const l = e[o.valueKey];
59
- return c.value ? B(o.modelValue) ? !1 : o.compareWith(o.modelValue, l) : ((a = o.modelValue) == null ? void 0 : a.some((t) => o.compareWith(t, l))) || !1;
57
+ function u(e) {
58
+ var s;
59
+ const t = e[o.valueKey];
60
+ return c.value ? P(o.modelValue) ? !1 : o.compareWith(o.modelValue, t) : ((s = o.modelValue) == null ? void 0 : s.some((l) => o.compareWith(l, t))) || !1;
60
61
  }
61
- function k() {
62
- o.disabled || (b.value = !0, g.value || setTimeout(() => {
63
- g.value = !0;
62
+ function w() {
63
+ o.disabled || (g.value = !0, k.value || setTimeout(() => {
64
+ k.value = !0;
64
65
  }, 300));
65
66
  }
66
- function q() {
67
- b.value = !1, d("close");
68
- }
69
67
  function R() {
70
- var l;
71
- const e = ((l = o.modelValue) == null ? void 0 : l.map(
72
- (a) => o.options.find(
73
- (t) => o.compareWith(t[o.valueKey], a)
68
+ g.value = !1, p("close");
69
+ }
70
+ function E() {
71
+ var t;
72
+ const e = ((t = o.modelValue) == null ? void 0 : t.map(
73
+ (s) => o.options.find(
74
+ (l) => o.compareWith(l[o.valueKey], s)
74
75
  )
75
76
  )) || [];
76
- d("confirm", e), q();
77
+ p("confirm", e), R();
77
78
  }
78
- function E(e) {
79
- const l = e[o.valueKey];
80
- let a = o.modelValue;
81
- c.value ? (i(e) ? o.required || (d("unselect", e), a = null) : (d("select", e), a = l), q()) : i(e) ? (d("unselect", e), a = o.modelValue.filter(
82
- (t) => !o.compareWith(t, l)
83
- )) : (d("select", e), a = (o.modelValue || []).concat(
79
+ function F(e) {
80
+ const t = e[o.valueKey];
81
+ let s = o.modelValue;
82
+ c.value ? (u(e) ? o.required || (p("unselect", e), s = null) : (p("select", e), s = t), R()) : u(e) ? (p("unselect", e), s = o.modelValue.filter(
83
+ (l) => !o.compareWith(l, t)
84
+ )) : (p("select", e), s = (o.modelValue || []).concat(
84
85
  e[o.valueKey]
85
- )), d("update:modelValue", a);
86
+ )), p("update:modelValue", s);
86
87
  }
87
- function $() {
88
- d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
88
+ function S() {
89
+ p("clear", o.modelValue), p("update:modelValue", o.required && !c.value ? [] : null);
89
90
  }
90
- return S({
91
- present: k,
92
- clear: $
93
- }), (e, l) => {
94
- const a = ke("readonly");
95
- return n(), p(L, null, [
96
- u(e.$slots, "default", {
97
- present: k,
98
- label: T.value
91
+ return C({
92
+ present: w,
93
+ clear: S
94
+ }), (e, t) => {
95
+ const s = Te("readonly");
96
+ return a(), i(h, null, [
97
+ d(e.$slots, "default", {
98
+ present: w,
99
+ label: N.value,
100
+ selectedOptions: V.value
99
101
  }, () => [
100
- e.type === "field" ? M((n(), p("van-field", I({ key: 0 }, e.$attrs, {
102
+ e.type === "field" ? U((a(), i("van-field", A({ key: 0 }, e.$attrs, {
101
103
  class: "sun-selector",
102
104
  label: e.label,
103
- value: T.value,
104
105
  placeholder: e.placeholder,
105
106
  required: e.required,
106
107
  disabled: e.disabled,
107
- onClickInput: l[1] || (l[1] = (t) => k())
108
+ onClickInput: t[1] || (t[1] = (l) => w())
108
109
  }), [
109
- v("slot-view", Ke, [
110
- V.value ? (n(), p("van-icon", {
110
+ V.value.length ? (a(), i("slot-view", Ke, [
111
+ c.value ? (a(), i(h, { key: 0 }, [
112
+ L(T(N.value), 1)
113
+ ], 64)) : (a(!0), i(h, { key: 1 }, j(V.value, (l) => (a(), B(r(ge), {
114
+ color: "medium",
115
+ type: "translucent"
116
+ }, {
117
+ default: n(() => [
118
+ L(T(l[e.labelKey]), 1)
119
+ ]),
120
+ _: 2
121
+ }, 1024))), 256))
122
+ ])) : m("", !0),
123
+ y("slot-view", Ce, [
124
+ $.value ? (a(), i("van-icon", {
111
125
  key: 0,
112
126
  class: "sun-selector-clear-icon",
113
127
  name: "clear",
114
- onTap: l[0] || (l[0] = (t) => $())
115
- }, null, 32)) : h("", !0),
116
- u(e.$slots, "end")
128
+ onTap: t[0] || (t[0] = (l) => S())
129
+ }, null, 32)) : m("", !0),
130
+ d(e.$slots, "end")
117
131
  ])
118
- ], 16, Se)), [
119
- [a]
120
- ]) : e.type === "search" ? M((n(), p("van-search", I({ key: 1 }, e.$attrs, {
132
+ ], 16, Be)), [
133
+ [s]
134
+ ]) : e.type === "search" ? U((a(), i("van-search", A({ key: 1 }, e.$attrs, {
121
135
  class: "sun-selector",
122
136
  label: e.label,
123
- value: T.value,
137
+ value: N.value,
124
138
  placeholder: e.placeholder,
125
- "use-right-icon-slot": V.value,
139
+ "use-right-icon-slot": $.value,
126
140
  shape: "round",
127
141
  clearable: !1,
128
142
  disabled: e.disabled,
129
- onClickInput: l[3] || (l[3] = (t) => k())
143
+ onClickInput: t[3] || (t[3] = (l) => w())
130
144
  }), [
131
- v("slot-view", Be, [
132
- V.value ? (n(), p("van-icon", {
145
+ y("slot-view", Ne, [
146
+ $.value ? (a(), i("van-icon", {
133
147
  key: 0,
134
148
  class: "sun-selector-clear-icon",
135
149
  name: "clear",
136
- onTap: l[2] || (l[2] = (t) => $())
137
- }, null, 32)) : h("", !0),
138
- u(e.$slots, "end")
150
+ onTap: t[2] || (t[2] = (l) => S())
151
+ }, null, 32)) : m("", !0),
152
+ d(e.$slots, "end")
139
153
  ])
140
- ], 16, Te)), [
141
- [a]
142
- ]) : h("", !0)
154
+ ], 16, ze)), [
155
+ [s]
156
+ ]) : m("", !0)
143
157
  ]),
144
- y(r(he), { hook: "created" }, {
145
- default: s(() => [
146
- y(r(ge), {
147
- show: b.value,
148
- "onUpdate:show": l[9] || (l[9] = (t) => b.value = t),
158
+ b(r(ke), { hook: "created" }, {
159
+ default: n(() => [
160
+ b(r(we), {
161
+ show: g.value,
162
+ "onUpdate:show": t[9] || (t[9] = (l) => g.value = l),
149
163
  title: e.placeholder,
150
164
  "show-buttons": !c.value
151
- }, C({
152
- buttons: s(() => [
153
- u(e.$slots, "buttons", { confirm: R }, () => [
154
- c.value ? h("", !0) : (n(), p("van-button", {
165
+ }, D({
166
+ buttons: n(() => [
167
+ d(e.$slots, "buttons", { confirm: E }, () => [
168
+ c.value ? m("", !0) : (a(), i("van-button", {
155
169
  key: 0,
156
170
  type: "primary",
157
171
  round: "true",
158
172
  block: "true",
159
- onTap: l[8] || (l[8] = (t) => R())
173
+ onTap: t[8] || (t[8] = (l) => E())
160
174
  }, "确定", 32))
161
175
  ])
162
176
  ]),
163
- default: s(() => [
164
- u(e.$slots, "filter", { rendered: g.value }, () => [
165
- e.searchable ? (n(), p("van-search", {
177
+ default: n(() => [
178
+ d(e.$slots, "filter", { rendered: k.value }, () => [
179
+ e.searchable ? (a(), i("van-search", {
166
180
  key: 0,
167
181
  shape: "round",
168
182
  "input-align": "center",
169
- value: r(W),
183
+ value: r(O),
170
184
  placeholder: "输入关键字搜索",
171
- onChange: l[5] || (l[5] = (t) => W.value = t.detail.trim())
172
- }, null, 40, Ce)) : h("", !0)
185
+ onChange: t[5] || (t[5] = (l) => O.value = l.detail.trim())
186
+ }, null, 40, Le)) : m("", !0)
173
187
  ]),
174
- y(r(U), null, {
175
- default: s(() => [
176
- e.virtual ? (n(), p(L, { key: 0 }, [
177
- g.value ? (n(), N(r(ye), {
188
+ b(r(J), null, {
189
+ default: n(() => [
190
+ e.virtual ? (a(), i(h, { key: 0 }, [
191
+ k.value ? (a(), B(r(Ve), {
178
192
  key: 0,
179
193
  class: "sun-selector-options",
180
194
  refresher: e.refresher,
181
195
  refreshing: e.refreshing,
182
- items: r(K),
183
- "item-size": H.value.itemSize,
196
+ items: r(z),
197
+ "item-size": X.value.itemSize,
184
198
  "item-key": e.valueKey,
185
- style: z({ height: e.height }),
186
- onRefresh: l[6] || (l[6] = (t) => d("refresh"))
199
+ style: W({ height: e.height }),
200
+ onRefresh: t[6] || (t[6] = (l) => p("refresh"))
187
201
  }, {
188
- default: s(({ item: t, index: f }) => [
189
- y(r(O), {
190
- class: j(["sun-selector-option", { "sun-selector-option-active": i(t) }]),
202
+ default: n(({ item: l, index: f }) => [
203
+ b(r(M), {
204
+ class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
191
205
  clickable: !0,
192
- onTap: (Q) => E(t)
193
- }, C({
194
- start: s(() => [
195
- u(e.$slots, "option-start", {
196
- option: t,
206
+ onTap: (Z) => F(l)
207
+ }, D({
208
+ start: n(() => [
209
+ d(e.$slots, "option-start", {
210
+ option: l,
197
211
  index: f,
198
- active: i(t)
212
+ active: u(l)
199
213
  })
200
214
  ]),
201
- end: s(() => [
202
- u(e.$slots, "option-end", {
203
- option: t,
215
+ end: n(() => [
216
+ d(e.$slots, "option-end", {
217
+ option: l,
204
218
  index: f,
205
- active: i(t)
219
+ active: u(l)
206
220
  })
207
221
  ]),
208
- default: s(() => [
209
- u(e.$slots, "option", {
210
- option: t,
222
+ default: n(() => [
223
+ d(e.$slots, "option", {
224
+ option: l,
211
225
  index: f,
212
- active: i(t)
226
+ active: u(l)
213
227
  }, () => [
214
- $e(P(t[e.labelKey]), 1)
228
+ L(T(l[e.labelKey]), 1)
215
229
  ])
216
230
  ]),
217
231
  _: 2
218
232
  }, [
219
- i(t) ? {
233
+ u(l) ? {
220
234
  name: "end",
221
- fn: s(() => [
222
- l[10] || (l[10] = v("van-icon", {
235
+ fn: n(() => [
236
+ t[10] || (t[10] = y("van-icon", {
223
237
  class: "sun-selector-option-icon",
224
238
  name: "success"
225
239
  }, null, -1))
@@ -229,57 +243,57 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
229
243
  ]), 1032, ["class", "onTap"])
230
244
  ]),
231
245
  _: 3
232
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), p("view", {
246
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), i("view", {
233
247
  key: 1,
234
- style: z({ height: e.height })
248
+ style: W({ height: e.height })
235
249
  }, null, 4))
236
- ], 64)) : (n(), N(r(Ve), {
250
+ ], 64)) : (a(), B(r(Se), {
237
251
  key: 1,
238
252
  class: "sun-selector-options",
239
253
  refresher: e.refresher,
240
254
  refreshing: e.refreshing,
241
- data: r(K),
255
+ data: r(z),
242
256
  loading: e.loading,
243
257
  "empty-type": "search",
244
- style: z({ height: e.height }),
245
- onRefresh: l[7] || (l[7] = (t) => d("refresh"))
258
+ style: W({ height: e.height }),
259
+ onRefresh: t[7] || (t[7] = (l) => p("refresh"))
246
260
  }, {
247
- default: s(() => [
248
- (n(!0), p(L, null, we(r(K), (t, f) => (n(), N(r(O), {
249
- key: t[e.valueKey],
250
- class: j(["sun-selector-option", { "sun-selector-option-active": i(t) }]),
261
+ default: n(() => [
262
+ (a(!0), i(h, null, j(r(z), (l, f) => (a(), B(r(M), {
263
+ key: l[e.valueKey],
264
+ class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
251
265
  clickable: !0,
252
- onTap: (Q) => E(t)
253
- }, C({
254
- start: s(() => [
255
- u(e.$slots, "option-start", {
256
- option: t,
266
+ onTap: (Z) => F(l)
267
+ }, D({
268
+ start: n(() => [
269
+ d(e.$slots, "option-start", {
270
+ option: l,
257
271
  index: f,
258
- active: i(t)
272
+ active: u(l)
259
273
  })
260
274
  ]),
261
- end: s(() => [
262
- u(e.$slots, "option-end", {
263
- option: t,
275
+ end: n(() => [
276
+ d(e.$slots, "option-end", {
277
+ option: l,
264
278
  index: f,
265
- active: i(t)
279
+ active: u(l)
266
280
  })
267
281
  ]),
268
- default: s(() => [
269
- u(e.$slots, "option", {
270
- option: t,
282
+ default: n(() => [
283
+ d(e.$slots, "option", {
284
+ option: l,
271
285
  index: f,
272
- active: i(t)
286
+ active: u(l)
273
287
  }, () => [
274
- v("view", ze, P(t[e.labelKey]), 1)
288
+ y("view", De, T(l[e.labelKey]), 1)
275
289
  ])
276
290
  ]),
277
291
  _: 2
278
292
  }, [
279
- i(t) ? {
293
+ u(l) ? {
280
294
  name: "end",
281
- fn: s(() => [
282
- l[11] || (l[11] = v("van-icon", {
295
+ fn: n(() => [
296
+ t[11] || (t[11] = y("van-icon", {
283
297
  class: "sun-selector-option-icon",
284
298
  slot: "right-icon",
285
299
  name: "success"
@@ -294,18 +308,18 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
294
308
  ]),
295
309
  _: 3
296
310
  }),
297
- u(e.$slots, "list", { ListTemplate: r(D) }, () => [
298
- y(r(D))
311
+ d(e.$slots, "list", { ListTemplate: r(q) }, () => [
312
+ b(r(q))
299
313
  ])
300
314
  ]),
301
315
  _: 2
302
316
  }, [
303
- V.value ? {
317
+ $.value ? {
304
318
  name: "extra",
305
- fn: s(() => [
306
- v("view", {
319
+ fn: n(() => [
320
+ y("view", {
307
321
  class: "sun-selector-clear-btn",
308
- onTap: l[4] || (l[4] = (t) => $())
322
+ onTap: t[4] || (t[4] = (l) => S())
309
323
  }, "清除", 32)
310
324
  ]),
311
325
  key: "0"
@@ -319,5 +333,5 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
319
333
  }
320
334
  });
321
335
  export {
322
- Fe as default
336
+ Me as default
323
337
  };
package/index118.js CHANGED
@@ -1,8 +1,8 @@
1
- import p from "./index127.js";
2
- import a from "./index128.js";
3
- import l from "./index129.js";
4
- import s from "./index130.js";
5
- import m from "./index131.js";
1
+ import p from "./index128.js";
2
+ import a from "./index129.js";
3
+ import l from "./index130.js";
4
+ import s from "./index131.js";
5
+ import m from "./index132.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/index119.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index132.js";
1
+ import e from "./index127.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/index127.js CHANGED
@@ -1,6 +1,6 @@
1
- import t from "./index134.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/index128.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 "./index134.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/index129.js CHANGED
@@ -1,13 +1,7 @@
1
- import e from "./index134.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/index130.js CHANGED
@@ -1,9 +1,13 @@
1
- import r from "./index134.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 "./index134.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/index131.js CHANGED
@@ -1,9 +1,9 @@
1
- import e from "./index134.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 "./index134.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/index132.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 "./index134.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/index17.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/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index19.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/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index10.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.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/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index24.js CHANGED
@@ -1,38 +1,8 @@
1
- import { makeDestructurable as d, camelize as f } from "./index27.js";
2
- import { shallowRef as p, defineComponent as i } from "vue";
3
- // @__NO_SIDE_EFFECTS__
4
- function h(r = {}) {
5
- const { inheritAttrs: t = !0 } = r, e = p(), u = i({ setup(a, { slots: o }) {
6
- return () => {
7
- e.value = o.default;
8
- };
9
- } }), s = i({
10
- inheritAttrs: t,
11
- props: r.props,
12
- setup(a, { attrs: o, slots: c }) {
13
- return () => {
14
- var l;
15
- if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
16
- const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
17
- ...r.props == null ? m(o) : a,
18
- $slots: c
19
- });
20
- return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
21
- };
22
- }
23
- });
24
- return d({
25
- define: u,
26
- reuse: s
27
- }, [u, s]);
28
- }
29
- function m(r) {
30
- const t = {};
31
- for (const e in r) t[f(e)] = r[e];
32
- return t;
1
+ import o from "./index28.js";
2
+ var r = 1, n = 4;
3
+ function L(e) {
4
+ return o(e, r | n);
33
5
  }
34
6
  export {
35
- f as camelize,
36
- h as createReusableTemplate,
37
- d as makeDestructurable
7
+ L as default
38
8
  };
package/index25.js CHANGED
@@ -1,6 +1,38 @@
1
- function n(l) {
2
- return l == null;
1
+ import { makeDestructurable as d, camelize as f } from "./index27.js";
2
+ import { shallowRef as p, defineComponent as i } from "vue";
3
+ // @__NO_SIDE_EFFECTS__
4
+ function h(r = {}) {
5
+ const { inheritAttrs: t = !0 } = r, e = p(), u = i({ setup(a, { slots: o }) {
6
+ return () => {
7
+ e.value = o.default;
8
+ };
9
+ } }), s = i({
10
+ inheritAttrs: t,
11
+ props: r.props,
12
+ setup(a, { attrs: o, slots: c }) {
13
+ return () => {
14
+ var l;
15
+ if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
16
+ const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
17
+ ...r.props == null ? m(o) : a,
18
+ $slots: c
19
+ });
20
+ return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
21
+ };
22
+ }
23
+ });
24
+ return d({
25
+ define: u,
26
+ reuse: s
27
+ }, [u, s]);
28
+ }
29
+ function m(r) {
30
+ const t = {};
31
+ for (const e in r) t[f(e)] = r[e];
32
+ return t;
3
33
  }
4
34
  export {
5
- n as default
35
+ f as camelize,
36
+ h as createReusableTemplate,
37
+ d as makeDestructurable
6
38
  };
package/index26.js CHANGED
@@ -1,8 +1,6 @@
1
- import o from "./index28.js";
2
- var r = 1, n = 4;
3
- function L(e) {
4
- return o(e, r | n);
1
+ function n(l) {
2
+ return l == null;
5
3
  }
6
4
  export {
7
- L as default
5
+ n as default
8
6
  };
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 "./index26.js";
2
+ import y from "./index24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -1,4 +1,9 @@
1
1
  .sun-selector {
2
+ &-input {
3
+ display: flex;
4
+ gap: 2px;
5
+ }
6
+
2
7
  &-clear {
3
8
  &-icon {
4
9
  padding: 4px;
@@ -40,7 +40,8 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
40
40
  slots: {
41
41
  default?(_: {
42
42
  present: () => void;
43
- label: string | NonNullable<T[NonNullable<keyof T extends undefined ? keyof T | undefined : keyof T extends infer T_1 ? T_1 extends keyof T ? T_1 extends undefined ? never : T_1 : never : never>]>;
43
+ label: any;
44
+ selectedOptions: any;
44
45
  }): any;
45
46
  end?(_: {}): any;
46
47
  end?(_: {}): any;