@solar-taro/ui-vant 2.8.9 → 2.8.11

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.10 (2026-07-01)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ui-vant/selector:** add keyword model property
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
11
+ ## 2.8.9 (2026-06-30)
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.8.8 (2026-06-30)
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,17 +1,16 @@
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, D = 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, W = me, b = ye, q = he, Be = ["label", "placeholder", "required", "disabled"], Ke = {
1
+ import { defineComponent as x, mergeModels as F, ref as I, computed as v, useModel as ee, renderSlot as le, toDisplayString as te, createTextVNode as oe, Fragment as ae, openBlock as ne, createElementBlock as se, createCommentVNode as re, renderList as ie, unref as ue, withCtx as de, createBlock as pe, createElementVNode as ce, mergeProps as fe, resolveDirective as ve, withDirectives as me, normalizeClass as ye, createSlots as he, createVNode as be, normalizeStyle as ge } from "vue";
2
+ import { SunTag as ke, SunLazyRender as Ve, SunVirtualScroll as $e, SunItem as P } from "@solar-taro/ui-sun";
3
+ import { createReusableTemplate as we } from "./index25.js";
4
+ import Se from "./index7.js";
5
+ import Te from "./index6.js";
6
+ import j from "./index26.js";
7
+ const u = le, K = te, D = oe, b = ae, n = ne, r = se, m = re, A = ie, p = ue, s = de, C = pe, y = ce, U = fe, Be = ve, G = me, H = ye, W = he, g = be, q = ge, Ke = ["label", "placeholder", "required", "disabled"], Ce = {
9
8
  key: 0,
10
9
  name: "input",
11
10
  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__ */ _({
11
+ }, ze = { name: "right-icon" }, Ne = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Le = { name: "right-icon" }, De = ["value"], We = { class: "sun-selector-option-label" }, Ie = /* @__PURE__ */ x({
13
12
  __name: "index",
14
- props: {
13
+ props: /* @__PURE__ */ F({
15
14
  type: { default: "field" },
16
15
  mode: { default: "single" },
17
16
  label: {},
@@ -31,209 +30,214 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
31
30
  virtual: { type: [Boolean, Object] },
32
31
  refresher: { type: Boolean },
33
32
  refreshing: { type: Boolean },
34
- compareWith: { type: Function, default: (K, C) => K === C }
35
- },
36
- emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
37
- setup(K, { expose: C, emit: H }) {
38
- const [J, O] = $e(), o = K, p = H, g = I(!1), k = I(!1), Q = v(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), { keyword: z, filteredList: N } = be(() => o.options, Q.value), V = v(() => {
33
+ compareWith: { type: Function, default: (k, z) => k === z }
34
+ }, {
35
+ keyword: { default: "" },
36
+ keywordModifiers: {}
37
+ }),
38
+ emits: /* @__PURE__ */ F(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
39
+ setup(k, { expose: z, emit: J }) {
40
+ const [Q, M] = we(), o = k, d = J, V = I(!1), h = I(!1), X = v(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), $ = ee(k, "keyword"), N = v(() => o.options.filter(
41
+ (e) => X.value(e, $.value.toLowerCase())
42
+ )), w = v(() => {
39
43
  var e;
40
44
  if (c.value) {
41
45
  const t = o.options.find(
42
- (s) => o.compareWith(s[o.valueKey], o.modelValue)
46
+ (a) => o.compareWith(a[o.valueKey], o.modelValue)
43
47
  );
44
48
  return t ? [t] : [];
45
49
  }
46
50
  return ((e = o.modelValue) != null ? e : []).map(
47
- (t) => o.options.find((s) => o.compareWith(s[o.valueKey], t))
51
+ (t) => o.options.find((a) => o.compareWith(a[o.valueKey], t))
48
52
  ).filter(Boolean);
49
- }), L = 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;
53
+ }), L = v(() => w.value.map((e) => e[o.labelKey]).join(o.delimiter)), S = v(() => !Z(o.modelValue) && o.clearable), c = v(() => o.mode === "single"), Y = v(() => {
54
+ var a, l;
51
55
  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 };
56
+ return typeof o.virtual != "boolean" && (a = o.virtual) != null && a.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
53
57
  });
54
- function Y(e) {
55
- return P(e) ? !0 : c.value ? !1 : e.length < 1;
58
+ function Z(e) {
59
+ return j(e) ? !0 : c.value ? !1 : e.length < 1;
56
60
  }
57
- function u(e) {
58
- var s;
61
+ function i(e) {
62
+ var a;
59
63
  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;
64
+ return c.value ? j(o.modelValue) ? !1 : o.compareWith(o.modelValue, t) : ((a = o.modelValue) == null ? void 0 : a.some((l) => o.compareWith(l, t))) || !1;
61
65
  }
62
- function w() {
63
- o.disabled || (g.value = !0, k.value || setTimeout(() => {
64
- k.value = !0;
66
+ function T() {
67
+ o.disabled || (V.value = !0, h.value || setTimeout(() => {
68
+ h.value = !0;
65
69
  }, 300));
66
70
  }
67
- function R() {
68
- g.value = !1, p("close");
71
+ function O() {
72
+ V.value = !1, d("close");
69
73
  }
70
- function E() {
74
+ function R() {
71
75
  var t;
72
76
  const e = ((t = o.modelValue) == null ? void 0 : t.map(
73
- (s) => o.options.find(
74
- (l) => o.compareWith(l[o.valueKey], s)
77
+ (a) => o.options.find(
78
+ (l) => o.compareWith(l[o.valueKey], a)
75
79
  )
76
80
  )) || [];
77
- p("confirm", e), R();
81
+ d("confirm", e), O();
78
82
  }
79
- function F(e) {
83
+ function E(e) {
80
84
  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(
85
+ let a = o.modelValue;
86
+ c.value ? (i(e) ? o.required || (d("unselect", e), a = null) : (d("select", e), a = t), O()) : i(e) ? (d("unselect", e), a = o.modelValue.filter(
83
87
  (l) => !o.compareWith(l, t)
84
- )) : (p("select", e), s = (o.modelValue || []).concat(
88
+ )) : (d("select", e), a = (o.modelValue || []).concat(
85
89
  e[o.valueKey]
86
- )), p("update:modelValue", s);
90
+ )), d("update:modelValue", a);
87
91
  }
88
- function S() {
89
- p("clear", o.modelValue), p("update:modelValue", o.required && !c.value ? [] : null);
92
+ function B() {
93
+ d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
90
94
  }
91
- return C({
92
- present: w,
93
- clear: S,
94
- keyword: z
95
+ return z({
96
+ present: T,
97
+ clear: B,
98
+ keyword: $
95
99
  }), (e, t) => {
96
- const s = Te("readonly");
97
- return a(), i(h, null, [
98
- d(e.$slots, "default", {
99
- present: w,
100
+ const a = Be("readonly");
101
+ return n(), r(b, null, [
102
+ u(e.$slots, "default", {
103
+ present: T,
100
104
  label: L.value,
101
- selectedOptions: V.value
105
+ selectedOptions: w.value
102
106
  }, () => [
103
- e.type === "field" ? U((a(), i("van-field", A({ key: 0 }, e.$attrs, {
107
+ e.type === "field" ? G((n(), r("van-field", U({ key: 0 }, e.$attrs, {
104
108
  class: "sun-selector",
105
109
  label: e.label,
106
110
  placeholder: e.placeholder,
107
111
  required: e.required,
108
112
  disabled: e.disabled,
109
- onClickInput: t[1] || (t[1] = (l) => w())
113
+ onClickInput: t[1] || (t[1] = (l) => T())
110
114
  }), [
111
- V.value.length ? (a(), i("slot-view", Ke, [
112
- c.value ? (a(), i(h, { key: 0 }, [
113
- D(T(L.value), 1)
114
- ], 64)) : (a(!0), i(h, { key: 1 }, j(V.value, (l) => (a(), B(r(ge), {
115
+ w.value.length ? (n(), r("slot-view", Ce, [
116
+ c.value ? (n(), r(b, { key: 0 }, [
117
+ D(K(L.value), 1)
118
+ ], 64)) : (n(!0), r(b, { key: 1 }, A(w.value, (l) => (n(), C(p(ke), {
115
119
  color: "medium",
116
120
  type: "translucent"
117
121
  }, {
118
- default: n(() => [
119
- D(T(l[e.labelKey]), 1)
122
+ default: s(() => [
123
+ D(K(l[e.labelKey]), 1)
120
124
  ]),
121
125
  _: 2
122
126
  }, 1024))), 256))
123
127
  ])) : m("", !0),
124
- y("slot-view", Ce, [
125
- $.value ? (a(), i("van-icon", {
128
+ y("slot-view", ze, [
129
+ S.value ? (n(), r("van-icon", {
126
130
  key: 0,
127
131
  class: "sun-selector-clear-icon",
128
132
  name: "clear",
129
- onTap: t[0] || (t[0] = (l) => S())
133
+ onTap: t[0] || (t[0] = (l) => B())
130
134
  }, null, 32)) : m("", !0),
131
- d(e.$slots, "end")
135
+ u(e.$slots, "end")
132
136
  ])
133
- ], 16, Be)), [
134
- [s]
135
- ]) : e.type === "search" ? U((a(), i("van-search", A({ key: 1 }, e.$attrs, {
137
+ ], 16, Ke)), [
138
+ [a]
139
+ ]) : e.type === "search" ? G((n(), r("van-search", U({ key: 1 }, e.$attrs, {
136
140
  class: "sun-selector",
137
141
  label: e.label,
138
142
  value: L.value,
139
143
  placeholder: e.placeholder,
140
- "use-right-icon-slot": $.value,
144
+ "use-right-icon-slot": S.value,
141
145
  shape: "round",
142
146
  clearable: !1,
143
147
  disabled: e.disabled,
144
- onClickInput: t[3] || (t[3] = (l) => w())
148
+ onClickInput: t[3] || (t[3] = (l) => T())
145
149
  }), [
146
- y("slot-view", Ne, [
147
- $.value ? (a(), i("van-icon", {
150
+ y("slot-view", Le, [
151
+ S.value ? (n(), r("van-icon", {
148
152
  key: 0,
149
153
  class: "sun-selector-clear-icon",
150
154
  name: "clear",
151
- onTap: t[2] || (t[2] = (l) => S())
155
+ onTap: t[2] || (t[2] = (l) => B())
152
156
  }, null, 32)) : m("", !0),
153
- d(e.$slots, "end")
157
+ u(e.$slots, "end")
154
158
  ])
155
- ], 16, ze)), [
156
- [s]
159
+ ], 16, Ne)), [
160
+ [a]
157
161
  ]) : m("", !0)
158
162
  ]),
159
- b(r(ke), { hook: "created" }, {
160
- default: n(() => [
161
- b(r(we), {
162
- show: g.value,
163
- "onUpdate:show": t[9] || (t[9] = (l) => g.value = l),
163
+ g(p(Ve), { hook: "created" }, {
164
+ default: s(() => [
165
+ g(p(Se), {
166
+ show: V.value,
167
+ "onUpdate:show": t[9] || (t[9] = (l) => V.value = l),
164
168
  title: e.placeholder,
165
169
  "show-buttons": !c.value
166
170
  }, W({
167
- buttons: n(() => [
168
- d(e.$slots, "buttons", { confirm: E }, () => [
169
- c.value ? m("", !0) : (a(), i("van-button", {
171
+ buttons: s(() => [
172
+ u(e.$slots, "buttons", { confirm: R }, () => [
173
+ c.value ? m("", !0) : (n(), r("van-button", {
170
174
  key: 0,
171
175
  type: "primary",
172
176
  round: "true",
173
177
  block: "true",
174
- onTap: t[8] || (t[8] = (l) => E())
178
+ onTap: t[8] || (t[8] = (l) => R())
175
179
  }, "确定", 32))
176
180
  ])
177
181
  ]),
178
- default: n(() => [
179
- d(e.$slots, "filter", { rendered: k.value }, () => [
180
- e.searchable ? (a(), i("van-search", {
182
+ default: s(() => [
183
+ u(e.$slots, "filter", { rendered: h.value }, () => [
184
+ e.searchable ? (n(), r("van-search", {
181
185
  key: 0,
182
186
  shape: "round",
183
187
  "input-align": "center",
184
- value: r(z),
188
+ value: $.value,
185
189
  placeholder: "输入关键字搜索",
186
- onChange: t[5] || (t[5] = (l) => z.value = l.detail.trim())
187
- }, null, 40, Le)) : m("", !0)
190
+ onChange: t[5] || (t[5] = (l) => $.value = l.detail.trim())
191
+ }, null, 40, De)) : m("", !0)
188
192
  ]),
189
- b(r(J), null, {
190
- default: n(() => [
191
- e.virtual ? (a(), i(h, { key: 0 }, [
192
- k.value ? (a(), B(r(Ve), {
193
+ g(p(Q), null, {
194
+ default: s(() => [
195
+ e.virtual ? (n(), r(b, { key: 0 }, [
196
+ h.value ? (n(), C(p($e), {
193
197
  key: 0,
194
198
  class: "sun-selector-options",
195
199
  refresher: e.refresher,
196
200
  refreshing: e.refreshing,
197
- items: r(N),
198
- "item-size": X.value.itemSize,
201
+ items: N.value,
202
+ "item-size": Y.value.itemSize,
199
203
  "item-key": e.valueKey,
200
204
  style: q({ height: e.height }),
201
- onRefresh: t[6] || (t[6] = (l) => p("refresh"))
205
+ onRefresh: t[6] || (t[6] = (l) => d("refresh"))
202
206
  }, {
203
- default: n(({ item: l, index: f }) => [
204
- b(r(M), {
205
- class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
207
+ default: s(({ item: l, index: f }) => [
208
+ g(p(P), {
209
+ class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
206
210
  clickable: !0,
207
- onTap: (Z) => F(l)
211
+ onTap: (_) => E(l)
208
212
  }, W({
209
- start: n(() => [
210
- d(e.$slots, "option-start", {
213
+ start: s(() => [
214
+ u(e.$slots, "option-start", {
211
215
  option: l,
212
216
  index: f,
213
- active: u(l)
217
+ active: i(l)
214
218
  })
215
219
  ]),
216
- end: n(() => [
217
- d(e.$slots, "option-end", {
220
+ end: s(() => [
221
+ u(e.$slots, "option-end", {
218
222
  option: l,
219
223
  index: f,
220
- active: u(l)
224
+ active: i(l)
221
225
  })
222
226
  ]),
223
- default: n(() => [
224
- d(e.$slots, "option", {
227
+ default: s(() => [
228
+ u(e.$slots, "option", {
225
229
  option: l,
226
230
  index: f,
227
- active: u(l)
231
+ active: i(l)
228
232
  }, () => [
229
- D(T(l[e.labelKey]), 1)
233
+ D(K(l[e.labelKey]), 1)
230
234
  ])
231
235
  ]),
232
236
  _: 2
233
237
  }, [
234
- u(l) ? {
238
+ i(l) ? {
235
239
  name: "end",
236
- fn: n(() => [
240
+ fn: s(() => [
237
241
  t[10] || (t[10] = y("van-icon", {
238
242
  class: "sun-selector-option-icon",
239
243
  name: "success"
@@ -244,56 +248,56 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
244
248
  ]), 1032, ["class", "onTap"])
245
249
  ]),
246
250
  _: 3
247
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), i("view", {
251
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), r("view", {
248
252
  key: 1,
249
253
  style: q({ height: e.height })
250
254
  }, null, 4))
251
- ], 64)) : (a(), B(r(Se), {
255
+ ], 64)) : (n(), C(p(Te), {
252
256
  key: 1,
253
257
  class: "sun-selector-options",
254
258
  refresher: e.refresher,
255
259
  refreshing: e.refreshing,
256
- data: r(N),
260
+ data: N.value,
257
261
  loading: e.loading,
258
262
  "empty-type": "search",
259
263
  style: q({ height: e.height }),
260
- onRefresh: t[7] || (t[7] = (l) => p("refresh"))
264
+ onRefresh: t[7] || (t[7] = (l) => d("refresh"))
261
265
  }, {
262
- default: n(() => [
263
- (a(!0), i(h, null, j(r(N), (l, f) => (a(), B(r(M), {
266
+ default: s(() => [
267
+ (n(!0), r(b, null, A(N.value, (l, f) => (n(), C(p(P), {
264
268
  key: l[e.valueKey],
265
- class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
269
+ class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
266
270
  clickable: !0,
267
- onTap: (Z) => F(l)
271
+ onTap: (_) => E(l)
268
272
  }, W({
269
- start: n(() => [
270
- d(e.$slots, "option-start", {
273
+ start: s(() => [
274
+ u(e.$slots, "option-start", {
271
275
  option: l,
272
276
  index: f,
273
- active: u(l)
277
+ active: i(l)
274
278
  })
275
279
  ]),
276
- end: n(() => [
277
- d(e.$slots, "option-end", {
280
+ end: s(() => [
281
+ u(e.$slots, "option-end", {
278
282
  option: l,
279
283
  index: f,
280
- active: u(l)
284
+ active: i(l)
281
285
  })
282
286
  ]),
283
- default: n(() => [
284
- d(e.$slots, "option", {
287
+ default: s(() => [
288
+ u(e.$slots, "option", {
285
289
  option: l,
286
290
  index: f,
287
- active: u(l)
291
+ active: i(l)
288
292
  }, () => [
289
- y("view", De, T(l[e.labelKey]), 1)
293
+ y("view", We, K(l[e.labelKey]), 1)
290
294
  ])
291
295
  ]),
292
296
  _: 2
293
297
  }, [
294
- u(l) ? {
298
+ i(l) ? {
295
299
  name: "end",
296
- fn: n(() => [
300
+ fn: s(() => [
297
301
  t[11] || (t[11] = y("van-icon", {
298
302
  class: "sun-selector-option-icon",
299
303
  slot: "right-icon",
@@ -309,18 +313,21 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
309
313
  ]),
310
314
  _: 3
311
315
  }),
312
- d(e.$slots, "list", { ListTemplate: r(O) }, () => [
313
- b(r(O))
316
+ u(e.$slots, "list", {
317
+ rendered: h.value,
318
+ ListTemplate: p(M)
319
+ }, () => [
320
+ g(p(M))
314
321
  ])
315
322
  ]),
316
323
  _: 2
317
324
  }, [
318
- $.value ? {
325
+ S.value ? {
319
326
  name: "extra",
320
- fn: n(() => [
327
+ fn: s(() => [
321
328
  y("view", {
322
329
  class: "sun-selector-clear-btn",
323
- onTap: t[4] || (t[4] = (l) => S())
330
+ onTap: t[4] || (t[4] = (l) => B())
324
331
  }, "清除", 32)
325
332
  ]),
326
333
  key: "0"
@@ -334,5 +341,5 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
334
341
  }
335
342
  });
336
343
  export {
337
- Me as default
344
+ Ie as default
338
345
  };
package/index104.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import r from "./index89.js";
2
- import i from "./index120.js";
2
+ import i from "./index125.js";
3
3
  function f(t, a) {
4
4
  var e = i(t, a);
5
5
  return r(e) ? e : void 0;
package/index105.js CHANGED
@@ -1,8 +1,8 @@
1
- import p from "./index121.js";
2
- import a from "./index122.js";
3
- import i from "./index123.js";
4
- import h from "./index124.js";
5
- import s from "./index125.js";
1
+ import p from "./index120.js";
2
+ import a from "./index121.js";
3
+ import i from "./index122.js";
4
+ import h from "./index123.js";
5
+ import s from "./index124.js";
6
6
  function t(e) {
7
7
  var o = -1, l = e == null ? 0 : e.length;
8
8
  for (this.clear(); ++o < l; ) {
package/index120.js CHANGED
@@ -1,6 +1,6 @@
1
- function u(e, n) {
2
- return e == null ? void 0 : e[n];
1
+ function t() {
2
+ this.__data__ = [], this.size = 0;
3
3
  }
4
4
  export {
5
- u as default
5
+ t as default
6
6
  };
package/index121.js CHANGED
@@ -1,6 +1,12 @@
1
- function t() {
2
- this.__data__ = [], this.size = 0;
1
+ import s from "./index133.js";
2
+ var i = Array.prototype, l = i.splice;
3
+ function n(r) {
4
+ var e = this.__data__, a = s(e, r);
5
+ if (a < 0)
6
+ return !1;
7
+ var t = e.length - 1;
8
+ return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
3
9
  }
4
10
  export {
5
- t as default
11
+ n as default
6
12
  };
package/index122.js CHANGED
@@ -1,12 +1,8 @@
1
- import s from "./index133.js";
2
- var i = Array.prototype, l = i.splice;
3
- function n(r) {
4
- var e = this.__data__, a = s(e, r);
5
- if (a < 0)
6
- return !1;
7
- var t = e.length - 1;
8
- return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
1
+ import d from "./index133.js";
2
+ function i(e) {
3
+ var t = this.__data__, a = d(t, e);
4
+ return a < 0 ? void 0 : t[a][1];
9
5
  }
10
6
  export {
11
- n as default
7
+ i as default
12
8
  };
package/index123.js CHANGED
@@ -1,8 +1,7 @@
1
- import d from "./index133.js";
2
- function i(e) {
3
- var t = this.__data__, a = d(t, e);
4
- return a < 0 ? void 0 : t[a][1];
1
+ import a from "./index133.js";
2
+ function e(t) {
3
+ return a(this.__data__, t) > -1;
5
4
  }
6
5
  export {
7
- i as default
6
+ e as default
8
7
  };
package/index124.js CHANGED
@@ -1,7 +1,8 @@
1
- import a from "./index133.js";
2
- function e(t) {
3
- return a(this.__data__, t) > -1;
1
+ import e from "./index133.js";
2
+ function d(s, i) {
3
+ var t = this.__data__, a = e(t, s);
4
+ return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
4
5
  }
5
6
  export {
6
- e as default
7
+ d as default
7
8
  };
package/index125.js CHANGED
@@ -1,8 +1,6 @@
1
- import e from "./index133.js";
2
- function d(s, i) {
3
- var t = this.__data__, a = e(t, s);
4
- return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
1
+ function u(e, n) {
2
+ return e == null ? void 0 : e[n];
5
3
  }
6
4
  export {
7
- d as default
5
+ u as default
8
6
  };
package/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.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 "./index9.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 "./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 "./index8.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index28.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import S from "./index62.js";
2
2
  import L from "./index60.js";
3
- import B from "./index57.js";
3
+ import B from "./index56.js";
4
4
  import I from "./index63.js";
5
5
  import O from "./index64.js";
6
6
  import _ from "./index65.js";
package/index56.js CHANGED
@@ -1,14 +1,10 @@
1
- import m from "./index57.js";
2
- import t from "./index58.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 "./index57.js";
2
+ import i from "./index29.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/index57.js CHANGED
@@ -1,10 +1,12 @@
1
- import t from "./index58.js";
2
- import i from "./index29.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 "./index61.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/index58.js CHANGED
@@ -1,12 +1,14 @@
1
- import u from "./index61.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 "./index56.js";
2
+ import t from "./index57.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/index63.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index56.js";
1
+ import o from "./index58.js";
2
2
  import e from "./index50.js";
3
3
  function m(r, t) {
4
4
  return r && o(t, e(t), r);
package/index64.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index56.js";
1
+ import t from "./index58.js";
2
2
  import o from "./index53.js";
3
3
  function i(n, r) {
4
4
  return n && t(r, o(r), n);
package/index67.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index56.js";
1
+ import m from "./index58.js";
2
2
  import r from "./index111.js";
3
3
  function f(o, t) {
4
4
  return m(o, r(o), t);
package/index68.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index56.js";
1
+ import m from "./index58.js";
2
2
  import r from "./index103.js";
3
3
  function e(o, t) {
4
4
  return m(o, r(o), t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "2.8.9",
3
+ "version": "2.8.11",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -6,8 +6,11 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
6
6
  readonly onConfirm?: ((args_0: T[]) => any) | undefined;
7
7
  readonly "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
8
8
  readonly onRefresh?: (() => any) | undefined;
9
+ readonly "onUpdate:keyword"?: ((value: string) => any) | undefined;
9
10
  readonly onUnselect?: ((args_0: T) => any) | undefined;
10
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUnselect"> & {
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUpdate:keyword" | "onUnselect"> & ({
12
+ keyword?: string;
13
+ } & {
11
14
  type?: "field" | "search";
12
15
  mode?: "single" | "multiple";
13
16
  label?: string;
@@ -31,18 +34,18 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
31
34
  refresher?: boolean;
32
35
  refreshing?: boolean;
33
36
  compareWith?: (a: any, b: any) => boolean;
34
- } & Partial<{}>> & import('vue').PublicProps;
37
+ }) & Partial<{}>> & import('vue').PublicProps;
35
38
  expose(exposed: import('vue').ShallowUnwrapRef<{
36
39
  present: () => void;
37
40
  clear: () => void;
38
- keyword: import('vue').Ref<string, string>;
41
+ keyword: import('vue').ModelRef<string, string, string, string>;
39
42
  }>): void;
40
43
  attrs: any;
41
44
  slots: {
42
45
  default?(_: {
43
46
  present: () => void;
44
- label: any;
45
- selectedOptions: any;
47
+ label: string;
48
+ selectedOptions: T[];
46
49
  }): any;
47
50
  end?(_: {}): any;
48
51
  end?(_: {}): any;
@@ -80,13 +83,14 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
80
83
  active: boolean;
81
84
  }): any;
82
85
  list?(_: {
86
+ rendered: boolean;
83
87
  ListTemplate: import('@vueuse/core').ReuseTemplateComponent<Record<string, any>, Record<"default", undefined>>;
84
88
  }): any;
85
89
  buttons?(_: {
86
90
  confirm: () => void;
87
91
  }): any;
88
92
  };
89
- emit: ((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void);
93
+ emit: (((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void)) & ((evt: "update:keyword", value: string) => void);
90
94
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
91
95
  [key: string]: any;
92
96
  }> & {