@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/index124.js CHANGED
@@ -1,5 +1,6 @@
1
- import r from "./index39.js";
2
- var a = r["__core-js_shared__"];
1
+ function t() {
2
+ this.__data__ = [], this.size = 0;
3
+ }
3
4
  export {
4
- a as default
5
+ t as default
5
6
  };
package/index125.js CHANGED
@@ -1,20 +1,12 @@
1
- import p from "./index135.js";
2
- import a from "./index136.js";
3
- import l from "./index137.js";
4
- import s from "./index138.js";
5
- import m from "./index139.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
+ import s from "./index136.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;
12
9
  }
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
10
  export {
19
- t as default
11
+ n as default
20
12
  };
package/index126.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 d from "./index136.js";
2
+ function i(e) {
3
+ var t = this.__data__, a = d(t, e);
4
+ return a < 0 ? void 0 : t[a][1];
5
5
  }
6
6
  export {
7
- n as default
7
+ i as default
8
8
  };
package/index127.js CHANGED
@@ -1,6 +1,7 @@
1
- function u(e, n) {
2
- return e == null ? void 0 : e[n];
1
+ import a from "./index136.js";
2
+ function e(t) {
3
+ return a(this.__data__, t) > -1;
3
4
  }
4
5
  export {
5
- u as default
6
+ e as default
6
7
  };
package/index128.js CHANGED
@@ -1,6 +1,8 @@
1
- function t() {
2
- this.__data__ = [], this.size = 0;
1
+ import e from "./index136.js";
2
+ function d(s, i) {
3
+ var t = this.__data__, a = e(t, s);
4
+ return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
3
5
  }
4
6
  export {
5
- t as default
7
+ d as default
6
8
  };
package/index129.js CHANGED
@@ -1,12 +1,5 @@
1
- import s from "./index140.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 "./index41.js";
2
+ var a = r.Uint8Array;
10
3
  export {
11
- n as default
4
+ a as default
12
5
  };
package/index13.js CHANGED
@@ -1,21 +1,7 @@
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
- });
13
- },
14
- updated(e, t) {
15
- const { page: n } = o();
16
- c(n, e.id, t.arg, t.value);
17
- }
1
+ const r = (t, o) => {
2
+ var e;
3
+ t.setAttribute("readonly", (e = o.value) != null ? e : !0);
18
4
  };
19
5
  export {
20
- r as vBindFn
6
+ r as vReadonly
21
7
  };
