@solar-taro/ui-vant 2.9.0 → 3.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 (136) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.d.ts +0 -1
  3. package/index.js +18 -20
  4. package/index10.js +17 -341
  5. package/index100.js +6 -4
  6. package/index101.js +10 -6
  7. package/index102.js +6 -6
  8. package/index103.js +18 -10
  9. package/index104.js +4 -6
  10. package/index105.js +4 -17
  11. package/index106.js +3 -4
  12. package/index107.js +3 -4
  13. package/index108.js +14 -3
  14. package/index109.js +8 -4
  15. package/index11.js +3 -18
  16. package/index110.js +5 -14
  17. package/index111.js +6 -8
  18. package/index112.js +5 -5
  19. package/index113.js +5 -5
  20. package/index114.js +5 -5
  21. package/index115.js +3 -6
  22. package/index116.js +17 -5
  23. package/index117.js +6 -3
  24. package/index118.js +3 -17
  25. package/index119.js +3 -5
  26. package/index12.js +28 -3
  27. package/index120.js +9 -3
  28. package/index121.js +5 -3
  29. package/index122.js +4 -9
  30. package/index123.js +5 -5
  31. package/index124.js +3 -5
  32. package/index125.js +4 -5
  33. package/index126.js +5 -3
  34. package/index127.js +10 -4
  35. package/index128.js +6 -4
  36. package/index129.js +6 -10
  37. package/index13.js +4 -28
  38. package/index130.js +4 -6
  39. package/index131.js +7 -6
  40. package/index132.js +3 -5
  41. package/index14.js +64 -5
  42. package/index15.js +2 -64
  43. package/index17.js +2 -6
  44. package/index18.js +1 -1
  45. package/index2.js +1 -1
  46. package/index20.js +1 -1
  47. package/index21.js +1 -1
  48. package/index22.js +6 -2
  49. package/index23.js +36 -2
  50. package/index24.js +4 -2
  51. package/index25.js +23 -34
  52. package/index26.js +62 -3
  53. package/index27.js +3 -62
  54. package/index28.js +8 -4
  55. package/index29.js +6 -7
  56. package/index30.js +3 -6
  57. package/index31.js +2 -4
  58. package/index32.js +6 -2
  59. package/index33.js +9 -5
  60. package/index34.js +4 -9
  61. package/index35.js +4 -5
  62. package/index36.js +3 -4
  63. package/index37.js +4 -3
  64. package/index38.js +7 -3
  65. package/index39.js +4 -7
  66. package/index4.js +1 -1
  67. package/index40.js +5 -5
  68. package/index41.js +7 -5
  69. package/index42.js +5 -6
  70. package/index43.js +9 -6
  71. package/index44.js +5 -9
  72. package/index45.js +7 -5
  73. package/index46.js +4 -6
  74. package/index47.js +10 -5
  75. package/index48.js +6 -9
  76. package/index49.js +17 -6
  77. package/index5.js +1 -1
  78. package/index50.js +11 -17
  79. package/index51.js +6 -11
  80. package/index52.js +12 -6
  81. package/index53.js +3 -12
  82. package/index54.js +11 -3
  83. package/index55.js +7 -24
  84. package/index56.js +9 -7
  85. package/index57.js +5 -9
  86. package/index58.js +8 -11
  87. package/index6.js +45 -90
  88. package/index60.js +15 -5
  89. package/index61.js +6 -9
  90. package/index62.js +5 -15
  91. package/index63.js +8 -5
  92. package/index64.js +6 -5
  93. package/index65.js +5 -8
  94. package/index66.js +5 -6
  95. package/index67.js +5 -4
  96. package/index68.js +6 -5
  97. package/index69.js +26 -7
  98. package/index7.js +261 -46
  99. package/index70.js +5 -6
  100. package/index71.js +40 -26
  101. package/index72.js +4 -3
  102. package/index73.js +5 -39
  103. package/index74.js +15 -7
  104. package/index75.js +7 -5
  105. package/index76.js +2 -15
  106. package/index77.js +3 -8
  107. package/index78.js +4 -2
  108. package/index79.js +4 -3
  109. package/index8.js +54 -261
  110. package/index80.js +4 -13
  111. package/index81.js +4 -5
  112. package/index82.js +4 -3
  113. package/index83.js +14 -3
  114. package/index84.js +3 -4
  115. package/index85.js +13 -4
  116. package/index86.js +5 -4
  117. package/index87.js +14 -4
  118. package/index88.js +8 -14
  119. package/index89.js +3 -14
  120. package/index9.js +334 -52
  121. package/index90.js +5 -8
  122. package/index91.js +6 -3
  123. package/index92.js +5 -5
  124. package/index93.js +7 -5
  125. package/index94.js +17 -5
  126. package/index95.js +10 -7
  127. package/index96.js +5 -17
  128. package/index97.js +4 -10
  129. package/index98.js +4 -5
  130. package/index99.js +5 -4
  131. package/package.json +1 -1
  132. package/selector/index.vue.d.ts +3 -3
  133. package/index133.js +0 -10
  134. package/index134.js +0 -5
  135. package/list/index.d.ts +0 -1
  136. package/list/index.vue.d.ts +0 -110
