@solar-taro/ui-vant 1.3.2 → 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 (151) hide show
  1. package/CHANGELOG.md +4 -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 -4
  10. package/index101.js +10 -4
  11. package/index102.js +5 -5
  12. package/index103.js +4 -6
  13. package/index104.js +5 -10
  14. package/index105.js +5 -6
  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 +4 -2
  34. package/index123.js +3 -4
  35. package/index124.js +17 -9
  36. package/index125.js +5 -5
  37. package/index126.js +31 -4
  38. package/index127.js +3 -5
  39. package/index128.js +4 -3
  40. package/index129.js +9 -4
  41. package/index13.js +15 -25
  42. package/index130.js +5 -4
  43. package/index131.js +4 -10
  44. package/index132.js +5 -6
  45. package/index133.js +3 -7
  46. package/index134.js +3 -3
  47. package/index135.js +4 -7
  48. package/index136.js +11 -3
  49. package/index137.js +9 -0
  50. package/index138.js +9 -0
  51. package/index139.js +7 -0
  52. package/index14.js +28 -4
  53. package/index140.js +10 -0
  54. package/index141.js +5 -0
  55. package/index15.js +5 -64
  56. package/index16.js +64 -2
  57. package/index17.js +1 -1
  58. package/index18.js +1 -1
  59. package/index19.js +1 -1
  60. package/index2.js +1 -1
  61. package/index20.js +1 -1
  62. package/index21.js +1 -1
  63. package/index22.js +1 -1
  64. package/index23.js +1 -1
  65. package/index24.js +1 -1
  66. package/index25.js +3 -9
  67. package/index26.js +2 -9
  68. package/index27.js +2 -4
  69. package/index28.js +1 -1
  70. package/index29.js +9 -62
  71. package/index3.js +165 -118
  72. package/index30.js +8 -3
  73. package/index31.js +14 -8
  74. package/index32.js +62 -6
  75. package/index33.js +3 -3
  76. package/index34.js +8 -2
  77. package/index35.js +6 -5
  78. package/index36.js +3 -9
  79. package/index37.js +1 -4
  80. package/index38.js +6 -4
  81. package/index39.js +10 -3
  82. package/index4.js +113 -157
  83. package/index40.js +4 -3
  84. package/index41.js +4 -8
  85. package/index42.js +3 -5
  86. package/index43.js +4 -5
  87. package/index44.js +7 -6
  88. package/index45.js +4 -5
  89. package/index46.js +5 -9
  90. package/index47.js +7 -5
  91. package/index48.js +5 -6
  92. package/index49.js +9 -5
  93. package/index5.js +166 -27
  94. package/index50.js +5 -10
  95. package/index51.js +6 -6
  96. package/index52.js +5 -18
  97. package/index53.js +9 -11
  98. package/index54.js +6 -6
  99. package/index55.js +17 -12
  100. package/index56.js +11 -3
  101. package/index57.js +6 -11
  102. package/index58.js +12 -7
  103. package/index59.js +3 -9
  104. package/index6.js +29 -95
  105. package/index60.js +11 -5
  106. package/index61.js +7 -5
  107. package/index62.js +10 -9
  108. package/index63.js +5 -15
  109. package/index64.js +5 -5
  110. package/index65.js +9 -6
  111. package/index66.js +15 -8
  112. package/index67.js +5 -6
  113. package/index68.js +5 -5
  114. package/index69.js +8 -5
  115. package/index7.js +93 -39
  116. package/index70.js +6 -6
  117. package/index71.js +5 -6
  118. package/index72.js +6 -26
  119. package/index73.js +6 -5
  120. package/index74.js +6 -39
  121. package/index75.js +26 -7
  122. package/index76.js +5 -5
  123. package/index77.js +39 -14
  124. package/index78.js +6 -7
  125. package/index79.js +5 -1
  126. package/index8.js +40 -263
  127. package/index80.js +15 -3
  128. package/index81.js +6 -11
  129. package/index82.js +2 -5
  130. package/index83.js +3 -3
  131. package/index84.js +13 -4
  132. package/index85.js +5 -4
  133. package/index86.js +3 -4
  134. package/index87.js +4 -4
  135. package/index88.js +4 -4
  136. package/index89.js +4 -15
  137. package/index9.js +262 -54
  138. package/index90.js +4 -14
  139. package/index91.js +4 -9
  140. package/index92.js +15 -3
  141. package/index93.js +13 -5
  142. package/index94.js +8 -5
  143. package/index95.js +3 -6
  144. package/index96.js +5 -7
  145. package/index97.js +5 -17
  146. package/index98.js +5 -10
  147. package/index99.js +7 -5
  148. package/opper-controller/index.scss +12 -0
  149. package/package.json +1 -1
  150. package/select-picker/index.vue.d.ts +4 -4
  151. package/selector/index.vue.d.ts +10 -10
