@solar-taro/ui-vant 2.8.3 → 2.8.5

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,27 @@
1
+ ## 2.8.4 (2026-05-27)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **ui-vant/date-range-picker:** update icon color
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
11
+ ## 2.8.3 (2026-05-21)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **ui-vant/date-range-picker:** update min/max date properties and refactor model handling
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **ui-vant/selector:** fix bug
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - HyperLife1119
24
+
1
25
  ## 2.8.2 (2026-05-14)
2
26
 
3
27
  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,10 +1,10 @@
1
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
2
  import { useFilterList as be } from "@solar-taro/core";
3
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";
4
+ import { createReusableTemplate as $e } from "./index24.js";
5
5
  import we from "./index7.js";
6
6
  import Se from "./index6.js";
7
- import P from "./index26.js";
7
+ import P from "./index25.js";
8
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
9
  key: 0,
10
10
  name: "input",
package/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index7.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 "./index5.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index5.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 "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.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 "./index10.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index24.js CHANGED
@@ -1,8 +1,38 @@
1
- import o from "./index28.js";
2
- var r = 1, n = 4;
3
- function L(e) {
4
- return o(e, r | n);
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;
5
33
  }
6
34
  export {
7
- L as default
35
+ f as camelize,
36
+ h as createReusableTemplate,
37
+ d as makeDestructurable
8
38
  };
package/index25.js CHANGED
@@ -1,38 +1,6 @@
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
+ function n(l) {
2
+ return l == null;
33
3
  }
34
4
  export {
35
- f as camelize,
36
- h as createReusableTemplate,
37
- d as makeDestructurable
5
+ n as default
38
6
  };
package/index26.js CHANGED
@@ -1,6 +1,8 @@
1
- function n(l) {
2
- return l == null;
1
+ import o from "./index28.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/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 "./index24.js";
2
+ import y from "./index26.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/index5.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as S, mergeModels as D, useModel as H, computed as s, ref as b, renderSlot as z, openBlock as Y, createElementBlock as j, createCommentVNode as x, createElementVNode as A, mergeProps as G, resolveDirective as J, withDirectives as K, unref as L, toDisplayString as O, normalizeClass as Q, Fragment as R } from "vue";
2
2
  import { date as p } from "@solar-taro/core";
3
3
  import { vDatetimePicker as U } from "./index13.js";
4
- const W = z, o = Y, i = j, X = x, r = A, Z = G, ee = J, C = K, k = L, d = O, M = Q, te = R, ae = ["label", "value", "placeholder", "required"], ne = { name: "right-icon" }, re = ["show", "title"], le = { class: "sun-date-range-picker-input-group" }, oe = {
4
+ const W = z, o = Y, i = j, X = x, l = A, Z = G, ee = J, C = K, k = L, d = O, M = Q, te = R, ae = ["label", "value", "placeholder", "required"], ne = { name: "right-icon" }, le = ["show", "title"], re = { class: "sun-date-range-picker-input-group" }, oe = {
5
5
  key: 0,
6
6
  class: "sun-date-range-picker-input-value"
7
7
  }, ie = {
@@ -10,7 +10,7 @@ const W = z, o = Y, i = j, X = x, r = A, Z = G, ee = J, C = K, k = L, d = O, M =
10
10
  }, se = { class: "sun-date-range-picker-input-label" }, ue = {
11
11
  key: 0,
12
12
  name: "down",
13
- color: "var(--color-gray)"
13
+ color: "var(--color-medium)"
14
14
  }, de = {
15
15
  key: 0,
16
16
  class: "date-range-picker-input-value"
@@ -109,63 +109,63 @@ const we = /* @__PURE__ */ S({
109
109
  value: T.value,
110
110
  placeholder: y.value.join(h),
111
111
  required: t.required,
112
- onClickInput: e[1] || (e[1] = (l) => _())
112
+ onClickInput: e[1] || (e[1] = (r) => _())
113
113
  }), [
114
- r("slot-view", ne, [
114
+ l("slot-view", ne, [
115
115
  q.value ? (o(), i("van-icon", {
116
116
  key: 0,
117
117
  name: "clear",
118
- onTap: e[0] || (e[0] = (l) => E())
118
+ onTap: e[0] || (e[0] = (r) => E())
119
119
  }, null, 32)) : X("", !0)
120
120
  ])
121
121
  ], 16, ae)), [
122
122
  [P]
123
123
  ])
124
124
  ]),
