@solar-taro/ui-vant 1.1.4 → 1.1.6
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 +14 -0
- package/index10.js +107 -96
- package/index104.js +6 -6
- package/index105.js +6 -6
- package/index111.js +1 -1
- package/index116.js +1 -1
- package/index135.js +1 -1
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index26.js +1 -1
- package/index28.js +1 -1
- package/index40.js +3 -3
- package/index52.js +1 -1
- package/index56.js +11 -7
- package/index57.js +7 -9
- package/index58.js +9 -11
- package/index61.js +1 -1
- package/index63.js +1 -1
- package/index64.js +1 -1
- package/index67.js +1 -1
- package/index68.js +1 -1
- package/index7.js +19 -19
- package/index71.js +6 -6
- package/index79.js +3 -3
- package/index80.js +4 -13
- package/index81.js +4 -5
- package/index82.js +4 -3
- package/index83.js +4 -4
- package/index84.js +4 -4
- package/index85.js +15 -4
- package/index86.js +2 -3
- package/index87.js +13 -4
- package/index88.js +2 -12
- package/index89.js +1 -1
- package/index97.js +1 -1
- package/package.json +1 -1
- package/selector/index.vue.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.1.5 (2025-04-21)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **ui-vant:** fix bug of modal
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 1.1.4 (2025-04-08)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
1
15
|
## 1.1.3 (2025-04-08)
|
|
2
16
|
|
|
3
17
|
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
package/index10.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
2
|
import { useFilterList as ne } from "@solar-taro/core";
|
|
3
3
|
import { SunVirtualScroll as se } from "@solar-taro/ui-sun";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
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 = {
|
|
6
6
|
class: "sun-selector-option-label",
|
|
7
7
|
name: "title"
|
|
8
8
|
}, me = {
|
|
@@ -21,7 +21,7 @@ const K = A, s = _, r = G, u = H, T = J, ae = Q, q = U, d = W, D = X, c = Y, N =
|
|
|
21
21
|
}, be = {
|
|
22
22
|
key: 3,
|
|
23
23
|
class: "van-button-container"
|
|
24
|
-
}, Be = /* @__PURE__ */
|
|
24
|
+
}, Be = /* @__PURE__ */ I({
|
|
25
25
|
__name: "index",
|
|
26
26
|
props: {
|
|
27
27
|
type: { default: "field" },
|
|
@@ -40,192 +40,203 @@ const K = A, s = _, r = G, u = H, T = J, ae = Q, q = U, d = W, D = X, c = Y, N =
|
|
|
40
40
|
searchable: { type: Boolean, default: !0 },
|
|
41
41
|
virtual: { type: [Boolean, Object] },
|
|
42
42
|
refresher: { type: Boolean },
|
|
43
|
-
refreshing: { type: Boolean }
|
|
43
|
+
refreshing: { type: Boolean },
|
|
44
|
+
compareWith: { type: Function, default: (y, g) => y === g }
|
|
44
45
|
},
|
|
45
46
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
48
|
-
() =>
|
|
49
|
-
(e, l) => e[
|
|
50
|
-
),
|
|
47
|
+
setup(y, { expose: g, emit: O }) {
|
|
48
|
+
const t = y, r = O, b = W(!1), k = W(!1), { keyword: T, filteredList: V } = ne(
|
|
49
|
+
() => t.options,
|
|
50
|
+
(e, l) => e[t.labelKey].includes(l.value)
|
|
51
|
+
), $ = h(() => {
|
|
51
52
|
var e;
|
|
52
|
-
if (
|
|
53
|
-
const l =
|
|
54
|
-
|
|
53
|
+
if (p.value) {
|
|
54
|
+
const l = t.options.find(
|
|
55
|
+
(n) => t.modelValue ? t.compareWith(n[t.valueKey], t.modelValue) : !1
|
|
56
|
+
);
|
|
57
|
+
return (l == null ? void 0 : l[t.labelKey]) || "";
|
|
55
58
|
}
|
|
56
|
-
return (e =
|
|
59
|
+
return (e = t.modelValue) == null ? void 0 : e.map(
|
|
57
60
|
(l) => {
|
|
58
61
|
var n;
|
|
59
|
-
return ((n =
|
|
62
|
+
return ((n = t.options.find((o) => t.compareWith(o[t.valueKey], l))) == null ? void 0 : n[t.labelKey]) || "";
|
|
60
63
|
}
|
|
61
|
-
).join(
|
|
62
|
-
}),
|
|
63
|
-
var n,
|
|
64
|
+
).join(t.delimiter);
|
|
65
|
+
}), K = h(() => t.modelValue && !t.required), p = h(() => t.mode === "single"), P = h(() => {
|
|
66
|
+
var n, o;
|
|
64
67
|
let e, l = 48;
|
|
65
|
-
return typeof
|
|
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 };
|
|
66
69
|
});
|
|
67
70
|
function i(e) {
|
|
68
71
|
var n;
|
|
69
|
-
const l = e[
|
|
70
|
-
return
|
|
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;
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
function v() {
|
|
76
|
+
t.disabled || (b.value = !0, k.value || setTimeout(() => {
|
|
77
|
+
k.value = !0;
|
|
75
78
|
}, 300));
|
|
76
79
|
}
|
|
77
80
|
function f() {
|
|
78
|
-
|
|
81
|
+
b.value = !1, r("close");
|
|
79
82
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
function R() {
|
|
84
|
+
var l;
|
|
85
|
+
const e = ((l = t.modelValue) == null ? void 0 : l.map(
|
|
86
|
+
(n) => t.options.find(
|
|
87
|
+
(o) => t.compareWith(o[t.valueKey], n)
|
|
88
|
+
)
|
|
89
|
+
)) || [];
|
|
90
|
+
r("confirm", e), f();
|
|
85
91
|
}
|
|
86
92
|
function m(e) {
|
|
87
|
-
const l = e[
|
|
88
|
-
let n =
|
|
89
|
-
|
|
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(
|
|
96
|
+
(o) => !t.compareWith(o, l)
|
|
97
|
+
)) : (r("select", e), n = (t.modelValue || []).concat(
|
|
98
|
+
e[t.valueKey]
|
|
99
|
+
)), r("update:modelValue", n);
|
|
90
100
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
101
|
+
function B() {
|
|
102
|
+
r("clear", t.modelValue), r("update:modelValue", null);
|
|
93
103
|
}
|
|
94
|
-
return
|
|
95
|
-
present:
|
|
104
|
+
return g({
|
|
105
|
+
present: v,
|
|
106
|
+
clear: B
|
|
96
107
|
}), (e, l) => {
|
|
97
|
-
const n =
|
|
98
|
-
return s(),
|
|
99
|
-
|
|
100
|
-
present:
|
|
101
|
-
label:
|
|
108
|
+
const n = re("readonly");
|
|
109
|
+
return s(), a(z, null, [
|
|
110
|
+
S(e.$slots, "default", {
|
|
111
|
+
present: v,
|
|
112
|
+
label: $.value
|
|
102
113
|
}, () => [
|
|
103
|
-
e.type === "field" ?
|
|
114
|
+
e.type === "field" ? D((s(), a("van-field", q({ key: 0 }, e.$attrs, {
|
|
104
115
|
class: "sun-selector",
|
|
105
116
|
label: e.label,
|
|
106
|
-
value:
|
|
117
|
+
value: $.value,
|
|
107
118
|
placeholder: e.placeholder,
|
|
108
119
|
required: e.required,
|
|
109
120
|
disabled: e.disabled,
|
|
110
|
-
onClickInput: l[1] || (l[1] = (
|
|
121
|
+
onClickInput: l[1] || (l[1] = (o) => v())
|
|
111
122
|
}), [
|
|
112
|
-
|
|
123
|
+
K.value ? (s(), a("van-icon", {
|
|
113
124
|
key: 0,
|
|
114
125
|
slot: "right-icon",
|
|
115
126
|
name: "clear",
|
|
116
|
-
onTap: l[0] || (l[0] = (
|
|
127
|
+
onTap: l[0] || (l[0] = (o) => B())
|
|
117
128
|
}, null, 32)) : u("", !0)
|
|
118
129
|
], 16, ue)), [
|
|
119
130
|
[n]
|
|
120
|
-
]) : e.type === "search" ?
|
|
131
|
+
]) : e.type === "search" ? D((s(), a("van-search", q({ key: 1 }, e.$attrs, {
|
|
121
132
|
class: "sun-selector",
|
|
122
133
|
label: e.label,
|
|
123
|
-
value:
|
|
134
|
+
value: $.value,
|
|
124
135
|
placeholder: e.placeholder,
|
|
125
|
-
"use-right-icon-slot":
|
|
136
|
+
"use-right-icon-slot": K.value,
|
|
126
137
|
shape: "round",
|
|
127
138
|
clearable: !1,
|
|
128
139
|
disabled: e.disabled,
|
|
129
|
-
onClickInput: l[3] || (l[3] = (
|
|
140
|
+
onClickInput: l[3] || (l[3] = (o) => v())
|
|
130
141
|
}), [
|
|
131
|
-
|
|
142
|
+
K.value ? (s(), a("van-icon", {
|
|
132
143
|
key: 0,
|
|
133
144
|
slot: "right-icon",
|
|
134
145
|
name: "clear",
|
|
135
|
-
onTap: l[2] || (l[2] = (
|
|
146
|
+
onTap: l[2] || (l[2] = (o) => B())
|
|
136
147
|
}, null, 32)) : u("", !0)
|
|
137
148
|
], 16, de)), [
|
|
138
149
|
[n]
|
|
139
150
|
]) : u("", !0)
|
|
140
151
|
]),
|
|
141
152
|
c("van-action-sheet", {
|
|
142
|
-
show:
|
|
153
|
+
show: b.value,
|
|
143
154
|
title: e.placeholder,
|
|
144
155
|
"close-on-click-overlay": !0,
|
|
145
|
-
onClose: l[8] || (l[8] = (
|
|
146
|
-
onCancel: l[9] || (l[9] = (
|
|
156
|
+
onClose: l[8] || (l[8] = (o) => f()),
|
|
157
|
+
onCancel: l[9] || (l[9] = (o) => f())
|
|
147
158
|
}, [
|
|
148
|
-
e.searchable ? (s(),
|
|
159
|
+
e.searchable ? (s(), a("van-search", {
|
|
149
160
|
key: 0,
|
|
150
161
|
shape: "round",
|
|
151
162
|
"input-align": "center",
|
|
152
|
-
value: d(
|
|
163
|
+
value: d(T),
|
|
153
164
|
placeholder: "输入关键字搜索",
|
|
154
|
-
onChange: l[4] || (l[4] = (
|
|
155
|
-
}, null, 40,
|
|
156
|
-
e.virtual ? (s(),
|
|
157
|
-
|
|
165
|
+
onChange: l[4] || (l[4] = (o) => T.value = o.detail.trim())
|
|
166
|
+
}, null, 40, pe)) : u("", !0),
|
|
167
|
+
e.virtual ? (s(), a(z, { key: 1 }, [
|
|
168
|
+
k.value ? (s(), L(d(se), {
|
|
158
169
|
key: 0,
|
|
159
170
|
class: "sun-selector-options",
|
|
160
171
|
refresher: e.refresher,
|
|
161
172
|
refreshing: e.refreshing,
|
|
162
|
-
items: d(
|
|
163
|
-
"item-size":
|
|
173
|
+
items: d(V),
|
|
174
|
+
"item-size": P.value.itemSize,
|
|
164
175
|
"item-key": e.valueKey,
|
|
165
|
-
style:
|
|
166
|
-
onRefresh: l[5] || (l[5] = (
|
|
176
|
+
style: w({ height: e.height }),
|
|
177
|
+
onRefresh: l[5] || (l[5] = (o) => r("refresh"))
|
|
167
178
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
|
|
170
|
-
option:
|
|
171
|
-
index:
|
|
172
|
-
active: i(
|
|
173
|
-
select: () => m(
|
|
179
|
+
default: F(({ item: o, index: C }) => [
|
|
180
|
+
S(e.$slots, "option", {
|
|
181
|
+
option: o,
|
|
182
|
+
index: C,
|
|
183
|
+
active: i(o),
|
|
184
|
+
select: () => m(o)
|
|
174
185
|
}, () => [
|
|
175
186
|
c("van-cell", {
|
|
176
|
-
class:
|
|
187
|
+
class: E(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
|
|
177
188
|
clickable: !0,
|
|
178
189
|
size: "large",
|
|
179
|
-
onTap: (
|
|
190
|
+
onTap: (j) => m(o)
|
|
180
191
|
}, [
|
|
181
|
-
c("slot-view", fe,
|
|
182
|
-
i(
|
|
183
|
-
], 42,
|
|
192
|
+
c("slot-view", fe, N(o[e.labelKey]), 1),
|
|
193
|
+
i(o) ? (s(), a("van-icon", me)) : u("", !0)
|
|
194
|
+
], 42, ve)
|
|
184
195
|
])
|
|
185
196
|
]),
|
|
186
197
|
_: 3
|
|
187
|
-
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(),
|
|
198
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (s(), a("view", {
|
|
188
199
|
key: 1,
|
|
189
|
-
style:
|
|
200
|
+
style: w({ height: e.height })
|
|
190
201
|
}, null, 4))
|
|
191
|
-
], 64)) : (s(), L(d(
|
|
202
|
+
], 64)) : (s(), L(d(ae), {
|
|
192
203
|
key: 2,
|
|
193
204
|
class: "sun-selector-options",
|
|
194
205
|
refresher: e.refresher,
|
|
195
206
|
refreshing: e.refreshing,
|
|
196
|
-
data: d(
|
|
207
|
+
data: d(V),
|
|
197
208
|
loading: e.loading,
|
|
198
209
|
"empty-type": "search",
|
|
199
|
-
style:
|
|
200
|
-
onRefresh: l[6] || (l[6] = (
|
|
210
|
+
style: w({ height: e.height }),
|
|
211
|
+
onRefresh: l[6] || (l[6] = (o) => r("refresh"))
|
|
201
212
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
(s(!0),
|
|
204
|
-
key:
|
|
205
|
-
option:
|
|
206
|
-
index:
|
|
207
|
-
active: i(
|
|
208
|
-
select: () => m(
|
|
213
|
+
default: F(() => [
|
|
214
|
+
(s(!0), a(z, null, ie(d(V), (o, C) => S(e.$slots, "option", {
|
|
215
|
+
key: o[e.valueKey],
|
|
216
|
+
option: o,
|
|
217
|
+
index: C,
|
|
218
|
+
active: i(o),
|
|
219
|
+
select: () => m(o)
|
|
209
220
|
}, () => [
|
|
210
221
|
c("van-cell", {
|
|
211
|
-
class:
|
|
222
|
+
class: E(["sun-selector-option", { "sun-selector-option-active": i(o) }]),
|
|
212
223
|
clickable: !0,
|
|
213
224
|
size: "large",
|
|
214
|
-
onTap: (
|
|
225
|
+
onTap: (j) => m(o)
|
|
215
226
|
}, [
|
|
216
|
-
c("slot-view", ye,
|
|
217
|
-
i(
|
|
227
|
+
c("slot-view", ye, N(o[e.labelKey]), 1),
|
|
228
|
+
i(o) ? (s(), a("van-icon", ge)) : u("", !0)
|
|
218
229
|
], 42, he)
|
|
219
230
|
])), 128))
|
|
220
231
|
]),
|
|
221
232
|
_: 3
|
|
222
233
|
}, 8, ["refresher", "refreshing", "data", "loading", "style"])),
|
|
223
|
-
|
|
234
|
+
p.value ? u("", !0) : (s(), a("view", be, [
|
|
224
235
|
c("van-button", {
|
|
225
236
|
type: "primary",
|
|
226
237
|
round: "true",
|
|
227
238
|
block: "true",
|
|
228
|
-
onTap: l[7] || (l[7] = (
|
|
239
|
+
onTap: l[7] || (l[7] = (o) => R())
|
|
229
240
|
}, "确定", 32)
|
|
230
241
|
]))
|
|
231
242
|
], 40, ce)
|
package/index104.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
return
|
|
1
|
+
import { takeUntil as e } from "rxjs";
|
|
2
|
+
import { useDestroyed as o } from "./index27.js";
|
|
3
|
+
function i() {
|
|
4
|
+
const t = o();
|
|
5
|
+
return e(t);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
i as takeUntilDestroyed
|
|
9
9
|
};
|
package/index105.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
return e
|
|
1
|
+
import r from "./index89.js";
|
|
2
|
+
import i from "./index121.js";
|
|
3
|
+
function f(t, a) {
|
|
4
|
+
var e = i(t, a);
|
|
5
|
+
return r(e) ? e : void 0;
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
package/index111.js
CHANGED
package/index116.js
CHANGED
package/index135.js
CHANGED
package/index17.js
CHANGED
package/index18.js
CHANGED
package/index19.js
CHANGED
package/index20.js
CHANGED
package/index21.js
CHANGED
package/index22.js
CHANGED
package/index23.js
CHANGED
package/index26.js
CHANGED
package/index28.js
CHANGED
package/index40.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import t from "./
|
|
2
|
-
import e from "./
|
|
3
|
-
import o from "./
|
|
1
|
+
import t from "./index86.js";
|
|
2
|
+
import e from "./index87.js";
|
|
3
|
+
import o from "./index88.js";
|
|
4
4
|
var i = "[object Null]", f = "[object Undefined]", r = t ? t.toStringTag : void 0;
|
|
5
5
|
function m(n) {
|
|
6
6
|
return n == null ? n === void 0 ? f : i : r && r in Object(n) ? e(n) : o(n);
|
package/index52.js
CHANGED
package/index56.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
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
|
-
|
|
13
|
+
v as default
|
|
10
14
|
};
|
package/index57.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
9
|
+
l as default
|
|
12
10
|
};
|
package/index58.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
+
i as default
|
|
14
12
|
};
|
package/index61.js
CHANGED
package/index63.js
CHANGED
package/index64.js
CHANGED
package/index67.js
CHANGED
package/index68.js
CHANGED
package/index7.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { onKeyboardHeightChange as
|
|
3
|
-
const
|
|
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";
|
|
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 = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "van-button-container van-button-group"
|
|
6
|
-
},
|
|
6
|
+
}, V = ["disabled"], T = /* @__PURE__ */ c({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
9
|
show: { type: Boolean },
|
|
@@ -13,34 +13,34 @@ const l = h, _ = b, C = y, r = v, a = k, D = g, E = ["show", "title", "close-on-
|
|
|
13
13
|
confirmDisabled: { type: Boolean }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:show", "confirm"],
|
|
16
|
-
setup(
|
|
16
|
+
setup(H, { emit: i }) {
|
|
17
17
|
const t = i, n = u(0), d = p(() => n.value === 0);
|
|
18
|
-
function
|
|
18
|
+
function r(e) {
|
|
19
19
|
n.value = e.height;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
}), (e, o) => (
|
|
21
|
+
return B(r), f(() => {
|
|
22
|
+
_(r);
|
|
23
|
+
}), (e, o) => (l(), a("van-action-sheet", E(e.$attrs, {
|
|
24
24
|
show: e.show,
|
|
25
25
|
title: e.title,
|
|
26
26
|
"close-on-click-overlay": d.value,
|
|
27
|
-
onClose: o[1] || (o[1] = (
|
|
28
|
-
}, [
|
|
29
|
-
|
|
30
|
-
e.showButtons ? (
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
onClose: o[1] || (o[1] = (m) => t("update:show", !1))
|
|
28
|
+
}), [
|
|
29
|
+
s(e.$slots, "default"),
|
|
30
|
+
e.showButtons ? (l(), a("view", S, [
|
|
31
|
+
s(e.$slots, "buttons", {}, () => [
|
|
32
|
+
$("van-button", {
|
|
33
33
|
type: "primary",
|
|
34
34
|
round: "true",
|
|
35
35
|
block: "true",
|
|
36
36
|
disabled: e.confirmDisabled,
|
|
37
|
-
onClick: o[0] || (o[0] = (
|
|
38
|
-
},
|
|
37
|
+
onClick: o[0] || (o[0] = (m) => t("confirm"))
|
|
38
|
+
}, C(e.confirmText), 9, V)
|
|
39
39
|
])
|
|
40
40
|
])) : D("", !0)
|
|
41
|
-
],
|
|
41
|
+
], 16, N));
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
T as default
|
|
46
46
|
};
|
package/index71.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import a from "./
|
|
3
|
-
import o from "./
|
|
4
|
-
import i from "./
|
|
5
|
-
import n from "./
|
|
1
|
+
import e from "./index80.js";
|
|
2
|
+
import a from "./index81.js";
|
|
3
|
+
import o from "./index82.js";
|
|
4
|
+
import i from "./index83.js";
|
|
5
|
+
import n from "./index84.js";
|
|
6
6
|
import S from "./index40.js";
|
|
7
|
-
import t from "./
|
|
7
|
+
import t from "./index85.js";
|
|
8
8
|
var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
|
|
9
9
|
(e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
|
|
10
10
|
var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
|
package/index79.js
CHANGED
package/index80.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var a = c.call(t, r), n = t[r];
|
|
5
|
-
try {
|
|
6
|
-
t[r] = void 0;
|
|
7
|
-
var i = !0;
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
var g = f.call(t);
|
|
11
|
-
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
-
}
|
|
1
|
+
import t from "./index105.js";
|
|
2
|
+
import a from "./index38.js";
|
|
3
|
+
var e = t(a, "DataView");
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
e as default
|
|
15
6
|
};
|
package/index81.js
CHANGED
package/index82.js
CHANGED
package/index83.js
CHANGED
package/index84.js
CHANGED
package/index85.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var o = Function.prototype, n = o.toString;
|
|
2
|
+
function e(t) {
|
|
3
|
+
if (t != null) {
|
|
4
|
+
try {
|
|
5
|
+
return n.call(t);
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
return t + "";
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return "";
|
|
14
|
+
}
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
e as default
|
|
6
17
|
};
|
package/index86.js
CHANGED
package/index87.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./index86.js";
|
|
2
|
+
var o = Object.prototype, c = o.hasOwnProperty, f = o.toString, r = e ? e.toStringTag : void 0;
|
|
3
|
+
function p(t) {
|
|
4
|
+
var a = c.call(t, r), n = t[r];
|
|
5
|
+
try {
|
|
6
|
+
t[r] = void 0;
|
|
7
|
+
var i = !0;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
var g = f.call(t);
|
|
11
|
+
return i && (a ? t[r] = n : delete t[r]), g;
|
|
12
|
+
}
|
|
4
13
|
export {
|
|
5
|
-
|
|
14
|
+
p as default
|
|
6
15
|
};
|
package/index88.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
var o =
|
|
1
|
+
var o = Object.prototype, r = o.toString;
|
|
2
2
|
function e(t) {
|
|
3
|
-
|
|
4
|
-
try {
|
|
5
|
-
return n.call(t);
|
|
6
|
-
} catch {
|
|
7
|
-
}
|
|
8
|
-
try {
|
|
9
|
-
return t + "";
|
|
10
|
-
} catch {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return "";
|
|
3
|
+
return r.call(t);
|
|
14
4
|
}
|
|
15
5
|
export {
|
|
16
6
|
e as default
|
package/index89.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index35.js";
|
|
2
2
|
import e from "./index90.js";
|
|
3
3
|
import a from "./index41.js";
|
|
4
|
-
import n from "./
|
|
4
|
+
import n from "./index85.js";
|
|
5
5
|
var p = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, c = Object.prototype, f = s.toString, m = c.hasOwnProperty, u = RegExp(
|
|
6
6
|
"^" + f.call(m).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7
7
|
);
|
package/index97.js
CHANGED
package/package.json
CHANGED
package/selector/index.vue.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ interface SelectorOption {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
}
|
|
4
4
|
declare function present(): void;
|
|
5
|
+
declare function clear(): void;
|
|
5
6
|
declare function __VLS_template(): {
|
|
6
7
|
default?(_: {
|
|
7
8
|
present: typeof present;
|
|
@@ -35,6 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
35
36
|
};
|
|
36
37
|
refresher?: boolean;
|
|
37
38
|
refreshing?: boolean;
|
|
39
|
+
compareWith?: (a: any, b: any) => boolean;
|
|
38
40
|
}>, {
|
|
39
41
|
type: string;
|
|
40
42
|
mode: string;
|
|
@@ -44,8 +46,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
44
46
|
height: string;
|
|
45
47
|
delimiter: string;
|
|
46
48
|
searchable: boolean;
|
|
49
|
+
compareWith: (a: any, b: any) => boolean;
|
|
47
50
|
}>>, {
|
|
48
51
|
present: typeof present;
|
|
52
|
+
clear: typeof clear;
|
|
49
53
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
54
|
confirm: (args_0: SelectorOption[]) => void;
|
|
51
55
|
close: () => void;
|
|
@@ -75,6 +79,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
75
79
|
};
|
|
76
80
|
refresher?: boolean;
|
|
77
81
|
refreshing?: boolean;
|
|
82
|
+
compareWith?: (a: any, b: any) => boolean;
|
|
78
83
|
}>, {
|
|
79
84
|
type: string;
|
|
80
85
|
mode: string;
|
|
@@ -84,6 +89,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
84
89
|
height: string;
|
|
85
90
|
delimiter: string;
|
|
86
91
|
searchable: boolean;
|
|
92
|
+
compareWith: (a: any, b: any) => boolean;
|
|
87
93
|
}>>> & Readonly<{
|
|
88
94
|
onConfirm?: ((args_0: SelectorOption[]) => any) | undefined;
|
|
89
95
|
onClose?: (() => any) | undefined;
|
|
@@ -101,6 +107,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
101
107
|
placeholder: string;
|
|
102
108
|
height: string;
|
|
103
109
|
delimiter: string;
|
|
110
|
+
compareWith: (a: any, b: any) => boolean;
|
|
104
111
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
105
112
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
106
113
|
export default _default;
|