@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.
Files changed (136) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.d.ts +0 -1
  3. package/index.js +18 -20
  4. package/index10.js +17 -341
  5. package/index100.js +6 -4
  6. package/index101.js +10 -6
  7. package/index102.js +6 -6
  8. package/index103.js +18 -10
  9. package/index104.js +4 -6
  10. package/index105.js +4 -17
  11. package/index106.js +3 -4
  12. package/index107.js +3 -4
  13. package/index108.js +14 -3
  14. package/index109.js +8 -4
  15. package/index11.js +3 -18
  16. package/index110.js +5 -14
  17. package/index111.js +6 -8
  18. package/index112.js +5 -5
  19. package/index113.js +5 -5
  20. package/index114.js +5 -5
  21. package/index115.js +3 -6
  22. package/index116.js +17 -5
  23. package/index117.js +6 -3
  24. package/index118.js +3 -17
  25. package/index119.js +3 -5
  26. package/index12.js +28 -3
  27. package/index120.js +9 -3
  28. package/index121.js +5 -3
  29. package/index122.js +4 -9
  30. package/index123.js +5 -5
  31. package/index124.js +3 -5
  32. package/index125.js +4 -5
  33. package/index126.js +5 -3
  34. package/index127.js +10 -4
  35. package/index128.js +6 -4
  36. package/index129.js +6 -10
  37. package/index13.js +4 -28
  38. package/index130.js +4 -6
  39. package/index131.js +7 -6
  40. package/index132.js +3 -5
  41. package/index14.js +64 -5
  42. package/index15.js +2 -64
  43. package/index17.js +2 -6
  44. package/index18.js +1 -1
  45. package/index2.js +1 -1
  46. package/index20.js +1 -1
  47. package/index21.js +1 -1
  48. package/index22.js +6 -2
  49. package/index23.js +36 -2
  50. package/index24.js +4 -2
  51. package/index25.js +23 -34
  52. package/index26.js +62 -3
  53. package/index27.js +3 -62
  54. package/index28.js +8 -4
  55. package/index29.js +6 -7
  56. package/index30.js +3 -6
  57. package/index31.js +2 -4
  58. package/index32.js +6 -2
  59. package/index33.js +9 -5
  60. package/index34.js +4 -9
  61. package/index35.js +4 -5
  62. package/index36.js +3 -4
  63. package/index37.js +4 -3
  64. package/index38.js +7 -3
  65. package/index39.js +4 -7
  66. package/index4.js +1 -1
  67. package/index40.js +5 -5
  68. package/index41.js +7 -5
  69. package/index42.js +5 -6
  70. package/index43.js +9 -6
  71. package/index44.js +5 -9
  72. package/index45.js +7 -5
  73. package/index46.js +4 -6
  74. package/index47.js +10 -5
  75. package/index48.js +6 -9
  76. package/index49.js +17 -6
  77. package/index5.js +1 -1
  78. package/index50.js +11 -17
  79. package/index51.js +6 -11
  80. package/index52.js +12 -6
  81. package/index53.js +3 -12
  82. package/index54.js +11 -3
  83. package/index55.js +7 -24
  84. package/index56.js +9 -7
  85. package/index57.js +5 -9
  86. package/index58.js +8 -11
  87. package/index6.js +45 -90
  88. package/index60.js +15 -5
  89. package/index61.js +6 -9
  90. package/index62.js +5 -15
  91. package/index63.js +8 -5
  92. package/index64.js +6 -5
  93. package/index65.js +5 -8
  94. package/index66.js +5 -6
  95. package/index67.js +5 -4
  96. package/index68.js +6 -5
  97. package/index69.js +26 -7
  98. package/index7.js +261 -46
  99. package/index70.js +5 -6
  100. package/index71.js +40 -26
  101. package/index72.js +4 -3
  102. package/index73.js +5 -39
  103. package/index74.js +15 -7
  104. package/index75.js +7 -5
  105. package/index76.js +2 -15
  106. package/index77.js +3 -8
  107. package/index78.js +4 -2
  108. package/index79.js +4 -3
  109. package/index8.js +54 -261
  110. package/index80.js +4 -13
  111. package/index81.js +4 -5
  112. package/index82.js +4 -3
  113. package/index83.js +14 -3
  114. package/index84.js +3 -4
  115. package/index85.js +13 -4
  116. package/index86.js +5 -4
  117. package/index87.js +14 -4
  118. package/index88.js +8 -14
  119. package/index89.js +3 -14
  120. package/index9.js +334 -52
  121. package/index90.js +5 -8
  122. package/index91.js +6 -3
  123. package/index92.js +5 -5
  124. package/index93.js +7 -5
  125. package/index94.js +17 -5
  126. package/index95.js +10 -7
  127. package/index96.js +5 -17
  128. package/index97.js +4 -10
  129. package/index98.js +4 -5
  130. package/index99.js +5 -4
  131. package/package.json +1 -1
  132. package/selector/index.vue.d.ts +3 -3
  133. package/index133.js +0 -10
  134. package/index134.js +0 -5
  135. package/list/index.d.ts +0 -1
  136. package/list/index.vue.d.ts +0 -110
