@solar-taro/ui-vant 2.7.0 → 2.7.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 +21 -0
- package/index10.js +188 -179
- package/index100.js +4 -6
- package/index101.js +6 -10
- package/index102.js +6 -6
- package/index103.js +10 -18
- package/index104.js +6 -4
- package/index105.js +17 -4
- package/index106.js +4 -3
- package/index107.js +4 -3
- package/index108.js +3 -14
- package/index109.js +4 -8
- package/index110.js +14 -5
- package/index111.js +8 -6
- package/index112.js +5 -5
- package/index113.js +5 -5
- package/index114.js +5 -5
- package/index115.js +6 -3
- package/index116.js +5 -17
- package/index117.js +3 -6
- package/index118.js +16 -2
- package/index119.js +4 -8
- package/index120.js +3 -5
- package/index121.js +3 -4
- package/index122.js +9 -5
- package/index123.js +5 -3
- package/index124.js +5 -3
- package/index125.js +5 -4
- package/index126.js +3 -5
- package/index127.js +4 -10
- package/index128.js +4 -6
- package/index129.js +10 -6
- package/index130.js +6 -4
- package/index131.js +6 -7
- package/index132.js +5 -3
- package/index133.js +10 -0
- package/index134.js +5 -0
- package/index16.js +1 -1
- package/index17.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 +1 -1
- package/index25.js +35 -3
- package/index26.js +3 -62
- package/index27.js +24 -3
- package/index28.js +63 -8
- package/index29.js +3 -6
- package/index30.js +8 -4
- package/index31.js +7 -2
- package/index32.js +2 -4
- package/index33.js +2 -10
- package/index34.js +5 -4
- package/index35.js +10 -4
- package/index36.js +4 -2
- package/index37.js +4 -4
- package/index38.js +2 -7
- package/index39.js +3 -4
- package/index40.js +7 -4
- package/index41.js +4 -6
- package/index42.js +5 -6
- package/index43.js +7 -9
- package/index44.js +6 -5
- package/index45.js +9 -7
- package/index46.js +5 -5
- package/index47.js +6 -9
- package/index48.js +4 -6
- package/index49.js +9 -17
- package/index50.js +4 -9
- package/index51.js +17 -6
- package/index52.js +9 -10
- package/index53.js +6 -3
- package/index54.js +12 -7
- package/index55.js +3 -9
- package/index56.js +7 -11
- package/index57.js +9 -5
- package/index58.js +11 -5
- package/index59.js +6 -9
- package/index60.js +5 -15
- package/index61.js +9 -6
- package/index62.js +15 -5
- package/index63.js +5 -8
- package/index64.js +5 -6
- package/index65.js +8 -5
- package/index66.js +6 -5
- package/index67.js +4 -5
- package/index68.js +5 -6
- package/index69.js +7 -26
- package/index70.js +6 -5
- package/index71.js +26 -40
- package/index72.js +3 -4
- package/index73.js +39 -5
- package/index74.js +7 -15
- package/index75.js +5 -7
- package/index76.js +15 -2
- package/index77.js +8 -3
- package/index78.js +2 -13
- package/index79.js +3 -5
- package/index80.js +13 -3
- package/index81.js +4 -3
- package/index82.js +3 -4
- package/index83.js +4 -4
- package/index84.js +4 -4
- package/index85.js +4 -4
- package/index86.js +4 -15
- package/index87.js +4 -14
- package/index88.js +14 -8
- package/index89.js +14 -3
- package/index90.js +8 -5
- package/index91.js +3 -6
- package/index92.js +5 -5
- package/index93.js +5 -7
- package/index94.js +5 -17
- package/index95.js +7 -10
- package/index96.js +17 -5
- package/index97.js +10 -4
- package/index98.js +5 -4
- package/index99.js +4 -5
- package/package.json +3 -2
- package/selector/index.vue.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 2.7.1 (2026-04-23)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-vant/selector:** and list slot for list rendering
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 2.7.0 (2026-04-15)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- **ui-vant/cascader:** add clearable option
|
|
16
|
+
- **ui-vant/selector:** add clearable option
|
|
17
|
+
|
|
18
|
+
### ❤️ Thank You
|
|
19
|
+
|
|
20
|
+
- HyperLife1119
|
|
21
|
+
|
|
1
22
|
## 2.6.4 (2026-03-14)
|
|
2
23
|
|
|
3
24
|
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,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunLazyRender as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
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 "./index25.js";
|
|
5
|
+
import B from "./index26.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({
|
|
8
9
|
__name: "index",
|
|
9
10
|
props: {
|
|
10
11
|
type: { default: "field" },
|
|
@@ -26,11 +27,11 @@ const u = Q, r = X, d = Y, h = Z, v = _, R = x, be = ee, I = le, p = te, M = oe,
|
|
|
26
27
|
virtual: { type: [Boolean, Object] },
|
|
27
28
|
refresher: { type: Boolean },
|
|
28
29
|
refreshing: { type: Boolean },
|
|
29
|
-
compareWith: { type: Function, default: (
|
|
30
|
+
compareWith: { type: Function, default: (w, S) => w === S }
|
|
30
31
|
},
|
|
31
32
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
32
|
-
setup(
|
|
33
|
-
const o =
|
|
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(() => {
|
|
34
35
|
var e;
|
|
35
36
|
if (c.value) {
|
|
36
37
|
const l = B(o.modelValue) ? null : o.options.find(
|
|
@@ -44,259 +45,267 @@ const u = Q, r = X, d = Y, h = Z, v = _, R = x, be = ee, I = le, p = te, M = oe,
|
|
|
44
45
|
return ((a = o.options.find((t) => o.compareWith(t[o.valueKey], l))) == null ? void 0 : a[o.labelKey]) || "";
|
|
45
46
|
}
|
|
46
47
|
).join(o.delimiter);
|
|
47
|
-
}),
|
|
48
|
+
}), V = m(() => !J(o.modelValue) && o.clearable), c = m(() => o.mode === "single"), H = m(() => {
|
|
48
49
|
var a, t;
|
|
49
50
|
let e, l = 47;
|
|
50
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 };
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
+
function J(e) {
|
|
53
54
|
return B(e) ? !0 : c.value ? !1 : e.length < 1;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function i(e) {
|
|
56
57
|
var a;
|
|
57
58
|
const l = e[o.valueKey];
|
|
58
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;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
-
o.disabled || (
|
|
62
|
-
|
|
61
|
+
function k() {
|
|
62
|
+
o.disabled || (b.value = !0, g.value || setTimeout(() => {
|
|
63
|
+
g.value = !0;
|
|
63
64
|
}, 300));
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
66
|
+
function q() {
|
|
67
|
+
b.value = !1, d("close");
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function R() {
|
|
69
70
|
var l;
|
|
70
71
|
const e = ((l = o.modelValue) == null ? void 0 : l.map(
|
|
71
72
|
(a) => o.options.find(
|
|
72
73
|
(t) => o.compareWith(t[o.valueKey], a)
|
|
73
74
|
)
|
|
74
75
|
)) || [];
|
|
75
|
-
|
|
76
|
+
d("confirm", e), q();
|
|
76
77
|
}
|
|
77
78
|
function E(e) {
|
|
78
79
|
const l = e[o.valueKey];
|
|
79
80
|
let a = o.modelValue;
|
|
80
|
-
c.value ? (
|
|
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(
|
|
81
82
|
(t) => !o.compareWith(t, l)
|
|
82
|
-
)) : (
|
|
83
|
+
)) : (d("select", e), a = (o.modelValue || []).concat(
|
|
83
84
|
e[o.valueKey]
|
|
84
|
-
)),
|
|
85
|
+
)), d("update:modelValue", a);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
87
|
+
function $() {
|
|
88
|
+
d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
|
|
88
89
|
}
|
|
89
|
-
return
|
|
90
|
-
present:
|
|
91
|
-
clear:
|
|
90
|
+
return S({
|
|
91
|
+
present: k,
|
|
92
|
+
clear: $
|
|
92
93
|
}), (e, l) => {
|
|
93
|
-
const a =
|
|
94
|
-
return
|
|
94
|
+
const a = ke("readonly");
|
|
95
|
+
return n(), p(L, null, [
|
|
95
96
|
u(e.$slots, "default", {
|
|
96
|
-
present:
|
|
97
|
-
label:
|
|
97
|
+
present: k,
|
|
98
|
+
label: T.value
|
|
98
99
|
}, () => [
|
|
99
|
-
e.type === "field" ?
|
|
100
|
+
e.type === "field" ? M((n(), p("van-field", I({ key: 0 }, e.$attrs, {
|
|
100
101
|
class: "sun-selector",
|
|
101
102
|
label: e.label,
|
|
102
|
-
value:
|
|
103
|
+
value: T.value,
|
|
103
104
|
placeholder: e.placeholder,
|
|
104
105
|
required: e.required,
|
|
105
106
|
disabled: e.disabled,
|
|
106
|
-
onClickInput: l[1] || (l[1] = (t) =>
|
|
107
|
+
onClickInput: l[1] || (l[1] = (t) => k())
|
|
107
108
|
}), [
|
|
108
|
-
v("slot-view",
|
|
109
|
-
|
|
109
|
+
v("slot-view", Ke, [
|
|
110
|
+
V.value ? (n(), p("van-icon", {
|
|
110
111
|
key: 0,
|
|
111
112
|
class: "sun-selector-clear-icon",
|
|
112
113
|
name: "clear",
|
|
113
|
-
onTap: l[0] || (l[0] = (t) =>
|
|
114
|
+
onTap: l[0] || (l[0] = (t) => $())
|
|
114
115
|
}, null, 32)) : h("", !0),
|
|
115
116
|
u(e.$slots, "end")
|
|
116
117
|
])
|
|
117
|
-
], 16,
|
|
118
|
+
], 16, Se)), [
|
|
118
119
|
[a]
|
|
119
|
-
]) : e.type === "search" ?
|
|
120
|
+
]) : e.type === "search" ? M((n(), p("van-search", I({ key: 1 }, e.$attrs, {
|
|
120
121
|
class: "sun-selector",
|
|
121
122
|
label: e.label,
|
|
122
|
-
value:
|
|
123
|
+
value: T.value,
|
|
123
124
|
placeholder: e.placeholder,
|
|
124
|
-
"use-right-icon-slot":
|
|
125
|
+
"use-right-icon-slot": V.value,
|
|
125
126
|
shape: "round",
|
|
126
127
|
clearable: !1,
|
|
127
128
|
disabled: e.disabled,
|
|
128
|
-
onClickInput: l[3] || (l[3] = (t) =>
|
|
129
|
+
onClickInput: l[3] || (l[3] = (t) => k())
|
|
129
130
|
}), [
|
|
130
|
-
v("slot-view",
|
|
131
|
-
|
|
131
|
+
v("slot-view", Be, [
|
|
132
|
+
V.value ? (n(), p("van-icon", {
|
|
132
133
|
key: 0,
|
|
133
134
|
class: "sun-selector-clear-icon",
|
|
134
135
|
name: "clear",
|
|
135
|
-
onTap: l[2] || (l[2] = (t) =>
|
|
136
|
+
onTap: l[2] || (l[2] = (t) => $())
|
|
136
137
|
}, null, 32)) : h("", !0),
|
|
137
138
|
u(e.$slots, "end")
|
|
138
139
|
])
|
|
139
|
-
], 16,
|
|
140
|
+
], 16, Te)), [
|
|
140
141
|
[a]
|
|
141
142
|
]) : h("", !0)
|
|
142
143
|
]),
|
|
143
|
-
|
|
144
|
-
default:
|
|
145
|
-
|
|
146
|
-
show:
|
|
147
|
-
"onUpdate:show": l[9] || (l[9] = (t) =>
|
|
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),
|
|
148
149
|
title: e.placeholder,
|
|
149
150
|
"show-buttons": !c.value
|
|
150
151
|
}, C({
|
|
151
|
-
buttons:
|
|
152
|
-
u(e.$slots, "buttons", { confirm:
|
|
153
|
-
c.value ? h("", !0) : (
|
|
152
|
+
buttons: s(() => [
|
|
153
|
+
u(e.$slots, "buttons", { confirm: R }, () => [
|
|
154
|
+
c.value ? h("", !0) : (n(), p("van-button", {
|
|
154
155
|
key: 0,
|
|
155
156
|
type: "primary",
|
|
156
157
|
round: "true",
|
|
157
158
|
block: "true",
|
|
158
|
-
onTap: l[8] || (l[8] = (t) =>
|
|
159
|
+
onTap: l[8] || (l[8] = (t) => R())
|
|
159
160
|
}, "确定", 32))
|
|
160
161
|
])
|
|
161
162
|
]),
|
|
162
|
-
default:
|
|
163
|
-
u(e.$slots, "filter", { rendered:
|
|
164
|
-
e.searchable ? (
|
|
163
|
+
default: s(() => [
|
|
164
|
+
u(e.$slots, "filter", { rendered: g.value }, () => [
|
|
165
|
+
e.searchable ? (n(), p("van-search", {
|
|
165
166
|
key: 0,
|
|
166
167
|
shape: "round",
|
|
167
168
|
"input-align": "center",
|
|
168
|
-
value:
|
|
169
|
+
value: r(W),
|
|
169
170
|
placeholder: "输入关键字搜索",
|
|
170
|
-
onChange: l[5] || (l[5] = (t) =>
|
|
171
|
-
}, null, 40,
|
|
171
|
+
onChange: l[5] || (l[5] = (t) => W.value = t.detail.trim())
|
|
172
|
+
}, null, 40, Ce)) : h("", !0)
|
|
172
173
|
]),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
key: 0,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
174
|
+
y(r(U), null, {
|
|
175
|
+
default: s(() => [
|
|
176
|
+
e.virtual ? (n(), p(L, { key: 0 }, [
|
|
177
|
+
g.value ? (n(), N(r(ye), {
|
|
178
|
+
key: 0,
|
|
179
|
+
class: "sun-selector-options",
|
|
180
|
+
refresher: e.refresher,
|
|
181
|
+
refreshing: e.refreshing,
|
|
182
|
+
items: r(K),
|
|
183
|
+
"item-size": H.value.itemSize,
|
|
184
|
+
"item-key": e.valueKey,
|
|
185
|
+
style: z({ height: e.height }),
|
|
186
|
+
onRefresh: l[6] || (l[6] = (t) => d("refresh"))
|
|
187
|
+
}, {
|
|
188
|
+
default: s(({ item: t, index: f }) => [
|
|
189
|
+
y(r(O), {
|
|
190
|
+
class: j(["sun-selector-option", { "sun-selector-option-active": i(t) }]),
|
|
191
|
+
clickable: !0,
|
|
192
|
+
onTap: (Q) => E(t)
|
|
193
|
+
}, C({
|
|
194
|
+
start: s(() => [
|
|
195
|
+
u(e.$slots, "option-start", {
|
|
196
|
+
option: t,
|
|
197
|
+
index: f,
|
|
198
|
+
active: i(t)
|
|
199
|
+
})
|
|
200
|
+
]),
|
|
201
|
+
end: s(() => [
|
|
202
|
+
u(e.$slots, "option-end", {
|
|
203
|
+
option: t,
|
|
204
|
+
index: f,
|
|
205
|
+
active: i(t)
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
default: s(() => [
|
|
209
|
+
u(e.$slots, "option", {
|
|
210
|
+
option: t,
|
|
211
|
+
index: f,
|
|
212
|
+
active: i(t)
|
|
213
|
+
}, () => [
|
|
214
|
+
$e(P(t[e.labelKey]), 1)
|
|
215
|
+
])
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
}, [
|
|
219
|
+
i(t) ? {
|
|
220
|
+
name: "end",
|
|
221
|
+
fn: s(() => [
|
|
222
|
+
l[10] || (l[10] = v("van-icon", {
|
|
223
|
+
class: "sun-selector-option-icon",
|
|
224
|
+
name: "success"
|
|
225
|
+
}, null, -1))
|
|
226
|
+
]),
|
|
227
|
+
key: "0"
|
|
228
|
+
} : void 0
|
|
229
|
+
]), 1032, ["class", "onTap"])
|
|
197
230
|
]),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
231
|
+
_: 3
|
|
232
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), p("view", {
|
|
233
|
+
key: 1,
|
|
234
|
+
style: z({ height: e.height })
|
|
235
|
+
}, null, 4))
|
|
236
|
+
], 64)) : (n(), N(r(Ve), {
|
|
237
|
+
key: 1,
|
|
238
|
+
class: "sun-selector-options",
|
|
239
|
+
refresher: e.refresher,
|
|
240
|
+
refreshing: e.refreshing,
|
|
241
|
+
data: r(K),
|
|
242
|
+
loading: e.loading,
|
|
243
|
+
"empty-type": "search",
|
|
244
|
+
style: z({ height: e.height }),
|
|
245
|
+
onRefresh: l[7] || (l[7] = (t) => d("refresh"))
|
|
246
|
+
}, {
|
|
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) }]),
|
|
251
|
+
clickable: !0,
|
|
252
|
+
onTap: (Q) => E(t)
|
|
253
|
+
}, C({
|
|
254
|
+
start: s(() => [
|
|
255
|
+
u(e.$slots, "option-start", {
|
|
256
|
+
option: t,
|
|
257
|
+
index: f,
|
|
258
|
+
active: i(t)
|
|
259
|
+
})
|
|
223
260
|
]),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
index: f,
|
|
255
|
-
active: s(t)
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
end: n(() => [
|
|
259
|
-
u(e.$slots, "option-end", {
|
|
260
|
-
option: t,
|
|
261
|
-
index: f,
|
|
262
|
-
active: s(t)
|
|
263
|
-
})
|
|
264
|
-
]),
|
|
265
|
-
default: n(() => [
|
|
266
|
-
u(e.$slots, "option", {
|
|
267
|
-
option: t,
|
|
268
|
-
index: f,
|
|
269
|
-
active: s(t)
|
|
270
|
-
}, () => [
|
|
271
|
-
v("view", Be, M(t[e.labelKey]), 1)
|
|
272
|
-
])
|
|
261
|
+
end: s(() => [
|
|
262
|
+
u(e.$slots, "option-end", {
|
|
263
|
+
option: t,
|
|
264
|
+
index: f,
|
|
265
|
+
active: i(t)
|
|
266
|
+
})
|
|
267
|
+
]),
|
|
268
|
+
default: s(() => [
|
|
269
|
+
u(e.$slots, "option", {
|
|
270
|
+
option: t,
|
|
271
|
+
index: f,
|
|
272
|
+
active: i(t)
|
|
273
|
+
}, () => [
|
|
274
|
+
v("view", ze, P(t[e.labelKey]), 1)
|
|
275
|
+
])
|
|
276
|
+
]),
|
|
277
|
+
_: 2
|
|
278
|
+
}, [
|
|
279
|
+
i(t) ? {
|
|
280
|
+
name: "end",
|
|
281
|
+
fn: s(() => [
|
|
282
|
+
l[11] || (l[11] = v("van-icon", {
|
|
283
|
+
class: "sun-selector-option-icon",
|
|
284
|
+
slot: "right-icon",
|
|
285
|
+
name: "success"
|
|
286
|
+
}, null, -1))
|
|
287
|
+
]),
|
|
288
|
+
key: "0"
|
|
289
|
+
} : void 0
|
|
290
|
+
]), 1032, ["class", "onTap"]))), 128))
|
|
273
291
|
]),
|
|
274
|
-
_:
|
|
275
|
-
}, [
|
|
276
|
-
s(t) ? {
|
|
277
|
-
name: "end",
|
|
278
|
-
fn: n(() => [
|
|
279
|
-
l[11] || (l[11] = v("van-icon", {
|
|
280
|
-
class: "sun-selector-option-icon",
|
|
281
|
-
slot: "right-icon",
|
|
282
|
-
name: "success"
|
|
283
|
-
}, null, -1))
|
|
284
|
-
]),
|
|
285
|
-
key: "0"
|
|
286
|
-
} : void 0
|
|
287
|
-
]), 1032, ["class", "onTap"]))), 128))
|
|
292
|
+
_: 3
|
|
293
|
+
}, 8, ["refresher", "refreshing", "data", "loading", "style"]))
|
|
288
294
|
]),
|
|
289
295
|
_: 3
|
|
290
|
-
},
|
|
296
|
+
}),
|
|
297
|
+
u(e.$slots, "list", { ListTemplate: r(D) }, () => [
|
|
298
|
+
y(r(D))
|
|
299
|
+
])
|
|
291
300
|
]),
|
|
292
301
|
_: 2
|
|
293
302
|
}, [
|
|
294
|
-
|
|
303
|
+
V.value ? {
|
|
295
304
|
name: "extra",
|
|
296
|
-
fn:
|
|
305
|
+
fn: s(() => [
|
|
297
306
|
v("view", {
|
|
298
307
|
class: "sun-selector-clear-btn",
|
|
299
|
-
onTap: l[4] || (l[4] = (t) =>
|
|
308
|
+
onTap: l[4] || (l[4] = (t) => $())
|
|
300
309
|
}, "清除", 32)
|
|
301
310
|
]),
|
|
302
311
|
key: "0"
|
|
@@ -310,5 +319,5 @@ const u = Q, r = X, d = Y, h = Z, v = _, R = x, be = ee, I = le, p = te, M = oe,
|
|
|
310
319
|
}
|
|
311
320
|
});
|
|
312
321
|
export {
|
|
313
|
-
|
|
322
|
+
Fe as default
|
|
314
323
|
};
|
package/index100.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var a = s(r);
|
|
5
|
-
return u(r) ? a : e(a, t(r));
|
|
1
|
+
import t from "./index119.js";
|
|
2
|
+
function e(a) {
|
|
3
|
+
return t(this, a).has(a);
|
|
6
4
|
}
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
e as default
|
|
9
7
|
};
|
package/index101.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var t = []; r; )
|
|
7
|
-
o(t, e(r)), r = m(r);
|
|
8
|
-
return t;
|
|
9
|
-
} : a;
|
|
1
|
+
import s from "./index119.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;
|
|
5
|
+
}
|
|
10
6
|
export {
|
|
11
|
-
|
|
7
|
+
h as default
|
|
12
8
|
};
|
package/index102.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
return r
|
|
1
|
+
import e from "./index75.js";
|
|
2
|
+
import u from "./index33.js";
|
|
3
|
+
function l(r, s, t) {
|
|
4
|
+
var a = s(r);
|
|
5
|
+
return u(r) ? a : e(a, t(r));
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
l as default
|
|
9
9
|
};
|
package/index103.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.set(r[0], r[1]);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
t.prototype.clear = p;
|
|
14
|
-
t.prototype.delete = a;
|
|
15
|
-
t.prototype.get = i;
|
|
16
|
-
t.prototype.has = h;
|
|
17
|
-
t.prototype.set = s;
|
|
1
|
+
import o from "./index75.js";
|
|
2
|
+
import m from "./index91.js";
|
|
3
|
+
import e from "./index111.js";
|
|
4
|
+
import a from "./index55.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;
|
|
18
10
|
export {
|
|
19
|
-
|
|
11
|
+
f as default
|
|
20
12
|
};
|
package/index104.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import r from "./index89.js";
|
|
2
|
+
import i from "./index120.js";
|
|
3
|
+
function f(t, a) {
|
|
4
|
+
var e = i(t, a);
|
|
5
|
+
return r(e) ? e : void 0;
|
|
4
6
|
}
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
f as default
|
|
7
9
|
};
|
package/index105.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import p from "./index121.js";
|
|
2
|
+
import a from "./index122.js";
|
|
3
|
+
import i from "./index123.js";
|
|
4
|
+
import h from "./index124.js";
|
|
5
|
+
import s from "./index125.js";
|
|
6
|
+
function t(e) {
|
|
7
|
+
var o = -1, l = e == null ? 0 : e.length;
|
|
8
|
+
for (this.clear(); ++o < l; ) {
|
|
9
|
+
var r = e[o];
|
|
10
|
+
this.set(r[0], r[1]);
|
|
11
|
+
}
|
|
4
12
|
}
|
|
13
|
+
t.prototype.clear = p;
|
|
14
|
+
t.prototype.delete = a;
|
|
15
|
+
t.prototype.get = i;
|
|
16
|
+
t.prototype.has = h;
|
|
17
|
+
t.prototype.set = s;
|
|
5
18
|
export {
|
|
6
|
-
|
|
19
|
+
t as default
|
|
7
20
|
};
|
package/index106.js
CHANGED