package/index111.js CHANGED
@@ -1,10 +1,8 @@
1
- import o from "./index77.js";
2
- import a from "./index54.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 n from "./index110.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
+ }
8
6
  export {
9
- m as default
7
+ t as default
10
8
  };
package/index112.js CHANGED
@@ -1,8 +1,8 @@
1
- import n from "./index126.js";
2
- function o(t) {
3
- var e = new t.constructor(t.byteLength);
4
- return new n(e).set(new n(t)), e;
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;
5
5
  }
6
6
  export {
7
- o as default
7
+ e as default
8
8
  };
package/index113.js CHANGED
@@ -1,8 +1,8 @@
1
- import n from "./index112.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);
1
+ import o from "./index84.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
5
  }
6
6
  export {
7
- t as default
7
+ r as default
8
8
  };
package/index114.js CHANGED
@@ -1,8 +1,8 @@
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 o from "./index110.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
- e as default
7
+ u as default
8
8
  };
package/index115.js CHANGED
@@ -1,8 +1,5 @@
1
- import o from "./index79.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
- }
1
+ import r from "./index36.js";
2
+ var a = r["__core-js_shared__"];
6
3
  export {
7
- r as default
4
+ a as default
8
5
  };
package/index116.js CHANGED
@@ -1,8 +1,20 @@
1
- import o from "./index112.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
+ import p from "./index125.js";
2
+ import a from "./index126.js";
3
+ import l from "./index127.js";
4
+ import s from "./index128.js";
5
+ import m from "./index129.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
- u as default
19
+ t as default
8
20
  };
package/index117.js CHANGED
@@ -1,5 +1,8 @@
1
- import r from "./index37.js";
2
- var a = r["__core-js_shared__"];
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
+ }
3
6
  export {
4
- a as default
7
+ n as default
5
8
  };
package/index118.js CHANGED
@@ -1,20 +1,6 @@
1
- import p from "./index127.js";
2
- import a from "./index128.js";
3
- import l from "./index129.js";
4
- import s from "./index130.js";
5
- import m from "./index131.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
+ function u(e, n) {
2
+ return e == null ? void 0 : e[n];
12
3
  }
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
4
  export {
19
- t as default
5
+ u as default
20
6
  };
package/index119.js CHANGED
@@ -1,8 +1,6 @@
1
- import e from "./index132.js";
2
- function n(r, a) {
3
- var t = r.__data__;
4
- return e(a) ? t[typeof a == "string" ? "string" : "hash"] : t.map;
1
+ function t() {
2
+ this.__data__ = [], this.size = 0;
5
3
  }
6
4
  export {
7
- n as default
5
+ t as default
8
6
  };
package/index12.js CHANGED
@@ -1,6 +1,31 @@
1
- const r = (e, t) => {
2
- e.setAttribute(t.arg, t.value);
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
+ });
27
+ }
3
28
  };
4
29
  export {
5
- r as vBinding
30
+ m as vDatetimePicker
6
31
  };
package/index120.js CHANGED
@@ -1,6 +1,12 @@
1
- function u(e, n) {
2
- return e == null ? void 0 : e[n];
1
+ import s from "./index131.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;
3
9
  }
4
10
  export {
5
- u as default
11
+ n as default
6
12
  };
package/index121.js CHANGED
@@ -1,6 +1,8 @@
1
- function t() {
2
- this.__data__ = [], this.size = 0;
1
+ import d from "./index131.js";
2
+ function i(e) {
3
+ var t = this.__data__, a = d(t, e);
4
+ return a < 0 ? void 0 : t[a][1];
3
5
  }
4
6
  export {
5
- t as default
7
+ i as default
6
8
  };
package/index122.js CHANGED
@@ -1,12 +1,7 @@
1
- import s from "./index133.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;
1
+ import a from "./index131.js";
2
+ function e(t) {
3
+ return a(this.__data__, t) > -1;
9
4
  }
10
5
  export {
11
- n as default
6
+ e as default
12
7
  };
package/index123.js CHANGED
@@ -1,8 +1,8 @@
1
- import d from "./index133.js";
2
- function i(e) {
3
- var t = this.__data__, a = d(t, e);
4
- return a < 0 ? void 0 : t[a][1];
1
+ import e from "./index131.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;
5
5
  }
6
6
  export {
7
- i as default
7
+ d as default
8
8
  };
package/index124.js CHANGED
@@ -1,7 +1,5 @@
1
- import a from "./index133.js";
2
- function e(t) {
3
- return a(this.__data__, t) > -1;
4
- }
1
+ import r from "./index36.js";
2
+ var a = r.Uint8Array;
5
3
  export {
6
- e as default
4
+ a as default
7
5
  };
package/index125.js CHANGED
@@ -1,8 +1,7 @@
1
- import e from "./index133.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
+ import t from "./index132.js";
2
+ function e() {
3
+ this.__data__ = t ? t(null) : {}, this.size = 0;
5
4
  }
6
5
  export {
7
- d as default
6
+ e as default
8
7
  };
package/index126.js CHANGED
@@ -1,5 +1,7 @@
1
- import r from "./index37.js";
2
- var a = r.Uint8Array;
1
+ function s(t) {
2
+ var e = this.has(t) && delete this.__data__[t];
3
+ return this.size -= e ? 1 : 0, e;
4
+ }
3
5
  export {
4
- a as default
6
+ s as default
5
7
  };
package/index127.js CHANGED
@@ -1,7 +1,13 @@
1
- import t from "./index134.js";
2
- function e() {
3
- this.__data__ = t ? t(null) : {}, this.size = 0;
1
+ import e from "./index132.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;
4
10
  }
5
11
  export {
6
- e as default
12
+ h as default
7
13
  };
package/index128.js CHANGED
@@ -1,7 +1,9 @@
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 "./index132.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
- s as default
8
+ p as default
7
9
  };
