@solar-taro/ui-vant 3.5.0 → 3.5.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,13 @@
1
+ ## 3.5.0 (2026-07-29)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **ui-vant/selector:** replace sun-virtual-scroll with sun-virtual-list
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
1
11
  ## 3.4.3 (2026-07-24)
2
12
 
3
13
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
package/index15.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index3.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index16.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/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index18.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/index19.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/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index9.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { defineComponent as ee, mergeModels as A, ref as U, computed as m, useModel as le, renderSlot as oe, toDisplayString as te, createTextVNode as ne, Fragment as ae, openBlock as se, createElementBlock as re, createCommentVNode as ie, renderList as ue, unref as de, withCtx as ce, createBlock as pe, createElementVNode as fe, mergeProps as ve, resolveDirective as me, withDirectives as ye, createVNode as he, normalizeClass as be, normalizeStyle as ge, createSlots as ke } from "vue";
2
2
  import { SunTag as Ve, SunIcon as z, SunLazyRender as $e, SunVirtualList as we, SunItem as G, SunListPlaceholder as Se, SunList as Ke } from "@solar-taro/ui-sun";
3
- import { createReusableTemplate as Te } from "./index22.js";
3
+ import { nextTick as Te } from "@tarojs/taro";
4
+ import { createReusableTemplate as Be } from "./index22.js";
4
5
  import { isNil as H } from "lodash-es";
5
- import Be from "./index6.js";
6
- const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r = ce, y = pe, L = fe, J = ve, ze = me, Q = ye, h = he, X = be, N = ge, O = ke, Ce = ["label", "placeholder", "required", "disabled"], Le = {
6
+ import ze from "./index6.js";
7
+ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r = ce, y = pe, L = fe, J = ve, Ce = me, Q = ye, h = he, X = be, N = ge, O = ke, Le = ["label", "placeholder", "required", "disabled"], Ne = {
7
8
  key: 0,
8
9
  name: "input",
9
10
  class: "sun-selector-input"
10
- }, Ne = { name: "right-icon" }, De = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], We = { name: "right-icon" }, qe = ["value"], Me = { class: "sun-selector-option-label" }, je = /* @__PURE__ */ ee({
11
+ }, De = { name: "right-icon" }, We = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], qe = { name: "right-icon" }, Me = ["value"], Oe = { class: "sun-selector-option-label" }, Ue = /* @__PURE__ */ ee({
11
12
  __name: "index",
12
13
  props: /* @__PURE__ */ A({
13
14
  type: { default: "field" },
@@ -36,7 +37,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
36
37
  }),
37
38
  emits: /* @__PURE__ */ A(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
38
39
  setup(V, { expose: D, emit: Y }) {
39
- const [Z, R] = Te(), o = V, f = Y, $ = U(!1), k = U(!1), I = m(() => o.searcher || ((e, l) => e[o.labelKey].toLowerCase().includes(l))), w = le(V, "keyword"), i = m(() => o.options.filter(
40
+ const [Z, R] = Be(), o = V, f = Y, $ = U(!1), k = U(!1), I = m(() => o.searcher || ((e, l) => e[o.labelKey].toLowerCase().includes(l))), w = le(V, "keyword"), i = m(() => o.options.filter(
40
41
  (e) => I.value(e, w.value.toLowerCase())
41
42
  )), S = m(() => {
42
43
  var e;
@@ -63,9 +64,11 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
63
64
  return v.value ? H(o.modelValue) ? !1 : o.compareWith(o.modelValue, l) : ((n = o.modelValue) == null ? void 0 : n.some((t) => o.compareWith(t, l))) || !1;
64
65
  }
65
66
  function T() {
66
- o.disabled || ($.value = !0, k.value || setTimeout(() => {
67
- k.value = !0;
68
- }, 300));
67
+ o.disabled || ($.value = !0, k.value || Te(() => {
68
+ setTimeout(() => {
69
+ k.value = !0;
70
+ }, 301);
71
+ }));
69
72
  }
70
73
  function P() {
71
74
  $.value = !1, f("close");
@@ -96,7 +99,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
96
99
  clear: B,
97
100
  keyword: w
98
101
  }), (e, l) => {
99
- const n = ze("readonly");
102
+ const n = Ce("readonly");
100
103
  return s(), p(b, null, [
101
104
  c(e.$slots, "default", {
102
105
  present: T,
@@ -111,7 +114,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
111
114
  disabled: e.disabled,
112
115
  onClickInput: l[1] || (l[1] = (t) => T())
113
116
  }), [
114
- S.value.length ? (s(), p("slot-view", Le, [
117
+ S.value.length ? (s(), p("slot-view", Ne, [
115
118
  v.value ? (s(), p(b, { key: 0 }, [
116
119
  q(C(W.value), 1)
117
120
  ], 64)) : (s(!0), p(b, { key: 1 }, M(S.value, (t) => (s(), y(u(Ve), {
@@ -124,7 +127,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
124
127
  _: 2
125
128
  }, 1024))), 256))
126
129
  ])) : g("", !0),
127
- L("slot-view", Ne, [
130
+ L("slot-view", De, [
128
131
  K.value ? (s(), y(u(z), {
129
132
  key: 0,
130
133
  class: "sun-selector-clear-icon",
@@ -133,7 +136,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
133
136
  })) : g("", !0),
134
137
  c(e.$slots, "end")
135
138
  ])
136
- ], 16, Ce)), [
139
+ ], 16, Le)), [
137
140
  [n]
138
141
  ]) : e.type === "search" ? Q((s(), p("van-search", J({ key: 1 }, e.$attrs, {
139
142
  class: "sun-selector",
@@ -146,7 +149,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
146
149
  disabled: e.disabled,
147
150
  onClickInput: l[3] || (l[3] = (t) => T())
148
151
  }), [
149
- L("slot-view", We, [
152
+ L("slot-view", qe, [
150
153
  K.value ? (s(), y(u(z), {
151
154
  key: 0,
152
155
  class: "sun-selector-clear-icon",
@@ -155,13 +158,13 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
155
158
  })) : g("", !0),
156
159
  c(e.$slots, "end")
157
160
  ])
158
- ], 16, De)), [
161
+ ], 16, We)), [
159
162
  [n]
160
163
  ]) : g("", !0)
161
164
  ]),
162
165
  h(u($e), { hook: "created" }, {
163
166
  default: r(() => [
164
- h(u(Be), {
167
+ h(u(ze), {
165
168
  show: $.value,
166
169
  "onUpdate:show": l[9] || (l[9] = (t) => $.value = t),
167
170
  title: e.placeholder,
@@ -187,7 +190,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
187
190
  value: w.value,
188
191
  placeholder: "输入关键字搜索",
189
192
  onChange: l[5] || (l[5] = (t) => w.value = t.detail.trim())
190
- }, null, 40, qe)) : g("", !0)
193
+ }, null, 40, Me)) : g("", !0)
191
194
  ]),
192
195
  h(u(Z), null, {
193
196
  default: r(() => [
@@ -298,7 +301,7 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
298
301
  index: a,
299
302
  active: d(t)
300
303
  }, () => [
301
- L("view", Me, C(t[e.labelKey]), 1)
304
+ L("view", Oe, C(t[e.labelKey]), 1)
302
305
  ])
303
306
  ]),
304
307
  _: 2
@@ -348,5 +351,5 @@ const c = oe, C = te, q = ne, b = ae, s = se, p = re, g = ie, M = ue, u = de, r
348
351
  }
349
352
  });
350
353
  export {
351
- je as default
354
+ Ue as default
352
355
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",