@solar-taro/ui-vant 1.1.8 → 1.1.10

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,25 @@
1
+ ## 1.1.9 (2025-07-16)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **ui-vant/list:** replace rpx with px
6
+ - **ui-vant/date-range-picker:** fix bug
7
+
8
+ ### ❤️ Thank You
9
+
10
+ - HyperLife1119
11
+
12
+ ## 1.1.8 (2025-06-24)
13
+
14
+ ### 🩹 Fixes
15
+
16
+ - **ui-vant/date-range-picker:** fix bug
17
+ - **ui-vant/date-range-picker:** fix bug
18
+
19
+ ### ❤️ Thank You
20
+
21
+ - HyperLife1119
22
+
1
23
  ## 1.1.7 (2025-05-30)
2
24
 
3
25
  ### 🚀 Features
@@ -3,11 +3,11 @@
3
3
  display: flex;
4
4
  justify-content: center;
5
5
  align-items: center;
6
- padding: 20rpx calc(24rpx + var(--safe-left)) 40rpx;
6
+ padding: 10px calc(12px + var(--safe-left)) 20px;
7
7
 
8
8
  > van-icon {
9
- font-size: 36rpx;
10
- margin: 0 16rpx;
9
+ font-size: 18px;
10
+ margin: 0 8px;
11
11
  transform: rotate(-90deg);
12
12
  }
13
13
  }
@@ -16,7 +16,7 @@
16
16
  position: relative;
17
17
  flex: 1;
18
18
  text-align: center;
19
- padding: 24rpx 0;
19
+ padding: 12px 0;
20
20
  color: var(--color-gray);
21
21
  border-radius: 99px;
22
22
  border: 1px solid currentColor;
@@ -29,10 +29,10 @@
29
29
 
30
30
  &-label {
31
31
  position: absolute;
32
- top: -16rpx;
33
- left: 30rpx;
34
- padding: 0 8rpx;
35
- font-size: 24rpx;
32
+ top: -8px;
33
+ left: 16px;
34
+ padding: 0 4px;
35
+ font-size: 12px;
36
36
  background: white;
37
37
  }
38
38
 
@@ -42,6 +42,6 @@
42
42
  }
43
43
 
44
44
  &-btn-wrapper {
45
- padding: 40rpx calc(24rpx + var(--safe-left)) 24rpx;
45
+ padding: 20px calc(12px + var(--safe-left)) 12px;
46
46
  }
47
47
  }
package/index.scss CHANGED
@@ -36,7 +36,7 @@ page > view {
36
36
  --button-default-height: 44px;
37
37
  --button-small-height: 34px;
38
38
  --button-mini-height: 24px;
39
- --button-border-radius: 16rpx;
39
+ --button-border-radius: 8px;
40
40
  --button-plain-background-color: transparent;
41
41
  --button-primary-background-color: var(--color-primary);
42
42
  --button-primary-border-color: var(--color-primary);
@@ -141,7 +141,7 @@ van-button {
141
141
  }
142
142
 
143
143
  .van-button-container {
144
- padding: 24rpx;
144
+ padding: 12px;
145
145
  bottom: var(--safe-bottom);
146
146
  }
147
147
 
package/index10.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as I, ref as W, computed as h, renderSlot as M, openBlock as A, createElementBlock as _, createCommentVNode as G, mergeProps as H, resolveDirective as J, withDirectives as Q, unref as U, toDisplayString as X, createElementVNode as Y, normalizeClass as Z, normalizeStyle as x, withCtx as ee, createBlock as le, Fragment as te, renderList as oe } from "vue";
2
- import { useFilterList as ne } from "@solar-taro/core";
3
- import { SunVirtualScroll as se } from "@solar-taro/ui-sun";
1
+ import { defineComponent as I, ref as q, computed as h, renderSlot as M, openBlock as A, createElementBlock as G, createCommentVNode as H, mergeProps as J, resolveDirective as Q, withDirectives as U, unref as X, toDisplayString as Y, createElementVNode as Z, normalizeClass as _, normalizeStyle as x, withCtx as ee, createBlock as le, Fragment as te, renderList as oe } from "vue";
2
+ import { useFilterList as se } from "@solar-taro/core";
3
+ import { SunVirtualScroll as ne } from "@solar-taro/ui-sun";
4
4
  import ae from "./index6.js";
