@solar-taro/ui-vant 2.9.0 → 3.0.0
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 +4 -0
- package/index.d.ts +0 -1
- package/index.js +18 -20
- package/index10.js +17 -341
- package/index100.js +6 -4
- package/index101.js +10 -6
- package/index102.js +6 -6
- package/index103.js +18 -10
- package/index104.js +4 -6
- package/index105.js +4 -17
- package/index106.js +3 -4
- package/index107.js +3 -4
- package/index108.js +14 -3
- package/index109.js +8 -4
- package/index11.js +3 -18
- package/index110.js +5 -14
- package/index111.js +6 -8
- package/index112.js +5 -5
- package/index113.js +5 -5
- package/index114.js +5 -5
- package/index115.js +3 -6
- package/index116.js +17 -5
- package/index117.js +6 -3
- package/index118.js +3 -17
- package/index119.js +3 -5
- package/index12.js +28 -3
- package/index120.js +9 -3
- package/index121.js +5 -3
- package/index122.js +4 -9
- package/index123.js +5 -5
- package/index124.js +3 -5
- package/index125.js +4 -5
- package/index126.js +5 -3
- package/index127.js +10 -4
- package/index128.js +6 -4
- package/index129.js +6 -10
- package/index13.js +4 -28
- package/index130.js +4 -6
- package/index131.js +7 -6
- package/index132.js +3 -5
- package/index14.js +64 -5
- package/index15.js +2 -64
- package/index17.js +2 -6
- package/index18.js +1 -1
- package/index2.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +6 -2
- package/index23.js +36 -2
- package/index24.js +4 -2
- package/index25.js +23 -34
- package/index26.js +62 -3
- package/index27.js +3 -62
- package/index28.js +8 -4
- package/index29.js +6 -7
- package/index30.js +3 -6
- package/index31.js +2 -4
- package/index32.js +6 -2
- package/index33.js +9 -5
- package/index34.js +4 -9
- package/index35.js +4 -5
- package/index36.js +3 -4
- package/index37.js +4 -3
- package/index38.js +7 -3
- package/index39.js +4 -7
- package/index4.js +1 -1
- package/index40.js +5 -5
- package/index41.js +7 -5
- package/index42.js +5 -6
- package/index43.js +9 -6
- package/index44.js +5 -9
- package/index45.js +7 -5
- package/index46.js +4 -6
- package/index47.js +10 -5
- package/index48.js +6 -9
- package/index49.js +17 -6
- package/index5.js +1 -1
- package/index50.js +11 -17
- package/index51.js +6 -11
- package/index52.js +12 -6
- package/index53.js +3 -12
- package/index54.js +11 -3
- package/index55.js +7 -24
- package/index56.js +9 -7
- package/index57.js +5 -9
- package/index58.js +8 -11
- package/index6.js +45 -90
- package/index60.js +15 -5
- package/index61.js +6 -9
- package/index62.js +5 -15
- package/index63.js +8 -5
- package/index64.js +6 -5
- package/index65.js +5 -8
- package/index66.js +5 -6
- package/index67.js +5 -4
- package/index68.js +6 -5
- package/index69.js +26 -7
- package/index7.js +261 -46
- package/index70.js +5 -6
- package/index71.js +40 -26
- package/index72.js +4 -3
- package/index73.js +5 -39
- package/index74.js +15 -7
- package/index75.js +7 -5
- package/index76.js +2 -15
- package/index77.js +3 -8
- package/index78.js +4 -2
- package/index79.js +4 -3
- package/index8.js +54 -261
- package/index80.js +4 -13
- package/index81.js +4 -5
- package/index82.js +4 -3
- package/index83.js +14 -3
- package/index84.js +3 -4
- package/index85.js +13 -4
- package/index86.js +5 -4
- package/index87.js +14 -4
- package/index88.js +8 -14
- package/index89.js +3 -14
- package/index9.js +334 -52
- package/index90.js +5 -8
- package/index91.js +6 -3
- package/index92.js +5 -5
- package/index93.js +7 -5
- package/index94.js +17 -5
- package/index95.js +10 -7
- package/index96.js +5 -17
- package/index97.js +4 -10
- package/index98.js +4 -5
- package/index99.js +5 -4
- package/package.json +1 -1
- package/selector/index.vue.d.ts +3 -3
- package/index133.js +0 -10
- package/index134.js +0 -5
- package/list/index.d.ts +0 -1
- package/list/index.vue.d.ts +0 -110
package/index9.js
CHANGED
|
@@ -1,64 +1,346 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as x, mergeModels as F, ref as I, computed as f, 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 ve, resolveDirective as fe, 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, SunEmpty as we, SunList as Se } from "@solar-taro/ui-sun";
|
|
3
|
+
import { createReusableTemplate as Te } from "./index23.js";
|
|
4
|
+
import Be from "./index6.js";
|
|
5
|
+
import j from "./index24.js";
|
|
6
|
+
const u = le, K = te, D = oe, g = ae, n = ne, r = se, m = re, A = ie, p = ue, s = de, C = pe, y = ce, U = ve, Ke = fe, G = me, H = ye, W = he, h = be, q = ge, Ce = ["label", "placeholder", "required", "disabled"], ze = {
|
|
7
|
+
key: 0,
|
|
8
|
+
name: "input",
|
|
9
|
+
class: "sun-selector-input"
|
|
10
|
+
}, Ne = { name: "right-icon" }, Le = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], De = { name: "right-icon" }, We = ["value"], qe = { class: "sun-selector-option-label" }, Ie = /* @__PURE__ */ x({
|
|
5
11
|
__name: "index",
|
|
6
|
-
props: {
|
|
7
|
-
|
|
12
|
+
props: /* @__PURE__ */ F({
|
|
13
|
+
type: { default: "field" },
|
|
14
|
+
mode: { default: "single" },
|
|
15
|
+
label: {},
|
|
16
|
+
placeholder: { default: "请选择" },
|
|
17
|
+
modelValue: {},
|
|
18
|
+
options: {},
|
|
8
19
|
labelKey: { default: "fullName" },
|
|
9
20
|
valueKey: { default: "id" },
|
|
10
|
-
searchable: { type: Boolean, default: !0 },
|
|
11
|
-
title: {},
|
|
12
21
|
loading: { type: Boolean },
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
height: { default: "64vh" },
|
|
23
|
+
required: { type: Boolean },
|
|
24
|
+
disabled: { type: Boolean },
|
|
25
|
+
delimiter: { default: ", " },
|
|
26
|
+
searchable: { type: Boolean, default: !0 },
|
|
27
|
+
clearable: { type: Boolean, default: !0 },
|
|
28
|
+
searcher: {},
|
|
29
|
+
virtual: { type: [Boolean, Object] },
|
|
30
|
+
refresher: { type: Boolean },
|
|
31
|
+
refreshing: { type: Boolean },
|
|
32
|
+
compareWith: { type: Function, default: (k, z) => k === z }
|
|
33
|
+
}, {
|
|
34
|
+
keyword: { default: "" },
|
|
35
|
+
keywordModifiers: {}
|
|
36
|
+
}),
|
|
37
|
+
emits: /* @__PURE__ */ F(["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"], ["update:keyword"]),
|
|
38
|
+
setup(k, { expose: z, emit: J }) {
|
|
39
|
+
const [Q, E] = Te(), o = k, d = J, V = I(!1), b = I(!1), X = f(() => o.searcher || ((e, t) => e[o.labelKey].toLowerCase().includes(t))), $ = ee(k, "keyword"), N = f(() => o.options.filter(
|
|
40
|
+
(e) => X.value(e, $.value.toLowerCase())
|
|
41
|
+
)), w = f(() => {
|
|
20
42
|
var e;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
43
|
+
if (c.value) {
|
|
44
|
+
const t = o.options.find(
|
|
45
|
+
(a) => o.compareWith(a[o.valueKey], o.modelValue)
|
|
46
|
+
);
|
|
47
|
+
return t ? [t] : [];
|
|
48
|
+
}
|
|
49
|
+
return ((e = o.modelValue) != null ? e : []).map(
|
|
50
|
+
(t) => o.options.find((a) => o.compareWith(a[o.valueKey], t))
|
|
51
|
+
).filter(Boolean);
|
|
52
|
+
}), L = f(() => w.value.map((e) => e[o.labelKey]).join(o.delimiter)), S = f(() => !Z(o.modelValue) && o.clearable), c = f(() => o.mode === "single"), Y = f(() => {
|
|
53
|
+
var a, l;
|
|
54
|
+
let e, t = 47;
|
|
55
|
+
return typeof o.virtual != "boolean" && (a = o.virtual) != null && a.itemSize && (t = (l = o.virtual) == null ? void 0 : l.itemSize), { id: e, itemSize: t };
|
|
56
|
+
});
|
|
57
|
+
function Z(e) {
|
|
58
|
+
return j(e) ? !0 : c.value ? !1 : e.length < 1;
|
|
59
|
+
}
|
|
60
|
+
function i(e) {
|
|
61
|
+
var a;
|
|
62
|
+
const t = e[o.valueKey];
|
|
63
|
+
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;
|
|
64
|
+
}
|
|
65
|
+
function T() {
|
|
66
|
+
o.disabled || (V.value = !0, b.value || setTimeout(() => {
|
|
67
|
+
b.value = !0;
|
|
68
|
+
}, 300));
|
|
69
|
+
}
|
|
70
|
+
function M() {
|
|
71
|
+
V.value = !1, d("close");
|
|
72
|
+
}
|
|
73
|
+
function O() {
|
|
74
|
+
var t;
|
|
75
|
+
const e = ((t = o.modelValue) == null ? void 0 : t.map(
|
|
76
|
+
(a) => o.options.find(
|
|
77
|
+
(l) => o.compareWith(l[o.valueKey], a)
|
|
78
|
+
)
|
|
79
|
+
)) || [];
|
|
80
|
+
d("confirm", e), M();
|
|
28
81
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
82
|
+
function R(e) {
|
|
83
|
+
const t = e[o.valueKey];
|
|
84
|
+
let a = o.modelValue;
|
|
85
|
+
c.value ? (i(e) ? o.required || (d("unselect", e), a = null) : (d("select", e), a = t), M()) : i(e) ? (d("unselect", e), a = o.modelValue.filter(
|
|
86
|
+
(l) => !o.compareWith(l, t)
|
|
87
|
+
)) : (d("select", e), a = (o.modelValue || []).concat(
|
|
88
|
+
e[o.valueKey]
|
|
89
|
+
)), d("update:modelValue", a);
|
|
31
90
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
91
|
+
function B() {
|
|
92
|
+
d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
|
|
34
93
|
}
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
94
|
+
return z({
|
|
95
|
+
present: T,
|
|
96
|
+
clear: B,
|
|
97
|
+
keyword: $
|
|
98
|
+
}), (e, t) => {
|
|
99
|
+
const a = Ke("readonly");
|
|
100
|
+
return n(), r(g, null, [
|
|
101
|
+
u(e.$slots, "default", {
|
|
102
|
+
present: T,
|
|
103
|
+
label: L.value,
|
|
104
|
+
selectedOptions: w.value
|
|
105
|
+
}, () => [
|
|
106
|
+
e.type === "field" ? G((n(), r("van-field", U({ key: 0 }, e.$attrs, {
|
|
107
|
+
class: "sun-selector",
|
|
108
|
+
label: e.label,
|
|
109
|
+
placeholder: e.placeholder,
|
|
110
|
+
required: e.required,
|
|
111
|
+
disabled: e.disabled,
|
|
112
|
+
onClickInput: t[1] || (t[1] = (l) => T())
|
|
113
|
+
}), [
|
|
114
|
+
w.value.length ? (n(), r("slot-view", ze, [
|
|
115
|
+
c.value ? (n(), r(g, { key: 0 }, [
|
|
116
|
+
D(K(L.value), 1)
|
|
117
|
+
], 64)) : (n(!0), r(g, { key: 1 }, A(w.value, (l) => (n(), C(p(ke), {
|
|
118
|
+
color: "medium",
|
|
119
|
+
type: "translucent"
|
|
120
|
+
}, {
|
|
121
|
+
default: s(() => [
|
|
122
|
+
D(K(l[e.labelKey]), 1)
|
|
123
|
+
]),
|
|
124
|
+
_: 2
|
|
125
|
+
}, 1024))), 256))
|
|
126
|
+
])) : m("", !0),
|
|
127
|
+
y("slot-view", Ne, [
|
|
128
|
+
S.value ? (n(), r("van-icon", {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "sun-selector-clear-icon",
|
|
131
|
+
name: "clear",
|
|
132
|
+
onTap: t[0] || (t[0] = (l) => B())
|
|
133
|
+
}, null, 32)) : m("", !0),
|
|
134
|
+
u(e.$slots, "end")
|
|
135
|
+
])
|
|
136
|
+
], 16, Ce)), [
|
|
137
|
+
[a]
|
|
138
|
+
]) : e.type === "search" ? G((n(), r("van-search", U({ key: 1 }, e.$attrs, {
|
|
139
|
+
class: "sun-selector",
|
|
140
|
+
label: e.label,
|
|
141
|
+
value: L.value,
|
|
142
|
+
placeholder: e.placeholder,
|
|
143
|
+
"use-right-icon-slot": S.value,
|
|
144
|
+
shape: "round",
|
|
145
|
+
clearable: !1,
|
|
146
|
+
disabled: e.disabled,
|
|
147
|
+
onClickInput: t[3] || (t[3] = (l) => T())
|
|
148
|
+
}), [
|
|
149
|
+
y("slot-view", De, [
|
|
150
|
+
S.value ? (n(), r("van-icon", {
|
|
151
|
+
key: 0,
|
|
152
|
+
class: "sun-selector-clear-icon",
|
|
153
|
+
name: "clear",
|
|
154
|
+
onTap: t[2] || (t[2] = (l) => B())
|
|
155
|
+
}, null, 32)) : m("", !0),
|
|
156
|
+
u(e.$slots, "end")
|
|
157
|
+
])
|
|
158
|
+
], 16, Le)), [
|
|
159
|
+
[a]
|
|
160
|
+
]) : m("", !0)
|
|
161
|
+
]),
|
|
162
|
+
h(p(Ve), { hook: "created" }, {
|
|
163
|
+
default: s(() => [
|
|
164
|
+
h(p(Be), {
|
|
165
|
+
show: V.value,
|
|
166
|
+
"onUpdate:show": t[9] || (t[9] = (l) => V.value = l),
|
|
167
|
+
title: e.placeholder,
|
|
168
|
+
"show-buttons": !c.value
|
|
169
|
+
}, W({
|
|
170
|
+
buttons: s(() => [
|
|
171
|
+
u(e.$slots, "buttons", { confirm: O }, () => [
|
|
172
|
+
c.value ? m("", !0) : (n(), r("van-button", {
|
|
173
|
+
key: 0,
|
|
174
|
+
type: "primary",
|
|
175
|
+
round: "true",
|
|
176
|
+
block: "true",
|
|
177
|
+
onTap: t[8] || (t[8] = (l) => O())
|
|
178
|
+
}, "确定", 32))
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
default: s(() => [
|
|
182
|
+
u(e.$slots, "filter", { rendered: b.value }, () => [
|
|
183
|
+
e.searchable ? (n(), r("van-search", {
|
|
184
|
+
key: 0,
|
|
185
|
+
shape: "round",
|
|
186
|
+
"input-align": "center",
|
|
187
|
+
value: $.value,
|
|
188
|
+
placeholder: "输入关键字搜索",
|
|
189
|
+
onChange: t[5] || (t[5] = (l) => $.value = l.detail.trim())
|
|
190
|
+
}, null, 40, We)) : m("", !0)
|
|
191
|
+
]),
|
|
192
|
+
h(p(Q), null, {
|
|
193
|
+
default: s(() => [
|
|
194
|
+
e.virtual ? (n(), r(g, { key: 0 }, [
|
|
195
|
+
b.value ? (n(), C(p($e), {
|
|
196
|
+
key: 0,
|
|
197
|
+
class: "sun-selector-options",
|
|
198
|
+
refresher: e.refresher,
|
|
199
|
+
refreshing: e.refreshing,
|
|
200
|
+
items: N.value,
|
|
201
|
+
"item-size": Y.value.itemSize,
|
|
202
|
+
"item-key": e.valueKey,
|
|
203
|
+
style: q({ height: e.height }),
|
|
204
|
+
onRefresh: t[6] || (t[6] = (l) => d("refresh"))
|
|
205
|
+
}, {
|
|
206
|
+
default: s(({ item: l, index: v }) => [
|
|
207
|
+
h(p(P), {
|
|
208
|
+
class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
|
|
209
|
+
clickable: !0,
|
|
210
|
+
onTap: (_) => R(l)
|
|
211
|
+
}, W({
|
|
212
|
+
start: s(() => [
|
|
213
|
+
u(e.$slots, "option-start", {
|
|
214
|
+
option: l,
|
|
215
|
+
index: v,
|
|
216
|
+
active: i(l)
|
|
217
|
+
})
|
|
218
|
+
]),
|
|
219
|
+
end: s(() => [
|
|
220
|
+
u(e.$slots, "option-end", {
|
|
221
|
+
option: l,
|
|
222
|
+
index: v,
|
|
223
|
+
active: i(l)
|
|
224
|
+
})
|
|
225
|
+
]),
|
|
226
|
+
default: s(() => [
|
|
227
|
+
u(e.$slots, "option", {
|
|
228
|
+
option: l,
|
|
229
|
+
index: v,
|
|
230
|
+
active: i(l)
|
|
231
|
+
}, () => [
|
|
232
|
+
D(K(l[e.labelKey]), 1)
|
|
233
|
+
])
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, [
|
|
237
|
+
i(l) ? {
|
|
238
|
+
name: "end",
|
|
239
|
+
fn: s(() => [
|
|
240
|
+
t[10] || (t[10] = y("van-icon", {
|
|
241
|
+
class: "sun-selector-option-icon",
|
|
242
|
+
name: "success"
|
|
243
|
+
}, null, -1))
|
|
244
|
+
]),
|
|
245
|
+
key: "0"
|
|
246
|
+
} : void 0
|
|
247
|
+
]), 1032, ["class", "onTap"])
|
|
248
|
+
]),
|
|
249
|
+
empty: s(() => [
|
|
250
|
+
h(p(we))
|
|
251
|
+
]),
|
|
252
|
+
_: 3
|
|
253
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), r("view", {
|
|
254
|
+
key: 1,
|
|
255
|
+
style: q({ height: e.height })
|
|
256
|
+
}, null, 4))
|
|
257
|
+
], 64)) : (n(), C(p(Se), {
|
|
258
|
+
key: 1,
|
|
259
|
+
class: "sun-selector-options",
|
|
260
|
+
refresher: e.refresher,
|
|
261
|
+
refreshing: e.refreshing,
|
|
262
|
+
data: N.value,
|
|
263
|
+
loading: e.loading,
|
|
264
|
+
style: q({ height: e.height }),
|
|
265
|
+
onRefresh: t[7] || (t[7] = (l) => d("refresh"))
|
|
266
|
+
}, {
|
|
267
|
+
default: s(() => [
|
|
268
|
+
(n(!0), r(g, null, A(N.value, (l, v) => (n(), C(p(P), {
|
|
269
|
+
key: l[e.valueKey],
|
|
270
|
+
class: H(["sun-selector-option", { "sun-selector-option-active": i(l) }]),
|
|
271
|
+
clickable: !0,
|
|
272
|
+
onTap: (_) => R(l)
|
|
273
|
+
}, W({
|
|
274
|
+
start: s(() => [
|
|
275
|
+
u(e.$slots, "option-start", {
|
|
276
|
+
option: l,
|
|
277
|
+
index: v,
|
|
278
|
+
active: i(l)
|
|
279
|
+
})
|
|
280
|
+
]),
|
|
281
|
+
end: s(() => [
|
|
282
|
+
u(e.$slots, "option-end", {
|
|
283
|
+
option: l,
|
|
284
|
+
index: v,
|
|
285
|
+
active: i(l)
|
|
286
|
+
})
|
|
287
|
+
]),
|
|
288
|
+
default: s(() => [
|
|
289
|
+
u(e.$slots, "option", {
|
|
290
|
+
option: l,
|
|
291
|
+
index: v,
|
|
292
|
+
active: i(l)
|
|
293
|
+
}, () => [
|
|
294
|
+
y("view", qe, K(l[e.labelKey]), 1)
|
|
295
|
+
])
|
|
296
|
+
]),
|
|
297
|
+
_: 2
|
|
298
|
+
}, [
|
|
299
|
+
i(l) ? {
|
|
300
|
+
name: "end",
|
|
301
|
+
fn: s(() => [
|
|
302
|
+
t[11] || (t[11] = y("van-icon", {
|
|
303
|
+
class: "sun-selector-option-icon",
|
|
304
|
+
slot: "right-icon",
|
|
305
|
+
name: "success"
|
|
306
|
+
}, null, -1))
|
|
307
|
+
]),
|
|
308
|
+
key: "0"
|
|
309
|
+
} : void 0
|
|
310
|
+
]), 1032, ["class", "onTap"]))), 128))
|
|
311
|
+
]),
|
|
312
|
+
_: 3
|
|
313
|
+
}, 8, ["refresher", "refreshing", "data", "loading", "style"]))
|
|
314
|
+
]),
|
|
315
|
+
_: 3
|
|
316
|
+
}),
|
|
317
|
+
u(e.$slots, "list", {
|
|
318
|
+
rendered: b.value,
|
|
319
|
+
ListTemplate: p(E)
|
|
320
|
+
}, () => [
|
|
321
|
+
h(p(E))
|
|
322
|
+
])
|
|
323
|
+
]),
|
|
324
|
+
_: 2
|
|
325
|
+
}, [
|
|
326
|
+
S.value ? {
|
|
327
|
+
name: "extra",
|
|
328
|
+
fn: s(() => [
|
|
329
|
+
y("view", {
|
|
330
|
+
class: "sun-selector-clear-btn",
|
|
331
|
+
onTap: t[4] || (t[4] = (l) => B())
|
|
332
|
+
}, "清除", 32)
|
|
333
|
+
]),
|
|
334
|
+
key: "0"
|
|
335
|
+
} : void 0
|
|
336
|
+
]), 1032, ["show", "title", "show-buttons"])
|
|
337
|
+
]),
|
|
338
|
+
_: 3
|
|
339
|
+
})
|
|
340
|
+
], 64);
|
|
341
|
+
};
|
|
60
342
|
}
|
|
61
343
|
});
|
|
62
344
|
export {
|
|
63
|
-
|
|
345
|
+
Ie as default
|
|
64
346
|
};
|
package/index90.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}();
|
|
6
|
-
function t(r) {
|
|
7
|
-
return !!a && a in r;
|
|
1
|
+
function e(r, n) {
|
|
2
|
+
return function(t) {
|
|
3
|
+
return r(n(t));
|
|
4
|
+
};
|
|
8
5
|
}
|
|
9
6
|
export {
|
|
10
|
-
|
|
7
|
+
e as default
|
|
11
8
|
};
|
package/index91.js
CHANGED
package/index92.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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/index93.js
CHANGED
package/index94.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import r from "./index95.js";
|
|
2
|
+
import m from "./index96.js";
|
|
3
|
+
import h from "./index97.js";
|
|
4
|
+
import l from "./index98.js";
|
|
5
|
+
import c from "./index99.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
|
+
}
|
|
5
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;
|
|
6
18
|
export {
|
|
7
|
-
|
|
19
|
+
e as default
|
|
8
20
|
};
|
package/index95.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import a from "./index116.js";
|
|
2
|
+
import t from "./index103.js";
|
|
3
|
+
import e from "./index79.js";
|
|
4
|
+
function o() {
|
|
5
|
+
this.size = 0, this.__data__ = {
|
|
6
|
+
hash: new a(),
|
|
7
|
+
map: new (e || t)(),
|
|
8
|
+
string: new a()
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
export {
|
|
9
|
-
|
|
12
|
+
o as default
|
|
10
13
|
};
|
package/index96.js
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import c from "./index101.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
|
-
}
|
|
1
|
+
import a from "./index117.js";
|
|
2
|
+
function i(e) {
|
|
3
|
+
var t = a(this, e).delete(e);
|
|
4
|
+
return this.size -= t ? 1 : 0, t;
|
|
12
5
|
}
|
|
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
6
|
export {
|
|
19
|
-
|
|
7
|
+
i as default
|
|
20
8
|
};
|
package/index97.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import a from "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function o() {
|
|
5
|
-
this.size = 0, this.__data__ = {
|
|
6
|
-
hash: new a(),
|
|
7
|
-
map: new (e || t)(),
|
|
8
|
-
string: new a()
|
|
9
|
-
};
|
|
1
|
+
import a from "./index117.js";
|
|
2
|
+
function r(t) {
|
|
3
|
+
return a(this, t).get(t);
|
|
10
4
|
}
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
r as default
|
|
13
7
|
};
|
package/index98.js
CHANGED
package/index99.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import s from "./index117.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/package.json
CHANGED
package/selector/index.vue.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
4
4
|
readonly onSelect?: ((args_0: T) => any) | undefined;
|
|
5
5
|
readonly onClear?: ((args_0: unknown) => any) | undefined;
|
|
6
6
|
readonly onConfirm?: ((args_0: T[]) => any) | undefined;
|
|
7
|
-
readonly "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
|
|
8
7
|
readonly onRefresh?: (() => any) | undefined;
|
|
8
|
+
readonly "onUpdate:modelValue"?: ((args_0: unknown) => any) | undefined;
|
|
9
9
|
readonly "onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
10
10
|
readonly onUnselect?: ((args_0: T) => any) | undefined;
|
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "
|
|
11
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onRefresh" | "onUpdate:modelValue" | "onClose" | "onClear" | "onConfirm" | "onUpdate:keyword" | "onUnselect"> & ({
|
|
12
12
|
keyword?: string;
|
|
13
13
|
} & {
|
|
14
14
|
type?: "field" | "search";
|
|
@@ -90,7 +90,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
90
90
|
confirm: () => void;
|
|
91
91
|
}): any;
|
|
92
92
|
};
|
|
93
|
-
emit: (((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "
|
|
93
|
+
emit: (((evt: "close") => void) & ((evt: "select", args_0: T) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: T[]) => void) & ((evt: "refresh") => void) & ((evt: "update:modelValue", args_0: unknown) => void) & ((evt: "unselect", args_0: T) => void)) & ((evt: "update:keyword", value: string) => void);
|
|
94
94
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
95
95
|
[key: string]: any;
|
|
96
96
|
}> & {
|
package/index133.js
DELETED
package/index134.js
DELETED
package/list/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SunList } from './index.vue';
|