@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 +24 -0
- package/index10.js +2 -2
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +35 -5
- package/index25.js +3 -35
- package/index26.js +5 -3
- package/index4.js +1 -1
- package/index5.js +21 -21
- package/index7.js +21 -21
- package/package.json +1 -1
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 "./
|
|
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 "./
|
|
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
package/index18.js
CHANGED
package/index19.js
CHANGED
package/index20.js
CHANGED
package/index21.js
CHANGED
package/index22.js
CHANGED
package/index23.js
CHANGED
package/index24.js
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
35
|
+
f as camelize,
|
|
36
|
+
h as createReusableTemplate,
|
|
37
|
+
d as makeDestructurable
|
|
8
38
|
};
|
package/index25.js
CHANGED
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
36
|
-
h as createReusableTemplate,
|
|
37
|
-
d as makeDestructurable
|
|
5
|
+
n as default
|
|
38
6
|
};
|
package/index26.js
CHANGED
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 "./
|
|
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,
|
|
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-
|
|
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] = (
|
|
112
|
+
onClickInput: e[1] || (e[1] = (r) => _())
|
|
113
113
|
}), [
|
|
114
|
-
|
|
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] = (
|
|
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
|
-
|
|
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] = (
|
|
130
|
-
onCancel: e[7] || (e[7] = (
|
|
129
|
+
onClose: e[6] || (e[6] = (r) => g()),
|
|
130
|
+
onCancel: e[7] || (e[7] = (r) => g())
|
|
131
131
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
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] = (
|
|
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
|
-
|
|
138
|
+
l("view", se, d(y.value[0]), 1)
|
|
139
139
|
], 34),
|
|
140
140
|
(o(), i("van-icon", ue)),
|
|
141
|
-
|
|
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] = (
|
|
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
|
-
|
|
146
|
+
l("view", ve, d(y.value[1]), 1)
|
|
147
147
|
], 34)
|
|
148
148
|
]),
|
|
149
|
-
C(
|
|
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] = (
|
|
156
|
+
onInput: e[4] || (e[4] = (r) => I(r.detail))
|
|
157
157
|
}, null, 40, pe), [
|
|
158
158
|
[k(U)]
|
|
159
159
|
]),
|
|
160
|
-
|
|
161
|
-
|
|
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] = (
|
|
165
|
+
onTap: e[5] || (e[5] = (r) => N())
|
|
166
166
|
}, d(a.value[0] && a.value[1] ? "确定" : "继续"), 33)
|
|
167
167
|
])
|
|
168
|
-
], 40,
|
|
168
|
+
], 40, le)
|
|
169
169
|
], 64);
|
|
170
170
|
};
|
|
171
171
|
}
|
package/index7.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { onKeyboardHeightChange as
|
|
3
|
-
const n =
|
|
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
|
-
},
|
|
6
|
+
}, P = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "van-button-container van-button-group"
|
|
9
|
-
},
|
|
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(
|
|
20
|
-
const t = d, s =
|
|
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
|
|
25
|
-
|
|
26
|
-
}), (
|
|
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":
|
|
30
|
-
onClose: o[1] || (o[1] = (
|
|
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",
|
|
34
|
+
r("view", K, [
|
|
35
35
|
n(e.$slots, "extra")
|
|
36
36
|
]),
|
|
37
37
|
n(e.$slots, "default"),
|
|
38
|
-
e.showButtons ? (a(), i("view",
|
|
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] = (
|
|
46
|
-
},
|
|
45
|
+
onClick: o[0] || (o[0] = (u) => t("confirm"))
|
|
46
|
+
}, N(e.confirmText), 9, T)
|
|
47
47
|
])
|
|
48
|
-
])) :
|
|
49
|
-
], 16,
|
|
48
|
+
])) : S("", !0)
|
|
49
|
+
], 16, H));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
U as default
|
|
54
54
|
};
|