@solar-taro/ui-vant 2.8.0 → 2.8.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 +14 -0
- package/index10.js +175 -161
- package/index118.js +5 -5
- package/index119.js +1 -1
- package/index127.js +3 -3
- package/index128.js +4 -4
- package/index129.js +4 -10
- package/index130.js +10 -6
- package/index131.js +6 -6
- package/index132.js +6 -4
- 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 +5 -35
- package/index25.js +35 -3
- package/index26.js +3 -5
- package/index4.js +1 -1
- package/package.json +1 -1
- package/selector/index.scss +5 -0
- package/selector/index.vue.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 2.8.1 (2026-05-14)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-vant/selector:** enhance multi-select style with and update slot context
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 2.8.0 (2026-05-13)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
1
15
|
## 2.7.2 (2026-05-13)
|
|
2
16
|
|
|
3
17
|
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,11 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunLazyRender as
|
|
4
|
-
import { createReusableTemplate as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
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
|
+
import { useFilterList as be } from "@solar-taro/core";
|
|
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";
|
|
5
|
+
import we from "./index7.js";
|
|
6
|
+
import Se from "./index6.js";
|
|
7
|
+
import P from "./index26.js";
|
|
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
|
+
key: 0,
|
|
10
|
+
name: "input",
|
|
11
|
+
class: "sun-selector-input"
|
|
12
|
+
}, Ce = { name: "right-icon" }, ze = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Ne = { name: "right-icon" }, Le = ["value"], De = { class: "sun-selector-option-label" }, Me = /* @__PURE__ */ _({
|
|
9
13
|
__name: "index",
|
|
10
14
|
props: {
|
|
11
15
|
type: { default: "field" },
|
|
@@ -27,199 +31,209 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
|
|
|
27
31
|
virtual: { type: [Boolean, Object] },
|
|
28
32
|
refresher: { type: Boolean },
|
|
29
33
|
refreshing: { type: Boolean },
|
|
30
|
-
compareWith: { type: Function, default: (
|
|
34
|
+
compareWith: { type: Function, default: (K, C) => K === C }
|
|
31
35
|
},
|
|
32
36
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
33
|
-
setup(
|
|
34
|
-
const [
|
|
37
|
+
setup(K, { expose: C, emit: H }) {
|
|
38
|
+
const [J, q] = $e(), o = K, p = H, g = I(!1), k = I(!1), Q = v(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), { keyword: O, filteredList: z } = be(() => o.options, Q.value), V = v(() => {
|
|
35
39
|
var e;
|
|
36
40
|
if (c.value) {
|
|
37
|
-
const
|
|
38
|
-
(
|
|
41
|
+
const t = o.options.find(
|
|
42
|
+
(s) => o.compareWith(s[o.valueKey], o.modelValue)
|
|
39
43
|
);
|
|
40
|
-
return
|
|
44
|
+
return t ? [t] : [];
|
|
41
45
|
}
|
|
42
|
-
return (e = o.modelValue)
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var a, t;
|
|
50
|
-
let e, l = 47;
|
|
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 };
|
|
46
|
+
return ((e = o.modelValue) != null ? e : []).map(
|
|
47
|
+
(t) => o.options.find((s) => o.compareWith(s[o.valueKey], t))
|
|
48
|
+
).filter(Boolean);
|
|
49
|
+
}), N = v(() => V.value.map((e) => e[o.labelKey]).join(o.delimiter)), $ = v(() => !Y(o.modelValue) && o.clearable), c = v(() => o.mode === "single"), X = v(() => {
|
|
50
|
+
var s, l;
|
|
51
|
+
let e, t = 47;
|
|
52
|
+
return typeof o.virtual != "boolean" && (s = o.virtual) != null && s.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
|
|
52
53
|
});
|
|
53
|
-
function
|
|
54
|
-
return
|
|
54
|
+
function Y(e) {
|
|
55
|
+
return P(e) ? !0 : c.value ? !1 : e.length < 1;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
var
|
|
58
|
-
const
|
|
59
|
-
return c.value ?
|
|
57
|
+
function u(e) {
|
|
58
|
+
var s;
|
|
59
|
+
const t = e[o.valueKey];
|
|
60
|
+
return c.value ? P(o.modelValue) ? !1 : o.compareWith(o.modelValue, t) : ((s = o.modelValue) == null ? void 0 : s.some((l) => o.compareWith(l, t))) || !1;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
o.disabled || (
|
|
63
|
-
|
|
62
|
+
function w() {
|
|
63
|
+
o.disabled || (g.value = !0, k.value || setTimeout(() => {
|
|
64
|
+
k.value = !0;
|
|
64
65
|
}, 300));
|
|
65
66
|
}
|
|
66
|
-
function q() {
|
|
67
|
-
b.value = !1, d("close");
|
|
68
|
-
}
|
|
69
67
|
function R() {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
g.value = !1, p("close");
|
|
69
|
+
}
|
|
70
|
+
function E() {
|
|
71
|
+
var t;
|
|
72
|
+
const e = ((t = o.modelValue) == null ? void 0 : t.map(
|
|
73
|
+
(s) => o.options.find(
|
|
74
|
+
(l) => o.compareWith(l[o.valueKey], s)
|
|
74
75
|
)
|
|
75
76
|
)) || [];
|
|
76
|
-
|
|
77
|
+
p("confirm", e), R();
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
c.value ? (
|
|
82
|
-
(
|
|
83
|
-
)) : (
|
|
79
|
+
function F(e) {
|
|
80
|
+
const t = e[o.valueKey];
|
|
81
|
+
let s = o.modelValue;
|
|
82
|
+
c.value ? (u(e) ? o.required || (p("unselect", e), s = null) : (p("select", e), s = t), R()) : u(e) ? (p("unselect", e), s = o.modelValue.filter(
|
|
83
|
+
(l) => !o.compareWith(l, t)
|
|
84
|
+
)) : (p("select", e), s = (o.modelValue || []).concat(
|
|
84
85
|
e[o.valueKey]
|
|
85
|
-
)),
|
|
86
|
+
)), p("update:modelValue", s);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
88
|
+
function S() {
|
|
89
|
+
p("clear", o.modelValue), p("update:modelValue", o.required && !c.value ? [] : null);
|
|
89
90
|
}
|
|
90
|
-
return
|
|
91
|
-
present:
|
|
92
|
-
clear:
|
|
93
|
-
}), (e,
|
|
94
|
-
const
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
present:
|
|
98
|
-
label:
|
|
91
|
+
return C({
|
|
92
|
+
present: w,
|
|
93
|
+
clear: S
|
|
94
|
+
}), (e, t) => {
|
|
95
|
+
const s = Te("readonly");
|
|
96
|
+
return a(), i(h, null, [
|
|
97
|
+
d(e.$slots, "default", {
|
|
98
|
+
present: w,
|
|
99
|
+
label: N.value,
|
|
100
|
+
selectedOptions: V.value
|
|
99
101
|
}, () => [
|
|
100
|
-
e.type === "field" ?
|
|
102
|
+
e.type === "field" ? U((a(), i("van-field", A({ key: 0 }, e.$attrs, {
|
|
101
103
|
class: "sun-selector",
|
|
102
104
|
label: e.label,
|
|
103
|
-
value: T.value,
|
|
104
105
|
placeholder: e.placeholder,
|
|
105
106
|
required: e.required,
|
|
106
107
|
disabled: e.disabled,
|
|
107
|
-
onClickInput:
|
|
108
|
+
onClickInput: t[1] || (t[1] = (l) => w())
|
|
108
109
|
}), [
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
V.value.length ? (a(), i("slot-view", Ke, [
|
|
111
|
+
c.value ? (a(), i(h, { key: 0 }, [
|
|
112
|
+
L(T(N.value), 1)
|
|
113
|
+
], 64)) : (a(!0), i(h, { key: 1 }, j(V.value, (l) => (a(), B(r(ge), {
|
|
114
|
+
color: "medium",
|
|
115
|
+
type: "translucent"
|
|
116
|
+
}, {
|
|
117
|
+
default: n(() => [
|
|
118
|
+
L(T(l[e.labelKey]), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1024))), 256))
|
|
122
|
+
])) : m("", !0),
|
|
123
|
+
y("slot-view", Ce, [
|
|
124
|
+
$.value ? (a(), i("van-icon", {
|
|
111
125
|
key: 0,
|
|
112
126
|
class: "sun-selector-clear-icon",
|
|
113
127
|
name: "clear",
|
|
114
|
-
onTap:
|
|
115
|
-
}, null, 32)) :
|
|
116
|
-
|
|
128
|
+
onTap: t[0] || (t[0] = (l) => S())
|
|
129
|
+
}, null, 32)) : m("", !0),
|
|
130
|
+
d(e.$slots, "end")
|
|
117
131
|
])
|
|
118
|
-
], 16,
|
|
119
|
-
[
|
|
120
|
-
]) : e.type === "search" ?
|
|
132
|
+
], 16, Be)), [
|
|
133
|
+
[s]
|
|
134
|
+
]) : e.type === "search" ? U((a(), i("van-search", A({ key: 1 }, e.$attrs, {
|
|
121
135
|
class: "sun-selector",
|
|
122
136
|
label: e.label,
|
|
123
|
-
value:
|
|
137
|
+
value: N.value,
|
|
124
138
|
placeholder: e.placeholder,
|
|
125
|
-
"use-right-icon-slot":
|
|
139
|
+
"use-right-icon-slot": $.value,
|
|
126
140
|
shape: "round",
|
|
127
141
|
clearable: !1,
|
|
128
142
|
disabled: e.disabled,
|
|
129
|
-
onClickInput:
|
|
143
|
+
onClickInput: t[3] || (t[3] = (l) => w())
|
|
130
144
|
}), [
|
|
131
|
-
|
|
132
|
-
|
|
145
|
+
y("slot-view", Ne, [
|
|
146
|
+
$.value ? (a(), i("van-icon", {
|
|
133
147
|
key: 0,
|
|
134
148
|
class: "sun-selector-clear-icon",
|
|
135
149
|
name: "clear",
|
|
136
|
-
onTap:
|
|
137
|
-
}, null, 32)) :
|
|
138
|
-
|
|
150
|
+
onTap: t[2] || (t[2] = (l) => S())
|
|
151
|
+
}, null, 32)) : m("", !0),
|
|
152
|
+
d(e.$slots, "end")
|
|
139
153
|
])
|
|
140
|
-
], 16,
|
|
141
|
-
[
|
|
142
|
-
]) :
|
|
154
|
+
], 16, ze)), [
|
|
155
|
+
[s]
|
|
156
|
+
]) : m("", !0)
|
|
143
157
|
]),
|
|
144
|
-
|
|
145
|
-
default:
|
|
146
|
-
|
|
147
|
-
show:
|
|
148
|
-
"onUpdate:show":
|
|
158
|
+
b(r(ke), { hook: "created" }, {
|
|
159
|
+
default: n(() => [
|
|
160
|
+
b(r(we), {
|
|
161
|
+
show: g.value,
|
|
162
|
+
"onUpdate:show": t[9] || (t[9] = (l) => g.value = l),
|
|
149
163
|
title: e.placeholder,
|
|
150
164
|
"show-buttons": !c.value
|
|
151
|
-
},
|
|
152
|
-
buttons:
|
|
153
|
-
|
|
154
|
-
c.value ?
|
|
165
|
+
}, D({
|
|
166
|
+
buttons: n(() => [
|
|
167
|
+
d(e.$slots, "buttons", { confirm: E }, () => [
|
|
168
|
+
c.value ? m("", !0) : (a(), i("van-button", {
|
|
155
169
|
key: 0,
|
|
156
170
|
type: "primary",
|
|
157
171
|
round: "true",
|
|
158
172
|
block: "true",
|
|
159
|
-
onTap:
|
|
173
|
+
onTap: t[8] || (t[8] = (l) => E())
|
|
160
174
|
}, "确定", 32))
|
|
161
175
|
])
|
|
162
176
|
]),
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
e.searchable ? (
|
|
177
|
+
default: n(() => [
|
|
178
|
+
d(e.$slots, "filter", { rendered: k.value }, () => [
|
|
179
|
+
e.searchable ? (a(), i("van-search", {
|
|
166
180
|
key: 0,
|
|
167
181
|
shape: "round",
|
|
168
182
|
"input-align": "center",
|
|
169
|
-
value: r(
|
|
183
|
+
value: r(O),
|
|
170
184
|
placeholder: "输入关键字搜索",
|
|
171
|
-
onChange:
|
|
172
|
-
}, null, 40,
|
|
185
|
+
onChange: t[5] || (t[5] = (l) => O.value = l.detail.trim())
|
|
186
|
+
}, null, 40, Le)) : m("", !0)
|
|
173
187
|
]),
|
|
174
|
-
|
|
175
|
-
default:
|
|
176
|
-
e.virtual ? (
|
|
177
|
-
|
|
188
|
+
b(r(J), null, {
|
|
189
|
+
default: n(() => [
|
|
190
|
+
e.virtual ? (a(), i(h, { key: 0 }, [
|
|
191
|
+
k.value ? (a(), B(r(Ve), {
|
|
178
192
|
key: 0,
|
|
179
193
|
class: "sun-selector-options",
|
|
180
194
|
refresher: e.refresher,
|
|
181
195
|
refreshing: e.refreshing,
|
|
182
|
-
items: r(
|
|
183
|
-
"item-size":
|
|
196
|
+
items: r(z),
|
|
197
|
+
"item-size": X.value.itemSize,
|
|
184
198
|
"item-key": e.valueKey,
|
|
185
|
-
style:
|
|
186
|
-
onRefresh:
|
|
199
|
+
style: W({ height: e.height }),
|
|
200
|
+
onRefresh: t[6] || (t[6] = (l) => p("refresh"))
|
|
187
201
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
|
|
190
|
-
class:
|
|
202
|
+
default: n(({ item: l, index: f }) => [
|
|
203
|
+
b(r(M), {
|
|
204
|
+
class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
|
|
191
205
|
clickable: !0,
|
|
192
|
-
onTap: (
|
|
193
|
-
},
|
|
194
|
-
start:
|
|
195
|
-
|
|
196
|
-
option:
|
|
206
|
+
onTap: (Z) => F(l)
|
|
207
|
+
}, D({
|
|
208
|
+
start: n(() => [
|
|
209
|
+
d(e.$slots, "option-start", {
|
|
210
|
+
option: l,
|
|
197
211
|
index: f,
|
|
198
|
-
active:
|
|
212
|
+
active: u(l)
|
|
199
213
|
})
|
|
200
214
|
]),
|
|
201
|
-
end:
|
|
202
|
-
|
|
203
|
-
option:
|
|
215
|
+
end: n(() => [
|
|
216
|
+
d(e.$slots, "option-end", {
|
|
217
|
+
option: l,
|
|
204
218
|
index: f,
|
|
205
|
-
active:
|
|
219
|
+
active: u(l)
|
|
206
220
|
})
|
|
207
221
|
]),
|
|
208
|
-
default:
|
|
209
|
-
|
|
210
|
-
option:
|
|
222
|
+
default: n(() => [
|
|
223
|
+
d(e.$slots, "option", {
|
|
224
|
+
option: l,
|
|
211
225
|
index: f,
|
|
212
|
-
active:
|
|
226
|
+
active: u(l)
|
|
213
227
|
}, () => [
|
|
214
|
-
|
|
228
|
+
L(T(l[e.labelKey]), 1)
|
|
215
229
|
])
|
|
216
230
|
]),
|
|
217
231
|
_: 2
|
|
218
232
|
}, [
|
|
219
|
-
|
|
233
|
+
u(l) ? {
|
|
220
234
|
name: "end",
|
|
221
|
-
fn:
|
|
222
|
-
|
|
235
|
+
fn: n(() => [
|
|
236
|
+
t[10] || (t[10] = y("van-icon", {
|
|
223
237
|
class: "sun-selector-option-icon",
|
|
224
238
|
name: "success"
|
|
225
239
|
}, null, -1))
|
|
@@ -229,57 +243,57 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
|
|
|
229
243
|
]), 1032, ["class", "onTap"])
|
|
230
244
|
]),
|
|
231
245
|
_: 3
|
|
232
|
-
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (
|
|
246
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), i("view", {
|
|
233
247
|
key: 1,
|
|
234
|
-
style:
|
|
248
|
+
style: W({ height: e.height })
|
|
235
249
|
}, null, 4))
|
|
236
|
-
], 64)) : (
|
|
250
|
+
], 64)) : (a(), B(r(Se), {
|
|
237
251
|
key: 1,
|
|
238
252
|
class: "sun-selector-options",
|
|
239
253
|
refresher: e.refresher,
|
|
240
254
|
refreshing: e.refreshing,
|
|
241
|
-
data: r(
|
|
255
|
+
data: r(z),
|
|
242
256
|
loading: e.loading,
|
|
243
257
|
"empty-type": "search",
|
|
244
|
-
style:
|
|
245
|
-
onRefresh:
|
|
258
|
+
style: W({ height: e.height }),
|
|
259
|
+
onRefresh: t[7] || (t[7] = (l) => p("refresh"))
|
|
246
260
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
(
|
|
249
|
-
key:
|
|
250
|
-
class:
|
|
261
|
+
default: n(() => [
|
|
262
|
+
(a(!0), i(h, null, j(r(z), (l, f) => (a(), B(r(M), {
|
|
263
|
+
key: l[e.valueKey],
|
|
264
|
+
class: G(["sun-selector-option", { "sun-selector-option-active": u(l) }]),
|
|
251
265
|
clickable: !0,
|
|
252
|
-
onTap: (
|
|
253
|
-
},
|
|
254
|
-
start:
|
|
255
|
-
|
|
256
|
-
option:
|
|
266
|
+
onTap: (Z) => F(l)
|
|
267
|
+
}, D({
|
|
268
|
+
start: n(() => [
|
|
269
|
+
d(e.$slots, "option-start", {
|
|
270
|
+
option: l,
|
|
257
271
|
index: f,
|
|
258
|
-
active:
|
|
272
|
+
active: u(l)
|
|
259
273
|
})
|
|
260
274
|
]),
|
|
261
|
-
end:
|
|
262
|
-
|
|
263
|
-
option:
|
|
275
|
+
end: n(() => [
|
|
276
|
+
d(e.$slots, "option-end", {
|
|
277
|
+
option: l,
|
|
264
278
|
index: f,
|
|
265
|
-
active:
|
|
279
|
+
active: u(l)
|
|
266
280
|
})
|
|
267
281
|
]),
|
|
268
|
-
default:
|
|
269
|
-
|
|
270
|
-
option:
|
|
282
|
+
default: n(() => [
|
|
283
|
+
d(e.$slots, "option", {
|
|
284
|
+
option: l,
|
|
271
285
|
index: f,
|
|
272
|
-
active:
|
|
286
|
+
active: u(l)
|
|
273
287
|
}, () => [
|
|
274
|
-
|
|
288
|
+
y("view", De, T(l[e.labelKey]), 1)
|
|
275
289
|
])
|
|
276
290
|
]),
|
|
277
291
|
_: 2
|
|
278
292
|
}, [
|
|
279
|
-
|
|
293
|
+
u(l) ? {
|
|
280
294
|
name: "end",
|
|
281
|
-
fn:
|
|
282
|
-
|
|
295
|
+
fn: n(() => [
|
|
296
|
+
t[11] || (t[11] = y("van-icon", {
|
|
283
297
|
class: "sun-selector-option-icon",
|
|
284
298
|
slot: "right-icon",
|
|
285
299
|
name: "success"
|
|
@@ -294,18 +308,18 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
|
|
|
294
308
|
]),
|
|
295
309
|
_: 3
|
|
296
310
|
}),
|
|
297
|
-
|
|
298
|
-
|
|
311
|
+
d(e.$slots, "list", { ListTemplate: r(q) }, () => [
|
|
312
|
+
b(r(q))
|
|
299
313
|
])
|
|
300
314
|
]),
|
|
301
315
|
_: 2
|
|
302
316
|
}, [
|
|
303
|
-
|
|
317
|
+
$.value ? {
|
|
304
318
|
name: "extra",
|
|
305
|
-
fn:
|
|
306
|
-
|
|
319
|
+
fn: n(() => [
|
|
320
|
+
y("view", {
|
|
307
321
|
class: "sun-selector-clear-btn",
|
|
308
|
-
onTap:
|
|
322
|
+
onTap: t[4] || (t[4] = (l) => S())
|
|
309
323
|
}, "清除", 32)
|
|
310
324
|
]),
|
|
311
325
|
key: "0"
|
|
@@ -319,5 +333,5 @@ const u = Y, n = Z, p = _, h = x, v = ee, I = le, ke = te, M = oe, r = ae, P = s
|
|
|
319
333
|
}
|
|
320
334
|
});
|
|
321
335
|
export {
|
|
322
|
-
|
|
336
|
+
Me as default
|
|
323
337
|
};
|
package/index118.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import p from "./
|
|
2
|
-
import a from "./
|
|
3
|
-
import l from "./
|
|
4
|
-
import s from "./
|
|
5
|
-
import m from "./
|
|
1
|
+
import p from "./index128.js";
|
|
2
|
+
import a from "./index129.js";
|
|
3
|
+
import l from "./index130.js";
|
|
4
|
+
import s from "./index131.js";
|
|
5
|
+
import m from "./index132.js";
|
|
6
6
|
function t(o) {
|
|
7
7
|
var e = -1, h = o == null ? 0 : o.length;
|
|
8
8
|
for (this.clear(); ++e < h; ) {
|
package/index119.js
CHANGED
package/index127.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function e(t) {
|
|
2
|
+
var o = typeof t;
|
|
3
|
+
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
package/index128.js
CHANGED
package/index129.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var r = this.__data__;
|
|
5
|
-
if (e) {
|
|
6
|
-
var t = r[a];
|
|
7
|
-
return t === n ? void 0 : t;
|
|
8
|
-
}
|
|
9
|
-
return _.call(r, a) ? r[a] : void 0;
|
|
1
|
+
function s(t) {
|
|
2
|
+
var e = this.has(t) && delete this.__data__[t];
|
|
3
|
+
return this.size -= e ? 1 : 0, e;
|
|
10
4
|
}
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
s as default
|
|
13
7
|
};
|
package/index130.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import e from "./index134.js";
|
|
2
|
+
var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
|
|
3
|
+
function h(a) {
|
|
4
|
+
var r = this.__data__;
|
|
5
|
+
if (e) {
|
|
6
|
+
var t = r[a];
|
|
7
|
+
return t === n ? void 0 : t;
|
|
8
|
+
}
|
|
9
|
+
return _.call(r, a) ? r[a] : void 0;
|
|
6
10
|
}
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
h as default
|
|
9
13
|
};
|
package/index131.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
return
|
|
1
|
+
import r from "./index134.js";
|
|
2
|
+
var e = Object.prototype, o = e.hasOwnProperty;
|
|
3
|
+
function p(t) {
|
|
4
|
+
var a = this.__data__;
|
|
5
|
+
return r ? a[t] !== void 0 : o.call(a, t);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
p as default
|
|
9
9
|
};
|
package/index132.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./index134.js";
|
|
2
|
+
var h = "__lodash_hash_undefined__";
|
|
3
|
+
function s(t, a) {
|
|
4
|
+
var _ = this.__data__;
|
|
5
|
+
return this.size += this.has(t) ? 0 : 1, _[t] = e && a === void 0 ? h : a, this;
|
|
4
6
|
}
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
s as default
|
|
7
9
|
};
|
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,38 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
import o from "./index28.js";
|
|
2
|
+
var r = 1, n = 4;
|
|
3
|
+
function L(e) {
|
|
4
|
+
return o(e, r | n);
|
|
33
5
|
}
|
|
34
6
|
export {
|
|
35
|
-
|
|
36
|
-
h as createReusableTemplate,
|
|
37
|
-
d as makeDestructurable
|
|
7
|
+
L as default
|
|
38
8
|
};
|
package/index25.js
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
3
33
|
}
|
|
4
34
|
export {
|
|
5
|
-
|
|
35
|
+
f as camelize,
|
|
36
|
+
h as createReusableTemplate,
|
|
37
|
+
d as makeDestructurable
|
|
6
38
|
};
|
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 "./index24.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/package.json
CHANGED
package/selector/index.scss
CHANGED
package/selector/index.vue.d.ts
CHANGED
|
@@ -40,7 +40,8 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
40
40
|
slots: {
|
|
41
41
|
default?(_: {
|
|
42
42
|
present: () => void;
|
|
43
|
-
label:
|
|
43
|
+
label: any;
|
|
44
|
+
selectedOptions: any;
|
|
44
45
|
}): any;
|
|
45
46
|
end?(_: {}): any;
|
|
46
47
|
end?(_: {}): any;
|