@solar-taro/ui-vant 4.1.0 → 4.2.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 +11 -0
- package/cascader/index.scss +0 -5
- package/date-range-picker/index.scss +0 -5
- package/index.d.ts +0 -1
- package/index.js +19 -21
- package/index.scss +2 -0
- package/index10.js +16 -61
- package/index11.js +3 -18
- package/index12.js +28 -3
- package/index13.js +4 -28
- package/index14.js +2 -5
- package/index16.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index2.js +1 -1
- package/index20.js +7 -2
- package/index21.js +40 -2
- package/index22.js +25 -7
- package/index3.js +122 -115
- package/index5.js +91 -84
- package/index6.js +278 -51
- package/index7.js +56 -280
- package/index8.js +370 -54
- package/index9.js +63 -382
- package/overlay/overlay.d.ts +2 -0
- package/package.json +1 -1
- package/selector/index.scss +0 -5
- package/selector/index.vue.d.ts +3 -6
- package/index23.js +0 -42
- package/index24.js +0 -27
- package/modal/index.d.ts +0 -1
- package/modal/index.scss +0 -14
- package/modal/index.vue.d.ts +0 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 4.1.0 (2026-10-19)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **plugin-sun:** extend component configuration
|
|
6
|
+
- **ui-vant/modal:** add style files
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- HyperLife1119
|
|
11
|
+
|
|
1
12
|
## 4.0.1 (2026-10-14)
|
|
2
13
|
|
|
3
14
|
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
package/cascader/index.scss
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -2,31 +2,29 @@ import { SolarVant as o } from "./index2.js";
|
|
|
2
2
|
import { default as a } from "./index3.js";
|
|
3
3
|
import { default as l } from "./index4.js";
|
|
4
4
|
import { default as p } from "./index5.js";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as u } from "./index6.js";
|
|
6
|
+
import { default as i } from "./index7.js";
|
|
7
7
|
import { default as s } from "./index8.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { vReadonly as V } from "./index14.js";
|
|
8
|
+
import { Dialog as c, Notify as v, dialog as g, notify as k, setupOverlay as y } from "./index9.js";
|
|
9
|
+
import { vBindFn as C } from "./index10.js";
|
|
10
|
+
import { vBinding as B } from "./index11.js";
|
|
11
|
+
import { vDatetimePicker as R } from "./index12.js";
|
|
12
|
+
import { vReadonly as N } from "./index13.js";
|
|
14
13
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
c as Dialog,
|
|
15
|
+
v as Notify,
|
|
17
16
|
o as SolarVant,
|
|
18
17
|
a as SunCascader,
|
|
19
18
|
l as SunCascaderPicker,
|
|
20
19
|
p as SunDateRangePicker,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
s as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
C as
|
|
28
|
-
B as
|
|
29
|
-
R as
|
|
30
|
-
|
|
31
|
-
V as vReadonly
|
|
20
|
+
u as SunOpperController,
|
|
21
|
+
i as SunSelectPicker,
|
|
22
|
+
s as SunSelector,
|
|
23
|
+
g as dialog,
|
|
24
|
+
k as notify,
|
|
25
|
+
y as setupOverlay,
|
|
26
|
+
C as vBindFn,
|
|
27
|
+
B as vBinding,
|
|
28
|
+
R as vDatetimePicker,
|
|
29
|
+
N as vReadonly
|
|
32
30
|
};
|
package/index.scss
CHANGED
package/index10.js
CHANGED
|
@@ -1,66 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
function e
|
|
3
|
-
|
|
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
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
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
|
+
});
|
|
50
12
|
});
|
|
13
|
+
},
|
|
14
|
+
updated(e, t) {
|
|
15
|
+
const { page: n } = o();
|
|
16
|
+
c(n, e.id, t.arg, t.value);
|
|
51
17
|
}
|
|
52
|
-
|
|
53
|
-
* 关闭对话框
|
|
54
|
-
*/
|
|
55
|
-
dismiss() {
|
|
56
|
-
return i.dialog.close();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const u = new s(), c = new a();
|
|
18
|
+
};
|
|
60
19
|
export {
|
|
61
|
-
|
|
62
|
-
a as Notify,
|
|
63
|
-
u as dialog,
|
|
64
|
-
c as notify,
|
|
65
|
-
e as setupOverlay
|
|
20
|
+
r as vBindFn
|
|
66
21
|
};
|
package/index11.js
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 = (e, t) => {
|
|
2
|
+
e.setAttribute(t.arg, t.value);
|
|
18
3
|
};
|
|
19
4
|
export {
|
|
20
|
-
r as
|
|
5
|
+
r as vBinding
|
|
21
6
|
};
|
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/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/index14.js
CHANGED
package/index16.js
CHANGED
package/index18.js
CHANGED
package/index19.js
CHANGED
package/index2.js
CHANGED
package/index20.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const s = (t) => {
|
|
2
|
+
const o = Math.max(t.startIndex - t.overscan, 0), e = Math.min(t.endIndex + t.overscan, t.count - 1) - o + 1, r = new Array(e);
|
|
3
|
+
for (let n = 0; n < e; n++)
|
|
4
|
+
r[n] = o + n;
|
|
5
|
+
return r;
|
|
6
|
+
};
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
s as defaultRangeExtractor
|
|
4
9
|
};
|
package/index21.js
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { makeDestructurable as m, camelize as c } from "./index22.js";
|
|
2
|
+
import { shallowRef as p, defineComponent as d } from "vue";
|
|
3
|
+
// @__NO_SIDE_EFFECTS__
|
|
4
|
+
function w(e = {}) {
|
|
5
|
+
const { inheritAttrs: r = !0, name: t = "ReusableTemplate" } = e, o = p(), a = d({
|
|
6
|
+
name: `${t}.define`,
|
|
7
|
+
setup(i, { slots: l }) {
|
|
8
|
+
return () => {
|
|
9
|
+
o.value = l.default;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}), s = d({
|
|
13
|
+
inheritAttrs: r,
|
|
14
|
+
name: `${t}.reuse`,
|
|
15
|
+
props: e.props,
|
|
16
|
+
setup(i, { attrs: l, slots: f }) {
|
|
17
|
+
return () => {
|
|
18
|
+
var u;
|
|
19
|
+
if (!o.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
20
|
+
const n = (u = o.value) === null || u === void 0 ? void 0 : u.call(o, {
|
|
21
|
+
...e.props == null ? v(l) : i,
|
|
22
|
+
$slots: f
|
|
23
|
+
});
|
|
24
|
+
return r && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return m({
|
|
29
|
+
define: a,
|
|
30
|
+
reuse: s
|
|
31
|
+
}, [a, s]);
|
|
32
|
+
}
|
|
33
|
+
function v(e) {
|
|
34
|
+
const r = {};
|
|
35
|
+
for (const t in e) r[c(t)] = e[t];
|
|
36
|
+
return r;
|
|
37
|
+
}
|
|
2
38
|
export {
|
|
3
|
-
|
|
39
|
+
c as camelize,
|
|
40
|
+
w as createReusableTemplate,
|
|
41
|
+
m as makeDestructurable
|
|
4
42
|
};
|
package/index22.js
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
}
|
|
1
|
+
import "vue";
|
|
2
|
+
typeof WorkerGlobalScope != "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
3
|
+
function r(t) {
|
|
4
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
5
|
+
return (e) => n[e] || (n[e] = t(e));
|
|
6
|
+
}
|
|
7
|
+
const c = /-(\w)/g, a = r((t) => t.replace(c, (n, e) => e ? e.toUpperCase() : ""));
|
|
8
|
+
// @__NO_SIDE_EFFECTS__
|
|
9
|
+
function u(t, n) {
|
|
10
|
+
if (typeof Symbol != "undefined") {
|
|
11
|
+
const e = { ...t };
|
|
12
|
+
return Object.defineProperty(e, Symbol.iterator, {
|
|
13
|
+
enumerable: !1,
|
|
14
|
+
value() {
|
|
15
|
+
let o = 0;
|
|
16
|
+
return { next: () => ({
|
|
17
|
+
value: n[o++],
|
|
18
|
+
done: o > n.length
|
|
19
|
+
}) };
|
|
20
|
+
}
|
|
21
|
+
}), e;
|
|
22
|
+
} else return Object.assign([...n], t);
|
|
23
|
+
}
|
|
7
24
|
export {
|
|
8
|
-
|
|
25
|
+
a as camelize,
|
|
26
|
+
u as makeDestructurable
|
|
9
27
|
};
|