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