@solar-taro/ui-vant 1.0.2 → 1.0.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 (137) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +32 -1762
  3. package/index10.js +236 -0
  4. package/index100.js +7 -0
  5. package/index101.js +8 -0
  6. package/index102.js +9 -0
  7. package/index103.js +12 -0
  8. package/index104.js +9 -0
  9. package/index105.js +20 -0
  10. package/index106.js +7 -0
  11. package/index107.js +7 -0
  12. package/index108.js +6 -0
  13. package/index109.js +6 -0
  14. package/index11.js +48 -0
  15. package/index110.js +17 -0
  16. package/index111.js +10 -0
  17. package/index112.js +8 -0
  18. package/index113.js +8 -0
  19. package/index114.js +8 -0
  20. package/index115.js +8 -0
  21. package/index116.js +8 -0
  22. package/index117.js +9 -0
  23. package/index118.js +5 -0
  24. package/index119.js +20 -0
  25. package/index12.js +21 -0
  26. package/index120.js +8 -0
  27. package/index121.js +6 -0
  28. package/index122.js +12 -0
  29. package/index123.js +8 -0
  30. package/index124.js +7 -0
  31. package/index125.js +8 -0
  32. package/index126.js +6 -0
  33. package/index127.js +5 -0
  34. package/index128.js +7 -0
  35. package/index129.js +7 -0
  36. package/index13.js +31 -0
  37. package/index130.js +13 -0
  38. package/index131.js +9 -0
  39. package/index132.js +9 -0
  40. package/index133.js +7 -0
  41. package/index134.js +10 -0
  42. package/index135.js +5 -0
  43. package/index14.js +7 -0
  44. package/index15.js +66 -0
  45. package/index16.js +4 -0
  46. package/index17.js +4 -0
  47. package/index18.js +4 -0
  48. package/index19.js +4 -0
  49. package/index2.js +9 -0
  50. package/index20.js +4 -0
  51. package/index21.js +4 -0
  52. package/index22.js +4 -0
  53. package/index23.js +4 -0
  54. package/index24.js +4 -0
  55. package/index25.js +8 -0
  56. package/index26.js +11 -0
  57. package/index27.js +11 -0
  58. package/index28.js +65 -0
  59. package/index29.js +6 -0
  60. package/index3.js +131 -0
  61. package/index30.js +10 -0
  62. package/index31.js +9 -0
  63. package/index32.js +6 -0
  64. package/index33.js +4 -0
  65. package/index34.js +8 -0
  66. package/index35.js +12 -0
  67. package/index36.js +7 -0
  68. package/index37.js +6 -0
  69. package/index38.js +5 -0
  70. package/index39.js +6 -0
  71. package/index4.js +172 -0
  72. package/index40.js +10 -0
  73. package/index41.js +7 -0
  74. package/index42.js +7 -0
  75. package/index43.js +9 -0
  76. package/index44.js +8 -0
  77. package/index45.js +11 -0
  78. package/index46.js +7 -0
  79. package/index47.js +9 -0
  80. package/index48.js +7 -0
  81. package/index49.js +12 -0
  82. package/index5.js +36 -0
  83. package/index50.js +9 -0
  84. package/index51.js +20 -0
  85. package/index52.js +14 -0
  86. package/index53.js +9 -0
  87. package/index54.js +15 -0
  88. package/index55.js +6 -0
  89. package/index56.js +14 -0
  90. package/index57.js +10 -0
  91. package/index58.js +12 -0
  92. package/index59.js +8 -0
  93. package/index6.js +102 -0
  94. package/index60.js +8 -0
  95. package/index61.js +11 -0
  96. package/index62.js +18 -0
  97. package/index63.js +8 -0
  98. package/index64.js +8 -0
  99. package/index65.js +11 -0
  100. package/index66.js +9 -0
  101. package/index67.js +8 -0
  102. package/index68.js +8 -0
  103. package/index69.js +9 -0
  104. package/index7.js +46 -0
  105. package/index70.js +9 -0
  106. package/index71.js +28 -0
  107. package/index72.js +8 -0
  108. package/index73.js +42 -0
  109. package/index74.js +9 -0
  110. package/index75.js +8 -0
  111. package/index76.js +17 -0
  112. package/index77.js +10 -0
  113. package/index78.js +4 -0
  114. package/index79.js +5 -0
  115. package/index8.js +272 -0
  116. package/index80.js +6 -0
  117. package/index81.js +6 -0
  118. package/index82.js +6 -0
  119. package/index83.js +6 -0
  120. package/index84.js +6 -0
  121. package/index85.js +17 -0
  122. package/index86.js +5 -0
  123. package/index87.js +15 -0
  124. package/index88.js +7 -0
  125. package/index89.js +16 -0
  126. package/index9.js +64 -0
  127. package/index90.js +11 -0
  128. package/index91.js +5 -0
  129. package/index92.js +8 -0
  130. package/index93.js +8 -0
  131. package/index94.js +8 -0
  132. package/index95.js +10 -0
  133. package/index96.js +20 -0
  134. package/index97.js +13 -0
  135. package/index98.js +8 -0
  136. package/index99.js +7 -0
  137. package/package.json +1 -1