5
- const S = M, s = A, a = _, u = G, q = H, re = J, D = Q, d = U, N = X, c = Y, E = Z, w = x, F = ee, L = le, z = te, ie = oe, ue = ["label", "value", "placeholder", "required", "disabled"], de = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], ce = ["show", "title"], pe = ["value"], ve = ["onTap"], fe = {
5
+ const y = M, n = A, a = G, u = H, D = J, re = Q, N = U, d = X, E = Y, c = Z, F = _, w = x, L = ee, O = le, z = te, ie = oe, ue = ["label", "value", "placeholder", "required", "disabled"], de = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], ce = ["show", "title"], pe = ["value"], ve = ["onTap"], fe = {
6
6
  class: "sun-selector-option-label",
7
7
  name: "title"
8
8
  }, me = {
@@ -19,7 +19,7 @@ const S = M, s = A, a = _, u = G, q = H, re = J, D = Q, d = U, N = X, c = Y, E =
19
19
  slot: "right-icon",
20
20
  name: "success"
21
21
  }, be = {
22
- key: 3,
22
+ key: 0,
23
23
  class: "van-button-container"
24
24
  }, Be = /* @__PURE__ */ I({
25
25
  __name: "index",
@@ -41,122 +41,122 @@ const S = M, s = A, a = _, u = G, q = H, re = J, D = Q, d = U, N = X, c = Y, E =
41
41
  virtual: { type: [Boolean, Object] },
42
42
  refresher: { type: Boolean },
43
43
  refreshing: { type: Boolean },
44
- compareWith: { type: Function, default: (y, g) => y === g }
44
+ compareWith: { type: Function, default: (g, b) => g === b }
45
45
  },
46
46
  emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
47
- setup(y, { expose: g, emit: O }) {
48
- const t = y, r = O, b = W(!1), k = W(!1), { keyword: T, filteredList: V } = ne(
47
+ setup(g, { expose: b, emit: P }) {
48
+ const t = g, r = P, k = q(!1), V = q(!1), { keyword: T, filteredList: $ } = se(
49
49
  () => t.options,
50
50
  (e, l) => e[t.labelKey].includes(l.value)
51
- ), $ = h(() => {
51
+ ), K = h(() => {
52
52
  var e;
53
53
  if (p.value) {
54
54
  const l = t.options.find(
55
- (n) => t.modelValue ? t.compareWith(n[t.valueKey], t.modelValue) : !1
55
+ (s) => t.modelValue ? t.compareWith(s[t.valueKey], t.modelValue) : !1
56
56
  );
57
57
  return (l == null ? void 0 : l[t.labelKey]) || "";
58
58
  }
59
59
  return (e = t.modelValue) == null ? void 0 : e.map(
60
60
  (l) => {
61
- var n;
62
- return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
61
+ var s;
62
+ return ((s = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : s[t.labelKey]) || "";
63
63
  }
64
64
  ).join(t.delimiter);
65
- }), K = h(() => t.modelValue && !t.required), p = h(() => t.mode === "single"), P = h(() => {
66
- var n, o;
65
+ }), B = h(() => t.modelValue && !t.required), p = h(() => t.mode === "single"), R = h(() => {
66
+ var s, o;
67
67
  let e, l = 48;
68
- return typeof t.virtual != "boolean" && (n = t.virtual) != null && n.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
68
+ return typeof t.virtual != "boolean" && (s = t.virtual) != null && s.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
69
69
  });
70
70
  function i(e) {
71
- var n;
71
+ var s;
72
72
  const l = e[t.valueKey];
73
- return p.value ? t.modelValue ? t.compareWith(t.modelValue, l) : !1 : ((n = t.modelValue) == null ? void 0 : n.some((o) => t.compareWith(o, l))) || !1;
73
+ return p.value ? t.modelValue ? t.compareWith(t.modelValue, l) : !1 : ((s = t.modelValue) == null ? void 0 : s.some((o) => t.compareWith(o, l))) || !1;
74
74
  }
75
75
  function v() {
76
- t.disabled || (b.value = !0, k.value || setTimeout(() => {
77
- k.value = !0;
76
+ t.disabled || (k.value = !0, V.value || setTimeout(() => {
77
+ V.value = !0;
78
78
  }, 300));
79
79
  }
80
80
  function f() {
81
- b.value = !1, r("close");
81
+ k.value = !1, r("close");
82
82
  }
83
- function R() {
83
+ function W() {
84
84
  var l;
85
85
  const e = ((l = t.modelValue) == null ? void 0 : l.map(
86
- (n) => t.options.find(
87
- (o) => t.compareWith(o[t.valueKey], n)
86
+ (s) => t.options.find(
87
+ (o) => t.compareWith(o[t.valueKey], s)
88
88
  )
89
89
  )) || [];
90
90
  r("confirm", e), f();
91
91
  }
92
92
  function m(e) {
93
93
  const l = e[t.valueKey];
94
- let n = t.modelValue;
95
- p.value ? (i(e) ? t.required || (r("unselect", e), n = null) : (r("select", e), n = l), f()) : i(e) ? (r("unselect", e), n = t.modelValue.filter(
94
+ let s = t.modelValue;
95
+ p.value ? (i(e) ? t.required || (r("unselect", e), s = null) : (r("select", e), s = l), f()) : i(e) ? (r("unselect", e), s = t.modelValue.filter(
96
96
  (o) => !t.compareWith(o, l)
97
- )) : (r("select", e), n = (t.modelValue || []).concat(
97
+ )) : (r("select", e), s = (t.modelValue || []).concat(
98
98
  e[t.valueKey]
99
- )), r("update:modelValue", n);
99
+ )), r("update:modelValue", s);
100
100
  }
101
- function B() {
101
+ function C() {
102
102
  r("clear", t.modelValue), r("update:modelValue", null);
103
103
  }
104
- return g({
104
+ return b({
105
105
  present: v,
106
- clear: B
106
+ clear: C
107
107
  }), (e, l) => {
108
- const n = re("readonly");
109
- return s(), a(z, null, [
110
- S(e.$slots, "default", {
108
+ const s = re("readonly");
109
+ return n(), a(z, null, [
110
+ y(e.$slots, "default", {
111
111
  present: v,
112
- label: $.value
112
+ label: K.value
113
113
  }, () => [
114
- e.type === "field" ? D((s(), a("van-field", q({ key: 0 }, e.$attrs, {
114
+ e.type === "field" ? N((n(), a("van-field", D({ key: 0 }, e.$attrs, {
115
115
  class: "sun-selector",
116
116
  label: e.label,
117
- value: $.value,
117
+ value: K.value,
118
118
  placeholder: e.placeholder,
119
119
  required: e.required,
120
120
  disabled: e.disabled,
121
121
  onClickInput: l[1] || (l[1] = (o) => v())
122
122
  }), [
123
- K.value ? (s(), a("van-icon", {
123
+ B.value ? (n(), a("van-icon", {
124
124
  key: 0,
125
125
  slot: "right-icon",
126
126
  name: "clear",
127
- onTap: l[0] || (l[0] = (o) => B())
127
+ onTap: l[0] || (l[0] = (o) => C())
128
128
  }, null, 32)) : u("", !0)
129
129
  ], 16, ue)), [
130
- [n]
131
- ]) : e.type === "search" ? D((s(), a("van-search", q({ key: 1 }, e.$attrs, {
130
+ [s]
131
+ ]) : e.type === "search" ? N((n(), a("van-search", D({ key: 1 }, e.$attrs, {
132
132
  class: "sun-selector",
133
133
  label: e.label,
134
- value: $.value,
134
+ value: K.value,
135
135
  placeholder: e.placeholder,
136
- "use-right-icon-slot": K.value,
136
+ "use-right-icon-slot": B.value,
137
137
  shape: "round",
138
138
  clearable: !1,
139
139
  disabled: e.disabled,
140
140
  onClickInput: l[3] || (l[3] = (o) => v())
141
141
  }), [
142
- K.value ? (s(), a("van-icon", {
142
+ B.value ? (n(), a("van-icon", {
143
143
  key: 0,
144
144
  slot: "right-icon",
145
145
  name: "clear",
146
- onTap: l[2] || (l[2] = (o) => B())
146
+ onTap: l[2] || (l[2] = (o) => C())
147
147
  }, null, 32)) : u("", !0)
148
148
  ], 16, de)), [
149
- [n]
149
+ [s]
150
150
  ]) : u("", !0)
151
151
  ]),
152
152
  c("van-action-sheet", {
153
- show: b.value,
153
+ show: k.value,
154
154
  title: e.placeholder,
155
155
  "close-on-click-overlay": !0,
156
156
  onClose: l[8] || (l[8] = (o) => f()),
157
157
  onCancel: l[9] || (l[9] = (o) => f())
158
158
  }, [
159
- e.searchable ? (s(), a("van-search", {
159
+ e.searchable ? (n(), a("van-search", {
160
160
  key: 0,
161
161
  shape: "round",
162
162
  "input-align": "center",
@@ -164,81 +164,83 @@ const S = M, s = A, a = _, u = G, q = H, re = J, D = Q, d = U, N = X, c = Y, E =
164
164
  placeholder: "输入关键字搜索",
165
165
  onChange: l[4] || (l[4] = (o) => T.value = o.detail.trim())
166
166
  }, null, 40, pe)) : u("", !0),
167
- e.virtual ? (s(), a(z, { key: 1 }, [
168
- k.value ? (s(), L(d(se), {
167
+ e.virtual ? (n(), a(z, { key: 1 }, [
168
+ V.value ? (n(), O(d(ne), {
169
169
  key: 0,
170
170
  class: "sun-selector-options",
171
171
  refresher: e.refresher,
172
172
  refreshing: e.refreshing,
173
- items: d(V),
174
- "item-size": P.value.itemSize,
173
+ items: d($),
174
+ "item-size": R.value.itemSize,
175
175
  "item-key": e.valueKey,
176
176
  style: w({ height: e.height }),
177
177
  onRefresh: l[5] || (l[5] = (o) => r("refresh"))
178
178
  }, {
179
- default: F(({ item: o, index: C }) => [
180
- S(e.$slots, "option", {
179
+ default: L(({ item: o, index: S }) => [
180
+ y(e.$slots, "option", {
181
181
  option: o,
182
- index: C,
182
+ index: S,
183
183
  active: i(o),
184
184
  select: () => m(o)
185
185
  }, () => [
186
186
  c("van-cell", {
187
- class: E(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
187
+ class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
188
188
  clickable: !0,
189
189
  size: "large",
190
190
  onTap: (j) => m(o)
191
191
  }, [
192
- c("slot-view", fe, N(o[e.labelKey]), 1),
193
- i(o) ? (s(), a("van-icon", me)) : u("", !0)
192
+ c("slot-view", fe, E(o[e.labelKey]), 1),
193
+ i(o) ? (n(), a("van-icon", me)) : u("", !0)
194
194
  ], 42, ve)
195
195
  ])
196
196
  ]),
197
197
  _: 3
198
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(), a("view", {
198
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), a("view", {
199
199
  key: 1,
200
200
  style: w({ height: e.height })
201
201
  }, null, 4))
202
- ], 64)) : (s(), L(d(ae), {
202
+ ], 64)) : (n(), O(d(ae), {
203
203
  key: 2,
204
204
  class: "sun-selector-options",
205
205
  refresher: e.refresher,
206
206
  refreshing: e.refreshing,
207
- data: d(V),
207
+ data: d($),
208
208
  loading: e.loading,
209
209
  "empty-type": "search",
210
210
  style: w({ height: e.height }),
211
211
  onRefresh: l[6] || (l[6] = (o) => r("refresh"))
212
212
  }, {
213
- default: F(() => [
214
- (s(!0), a(z, null, ie(d(V), (o, C) => S(e.$slots, "option", {
213
+ default: L(() => [
214
+ (n(!0), a(z, null, ie(d($), (o, S) => y(e.$slots, "option", {
215
215
  key: o[e.valueKey],
216
216
  option: o,
217
- index: C,
217
+ index: S,
218
218
  active: i(o),
219
219
  select: () => m(o)
220
220
  }, () => [
221
221
  c("van-cell", {
222
- class: E(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
222
+ class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
223
223
  clickable: !0,
224
224
  size: "large",
225
225
  onTap: (j) => m(o)
226
226
  }, [
227
- c("slot-view", ye, N(o[e.labelKey]), 1),
228
- i(o) ? (s(), a("van-icon", ge)) : u("", !0)
227
+ c("slot-view", ye, E(o[e.labelKey]), 1),
228
+ i(o) ? (n(), a("van-icon", ge)) : u("", !0)
229
229
  ], 42, he)
230
230
  ])), 128))
231
231
  ]),
232
232
  _: 3
233
233
  }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
234
- p.value ? u("", !0) : (s(), a("view", be, [
235
- c("van-button", {
236
- type: "primary",
237
- round: "true",
238
- block: "true",
239
- onTap: l[7] || (l[7] = (o) => R())
240
- }, "确定", 32)
241
- ]))
234
+ y(e.$slots, "footer", { confirm: W }, () => [
235
+ p.value ? u("", !0) : (n(), a("view", be, [
236
+ c("van-button", {
237
+ type: "primary",
238
+ round: "true",
239
+ block: "true",
240
+ onTap: l[7] || (l[7] = (o) => W())
241
+ }, "确定", 32)
242
+ ]))
243
+ ])
242
244
  ], 40, ce)
243
245
  ], 64);
244
246
  };
package/index105.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import r from "./index90.js";
2
- import i from "./index126.js";
2
+ import i from "./index121.js";
3
3
  function f(t, a) {
4
4
  var e = i(t, a);
5
5
  return r(e) ? e : void 0;
package/index106.js CHANGED
@@ -1,8 +1,8 @@
1
- import p from "./index121.js";
2
- import a from "./index122.js";
3
- import i from "./index123.js";
4
- import h from "./index124.js";
5
- import s from "./index125.js";
1
+ import p from "./index122.js";
2
+ import a from "./index123.js";
3
+ import i from "./index124.js";
4
+ import h from "./index125.js";
5
+ import s from "./index126.js";
6
6
  function t(e) {
7
7
  var o = -1, l = e == null ? 0 : e.length;
8
8
  for (this.clear(); ++o < l; ) {
package/index121.js CHANGED
@@ -1,6 +1,6 @@
1
- function t() {
2
- this.__data__ = [], this.size = 0;
1
+ function u(e, n) {
2
+ return e == null ? void 0 : e[n];
3
3
  }
4
4
  export {
5
- t as default
5
+ u as default
6
6
  };
package/index122.js CHANGED
@@ -1,12 +1,6 @@
1
- import s from "./index134.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
+ function t() {
2
+ this.__data__ = [], this.size = 0;
9
3
  }
10
4
  export {
11
- n as default
5
+ t as default
12
6
  };
package/index123.js CHANGED
@@ -1,8 +1,12 @@
1
- import d from "./index134.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 s from "./index134.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;
5
9
  }
6
10
  export {
7
- i as default
11
+ n as default
8
12
  };
package/index124.js CHANGED
@@ -1,7 +1,8 @@
1
- import a from "./index134.js";
2
- function e(t) {
3
- return a(this.__data__, t) > -1;
1
+ import d from "./index134.js";
2
+ function i(e) {
3
+ var t = this.__data__, a = d(t, e);
4
+ return a < 0 ? void 0 : t[a][1];
4
5
  }
5
6
  export {
6
- e as default
7
+ i as default
7
8
  };
package/index125.js CHANGED
@@ -1,8 +1,7 @@
1
- import e from "./index134.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 a from "./index134.js";
2
+ function e(t) {
3
+ return a(this.__data__, t) > -1;
5
4
  }
6
5
  export {
7
- d as default
6
+ e as default
8
7
  };
package/index126.js CHANGED
@@ -1,6 +1,8 @@
1
- function u(e, n) {
2
- return e == null ? void 0 : e[n];
1
+ import e from "./index134.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;
3
5
  }
4
6
  export {
5
- u as default
7
+ d as default
6
8
  };
package/index16.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.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 "./index7.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index3.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.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/index28.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import S from "./index63.js";
2
2
  import L from "./index61.js";
3
- import B from "./index58.js";
3
+ import B from "./index57.js";
4
4
  import I from "./index64.js";
5
5
  import O from "./index65.js";
6
6
  import _ from "./index66.js";
package/index4.js CHANGED
@@ -163,7 +163,7 @@ const ge = /* @__PURE__ */ P({
163
163
  round: "true",
164
164
  block: "true",
165
165
  onTap: e[5] || (e[5] = (r) => I())
166
- }, c(n.value[0] && n.value[1] ? "确定" : "继续"), 33)
166
+ }, c(n.value.ref.value[0] && n.value.ref.value[1] ? "确定" : "继续"), 33)
167
167
  ])
168
168
  ], 40, ae)
169
169
  ], 64);
package/index57.js CHANGED
@@ -1,14 +1,10 @@
1
- import m from "./index58.js";
2
- import t from "./index59.js";
3
- function v(a, f, i, u) {
4
- var d = !i;
5
- i || (i = {});
6
- for (var s = -1, e = f.length; ++s < e; ) {
7
- var n = f[s], r = void 0;
8
- r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
9
- }
10
- return i;
1
+ import t from "./index58.js";
2
+ import i from "./index29.js";
3
+ var s = Object.prototype, p = s.hasOwnProperty;
4
+ function l(r, a, o) {
5
+ var n = r[a];
6
+ (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
11
7
  }
12
8
  export {
13
- v as default
9
+ l as default
14
10
  };
package/index58.js CHANGED
@@ -1,10 +1,12 @@
1
- import t from "./index59.js";
2
- import i from "./index29.js";
3
- var s = Object.prototype, p = s.hasOwnProperty;
4
- function l(r, a, o) {
5
- var n = r[a];
6
- (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
1
+ import u from "./index62.js";
2
+ function i(r, e, t) {
3
+ e == "__proto__" && u ? u(r, e, {
4
+ configurable: !0,
5
+ enumerable: !0,
6
+ value: t,
7
+ writable: !0
8
+ }) : r[e] = t;
7
9
  }
8
10
  export {
9
- l as default
11
+ i as default
10
12
  };
package/index59.js CHANGED
@@ -1,12 +1,14 @@
1
- import u from "./index62.js";
2
- function i(r, e, t) {
3
- e == "__proto__" && u ? u(r, e, {
4
- configurable: !0,
5
- enumerable: !0,
6
- value: t,
7
- writable: !0
8
- }) : r[e] = t;
1
+ import m from "./index57.js";
2
+ import t from "./index58.js";
3
+ function v(a, f, i, u) {
4
+ var d = !i;
5
+ i || (i = {});
6
+ for (var s = -1, e = f.length; ++s < e; ) {
7
+ var n = f[s], r = void 0;
8
+ r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
9
+ }
10
+ return i;
9
11
  }
10
12
  export {
11
- i as default
13
+ v as default
12
14
  };
package/index6.js CHANGED
@@ -6,7 +6,7 @@ const l = c, $ = m, D = y, o = p, E = w, s = x, C = v, n = S, d = B, f = k, P =
6
6
  style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
7
7
  }, R = ["image", "description"], q = {
8
8
  class: "sun-list-loading-wrapper",
9
- style: { "text-align": "center", padding: "10rpx" }
9
+ style: { "text-align": "center", padding: "6px" }
10
10
  }, I = /* @__PURE__ */ u({
11
11
  __name: "index",
12
12
  props: {
package/index64.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index57.js";
1
+ import o from "./index59.js";
2
2
  import e from "./index50.js";
3
3
  function m(r, t) {
4
4
  return r && o(t, e(t), r);
package/index65.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index57.js";
1
+ import t from "./index59.js";
2
2
  import o from "./index53.js";
3
3
  function i(n, r) {
4
4
  return n && t(r, o(r), n);
package/index68.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index57.js";
1
+ import m from "./index59.js";
2
2
  import r from "./index112.js";
3
3
  function f(o, t) {
4
4
  return m(o, r(o), t);
package/index69.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index57.js";
1
+ import m from "./index59.js";
2
2
  import r from "./index104.js";
3
3
  function e(o, t) {
4
4
  return m(o, r(o), t);
package/item/index.scss CHANGED
@@ -5,8 +5,8 @@
5
5
  --arrow-color: #94a3b8;
6
6
  display: flex;
7
7
  align-items: center;
8
- gap: 25rpx;
9
- padding: 0 25rpx;
8
+ gap: 12px;
9
+ padding: 0 12px;
10
10
  background: var(--background);
11
11
  transition: background-color ease-in-out 0.25s;
12
12
 
@@ -22,16 +22,16 @@
22
22
  display: flex;
23
23
  flex: auto;
24
24
  align-items: center;
25
- min-height: 88rpx;
25
+ min-height: 44px;
26
26
  border-bottom: 0.5px solid var(--border-color);
27
27
  }
28
28
 
29
29
  &-content-wrapper {
30
30
  flex: auto;
31
- padding: 25rpx 0;
31
+ padding: 12px 0;
32
32
  }
33
33
 
34
34
  &-detail-icon {
35
- margin-left: 25rpx;
35
+ margin-left: 12px;
36
36
  }
37
37
  }
@@ -1,29 +1,29 @@
1
1
  .sun-opper-controller {
2
2
  &-device {
3
- padding: 0 24rpx 10rpx;
3
+ padding: 0 12px 5px;
4
4
 
5
5
  &-header {
6
- margin-bottom: 25rpx;
7
- padding-bottom: 25rpx;
6
+ margin-bottom: 12px;
7
+ padding-bottom: 12px;
8
8
  border-bottom: 1px solid #f1f5f9;
9
9
  }
10
10
 
11
11
  &-title {
12
- font-size: 50rpx;
12
+ font-size: 26px;
13
13
  font-weight: bold;
14
- margin-bottom: 10rpx;
14
+ margin-bottom: 5px;
15
15
  }
16
16
 
17
17
  &-name {
18
18
  display: flex;
19
19
  justify-content: space-between;
20
- font-size: 32rpx;
20
+ font-size: 16px;
21
21
  }
22
22
 
23
23
  &-info {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
- margin-bottom: 10rpx;
26
+ margin-bottom: 5px;
27
27
 
28
28
  > view {
29
29
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
 
11
11
  &-icon {
12
12
  color: var(--color-primary);
13
- font-size: 32rpx;
13
+ font-size: 16px;
14
14
  }
15
15
  }
16
16
  }
@@ -2,6 +2,7 @@ interface SelectorOption {
2
2
  [key: string]: any;
3
3
  }
4
4
  declare function present(): void;
5
+ declare function confirm(): void;
5
6
  declare function clear(): void;
6
7
  declare function __VLS_template(): {
7
8
  default?(_: {
@@ -14,6 +15,9 @@ declare function __VLS_template(): {
14
15
  active: boolean;
15
16
  select: () => void;
16
17
  }): any;
18
+ footer?(_: {
19
+ confirm: typeof confirm;
20
+ }): any;
17
21
  };
18
22
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
23
  type?: "field" | "search";
package/tabbar/index.scss CHANGED
@@ -34,8 +34,8 @@
34
34
  > van-icon {
35
35
  position: relative;
36
36
  font-size: 24px;
37
- width: 100rpx;
38
- height: 54rpx;
37
+ width: 50px;
38
+ height: 26px;
39
39
 
40
40
  &::before {
41
41
  content: "";