@solar-taro/ui-vant 2.6.4 → 2.7.1

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