@solar-taro/ui-vant 2.5.0 → 2.5.2

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 (136) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/cascader/index.scss +6 -0
  3. package/directives/binding.d.ts +10 -0
  4. package/directives/index.d.ts +1 -0
  5. package/index.js +18 -16
  6. package/index10.js +213 -196
  7. package/index100.js +7 -10
  8. package/index101.js +9 -6
  9. package/index102.js +6 -17
  10. package/index103.js +17 -4
  11. package/index104.js +4 -4
  12. package/index105.js +4 -3
  13. package/index106.js +3 -3
  14. package/index107.js +3 -14
  15. package/index108.js +14 -7
  16. package/index109.js +8 -6
  17. package/index110.js +5 -5
  18. package/index111.js +5 -5
  19. package/index112.js +5 -5
  20. package/index113.js +5 -5
  21. package/index114.js +6 -3
  22. package/index115.js +3 -18
  23. package/index116.js +17 -5
  24. package/index117.js +5 -3
  25. package/index118.js +3 -3
  26. package/index119.js +3 -9
  27. package/index12.js +3 -28
  28. package/index120.js +9 -5
  29. package/index121.js +5 -4
  30. package/index122.js +4 -5
  31. package/index123.js +6 -3
  32. package/index124.js +3 -5
  33. package/index125.js +4 -4
  34. package/index126.js +4 -10
  35. package/index127.js +10 -6
  36. package/index128.js +6 -6
  37. package/index129.js +6 -4
  38. package/index13.js +28 -4
  39. package/index130.js +4 -7
  40. package/index131.js +8 -3
  41. package/index132.js +5 -0
  42. package/index14.js +5 -64
  43. package/index15.js +64 -2
  44. package/index16.js +1 -1
  45. package/index17.js +1 -1
  46. package/index18.js +1 -1
  47. package/index19.js +1 -1
  48. package/index2.js +1 -1
  49. package/index20.js +1 -1
  50. package/index21.js +1 -1
  51. package/index22.js +1 -1
  52. package/index23.js +2 -6
  53. package/index24.js +5 -3
  54. package/index25.js +3 -62
  55. package/index26.js +62 -3
  56. package/index27.js +4 -8
  57. package/index28.js +7 -6
  58. package/index29.js +6 -3
  59. package/index3.js +62 -59
  60. package/index30.js +4 -2
  61. package/index31.js +2 -6
  62. package/index32.js +5 -9
  63. package/index33.js +9 -4
  64. package/index34.js +5 -4
  65. package/index35.js +4 -3
  66. package/index36.js +3 -4
  67. package/index37.js +3 -7
  68. package/index38.js +7 -4
  69. package/index39.js +5 -5
  70. package/index4.js +1 -1
  71. package/index40.js +5 -7
  72. package/index41.js +6 -5
  73. package/index42.js +6 -9
  74. package/index43.js +9 -5
  75. package/index44.js +5 -7
  76. package/index45.js +6 -4
  77. package/index46.js +5 -10
  78. package/index47.js +9 -6
  79. package/index48.js +6 -17
  80. package/index49.js +17 -11
  81. package/index5.js +1 -1
  82. package/index50.js +11 -6
  83. package/index51.js +6 -12
  84. package/index52.js +12 -3
  85. package/index53.js +3 -11
  86. package/index54.js +11 -7
  87. package/index55.js +7 -9
  88. package/index56.js +9 -5
  89. package/index58.js +1 -1
  90. package/index59.js +5 -15
  91. package/index60.js +15 -5
  92. package/index61.js +5 -5
  93. package/index62.js +5 -8
  94. package/index63.js +8 -6
  95. package/index64.js +6 -5
  96. package/index65.js +4 -4
  97. package/index66.js +5 -6
  98. package/index67.js +5 -5
  99. package/index68.js +7 -26
  100. package/index69.js +26 -6
  101. package/index7.js +25 -19
  102. package/index70.js +5 -39
  103. package/index71.js +39 -6
  104. package/index72.js +6 -5
  105. package/index73.js +6 -15
  106. package/index74.js +14 -7
  107. package/index75.js +8 -2
  108. package/index76.js +2 -3
  109. package/index77.js +3 -13
  110. package/index78.js +12 -4
  111. package/index79.js +5 -3
  112. package/index8.js +1 -1
  113. package/index80.js +3 -4
  114. package/index81.js +4 -4
  115. package/index82.js +4 -4
  116. package/index83.js +4 -4
  117. package/index84.js +4 -4
  118. package/index85.js +3 -14
  119. package/index86.js +14 -13
  120. package/index87.js +13 -8
  121. package/index88.js +9 -3
  122. package/index89.js +3 -6
  123. package/index90.js +5 -5
  124. package/index91.js +5 -5
  125. package/index92.js +5 -7
  126. package/index93.js +7 -17
  127. package/index94.js +17 -10
  128. package/index95.js +9 -4
  129. package/index96.js +5 -4
  130. package/index97.js +4 -4
  131. package/index98.js +4 -5
  132. package/index99.js +5 -6
  133. package/modal/index.vue.d.ts +1 -0
  134. package/package.json +1 -1
  135. package/selector/index.scss +11 -0
  136. package/selector/index.vue.d.ts +2 -1
