@solar-taro/ui-vant 1.1.12 → 1.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,11 @@
1
+ ## 1.1.13 (2025-07-21)
2
+
3
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
4
+
5
+ ## 1.1.12 (2025-07-21)
6
+
7
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
8
+
1
9
  ## 1.1.11 (2025-07-18)
2
10
 
3
11
  ### 🚀 Features
@@ -0,0 +1 @@
1
+ export { default as SunCascader } from './index.vue';
@@ -0,0 +1,28 @@
1
+ .sun-cascader {
2
+ &-list {
3
+ overflow-y: auto;
4
+ }
5
+
6
+ &-cascader-tabs {
7
+ --tab-font-size: 16px;
8
+
9
+ .van-tabs__wrap {
10
+ padding-inline: 2px;
11
+ }
12
+
13
+ .van-tab {
14
+ padding-inline: 12px;
15
+ flex: none;
16
+ }
17
+
18
+ .van-tabs__content {
19
+ padding-top: 8px;
20
+ }
21
+ }
22
+
23
+ &-cascader-option {
24
+ &-active {
25
+ --background: rgba(var(--color-primary-rgb), 0.1);
26
+ }
27
+ }
28
+ }
package/index.scss CHANGED
@@ -153,6 +153,7 @@ van-button {
153
153
  .van-button-container {
154
154
  padding: 12px;
155
155
  bottom: var(--safe-bottom);
156
+ bottom: max(var(--safe-bottom) - 12px, 0px);
156
157
  }
157
158
 
158
159
  van-sidebar {
package/index10.js CHANGED
@@ -1,27 +1,27 @@
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
- import ae from "./index6.js";
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 = {
1
+ import { defineComponent as I, ref as q, computed as h, renderSlot as M, openBlock as _, createElementBlock as A, 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, createVNode as ae } from "vue";
2
+ import { useFilterList as ne } from "@solar-taro/core";
3
+ import { SunLazyRender as se, SunVirtualScroll as re } from "@solar-taro/ui-sun";
4
+ import ie from "./index6.js";
5
+ const y = M, n = _, s = A, u = G, D = H, ue = J, L = Q, d = U, E = X, c = Y, F = Z, C = x, w = ee, O = le, T = te, de = oe, ce = ae, pe = ["label", "value", "placeholder", "required", "disabled"], ve = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], fe = ["show", "title"], me = ["value"], he = ["onTap"], ye = {
6
6
  class: "sun-selector-option-label",
7
7
  name: "title"
8
- }, me = {
8
+ }, ge = {
9
9
  key: 0,
10
10
  class: "sun-selector-option-icon",
11
11
  slot: "right-icon",
12
12
  name: "success"
13
- }, he = ["onTap"], ye = {
13
+ }, be = ["onTap"], ke = {
14
14
  class: "sun-selector-option-label",
15
15
  name: "title"
16
- }, ge = {
16
+ }, Ve = {
17
17
  key: 0,
18
18
  class: "sun-selector-option-icon",
19
19
  slot: "right-icon",
20
20
  name: "success"
21
- }, be = {
21
+ }, $e = {
22
22
  key: 0,
23
23
  class: "van-button-container"
24
- }, Be = /* @__PURE__ */ I({
24
+ }, Ce = /* @__PURE__ */ I({
25
25
  __name: "index",
26
26
  props: {
27
27
  type: { default: "field" },
@@ -44,33 +44,33 @@ const y = M, n = A, a = G, u = H, D = J, re = Q, N = U, d = X, E = Y, c = Z, F =
44
44
  compareWith: { type: Function, default: (g, b) => g === b }
45
45
  },
46
46
  emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
47
- setup(g, { expose: b, emit: P }) {
48
- const t = g, r = P, k = q(!1), V = q(!1), { keyword: T, filteredList: $ } = se(
47
+ setup(g, { expose: b, emit: R }) {
48
+ const t = g, r = R, k = q(!1), V = q(!1), { keyword: N, filteredList: $ } = ne(
49
49
  () => t.options,
50
50
  (e, l) => e[t.labelKey].includes(l.value)
51
51
  ), K = h(() => {
52
52
  var e;
53
53
  if (p.value) {
54
54
  const l = t.options.find(
55
- (s) => t.modelValue ? t.compareWith(s[t.valueKey], t.modelValue) : !1
55
+ (a) => t.modelValue ? t.compareWith(a[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 s;
62
- return ((s = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : s[t.labelKey]) || "";
61
+ var a;
62
+ return ((a = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : a[t.labelKey]) || "";
63
63
  }
64
64
  ).join(t.delimiter);
65
- }), B = h(() => t.modelValue && !t.required), p = h(() => t.mode === "single"), R = h(() => {
66
- var s, o;
65
+ }), S = h(() => t.modelValue && !t.required), p = h(() => t.mode === "single"), P = h(() => {
66
+ var a, o;
67
67
  let e, l = 48;
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 };
68
+ return typeof t.virtual != "boolean" && (a = t.virtual) != null && a.itemSize && (l = (o = t.virtual) == null ? void 0 : o.itemSize), { id: e, itemSize: l };
69
69
  });
70
70
  function i(e) {
71
- var s;
71
+ var a;
72
72
  const l = e[t.valueKey];
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;
73
+ return p.value ? t.modelValue ? t.compareWith(t.modelValue, l) : !1 : ((a = t.modelValue) == null ? void 0 : a.some((o) => t.compareWith(o, l))) || !1;
74
74
  }
75
75
  function v() {
76
76
  t.disabled || (k.value = !0, V.value || setTimeout(() => {
@@ -83,35 +83,35 @@ const y = M, n = A, a = G, u = H, D = J, re = Q, N = U, d = X, E = Y, c = Z, F =
83
83
  function W() {
84
84
  var l;
85
85
  const e = ((l = t.modelValue) == null ? void 0 : l.map(
86
- (s) => t.options.find(
87
- (o) => t.compareWith(o[t.valueKey], s)
86
+ (a) => t.options.find(
87
+ (o) => t.compareWith(o[t.valueKey], a)
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 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(
94
+ let a = t.modelValue;
95
+ p.value ? (i(e) ? t.required || (r("unselect", e), a = null) : (r("select", e), a = l), f()) : i(e) ? (r("unselect", e), a = t.modelValue.filter(
96
96
  (o) => !t.compareWith(o, l)
97
- )) : (r("select", e), s = (t.modelValue || []).concat(
97
+ )) : (r("select", e), a = (t.modelValue || []).concat(
98
98
  e[t.valueKey]
99
- )), r("update:modelValue", s);
99
+ )), r("update:modelValue", a);
100
100
  }
101
- function C() {
101
+ function z() {
102
102
  r("clear", t.modelValue), r("update:modelValue", null);
103
103
  }
104
104
  return b({
105
105
  present: v,
106
- clear: C
106
+ clear: z
107
107
  }), (e, l) => {
108
- const s = re("readonly");
109
- return n(), a(z, null, [
108
+ const a = ue("readonly");
109
+ return n(), s(T, null, [
110
110
  y(e.$slots, "default", {
111
111
  present: v,
112
112
  label: K.value
113
113
  }, () => [
114
- e.type === "field" ? N((n(), a("van-field", D({ key: 0 }, e.$attrs, {
114
+ e.type === "field" ? L((n(), s("van-field", D({ key: 0 }, e.$attrs, {
115
115
  class: "sun-selector",
116
116
  label: e.label,
117
117
  value: K.value,
@@ -120,132 +120,137 @@ const y = M, n = A, a = G, u = H, D = J, re = Q, N = U, d = X, E = Y, c = Z, F =
120
120
  disabled: e.disabled,
121
121
  onClickInput: l[1] || (l[1] = (o) => v())
122
122
  }), [
123
- B.value ? (n(), a("van-icon", {
123
+ S.value ? (n(), s("van-icon", {
124
124
  key: 0,
125
125
  slot: "right-icon",
126
126
  name: "clear",
127
- onTap: l[0] || (l[0] = (o) => C())
127
+ onTap: l[0] || (l[0] = (o) => z())
128
128
  }, null, 32)) : u("", !0)
129
- ], 16, ue)), [
130
- [s]
131
- ]) : e.type === "search" ? N((n(), a("van-search", D({ key: 1 }, e.$attrs, {
129
+ ], 16, pe)), [
130
+ [a]
131
+ ]) : e.type === "search" ? L((n(), s("van-search", D({ key: 1 }, e.$attrs, {
132
132
  class: "sun-selector",
133
133
  label: e.label,
134
134
  value: K.value,
135
135
  placeholder: e.placeholder,
136
- "use-right-icon-slot": B.value,
136
+ "use-right-icon-slot": S.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
- B.value ? (n(), a("van-icon", {
142
+ S.value ? (n(), s("van-icon", {
143
143
  key: 0,
144
144
  slot: "right-icon",
145
145
  name: "clear",
146
- onTap: l[2] || (l[2] = (o) => C())
146
+ onTap: l[2] || (l[2] = (o) => z())
147
147
  }, null, 32)) : u("", !0)
148
- ], 16, de)), [
149
- [s]
148
+ ], 16, ve)), [
149
+ [a]
150
150
  ]) : u("", !0)
151
151
  ]),
152
- c("van-action-sheet", {
153
- show: k.value,
154
- title: e.placeholder,
155
- "close-on-click-overlay": !0,
156
- onClose: l[8] || (l[8] = (o) => f()),
157
- onCancel: l[9] || (l[9] = (o) => f())
158
- }, [
159
- e.searchable ? (n(), a("van-search", {
160
- key: 0,
161
- shape: "round",
162
- "input-align": "center",
163
- value: d(T),
164
- placeholder: "输入关键字搜索",
165
- onChange: l[4] || (l[4] = (o) => T.value = o.detail.trim())
166
- }, null, 40, pe)) : u("", !0),
167
- e.virtual ? (n(), a(z, { key: 1 }, [
168
- V.value ? (n(), O(d(ne), {
169
- key: 0,
170
- class: "sun-selector-options",
171
- refresher: e.refresher,
172
- refreshing: e.refreshing,
173
- items: d($),
174
- "item-size": R.value.itemSize,
175
- "item-key": e.valueKey,
176
- style: w({ height: e.height }),
177
- onRefresh: l[5] || (l[5] = (o) => r("refresh"))
178
- }, {
179
- default: L(({ item: o, index: S }) => [
180
- y(e.$slots, "option", {
181
- option: o,
182
- index: S,
183
- active: i(o),
184
- select: () => m(o)
185
- }, () => [
186
- c("van-cell", {
187
- class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
188
- clickable: !0,
189
- size: "large",
190
- onTap: (j) => m(o)
191
- }, [
192
- c("slot-view", fe, E(o[e.labelKey]), 1),
193
- i(o) ? (n(), a("van-icon", me)) : u("", !0)
194
- ], 42, ve)
195
- ])
196
- ]),
197
- _: 3
198
- }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), a("view", {
199
- key: 1,
200
- style: w({ height: e.height })
201
- }, null, 4))
202
- ], 64)) : (n(), O(d(ae), {
203
- key: 2,
204
- class: "sun-selector-options",
205
- refresher: e.refresher,
206
- refreshing: e.refreshing,
207
- data: d($),
208
- loading: e.loading,
209
- "empty-type": "search",
210
- style: w({ height: e.height }),
211
- onRefresh: l[6] || (l[6] = (o) => r("refresh"))
212
- }, {
213
- default: L(() => [
214
- (n(!0), a(z, null, ie(d($), (o, S) => y(e.$slots, "option", {
215
- key: o[e.valueKey],
216
- option: o,
217
- index: S,
218
- active: i(o),
219
- select: () => m(o)
220
- }, () => [
221
- c("van-cell", {
222
- class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
223
- clickable: !0,
224
- size: "large",
225
- onTap: (j) => m(o)
226
- }, [
227
- c("slot-view", ye, E(o[e.labelKey]), 1),
228
- i(o) ? (n(), a("van-icon", ge)) : u("", !0)
229
- ], 42, he)
230
- ])), 128))
231
- ]),
232
- _: 3
233
- }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
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
- ])
244
- ], 40, ce)
152
+ ce(d(se), { hook: "created" }, {
153
+ default: w(() => [
154
+ c("van-action-sheet", {
155
+ show: k.value,
156
+ title: e.placeholder,
157
+ "close-on-click-overlay": !0,
158
+ onClose: l[8] || (l[8] = (o) => f()),
159
+ onCancel: l[9] || (l[9] = (o) => f())
160
+ }, [
161
+ e.searchable ? (n(), s("van-search", {
162
+ key: 0,
163
+ shape: "round",
164
+ "input-align": "center",
165
+ value: d(N),
166
+ placeholder: "输入关键字搜索",
167
+ onChange: l[4] || (l[4] = (o) => N.value = o.detail.trim())
168
+ }, null, 40, me)) : u("", !0),
169
+ e.virtual ? (n(), s(T, { key: 1 }, [
170
+ V.value ? (n(), O(d(re), {
171
+ key: 0,
172
+ class: "sun-selector-options",
173
+ refresher: e.refresher,
174
+ refreshing: e.refreshing,
175
+ items: d($),
176
+ "item-size": P.value.itemSize,
177
+ "item-key": e.valueKey,
178
+ style: C({ height: e.height }),
179
+ onRefresh: l[5] || (l[5] = (o) => r("refresh"))
180
+ }, {
181
+ default: w(({ item: o, index: B }) => [
182
+ y(e.$slots, "option", {
183
+ option: o,
184
+ index: B,
185
+ active: i(o),
186
+ select: () => m(o)
187
+ }, () => [
188
+ c("van-cell", {
189
+ class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
190
+ clickable: !0,
191
+ size: "large",
192
+ onTap: (j) => m(o)
193
+ }, [
194
+ c("slot-view", ye, E(o[e.labelKey]), 1),
195
+ i(o) ? (n(), s("van-icon", ge)) : u("", !0)
196
+ ], 42, he)
197
+ ])
198
+ ]),
199
+ _: 3
200
+ }, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (n(), s("view", {
201
+ key: 1,
202
+ style: C({ height: e.height })
203
+ }, null, 4))
204
+ ], 64)) : (n(), O(d(ie), {
205
+ key: 2,
206
+ class: "sun-selector-options",
207
+ refresher: e.refresher,
208
+ refreshing: e.refreshing,
209
+ data: d($),
210
+ loading: e.loading,
211
+ "empty-type": "search",
212
+ style: C({ height: e.height }),
213
+ onRefresh: l[6] || (l[6] = (o) => r("refresh"))
214
+ }, {
215
+ default: w(() => [
216
+ (n(!0), s(T, null, de(d($), (o, B) => y(e.$slots, "option", {
217
+ key: o[e.valueKey],
218
+ option: o,
219
+ index: B,
220
+ active: i(o),
221
+ select: () => m(o)
222
+ }, () => [
223
+ c("van-cell", {
224
+ class: F(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
225
+ clickable: !0,
226
+ size: "large",
227
+ onTap: (j) => m(o)
228
+ }, [
229
+ c("slot-view", ke, E(o[e.labelKey]), 1),
230
+ i(o) ? (n(), s("van-icon", Ve)) : u("", !0)
231
+ ], 42, be)
232
+ ])), 128))
233
+ ]),
234
+ _: 3
235
+ }, 8, ["refresher", "refreshing", "data", "loading", "style"])),
236
+ y(e.$slots, "footer", { confirm: W }, () => [
237
+ p.value ? u("", !0) : (n(), s("view", $e, [
238
+ c("van-button", {
239
+ type: "primary",
240
+ round: "true",
241
+ block: "true",
242
+ onTap: l[7] || (l[7] = (o) => W())
243
+ }, "确定", 32)
244
+ ]))
245
+ ])
246
+ ], 40, fe)
247
+ ]),
248
+ _: 3
249
+ })
245
250
  ], 64);
246
251
  };
247
252
  }
248
253
  });
249
254
  export {
250
- Be as default
255
+ Ce as default
251
256
  };
package/index119.js CHANGED
@@ -1,8 +1,8 @@
1
- import p from "./index129.js";
2
- import a from "./index130.js";
3
- import l from "./index131.js";
4
- import s from "./index132.js";
5
- import m from "./index133.js";
1
+ import p from "./index128.js";
2
+ import a from "./index129.js";
3
+ import l from "./index130.js";
4
+ import s from "./index131.js";
5
+ import m from "./index132.js";
6
6
  function t(o) {
7
7
  var e = -1, h = o == null ? 0 : o.length;
8
8
  for (this.clear(); ++e < h; ) {
package/index120.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index128.js";
1
+ import e from "./index133.js";
2
2
  function n(r, a) {
3
3
  var t = r.__data__;
4
4
  return e(a) ? t[typeof a == "string" ? "string" : "hash"] : t.map;
package/index128.js CHANGED
@@ -1,6 +1,6 @@
1
- function e(t) {
2
- var o = typeof t;
3
- return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? t !== "__proto__" : t === null;
1
+ import t from "./index135.js";
2
+ function e() {
3
+ this.__data__ = t ? t(null) : {}, this.size = 0;
4
4
  }
5
5
  export {
6
6
  e as default
package/index129.js CHANGED
@@ -1,7 +1,7 @@
1
- import t from "./index135.js";
2
- function e() {
3
- this.__data__ = t ? t(null) : {}, this.size = 0;
1
+ function s(t) {
2
+ var e = this.has(t) && delete this.__data__[t];
3
+ return this.size -= e ? 1 : 0, e;
4
4
  }
5
5
  export {
6
- e as default
6
+ s as default
7
7
  };
package/index130.js CHANGED
@@ -1,7 +1,13 @@
1
- function s(t) {
2
- var e = this.has(t) && delete this.__data__[t];
3
- return this.size -= e ? 1 : 0, e;
1
+ import e from "./index135.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
- s as default
12
+ h as default
7
13
  };
package/index131.js CHANGED
@@ -1,13 +1,9 @@
1
- import e from "./index135.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 r from "./index135.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);
10
6
  }
11
7
  export {
12
- h as default
8
+ p as default
13
9
  };
package/index132.js CHANGED
@@ -1,9 +1,9 @@
1
- import r from "./index135.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
+ import e from "./index135.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;
6
6
  }
7
7
  export {
8
- p as default
8
+ s as default
9
9
  };
package/index133.js CHANGED
@@ -1,9 +1,7 @@
1
- import e from "./index135.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
+ 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
- s as default
6
+ e as default
9
7
  };
package/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index20.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index10.js";
1
+ import f from "./index9.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index26.js CHANGED
@@ -1,11 +1,12 @@
1
+ import "rxjs";
1
2
  import { ref as i } from "vue";
2
- import { takeUntilDestroyed as s } from "./index104.js";
3
- function a(e, o) {
4
- const t = i(o);
5
- return (typeof e == "function" ? e() : e).pipe(s()).subscribe((r) => {
6
- t.value = r;
7
- }), t;
3
+ import { takeUntilDestroyed as p } from "./index104.js";
4
+ function c(t, o) {
5
+ const e = i(o);
6
+ return (typeof t == "function" ? t() : t).pipe(p()).subscribe((r) => {
7
+ e.value = r;
8
+ }), e;
8
9
  }
9
10
  export {
10
- a as useObservable
11
+ c as useObservable
11
12
  };
package/index28.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import S from "./index62.js";
2
2
  import L from "./index60.js";
3
- import B from "./index56.js";
3
+ import B from "./index57.js";
4
4
  import I from "./index63.js";
5
5
  import O from "./index64.js";
6
6
  import _ from "./index65.js";
package/index56.js CHANGED
@@ -1,10 +1,14 @@
1
- import t from "./index57.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 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;
7
11
  }
8
12
  export {
9
- l as default
13
+ v as default
10
14
  };
package/index57.js CHANGED
@@ -1,12 +1,10 @@
1
- import u from "./index61.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 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);
9
7
  }
10
8
  export {
11
- i as default
9
+ l as default
12
10
  };
package/index58.js CHANGED
@@ -1,14 +1,12 @@
1
- import m from "./index56.js";
2
- import t from "./index57.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 u from "./index61.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;
11
9
  }
12
10
  export {
13
- v as default
11
+ i as default
14
12
  };
package/index63.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index58.js";
1
+ import o from "./index56.js";
2
2
  import e from "./index50.js";
3
3
  function m(r, t) {
4
4
  return r && o(t, e(t), r);
package/index64.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index58.js";
1
+ import t from "./index56.js";
2
2
  import o from "./index53.js";
3
3
  function i(n, r) {
4
4
  return n && t(r, o(r), n);
package/index67.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index58.js";
1
+ import m from "./index56.js";
2
2
  import r from "./index112.js";
3
3
  function f(o, t) {
4
4
  return m(o, r(o), t);
package/index68.js CHANGED
@@ -1,4 +1,4 @@
1
- import m from "./index58.js";
1
+ import m from "./index56.js";
2
2
  import r from "./index103.js";
3
3
  function e(o, t) {
4
4
  return m(o, r(o), t);
package/index7.js CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent as c, ref as u, computed as p, onUnmounted as f, renderSlot as h, toDisplayString as b, createElementVNode as y, openBlock as v, createElementBlock as g, createCommentVNode as k, mergeProps as w } from "vue";
1
+ import { defineComponent as m, ref as u, computed as p, onUnmounted as f, renderSlot as h, toDisplayString as b, createElementVNode as y, openBlock as v, createElementBlock as g, createCommentVNode as k, mergeProps as w } from "vue";
2
2
  import { onKeyboardHeightChange as B, offKeyboardHeightChange as _ } from "@tarojs/taro";
3
- const s = h, C = b, $ = y, l = v, a = g, D = k, E = w, N = ["show", "title", "close-on-click-overlay"], S = {
3
+ const r = h, C = b, $ = y, l = v, a = g, D = k, E = w, N = ["show", "title", "close-on-click-overlay"], S = {
4
4
  key: 0,
5
5
  class: "van-button-container van-button-group"
6
- }, V = ["disabled"], T = /* @__PURE__ */ c({
6
+ }, V = ["disabled"], T = /* @__PURE__ */ m({
7
7
  __name: "index",
8
8
  props: {
9
9
  show: { type: Boolean },
@@ -12,29 +12,31 @@ const s = h, C = b, $ = y, l = v, a = g, D = k, E = w, N = ["show", "title", "cl
12
12
  confirmText: { default: "确认" },
13
13
  confirmDisabled: { type: Boolean }
14
14
  },
15
- emits: ["update:show", "confirm"],
15
+ emits: ["update:show", "close", "confirm"],
16
16
  setup(H, { emit: i }) {
17
- const t = i, n = u(0), d = p(() => n.value === 0);
18
- function r(e) {
17
+ const t = i, n = u(0), c = p(() => n.value === 0);
18
+ function s(e) {
19
19
  n.value = e.height;
20
20
  }
21
- return B(r), f(() => {
22
- _(r);
21
+ return B(s), f(() => {
22
+ _(s);
23
23
  }), (e, o) => (l(), a("van-action-sheet", E(e.$attrs, {
24
24
  show: e.show,
25
25
  title: e.title,
26
- "close-on-click-overlay": d.value,
27
- onClose: o[1] || (o[1] = (m) => t("update:show", !1))
26
+ "close-on-click-overlay": c.value,
27
+ onClose: o[1] || (o[1] = (d) => {
28
+ t("update:show", !1), t("close");
29
+ })
28
30
  }), [
29
- s(e.$slots, "default"),
31
+ r(e.$slots, "default"),
30
32
  e.showButtons ? (l(), a("view", S, [
31
- s(e.$slots, "buttons", {}, () => [
33
+ r(e.$slots, "buttons", {}, () => [
32
34
  $("van-button", {
33
35
  type: "primary",
34
36
  round: "true",
35
37
  block: "true",
36
38
  disabled: e.confirmDisabled,
37
- onClick: o[0] || (o[0] = (m) => t("confirm"))
39
+ onClick: o[0] || (o[0] = (d) => t("confirm"))
38
40
  }, C(e.confirmText), 9, V)
39
41
  ])
40
42
  ])) : D("", !0)
@@ -13,6 +13,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
13
13
  showButtons: boolean;
14
14
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  confirm: () => void;
16
+ close: () => void;
16
17
  "update:show": (args_0: boolean) => void;
17
18
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
19
  show: boolean;
@@ -25,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
25
26
  showButtons: boolean;
26
27
  }>>> & Readonly<{
27
28
  onConfirm?: (() => any) | undefined;
29
+ onClose?: (() => any) | undefined;
28
30
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
29
31
  }>, {
30
32
  showButtons: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "1.1.12",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",