@solar-taro/ui-vant 2.4.0 → 2.5.1
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/cascader/index.scss +6 -0
- package/directives/binding.d.ts +10 -0
- package/directives/index.d.ts +1 -0
- package/index.js +18 -16
- package/index10.js +213 -196
- package/index100.js +7 -10
- package/index101.js +9 -6
- package/index102.js +6 -17
- package/index103.js +17 -4
- package/index104.js +4 -4
- package/index105.js +4 -3
- package/index106.js +3 -3
- package/index107.js +3 -14
- package/index108.js +14 -7
- package/index109.js +8 -6
- package/index110.js +5 -5
- package/index111.js +5 -5
- package/index112.js +5 -5
- package/index113.js +5 -5
- package/index114.js +6 -3
- package/index115.js +3 -18
- package/index116.js +17 -5
- package/index117.js +5 -3
- package/index118.js +3 -3
- package/index119.js +3 -9
- package/index12.js +3 -28
- package/index120.js +9 -5
- package/index121.js +5 -4
- package/index122.js +4 -5
- package/index123.js +6 -3
- package/index124.js +3 -5
- package/index125.js +3 -3
- package/index126.js +4 -4
- package/index127.js +4 -10
- package/index128.js +10 -6
- package/index129.js +6 -6
- package/index13.js +28 -4
- package/index130.js +6 -7
- package/index131.js +8 -3
- package/index132.js +5 -0
- package/index14.js +5 -64
- package/index15.js +64 -2
- package/index16.js +1 -1
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +1 -1
- package/index2.js +1 -1
- package/index20.js +1 -1
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +2 -6
- package/index24.js +5 -3
- package/index25.js +3 -62
- package/index26.js +62 -3
- package/index27.js +4 -8
- package/index28.js +7 -6
- package/index29.js +6 -3
- package/index3.js +1 -0
- package/index30.js +4 -2
- package/index31.js +2 -6
- package/index32.js +5 -9
- package/index33.js +9 -4
- package/index34.js +5 -4
- package/index35.js +4 -3
- package/index36.js +3 -4
- package/index37.js +3 -7
- package/index38.js +7 -4
- package/index39.js +5 -5
- package/index4.js +1 -1
- package/index40.js +5 -7
- package/index41.js +6 -5
- package/index42.js +6 -9
- package/index43.js +9 -5
- package/index44.js +5 -7
- package/index45.js +6 -4
- package/index46.js +5 -10
- package/index47.js +9 -6
- package/index48.js +6 -17
- package/index49.js +17 -11
- package/index5.js +1 -1
- package/index50.js +11 -6
- package/index51.js +6 -12
- package/index52.js +12 -3
- package/index53.js +3 -11
- package/index54.js +11 -7
- package/index55.js +7 -9
- package/index56.js +9 -5
- package/index57.js +5 -5
- package/index58.js +6 -9
- package/index59.js +8 -15
- package/index60.js +15 -5
- package/index61.js +5 -5
- package/index62.js +5 -8
- package/index63.js +8 -6
- package/index64.js +6 -5
- package/index65.js +4 -4
- package/index66.js +5 -6
- package/index67.js +5 -5
- package/index68.js +7 -26
- package/index69.js +26 -6
- package/index7.js +25 -19
- package/index70.js +5 -39
- package/index71.js +39 -6
- package/index72.js +6 -5
- package/index73.js +6 -15
- package/index74.js +14 -7
- package/index75.js +8 -2
- package/index76.js +2 -3
- package/index77.js +3 -13
- package/index78.js +12 -4
- package/index79.js +5 -3
- package/index8.js +2 -2
- package/index80.js +3 -4
- package/index81.js +4 -4
- package/index82.js +4 -4
- package/index83.js +4 -4
- package/index84.js +4 -4
- package/index85.js +3 -14
- package/index86.js +14 -13
- package/index87.js +13 -8
- package/index88.js +9 -3
- package/index89.js +3 -6
- package/index90.js +5 -5
- package/index91.js +5 -5
- package/index92.js +5 -7
- package/index93.js +7 -17
- package/index94.js +17 -10
- package/index95.js +9 -4
- package/index96.js +5 -4
- package/index97.js +4 -4
- package/index98.js +4 -5
- package/index99.js +5 -6
- package/modal/index.vue.d.ts +1 -0
- package/package.json +3 -3
- package/selector/index.scss +11 -0
- package/selector/index.vue.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 2.5.0 (2025-12-25)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for ui-vant to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 2.4.0 (2025-12-11)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- **ui-vant/selector:** add custom searcher fn support
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- HyperLife1119
|
|
14
|
+
|
|
1
15
|
## 2.3.1 (2025-12-11)
|
|
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/cascader/index.scss
CHANGED
package/directives/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -4,29 +4,31 @@ import { default as l } from "./index4.js";
|
|
|
4
4
|
import { default as p } from "./index5.js";
|
|
5
5
|
import { default as d } from "./index6.js";
|
|
6
6
|
import { default as x } from "./index7.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as s } from "./index8.js";
|
|
8
8
|
import { default as c } from "./index9.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { vBindFn as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { default as g } from "./index10.js";
|
|
10
|
+
import { vBindFn as y } from "./index11.js";
|
|
11
|
+
import { vBinding as C } from "./index12.js";
|
|
12
|
+
import { vDatetimePicker as B } from "./index13.js";
|
|
13
|
+
import { vReadonly as R } from "./index14.js";
|
|
14
|
+
import { Dialog as L, Notify as M, dialog as N, notify as V, setupOverlay as b } from "./index15.js";
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
L as Dialog,
|
|
17
|
+
M as Notify,
|
|
17
18
|
o as SolarVant,
|
|
18
19
|
a as SunCascader,
|
|
19
20
|
l as SunCascaderPicker,
|
|
20
21
|
p as SunDateRangePicker,
|
|
21
22
|
d as SunList,
|
|
22
23
|
x as SunModal,
|
|
23
|
-
|
|
24
|
+
s as SunOpperController,
|
|
24
25
|
c as SunSelectPicker,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
C as
|
|
31
|
-
|
|
26
|
+
g as SunSelector,
|
|
27
|
+
N as dialog,
|
|
28
|
+
V as notify,
|
|
29
|
+
b as setupOverlay,
|
|
30
|
+
y as vBindFn,
|
|
31
|
+
C as vBinding,
|
|
32
|
+
B as vDatetimePicker,
|
|
33
|
+
R as vReadonly
|
|
32
34
|
};
|
package/index10.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { defineComponent as J, ref as
|
|
2
|
-
import { useFilterList as
|
|
3
|
-
import { SunLazyRender as ve, SunVirtualScroll as
|
|
4
|
-
import B from "./
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as J, ref as F, computed as m, renderSlot as Q, openBlock as X, createElementBlock as Y, createCommentVNode as Z, mergeProps as _, resolveDirective as x, withDirectives as ee, createElementVNode as le, unref as te, toDisplayString as oe, createTextVNode as re, normalizeClass as ae, withCtx as ne, createSlots as se, createVNode as ie, normalizeStyle as ue, createBlock as de, Fragment as pe, renderList as ce } from "vue";
|
|
2
|
+
import { useFilterList as fe } from "@solar-taro/core";
|
|
3
|
+
import { SunLazyRender as ve, SunVirtualScroll as me, SunItem as O } from "@solar-taro/ui-sun";
|
|
4
|
+
import B from "./index25.js";
|
|
5
|
+
import ye from "./index7.js";
|
|
6
|
+
import he from "./index6.js";
|
|
7
|
+
const d = Q, a = X, i = Y, f = Z, R = _, be = x, I = ee, V = le, p = te, M = oe, ge = re, P = ae, n = ne, C = se, z = ie, T = ue, N = de, W = pe, ke = ce, Ve = ["label", "value", "placeholder", "required", "disabled"], $e = {
|
|
7
8
|
key: 1,
|
|
8
9
|
name: "right-icon"
|
|
9
|
-
},
|
|
10
|
+
}, Se = ["label", "value", "placeholder", "use-right-icon-slot", "disabled"], we = {
|
|
10
11
|
key: 1,
|
|
11
12
|
name: "right-icon"
|
|
12
|
-
},
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "van-button-container"
|
|
15
|
-
}, qe = /* @__PURE__ */ J({
|
|
13
|
+
}, Ke = ["value"], Be = { class: "sun-selector-option-label" }, De = /* @__PURE__ */ J({
|
|
16
14
|
__name: "index",
|
|
17
15
|
props: {
|
|
18
16
|
type: { default: "field" },
|
|
@@ -27,271 +25,290 @@ const u = Q, s = U, a = X, v = Y, F = Z, he = _, O = x, p = ee, R = le, ye = oe,
|
|
|
27
25
|
height: { default: "64vh" },
|
|
28
26
|
required: { type: Boolean },
|
|
29
27
|
disabled: { type: Boolean },
|
|
30
|
-
delimiter: { default: "
|
|
28
|
+
delimiter: { default: ", " },
|
|
31
29
|
searchable: { type: Boolean, default: !0 },
|
|
30
|
+
clearable: { type: Boolean, default: !0 },
|
|
32
31
|
searcher: {},
|
|
33
32
|
virtual: { type: [Boolean, Object] },
|
|
34
33
|
refresher: { type: Boolean },
|
|
35
34
|
refreshing: { type: Boolean },
|
|
36
|
-
compareWith: { type: Function, default: (
|
|
35
|
+
compareWith: { type: Function, default: ($, S) => $ === S }
|
|
37
36
|
},
|
|
38
37
|
emits: ["update:modelValue", "select", "unselect", "clear", "close", "confirm", "refresh"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
38
|
+
setup($, { expose: S, emit: j }) {
|
|
39
|
+
const o = $, u = j, y = F(!1), h = F(!1), A = m(() => o.searcher || ((e, l) => e[o.labelKey].toLowerCase().includes(l))), { keyword: q, filteredList: w } = fe(() => o.options, A.value), K = m(() => {
|
|
41
40
|
var e;
|
|
42
|
-
if (
|
|
43
|
-
const l = B(
|
|
44
|
-
(
|
|
41
|
+
if (v.value) {
|
|
42
|
+
const l = B(o.modelValue) ? null : o.options.find(
|
|
43
|
+
(r) => o.compareWith(r[o.valueKey], o.modelValue)
|
|
45
44
|
);
|
|
46
|
-
return (l == null ? void 0 : l[
|
|
45
|
+
return (l == null ? void 0 : l[o.labelKey]) || "";
|
|
47
46
|
}
|
|
48
|
-
return (e =
|
|
47
|
+
return (e = o.modelValue) == null ? void 0 : e.map(
|
|
49
48
|
(l) => {
|
|
50
|
-
var
|
|
51
|
-
return ((
|
|
49
|
+
var r;
|
|
50
|
+
return ((r = o.options.find((t) => o.compareWith(t[o.valueKey], l))) == null ? void 0 : r[o.labelKey]) || "";
|
|
52
51
|
}
|
|
53
|
-
).join(
|
|
54
|
-
}),
|
|
55
|
-
var
|
|
52
|
+
).join(o.delimiter);
|
|
53
|
+
}), b = m(() => !G(o.modelValue) && o.clearable), v = m(() => o.mode === "single"), U = m(() => {
|
|
54
|
+
var r, t;
|
|
56
55
|
let e, l = 47;
|
|
57
|
-
return typeof
|
|
56
|
+
return typeof o.virtual != "boolean" && (r = o.virtual) != null && r.itemSize && (l = (t = o.virtual) == null ? void 0 : t.itemSize), { id: e, itemSize: l };
|
|
58
57
|
});
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
function G(e) {
|
|
59
|
+
return B(e) ? !0 : v.value ? !1 : e.length < 1;
|
|
60
|
+
}
|
|
61
|
+
function s(e) {
|
|
62
|
+
var r;
|
|
63
|
+
const l = e[o.valueKey];
|
|
64
|
+
return v.value ? B(o.modelValue) ? !1 : o.compareWith(o.modelValue, l) : ((r = o.modelValue) == null ? void 0 : r.some((t) => o.compareWith(t, l))) || !1;
|
|
63
65
|
}
|
|
64
66
|
function g() {
|
|
65
|
-
|
|
67
|
+
o.disabled || (y.value = !0, h.value || setTimeout(() => {
|
|
66
68
|
h.value = !0;
|
|
67
69
|
}, 300));
|
|
68
70
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
+
function D() {
|
|
72
|
+
y.value = !1, u("close");
|
|
71
73
|
}
|
|
72
|
-
function
|
|
74
|
+
function L() {
|
|
73
75
|
var l;
|
|
74
|
-
const e = ((l =
|
|
75
|
-
(
|
|
76
|
-
(
|
|
76
|
+
const e = ((l = o.modelValue) == null ? void 0 : l.map(
|
|
77
|
+
(r) => o.options.find(
|
|
78
|
+
(t) => o.compareWith(t[o.valueKey], r)
|
|
77
79
|
)
|
|
78
80
|
)) || [];
|
|
79
|
-
|
|
81
|
+
u("confirm", e), D();
|
|
80
82
|
}
|
|
81
|
-
function
|
|
82
|
-
const l = e[
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
)) : (
|
|
87
|
-
e[
|
|
88
|
-
)),
|
|
83
|
+
function E(e) {
|
|
84
|
+
const l = e[o.valueKey];
|
|
85
|
+
let r = o.modelValue;
|
|
86
|
+
v.value ? (s(e) ? o.required || (u("unselect", e), r = null) : (u("select", e), r = l), D()) : s(e) ? (u("unselect", e), r = o.modelValue.filter(
|
|
87
|
+
(t) => !o.compareWith(t, l)
|
|
88
|
+
)) : (u("select", e), r = (o.modelValue || []).concat(
|
|
89
|
+
e[o.valueKey]
|
|
90
|
+
)), u("update:modelValue", r);
|
|
89
91
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
+
function k() {
|
|
93
|
+
u("clear", o.modelValue), u("update:modelValue", o.required && !v.value ? [] : null);
|
|
92
94
|
}
|
|
93
|
-
return
|
|
95
|
+
return S({
|
|
94
96
|
present: g,
|
|
95
|
-
clear:
|
|
97
|
+
clear: k
|
|
96
98
|
}), (e, l) => {
|
|
97
|
-
const
|
|
98
|
-
return
|
|
99
|
-
|
|
99
|
+
const r = be("readonly");
|
|
100
|
+
return a(), i(W, null, [
|
|
101
|
+
d(e.$slots, "default", {
|
|
100
102
|
present: g,
|
|
101
103
|
label: K.value
|
|
102
104
|
}, () => [
|
|
103
|
-
e.type === "field" ?
|
|
105
|
+
e.type === "field" ? I((a(), i("van-field", R({ key: 0 }, e.$attrs, {
|
|
104
106
|
class: "sun-selector",
|
|
105
107
|
label: e.label,
|
|
106
108
|
value: K.value,
|
|
107
109
|
placeholder: e.placeholder,
|
|
108
110
|
required: e.required,
|
|
109
111
|
disabled: e.disabled,
|
|
110
|
-
onClickInput: l[1] || (l[1] = (
|
|
112
|
+
onClickInput: l[1] || (l[1] = (t) => g())
|
|
111
113
|
}), [
|
|
112
|
-
|
|
114
|
+
b.value ? (a(), i("van-icon", {
|
|
113
115
|
key: 0,
|
|
114
116
|
slot: "right-icon",
|
|
117
|
+
class: "sun-selector-clear-icon",
|
|
115
118
|
name: "clear",
|
|
116
|
-
onTap: l[0] || (l[0] = (
|
|
117
|
-
}, null, 32)) :
|
|
118
|
-
e.$slots.end ? (
|
|
119
|
-
|
|
120
|
-
])) :
|
|
121
|
-
], 16,
|
|
122
|
-
[
|
|
123
|
-
]) : e.type === "search" ?
|
|
119
|
+
onTap: l[0] || (l[0] = (t) => k())
|
|
120
|
+
}, null, 32)) : f("", !0),
|
|
121
|
+
e.$slots.end ? (a(), i("slot-view", $e, [
|
|
122
|
+
d(e.$slots, "end")
|
|
123
|
+
])) : f("", !0)
|
|
124
|
+
], 16, Ve)), [
|
|
125
|
+
[r]
|
|
126
|
+
]) : e.type === "search" ? I((a(), i("van-search", R({ key: 1 }, e.$attrs, {
|
|
124
127
|
class: "sun-selector",
|
|
125
128
|
label: e.label,
|
|
126
129
|
value: K.value,
|
|
127
130
|
placeholder: e.placeholder,
|
|
128
|
-
"use-right-icon-slot":
|
|
131
|
+
"use-right-icon-slot": b.value,
|
|
129
132
|
shape: "round",
|
|
130
133
|
clearable: !1,
|
|
131
134
|
disabled: e.disabled,
|
|
132
|
-
onClickInput: l[3] || (l[3] = (
|
|
135
|
+
onClickInput: l[3] || (l[3] = (t) => g())
|
|
133
136
|
}), [
|
|
134
|
-
|
|
137
|
+
b.value ? (a(), i("van-icon", {
|
|
135
138
|
key: 0,
|
|
136
139
|
slot: "right-icon",
|
|
140
|
+
class: "sun-selector-clear-icon",
|
|
137
141
|
name: "clear",
|
|
138
|
-
onTap: l[2] || (l[2] = (
|
|
139
|
-
}, null, 32)) :
|
|
140
|
-
e.$slots.end ? (
|
|
141
|
-
|
|
142
|
-
])) :
|
|
143
|
-
], 16,
|
|
144
|
-
[
|
|
145
|
-
]) :
|
|
142
|
+
onTap: l[2] || (l[2] = (t) => k())
|
|
143
|
+
}, null, 32)) : f("", !0),
|
|
144
|
+
e.$slots.end ? (a(), i("slot-view", we, [
|
|
145
|
+
d(e.$slots, "end")
|
|
146
|
+
])) : f("", !0)
|
|
147
|
+
], 16, Se)), [
|
|
148
|
+
[r]
|
|
149
|
+
]) : f("", !0)
|
|
146
150
|
]),
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
|
|
150
|
-
show:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, null, 40, Ke)) : v("", !0)
|
|
151
|
+
z(p(ve), { hook: "created" }, {
|
|
152
|
+
default: n(() => [
|
|
153
|
+
z(p(ye), {
|
|
154
|
+
show: y.value,
|
|
155
|
+
"onUpdate:show": l[9] || (l[9] = (t) => y.value = t),
|
|
156
|
+
title: e.placeholder
|
|
157
|
+
}, C({
|
|
158
|
+
buttons: n(() => [
|
|
159
|
+
d(e.$slots, "buttons", { confirm: L }, () => [
|
|
160
|
+
v.value ? f("", !0) : (a(), i("van-button", {
|
|
161
|
+
key: 0,
|
|
162
|
+
type: "primary",
|
|
163
|
+
round: "true",
|
|
164
|
+
block: "true",
|
|
165
|
+
onTap: l[8] || (l[8] = (t) => L())
|
|
166
|
+
}, "确定", 32))
|
|
167
|
+
])
|
|
165
168
|
]),
|
|
166
|
-
|
|
167
|
-
h.value
|
|
168
|
-
|
|
169
|
+
default: n(() => [
|
|
170
|
+
d(e.$slots, "filter", { rendered: h.value }, () => [
|
|
171
|
+
e.searchable ? (a(), i("van-search", {
|
|
172
|
+
key: 0,
|
|
173
|
+
shape: "round",
|
|
174
|
+
"input-align": "center",
|
|
175
|
+
value: p(q),
|
|
176
|
+
placeholder: "输入关键字搜索",
|
|
177
|
+
onChange: l[5] || (l[5] = (t) => q.value = t.detail.trim())
|
|
178
|
+
}, null, 40, Ke)) : f("", !0)
|
|
179
|
+
]),
|
|
180
|
+
e.virtual ? (a(), i(W, { key: 0 }, [
|
|
181
|
+
h.value ? (a(), N(p(me), {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "sun-selector-options",
|
|
184
|
+
refresher: e.refresher,
|
|
185
|
+
refreshing: e.refreshing,
|
|
186
|
+
items: p(w),
|
|
187
|
+
"item-size": U.value.itemSize,
|
|
188
|
+
"item-key": e.valueKey,
|
|
189
|
+
style: T({ height: e.height }),
|
|
190
|
+
onRefresh: l[6] || (l[6] = (t) => u("refresh"))
|
|
191
|
+
}, {
|
|
192
|
+
default: n(({ item: t, index: c }) => [
|
|
193
|
+
z(p(O), {
|
|
194
|
+
class: P(["sun-selector-option", { "sun-selector-option-active": s(t) }]),
|
|
195
|
+
clickable: !0,
|
|
196
|
+
onTap: (H) => E(t)
|
|
197
|
+
}, C({
|
|
198
|
+
start: n(() => [
|
|
199
|
+
d(e.$slots, "option-start", {
|
|
200
|
+
option: t,
|
|
201
|
+
index: c,
|
|
202
|
+
active: s(t)
|
|
203
|
+
})
|
|
204
|
+
]),
|
|
205
|
+
end: n(() => [
|
|
206
|
+
d(e.$slots, "option-end", {
|
|
207
|
+
option: t,
|
|
208
|
+
index: c,
|
|
209
|
+
active: s(t)
|
|
210
|
+
})
|
|
211
|
+
]),
|
|
212
|
+
default: n(() => [
|
|
213
|
+
d(e.$slots, "option", {
|
|
214
|
+
option: t,
|
|
215
|
+
index: c,
|
|
216
|
+
active: s(t)
|
|
217
|
+
}, () => [
|
|
218
|
+
ge(M(t[e.labelKey]), 1)
|
|
219
|
+
])
|
|
220
|
+
]),
|
|
221
|
+
_: 2
|
|
222
|
+
}, [
|
|
223
|
+
s(t) ? {
|
|
224
|
+
name: "end",
|
|
225
|
+
fn: n(() => [
|
|
226
|
+
l[10] || (l[10] = V("van-icon", {
|
|
227
|
+
class: "sun-selector-option-icon",
|
|
228
|
+
name: "success"
|
|
229
|
+
}, null, -1))
|
|
230
|
+
]),
|
|
231
|
+
key: "0"
|
|
232
|
+
} : void 0
|
|
233
|
+
]), 1032, ["class", "onTap"])
|
|
234
|
+
]),
|
|
235
|
+
_: 3
|
|
236
|
+
}, 8, ["refresher", "refreshing", "items", "item-size", "item-key", "style"])) : (a(), i("view", {
|
|
237
|
+
key: 1,
|
|
238
|
+
style: T({ height: e.height })
|
|
239
|
+
}, null, 4))
|
|
240
|
+
], 64)) : (a(), N(p(he), {
|
|
241
|
+
key: 1,
|
|
169
242
|
class: "sun-selector-options",
|
|
170
243
|
refresher: e.refresher,
|
|
171
244
|
refreshing: e.refreshing,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
style:
|
|
176
|
-
onRefresh: l[
|
|
245
|
+
data: p(w),
|
|
246
|
+
loading: e.loading,
|
|
247
|
+
"empty-type": "search",
|
|
248
|
+
style: T({ height: e.height }),
|
|
249
|
+
onRefresh: l[7] || (l[7] = (t) => u("refresh"))
|
|
177
250
|
}, {
|
|
178
|
-
default:
|
|
179
|
-
|
|
180
|
-
|
|
251
|
+
default: n(() => [
|
|
252
|
+
(a(!0), i(W, null, ke(p(w), (t, c) => (a(), N(p(O), {
|
|
253
|
+
key: t[e.valueKey],
|
|
254
|
+
class: P(["sun-selector-option", { "sun-selector-option-active": s(t) }]),
|
|
181
255
|
clickable: !0,
|
|
182
|
-
onTap: (H) =>
|
|
183
|
-
},
|
|
184
|
-
start:
|
|
185
|
-
|
|
186
|
-
option:
|
|
256
|
+
onTap: (H) => E(t)
|
|
257
|
+
}, C({
|
|
258
|
+
start: n(() => [
|
|
259
|
+
d(e.$slots, "option-start", {
|
|
260
|
+
option: t,
|
|
187
261
|
index: c,
|
|
188
|
-
active:
|
|
262
|
+
active: s(t)
|
|
189
263
|
})
|
|
190
264
|
]),
|
|
191
|
-
end:
|
|
192
|
-
|
|
193
|
-
option:
|
|
265
|
+
end: n(() => [
|
|
266
|
+
d(e.$slots, "option-end", {
|
|
267
|
+
option: t,
|
|
194
268
|
index: c,
|
|
195
|
-
active:
|
|
269
|
+
active: s(t)
|
|
196
270
|
})
|
|
197
271
|
]),
|
|
198
|
-
default:
|
|
199
|
-
|
|
200
|
-
option:
|
|
272
|
+
default: n(() => [
|
|
273
|
+
d(e.$slots, "option", {
|
|
274
|
+
option: t,
|
|
201
275
|
index: c,
|
|
202
|
-
active:
|
|
276
|
+
active: s(t)
|
|
203
277
|
}, () => [
|
|
204
|
-
|
|
278
|
+
V("view", Be, M(t[e.labelKey]), 1)
|
|
205
279
|
])
|
|
206
280
|
]),
|
|
207
281
|
_: 2
|
|
208
282
|
}, [
|
|
209
|
-
|
|
283
|
+
s(t) ? {
|
|
210
284
|
name: "end",
|
|
211
|
-
fn:
|
|
212
|
-
l[
|
|
285
|
+
fn: n(() => [
|
|
286
|
+
l[11] || (l[11] = V("van-icon", {
|
|
213
287
|
class: "sun-selector-option-icon",
|
|
288
|
+
slot: "right-icon",
|
|
214
289
|
name: "success"
|
|
215
290
|
}, null, -1))
|
|
216
291
|
]),
|
|
217
292
|
key: "0"
|
|
218
293
|
} : void 0
|
|
219
|
-
]), 1032, ["class", "onTap"])
|
|
294
|
+
]), 1032, ["class", "onTap"]))), 128))
|
|
220
295
|
]),
|
|
221
296
|
_: 3
|
|
222
|
-
}, 8, ["refresher", "refreshing", "
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
"empty-type": "search",
|
|
234
|
-
style: z({ height: e.height }),
|
|
235
|
-
onRefresh: l[6] || (l[6] = (o) => i("refresh"))
|
|
236
|
-
}, {
|
|
237
|
-
default: d(() => [
|
|
238
|
-
(s(!0), a(T, null, ge(p(S), (o, c) => (s(), N(p(E), {
|
|
239
|
-
key: o[e.valueKey],
|
|
240
|
-
class: I(["sun-selector-option", { "sun-selector-option-active": r(o) }]),
|
|
241
|
-
clickable: !0,
|
|
242
|
-
onTap: (H) => D(o)
|
|
243
|
-
}, P({
|
|
244
|
-
start: d(() => [
|
|
245
|
-
u(e.$slots, "option-start", {
|
|
246
|
-
option: o,
|
|
247
|
-
index: c,
|
|
248
|
-
active: r(o)
|
|
249
|
-
})
|
|
250
|
-
]),
|
|
251
|
-
end: d(() => [
|
|
252
|
-
u(e.$slots, "option-end", {
|
|
253
|
-
option: o,
|
|
254
|
-
index: c,
|
|
255
|
-
active: r(o)
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
default: d(() => [
|
|
259
|
-
u(e.$slots, "option", {
|
|
260
|
-
option: o,
|
|
261
|
-
index: c,
|
|
262
|
-
active: r(o)
|
|
263
|
-
}, () => [
|
|
264
|
-
m("view", we, R(o[e.labelKey]), 1)
|
|
265
|
-
])
|
|
266
|
-
]),
|
|
267
|
-
_: 2
|
|
268
|
-
}, [
|
|
269
|
-
r(o) ? {
|
|
270
|
-
name: "end",
|
|
271
|
-
fn: d(() => [
|
|
272
|
-
l[11] || (l[11] = m("van-icon", {
|
|
273
|
-
class: "sun-selector-option-icon",
|
|
274
|
-
slot: "right-icon",
|
|
275
|
-
name: "success"
|
|
276
|
-
}, null, -1))
|
|
277
|
-
]),
|
|
278
|
-
key: "0"
|
|
279
|
-
} : void 0
|
|
280
|
-
]), 1032, ["class", "onTap"]))), 128))
|
|
297
|
+
}, 8, ["refresher", "refreshing", "data", "loading", "style"]))
|
|
298
|
+
]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, [
|
|
301
|
+
b.value ? {
|
|
302
|
+
name: "extra",
|
|
303
|
+
fn: n(() => [
|
|
304
|
+
V("view", {
|
|
305
|
+
class: "sun-selector-clear-btn",
|
|
306
|
+
onTap: l[4] || (l[4] = (t) => k())
|
|
307
|
+
}, "清除", 32)
|
|
281
308
|
]),
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
y.value ? v("", !0) : (s(), a("view", Ce, [
|
|
286
|
-
m("van-button", {
|
|
287
|
-
type: "primary",
|
|
288
|
-
round: "true",
|
|
289
|
-
block: "true",
|
|
290
|
-
onTap: l[7] || (l[7] = (o) => q())
|
|
291
|
-
}, "确定", 32)
|
|
292
|
-
]))
|
|
293
|
-
])
|
|
294
|
-
], 40, Se)
|
|
309
|
+
key: "0"
|
|
310
|
+
} : void 0
|
|
311
|
+
]), 1032, ["show", "title"])
|
|
295
312
|
]),
|
|
296
313
|
_: 3
|
|
297
314
|
})
|
|
@@ -300,5 +317,5 @@ const u = Q, s = U, a = X, v = Y, F = Z, he = _, O = x, p = ee, R = le, ye = oe,
|
|
|
300
317
|
}
|
|
301
318
|
});
|
|
302
319
|
export {
|
|
303
|
-
|
|
320
|
+
De as default
|
|
304
321
|
};
|
package/index100.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
o(t, e(r)), r = m(r);
|
|
8
|
-
return t;
|
|
9
|
-
} : a;
|
|
1
|
+
import e from "./index73.js";
|
|
2
|
+
import u from "./index31.js";
|
|
3
|
+
function l(r, s, t) {
|
|
4
|
+
var a = s(r);
|
|
5
|
+
return u(r) ? a : e(a, t(r));
|
|
6
|
+
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
l as default
|
|
12
9
|
};
|
package/index101.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import o from "./index73.js";
|
|
2
|
+
import m from "./index89.js";
|
|
3
|
+
import e from "./index109.js";
|
|
4
|
+
import a from "./index53.js";
|
|
5
|
+
var s = Object.getOwnPropertySymbols, f = s ? function(r) {
|
|
6
|
+
for (var t = []; r; )
|
|
7
|
+
o(t, e(r)), r = m(r);
|
|
8
|
+
return t;
|
|
9
|
+
} : a;
|
|
7
10
|
export {
|
|
8
11
|
f as default
|
|
9
12
|
};
|