125
- r("van-action-sheet", {
125
+ l("van-action-sheet", {
126
126
  show: f.value,
127
127
  title: B.value,
128
128
  "close-on-click-overlay": !0,
129
- onClose: e[6] || (e[6] = (l) => g()),
130
- onCancel: e[7] || (e[7] = (l) => g())
129
+ onClose: e[6] || (e[6] = (r) => g()),
130
+ onCancel: e[7] || (e[7] = (r) => g())
131
131
  }, [
132
- r("view", le, [
133
- r("view", {
132
+ l("view", re, [
133
+ l("view", {
134
134
  class: M(["sun-date-range-picker-input", { "sun-date-range-picker-input-active": u.value === 0 }]),
135
- onTap: e[2] || (e[2] = (l) => v(0))
135
+ onTap: e[2] || (e[2] = (r) => v(0))
136
136
  }, [
137
137
  a.value[0] ? (o(), i("view", oe, d(k(p)(a.value[0], c.value)), 1)) : (o(), i("view", ie, "请选择")),
138
- r("view", se, d(y.value[0]), 1)
138
+ l("view", se, d(y.value[0]), 1)
139
139
  ], 34),
140
140
  (o(), i("van-icon", ue)),
141
- r("view", {
141
+ l("view", {
142
142
  class: M(["sun-date-range-picker-input", { "sun-date-range-picker-input-active": u.value === 1 }]),
143
- onTap: e[3] || (e[3] = (l) => v(1))
143
+ onTap: e[3] || (e[3] = (r) => v(1))
144
144
  }, [
145
145
  a.value[1] ? (o(), i("view", de, d(k(p)(a.value[1], c.value)), 1)) : (o(), i("view", ce, "请选择")),
146
- r("view", ve, d(y.value[1]), 1)
146
+ l("view", ve, d(y.value[1]), 1)
147
147
  ], 34)
148
148
  ]),
149
- C(r("van-datetime-picker", {
149
+ C(l("van-datetime-picker", {
150
150
  id: t.id,
151
151
  type: t.type,
152
152
  "show-toolbar": !1,
153
153
  value: $.value,
154
154
  "min-date": t.min,
155
155
  "max-date": t.max,
156
- onInput: e[4] || (e[4] = (l) => I(l.detail))
156
+ onInput: e[4] || (e[4] = (r) => I(r.detail))
157
157
  }, null, 40, pe), [
158
158
  [k(U)]
159
159
  ]),
160
- r("view", me, [
161
- r("van-button", {
160
+ l("view", me, [
161
+ l("van-button", {
162
162
  type: "primary",
163
163
  round: "true",
164
164
  block: "true",
165
- onTap: e[5] || (e[5] = (l) => N())
165
+ onTap: e[5] || (e[5] = (r) => N())
166
166
  }, d(a.value[0] && a.value[1] ? "确定" : "继续"), 33)
167
167
  ])
168
- ], 40, re)
168
+ ], 40, le)
169
169
  ], 64);
170
170
  };
171
171
  }
package/index7.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as p, ref as u, computed as f, onUnmounted as h, renderSlot as b, createElementVNode as y, toDisplayString as g, openBlock as v, createElementBlock as k, createCommentVNode as w, mergeProps as _ } from "vue";
2
- import { onKeyboardHeightChange as B, offKeyboardHeightChange as C } from "@tarojs/taro";
3
- const n = b, r = y, $ = g, a = v, i = k, D = w, E = _, N = ["show", "title", "close-on-click-overlay"], S = {
1
+ import { defineComponent as f, ref as h, computed as b, watch as y, onUnmounted as g, renderSlot as v, createElementVNode as w, toDisplayString as k, openBlock as B, createElementBlock as _, createCommentVNode as C, mergeProps as $ } from "vue";
2
+ import { onKeyboardHeightChange as D, offKeyboardHeightChange as E } from "@tarojs/taro";
3
+ const n = v, r = w, N = k, a = B, i = _, S = C, V = $, H = ["show", "title", "close-on-click-overlay"], K = {
4
4
  class: "sun-modal-extra",
5
5
  style: { position: "absolute", top: "0", left: "16px", display: "flex", alignItems: "center", height: "48px" }
6
- }, V = {
6
+ }, P = {
7
7
  key: 0,
8
8
  class: "van-button-container van-button-group"
9
- }, H = ["disabled"], x = /* @__PURE__ */ p({
9
+ }, T = ["disabled"], U = /* @__PURE__ */ f({
10
10
  __name: "index",
11
11
  props: {
12
12
  show: { type: Boolean },
@@ -16,39 +16,39 @@ const n = b, r = y, $ = g, a = v, i = k, D = w, E = _, N = ["show", "title", "cl
16
16
  confirmDisabled: { type: Boolean }
17
17
  },
18
18
  emits: ["update:show", "close", "confirm"],
19
- setup(K, { emit: d }) {
20
- const t = d, s = u(0), c = f(() => s.value === 0);
19
+ setup(c, { emit: d }) {
20
+ const t = d, m = c, s = h(0), p = b(() => s.value === 0);
21
21
  function l(e) {
22
22
  s.value = e.height;
23
23
  }
24
- return B(l), h(() => {
25
- C(l);
26
- }), (e, o) => (a(), i("van-action-sheet", E(e.$attrs, {
24
+ return y(() => m.show, (e) => {
25
+ e || t("close");
26
+ }), D(l), g(() => {
27
+ E(l);
28
+ }), (e, o) => (a(), i("van-action-sheet", V(e.$attrs, {
27
29
  show: e.show,
28
30
  title: e.title,
29
- "close-on-click-overlay": c.value,
30
- onClose: o[1] || (o[1] = (m) => {
31
- t("update:show", !1), t("close");
32
- })
31
+ "close-on-click-overlay": p.value,
32
+ onClose: o[1] || (o[1] = (u) => t("update:show", !1))
33
33
  }), [
34
- r("view", S, [
34
+ r("view", K, [
35
35
  n(e.$slots, "extra")
36
36
  ]),
37
37
  n(e.$slots, "default"),
38
- e.showButtons ? (a(), i("view", V, [
38
+ e.showButtons ? (a(), i("view", P, [
39
39
  n(e.$slots, "buttons", {}, () => [
40
40
  r("van-button", {
41
41
  type: "primary",
42
42
  round: "true",
43
43
  block: "true",
44
44
  disabled: e.confirmDisabled,
45
- onClick: o[0] || (o[0] = (m) => t("confirm"))
46
- }, $(e.confirmText), 9, H)
45
+ onClick: o[0] || (o[0] = (u) => t("confirm"))
46
+ }, N(e.confirmText), 9, T)
47
47
  ])
48
- ])) : D("", !0)
49
- ], 16, N));
48
+ ])) : S("", !0)
49
+ ], 16, H));
50
50
  }
51
51
  });
52
52
  export {
53
- x as default
53
+ U as default
54
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",