package/index7.js CHANGED
@@ -1,48 +1,102 @@
1
- import { defineComponent as m, ref as u, computed as p, onUnmounted as f, renderSlot as h, toDisplayString as b, createElementVNode as y, openBlock as v, createElementBlock as g, createCommentVNode as k, mergeProps as w } from "vue";
2
- import { onKeyboardHeightChange as B, offKeyboardHeightChange as _ } from "@tarojs/taro";
3
- const r = h, C = b, $ = y, l = v, a = g, D = k, E = w, N = ["show", "title", "close-on-click-overlay"], S = {
4
- key: 0,
5
- class: "van-button-container van-button-group"
6
- }, V = ["disabled"], T = /* @__PURE__ */ m({
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: "6px" }
10
+ }, I = /* @__PURE__ */ u({
7
11
  __name: "index",
8
12
  props: {
9
- show: { type: Boolean },
10
- title: {},
11
- showButtons: { type: Boolean, default: !0 },
12
- confirmText: { default: "确认" },
13
- confirmDisabled: { type: Boolean }
14
- },
15
- emits: ["update:show", "close", "confirm"],
16
- setup(H, { emit: i }) {
17
- const t = i, n = u(0), c = p(() => n.value === 0);
18
- function s(e) {
19
- n.value = e.height;
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: "暂无数据"
20
48
  }
21
- return B(s), f(() => {
22
- _(s);
23
- }), (e, o) => (l(), a("van-action-sheet", E(e.$attrs, {
24
- show: e.show,
25
- title: e.title,
26
- "close-on-click-overlay": c.value,
27
- onClose: o[1] || (o[1] = (d) => {
28
- t("update:show", !1), t("close");
29
- })
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"))
30
66
  }), [
31
- r(e.$slots, "default"),
32
- e.showButtons ? (l(), a("view", S, [
33
- r(e.$slots, "buttons", {}, () => [
34
- $("van-button", {
35
- type: "primary",
36
- round: "true",
37
- block: "true",
38
- disabled: e.confirmDisabled,
39
- onClick: o[0] || (o[0] = (d) => t("confirm"))
40
- }, C(e.confirmText), 9, V)
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)
41
84
  ])
42
- ])) : D("", !0)
43
- ], 16, N));
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));
44
98
  }
45
99
  });
46
100
  export {
47
- T as default
101
+ I as default
48
102
  };
package/index70.js CHANGED
@@ -1,9 +1,9 @@
1
- import t from "./index103.js";
2
- import o from "./index113.js";
3
- import r from "./index51.js";
4
- function f(e) {
5
- return t(e, r, o);
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
6
  }
7
7
  export {
8
- f as default
8
+ h as default
9
9
  };
