@solar-taro/ui-vant 2.8.0 → 2.8.1

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