package/index93.js CHANGED
@@ -1,20 +1,10 @@
1
- import r from "./index94.js";
2
- import m from "./index95.js";
3
- import h from "./index96.js";
4
- import l from "./index97.js";
5
- import c from "./index98.js";
6
- function e(t) {
7
- var o = -1, a = t == null ? 0 : t.length;
8
- for (this.clear(); ++o < a; ) {
9
- var p = t[o];
10
- this.set(p[0], p[1]);
11
- }
1
+ function t(n) {
2
+ var r = [];
3
+ if (n != null)
4
+ for (var e in Object(n))
5
+ r.push(e);
6
+ return r;
12
7
  }
13
- e.prototype.clear = r;
14
- e.prototype.delete = m;
15
- e.prototype.get = h;
16
- e.prototype.has = l;
17
- e.prototype.set = c;
18
8
  export {
19
- e as default
9
+ t as default
20
10
  };
package/index94.js CHANGED
@@ -1,13 +1,20 @@
1
- import a from "./index115.js";
2
- import t from "./index102.js";
3
- import e from "./index81.js";
4
- function o() {
5
- this.size = 0, this.__data__ = {
6
- hash: new a(),
7
- map: new (e || t)(),
8
- string: new a()
9
- };
1
+ import r from "./index95.js";
2
+ import m from "./index96.js";
3
+ import h from "./index97.js";
4
+ import l from "./index98.js";
5
+ import c from "./index99.js";
6
+ function e(t) {
7
+ var o = -1, a = t == null ? 0 : t.length;
8
+ for (this.clear(); ++o < a; ) {
9
+ var p = t[o];
10
+ this.set(p[0], p[1]);
11
+ }
10
12
  }
13
+ e.prototype.clear = r;
14
+ e.prototype.delete = m;
15
+ e.prototype.get = h;
16
+ e.prototype.has = l;
17
+ e.prototype.set = c;
11
18
  export {
12
- o as default
19
+ e as default
13
20
  };
package/index95.js CHANGED
@@ -1,8 +1,13 @@
1
1
  import a from "./index116.js";
2
- function i(e) {
3
- var t = a(this, e).delete(e);
4
- return this.size -= t ? 1 : 0, t;
2
+ import t from "./index103.js";
3
+ import e from "./index82.js";
4
+ function o() {
5
+ this.size = 0, this.__data__ = {
6
+ hash: new a(),
7
+ map: new (e || t)(),
8
+ string: new a()
9
+ };
5
10
  }
6
11
  export {
7
- i as default
12
+ o as default
8
13
  };
package/index96.js CHANGED
@@ -1,7 +1,8 @@
1
- import a from "./index116.js";
2
- function r(t) {
3
- return a(this, t).get(t);
1
+ import a from "./index117.js";
2
+ function i(e) {
3
+ var t = a(this, e).delete(e);
4
+ return this.size -= t ? 1 : 0, t;
4
5
  }
5
6
  export {
6
- r as default
7
+ i as default
7
8
  };
package/index97.js CHANGED
@@ -1,7 +1,7 @@
1
- import t from "./index116.js";
2
- function e(a) {
3
- return t(this, a).has(a);
1
+ import a from "./index117.js";
2
+ function r(t) {
3
+ return a(this, t).get(t);
4
4
  }
5
5
  export {
6
- e as default
6
+ r as default
7
7
  };
package/index98.js CHANGED
@@ -1,8 +1,7 @@
1
- import s from "./index116.js";
2
- function h(a, e) {
3
- var t = s(this, a), i = t.size;
4
- return t.set(a, e), this.size += t.size == i ? 0 : 1, this;
1
+ import t from "./index117.js";
2
+ function e(a) {
3
+ return t(this, a).has(a);
5
4
  }
6
5
  export {
7
- h as default
6
+ e as default
8
7
  };
package/index99.js CHANGED
@@ -1,9 +1,8 @@
1
- import e from "./index72.js";
2
- import u from "./index30.js";
3
- function l(r, s, t) {
4
- var a = s(r);
5
- return u(r) ? a : e(a, t(r));
1
+ import s from "./index117.js";
2
+ function h(a, e) {
3
+ var t = s(this, a), i = t.size;
4
+ return t.set(a, e), this.size += t.size == i ? 0 : 1, this;
6
5
  }
7
6
  export {
8
- l as default
7
+ h as default
9
8
  };
@@ -8,6 +8,7 @@ type __VLS_Props = {
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
10
10
  slots: {
11
+ extra?(_: {}): any;
11
12
  default?(_: {}): any;
12
13
  buttons?(_: {}): any;
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -1,4 +1,15 @@
1
1
  .sun-selector {
2
+ &-clear {
3
+ &-icon {
4
+ padding: 4px;
5
+ }
6
+
7
+ &-btn {
8
+ color: var(--color-primary);
9
+ font-size: 14px;
10
+ }
11
+ }
12
+
2
13
  &-option {
3
14
  &-active.sun-item {
4
15
  --background: rgba(var(--color-primary-rgb), 0.1);
@@ -23,6 +23,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
23
23
  /** 多选模式下,分割符 */
24
24
  delimiter?: string;
25
25
  searchable?: boolean;
26
+ clearable?: boolean;
26
27
  searcher?: (option: T, keyword: string) => boolean;
27
28
  virtual?: boolean | {
28
29
  itemSize?: number;
@@ -76,7 +77,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
76
77
  index: number;
77
78
  active: boolean;
78
79
  }): any;
79
- footer?(_: {
80
+ buttons?(_: {
80
81
  confirm: () => void;
81
82
  }): any;
82
83
  };