package/index9.js CHANGED
@@ -1,64 +1,346 @@
1
- import { defineComponent as v, computed as y, unref as h, mergeProps as w, createElementVNode as k, openBlock as C, createElementBlock as V, createCommentVNode as g } from "vue";
2
- import { useFilterList as B } from "@solar-taro/core";
3
- const b = h, K = w, N = k, u = C, r = V, E = g, L = ["show"], $ = ["title", "value-key", "columns", "loading", "default-index"], A = /* @__PURE__ */ v({
4
- inheritAttrs: !1,
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
- show: { type: Boolean },
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
- options: {},
14
- modelValue: {},
15
- required: { type: Boolean }
16
- },
17
- emits: ["close", "cancel", "confirm", "update:show", "update:modelValue"],
18
- setup(s, { emit: i }) {
19
- const n = i, l = s, d = y(() => {
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
- return (e = l.options.findIndex((o) => o[l.valueKey] === l.modelValue)) != null ? e : 0;
22
- }), { keyword: p, filteredList: m } = B(
23
- () => l.options,
24
- (e, o) => e[l.labelKey].toLowerCase().includes(o.value.toLowerCase())
25
- );
26
- function c() {
27
- l.required || n("update:modelValue", null), n("cancel", l.modelValue), a();
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 a() {
30
- n("update:show", !1), n("close");
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 f({ detail: e }) {
33
- n("update:modelValue", e.value[l.valueKey]), n("confirm", e.value), n("update:show", !1);
91
+ function B() {
92
+ d("clear", o.modelValue), d("update:modelValue", o.required && !c.value ? [] : null);
34
93
  }
35
- return (e, o) => (u(), r("van-popup", {
36
- show: e.show,
37
- position: "bottom",
38
- round: !0,
39
- "close-on-click-overlay": !0,
40
- onClose: o[3] || (o[3] = (t) => a())
41
- }, [
42
- N("van-picker", K(e.$attrs, {
43
- title: e.title,
44
- "show-toolbar": !0,
45
- "value-key": e.labelKey,
46
- columns: b(m),
47
- loading: e.loading,
48
- "default-index": d.value,
49
- onCancel: o[0] || (o[0] = (t) => c()),
50
- onConfirm: o[1] || (o[1] = (t) => f(t))
51
- }), null, 16, $),
52
- e.searchable && e.options.length ? (u(), r("van-search", {
53
- key: 0,
54
- shape: "round",
55
- "input-align": "center",
56
- placeholder: "请输入搜索关键词",
57
- onChange: o[2] || (o[2] = (t) => p.value = t.detail)
58
- }, null, 32)) : E("", !0)
59
- ], 40, L));
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
- A as default
345
+ Ie as default
64
346
  };
package/index90.js CHANGED
@@ -1,11 +1,8 @@
1
- import e from "./index117.js";
2
- var a = function() {
3
- var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
4
- return r ? "Symbol(src)_1." + r : "";
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
- t as default
7
+ e as default
11
8
  };
package/index91.js CHANGED
@@ -1,5 +1,8 @@
1
- import t from "./index92.js";
2
- var o = t(Object.getPrototypeOf, Object);
1
+ function i(r, t) {
2
+ for (var e = -1, a = Array(r); ++e < r; )
3
+ a[e] = t(e);
4
+ return a;
5
+ }
3
6
  export {
4
- o as default
7
+ i as default
5
8
  };
package/index92.js CHANGED
@@ -1,8 +1,8 @@
1
- function e(r, n) {
2
- return function(t) {
3
- return r(n(t));
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
- e as default
7
+ f as default
8
8
  };
package/index93.js CHANGED
@@ -1,8 +1,10 @@
1
- function i(r, t) {
2
- for (var e = -1, a = Array(r); ++e < r; )
3
- a[e] = t(e);
4
- return a;
1
+ function t(n) {
2
+ var r = [];
3
+ if (n != null)
4
+ for (var e in Object(n))
5
+ r.push(e);
6
+ return r;
5
7
  }
6
8
  export {
7
- i as default
9
+ t as default
8
10
  };
package/index94.js CHANGED
@@ -1,8 +1,20 @@
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;
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
- f as default
19
+ e as default
8
20
  };
package/index95.js CHANGED
@@ -1,10 +1,13 @@
1
- function t(n) {
2
- var r = [];
3
- if (n != null)
4
- for (var e in Object(n))
5
- r.push(e);
6
- return r;
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
- t as default
12
+ o as default
10
13
  };
package/index96.js CHANGED
@@ -1,20 +1,8 @@
1
- import r from "./index97.js";
2
- import m from "./index98.js";
3
- import h from "./index99.js";
4
- import l from "./index100.js";
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
- e as default
7
+ i as default
20
8
  };
package/index97.js CHANGED
@@ -1,13 +1,7 @@
1
- import a from "./index118.js";
2
- import t from "./index105.js";
3
- import e from "./index84.js";
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
- o as default
6
+ r as default
13
7
  };
package/index98.js CHANGED
@@ -1,8 +1,7 @@
1
- import a from "./index119.js";
2
- function i(e) {
3
- var t = a(this, e).delete(e);
4
- return this.size -= t ? 1 : 0, t;
1
+ import t from "./index117.js";
2
+ function e(a) {
3
+ return t(this, a).has(a);
5
4
  }
6
5
  export {
7
- i as default
6
+ e as default
8
7
  };
package/index99.js CHANGED
@@ -1,7 +1,8 @@
1
- import a from "./index119.js";
2
- function r(t) {
3
- return a(this, t).get(t);
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
- r as default
7
+ h as default
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "2.9.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -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" | "onUpdate:modelValue" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUpdate:keyword" | "onUnselect"> & ({
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: "update:modelValue", args_0: unknown) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: T) => void)) & ((evt: "update:keyword", value: string) => 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: "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
@@ -1,10 +0,0 @@
1
- import r from "./index28.js";
2
- function o(t, n) {
3
- for (var e = t.length; e--; )
4
- if (r(t[e][0], n))
5
- return e;
6
- return -1;
7
- }
8
- export {
9
- o as default
10
- };
package/index134.js DELETED
@@ -1,5 +0,0 @@
1
- import e from "./index104.js";
2
- var a = e(Object, "create");
3
- export {
4
- a as default
5
- };
package/list/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { default as SunList } from './index.vue';