package/index71.js CHANGED
@@ -1,9 +1,8 @@
1
- import t from "./index103.js";
2
- import o from "./index104.js";
3
- import r from "./index54.js";
4
- function s(e) {
5
- return t(e, r, o);
1
+ import m from "./index60.js";
2
+ import r from "./index117.js";
3
+ function f(o, t) {
4
+ return m(o, r(o), t);
6
5
  }
7
6
  export {
8
- s as default
7
+ f as default
9
8
  };
package/index72.js CHANGED
@@ -1,28 +1,8 @@
1
- import e from "./index84.js";
2
- import a from "./index85.js";
3
- import o from "./index86.js";
4
- import i from "./index87.js";
5
- import n from "./index88.js";
6
- import S from "./index41.js";
7
- import t from "./index89.js";
8
- var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
9
- (e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
10
- var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
11
- if (s)
12
- switch (s) {
13
- case T:
14
- return b;
15
- case C:
16
- return g;
17
- case M:
18
- return f;
19
- case d:
20
- return u;
21
- case v:
22
- return w;
23
- }
24
- return c;
25
- });
1
+ import m from "./index60.js";
2
+ import r from "./index107.js";
3
+ function e(o, t) {
4
+ return m(o, r(o), t);
5
+ }
26
6
  export {
27
- r as default
7
+ e as default
28
8
  };
