@solar-taro/ui-vant 2.3.1 → 2.4.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/index10.js +82 -84
- package/index115.js +5 -5
- package/index116.js +1 -1
- package/index124.js +3 -3
- package/index125.js +4 -4
- package/index126.js +4 -10
- package/index127.js +10 -6
- package/index128.js +6 -6
- package/index129.js +6 -4
- package/index15.js +1 -1
- package/index16.js +1 -1
- 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 +5 -3
- package/index24.js +3 -5
- package/index4.js +1 -1
- package/package.json +1 -1
- package/selector/index.vue.d.ts +3 -2
package/CHANGELOG.md
CHANGED
package/index10.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunLazyRender as ve, SunVirtualScroll as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const u =
|
|
1
|
+
import { defineComponent as J, ref as L, computed as f, renderSlot as Q, openBlock as U, createElementBlock as X, createCommentVNode as Y, mergeProps as Z, resolveDirective as _, withDirectives as x, unref as ee, toDisplayString as le, createTextVNode as oe, createElementVNode as te, normalizeClass as ne, withCtx as se, createSlots as re, createVNode as ae, normalizeStyle as ie, createBlock as ue, Fragment as de, renderList as pe } from "vue";
|
|
2
|
+
import { useFilterList as ce } from "@solar-taro/core";
|
|
3
|
+
import { SunLazyRender as ve, SunVirtualScroll as fe, SunItem as E } from "@solar-taro/ui-sun";
|
|
4
|
+
import B from "./index24.js";
|
|
5
|
+
import me from "./index6.js";
|
|
6
|
+
const u = Q, s = U, a = X, v = Y, F = Z, he = _, O = x, p = ee, R = le, ye = oe, m = te, I = ne, d = se, P = re, j = ae, z = ie, N = ue, T = de, ge = pe, be = ["label", "value", "placeholder", "required", "disabled"], ke = {
|
|
7
7
|
key: 1,
|
|
8
8
|
name: "right-icon"
|
|
9
|
-
},
|
|
9
|
+
}, Ve = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], $e = {
|
|
10
10
|
key: 1,
|
|
11
11
|
name: "right-icon"
|
|
12
|
-
},
|
|
12
|
+
}, Se = ["show", "title"], Ke = ["value"], we = { class: "sun-selector-option-label" }, Ce = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "van-button-container"
|
|
15
|
-
},
|
|
15
|
+
}, qe = /* @__PURE__ */ J({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
type: { default: "field" },
|
|
@@ -29,6 +29,7 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
29
29
|
disabled: { type: Boolean },
|
|
30
30
|
delimiter: { default: "," },
|
|
31
31
|
searchable: { type: Boolean, default: !0 },
|
|
32
|
+
searcher: {},
|
|
32
33
|
virtual: { type: [Boolean, Object] },
|
|
33
34
|
refresher: { type: Boolean },
|
|
34
35
|
refreshing: { type: Boolean },
|
|
@@ -36,13 +37,10 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
36
37
|
},
|
|
37
38
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
38
39
|
setup(k, { expose: V, emit: M }) {
|
|
39
|
-
const t = k, i = M, $ = L(!1),
|
|
40
|
-
() => t.options,
|
|
41
|
-
(e, l) => e[t.labelKey].includes(l.value)
|
|
42
|
-
), K = b(() => {
|
|
40
|
+
const t = k, i = M, $ = L(!1), h = L(!1), A = f(() => t.searcher || ((e, l) => e[t.labelKey].toLowerCase().includes(l))), { keyword: W, filteredList: S } = ce(() => t.options, A.value), K = f(() => {
|
|
43
41
|
var e;
|
|
44
42
|
if (y.value) {
|
|
45
|
-
const l =
|
|
43
|
+
const l = B(t.modelValue) ? null : t.options.find(
|
|
46
44
|
(n) => t.compareWith(n[t.valueKey], t.modelValue)
|
|
47
45
|
);
|
|
48
46
|
return (l == null ? void 0 : l[t.labelKey]) || "";
|
|
@@ -53,22 +51,22 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
53
51
|
return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
|
|
54
52
|
}
|
|
55
53
|
).join(t.delimiter);
|
|
56
|
-
}), w =
|
|
54
|
+
}), w = f(() => !B(t.modelValue) && !t.required), y = f(() => t.mode === "single"), G = f(() => {
|
|
57
55
|
var n, o;
|
|
58
56
|
let e, l = 47;
|
|
59
57
|
return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
|
|
60
58
|
});
|
|
61
|
-
function
|
|
59
|
+
function r(e) {
|
|
62
60
|
var n;
|
|
63
61
|
const l = e[t.valueKey];
|
|
64
|
-
return y.value ?
|
|
62
|
+
return y.value ? B(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
|
|
65
63
|
}
|
|
66
|
-
function
|
|
67
|
-
t.disabled || ($.value = !0,
|
|
68
|
-
|
|
64
|
+
function g() {
|
|
65
|
+
t.disabled || ($.value = !0, h.value || setTimeout(() => {
|
|
66
|
+
h.value = !0;
|
|
69
67
|
}, 300));
|
|
70
68
|
}
|
|
71
|
-
function
|
|
69
|
+
function b() {
|
|
72
70
|
$.value = !1, i("close");
|
|
73
71
|
}
|
|
74
72
|
function q() {
|
|
@@ -78,51 +76,51 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
78
76
|
(o) => t.compareWith(o[t.valueKey], n)
|
|
79
77
|
)
|
|
80
78
|
)) || [];
|
|
81
|
-
i("confirm", e),
|
|
79
|
+
i("confirm", e), b();
|
|
82
80
|
}
|
|
83
81
|
function D(e) {
|
|
84
82
|
const l = e[t.valueKey];
|
|
85
83
|
let n = t.modelValue;
|
|
86
|
-
y.value ? (
|
|
84
|
+
y.value ? (r(e) ? t.required || (i("unselect", e), n = null) : (i("select", e), n = l), b()) : r(e) ? (i("unselect", e), n = t.modelValue.filter(
|
|
87
85
|
(o) => !t.compareWith(o, l)
|
|
88
86
|
)) : (i("select", e), n = (t.modelValue || []).concat(
|
|
89
87
|
e[t.valueKey]
|
|
90
88
|
)), i("update:modelValue", n);
|
|
91
89
|
}
|
|
92
|
-
function
|
|
90
|
+
function C() {
|
|
93
91
|
i("clear", t.modelValue), i("update:modelValue", null);
|
|
94
92
|
}
|
|
95
93
|
return V({
|
|
96
|
-
present:
|
|
97
|
-
clear:
|
|
94
|
+
present: g,
|
|
95
|
+
clear: C
|
|
98
96
|
}), (e, l) => {
|
|
99
|
-
const n =
|
|
100
|
-
return s(),
|
|
97
|
+
const n = he("readonly");
|
|
98
|
+
return s(), a(T, null, [
|
|
101
99
|
u(e.$slots, "default", {
|
|
102
|
-
present:
|
|
100
|
+
present: g,
|
|
103
101
|
label: K.value
|
|
104
102
|
}, () => [
|
|
105
|
-
e.type === "field" ? O((s(),
|
|
103
|
+
e.type === "field" ? O((s(), a("van-field", F({ key: 0 }, e.$attrs, {
|
|
106
104
|
class: "sun-selector",
|
|
107
105
|
label: e.label,
|
|
108
106
|
value: K.value,
|
|
109
107
|
placeholder: e.placeholder,
|
|
110
108
|
required: e.required,
|
|
111
109
|
disabled: e.disabled,
|
|
112
|
-
onClickInput: l[1] || (l[1] = (o) =>
|
|
110
|
+
onClickInput: l[1] || (l[1] = (o) => g())
|
|
113
111
|
}), [
|
|
114
|
-
w.value ? (s(),
|
|
112
|
+
w.value ? (s(), a("van-icon", {
|
|
115
113
|
key: 0,
|
|
116
114
|
slot: "right-icon",
|
|
117
115
|
name: "clear",
|
|
118
|
-
onTap: l[0] || (l[0] = (o) =>
|
|
119
|
-
}, null, 32)) :
|
|
120
|
-
e.$slots.end ? (s(),
|
|
116
|
+
onTap: l[0] || (l[0] = (o) => C())
|
|
117
|
+
}, null, 32)) : v("", !0),
|
|
118
|
+
e.$slots.end ? (s(), a("slot-view", ke, [
|
|
121
119
|
u(e.$slots, "end")
|
|
122
|
-
])) :
|
|
123
|
-
], 16,
|
|
120
|
+
])) : v("", !0)
|
|
121
|
+
], 16, be)), [
|
|
124
122
|
[n]
|
|
125
|
-
]) : e.type === "search" ? O((s(),
|
|
123
|
+
]) : e.type === "search" ? O((s(), a("van-search", F({ key: 1 }, e.$attrs, {
|
|
126
124
|
class: "sun-selector",
|
|
127
125
|
label: e.label,
|
|
128
126
|
value: K.value,
|
|
@@ -131,87 +129,87 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
131
129
|
shape: "round",
|
|
132
130
|
clearable: !1,
|
|
133
131
|
disabled: e.disabled,
|
|
134
|
-
onClickInput: l[3] || (l[3] = (o) =>
|
|
132
|
+
onClickInput: l[3] || (l[3] = (o) => g())
|
|
135
133
|
}), [
|
|
136
|
-
w.value ? (s(),
|
|
134
|
+
w.value ? (s(), a("van-icon", {
|
|
137
135
|
key: 0,
|
|
138
136
|
slot: "right-icon",
|
|
139
137
|
name: "clear",
|
|
140
|
-
onTap: l[2] || (l[2] = (o) =>
|
|
141
|
-
}, null, 32)) :
|
|
142
|
-
e.$slots.end ? (s(),
|
|
138
|
+
onTap: l[2] || (l[2] = (o) => C())
|
|
139
|
+
}, null, 32)) : v("", !0),
|
|
140
|
+
e.$slots.end ? (s(), a("slot-view", $e, [
|
|
143
141
|
u(e.$slots, "end")
|
|
144
|
-
])) :
|
|
145
|
-
], 16,
|
|
142
|
+
])) : v("", !0)
|
|
143
|
+
], 16, Ve)), [
|
|
146
144
|
[n]
|
|
147
|
-
]) :
|
|
145
|
+
]) : v("", !0)
|
|
148
146
|
]),
|
|
149
147
|
j(p(ve), { hook: "created" }, {
|
|
150
148
|
default: d(() => [
|
|
151
|
-
|
|
149
|
+
m("van-action-sheet", {
|
|
152
150
|
show: $.value,
|
|
153
151
|
title: e.placeholder,
|
|
154
152
|
"close-on-click-overlay": !0,
|
|
155
|
-
onClose: l[8] || (l[8] = (o) =>
|
|
156
|
-
onCancel: l[9] || (l[9] = (o) =>
|
|
153
|
+
onClose: l[8] || (l[8] = (o) => b()),
|
|
154
|
+
onCancel: l[9] || (l[9] = (o) => b())
|
|
157
155
|
}, [
|
|
158
|
-
u(e.$slots, "filter", { rendered:
|
|
159
|
-
e.searchable ? (s(),
|
|
156
|
+
u(e.$slots, "filter", { rendered: h.value }, () => [
|
|
157
|
+
e.searchable ? (s(), a("van-search", {
|
|
160
158
|
key: 0,
|
|
161
159
|
shape: "round",
|
|
162
160
|
"input-align": "center",
|
|
163
161
|
value: p(W),
|
|
164
162
|
placeholder: "输入关键字搜索",
|
|
165
163
|
onChange: l[4] || (l[4] = (o) => W.value = o.detail.trim())
|
|
166
|
-
}, null, 40,
|
|
164
|
+
}, null, 40, Ke)) : v("", !0)
|
|
167
165
|
]),
|
|
168
|
-
e.virtual ? (s(),
|
|
169
|
-
|
|
166
|
+
e.virtual ? (s(), a(T, { key: 0 }, [
|
|
167
|
+
h.value ? (s(), N(p(fe), {
|
|
170
168
|
key: 0,
|
|
171
169
|
class: "sun-selector-options",
|
|
172
170
|
refresher: e.refresher,
|
|
173
171
|
refreshing: e.refreshing,
|
|
174
172
|
items: p(S),
|
|
175
|
-
"item-size":
|
|
173
|
+
"item-size": G.value.itemSize,
|
|
176
174
|
"item-key": e.valueKey,
|
|
177
175
|
style: z({ height: e.height }),
|
|
178
176
|
onRefresh: l[5] || (l[5] = (o) => i("refresh"))
|
|
179
177
|
}, {
|
|
180
|
-
default: d(({ item: o, index:
|
|
178
|
+
default: d(({ item: o, index: c }) => [
|
|
181
179
|
j(p(E), {
|
|
182
|
-
class: I(["sun-selector-option", { "sun-selector-option-active":
|
|
180
|
+
class: I(["sun-selector-option", { "sun-selector-option-active": r(o) }]),
|
|
183
181
|
clickable: !0,
|
|
184
|
-
onTap: (
|
|
182
|
+
onTap: (H) => D(o)
|
|
185
183
|
}, P({
|
|
186
184
|
start: d(() => [
|
|
187
185
|
u(e.$slots, "option-start", {
|
|
188
186
|
option: o,
|
|
189
|
-
index:
|
|
190
|
-
active:
|
|
187
|
+
index: c,
|
|
188
|
+
active: r(o)
|
|
191
189
|
})
|
|
192
190
|
]),
|
|
193
191
|
end: d(() => [
|
|
194
192
|
u(e.$slots, "option-end", {
|
|
195
193
|
option: o,
|
|
196
|
-
index:
|
|
197
|
-
active:
|
|
194
|
+
index: c,
|
|
195
|
+
active: r(o)
|
|
198
196
|
})
|
|
199
197
|
]),
|
|
200
198
|
default: d(() => [
|
|
201
199
|
u(e.$slots, "option", {
|
|
202
200
|
option: o,
|
|
203
|
-
index:
|
|
204
|
-
active:
|
|
201
|
+
index: c,
|
|
202
|
+
active: r(o)
|
|
205
203
|
}, () => [
|
|
206
204
|
ye(R(o[e.labelKey]), 1)
|
|
207
205
|
])
|
|
208
206
|
]),
|
|
209
207
|
_: 2
|
|
210
208
|
}, [
|
|
211
|
-
|
|
209
|
+
r(o) ? {
|
|
212
210
|
name: "end",
|
|
213
211
|
fn: d(() => [
|
|
214
|
-
l[10] || (l[10] =
|
|
212
|
+
l[10] || (l[10] = m("van-icon", {
|
|
215
213
|
class: "sun-selector-option-icon",
|
|
216
214
|
name: "success"
|
|
217
215
|
}, null, -1))
|
|
@@ -221,11 +219,11 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
221
219
|
]), 1032, ["class", "onTap"])
|
|
222
220
|
]),
|
|
223
221
|
_: 3
|
|
224
|
-
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(),
|
|
222
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(), a("view", {
|
|
225
223
|
key: 1,
|
|
226
224
|
style: z({ height: e.height })
|
|
227
225
|
}, null, 4))
|
|
228
|
-
], 64)) : (s(), N(p(
|
|
226
|
+
], 64)) : (s(), N(p(me), {
|
|
229
227
|
key: 1,
|
|
230
228
|
class: "sun-selector-options",
|
|
231
229
|
refresher: e.refresher,
|
|
@@ -237,41 +235,41 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
237
235
|
onRefresh: l[6] || (l[6] = (o) => i("refresh"))
|
|
238
236
|
}, {
|
|
239
237
|
default: d(() => [
|
|
240
|
-
(s(!0),
|
|
238
|
+
(s(!0), a(T, null, ge(p(S), (o, c) => (s(), N(p(E), {
|
|
241
239
|
key: o[e.valueKey],
|
|
242
|
-
class: I(["sun-selector-option", { "sun-selector-option-active":
|
|
240
|
+
class: I(["sun-selector-option", { "sun-selector-option-active": r(o) }]),
|
|
243
241
|
clickable: !0,
|
|
244
|
-
onTap: (
|
|
242
|
+
onTap: (H) => D(o)
|
|
245
243
|
}, P({
|
|
246
244
|
start: d(() => [
|
|
247
245
|
u(e.$slots, "option-start", {
|
|
248
246
|
option: o,
|
|
249
|
-
index:
|
|
250
|
-
active:
|
|
247
|
+
index: c,
|
|
248
|
+
active: r(o)
|
|
251
249
|
})
|
|
252
250
|
]),
|
|
253
251
|
end: d(() => [
|
|
254
252
|
u(e.$slots, "option-end", {
|
|
255
253
|
option: o,
|
|
256
|
-
index:
|
|
257
|
-
active:
|
|
254
|
+
index: c,
|
|
255
|
+
active: r(o)
|
|
258
256
|
})
|
|
259
257
|
]),
|
|
260
258
|
default: d(() => [
|
|
261
259
|
u(e.$slots, "option", {
|
|
262
260
|
option: o,
|
|
263
|
-
index:
|
|
264
|
-
active:
|
|
261
|
+
index: c,
|
|
262
|
+
active: r(o)
|
|
265
263
|
}, () => [
|
|
266
|
-
|
|
264
|
+
m("view", we, R(o[e.labelKey]), 1)
|
|
267
265
|
])
|
|
268
266
|
]),
|
|
269
267
|
_: 2
|
|
270
268
|
}, [
|
|
271
|
-
|
|
269
|
+
r(o) ? {
|
|
272
270
|
name: "end",
|
|
273
271
|
fn: d(() => [
|
|
274
|
-
l[11] || (l[11] =
|
|
272
|
+
l[11] || (l[11] = m("van-icon", {
|
|
275
273
|
class: "sun-selector-option-icon",
|
|
276
274
|
slot: "right-icon",
|
|
277
275
|
name: "success"
|
|
@@ -284,8 +282,8 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
284
282
|
_: 3
|
|
285
283
|
}, 8, ["refresher", "refreshing", "data", "loading", "style"])),
|
|
286
284
|
u(e.$slots, "footer", { confirm: q }, () => [
|
|
287
|
-
y.value ?
|
|
288
|
-
|
|
285
|
+
y.value ? v("", !0) : (s(), a("view", Ce, [
|
|
286
|
+
m("van-button", {
|
|
289
287
|
type: "primary",
|
|
290
288
|
round: "true",
|
|
291
289
|
block: "true",
|
|
@@ -293,7 +291,7 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
293
291
|
}, "确定", 32)
|
|
294
292
|
]))
|
|
295
293
|
])
|
|
296
|
-
], 40,
|
|
294
|
+
], 40, Se)
|
|
297
295
|
]),
|
|
298
296
|
_: 3
|
|
299
297
|
})
|
|
@@ -302,5 +300,5 @@ const u = J, s = Q, r = U, c = X, F = Y, me = Z, O = _, p = x, R = ee, ye = le,
|
|
|
302
300
|
}
|
|
303
301
|
});
|
|
304
302
|
export {
|
|
305
|
-
|
|
303
|
+
qe as default
|
|
306
304
|
};
|
package/index115.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 "./index125.js";
|
|
2
|
+
import a from "./index126.js";
|
|
3
|
+
import l from "./index127.js";
|
|
4
|
+
import s from "./index128.js";
|
|
5
|
+
import m from "./index129.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/index116.js
CHANGED
package/index124.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/index125.js
CHANGED
package/index126.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/index127.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import e from "./index131.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/index128.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
return
|
|
1
|
+
import r from "./index131.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/index129.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./index131.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/index15.js
CHANGED
package/index16.js
CHANGED
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
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 "./index23.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.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: <T
|
|
1
|
+
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
2
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
3
3
|
readonly onClose?: (() => any) | undefined;
|
|
4
4
|
readonly onSelect?: ((args_0: T) => any) | undefined;
|
|
@@ -23,6 +23,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
23
23
|
/** 多选模式下,分割符 */
|
|
24
24
|
delimiter?: string;
|
|
25
25
|
searchable?: boolean;
|
|
26
|
+
searcher?: (option: T, keyword: string) => boolean;
|
|
26
27
|
virtual?: boolean | {
|
|
27
28
|
itemSize?: number;
|
|
28
29
|
};
|
|
@@ -38,7 +39,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
|
|
|
38
39
|
slots: {
|
|
39
40
|
default?(_: {
|
|
40
41
|
present: () => void;
|
|
41
|
-
label: string | NonNullable<
|
|
42
|
+
label: string | NonNullable<T[NonNullable<keyof T extends undefined ? keyof T | undefined : keyof T extends infer T_1 ? T_1 extends keyof T ? T_1 extends undefined ? never : T_1 : never : never>]>;
|
|
42
43
|
}): any;
|
|
43
44
|
end?(_: {}): any;
|
|
44
45
|
end?(_: {}): any;
|