@solar-taro/ui-vant 2.8.9 → 2.8.11
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 +144 -137
- package/index104.js +1 -1
- package/index105.js +5 -5
- package/index120.js +3 -3
- package/index121.js +9 -3
- package/index122.js +5 -9
- package/index123.js +4 -5
- package/index124.js +5 -4
- package/index125.js +3 -5
- package/index17.js +1 -1
- package/index19.js +1 -1
- package/index20.js +1 -1
- package/index23.js +1 -1
- package/index28.js +1 -1
- package/index56.js +7 -11
- package/index57.js +9 -7
- package/index58.js +11 -9
- package/index63.js +1 -1
- package/index64.js +1 -1
- package/index67.js +1 -1
- package/index68.js +1 -1
- package/package.json +1 -1
- package/selector/index.vue.d.ts +10 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 2.8.10 (2026-07-01)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **ui-vant/selector:** add keyword model property
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 2.8.9 (2026-06-30)
|
|
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.8.8 (2026-06-30)
|
|
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,17 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const d = x, T = ee, D = 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, W = me, b = ye, q = he, Be = ["label", "placeholder", "required", "disabled"], Ke = {
|
|
1
|
+
import { defineComponent as x, mergeModels as F, ref as I, computed as v, useModel as ee, renderSlot as le, toDisplayString as te, createTextVNode as oe, Fragment as ae, openBlock as ne, createElementBlock as se, createCommentVNode as re, renderList as ie, unref as ue, withCtx as de, createBlock as pe, createElementVNode as ce, mergeProps as fe, resolveDirective as ve, withDirectives as me, normalizeClass as ye, createSlots as he, createVNode as be, normalizeStyle as ge } from "vue";
|
|
2
|
+
import { SunTag as ke, SunLazyRender as Ve, SunVirtualScroll as $e, SunItem as P } from "@solar-taro/ui-sun";
|
|
3
|
+
import { createReusableTemplate as we } from "./index25.js";
|
|
4
|
+
import Se from "./index7.js";
|
|
5
|
+
import Te from "./index6.js";
|
|
6
|
+
import j from "./index26.js";
|
|
7
|
+
const u = le, K = te, D = oe, b = ae, n = ne, r = se, m = re, A = ie, p = ue, s = de, C = pe, y = ce, U = fe, Be = ve, G = me, H = ye, W = he, g = be, q = ge, Ke = ["label", "placeholder", "required", "disabled"], Ce = {
|
|
9
8
|
key: 0,
|
|
10
9
|
name: "input",
|
|
11
10
|
class: "sun-selector-input"
|
|
12
|
-
},
|
|
11
|
+
}, ze = { name: "right-icon" }, Ne = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], Le = { name: "right-icon" }, De = ["value"], We = { class: "sun-selector-option-label" }, Ie = /* @__PURE__ */ x({
|
|
13
12
|
__name: "index",
|
|
14
|
-
props: {
|
|
13
|
+
props: /* @__PURE__ */ F({
|
|
15
14
|
type: { default: "field" },
|
|
16
15
|
mode: { default: "single" },
|
|
17
16
|
label: {},
|
|
@@ -31,209 +30,214 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
|
|
|
31
30
|
virtual: { type: [Boolean, Object] },
|
|
32
31
|
refresher: { type: Boolean },
|
|
33
32
|
refreshing: { type: Boolean },
|
|
34
|
-
compareWith: { type: Function, default: (
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
compareWith: { type: Function, default: (k, z) => k === z }
|
|
34
|
+
}, {
|
|
35
|
+
keyword: { default: "" },
|
|
36
|
+
keywordModifiers: {}
|
|
37
|
+
}),
|
|
38
|
+
emits: /* @__PURE__ */ F(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
|
|
39
|
+
setup(k, { expose: z, emit: J }) {
|
|
40
|
+
const [Q, M] = we(), o = k, d = J, V = I(!1), h = I(!1), X = v(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), $ = ee(k, "keyword"), N = v(() => o.options.filter(
|
|
41
|
+
(e) => X.value(e, $.value.toLowerCase())
|
|
42
|
+
)), w = v(() => {
|
|
39
43
|
var e;
|
|
40
44
|
if (c.value) {
|
|
41
45
|
const t = o.options.find(
|
|
42
|
-
(
|
|
46
|
+
(a) => o.compareWith(a[o.valueKey], o.modelValue)
|
|
43
47
|
);
|
|
44
48
|
return t ? [t] : [];
|
|
45
49
|
}
|
|
46
50
|
return ((e = o.modelValue) != null ? e : []).map(
|
|
47
|
-
(t) => o.options.find((
|
|
51
|
+
(t) => o.options.find((a) => o.compareWith(a[o.valueKey], t))
|
|
48
52
|
).filter(Boolean);
|
|
49
|
-
}), L = v(() =>
|
|
50
|
-
var
|
|
53
|
+
}), L = v(() => w.value.map((e) => e[o.labelKey]).join(o.delimiter)), S = v(() => !Z(o.modelValue) && o.clearable), c = v(() => o.mode === "single"), Y = v(() => {
|
|
54
|
+
var a, l;
|
|
51
55
|
let e, t = 47;
|
|
52
|
-
return typeof o.virtual != "boolean" && (
|
|
56
|
+
return typeof o.virtual != "boolean" && (a = o.virtual) != null && a.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
|
|
53
57
|
});
|
|
54
|
-
function
|
|
55
|
-
return
|
|
58
|
+
function Z(e) {
|
|
59
|
+
return j(e) ? !0 : c.value ? !1 : e.length < 1;
|
|
56
60
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
61
|
+
function i(e) {
|
|
62
|
+
var a;
|
|
59
63
|
const t = e[o.valueKey];
|
|
60
|
-
return c.value ?
|
|
64
|
+
return c.value ? j(o.modelValue) ? !1 : o.compareWith(o.modelValue, t) : ((a = o.modelValue) == null ? void 0 : a.some((l) => o.compareWith(l, t))) || !1;
|
|
61
65
|
}
|
|
62
|
-
function
|
|
63
|
-
o.disabled || (
|
|
64
|
-
|
|
66
|
+
function T() {
|
|
67
|
+
o.disabled || (V.value = !0, h.value || setTimeout(() => {
|
|
68
|
+
h.value = !0;
|
|
65
69
|
}, 300));
|
|
66
70
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
71
|
+
function O() {
|
|
72
|
+
V.value = !1, d("close");
|
|
69
73
|
}
|
|
70
|
-
function
|
|
74
|
+
function R() {
|
|
71
75
|
var t;
|
|
72
76
|
const e = ((t = o.modelValue) == null ? void 0 : t.map(
|
|
73
|
-
(
|
|
74
|
-
(l) => o.compareWith(l[o.valueKey],
|
|
77
|
+
(a) => o.options.find(
|
|
78
|
+
(l) => o.compareWith(l[o.valueKey], a)
|
|
75
79
|
)
|
|
76
80
|
)) || [];
|
|
77
|
-
|
|
81
|
+
d("confirm", e), O();
|
|
78
82
|
}
|
|
79
|
-
function
|
|
83
|
+
function E(e) {
|
|
80
84
|
const t = e[o.valueKey];
|
|
81
|
-
let
|
|
82
|
-
c.value ? (
|
|
85
|
+
let a = o.modelValue;
|
|
86
|
+
c.value ? (i(e) ? o.required || (d("unselect", e), a = null) : (d("select", e), a = t), O()) : i(e) ? (d("unselect", e), a = o.modelValue.filter(
|
|
83
87
|
(l) => !o.compareWith(l, t)
|
|
84
|
-
)) : (
|
|
88
|
+
)) : (d("select", e), a = (o.modelValue || []).concat(
|
|
85
89
|
e[o.valueKey]
|
|
86
|
-
)),
|
|
90
|
+
)), d("update:modelValue", a);
|
|
87
91
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
92
|
+
function B() {
|
|
93
|
+
d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
|
|
90
94
|
}
|
|
91
|
-
return
|
|
92
|
-
present:
|
|
93
|
-
clear:
|
|
94
|
-
keyword:
|
|
95
|
+
return z({
|
|
96
|
+
present: T,
|
|
97
|
+
clear: B,
|
|
98
|
+
keyword: $
|
|
95
99
|
}), (e, t) => {
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
present:
|
|
100
|
+
const a = Be("readonly");
|
|
101
|
+
return n(), r(b, null, [
|
|
102
|
+
u(e.$slots, "default", {
|
|
103
|
+
present: T,
|
|
100
104
|
label: L.value,
|
|
101
|
-
selectedOptions:
|
|
105
|
+
selectedOptions: w.value
|
|
102
106
|
}, () => [
|
|
103
|
-
e.type === "field" ?
|
|
107
|
+
e.type === "field" ? G((n(), r("van-field", U({ key: 0 }, e.$attrs, {
|
|
104
108
|
class: "sun-selector",
|
|
105
109
|
label: e.label,
|
|
106
110
|
placeholder: e.placeholder,
|
|
107
111
|
required: e.required,
|
|
108
112
|
disabled: e.disabled,
|
|
109
|
-
onClickInput: t[1] || (t[1] = (l) =>
|
|
113
|
+
onClickInput: t[1] || (t[1] = (l) => T())
|
|
110
114
|
}), [
|
|
111
|
-
|
|
112
|
-
c.value ? (
|
|
113
|
-
D(
|
|
114
|
-
], 64)) : (
|
|
115
|
+
w.value.length ? (n(), r("slot-view", Ce, [
|
|
116
|
+
c.value ? (n(), r(b, { key: 0 }, [
|
|
117
|
+
D(K(L.value), 1)
|
|
118
|
+
], 64)) : (n(!0), r(b, { key: 1 }, A(w.value, (l) => (n(), C(p(ke), {
|
|
115
119
|
color: "medium",
|
|
116
120
|
type: "translucent"
|
|
117
121
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
D(
|
|
122
|
+
default: s(() => [
|
|
123
|
+
D(K(l[e.labelKey]), 1)
|
|
120
124
|
]),
|
|
121
125
|
_: 2
|
|
122
126
|
}, 1024))), 256))
|
|
123
127
|
])) : m("", !0),
|
|
124
|
-
y("slot-view",
|
|
125
|
-
|
|
128
|
+
y("slot-view", ze, [
|
|
129
|
+
S.value ? (n(), r("van-icon", {
|
|
126
130
|
key: 0,
|
|
127
131
|
class: "sun-selector-clear-icon",
|
|
128
132
|
name: "clear",
|
|
129
|
-
onTap: t[0] || (t[0] = (l) =>
|
|
133
|
+
onTap: t[0] || (t[0] = (l) => B())
|
|
130
134
|
}, null, 32)) : m("", !0),
|
|
131
|
-
|
|
135
|
+
u(e.$slots, "end")
|
|
132
136
|
])
|
|
133
|
-
], 16,
|
|
134
|
-
[
|
|
135
|
-
]) : e.type === "search" ?
|
|
137
|
+
], 16, Ke)), [
|
|
138
|
+
[a]
|
|
139
|
+
]) : e.type === "search" ? G((n(), r("van-search", U({ key: 1 }, e.$attrs, {
|
|
136
140
|
class: "sun-selector",
|
|
137
141
|
label: e.label,
|
|
138
142
|
value: L.value,
|
|
139
143
|
placeholder: e.placeholder,
|
|
140
|
-
"use-right-icon-slot":
|
|
144
|
+
"use-right-icon-slot": S.value,
|
|
141
145
|
shape: "round",
|
|
142
146
|
clearable: !1,
|
|
143
147
|
disabled: e.disabled,
|
|
144
|
-
onClickInput: t[3] || (t[3] = (l) =>
|
|
148
|
+
onClickInput: t[3] || (t[3] = (l) => T())
|
|
145
149
|
}), [
|
|
146
|
-
y("slot-view",
|
|
147
|
-
|
|
150
|
+
y("slot-view", Le, [
|
|
151
|
+
S.value ? (n(), r("van-icon", {
|
|
148
152
|
key: 0,
|
|
149
153
|
class: "sun-selector-clear-icon",
|
|
150
154
|
name: "clear",
|
|
151
|
-
onTap: t[2] || (t[2] = (l) =>
|
|
155
|
+
onTap: t[2] || (t[2] = (l) => B())
|
|
152
156
|
}, null, 32)) : m("", !0),
|
|
153
|
-
|
|
157
|
+
u(e.$slots, "end")
|
|
154
158
|
])
|
|
155
|
-
], 16,
|
|
156
|
-
[
|
|
159
|
+
], 16, Ne)), [
|
|
160
|
+
[a]
|
|
157
161
|
]) : m("", !0)
|
|
158
162
|
]),
|
|
159
|
-
|
|
160
|
-
default:
|
|
161
|
-
|
|
162
|
-
show:
|
|
163
|
-
"onUpdate:show": t[9] || (t[9] = (l) =>
|
|
163
|
+
g(p(Ve), { hook: "created" }, {
|
|
164
|
+
default: s(() => [
|
|
165
|
+
g(p(Se), {
|
|
166
|
+
show: V.value,
|
|
167
|
+
"onUpdate:show": t[9] || (t[9] = (l) => V.value = l),
|
|
164
168
|
title: e.placeholder,
|
|
165
169
|
"show-buttons": !c.value
|
|
166
170
|
}, W({
|
|
167
|
-
buttons:
|
|
168
|
-
|
|
169
|
-
c.value ? m("", !0) : (
|
|
171
|
+
buttons: s(() => [
|
|
172
|
+
u(e.$slots, "buttons", { confirm: R }, () => [
|
|
173
|
+
c.value ? m("", !0) : (n(), r("van-button", {
|
|
170
174
|
key: 0,
|
|
171
175
|
type: "primary",
|
|
172
176
|
round: "true",
|
|
173
177
|
block: "true",
|
|
174
|
-
onTap: t[8] || (t[8] = (l) =>
|
|
178
|
+
onTap: t[8] || (t[8] = (l) => R())
|
|
175
179
|
}, "确定", 32))
|
|
176
180
|
])
|
|
177
181
|
]),
|
|
178
|
-
default:
|
|
179
|
-
|
|
180
|
-
e.searchable ? (
|
|
182
|
+
default: s(() => [
|
|
183
|
+
u(e.$slots, "filter", { rendered: h.value }, () => [
|
|
184
|
+
e.searchable ? (n(), r("van-search", {
|
|
181
185
|
key: 0,
|
|
182
186
|
shape: "round",
|
|
183
187
|
"input-align": "center",
|
|
184
|
-
value:
|
|
188
|
+
value: $.value,
|
|
185
189
|
placeholder: "输入关键字搜索",
|
|
186
|
-
onChange: t[5] || (t[5] = (l) =>
|
|
187
|
-
}, null, 40,
|
|
190
|
+
onChange: t[5] || (t[5] = (l) => $.value = l.detail.trim())
|
|
191
|
+
}, null, 40, De)) : m("", !0)
|
|
188
192
|
]),
|
|
189
|
-
|
|
190
|
-
default:
|
|
191
|
-
e.virtual ? (
|
|
192
|
-
|
|
193
|
+
g(p(Q), null, {
|
|
194
|
+
default: s(() => [
|
|
195
|
+
e.virtual ? (n(), r(b, { key: 0 }, [
|
|
196
|
+
h.value ? (n(), C(p($e), {
|
|
193
197
|
key: 0,
|
|
194
198
|
class: "sun-selector-options",
|
|
195
199
|
refresher: e.refresher,
|
|
196
200
|
refreshing: e.refreshing,
|
|
197
|
-
items:
|
|
198
|
-
"item-size":
|
|
201
|
+
items: N.value,
|
|
202
|
+
"item-size": Y.value.itemSize,
|
|
199
203
|
"item-key": e.valueKey,
|
|
200
204
|
style: q({ height: e.height }),
|
|
201
|
-
onRefresh: t[6] || (t[6] = (l) =>
|
|
205
|
+
onRefresh: t[6] || (t[6] = (l) => d("refresh"))
|
|
202
206
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
205
|
-
class:
|
|
207
|
+
default: s(({ item: l, index: f }) => [
|
|
208
|
+
g(p(P), {
|
|
209
|
+
class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
|
|
206
210
|
clickable: !0,
|
|
207
|
-
onTap: (
|
|
211
|
+
onTap: (_) => E(l)
|
|
208
212
|
}, W({
|
|
209
|
-
start:
|
|
210
|
-
|
|
213
|
+
start: s(() => [
|
|
214
|
+
u(e.$slots, "option-start", {
|
|
211
215
|
option: l,
|
|
212
216
|
index: f,
|
|
213
|
-
active:
|
|
217
|
+
active: i(l)
|
|
214
218
|
})
|
|
215
219
|
]),
|
|
216
|
-
end:
|
|
217
|
-
|
|
220
|
+
end: s(() => [
|
|
221
|
+
u(e.$slots, "option-end", {
|
|
218
222
|
option: l,
|
|
219
223
|
index: f,
|
|
220
|
-
active:
|
|
224
|
+
active: i(l)
|
|
221
225
|
})
|
|
222
226
|
]),
|
|
223
|
-
default:
|
|
224
|
-
|
|
227
|
+
default: s(() => [
|
|
228
|
+
u(e.$slots, "option", {
|
|
225
229
|
option: l,
|
|
226
230
|
index: f,
|
|
227
|
-
active:
|
|
231
|
+
active: i(l)
|
|
228
232
|
}, () => [
|
|
229
|
-
D(
|
|
233
|
+
D(K(l[e.labelKey]), 1)
|
|
230
234
|
])
|
|
231
235
|
]),
|
|
232
236
|
_: 2
|
|
233
237
|
}, [
|
|
234
|
-
|
|
238
|
+
i(l) ? {
|
|
235
239
|
name: "end",
|
|
236
|
-
fn:
|
|
240
|
+
fn: s(() => [
|
|
237
241
|
t[10] || (t[10] = y("van-icon", {
|
|
238
242
|
class: "sun-selector-option-icon",
|
|
239
243
|
name: "success"
|
|
@@ -244,56 +248,56 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
|
|
|
244
248
|
]), 1032, ["class", "onTap"])
|
|
245
249
|
]),
|
|
246
250
|
_: 3
|
|
247
|
-
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (
|
|
251
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), r("view", {
|
|
248
252
|
key: 1,
|
|
249
253
|
style: q({ height: e.height })
|
|
250
254
|
}, null, 4))
|
|
251
|
-
], 64)) : (
|
|
255
|
+
], 64)) : (n(), C(p(Te), {
|
|
252
256
|
key: 1,
|
|
253
257
|
class: "sun-selector-options",
|
|
254
258
|
refresher: e.refresher,
|
|
255
259
|
refreshing: e.refreshing,
|
|
256
|
-
data:
|
|
260
|
+
data: N.value,
|
|
257
261
|
loading: e.loading,
|
|
258
262
|
"empty-type": "search",
|
|
259
263
|
style: q({ height: e.height }),
|
|
260
|
-
onRefresh: t[7] || (t[7] = (l) =>
|
|
264
|
+
onRefresh: t[7] || (t[7] = (l) => d("refresh"))
|
|
261
265
|
}, {
|
|
262
|
-
default:
|
|
263
|
-
(
|
|
266
|
+
default: s(() => [
|
|
267
|
+
(n(!0), r(b, null, A(N.value, (l, f) => (n(), C(p(P), {
|
|
264
268
|
key: l[e.valueKey],
|
|
265
|
-
class:
|
|
269
|
+
class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
|
|
266
270
|
clickable: !0,
|
|
267
|
-
onTap: (
|
|
271
|
+
onTap: (_) => E(l)
|
|
268
272
|
}, W({
|
|
269
|
-
start:
|
|
270
|
-
|
|
273
|
+
start: s(() => [
|
|
274
|
+
u(e.$slots, "option-start", {
|
|
271
275
|
option: l,
|
|
272
276
|
index: f,
|
|
273
|
-
active:
|
|
277
|
+
active: i(l)
|
|
274
278
|
})
|
|
275
279
|
]),
|
|
276
|
-
end:
|
|
277
|
-
|
|
280
|
+
end: s(() => [
|
|
281
|
+
u(e.$slots, "option-end", {
|
|
278
282
|
option: l,
|
|
279
283
|
index: f,
|
|
280
|
-
active:
|
|
284
|
+
active: i(l)
|
|
281
285
|
})
|
|
282
286
|
]),
|
|
283
|
-
default:
|
|
284
|
-
|
|
287
|
+
default: s(() => [
|
|
288
|
+
u(e.$slots, "option", {
|
|
285
289
|
option: l,
|
|
286
290
|
index: f,
|
|
287
|
-
active:
|
|
291
|
+
active: i(l)
|
|
288
292
|
}, () => [
|
|
289
|
-
y("view",
|
|
293
|
+
y("view", We, K(l[e.labelKey]), 1)
|
|
290
294
|
])
|
|
291
295
|
]),
|
|
292
296
|
_: 2
|
|
293
297
|
}, [
|
|
294
|
-
|
|
298
|
+
i(l) ? {
|
|
295
299
|
name: "end",
|
|
296
|
-
fn:
|
|
300
|
+
fn: s(() => [
|
|
297
301
|
t[11] || (t[11] = y("van-icon", {
|
|
298
302
|
class: "sun-selector-option-icon",
|
|
299
303
|
slot: "right-icon",
|
|
@@ -309,18 +313,21 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
|
|
|
309
313
|
]),
|
|
310
314
|
_: 3
|
|
311
315
|
}),
|
|
312
|
-
|
|
313
|
-
|
|
316
|
+
u(e.$slots, "list", {
|
|
317
|
+
rendered: h.value,
|
|
318
|
+
ListTemplate: p(M)
|
|
319
|
+
}, () => [
|
|
320
|
+
g(p(M))
|
|
314
321
|
])
|
|
315
322
|
]),
|
|
316
323
|
_: 2
|
|
317
324
|
}, [
|
|
318
|
-
|
|
325
|
+
S.value ? {
|
|
319
326
|
name: "extra",
|
|
320
|
-
fn:
|
|
327
|
+
fn: s(() => [
|
|
321
328
|
y("view", {
|
|
322
329
|
class: "sun-selector-clear-btn",
|
|
323
|
-
onTap: t[4] || (t[4] = (l) =>
|
|
330
|
+
onTap: t[4] || (t[4] = (l) => B())
|
|
324
331
|
}, "清除", 32)
|
|
325
332
|
]),
|
|
326
333
|
key: "0"
|
|
@@ -334,5 +341,5 @@ const d = x, T = ee, D = le, h = te, a = oe, i = se, m = ae, j = ne, r = re, n =
|
|
|
334
341
|
}
|
|
335
342
|
});
|
|
336
343
|
export {
|
|
337
|
-
|
|
344
|
+
Ie as default
|
|
338
345
|
};
|
package/index104.js
CHANGED
package/index105.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import p from "./
|
|
2
|
-
import a from "./
|
|
3
|
-
import i from "./
|
|
4
|
-
import h from "./
|
|
5
|
-
import s from "./
|
|
1
|
+
import p from "./index120.js";
|
|
2
|
+
import a from "./index121.js";
|
|
3
|
+
import i from "./index122.js";
|
|
4
|
+
import h from "./index123.js";
|
|
5
|
+
import s from "./index124.js";
|
|
6
6
|
function t(e) {
|
|
7
7
|
var o = -1, l = e == null ? 0 : e.length;
|
|
8
8
|
for (this.clear(); ++o < l; ) {
|
package/index120.js
CHANGED
package/index121.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import s from "./index133.js";
|
|
2
|
+
var i = Array.prototype, l = i.splice;
|
|
3
|
+
function n(r) {
|
|
4
|
+
var e = this.__data__, a = s(e, r);
|
|
5
|
+
if (a < 0)
|
|
6
|
+
return !1;
|
|
7
|
+
var t = e.length - 1;
|
|
8
|
+
return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
|
|
3
9
|
}
|
|
4
10
|
export {
|
|
5
|
-
|
|
11
|
+
n as default
|
|
6
12
|
};
|
package/index122.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (a < 0)
|
|
6
|
-
return !1;
|
|
7
|
-
var t = e.length - 1;
|
|
8
|
-
return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
|
|
1
|
+
import d from "./index133.js";
|
|
2
|
+
function i(e) {
|
|
3
|
+
var t = this.__data__, a = d(t, e);
|
|
4
|
+
return a < 0 ? void 0 : t[a][1];
|
|
9
5
|
}
|
|
10
6
|
export {
|
|
11
|
-
|
|
7
|
+
i as default
|
|
12
8
|
};
|
package/index123.js
CHANGED
package/index124.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import e from "./index133.js";
|
|
2
|
+
function d(s, i) {
|
|
3
|
+
var t = this.__data__, a = e(t, s);
|
|
4
|
+
return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
|
|
4
5
|
}
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
d as default
|
|
7
8
|
};
|
package/index125.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var t = this.__data__, a = e(t, s);
|
|
4
|
-
return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
|
|
1
|
+
function u(e, n) {
|
|
2
|
+
return e == null ? void 0 : e[n];
|
|
5
3
|
}
|
|
6
4
|
export {
|
|
7
|
-
|
|
5
|
+
u as default
|
|
8
6
|
};
|
package/index17.js
CHANGED
package/index19.js
CHANGED
package/index20.js
CHANGED
package/index23.js
CHANGED
package/index28.js
CHANGED
package/index56.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var n = f[s], r = void 0;
|
|
8
|
-
r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
|
|
9
|
-
}
|
|
10
|
-
return i;
|
|
1
|
+
import t from "./index57.js";
|
|
2
|
+
import i from "./index29.js";
|
|
3
|
+
var s = Object.prototype, p = s.hasOwnProperty;
|
|
4
|
+
function l(r, a, o) {
|
|
5
|
+
var n = r[a];
|
|
6
|
+
(!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
|
|
11
7
|
}
|
|
12
8
|
export {
|
|
13
|
-
|
|
9
|
+
l as default
|
|
14
10
|
};
|
package/index57.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import u from "./index61.js";
|
|
2
|
+
function i(r, e, t) {
|
|
3
|
+
e == "__proto__" && u ? u(r, e, {
|
|
4
|
+
configurable: !0,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
value: t,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : r[e] = t;
|
|
7
9
|
}
|
|
8
10
|
export {
|
|
9
|
-
|
|
11
|
+
i as default
|
|
10
12
|
};
|
package/index58.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import m from "./index56.js";
|
|
2
|
+
import t from "./index57.js";
|
|
3
|
+
function v(a, f, i, u) {
|
|
4
|
+
var d = !i;
|
|
5
|
+
i || (i = {});
|
|
6
|
+
for (var s = -1, e = f.length; ++s < e; ) {
|
|
7
|
+
var n = f[s], r = void 0;
|
|
8
|
+
r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
|
|
9
|
+
}
|
|
10
|
+
return i;
|
|
9
11
|
}
|
|
10
12
|
export {
|
|
11
|
-
|
|
13
|
+
v as default
|
|
12
14
|
};
|
package/index63.js
CHANGED
package/index64.js
CHANGED
package/index67.js
CHANGED
package/index68.js
CHANGED
package/package.json
CHANGED
package/selector/index.vue.d.ts
CHANGED
|
@@ -6,8 +6,11 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
6
6
|
readonly onConfirm?: ((args_0: T[]) => any) | undefined;
|
|
7
7
|
readonly "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
|
|
8
8
|
readonly onRefresh?: (() => any) | undefined;
|
|
9
|
+
readonly "onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
9
10
|
readonly onUnselect?: ((args_0: T) => any) | undefined;
|
|
10
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUnselect"> & {
|
|
11
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUpdate:keyword" | "onUnselect"> & ({
|
|
12
|
+
keyword?: string;
|
|
13
|
+
} & {
|
|
11
14
|
type?: "field" | "search";
|
|
12
15
|
mode?: "single" | "multiple";
|
|
13
16
|
label?: string;
|
|
@@ -31,18 +34,18 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
31
34
|
refresher?: boolean;
|
|
32
35
|
refreshing?: boolean;
|
|
33
36
|
compareWith?: (a: any, b: any) => boolean;
|
|
34
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
37
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
35
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
36
39
|
present: () => void;
|
|
37
40
|
clear: () => void;
|
|
38
|
-
keyword: import('vue').
|
|
41
|
+
keyword: import('vue').ModelRef<string, string, string, string>;
|
|
39
42
|
}>): void;
|
|
40
43
|
attrs: any;
|
|
41
44
|
slots: {
|
|
42
45
|
default?(_: {
|
|
43
46
|
present: () => void;
|
|
44
|
-
label:
|
|
45
|
-
selectedOptions:
|
|
47
|
+
label: string;
|
|
48
|
+
selectedOptions: T[];
|
|
46
49
|
}): any;
|
|
47
50
|
end?(_: {}): any;
|
|
48
51
|
end?(_: {}): any;
|
|
@@ -80,13 +83,14 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
80
83
|
active: boolean;
|
|
81
84
|
}): any;
|
|
82
85
|
list?(_: {
|
|
86
|
+
rendered: boolean;
|
|
83
87
|
ListTemplate: import('@vueuse/core').ReuseTemplateComponent<Record<string, any>, Record<"default", undefined>>;
|
|
84
88
|
}): any;
|
|
85
89
|
buttons?(_: {
|
|
86
90
|
confirm: () => void;
|
|
87
91
|
}): any;
|
|
88
92
|
};
|
|
89
|
-
emit: ((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void);
|
|
93
|
+
emit: (((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void)) & ((evt: "update:keyword", value: string) => void);
|
|
90
94
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
91
95
|
[key: string]: any;
|
|
92
96
|
}> & {
|