package/index130.js CHANGED
@@ -1,8 +1,7 @@
1
- import d from "./index140.js";
2
- function i(e) {
3
- var t = this.__data__, a = d(t, e);
4
- return a < 0 ? void 0 : t[a][1];
1
+ function e(t) {
2
+ var o = typeof t;
3
+ return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
5
4
  }
6
5
  export {
7
- i as default
6
+ e as default
8
7
  };
package/index131.js CHANGED
@@ -1,6 +1,6 @@
1
- import a from "./index140.js";
2
- function e(t) {
3
- return a(this.__data__, t) > -1;
1
+ import t from "./index137.js";
2
+ function e() {
3
+ this.__data__ = t ? t(null) : {}, this.size = 0;
4
4
  }
5
5
  export {
6
6
  e as default
package/index132.js CHANGED
@@ -1,8 +1,7 @@
1
- import e from "./index140.js";
2
- function d(s, i) {
3
- var t = this.__data__, a = e(t, s);
4
- return a < 0 ? (++this.size, t.push([s, i])) : t[a][1] = i, this;
1
+ function s(t) {
2
+ var e = this.has(t) && delete this.__data__[t];
3
+ return this.size -= e ? 1 : 0, e;
5
4
  }
6
5
  export {
7
- d as default
6
+ s as default
8
7
  };
package/index133.js CHANGED
@@ -1,5 +1,13 @@
1
- import r from "./index39.js";
2
- var a = r.Uint8Array;
1
+ import e from "./index137.js";
2
+ var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
3
+ function h(a) {
4
+ var r = this.__data__;
5
+ if (e) {
6
+ var t = r[a];
7
+ return t === n ? void 0 : t;
8
+ }
9
+ return _.call(r, a) ? r[a] : void 0;
10
+ }
3
11
  export {
4
- a as default
12
+ h as default
5
13
  };
package/index134.js CHANGED
@@ -1,7 +1,9 @@
1
- function e(t) {
2
- var o = typeof t;
3
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
1
+ import r from "./index137.js";
2
+ var e = Object.prototype, o = e.hasOwnProperty;
3
+ function p(t) {
4
+ var a = this.__data__;
5
+ return r ? a[t] !== void 0 : o.call(a, t);
4
6
  }
5
7
  export {
6
- e as default
8
+ p as default
7
9
  };
package/index135.js CHANGED
@@ -1,7 +1,9 @@
1
- import t from "./index141.js";
2
- function e() {
3
- this.__data__ = t ? t(null) : {}, this.size = 0;
1
+ import e from "./index137.js";
2
+ var h = "__lodash_hash_undefined__";
3
+ function s(t, a) {
4
+ var _ = this.__data__;
5
+ return this.size += this.has(t) ? 0 : 1, _[t] = e && a === void 0 ? h : a, this;
4
6
  }
5
7
  export {
6
- e as default
8
+ s as default
7
9
  };
package/index136.js CHANGED
@@ -1,7 +1,10 @@
1
- function s(t) {
2
- var e = this.has(t) && delete this.__data__[t];
3
- return this.size -= e ? 1 : 0, e;
1
+ import r from "./index32.js";
2
+ function o(t, n) {
3
+ for (var e = t.length; e--; )
4
+ if (r(t[e][0], n))
5
+ return e;
6
+ return -1;
4
7
  }
5
8
  export {
6
- s as default
9
+ o as default
7
10
  };
package/index137.js CHANGED
@@ -1,13 +1,5 @@
1
- import e from "./index141.js";
2
- var n = "__lodash_hash_undefined__", o = Object.prototype, _ = o.hasOwnProperty;
3
- function h(a) {
4
- var r = this.__data__;
5
- if (e) {
6
- var t = r[a];
7
- return t === n ? void 0 : t;
8
- }
9
- return _.call(r, a) ? r[a] : void 0;
10
- }
1
+ import e from "./index107.js";
2
+ var a = e(Object, "create");
11
3
  export {
12
- h as default
4
+ a as default
13
5
  };
package/index14.js CHANGED
@@ -1,31 +1,66 @@
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
- });
1
+ const i = {};
2
+ function e(r) {
3
+ Object.assign(i, r);
4
+ }
5
+ class a {
6
+ constructor() {
7
+ this.duration = 2e3;
8
+ }
9
+ primary(n, t = "#van-notify") {
10
+ return i.notify({ type: "primary", message: n, duration: this.duration, selector: t });
11
+ }
12
+ success(n, t = "#van-notify") {
13
+ return i.notify({ type: "success", message: n, duration: this.duration, selector: t });
14
+ }
15
+ warning(n, t = "#van-notify") {
16
+ return i.notify({ type: "warning", message: n, duration: this.duration, selector: t });
17
+ }
18
+ danger(n, t = "#van-notify") {
19
+ return i.notify({ type: "danger", message: n, duration: this.duration, selector: t });
20
+ }
21
+ dismiss() {
22
+ return i.notify.clear();
23
+ }
24
+ }
25
+ class s {
26
+ /**
27
+ * 展示确认对话框
28
+ * @param title
29
+ * @param message
30
+ * @param options 其他 dialog 选项
31
+ */
32
+ confirm(n, t, o) {
33
+ return i.dialog.confirm({
34
+ title: n,
35
+ message: t,
36
+ ...o
26
37
  });
27
38
  }
28
- };
39
+ /**
40
+ * 展示警告对话框
41
+ * @param title
42
+ * @param message
43
+ * @param options 其他 dialog 选项
44
+ */
45
+ alert(n, t, o) {
46
+ return i.dialog.alert({
47
+ title: n,
48
+ message: t,
49
+ ...o
50
+ });
51
+ }
52
+ /**
53
+ * 关闭对话框
54
+ */
55
+ dismiss() {
56
+ return i.dialog.close();
57
+ }
58
+ }
59
+ const u = new s(), c = new a();
29
60
  export {
30
- m as vDatetimePicker
61
+ s as Dialog,
62
+ a as Notify,
63
+ u as dialog,
64
+ c as notify,
65
+ e as setupOverlay
31
66
  };
package/index15.js CHANGED
@@ -1,7 +1,4 @@
1
- const r = (t, o) => {
2
- var e;
3
- t.setAttribute("readonly", (e = o.value) != null ? e : !0);
4
- };
1
+ import f from "./index4.js";
5
2
  export {
6
- r as vReadonly
3
+ f as default
7
4
  };
package/index16.js CHANGED
@@ -1,66 +1,4 @@
1
- const i = {};
2
- function e(r) {
3
- Object.assign(i, r);
4
- }
5
- class a {
6
- constructor() {
7
- this.duration = 2e3;
8
- }
9
- primary(n, t = "#van-notify") {
10
- return i.notify({ type: "primary", message: n, duration: this.duration, selector: t });
11
- }
12
- success(n, t = "#van-notify") {
13
- return i.notify({ type: "success", message: n, duration: this.duration, selector: t });
14
- }
15
- warning(n, t = "#van-notify") {
16
- return i.notify({ type: "warning", message: n, duration: this.duration, selector: t });
17
- }
18
- danger(n, t = "#van-notify") {
19
- return i.notify({ type: "danger", message: n, duration: this.duration, selector: t });
20
- }
21
- dismiss() {
22
- return i.notify.clear();
23
- }
24
- }
25
- class s {
26
- /**
27
- * 展示确认对话框
28
- * @param title
29
- * @param message
30
- * @param options 其他 dialog 选项
31
- */
32
- confirm(n, t, o) {
33
- return i.dialog.confirm({
34
- title: n,
35
- message: t,
36
- ...o
37
- });
38
- }
39
- /**
40
- * 展示警告对话框
41
- * @param title
42
- * @param message
43
- * @param options 其他 dialog 选项
44
- */
45
- alert(n, t, o) {
46
- return i.dialog.alert({
47
- title: n,
48
- message: t,
49
- ...o
50
- });
51
- }
52
- /**
53
- * 关闭对话框
54
- */
55
- dismiss() {
56
- return i.dialog.close();
57
- }
58
- }
59
- const u = new s(), c = new a();
1
+ import f from "./index5.js";
60
2
  export {
61
- s as Dialog,
62
- a as Notify,
63
- u as dialog,
64
- c as notify,
65
- e as setupOverlay
3
+ f as default
66
4
  };
package/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index3.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index19.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index2.js CHANGED
@@ -1,4 +1,4 @@
1
- import { vReadonly as r } from "./index15.js";
1
+ import { vReadonly as r } from "./index13.js";
2
2
  const a = {
3
3
  install(o) {
4
4
  o.directive("readonly", r);
package/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,16 +1,12 @@
1
- import { ref as n, effect as t, pauseTracking as f, resetTracking as a } from "./index61.js";
2
- function i(e) {
3
- const r = n(e());
4
- return t(() => r.value = e()), r;
5
- }
6
- function u(e) {
7
- try {
8
- return f(), e();
9
- } finally {
10
- a();
11
- }
1
+ import "rxjs";
2
+ import { ref as i } from "vue";
3
+ import { takeUntilDestroyed as p } from "./index28.js";
4
+ function c(t, o) {
5
+ const e = i(o);
6
+ return (typeof t == "function" ? t() : t).pipe(p()).subscribe((r) => {
7
+ e.value = r;
8
+ }), e;
12
9
  }
13
10
  export {
14
- i as linkedRef,
15
- u as untracked
11
+ c as useObservable
16
12
  };
package/index24.js CHANGED
@@ -1,8 +1,11 @@
1
- import o from "./index29.js";
2
- var r = 1, n = 4;
3
- function L(e) {
4
- return o(e, r | n);
1
+ import { Subject as o } from "rxjs";
2
+ import { onUnmounted as t } from "vue";
3
+ function m() {
4
+ const e = new o();
5
+ return t(() => {
6
+ e.next(), e.complete();
7
+ }), e;
5
8
  }
6
9
  export {
7
- L as default
10
+ m as useDestroyed
8
11
  };
package/index25.js CHANGED
@@ -1,4 +1,8 @@
1
- import f from "./index10.js";
1
+ import o from "./index31.js";
2
+ var r = 1, n = 4;
3
+ function L(e) {
4
+ return o(e, r | n);
5
+ }
2
6
  export {
3
- f as default
7
+ L as default
4
8
  };
package/index26.js CHANGED
@@ -1,4 +1,16 @@
1
- import f from "./index12.js";
1
+ import { ref as n, effect as t, pauseTracking as f, resetTracking as a } from "./index29.js";
2
+ function i(e) {
3
+ const r = n(e());
4
+ return t(() => r.value = e()), r;
5
+ }
6
+ function u(e) {
7
+ try {
8
+ return f(), e();
9
+ } finally {
10
+ a();
11
+ }
12
+ }
2
13
  export {
3
- f as default
14
+ i as linkedRef,
15
+ u as untracked
4
16
  };
package/index27.js CHANGED
@@ -1,4 +1,6 @@
1
- import f from "./index9.js";
1
+ function n(l) {
2
+ return l == null;
3
+ }
2
4
  export {
3
- f as default
5
+ n as default
4
6
  };
package/index28.js CHANGED
@@ -1,4 +1,9 @@
1
- import f from "./index11.js";
1
+ import { takeUntil as e } from "rxjs";
2
+ import { useDestroyed as o } from "./index24.js";
3
+ function i() {
4
+ const t = o();
5
+ return e(t);
6
+ }
2
7
  export {
3
- f as default
8
+ i as takeUntilDestroyed
4
9
  };