@solar-taro/ui-vant 1.1.13 → 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 +4 -0
- package/cascader/index.d.ts +1 -0
- package/cascader/index.scss +28 -0
- package/index.scss +1 -0
- package/index10.js +140 -135
- package/index111.js +1 -1
- package/index116.js +1 -1
- package/index16.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 +8 -7
- package/index40.js +3 -3
- package/index52.js +1 -1
- package/index7.js +15 -13
- package/index71.js +6 -6
- package/index79.js +3 -3
- package/index80.js +13 -4
- package/index81.js +5 -4
- package/index82.js +3 -4
- package/index83.js +3 -3
- package/index84.js +4 -4
- package/index85.js +4 -15
- package/index86.js +3 -2
- package/index87.js +4 -13
- package/index88.js +12 -2
- package/index89.js +1 -1
- package/index97.js +1 -1
- package/modal/index.vue.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
package/index10.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as I, ref as q, computed as h, renderSlot as M, openBlock as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunVirtualScroll as
|
|
4
|
-
import
|
|
5
|
-
const y = M, n =
|
|
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
|
-
},
|
|
8
|
+
}, ge = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "sun-selector-option-icon",
|
|
11
11
|
slot: "right-icon",
|
|
12
12
|
name: "success"
|
|
13
|
-
},
|
|
13
|
+
}, be = ["onTap"], ke = {
|
|
14
14
|
class: "sun-selector-option-label",
|
|
15
15
|
name: "title"
|
|
16
|
-
},
|
|
16
|
+
}, Ve = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "sun-selector-option-icon",
|
|
19
19
|
slot: "right-icon",
|
|
20
20
|
name: "success"
|
|
21
|
-
},
|
|
21
|
+
}, $e = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "van-button-container"
|
|
24
|
-
},
|
|
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:
|
|
48
|
-
const t = g, r =
|
|
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
|
-
(
|
|
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
|
|
62
|
-
return ((
|
|
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
|
-
}),
|
|
66
|
-
var
|
|
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" && (
|
|
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
|
|
71
|
+
var a;
|
|
72
72
|
const l = e[t.valueKey];
|
|
73
|
-
return p.value ? t.modelValue ? t.compareWith(t.modelValue, 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
|
-
(
|
|
87
|
-
(o) => t.compareWith(o[t.valueKey],
|
|
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
|
|
95
|
-
p.value ? (i(e) ? t.required || (r("unselect", e),
|
|
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),
|
|
97
|
+
)) : (r("select", e), a = (t.modelValue || []).concat(
|
|
98
98
|
e[t.valueKey]
|
|
99
|
-
)), r("update:modelValue",
|
|
99
|
+
)), r("update:modelValue", a);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
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:
|
|
106
|
+
clear: z
|
|
107
107
|
}), (e, l) => {
|
|
108
|
-
const
|
|
109
|
-
return n(),
|
|
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" ?
|
|
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
|
-
|
|
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) =>
|
|
127
|
+
onTap: l[0] || (l[0] = (o) => z())
|
|
128
128
|
}, null, 32)) : u("", !0)
|
|
129
|
-
], 16,
|
|
130
|
-
[
|
|
131
|
-
]) : e.type === "search" ?
|
|
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":
|
|
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
|
-
|
|
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) =>
|
|
146
|
+
onTap: l[2] || (l[2] = (o) => z())
|
|
147
147
|
}, null, 32)) : u("", !0)
|
|
148
|
-
], 16,
|
|
149
|
-
[
|
|
148
|
+
], 16, ve)), [
|
|
149
|
+
[a]
|
|
150
150
|
]) : u("", !0)
|
|
151
151
|
]),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
key:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
255
|
+
Ce as default
|
|
251
256
|
};
|
package/index111.js
CHANGED
package/index116.js
CHANGED
package/index16.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
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import "rxjs";
|
|
1
2
|
import { ref as i } from "vue";
|
|
2
|
-
import { takeUntilDestroyed as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
return (typeof
|
|
6
|
-
|
|
7
|
-
}),
|
|
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
|
-
|
|
11
|
+
c as useObservable
|
|
11
12
|
};
|
package/index40.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import t from "./
|
|
2
|
-
import e from "./
|
|
3
|
-
import o from "./
|
|
1
|
+
import t from "./index79.js";
|
|
2
|
+
import e from "./index80.js";
|
|
3
|
+
import o from "./index81.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/index7.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
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__ */
|
|
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),
|
|
18
|
-
function
|
|
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(
|
|
22
|
-
_(
|
|
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":
|
|
27
|
-
onClose: o[1] || (o[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
|
-
|
|
31
|
+
r(e.$slots, "default"),
|
|
30
32
|
e.showButtons ? (l(), a("view", S, [
|
|
31
|
-
|
|
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] = (
|
|
39
|
+
onClick: o[0] || (o[0] = (d) => t("confirm"))
|
|
38
40
|
}, C(e.confirmText), 9, V)
|
|
39
41
|
])
|
|
40
42
|
])) : D("", !0)
|
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 "./index83.js";
|
|
2
|
+
import a from "./index84.js";
|
|
3
|
+
import o from "./index85.js";
|
|
4
|
+
import i from "./index86.js";
|
|
5
|
+
import n from "./index87.js";
|
|
6
6
|
import S from "./index40.js";
|
|
7
|
-
import t from "./
|
|
7
|
+
import t from "./index88.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,6 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./index79.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/index81.js
CHANGED
package/index82.js
CHANGED
package/index83.js
CHANGED
package/index84.js
CHANGED
package/index85.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
try {
|
|
5
|
-
return n.call(t);
|
|
6
|
-
} catch {
|
|
7
|
-
}
|
|
8
|
-
try {
|
|
9
|
-
return t + "";
|
|
10
|
-
} catch {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
1
|
+
import o from "./index105.js";
|
|
2
|
+
import r from "./index38.js";
|
|
3
|
+
var m = o(r, "Promise");
|
|
15
4
|
export {
|
|
16
|
-
|
|
5
|
+
m as default
|
|
17
6
|
};
|
package/index86.js
CHANGED
package/index87.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 a from "./index105.js";
|
|
2
|
+
import o from "./index38.js";
|
|
3
|
+
var e = a(o, "WeakMap");
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
e as default
|
|
15
6
|
};
|
package/index88.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
var o =
|
|
1
|
+
var o = Function.prototype, n = o.toString;
|
|
2
2
|
function e(t) {
|
|
3
|
-
|
|
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 "";
|
|
4
14
|
}
|
|
5
15
|
export {
|
|
6
16
|
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 "./index88.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/modal/index.vue.d.ts
CHANGED
|
@@ -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;
|