package/index73.js CHANGED
@@ -1,8 +1,9 @@
1
- var o = Object.prototype, i = o.hasOwnProperty;
2
- function p(t) {
3
- var n = t.length, e = new t.constructor(n);
4
- return n && typeof t[0] == "string" && i.call(t, "index") && (e.index = t.index, e.input = t.input), e;
1
+ import t from "./index106.js";
2
+ import o from "./index117.js";
3
+ import r from "./index54.js";
4
+ function f(e) {
5
+ return t(e, r, o);
5
6
  }
6
7
  export {
7
- p as default
8
+ f as default
8
9
  };
package/index74.js CHANGED
@@ -1,42 +1,9 @@
1
- import o from "./index114.js";
2
- import n from "./index115.js";
3
- import c from "./index116.js";
4
- import g from "./index117.js";
5
- import i from "./index118.js";
6
- var s = "[object Boolean]", u = "[object Date]", T = "[object Map]", b = "[object Number]", l = "[object RegExp]", m = "[object Set]", y = "[object String]", f = "[object Symbol]", p = "[object ArrayBuffer]", j = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", d = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", C = "[object Uint8Array]", S = "[object Uint8ClampedArray]", U = "[object Uint16Array]", v = "[object Uint32Array]";
7
- function R(a, t, r) {
8
- var e = a.constructor;
9
- switch (t) {
10
- case p:
11
- return o(a);
12
- case s:
13
- case u:
14
- return new e(+a);
15
- case j:
16
- return n(a, r);
17
- case A:
18
- case w:
19
- case d:
20
- case B:
21
- case x:
22
- case C:
23
- case S:
24
- case U:
25
- case v:
26
- return i(a, r);
27
- case T:
28
- return new e();
29
- case b:
30
- case y:
31
- return new e(a);
32
- case l:
33
- return c(a);
34
- case m:
35
- return new e();
36
- case f:
37
- return g(a);
38
- }
1
+ import t from "./index106.js";
2
+ import o from "./index107.js";
3
+ import r from "./index57.js";
4
+ function s(e) {
5
+ return t(e, r, o);
39
6
  }
40
7
  export {
41
- R as default
8
+ s as default
42
9
  };
package/index75.js CHANGED
@@ -1,9 +1,28 @@
1
- import o from "./index77.js";
2
- import r from "./index92.js";
3
- import e from "./index60.js";
4
- function p(t) {
5
- return typeof t.constructor == "function" && !e(t) ? o(r(t)) : {};
6
- }
1
+ import e from "./index87.js";
2
+ import a from "./index88.js";
3
+ import o from "./index89.js";
4
+ import i from "./index90.js";
5
+ import n from "./index91.js";
6
+ import S from "./index44.js";
7
+ import t from "./index92.js";
8
+ var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
9
+ (e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
10
+ var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
11
+ if (s)
12
+ switch (s) {
13
+ case T:
14
+ return b;
15
+ case C:
16
+ return g;
17
+ case M:
18
+ return f;
19
+ case d:
20
+ return u;
21
+ case v:
22
+ return w;
23
+ }
24
+ return c;
25
+ });
7
26
  export {
8
- p as default
27
+ r as default
9
28
  };
package/index76.js CHANGED
@@ -1,8 +1,8 @@
1
- function l(e, n) {
2
- for (var t = -1, h = n.length, f = e.length; ++t < h; )
3
- e[f + t] = n[t];
4
- return e;
1
+ var o = Object.prototype, i = o.hasOwnProperty;
2
+ function p(t) {
3
+ var n = t.length, e = new t.constructor(n);
4
+ return n && typeof t[0] == "string" && i.call(t, "index") && (e.index = t.index, e.input = t.input), e;
5
5
  }
6
6
  export {
7
- l as default
7
+ p as default
8
8
  };
package/index77.js CHANGED
@@ -1,17 +1,42 @@
1
- import u from "./index42.js";
2
- var r = Object.create, c = /* @__PURE__ */ function() {
3
- function e() {
1
+ import o from "./index118.js";
2
+ import n from "./index119.js";
3
+ import c from "./index120.js";
4
+ import g from "./index121.js";
5
+ import i from "./index122.js";
6
+ var s = "[object Boolean]", u = "[object Date]", T = "[object Map]", b = "[object Number]", l = "[object RegExp]", m = "[object Set]", y = "[object String]", f = "[object Symbol]", p = "[object ArrayBuffer]", j = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", d = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", C = "[object Uint8Array]", S = "[object Uint8ClampedArray]", U = "[object Uint16Array]", v = "[object Uint32Array]";
7
+ function R(a, t, r) {
8
+ var e = a.constructor;
9
+ switch (t) {
10
+ case p:
11
+ return o(a);
12
+ case s:
13
+ case u:
14
+ return new e(+a);
15
+ case j:
16
+ return n(a, r);
17
+ case A:
18
+ case w:
19
+ case d:
20
+ case B:
21
+ case x:
22
+ case C:
23
+ case S:
24
+ case U:
25
+ case v:
26
+ return i(a, r);
27
+ case T:
28
+ return new e();
29
+ case b:
30
+ case y:
31
+ return new e(a);
32
+ case l:
33
+ return c(a);
34
+ case m:
35
+ return new e();
36
+ case f:
37
+ return g(a);
4
38
  }
5
- return function(t) {
6
- if (!u(t))
7
- return {};
8
- if (r)
9
- return r(t);
10
- e.prototype = t;
11
- var n = new e();
12
- return e.prototype = void 0, n;
13
- };
14
- }();
39
+ }
15
40
  export {
16
- c as default
41
+ R as default
17
42
  };
package/index78.js CHANGED
@@ -1,10 +1,9 @@
1
- function d(e, i) {
2
- for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
- var l = e[n];
4
- i(l, n, e) && (t[u++] = l);
5
- }
6
- return t;
1
+ import o from "./index80.js";
2
+ import r from "./index95.js";
3
+ import e from "./index63.js";
4
+ function p(t) {
5
+ return typeof t.constructor == "function" && !e(t) ? o(r(t)) : {};
7
6
  }
8
7
  export {
9
- d as default
8
+ p as default
10
9
  };
package/index79.js CHANGED
@@ -1,4 +1,8 @@
1
- var l = typeof global == "object" && global && global.Object === Object && global;
1
+ function l(e, n) {
2
+ for (var t = -1, h = n.length, f = e.length; ++t < h; )
3
+ e[f + t] = n[t];
4
+ return e;
5
+ }
2
6
  export {
3
7
  l as default
4
8
  };