package/index4.js ADDED
@@ -0,0 +1,172 @@
1
+ import { defineComponent as I, ref as m, computed as u, renderSlot as q, openBlock as z, createElementBlock as Y, createCommentVNode as j, createElementVNode as A, mergeProps as G, resolveDirective as J, withDirectives as K, unref as L, toDisplayString as O, normalizeClass as Q, Fragment as R } from "vue";
2
+ import { date as f } from "@solar-taro/core";
3
+ import { vDatetimePicker as U } from "./index13.js";
4
+ const W = q, o = z, i = Y, X = j, l = A, Z = G, x = J, C = K, w = L, d = O, $ = Q, ee = R, te = ["label", "value", "placeholder"], ae = { name: "right-icon" }, ne = ["show", "title"], le = { class: "sun-date-range-picker-input-group" }, re = {
5
+ key: 0,
6
+ class: "sun-date-range-picker-input-value"
7
+ }, oe = {
8
+ key: 1,
9
+ class: "sun-date-range-picker-input-placeholder"
10
+ }, ie = { class: "sun-date-range-picker-input-label" }, se = {
11
+ key: 0,
12
+ name: "down",
13
+ color: "var(--color-gray)"
14
+ }, ue = {
15
+ key: 0,
16
+ class: "date-range-picker-input-value"
17
+ }, de = {
18
+ key: 1,
19
+ class: "sun-date-range-picker-input-placeholder"
20
+ }, ce = { class: "sun-date-range-picker-input-label" }, ve = ["id", "type", "value", "min-date", "max-date"], pe = { class: "sun-date-range-picker-btn-wrapper" };
21
+ let me = 1;
22
+ const ke = /* @__PURE__ */ I({
23
+ __name: "index",
24
+ props: {
25
+ id: { default: () => `van-datetime-picker-${me++}` },
26
+ type: { default: "date" },
27
+ label: {},
28
+ title: {},
29
+ placeholder: {},
30
+ modelValue: {},
31
+ required: { type: Boolean },
32
+ format: {},
33
+ minDate: { default: () => new Date((/* @__PURE__ */ new Date()).getFullYear() - 5, 0, 0, 0, 0, 0).getTime() },
34
+ maxDate: { default: () => new Date((/* @__PURE__ */ new Date()).getFullYear() + 5, 0, 0, 0, 0, 0).getTime() }
35
+ },
36
+ emits: ["update:modelValue", "confirm", "clear", "close"],
37
+ setup(M, { emit: T }) {
38
+ var b;
39
+ const a = M, s = T, _ = " ~ ", n = m([...a.modelValue]), h = m((b = a.modelValue[0]) != null ? b : D()), y = m(!0), c = m(0), B = u(() => {
40
+ const [t, e] = a.modelValue;
41
+ return t && e ? f(t, v.value) + _ + f(e, v.value) : "";
42
+ }), F = u(() => a.modelValue.length && !a.required), v = u(() => {
43
+ if (a.format)
44
+ return a.format;
45
+ switch (a.type) {
46
+ case "date":
47
+ return "yyyy-MM-dd";
48
+ case "datetime":
49
+ return "yyyy-MM-dd HH:mm";
50
+ }
51
+ }), E = u(() => {
52
+ if (a.title)
53
+ return a.title;
54
+ switch (a.type) {
55
+ case "date":
56
+ return "请选择日期";
57
+ case "datetime":
58
+ return "请选择时间";
59
+ }
60
+ }), g = u(() => {
61
+ if (a.placeholder)
62
+ return a.placeholder;
63
+ switch (a.type) {
64
+ case "date":
65
+ return ["开始日期", "结束日期"];
66
+ case "datetime":
67
+ return ["开始时间", "结束时间"];
68
+ }
69
+ });
70
+ function D() {
71
+ const t = /* @__PURE__ */ new Date(), e = t.getMinutes();
72
+ switch (a.type) {
73
+ case "date":
74
+ return t.setHours(0, 0, 0, 0);
75
+ case "datetime":
76
+ return t.setMinutes(e - e % 5);
77
+ }
78
+ }
79
+ function V() {
80
+ y.value = !0, p(0);
81
+ }
82
+ function k() {
83
+ y.value = !1, s("close");
84
+ }
85
+ function N() {
86
+ n.value = [], s("clear", a.modelValue), s("update:modelValue", []);
87
+ }
88
+ function p(t) {
89
+ var e;
90
+ c.value = t, h.value = (e = n.value)[t] || (e[t] = D());
91
+ }
92
+ function P(t) {
93
+ n.value[c.value] = t;
94
+ }
95
+ function S() {
96
+ const [t, e] = n.value;
97
+ if (!t || !e)
98
+ return p(t ? 1 : 0);
99
+ s("update:modelValue", [...n.value]), s("confirm", n.value), k();
100
+ }
101
+ return (t, e) => {
102
+ const H = x("readonly");
103
+ return o(), i(ee, null, [
104
+ W(t.$slots, "default", { present: V }, () => [
105
+ C((o(), i("van-field", Z(t.$attrs, {
106
+ label: t.label,
107
+ value: B.value,
108
+ placeholder: g.value.join(_),
109
+ onClickInput: e[1] || (e[1] = (r) => V())
110
+ }), [
111
+ l("slot-view", ae, [
112
+ F.value ? (o(), i("van-icon", {
113
+ key: 0,
114
+ name: "clear",
115
+ onTap: e[0] || (e[0] = (r) => N())
116
+ }, null, 32)) : X("", !0)
117
+ ])
118
+ ], 16, te)), [
119
+ [H]
120
+ ])
121
+ ]),
122
+ l("van-action-sheet", {
123
+ show: y.value,
124
+ title: E.value,
125
+ "close-on-click-overlay": !0,
126
+ onClose: e[6] || (e[6] = (r) => k()),
127
+ onCancel: e[7] || (e[7] = (r) => k())
128
+ }, [
129
+ l("view", le, [
130
+ l("view", {
131
+ class: $(["sun-date-range-picker-input", { "sun-date-range-picker-input-active": c.value === 0 }]),
132
+ onTap: e[2] || (e[2] = (r) => p(0))
133
+ }, [
134
+ n.value[0] ? (o(), i("view", re, d(w(f)(n.value[0], v.value)), 1)) : (o(), i("view", oe, "请选择")),
135
+ l("view", ie, d(g.value[0]), 1)
136
+ ], 34),
137
+ (o(), i("van-icon", se)),
138
+ l("view", {
139
+ class: $(["sun-date-range-picker-input", { "sun-date-range-picker-input-active": c.value === 1 }]),
140
+ onTap: e[3] || (e[3] = (r) => p(1))
141
+ }, [
142
+ n.value[1] ? (o(), i("view", ue, d(w(f)(n.value[1], v.value)), 1)) : (o(), i("view", de, "请选择")),
143
+ l("view", ce, d(g.value[1]), 1)
144
+ ], 34)
145
+ ]),
146
+ C(l("van-datetime-picker", {
147
+ id: t.id,
148
+ type: t.type,
149
+ "show-toolbar": !1,
150
+ value: h.value,
151
+ "min-date": t.minDate,
152
+ "max-date": t.maxDate,
153
+ onModify: e[4] || (e[4] = (r) => P(r.detail))
154
+ }, null, 40, ve), [
155
+ [w(U)]
156
+ ]),
157
+ l("view", pe, [
158
+ l("van-button", {
159
+ type: "primary",
160
+ round: "true",
161
+ block: "true",
162
+ onTap: e[5] || (e[5] = (r) => S())
163
+ }, d(n.value[0] && n.value[1] ? "确定" : "继续"), 33)
164
+ ])
165
+ ], 40, ne)
166
+ ], 64);
167
+ };
168
+ }
169
+ });
170
+ export {
171
+ ke as default
172
+ };
package/index40.js ADDED
@@ -0,0 +1,10 @@
1
+ import t from "./index86.js";
2
+ import e from "./index87.js";
3
+ import o from "./index88.js";
4
+ var i = "[object Null]", f = "[object Undefined]", r = t ? t.toStringTag : void 0;
5
+ function m(n) {
6
+ return n == null ? n === void 0 ? f : i : r && r in Object(n) ? e(n) : o(n);
7
+ }
8
+ export {
9
+ m as default
10
+ };
package/index41.js ADDED
@@ -0,0 +1,7 @@
1
+ function n(t) {
2
+ var e = typeof t;
3
+ return t != null && (e == "object" || e == "function");
4
+ }
5
+ export {
6
+ n as default
7
+ };
package/index42.js ADDED
@@ -0,0 +1,7 @@
1
+ import o from "./index43.js";
2
+ import p from "./index44.js";
3
+ import a from "./index45.js";
4
+ var r = a && a.isMap, m = r ? p(r) : o;
5
+ export {
6
+ m as default
7
+ };
package/index43.js ADDED
@@ -0,0 +1,9 @@
1
+ import a from "./index71.js";
2
+ import r from "./index32.js";
3
+ var e = "[object Map]";
4
+ function i(t) {
5
+ return r(t) && a(t) == e;
6
+ }
7
+ export {
8
+ i as default
9
+ };
package/index44.js ADDED
@@ -0,0 +1,8 @@
1
+ function t(n) {
2
+ return function(r) {
3
+ return n(r);
4
+ };
5
+ }
6
+ export {
7
+ t as default
8
+ };
package/index45.js ADDED
@@ -0,0 +1,11 @@
1
+ import p from "./index78.js";
2
+ var t = typeof exports == "object" && exports && !exports.nodeType && exports, e = t && typeof module == "object" && module && !module.nodeType && module, u = e && e.exports === t, r = u && p.process, l = function() {
3
+ try {
4
+ var o = e && e.require && e.require("util").types;
5
+ return o || r && r.binding && r.binding("util");
6
+ } catch {
7
+ }
8
+ }();
9
+ export {
10
+ l as default
11
+ };
package/index46.js ADDED
@@ -0,0 +1,7 @@
1
+ import t from "./index47.js";
2
+ import o from "./index44.js";
3
+ import e from "./index45.js";
4
+ var r = e && e.isSet, m = r ? o(r) : t;
5
+ export {
6
+ m as default
7
+ };
package/index47.js ADDED
@@ -0,0 +1,9 @@
1
+ import e from "./index71.js";
2
+ import r from "./index32.js";
3
+ var o = "[object Set]";
4
+ function s(t) {
5
+ return r(t) && e(t) == o;
6
+ }
7
+ export {
8
+ s as default
9
+ };
package/index48.js ADDED
@@ -0,0 +1,7 @@
1
+ import e from "./index49.js";
2
+ import o from "./index44.js";
3
+ import r from "./index45.js";
4
+ var a = r && r.isTypedArray, s = a ? o(a) : e;
5
+ export {
6
+ s as default
7
+ };
package/index49.js ADDED
@@ -0,0 +1,12 @@
1
+ import e from "./index40.js";
2
+ import r from "./index36.js";
3
+ import o from "./index32.js";
4
+ var g = "[object Arguments]", b = "[object Array]", c = "[object Boolean]", j = "[object Date]", n = "[object Error]", T = "[object Function]", i = "[object Map]", y = "[object Number]", p = "[object Object]", A = "[object RegExp]", f = "[object Set]", u = "[object String]", m = "[object WeakMap]", s = "[object ArrayBuffer]", l = "[object DataView]", d = "[object Float32Array]", I = "[object Float64Array]", U = "[object Int8Array]", k = "[object Int16Array]", w = "[object Int32Array]", x = "[object Uint8Array]", B = "[object Uint8ClampedArray]", F = "[object Uint16Array]", M = "[object Uint32Array]", a = {};
5
+ a[d] = a[I] = a[U] = a[k] = a[w] = a[x] = a[B] = a[F] = a[M] = !0;
6
+ a[g] = a[b] = a[s] = a[c] = a[l] = a[j] = a[n] = a[T] = a[i] = a[y] = a[p] = a[A] = a[f] = a[u] = a[m] = !1;
7
+ function E(t) {
8
+ return o(t) && r(t.length) && !!a[e(t)];
9
+ }
10
+ export {
11
+ E as default
12
+ };
package/index5.js ADDED
@@ -0,0 +1,36 @@
1
+ import { defineComponent as c, computed as i, renderSlot as m, createElementVNode as d, openBlock as u, createElementBlock as p, createCommentVNode as _, normalizeClass as k } from "vue";
2
+ const t = m, n = d, s = u, l = p, v = _, B = k, f = { class: "sun-item-inner" }, h = { class: "sun-item-content-wrapper" }, w = {
3
+ key: 0,
4
+ class: "sun-item-detail-icon",
5
+ name: "arrow",
6
+ color: "var(--arrow-color)"
7
+ }, E = /* @__PURE__ */ c({
8
+ __name: "index",
9
+ props: {
10
+ detail: { type: Boolean },
11
+ lines: { type: Boolean, default: !0 },
12
+ clickable: { type: Boolean }
13
+ },
14
+ setup(a) {
15
+ const o = a, r = i(() => ({
16
+ "sun-item-lines-none": !o.lines,
17
+ "sun-item-clickable": o.detail || o.clickable
18
+ }));
19
+ return (e, C) => (s(), l("view", {
20
+ class: B(["sun-item", r.value]),
21
+ "hover-class": "hover"
22
+ }, [
23
+ t(e.$slots, "start"),
24
+ n("view", f, [
25
+ n("view", h, [
26
+ t(e.$slots, "default")
27
+ ]),
28
+ t(e.$slots, "end"),
29
+ e.detail ? (s(), l("van-icon", w)) : v("", !0)
30
+ ])
31
+ ], 2));
32
+ }
33
+ });
34
+ export {
35
+ E as default
36
+ };
package/index50.js ADDED
@@ -0,0 +1,9 @@
1
+ import e from "./index51.js";
2
+ import i from "./index52.js";
3
+ import a from "./index34.js";
4
+ function f(r) {
5
+ return a(r) ? e(r) : i(r);
6
+ }
7
+ export {
8
+ f as default
9
+ };
package/index51.js ADDED
@@ -0,0 +1,20 @@
1
+ import a from "./index93.js";
2
+ import g from "./index30.js";
3
+ import h from "./index33.js";
4
+ import b from "./index37.js";
5
+ import A from "./index94.js";
6
+ import c from "./index48.js";
7
+ var d = Object.prototype, O = d.hasOwnProperty;
8
+ function l(t, p) {
9
+ var o = h(t), i = !o && g(t), s = !o && !i && b(t), e = !o && !i && !s && c(t), n = o || i || s || e, f = n ? a(t.length, String) : [], m = f.length;
10
+ for (var r in t)
11
+ (p || O.call(t, r)) && !(n && // Safari 9 has enumerable `arguments.length` in strict mode.
12
+ (r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
13
+ s && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
14
+ e && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
15
+ A(r, m))) && f.push(r);
16
+ return f;
17
+ }
18
+ export {
19
+ l as default
20
+ };
package/index52.js ADDED
@@ -0,0 +1,14 @@
1
+ import a from "./index59.js";
2
+ import e from "./index79.js";
3
+ var s = Object.prototype, n = s.hasOwnProperty;
4
+ function f(r) {
5
+ if (!a(r))
6
+ return e(r);
7
+ var o = [];
8
+ for (var t in Object(r))
9
+ n.call(r, t) && t != "constructor" && o.push(t);
10
+ return o;
11
+ }
12
+ export {
13
+ f as default
14
+ };
package/index53.js ADDED
@@ -0,0 +1,9 @@
1
+ import e from "./index51.js";
2
+ import i from "./index54.js";
3
+ import a from "./index34.js";
4
+ function t(r) {
5
+ return a(r) ? e(r, !0) : i(r);
6
+ }
7
+ export {
8
+ t as default
9
+ };
package/index54.js ADDED
@@ -0,0 +1,15 @@
1
+ import a from "./index41.js";
2
+ import i from "./index59.js";
3
+ import n from "./index95.js";
4
+ var e = Object.prototype, p = e.hasOwnProperty;
5
+ function v(r) {
6
+ if (!a(r))
7
+ return n(r);
8
+ var s = i(r), o = [];
9
+ for (var t in r)
10
+ t == "constructor" && (s || !p.call(r, t)) || o.push(t);
11
+ return o;
12
+ }
13
+ export {
14
+ v as default
15
+ };
package/index55.js ADDED
@@ -0,0 +1,6 @@
1
+ function r() {
2
+ return [];
3
+ }
4
+ export {
5
+ r as default
6
+ };
package/index56.js ADDED
@@ -0,0 +1,14 @@
1
+ import m from "./index57.js";
2
+ import t from "./index58.js";
3
+ function v(a, f, i, u) {
4
+ var d = !i;
5
+ i || (i = {});
6
+ for (var s = -1, e = f.length; ++s < e; ) {
7
+ var n = f[s], r = void 0;
8
+ r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
9
+ }
10
+ return i;
11
+ }
12
+ export {
13
+ v as default
14
+ };
package/index57.js ADDED
@@ -0,0 +1,10 @@
1
+ import t from "./index58.js";
2
+ import i from "./index29.js";
3
+ var s = Object.prototype, p = s.hasOwnProperty;
4
+ function l(r, a, o) {
5
+ var n = r[a];
6
+ (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
7
+ }
8
+ export {
9
+ l as default
10
+ };
package/index58.js ADDED
@@ -0,0 +1,12 @@
1
+ import u from "./index61.js";
2
+ function i(r, e, t) {
3
+ e == "__proto__" && u ? u(r, e, {
4
+ configurable: !0,
5
+ enumerable: !0,
6
+ value: t,
7
+ writable: !0
8
+ }) : r[e] = t;
9
+ }
10
+ export {
11
+ i as default
12
+ };
package/index59.js ADDED
@@ -0,0 +1,8 @@
1
+ var p = Object.prototype;
2
+ function e(t) {
3
+ var o = t && t.constructor, r = typeof o == "function" && o.prototype || p;
4
+ return t === r;
5
+ }
6
+ export {
7
+ e as default
8
+ };
package/index6.js ADDED
@@ -0,0 +1,102 @@
1
+ import { defineComponent as u, renderSlot as c, toDisplayString as m, createTextVNode as y, unref as p, withCtx as w, openBlock as x, createBlock as v, createElementVNode as S, vShow as B, withDirectives as k, createVNode as b, mergeProps as T, createElementBlock as N } from "vue";
2
+ import { vibrator as V } from "@solar-taro/core";
3
+ import { SunSpinner as a } from "@solar-taro/ui-sun";
4
+ const l = c, $ = m, D = y, o = p, E = w, s = x, C = v, n = S, d = B, f = k, P = b, j = T, z = N, A = ["enable-flex", "refresher-enabled", "refresher-triggered", "refresher-background"], L = {
5
+ class: "sun-list-placeholder",
6
+ style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
7
+ }, R = ["image", "description"], q = {
8
+ class: "sun-list-loading-wrapper",
9
+ style: { "text-align": "center", padding: "10rpx" }
10
+ }, I = /* @__PURE__ */ u({
11
+ __name: "index",
12
+ props: {
13
+ refreshing: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ flex: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ loading: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ loadingText: {
26
+ type: String,
27
+ default: "Loading"
28
+ },
29
+ data: {
30
+ type: Array,
31
+ default: []
32
+ },
33
+ refresher: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ refresherBg: {
38
+ type: String,
39
+ default: "transparent"
40
+ },
41
+ emptyType: {
42
+ type: String,
43
+ default: "default"
44
+ },
45
+ emptyText: {
46
+ type: String,
47
+ default: "暂无数据"
48
+ }
49
+ },
50
+ emits: ["refresh", "lower"],
51
+ setup(e, { emit: g }) {
52
+ const i = g;
53
+ return (r, t) => (s(), z("scroll-view", j(r.$attrs, {
54
+ class: "sun-list",
55
+ enhanced: !0,
56
+ "scroll-y": !0,
57
+ "lower-threshold": 300,
58
+ "enable-flex": e.flex,
59
+ "refresher-enabled": e.refresher,
60
+ "refresher-triggered": e.refreshing,
61
+ "refresher-background": e.refresherBg,
62
+ onRefresherrefresh: t[0] || (t[0] = (h) => {
63
+ o(V).short("light"), i("refresh");
64
+ }),
65
+ onScrolltolower: t[1] || (t[1] = (h) => i("lower"))
66
+ }), [
67
+ l(r.$slots, "default"),
68
+ f(n("view", L, [
69
+ e.loading ? (s(), C(o(a), {
70
+ key: 0,
71
+ spinning: !0
72
+ }, {
73
+ default: E(() => [
74
+ D($(e.loadingText), 1)
75
+ ]),
76
+ _: 1
77
+ })) : l(r.$slots, "empty", { key: 1 }, () => [
78
+ n("van-empty", {
79
+ image: e.emptyType,
80
+ description: e.emptyText
81
+ }, [
82
+ l(r.$slots, "empty-content")
83
+ ], 8, R)
84
+ ])
85
+ ], 512), [
86
+ [d, !e.data.length]
87
+ ]),
88
+ f(n("view", q, [
89
+ P(o(a), {
90
+ spinning: !0,
91
+ size: "small"
92
+ })
93
+ ], 512), [
94
+ [d, e.data.length && e.loading && !e.refreshing]
95
+ ]),
96
+ t[2] || (t[2] = n("view", { style: { position: "absolute", height: "1px", width: "1px", overflow: "hidden" } }, null, -1))
97
+ ], 16, A));
98
+ }
99
+ });
100
+ export {
101
+ I as default
102
+ };
package/index60.js ADDED
@@ -0,0 +1,8 @@
1
+ function f(e, n) {
2
+ for (var l = -1, t = e == null ? 0 : e.length; ++l < t && n(e[l], l, e) !== !1; )
3
+ ;
4
+ return e;
5
+ }
6
+ export {
7
+ f as default
8
+ };
package/index61.js ADDED
@@ -0,0 +1,11 @@
1
+ import r from "./index104.js";
2
+ var o = function() {
3
+ try {
4
+ var e = r(Object, "defineProperty");
5
+ return e({}, "", {}), e;
6
+ } catch {
7
+ }
8
+ }();
9
+ export {
10
+ o as default
11
+ };
package/index62.js ADDED
@@ -0,0 +1,18 @@
1
+ import r from "./index105.js";
2
+ import a from "./index106.js";
3
+ import p from "./index107.js";
4
+ import s from "./index108.js";
5
+ import i from "./index109.js";
6
+ import m from "./index110.js";
7
+ function t(o) {
8
+ var e = this.__data__ = new r(o);
9
+ this.size = e.size;
10
+ }
11
+ t.prototype.clear = a;
12
+ t.prototype.delete = p;
13
+ t.prototype.get = s;
14
+ t.prototype.has = i;
15
+ t.prototype.set = m;
16
+ export {
17
+ t as default
18
+ };
package/index63.js ADDED
@@ -0,0 +1,8 @@
1
+ import o from "./index56.js";
2
+ import e from "./index50.js";
3
+ function m(r, t) {
4
+ return r && o(t, e(t), r);
5
+ }
6
+ export {
7
+ m as default
8
+ };
package/index64.js ADDED
@@ -0,0 +1,8 @@
1
+ import t from "./index56.js";
2
+ import o from "./index53.js";
3
+ function i(n, r) {
4
+ return n && t(r, o(r), n);
5
+ }
6
+ export {
7
+ i as default
8
+ };
package/index65.js ADDED
@@ -0,0 +1,11 @@
1
+ import d from "./index38.js";
2
+ var p = typeof exports == "object" && exports && !exports.nodeType && exports, t = p && typeof module == "object" && module && !module.nodeType && module, s = t && t.exports === p, n = s ? d.Buffer : void 0, l = n ? n.allocUnsafe : void 0;
3
+ function a(e, u) {
4
+ if (u)
5
+ return e.slice();
6
+ var o = e.length, r = l ? l(o) : new e.constructor(o);
7
+ return e.copy(r), r;
8
+ }
9
+ export {
10
+ a as default
11
+ };
package/index66.js ADDED
@@ -0,0 +1,9 @@
1
+ function h(t, e) {
2
+ var n = -1, l = t.length;
3
+ for (e || (e = Array(l)); ++n < l; )
4
+ e[n] = t[n];
5
+ return e;
6
+ }
7
+ export {
8
+ h as default
9
+ };
package/index67.js ADDED
@@ -0,0 +1,8 @@
1
+ import m from "./index56.js";
2
+ import r from "./index111.js";
3
+ function f(o, t) {
4
+ return m(o, r(o), t);
5
+ }
6
+ export {
7
+ f as default
8
+ };
package/index68.js ADDED
@@ -0,0 +1,8 @@
1
+ import m from "./index56.js";
2
+ import r from "./index103.js";
3
+ function e(o, t) {
4
+ return m(o, r(o), t);
5
+ }
6
+ export {
7
+ e as default
8
+ };
package/index69.js ADDED
@@ -0,0 +1,9 @@
1
+ import t from "./index102.js";
2
+ import o from "./index111.js";
3
+ import r from "./index50.js";
4
+ function f(e) {
5
+ return t(e, r, o);
6
+ }
7
+ export {
8
+ f as default
9
+ };