@solar-taro/ui-vant 1.4.0 → 1.4.2
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 +20 -0
- package/index.scss +2 -0
- package/index100.js +5 -5
- package/index101.js +7 -5
- package/index102.js +17 -7
- package/index103.js +10 -17
- package/index104.js +5 -10
- package/index105.js +3 -4
- package/index106.js +4 -4
- package/index107.js +5 -4
- package/index108.js +6 -5
- package/index109.js +10 -7
- package/index11.js +121 -94
- package/index110.js +32 -10
- package/index111.js +1 -1
- package/index117.js +2 -2
- package/index118.js +2 -2
- package/index122.js +1 -1
- package/index124.js +1 -1
- package/index133.js +1 -1
- package/index140.js +1 -1
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index26.js +1 -1
- package/index27.js +5 -13
- package/index28.js +13 -5
- package/index29.js +1 -1
- package/index3.js +1 -1
- package/index32.js +62 -6
- package/index33.js +3 -793
- package/index34.js +8 -63
- package/index35.js +6 -3
- package/index36.js +4 -8
- package/index37.js +2 -7
- package/index38.js +4 -2
- package/index39.js +10 -2
- package/index4.js +1 -1
- package/index40.js +4 -5
- package/index41.js +4 -10
- package/index42.js +2 -4
- package/index43.js +4 -4
- package/index44.js +8 -3
- package/index45.js +4 -3
- package/index46.js +4 -7
- package/index47.js +6 -4
- package/index48.js +6 -5
- package/index49.js +9 -7
- package/index50.js +5 -6
- package/index51.js +7 -9
- package/index52.js +5 -5
- package/index53.js +9 -6
- package/index54.js +6 -4
- package/index55.js +17 -9
- package/index56.js +9 -4
- package/index57.js +6 -17
- package/index58.js +10 -9
- package/index59.js +3 -6
- package/index60.js +10 -11
- package/index61.js +7 -3
- package/index62.js +9 -31
- package/index63.js +5 -7
- package/index64.js +6 -9
- package/index65.js +792 -10
- package/index66.js +5 -5
- package/index67.js +9 -6
- package/index68.js +16 -9
- package/index69.js +5 -15
- package/index70.js +5 -5
- package/index71.js +8 -5
- package/index72.js +6 -8
- package/index73.js +5 -6
- package/index74.js +4 -4
- package/index75.js +6 -5
- package/index76.js +5 -5
- package/index77.js +26 -7
- package/index78.js +6 -26
- package/index79.js +39 -5
- package/index80.js +6 -39
- package/index81.js +5 -6
- package/index82.js +15 -6
- package/index83.js +7 -14
- package/index84.js +2 -8
- package/index85.js +3 -2
- package/index86.js +13 -3
- package/index87.js +4 -12
- package/index88.js +3 -5
- package/index89.js +4 -3
- package/index90.js +4 -4
- package/index91.js +3 -3
- package/index92.js +4 -4
- package/index93.js +4 -4
- package/index94.js +14 -3
- package/index95.js +13 -14
- package/index96.js +8 -13
- package/index97.js +3 -9
- package/index98.js +6 -3
- package/index99.js +5 -5
- package/package.json +1 -1
- package/selector/index.vue.d.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 1.4.1 (2025-10-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-vant/selector:** add option-start and option-end slots
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 1.4.0 (2025-10-11)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- **selector:** replace van-cell with sun-item
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- HyperLife1119
|
|
20
|
+
|
|
1
21
|
## 1.3.6 (2025-09-28)
|
|
2
22
|
|
|
3
23
|
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
package/index.scss
CHANGED
package/index100.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
1
|
+
var o = 9007199254740991, d = /^(?:0|[1-9]\d*)$/;
|
|
2
|
+
function f(r, s) {
|
|
3
|
+
var t = typeof r;
|
|
4
|
+
return s = s == null ? o : s, !!s && (t == "number" || t != "symbol" && d.test(r)) && r > -1 && r % 1 == 0 && r < s;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|
package/index101.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
function t(n) {
|
|
2
|
+
var r = [];
|
|
3
|
+
if (n != null)
|
|
4
|
+
for (var e in Object(n))
|
|
5
|
+
r.push(e);
|
|
6
|
+
return r;
|
|
5
7
|
}
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
t as default
|
|
8
10
|
};
|
package/index102.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import r from "./index103.js";
|
|
2
|
+
import m from "./index104.js";
|
|
3
|
+
import h from "./index105.js";
|
|
4
|
+
import l from "./index106.js";
|
|
5
|
+
import c from "./index107.js";
|
|
6
|
+
function e(t) {
|
|
7
|
+
var o = -1, a = t == null ? 0 : t.length;
|
|
8
|
+
for (this.clear(); ++o < a; ) {
|
|
9
|
+
var p = t[o];
|
|
10
|
+
this.set(p[0], p[1]);
|
|
11
|
+
}
|
|
7
12
|
}
|
|
13
|
+
e.prototype.clear = r;
|
|
14
|
+
e.prototype.delete = m;
|
|
15
|
+
e.prototype.get = h;
|
|
16
|
+
e.prototype.has = l;
|
|
17
|
+
e.prototype.set = c;
|
|
8
18
|
export {
|
|
9
|
-
|
|
19
|
+
e as default
|
|
10
20
|
};
|
package/index103.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.set(p[0], p[1]);
|
|
11
|
-
}
|
|
1
|
+
import a from "./index125.js";
|
|
2
|
+
import t from "./index112.js";
|
|
3
|
+
import e from "./index90.js";
|
|
4
|
+
function o() {
|
|
5
|
+
this.size = 0, this.__data__ = {
|
|
6
|
+
hash: new a(),
|
|
7
|
+
map: new (e || t)(),
|
|
8
|
+
string: new a()
|
|
9
|
+
};
|
|
12
10
|
}
|
|
13
|
-
e.prototype.clear = r;
|
|
14
|
-
e.prototype.delete = m;
|
|
15
|
-
e.prototype.get = h;
|
|
16
|
-
e.prototype.has = l;
|
|
17
|
-
e.prototype.set = c;
|
|
18
11
|
export {
|
|
19
|
-
|
|
12
|
+
o as default
|
|
20
13
|
};
|
package/index104.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import a from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
this.size = 0, this.__data__ = {
|
|
6
|
-
hash: new a(),
|
|
7
|
-
map: new (e || t)(),
|
|
8
|
-
string: new a()
|
|
9
|
-
};
|
|
1
|
+
import a from "./index126.js";
|
|
2
|
+
function i(e) {
|
|
3
|
+
var t = a(this, e).delete(e);
|
|
4
|
+
return this.size -= t ? 1 : 0, t;
|
|
10
5
|
}
|
|
11
6
|
export {
|
|
12
|
-
|
|
7
|
+
i as default
|
|
13
8
|
};
|
package/index105.js
CHANGED
package/index106.js
CHANGED
package/index107.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import s from "./index126.js";
|
|
2
|
+
function h(a, e) {
|
|
3
|
+
var t = s(this, a), i = t.size;
|
|
4
|
+
return t.set(a, e), this.size += t.size == i ? 0 : 1, this;
|
|
4
5
|
}
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
h as default
|
|
7
8
|
};
|
package/index108.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import e from "./index81.js";
|
|
2
|
+
import u from "./index37.js";
|
|
3
|
+
function l(r, s, t) {
|
|
4
|
+
var a = s(r);
|
|
5
|
+
return u(r) ? a : e(a, t(r));
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
l as default
|
|
8
9
|
};
|
package/index109.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import o from "./index81.js";
|
|
2
|
+
import m from "./index97.js";
|
|
3
|
+
import e from "./index118.js";
|
|
4
|
+
import a from "./index59.js";
|
|
5
|
+
var s = Object.getOwnPropertySymbols, f = s ? function(r) {
|
|
6
|
+
for (var t = []; r; )
|
|
7
|
+
o(t, e(r)), r = m(r);
|
|
8
|
+
return t;
|
|
9
|
+
} : a;
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
f as default
|
|
9
12
|
};
|
package/index11.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as H, ref as L, computed as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunLazyRender as
|
|
1
|
+
import { defineComponent as H, ref as L, computed as b, renderSlot as J, openBlock as Q, createElementBlock as U, createCommentVNode as X, mergeProps as Y, resolveDirective as Z, withDirectives as _, unref as x, toDisplayString as ee, createTextVNode as le, createElementVNode as oe, normalizeClass as te, withCtx as ne, createSlots as se, createVNode as ae, normalizeStyle as re, createBlock as ie, Fragment as ue, renderList as de } from "vue";
|
|
2
|
+
import { useFilterList as pe } from "@solar-taro/core";
|
|
3
|
+
import { SunLazyRender as ce, SunVirtualScroll as fe } from "@solar-taro/ui-sun";
|
|
4
4
|
import C from "./index31.js";
|
|
5
5
|
import E from "./index6.js";
|
|
6
6
|
import ve from "./index7.js";
|
|
7
|
-
const
|
|
7
|
+
const u = J, s = Q, r = U, f = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le, v = oe, P = te, d = ne, j = se, I = ae, z = re, N = ie, T = ue, he = de, ge = ["label", "value", "placeholder", "required", "disabled"], be = {
|
|
8
8
|
key: 1,
|
|
9
9
|
name: "right-icon"
|
|
10
10
|
}, ke = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Ve = {
|
|
@@ -33,16 +33,16 @@ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le,
|
|
|
33
33
|
virtual: { type: [Boolean, Object] },
|
|
34
34
|
refresher: { type: Boolean },
|
|
35
35
|
refreshing: { type: Boolean },
|
|
36
|
-
compareWith: { type: Function, default: (
|
|
36
|
+
compareWith: { type: Function, default: (k, V) => k === V }
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
39
|
-
setup(
|
|
40
|
-
const t =
|
|
39
|
+
setup(k, { expose: V, emit: M }) {
|
|
40
|
+
const t = k, i = M, $ = L(!1), m = L(!1), { keyword: W, filteredList: S } = pe(
|
|
41
41
|
() => t.options,
|
|
42
42
|
(e, l) => e[t.labelKey].includes(l.value)
|
|
43
|
-
),
|
|
43
|
+
), K = b(() => {
|
|
44
44
|
var e;
|
|
45
|
-
if (
|
|
45
|
+
if (y.value) {
|
|
46
46
|
const l = C(t.modelValue) ? null : t.options.find(
|
|
47
47
|
(n) => t.compareWith(n[t.valueKey], t.modelValue)
|
|
48
48
|
);
|
|
@@ -54,23 +54,23 @@ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le,
|
|
|
54
54
|
return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
|
|
55
55
|
}
|
|
56
56
|
).join(t.delimiter);
|
|
57
|
-
}),
|
|
57
|
+
}), w = b(() => !C(t.modelValue) && !t.required), y = b(() => t.mode === "single"), A = b(() => {
|
|
58
58
|
var n, o;
|
|
59
59
|
let e, l = 47;
|
|
60
60
|
return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
|
|
61
61
|
});
|
|
62
|
-
function
|
|
62
|
+
function a(e) {
|
|
63
63
|
var n;
|
|
64
64
|
const l = e[t.valueKey];
|
|
65
|
-
return
|
|
65
|
+
return y.value ? C(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
t.disabled || (
|
|
69
|
-
|
|
67
|
+
function h() {
|
|
68
|
+
t.disabled || ($.value = !0, m.value || setTimeout(() => {
|
|
69
|
+
m.value = !0;
|
|
70
70
|
}, 300));
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
72
|
+
function g() {
|
|
73
|
+
$.value = !1, i("close");
|
|
74
74
|
}
|
|
75
75
|
function q() {
|
|
76
76
|
var l;
|
|
@@ -79,127 +79,141 @@ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le,
|
|
|
79
79
|
(o) => t.compareWith(o[t.valueKey], n)
|
|
80
80
|
)
|
|
81
81
|
)) || [];
|
|
82
|
-
|
|
82
|
+
i("confirm", e), g();
|
|
83
83
|
}
|
|
84
84
|
function D(e) {
|
|
85
85
|
const l = e[t.valueKey];
|
|
86
86
|
let n = t.modelValue;
|
|
87
|
-
|
|
87
|
+
y.value ? (a(e) ? t.required || (i("unselect", e), n = null) : (i("select", e), n = l), g()) : a(e) ? (i("unselect", e), n = t.modelValue.filter(
|
|
88
88
|
(o) => !t.compareWith(o, l)
|
|
89
|
-
)) : (
|
|
89
|
+
)) : (i("select", e), n = (t.modelValue || []).concat(
|
|
90
90
|
e[t.valueKey]
|
|
91
|
-
)),
|
|
91
|
+
)), i("update:modelValue", n);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
93
|
+
function B() {
|
|
94
|
+
i("clear", t.modelValue), i("update:modelValue", null);
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
present:
|
|
98
|
-
clear:
|
|
96
|
+
return V({
|
|
97
|
+
present: h,
|
|
98
|
+
clear: B
|
|
99
99
|
}), (e, l) => {
|
|
100
100
|
const n = me("readonly");
|
|
101
101
|
return s(), r(T, null, [
|
|
102
|
-
|
|
103
|
-
present:
|
|
104
|
-
label:
|
|
102
|
+
u(e.$slots, "default", {
|
|
103
|
+
present: h,
|
|
104
|
+
label: K.value
|
|
105
105
|
}, () => [
|
|
106
106
|
e.type === "field" ? O((s(), r("van-field", F({ key: 0 }, e.$attrs, {
|
|
107
107
|
class: "sun-selector",
|
|
108
108
|
label: e.label,
|
|
109
|
-
value:
|
|
109
|
+
value: K.value,
|
|
110
110
|
placeholder: e.placeholder,
|
|
111
111
|
required: e.required,
|
|
112
112
|
disabled: e.disabled,
|
|
113
|
-
onClickInput: l[1] || (l[1] = (o) =>
|
|
113
|
+
onClickInput: l[1] || (l[1] = (o) => h())
|
|
114
114
|
}), [
|
|
115
|
-
|
|
115
|
+
w.value ? (s(), r("van-icon", {
|
|
116
116
|
key: 0,
|
|
117
117
|
slot: "right-icon",
|
|
118
118
|
name: "clear",
|
|
119
|
-
onTap: l[0] || (l[0] = (o) =>
|
|
120
|
-
}, null, 32)) :
|
|
119
|
+
onTap: l[0] || (l[0] = (o) => B())
|
|
120
|
+
}, null, 32)) : f("", !0),
|
|
121
121
|
e.$slots.end ? (s(), r("slot-view", be, [
|
|
122
|
-
|
|
123
|
-
])) :
|
|
122
|
+
u(e.$slots, "end")
|
|
123
|
+
])) : f("", !0)
|
|
124
124
|
], 16, ge)), [
|
|
125
125
|
[n]
|
|
126
126
|
]) : e.type === "search" ? O((s(), r("van-search", F({ key: 1 }, e.$attrs, {
|
|
127
127
|
class: "sun-selector",
|
|
128
128
|
label: e.label,
|
|
129
|
-
value:
|
|
129
|
+
value: K.value,
|
|
130
130
|
placeholder: e.placeholder,
|
|
131
|
-
"use-right-icon-slot":
|
|
131
|
+
"use-right-icon-slot": w.value,
|
|
132
132
|
shape: "round",
|
|
133
133
|
clearable: !1,
|
|
134
134
|
disabled: e.disabled,
|
|
135
|
-
onClickInput: l[3] || (l[3] = (o) =>
|
|
135
|
+
onClickInput: l[3] || (l[3] = (o) => h())
|
|
136
136
|
}), [
|
|
137
|
-
|
|
137
|
+
w.value ? (s(), r("van-icon", {
|
|
138
138
|
key: 0,
|
|
139
139
|
slot: "right-icon",
|
|
140
140
|
name: "clear",
|
|
141
|
-
onTap: l[2] || (l[2] = (o) =>
|
|
142
|
-
}, null, 32)) :
|
|
141
|
+
onTap: l[2] || (l[2] = (o) => B())
|
|
142
|
+
}, null, 32)) : f("", !0),
|
|
143
143
|
e.$slots.end ? (s(), r("slot-view", Ve, [
|
|
144
|
-
|
|
145
|
-
])) :
|
|
144
|
+
u(e.$slots, "end")
|
|
145
|
+
])) : f("", !0)
|
|
146
146
|
], 16, ke)), [
|
|
147
147
|
[n]
|
|
148
|
-
]) :
|
|
148
|
+
]) : f("", !0)
|
|
149
149
|
]),
|
|
150
|
-
I(
|
|
151
|
-
default:
|
|
152
|
-
|
|
153
|
-
show:
|
|
150
|
+
I(p(ce), { hook: "created" }, {
|
|
151
|
+
default: d(() => [
|
|
152
|
+
v("van-action-sheet", {
|
|
153
|
+
show: $.value,
|
|
154
154
|
title: e.placeholder,
|
|
155
155
|
"close-on-click-overlay": !0,
|
|
156
|
-
onClose: l[8] || (l[8] = (o) =>
|
|
157
|
-
onCancel: l[9] || (l[9] = (o) =>
|
|
156
|
+
onClose: l[8] || (l[8] = (o) => g()),
|
|
157
|
+
onCancel: l[9] || (l[9] = (o) => g())
|
|
158
158
|
}, [
|
|
159
|
-
e.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
u(e.$slots, "filter", { rendered: m.value }, () => [
|
|
160
|
+
e.searchable ? (s(), r("van-search", {
|
|
161
|
+
key: 0,
|
|
162
|
+
shape: "round",
|
|
163
|
+
"input-align": "center",
|
|
164
|
+
value: p(W),
|
|
165
|
+
placeholder: "输入关键字搜索",
|
|
166
|
+
onChange: l[4] || (l[4] = (o) => W.value = o.detail.trim())
|
|
167
|
+
}, null, 40, Se)) : f("", !0)
|
|
168
|
+
]),
|
|
169
|
+
e.virtual ? (s(), r(T, { key: 0 }, [
|
|
170
|
+
m.value ? (s(), N(p(fe), {
|
|
169
171
|
key: 0,
|
|
170
172
|
class: "sun-selector-options",
|
|
171
173
|
refresher: e.refresher,
|
|
172
174
|
refreshing: e.refreshing,
|
|
173
|
-
items:
|
|
175
|
+
items: p(S),
|
|
174
176
|
"item-size": A.value.itemSize,
|
|
175
177
|
"item-key": e.valueKey,
|
|
176
178
|
style: z({ height: e.height }),
|
|
177
|
-
onRefresh: l[5] || (l[5] = (o) =>
|
|
179
|
+
onRefresh: l[5] || (l[5] = (o) => i("refresh"))
|
|
178
180
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
I(
|
|
181
|
-
|
|
182
|
-
class: P({ "sun-selector-option-active": u(o) }),
|
|
181
|
+
default: d(({ item: o, index: c }) => [
|
|
182
|
+
I(p(E), {
|
|
183
|
+
class: P(["sun-selector-option", { "sun-selector-option-active": a(o) }]),
|
|
183
184
|
clickable: !0,
|
|
184
185
|
onTap: (G) => D(o)
|
|
185
186
|
}, j({
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
start: d(() => [
|
|
188
|
+
u(e.$slots, "option-start", {
|
|
189
|
+
option: o,
|
|
190
|
+
index: c,
|
|
191
|
+
active: a(o)
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
end: d(() => [
|
|
195
|
+
u(e.$slots, "option-end", {
|
|
196
|
+
option: o,
|
|
197
|
+
index: c,
|
|
198
|
+
active: a(o)
|
|
199
|
+
})
|
|
200
|
+
]),
|
|
201
|
+
default: d(() => [
|
|
202
|
+
u(e.$slots, "option", {
|
|
188
203
|
option: o,
|
|
189
|
-
index:
|
|
190
|
-
active:
|
|
204
|
+
index: c,
|
|
205
|
+
active: a(o)
|
|
191
206
|
}, () => [
|
|
192
207
|
ye(R(o[e.labelKey]), 1)
|
|
193
208
|
])
|
|
194
209
|
]),
|
|
195
210
|
_: 2
|
|
196
211
|
}, [
|
|
197
|
-
|
|
212
|
+
a(o) ? {
|
|
198
213
|
name: "end",
|
|
199
|
-
fn:
|
|
200
|
-
l[10] || (l[10] =
|
|
214
|
+
fn: d(() => [
|
|
215
|
+
l[10] || (l[10] = v("van-icon", {
|
|
201
216
|
class: "sun-selector-option-icon",
|
|
202
|
-
slot: "right-icon",
|
|
203
217
|
name: "success"
|
|
204
218
|
}, null, -1))
|
|
205
219
|
]),
|
|
@@ -212,40 +226,53 @@ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le,
|
|
|
212
226
|
key: 1,
|
|
213
227
|
style: z({ height: e.height })
|
|
214
228
|
}, null, 4))
|
|
215
|
-
], 64)) : (s(), N(
|
|
216
|
-
key:
|
|
229
|
+
], 64)) : (s(), N(p(ve), {
|
|
230
|
+
key: 1,
|
|
217
231
|
class: "sun-selector-options",
|
|
218
232
|
refresher: e.refresher,
|
|
219
233
|
refreshing: e.refreshing,
|
|
220
|
-
data:
|
|
234
|
+
data: p(S),
|
|
221
235
|
loading: e.loading,
|
|
222
236
|
"empty-type": "search",
|
|
223
237
|
style: z({ height: e.height }),
|
|
224
|
-
onRefresh: l[6] || (l[6] = (o) =>
|
|
238
|
+
onRefresh: l[6] || (l[6] = (o) => i("refresh"))
|
|
225
239
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
(s(!0), r(T, null, he(
|
|
240
|
+
default: d(() => [
|
|
241
|
+
(s(!0), r(T, null, he(p(S), (o, c) => (s(), N(p(E), {
|
|
228
242
|
key: o[e.valueKey],
|
|
229
|
-
|
|
230
|
-
class: P({ "sun-selector-option-active": u(o) }),
|
|
243
|
+
class: P(["sun-selector-option", { "sun-selector-option-active": a(o) }]),
|
|
231
244
|
clickable: !0,
|
|
232
245
|
onTap: (G) => D(o)
|
|
233
246
|
}, j({
|
|
234
|
-
|
|
235
|
-
|
|
247
|
+
start: d(() => [
|
|
248
|
+
u(e.$slots, "option-start", {
|
|
249
|
+
option: o,
|
|
250
|
+
index: c,
|
|
251
|
+
active: a(o)
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
end: d(() => [
|
|
255
|
+
u(e.$slots, "option-end", {
|
|
256
|
+
option: o,
|
|
257
|
+
index: c,
|
|
258
|
+
active: a(o)
|
|
259
|
+
})
|
|
260
|
+
]),
|
|
261
|
+
default: d(() => [
|
|
262
|
+
u(e.$slots, "option", {
|
|
236
263
|
option: o,
|
|
237
|
-
index:
|
|
238
|
-
active:
|
|
264
|
+
index: c,
|
|
265
|
+
active: a(o)
|
|
239
266
|
}, () => [
|
|
240
|
-
|
|
267
|
+
v("view", Ke, R(o[e.labelKey]), 1)
|
|
241
268
|
])
|
|
242
269
|
]),
|
|
243
270
|
_: 2
|
|
244
271
|
}, [
|
|
245
|
-
|
|
272
|
+
a(o) ? {
|
|
246
273
|
name: "end",
|
|
247
|
-
fn:
|
|
248
|
-
l[11] || (l[11] =
|
|
274
|
+
fn: d(() => [
|
|
275
|
+
l[11] || (l[11] = v("van-icon", {
|
|
249
276
|
class: "sun-selector-option-icon",
|
|
250
277
|
slot: "right-icon",
|
|
251
278
|
name: "success"
|
|
@@ -257,9 +284,9 @@ const p = J, s = Q, r = U, d = X, F = Y, me = Z, O = _, i = x, R = ee, ye = le,
|
|
|
257
284
|
]),
|
|
258
285
|
_: 3
|
|
259
286
|
}, 8, ["refresher", "refreshing", "data", "loading", "style"])),
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
287
|
+
u(e.$slots, "footer", { confirm: q }, () => [
|
|
288
|
+
y.value ? f("", !0) : (s(), r("view", we, [
|
|
289
|
+
v("van-button", {
|
|
263
290
|
type: "primary",
|
|
264
291
|
round: "true",
|
|
265
292
|
block: "true",
|
package/index110.js
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @vue/shared v3.5.13
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
8
|
+
function p(t) {
|
|
9
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
10
|
+
for (const n of t.split(",")) e[n] = 1;
|
|
11
|
+
return (n) => n in e;
|
|
12
|
+
}
|
|
13
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
14
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
|
+
const l = Object.assign, o = Object.prototype.hasOwnProperty, b = (t, e) => o.call(t, e), O = Array.isArray, j = (t) => c(t) === "[object Map]", s = (t) => typeof t == "string", u = (t) => typeof t == "symbol", y = (t) => t !== null && typeof t == "object", r = Object.prototype.toString, c = (t) => r.call(t), h = (t) => c(t).slice(8, -1), g = (t) => s(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, i = (t) => {
|
|
16
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
17
|
+
return (n) => e[n] || (e[n] = t(n));
|
|
18
|
+
}, f = i((t) => t.charAt(0).toUpperCase() + t.slice(1)), N = (t, e) => !Object.is(t, e);
|
|
10
19
|
export {
|
|
11
|
-
f as
|
|
20
|
+
f as capitalize,
|
|
21
|
+
l as extend,
|
|
22
|
+
N as hasChanged,
|
|
23
|
+
b as hasOwn,
|
|
24
|
+
O as isArray,
|
|
25
|
+
g as isIntegerKey,
|
|
26
|
+
j as isMap,
|
|
27
|
+
y as isObject,
|
|
28
|
+
s as isString,
|
|
29
|
+
u as isSymbol,
|
|
30
|
+
p as makeMap,
|
|
31
|
+
r as objectToString,
|
|
32
|
+
h as toRawType,
|
|
33
|
+
c as toTypeString
|
|
12
34
|
};
|
package/index111.js
CHANGED
package/index117.js
CHANGED
package/index118.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import o from "./
|
|
2
|
-
import a from "./
|
|
1
|
+
import o from "./index83.js";
|
|
2
|
+
import a from "./index59.js";
|
|
3
3
|
var n = Object.prototype, l = n.propertyIsEnumerable, t = Object.getOwnPropertySymbols, m = t ? function(r) {
|
|
4
4
|
return r == null ? [] : (r = Object(r), o(t(r), function(e) {
|
|
5
5
|
return l.call(r, e);
|