@solar-taro/ui-vant 1.3.1 → 1.3.3

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 (150) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cascader/index.scss +7 -2
  3. package/cascader/index.vue.d.ts +102 -0
  4. package/cascader-picker/index.vue.d.ts +6 -6
  5. package/date-range-picker/index.vue.d.ts +3 -3
  6. package/index.d.ts +1 -0
  7. package/index.js +24 -22
  8. package/index10.js +50 -243
  9. package/index100.js +17 -5
  10. package/index101.js +10 -4
  11. package/index102.js +5 -4
  12. package/index103.js +4 -5
  13. package/index104.js +4 -6
  14. package/index105.js +6 -10
  15. package/index106.js +6 -6
  16. package/index107.js +10 -18
  17. package/index108.js +6 -4
  18. package/index109.js +793 -4
  19. package/index11.js +247 -38
  20. package/index110.js +6 -3
  21. package/index111.js +16 -2
  22. package/index112.js +4 -14
  23. package/index113.js +5 -8
  24. package/index114.js +3 -5
  25. package/index115.js +2 -4
  26. package/index116.js +14 -5
  27. package/index117.js +8 -6
  28. package/index118.js +5 -5
  29. package/index119.js +6 -3
  30. package/index12.js +44 -17
  31. package/index120.js +5 -17
  32. package/index121.js +5 -5
  33. package/index122.js +5 -3
  34. package/index123.js +3 -10
  35. package/index124.js +17 -5
  36. package/index125.js +5 -4
  37. package/index126.js +31 -5
  38. package/index128.js +4 -3
  39. package/index129.js +9 -4
  40. package/index13.js +15 -25
  41. package/index130.js +5 -4
  42. package/index131.js +4 -10
  43. package/index132.js +5 -6
  44. package/index133.js +3 -7
  45. package/index134.js +3 -3
  46. package/index135.js +4 -7
  47. package/index136.js +11 -3
  48. package/index137.js +9 -0
  49. package/index138.js +9 -0
  50. package/index139.js +7 -0
  51. package/index14.js +28 -4
  52. package/index140.js +10 -0
  53. package/index141.js +5 -0
  54. package/index15.js +5 -64
  55. package/index16.js +64 -2
  56. package/index17.js +1 -1
  57. package/index18.js +1 -1
  58. package/index19.js +1 -1
  59. package/index2.js +1 -1
  60. package/index20.js +1 -1
  61. package/index21.js +1 -1
  62. package/index22.js +1 -1
  63. package/index23.js +1 -1
  64. package/index24.js +1 -1
  65. package/index25.js +3 -9
  66. package/index26.js +2 -9
  67. package/index27.js +2 -6
  68. package/index28.js +5 -3
  69. package/index29.js +9 -6
  70. package/index3.js +165 -118
  71. package/index30.js +8 -62
  72. package/index31.js +13 -3
  73. package/index32.js +63 -8
  74. package/index33.js +3 -6
  75. package/index34.js +8 -4
  76. package/index35.js +7 -2
  77. package/index36.js +2 -4
  78. package/index37.js +2 -10
  79. package/index38.js +5 -4
  80. package/index39.js +10 -4
  81. package/index4.js +113 -157
  82. package/index40.js +4 -2
  83. package/index41.js +4 -4
  84. package/index42.js +3 -8
  85. package/index43.js +3 -4
  86. package/index44.js +7 -4
  87. package/index45.js +4 -6
  88. package/index46.js +5 -6
  89. package/index47.js +7 -9
  90. package/index48.js +6 -5
  91. package/index49.js +9 -7
  92. package/index5.js +166 -27
  93. package/index50.js +5 -5
  94. package/index51.js +6 -9
  95. package/index52.js +4 -6
  96. package/index53.js +9 -17
  97. package/index54.js +4 -9
  98. package/index55.js +17 -6
  99. package/index56.js +9 -10
  100. package/index57.js +6 -3
  101. package/index58.js +12 -7
  102. package/index59.js +3 -9
  103. package/index6.js +29 -95
  104. package/index60.js +2 -2
  105. package/index61.js +7 -5
  106. package/index62.js +9 -5
  107. package/index63.js +6 -9
  108. package/index64.js +5 -15
  109. package/index65.js +9 -6
  110. package/index66.js +15 -5
  111. package/index67.js +5 -8
  112. package/index68.js +5 -6
  113. package/index69.js +8 -5
  114. package/index7.js +93 -39
  115. package/index70.js +6 -5
  116. package/index71.js +4 -5
  117. package/index72.js +5 -6
  118. package/index73.js +7 -26
  119. package/index74.js +6 -5
  120. package/index75.js +26 -40
  121. package/index76.js +3 -4
  122. package/index77.js +39 -5
  123. package/index78.js +7 -15
  124. package/index79.js +5 -7
  125. package/index8.js +40 -263
  126. package/index80.js +15 -2
  127. package/index81.js +8 -3
  128. package/index82.js +2 -4
  129. package/index83.js +3 -4
  130. package/index84.js +13 -4
  131. package/index85.js +5 -4
  132. package/index86.js +3 -4
  133. package/index87.js +3 -14
  134. package/index88.js +4 -3
  135. package/index89.js +4 -13
  136. package/index9.js +262 -54
  137. package/index90.js +4 -5
  138. package/index91.js +4 -14
  139. package/index92.js +14 -8
  140. package/index93.js +14 -3
  141. package/index94.js +8 -5
  142. package/index95.js +3 -6
  143. package/index96.js +5 -5
  144. package/index97.js +5 -7
  145. package/index98.js +5 -17
  146. package/index99.js +7 -10
  147. package/opper-controller/index.scss +12 -0
  148. package/package.json +1 -1
  149. package/select-picker/index.vue.d.ts +4 -4
  150. package/selector/index.vue.d.ts +10 -10
