@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 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.
@@ -31,11 +31,6 @@
31
31
  padding: 4px;
32
32
  color: var(--color-medium-tint);
33
33
  }
34
-
35
- &-btn {
36
- color: var(--color-primary);
37
- font-size: 14px;
38
- }
39
34
  }
40
35
 
41
36
  &-options {
@@ -31,11 +31,6 @@
31
31
  padding: 4px;
32
32
  color: var(--color-medium-tint);
33
33
  }
34
-
35
- &-btn {
36
- color: var(--color-primary);
37
- font-size: 14px;
38
- }
39
34
  }
40
35
 
41
36
  &-input-group {
package/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './cascader';
2
2
  export * from './cascader-picker';
3
3
  export * from './date-range-picker';
4
4
  export * from './directives';
5
- export * from './modal';
6
5
  export * from './opper-controller';
7
6
  export * from './overlay';
8
7
  export * from './plugin';
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 d } from "./index6.js";
6
- import { default as x } from "./index7.js";
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 { default as c } from "./index9.js";
9
- import { Dialog as g, Notify as k, dialog as y, notify as P, setupOverlay as C } from "./index10.js";
10
- import { vBindFn as B } from "./index11.js";
11
- import { vBinding as R } from "./index12.js";
12
- import { vDatetimePicker as M } from "./index13.js";
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
- g as Dialog,
16
- k as Notify,
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
- d as SunModal,
22
- x as SunOpperController,
23
- s as SunSelectPicker,
24
- c as SunSelector,
25
- y as dialog,
26
- P as notify,
27
- C as setupOverlay,
28
- B as vBindFn,
29
- R as vBinding,
30
- M as vDatetimePicker,
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
@@ -65,6 +65,8 @@ page > view {
65
65
  --van-search-height: 54px;
66
66
 
67
67
  --submit-bar-z-index: 1;
68
+
69
+ --calendar-popup-height: 85%;
68
70
  }
69
71
 
70
72
  van-cell {
package/index10.js CHANGED
@@ -1,66 +1,21 @@
1
- const i = {};
2
- function e(r) {
3
- Object.assign(i, r);
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
- 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
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
- s as Dialog,
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
- 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 = (e, t) => {
2
+ e.setAttribute(t.arg, t.value);
18
3
  };
19
4
  export {
20
- r as vBindFn
5
+ r as vBinding
21
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/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/index14.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 "./index7.js";
5
2
  export {
6
- r as vReadonly
3
+ f as default
7
4
  };
package/index16.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.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 "./index7.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 "./index6.js";
1
+ import f from "./index4.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,9 @@
1
- import f from "./index8.js";
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
- f as default
8
+ s as defaultRangeExtractor
4
9
  };
package/index21.js CHANGED
@@ -1,4 +1,42 @@
1
- import f from "./index9.js";
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
- f as default
39
+ c as camelize,
40
+ w as createReusableTemplate,
41
+ m as makeDestructurable
4
42
  };
package/index22.js CHANGED
@@ -1,9 +1,27 @@
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
- };
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
- s as defaultRangeExtractor
25
+ a as camelize,
26
+ u as makeDestructurable
9
27
  };