package/index129.js CHANGED
@@ -1,13 +1,9 @@
1
- import e from "./index134.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;
1
+ import e from "./index132.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;
10
6
  }
11
7
  export {
12
- h as default
8
+ s as default
13
9
  };
package/index13.js CHANGED
@@ -1,31 +1,7 @@
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
- });
27
- }
1
+ const r = (t, o) => {
2
+ var e;
3
+ t.setAttribute("readonly", (e = o.value) != null ? e : !0);
28
4
  };
29
5
  export {
30
- m as vDatetimePicker
6
+ r as vReadonly
31
7
  };
package/index130.js CHANGED
@@ -1,9 +1,7 @@
1
- import r from "./index134.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);
1
+ function e(t) {
2
+ var o = typeof t;
3
+ return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
6
4
  }
7
5
  export {
8
- p as default
6
+ e as default
9
7
  };
package/index131.js CHANGED
@@ -1,9 +1,10 @@
1
- import e from "./index134.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;
1
+ import r from "./index27.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;
6
7
  }
7
8
  export {
8
- s as default
9
+ o as default
9
10
  };
package/index132.js CHANGED
@@ -1,7 +1,5 @@
1
- function e(t) {
2
- var o = typeof t;
3
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
4
- }
1
+ import e from "./index102.js";
2
+ var a = e(Object, "create");
5
3
  export {
6
- e as default
4
+ a as default
7
5
  };
package/index14.js CHANGED
@@ -1,7 +1,66 @@
1
- const r = (t, o) => {
2
- var e;
3
- t.setAttribute("readonly", (e = o.value) != null ? e : !0);
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();
5
60
  export {
6
- r as vReadonly
61
+ s as Dialog,
62
+ a as Notify,
63
+ u as dialog,
64
+ c as notify,
65
+ e as setupOverlay
7
66
  };
package/index15.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 "./index3.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,8 +1,4 @@
1
- import o from "./index27.js";
2
- var r = 1, n = 4;
3
- function L(e) {
4
- return o(e, r | n);
5
- }
1
+ import f from "./index6.js";
6
2
  export {
7
- L as default
3
+ f as default
8
4
  };
package/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index8.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 "./index14.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 "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,8 @@
1
- import f from "./index9.js";
1
+ import o from "./index26.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/index23.js CHANGED
@@ -1,4 +1,38 @@
1
- import f from "./index3.js";
1
+ import { makeDestructurable as d, camelize as f } from "./index25.js";
2
+ import { shallowRef as p, defineComponent as i } from "vue";
3
+ // @__NO_SIDE_EFFECTS__
4
+ function h(r = {}) {
5
+ const { inheritAttrs: t = !0 } = r, e = p(), u = i({ setup(a, { slots: o }) {
6
+ return () => {
7
+ e.value = o.default;
8
+ };
9
+ } }), s = i({
10
+ inheritAttrs: t,
11
+ props: r.props,
12
+ setup(a, { attrs: o, slots: c }) {
13
+ return () => {
14
+ var l;
15
+ if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
16
+ const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
17
+ ...r.props == null ? m(o) : a,
18
+ $slots: c
19
+ });
20
+ return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
21
+ };
22
+ }
23
+ });
24
+ return d({
25
+ define: u,
26
+ reuse: s
27
+ }, [u, s]);
28
+ }
29
+ function m(r) {
30
+ const t = {};
31
+ for (const e in r) t[f(e)] = r[e];
32
+ return t;
33
+ }
2
34
  export {
3
- f as default
35
+ f as camelize,
36
+ h as createReusableTemplate,
37
+ d as makeDestructurable
4
38
  };