package/index11.js CHANGED
@@ -1,48 +1,257 @@
1
- import { defineComponent as u, computed as p, renderList as _, Fragment as d, openBlock as v, createElementBlock as f, renderSlot as g, createCommentVNode as b, toDisplayString as h, createTextVNode as k, normalizeClass as y, mergeProps as C } from "vue";
2
- const w = _, B = d, n = v, r = f, N = g, S = b, T = h, V = k, L = y, $ = C, z = ["scroll-left"], D = ["onTap"], E = ["name"], j = /* @__PURE__ */ u({
1
+ import { defineComponent as M, ref as D, computed as h, renderSlot as _, openBlock as A, createElementBlock as G, createCommentVNode as H, mergeProps as J, resolveDirective as Q, withDirectives as U, unref as X, toDisplayString as Y, createElementVNode as Z, normalizeClass as x, normalizeStyle as ee, withCtx as le, createBlock as te, Fragment as oe, renderList as ne, createVNode as ae } from "vue";
2
+ import { useFilterList as se } from "@solar-taro/core";
3
+ import { SunLazyRender as re, SunVirtualScroll as ie } from "@solar-taro/ui-sun";
4
+ import C from "./index25.js";
5
+ import ue from "./index7.js";
6
+ const y = _, a = A, s = G, u = H, L = J, de = Q, E = U, d = X, F = Y, c = Z, O = x, w = ee, N = le, R = te, T = oe, ce = ne, pe = ae, ve = ["label", "value", "placeholder", "required", "disabled"], fe = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], me = ["show", "title"], he = ["value"], ye = ["onTap"], ge = {
7
+ class: "sun-selector-option-label",
8
+ name: "title"
9
+ }, be = {
10
+ key: 0,
11
+ class: "sun-selector-option-icon",
12
+ slot: "right-icon",
13
+ name: "success"
14
+ }, ke = ["onTap"], Ve = {
15
+ class: "sun-selector-option-label",
16
+ name: "title"
17
+ }, $e = {
18
+ key: 0,
19
+ class: "sun-selector-option-icon",
20
+ slot: "right-icon",
21
+ name: "success"
22
+ }, Ke = {
23
+ key: 0,
24
+ class: "van-button-container"
25
+ }, Ne = /* @__PURE__ */ M({
3
26
  __name: "index",
4
27
  props: {
5
- tabs: {},
6
- active: { default: 0 }
28
+ type: { default: "field" },
29
+ mode: { default: "single" },
30
+ label: {},
31
+ placeholder: { default: "请选择" },
32
+ modelValue: {},
33
+ options: {},
34
+ labelKey: { default: "fullName" },
35
+ valueKey: { default: "id" },
36
+ loading: { type: Boolean },
37
+ height: { default: "70vh" },
38
+ required: { type: Boolean },
39
+ disabled: { type: Boolean },
40
+ delimiter: { default: "," },
41
+ searchable: { type: Boolean, default: !0 },
42
+ virtual: { type: [Boolean, Object] },
43
+ refresher: { type: Boolean },
44
+ refreshing: { type: Boolean },
45
+ compareWith: { type: Function, default: (g, b) => g === b }
7
46
  },
8
- emits: ["update:active", "toggle"],
9
- setup(l, { emit: c }) {
10
- const a = c, s = l, i = p(() => s.active > 2 ? (s.active - 2) * 150 + "rpx" : 0);
47
+ emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
48
+ setup(g, { expose: b, emit: P }) {
49
+ const t = g, r = P, k = D(!1), V = D(!1), { keyword: W, filteredList: $ } = se(
50
+ () => t.options,
51
+ (e, l) => e[t.labelKey].includes(l.value)
52
+ ), K = h(() => {
53
+ var e;
54
+ if (p.value) {
55
+ const l = C(t.modelValue) ? null : t.options.find(
56
+ (n) => t.compareWith(n[t.valueKey], t.modelValue)
57
+ );
58
+ return (l == null ? void 0 : l[t.labelKey]) || "";
59
+ }
60
+ return (e = t.modelValue) == null ? void 0 : e.map(
61
+ (l) => {
62
+ var n;
63
+ return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
64
+ }
65
+ ).join(t.delimiter);
66
+ }), S = h(() => !C(t.modelValue) && !t.required), p = h(() => t.mode === "single"), j = h(() => {
67
+ var n, o;
68
+ let e, l = 48;
69
+ return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
70
+ });
71
+ function i(e) {
72
+ var n;
73
+ const l = e[t.valueKey];
74
+ return p.value ? C(t.modelValue) ? !1 : t.compareWith(t.modelValue, l) : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
75
+ }
76
+ function v() {
77
+ t.disabled || (k.value = !0, V.value || setTimeout(() => {
78
+ V.value = !0;
79
+ }, 300));
80
+ }
81
+ function f() {
82
+ k.value = !1, r("close");
83
+ }
84
+ function q() {
85
+ var l;
86
+ const e = ((l = t.modelValue) == null ? void 0 : l.map(
87
+ (n) => t.options.find(
88
+ (o) => t.compareWith(o[t.valueKey], n)
89
+ )
90
+ )) || [];
91
+ r("confirm", e), f();
92
+ }
11
93
  function m(e) {
12
- a("toggle", e), a("update:active", e);
94
+ const l = e[t.valueKey];
95
+ let n = t.modelValue;
96
+ p.value ? (i(e) ? t.required || (r("unselect", e), n = null) : (r("select", e), n = l), f()) : i(e) ? (r("unselect", e), n = t.modelValue.filter(
97
+ (o) => !t.compareWith(o, l)
98
+ )) : (r("select", e), n = (t.modelValue || []).concat(
99
+ e[t.valueKey]
100
+ )), r("update:modelValue", n);
101
+ }
102
+ function z() {
103
+ r("clear", t.modelValue), r("update:modelValue", null);
13
104
  }
14
- return (e, F) => (n(), r("scroll-view", $(e.$attrs, {
15
- class: "sun-tabbar",
16
- "scroll-x": !0,
17
- "enable-flex": !0,
18
- enhanced: !0,
19
- "show-scrollbar": !1,
20
- "scroll-with-animation": !0,
21
- "scroll-left": i.value
22
- }), [
23
- (n(!0), r(B, null, w(e.tabs, (t, o) => (n(), r("view", {
24
- key: o,
25
- class: L(["sun-tabbar-item", {
26
- "sun-tabbar-item-active": e.active === o,
27
- "sun-tabbar-item-icon-only": !t.text,
28
- "sun-tabbar-item-text-only": !t.icon
29
- }]),
30
- onTap: (P) => m(o)
31
- }, [
32
- N(e.$slots, "default", {
33
- tab: t,
34
- index: o
105
+ return b({
106
+ present: v,
107
+ clear: z
108
+ }), (e, l) => {
109
+ const n = de("readonly");
110
+ return a(), s(T, null, [
111
+ y(e.$slots, "default", {
112
+ present: v,
113
+ label: K.value
35
114
  }, () => [
36
- t.icon ? (n(), r("van-icon", {
37
- key: 0,
38
- name: e.active === o && t.icon[1] || t.icon[0]
39
- }, null, 8, E)) : S("", !0),
40
- V(" " + T(t.text), 1)
41
- ])
42
- ], 42, D))), 128))
43
- ], 16, z));
115
+ e.type === "field" ? E((a(), s("van-field", L({ key: 0 }, e.$attrs, {
116
+ class: "sun-selector",
117
+ label: e.label,
118
+ value: K.value,
119
+ placeholder: e.placeholder,
120
+ required: e.required,
121
+ disabled: e.disabled,
122
+ onClickInput: l[1] || (l[1] = (o) => v())
123
+ }), [
124
+ S.value ? (a(), s("van-icon", {
125
+ key: 0,
126
+ slot: "right-icon",
127
+ name: "clear",
128
+ onTap: l[0] || (l[0] = (o) => z())
129
+ }, null, 32)) : u("", !0)
130
+ ], 16, ve)), [
131
+ [n]
132
+ ]) : e.type === "search" ? E((a(), s("van-search", L({ key: 1 }, e.$attrs, {
133
+ class: "sun-selector",
134
+ label: e.label,
135
+ value: K.value,
136
+ placeholder: e.placeholder,
137
+ "use-right-icon-slot": S.value,
138
+ shape: "round",
139
+ clearable: !1,
140
+ disabled: e.disabled,
141
+ onClickInput: l[3] || (l[3] = (o) => v())
142
+ }), [
143
+ S.value ? (a(), s("van-icon", {
144
+ key: 0,
145
+ slot: "right-icon",
146
+ name: "clear",
147
+ onTap: l[2] || (l[2] = (o) => z())
148
+ }, null, 32)) : u("", !0)
149
+ ], 16, fe)), [
150
+ [n]
151
+ ]) : u("", !0)
152
+ ]),
153
+ pe(d(re), { hook: "created" }, {
154
+ default: N(() => [
155
+ c("van-action-sheet", {
156
+ show: k.value,
157
+ title: e.placeholder,
158
+ "close-on-click-overlay": !0,
159
+ onClose: l[8] || (l[8] = (o) => f()),
160
+ onCancel: l[9] || (l[9] = (o) => f())
161
+ }, [
162
+ e.searchable ? (a(), s("van-search", {
163
+ key: 0,
164
+ shape: "round",
165
+ "input-align": "center",
166
+ value: d(W),
167
+ placeholder: "输入关键字搜索",
168
+ onChange: l[4] || (l[4] = (o) => W.value = o.detail.trim())
169
+ }, null, 40, he)) : u("", !0),
170
+ e.virtual ? (a(), s(T, { key: 1 }, [
171
+ V.value ? (a(), R(d(ie), {
172
+ key: 0,
173
+ class: "sun-selector-options",
174
+ refresher: e.refresher,
175
+ refreshing: e.refreshing,
176
+ items: d($),
177
+ "item-size": j.value.itemSize,
178
+ "item-key": e.valueKey,
179
+ style: w({ height: e.height }),
180
+ onRefresh: l[5] || (l[5] = (o) => r("refresh"))
181
+ }, {
182
+ default: N(({ item: o, index: B }) => [
183
+ y(e.$slots, "option", {
184
+ option: o,
185
+ index: B,
186
+ active: i(o),
187
+ select: () => m(o)
188
+ }, () => [
189
+ c("van-cell", {
190
+ class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
191
+ clickable: !0,
192
+ size: "large",
193
+ onTap: (I) => m(o)
194
+ }, [
195
+ c("slot-view", ge, F(o[e.labelKey]), 1),
196
+ i(o) ? (a(), s("van-icon", be)) : u("", !0)
197
+ ], 42, ye)
198
+ ])
199
+ ]),
200
+ _: 3
201
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), s("view", {
202
+ key: 1,
203
+ style: w({ height: e.height })
204
+ }, null, 4))
205
+ ], 64)) : (a(), R(d(ue), {
206
+ key: 2,
207
+ class: "sun-selector-options",
208
+ refresher: e.refresher,
209
+ refreshing: e.refreshing,
210
+ data: d($),
211
+ loading: e.loading,
212
+ "empty-type": "search",
213
+ style: w({ height: e.height }),
214
+ onRefresh: l[6] || (l[6] = (o) => r("refresh"))
215
+ }, {
216
+ default: N(() => [
217
+ (a(!0), s(T, null, ce(d($), (o, B) => y(e.$slots, "option", {
218
+ key: o[e.valueKey],
219
+ option: o,
220
+ index: B,
221
+ active: i(o),
222
+ select: () => m(o)
223
+ }, () => [
224
+ c("van-cell", {
225
+ class: O(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
226
+ clickable: !0,
227
+ size: "large",
228
+ onTap: (I) => m(o)
229
+ }, [
230
+ c("slot-view", Ve, F(o[e.labelKey]), 1),
231
+ i(o) ? (a(), s("van-icon", $e)) : u("", !0)
232
+ ], 42, ke)
233
+ ])), 128))
234
+ ]),
235
+ _: 3
236
+ }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
237
+ y(e.$slots, "footer", { confirm: q }, () => [
238
+ p.value ? u("", !0) : (a(), s("view", Ke, [
239
+ c("van-button", {
240
+ type: "primary",
241
+ round: "true",
242
+ block: "true",
243
+ onTap: l[7] || (l[7] = (o) => q())
244
+ }, "确定", 32)
245
+ ]))
246
+ ])
247
+ ], 40, me)
248
+ ]),
249
+ _: 3
250
+ })
251
+ ], 64);
252
+ };
44
253
  }
45
254
  });
46
255
  export {
47
- j as default
256
+ Ne as default
48
257
  };
package/index110.js CHANGED
@@ -1,6 +1,9 @@
1
- function a(t) {
2
- return this.__data__.get(t);
1
+ import r from "./index93.js";
2
+ import i from "./index127.js";
3
+ function f(t, a) {
4
+ var e = i(t, a);
5
+ return r(e) ? e : void 0;
3
6
  }
4
7
  export {
5
- a as default
8
+ f as default
6
9
  };
package/index111.js CHANGED
@@ -1,6 +1,20 @@
1
- function t(a) {
2
- return this.__data__.has(a);
1
+ import p from "./index128.js";
2
+ import a from "./index129.js";
3
+ import i from "./index130.js";
4
+ import h from "./index131.js";
5
+ import s from "./index132.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
+ }
3
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;
4
18
  export {
5
19
  t as default
6
20
  };
package/index112.js CHANGED
@@ -1,17 +1,7 @@
1
- import _ from "./index107.js";
2
- import e from "./index83.js";
3
- import r from "./index98.js";
4
- var h = 200;
5
- function m(i, s) {
6
- var t = this.__data__;
7
- if (t instanceof _) {
8
- var a = t.__data__;
9
- if (!e || a.length < h - 1)
10
- return a.push([i, s]), this.size = ++t.size, this;
11
- t = this.__data__ = new r(a);
12
- }
13
- return t.set(i, s), this.size = t.size, this;
1
+ import t from "./index111.js";
2
+ function e() {
3
+ this.__data__ = new t(), this.size = 0;
14
4
  }
15
5
  export {
16
- m as default
6
+ e as default
17
7
  };
package/index113.js CHANGED
@@ -1,10 +1,7 @@
1
- import o from "./index79.js";
2
- import a from "./index57.js";
3
- var n = Object.prototype, l = n.propertyIsEnumerable, t = Object.getOwnPropertySymbols, m = t ? function(r) {
4
- return r == null ? [] : (r = Object(r), o(t(r), function(e) {
5
- return l.call(r, e);
6
- }));
7
- } : a;
1
+ function s(t) {
2
+ var e = this.__data__, a = e.delete(t);
3
+ return this.size = e.size, a;
4
+ }
8
5
  export {
9
- m as default
6
+ s as default
10
7
  };
package/index114.js CHANGED
@@ -1,8 +1,6 @@
1
- import n from "./index128.js";
2
- function o(t) {
3
- var e = new t.constructor(t.byteLength);
4
- return new n(e).set(new n(t)), e;
1
+ function a(t) {
2
+ return this.__data__.get(t);
5
3
  }
6
4
  export {
7
- o as default
5
+ a as default
8
6
  };
package/index115.js CHANGED
@@ -1,7 +1,5 @@
1
- import n from "./index114.js";
2
- function t(r, f) {
3
- var e = f ? n(r.buffer) : r.buffer;
4
- return new r.constructor(e, r.byteOffset, r.byteLength);
1
+ function t(a) {
2
+ return this.__data__.has(a);
5
3
  }
6
4
  export {
7
5
  t as default
package/index116.js CHANGED
@@ -1,8 +1,17 @@
1
- var a = /\w*$/;
2
- function e(t) {
3
- var n = new t.constructor(t.source, a.exec(t));
4
- return n.lastIndex = t.lastIndex, n;
1
+ import _ from "./index111.js";
2
+ import e from "./index88.js";
3
+ import r from "./index100.js";
4
+ var h = 200;
5
+ function m(i, s) {
6
+ var t = this.__data__;
7
+ if (t instanceof _) {
8
+ var a = t.__data__;
9
+ if (!e || a.length < h - 1)
10
+ return a.push([i, s]), this.size = ++t.size, this;
11
+ t = this.__data__ = new r(a);
12
+ }
13
+ return t.set(i, s), this.size = t.size, this;
5
14
  }
6
15
  export {
7
- e as default
16
+ m as default
8
17
  };
package/index117.js CHANGED
@@ -1,8 +1,10 @@
1
- import o from "./index88.js";
2
- var e = o ? o.prototype : void 0, l = e ? e.valueOf : void 0;
3
- function r(t) {
4
- return l ? Object(l.call(t)) : {};
5
- }
1
+ import o from "./index81.js";
2
+ import a from "./index59.js";
3
+ var n = Object.prototype, l = n.propertyIsEnumerable, t = Object.getOwnPropertySymbols, m = t ? function(r) {
4
+ return r == null ? [] : (r = Object(r), o(t(r), function(e) {
5
+ return l.call(r, e);
6
+ }));
7
+ } : a;
6
8
  export {
7
- r as default
9
+ m as default
8
10
  };
package/index118.js CHANGED
@@ -1,8 +1,8 @@
1
- import o from "./index114.js";
2
- function u(f, e) {
3
- var n = e ? o(f.buffer) : f.buffer;
4
- return new f.constructor(n, f.byteOffset, f.length);
1
+ import n from "./index133.js";
2
+ function o(t) {
3
+ var e = new t.constructor(t.byteLength);
4
+ return new n(e).set(new n(t)), e;
5
5
  }
6
6
  export {
7
- u as default
7
+ o as default
8
8
  };
package/index119.js CHANGED
@@ -1,5 +1,8 @@
1
- import r from "./index40.js";
2
- var a = r["__core-js_shared__"];
1
+ import n from "./index118.js";
2
+ function t(r, f) {
3
+ var e = f ? n(r.buffer) : r.buffer;
4
+ return new r.constructor(e, r.byteOffset, r.byteLength);
5
+ }
3
6
  export {
4
- a as default
7
+ t as default
5
8
  };
package/index12.js CHANGED
@@ -1,21 +1,48 @@
1
- import { getCurrentInstance as o, nextTick as a } from "@tarojs/taro";
2
- function c(e, t, n, p) {
3
- e.selectComponent("#" + t).setData({ [n]: p });
4
- }
5
- const r = {
6
- mounted(e, t) {
7
- const { page: n } = o();
8
- a(() => {
9
- a(() => {
10
- c(n, e.id, t.arg, t.value);
11
- });
12
- });
1
+ import { defineComponent as u, computed as p, renderList as _, Fragment as d, openBlock as v, createElementBlock as f, renderSlot as g, createCommentVNode as b, toDisplayString as h, createTextVNode as k, normalizeClass as y, mergeProps as C } from "vue";
2
+ const w = _, B = d, n = v, r = f, N = g, S = b, T = h, V = k, L = y, $ = C, z = ["scroll-left"], D = ["onTap"], E = ["name"], j = /* @__PURE__ */ u({
3
+ __name: "index",
4
+ props: {
5
+ tabs: {},
6
+ active: { default: 0 }
13
7
  },
14
- updated(e, t) {
15
- const { page: n } = o();
16
- c(n, e.id, t.arg, t.value);
8
+ emits: ["update:active", "toggle"],
9
+ setup(l, { emit: c }) {
10
+ const a = c, s = l, i = p(() => s.active > 2 ? (s.active - 2) * 150 + "rpx" : 0);
11
+ function m(e) {
12
+ a("toggle", e), a("update:active", e);
13
+ }
14
+ return (e, F) => (n(), r("scroll-view", $(e.$attrs, {
15
+ class: "sun-tabbar",
16
+ "scroll-x": !0,
17
+ "enable-flex": !0,
18
+ enhanced: !0,
19
+ "show-scrollbar": !1,
20
+ "scroll-with-animation": !0,
21
+ "scroll-left": i.value
22
+ }), [
23
+ (n(!0), r(B, null, w(e.tabs, (t, o) => (n(), r("view", {
24
+ key: o,
25
+ class: L(["sun-tabbar-item", {
26
+ "sun-tabbar-item-active": e.active === o,
27
+ "sun-tabbar-item-icon-only": !t.text,
28
+ "sun-tabbar-item-text-only": !t.icon
29
+ }]),
30
+ onTap: (P) => m(o)
31
+ }, [
32
+ N(e.$slots, "default", {
33
+ tab: t,
34
+ index: o
35
+ }, () => [
36
+ t.icon ? (n(), r("van-icon", {
37
+ key: 0,
38
+ name: e.active === o && t.icon[1] || t.icon[0]
39
+ }, null, 8, E)) : S("", !0),
40
+ V(" " + T(t.text), 1)
41
+ ])
42
+ ], 42, D))), 128))
43
+ ], 16, z));
17
44
  }
18
- };
45
+ });
19
46
  export {
20
- r as vBindFn
47
+ j as default
21
48
  };
package/index120.js CHANGED
@@ -1,20 +1,8 @@
1
- import p from "./index129.js";
2
- import a from "./index130.js";
3
- import l from "./index131.js";
4
- import s from "./index132.js";
5
- import m from "./index133.js";
6
- function t(o) {
7
- var e = -1, h = o == null ? 0 : o.length;
8
- for (this.clear(); ++e < h; ) {
9
- var r = o[e];
10
- this.set(r[0], r[1]);
11
- }
1
+ var a = /\w*$/;
2
+ function e(t) {
3
+ var n = new t.constructor(t.source, a.exec(t));
4
+ return n.lastIndex = t.lastIndex, n;
12
5
  }
13
- t.prototype.clear = p;
14
- t.prototype.delete = a;
15
- t.prototype.get = l;
16
- t.prototype.has = s;
17
- t.prototype.set = m;
18
6
  export {
19
- t as default
7
+ e as default
20
8
  };
package/index121.js CHANGED
@@ -1,8 +1,8 @@
1
- import e from "./index134.js";
2
- function n(r, a) {
3
- var t = r.__data__;
4
- return e(a) ? t[typeof a == "string" ? "string" : "hash"] : t.map;
1
+ import o from "./index83.js";
2
+ var e = o ? o.prototype : void 0, l = e ? e.valueOf : void 0;
3
+ function r(t) {
4
+ return l ? Object(l.call(t)) : {};
5
5
  }
6
6
  export {
7
- n as default
7
+ r as default
8
8
  };
package/index122.js CHANGED
@@ -1,6 +1,8 @@
1
- function t() {
2
- this.__data__ = [], this.size = 0;
1
+ import o from "./index118.js";
2
+ function u(f, e) {
3
+ var n = e ? o(f.buffer) : f.buffer;
4
+ return new f.constructor(n, f.byteOffset, f.length);
3
5
  }
4
6
  export {
5
- t as default
7
+ u as default
6
8
  };
package/index123.js CHANGED
@@ -1,12 +1,5 @@
1
- import s from "./index135.js";
2
- var i = Array.prototype, l = i.splice;
3
- function n(r) {
4
- var e = this.__data__, a = s(e, r);
5
- if (a < 0)
6
- return !1;
7
- var t = e.length - 1;
8
- return a == t ? e.pop() : l.call(e, a, 1), --this.size, !0;
9
- }
1
+ import r from "./index42.js";
2
+ var a = r["__core-js_shared__"];
10
3
  export {
11
- n as default
4
+ a as default
12
5
  };
package/index124.js CHANGED
@@ -1,8 +1,20 @@
1
- import d from "./index135.js";
2
- function i(e) {
3
- var t = this.__data__, a = d(t, e);
4
- return a < 0 ? void 0 : t[a][1];
1
+ import p from "./index134.js";
2
+ import a from "./index135.js";
3
+ import l from "./index136.js";
4
+ import s from "./index137.js";
5
+ import m from "./index138.js";
6
+ function t(o) {
7
+ var e = -1, h = o == null ? 0 : o.length;
8
+ for (this.clear(); ++e < h; ) {
9
+ var r = o[e];
10
+ this.set(r[0], r[1]);
11
+ }
5
12
  }
13
+ t.prototype.clear = p;
14
+ t.prototype.delete = a;
15
+ t.prototype.get = l;
16
+ t.prototype.has = s;
17
+ t.prototype.set = m;
6
18
  export {
7
- i as default
19
+ t as default
8
20
  };
package/index125.js CHANGED
@@ -1,7 +1,8 @@
1
- import a from "./index135.js";
2
- function e(t) {
3
- return a(this.__data__, t) > -1;
1
+ import e from "./index139.js";
2
+ function n(r, a) {
3
+ var t = r.__data__;
4
+ return e(a) ? t[typeof a == "string" ? "string" : "hash"] : t.map;
4
5
  }
5
6
  export {
6
- e as default
7
+ n as default
7
8
  };