@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.
- package/CHANGELOG.md +4 -0
- package/index.d.ts +0 -1
- package/index.js +18 -20
- package/index10.js +17 -341
- package/index100.js +6 -4
- package/index101.js +10 -6
- package/index102.js +6 -6
- package/index103.js +18 -10
- package/index104.js +4 -6
- package/index105.js +4 -17
- package/index106.js +3 -4
- package/index107.js +3 -4
- package/index108.js +14 -3
- package/index109.js +8 -4
- package/index11.js +3 -18
- package/index110.js +5 -14
- package/index111.js +6 -8
- package/index112.js +5 -5
- package/index113.js +5 -5
- package/index114.js +5 -5
- package/index115.js +3 -6
- package/index116.js +17 -5
- package/index117.js +6 -3
- package/index118.js +3 -17
- package/index119.js +3 -5
- package/index12.js +28 -3
- package/index120.js +9 -3
- package/index121.js +5 -3
- package/index122.js +4 -9
- package/index123.js +5 -5
- package/index124.js +3 -5
- package/index125.js +4 -5
- package/index126.js +5 -3
- package/index127.js +10 -4
- package/index128.js +6 -4
- package/index129.js +6 -10
- package/index13.js +4 -28
- package/index130.js +4 -6
- package/index131.js +7 -6
- package/index132.js +3 -5
- package/index14.js +64 -5
- package/index15.js +2 -64
- package/index17.js +2 -6
- package/index18.js +1 -1
- package/index2.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +6 -2
- package/index23.js +36 -2
- package/index24.js +4 -2
- package/index25.js +23 -34
- package/index26.js +62 -3
- package/index27.js +3 -62
- package/index28.js +8 -4
- package/index29.js +6 -7
- package/index30.js +3 -6
- package/index31.js +2 -4
- package/index32.js +6 -2
- package/index33.js +9 -5
- package/index34.js +4 -9
- package/index35.js +4 -5
- package/index36.js +3 -4
- package/index37.js +4 -3
- package/index38.js +7 -3
- package/index39.js +4 -7
- package/index4.js +1 -1
- package/index40.js +5 -5
- package/index41.js +7 -5
- package/index42.js +5 -6
- package/index43.js +9 -6
- package/index44.js +5 -9
- package/index45.js +7 -5
- package/index46.js +4 -6
- package/index47.js +10 -5
- package/index48.js +6 -9
- package/index49.js +17 -6
- package/index5.js +1 -1
- package/index50.js +11 -17
- package/index51.js +6 -11
- package/index52.js +12 -6
- package/index53.js +3 -12
- package/index54.js +11 -3
- package/index55.js +7 -24
- package/index56.js +9 -7
- package/index57.js +5 -9
- package/index58.js +8 -11
- package/index6.js +45 -90
- package/index60.js +15 -5
- package/index61.js +6 -9
- package/index62.js +5 -15
- package/index63.js +8 -5
- package/index64.js +6 -5
- package/index65.js +5 -8
- package/index66.js +5 -6
- package/index67.js +5 -4
- package/index68.js +6 -5
- package/index69.js +26 -7
- package/index7.js +261 -46
- package/index70.js +5 -6
- package/index71.js +40 -26
- package/index72.js +4 -3
- package/index73.js +5 -39
- package/index74.js +15 -7
- package/index75.js +7 -5
- package/index76.js +2 -15
- package/index77.js +3 -8
- package/index78.js +4 -2
- package/index79.js +4 -3
- package/index8.js +54 -261
- package/index80.js +4 -13
- package/index81.js +4 -5
- package/index82.js +4 -3
- package/index83.js +14 -3
- package/index84.js +3 -4
- package/index85.js +13 -4
- package/index86.js +5 -4
- package/index87.js +14 -4
- package/index88.js +8 -14
- package/index89.js +3 -14
- package/index9.js +334 -52
- package/index90.js +5 -8
- package/index91.js +6 -3
- package/index92.js +5 -5
- package/index93.js +7 -5
- package/index94.js +17 -5
- package/index95.js +10 -7
- package/index96.js +5 -17
- package/index97.js +4 -10
- package/index98.js +4 -5
- package/index99.js +5 -4
- package/package.json +1 -1
- package/selector/index.vue.d.ts +3 -3
- package/index133.js +0 -10
- package/index134.js +0 -5
- package/list/index.d.ts +0 -1
- package/list/index.vue.d.ts +0 -110
package/index111.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
return
|
|
5
|
-
|
|
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
|
-
|
|
7
|
+
t as default
|
|
10
8
|
};
|
package/index112.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
var
|
|
4
|
-
return
|
|
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
|
-
|
|
7
|
+
e as default
|
|
8
8
|
};
|
package/index113.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
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
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|
package/index114.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
function e
|
|
3
|
-
var n =
|
|
4
|
-
return 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
|
-
|
|
7
|
+
u as default
|
|
8
8
|
};
|
package/index115.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
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
|
-
|
|
4
|
+
a as default
|
|
8
5
|
};
|
package/index116.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
19
|
+
t as default
|
|
8
20
|
};
|
package/index117.js
CHANGED
package/index118.js
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
5
|
+
u as default
|
|
20
6
|
};
|
package/index119.js
CHANGED
package/index12.js
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
30
|
+
m as vDatetimePicker
|
|
6
31
|
};
|
package/index120.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
11
|
+
n as default
|
|
6
12
|
};
|
package/index121.js
CHANGED
package/index122.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
+
e as default
|
|
12
7
|
};
|
package/index123.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function i
|
|
3
|
-
var t = this.__data__, a =
|
|
4
|
-
return a < 0 ?
|
|
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
|
-
|
|
7
|
+
d as default
|
|
8
8
|
};
|
package/index124.js
CHANGED
package/index125.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
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
|
-
|
|
6
|
+
e as default
|
|
8
7
|
};
|
package/index126.js
CHANGED
package/index127.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
12
|
+
h as default
|
|
7
13
|
};
|
package/index128.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
8
|
+
p as default
|
|
7
9
|
};
|
package/index129.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
|
|
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
|
-
|
|
8
|
+
s as default
|
|
13
9
|
};
|
package/index13.js
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
+
r as vReadonly
|
|
31
7
|
};
|
package/index130.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
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
|
-
|
|
6
|
+
e as default
|
|
9
7
|
};
|
package/index131.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
+
o as default
|
|
9
10
|
};
|
package/index132.js
CHANGED
package/index14.js
CHANGED
|
@@ -1,7 +1,66 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
package/index18.js
CHANGED
package/index2.js
CHANGED
package/index20.js
CHANGED
package/index21.js
CHANGED
package/index22.js
CHANGED
package/index23.js
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
|
-
import f from "./
|
|
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
|
|
35
|
+
f as camelize,
|
|
36
|
+
h as createReusableTemplate,
|
|
37
|
+
d as makeDestructurable
|
|
4
38
|
};
|