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