@solar-taro/ui-vant 3.5.3 → 4.0.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 +21 -0
- package/cascader/index.scss +36 -6
- package/cascader/index.vue.d.ts +13 -13
- package/cascader/typings.d.ts +5 -0
- package/cascader-picker/index.vue.d.ts +1 -1
- package/date-range-picker/index.scss +37 -6
- package/date-range-picker/index.vue.d.ts +25 -30
- package/index.js +14 -14
- package/index10.js +61 -16
- package/index11.js +18 -3
- package/index12.js +3 -28
- package/index13.js +28 -4
- package/index14.js +5 -64
- package/index15.js +1 -1
- 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 +7 -36
- package/index23.js +38 -23
- package/index24.js +27 -0
- package/index3.js +202 -119
- package/index4.js +76 -79
- package/index5.js +129 -113
- package/index6.js +36 -32
- package/index7.js +141 -134
- package/index8.js +34 -34
- package/index9.js +325 -292
- package/package.json +1 -1
- package/select-picker/index.vue.d.ts +1 -1
- package/selector/index.scss +33 -5
- package/selector/index.vue.d.ts +20 -26
- package/selector/typings.d.ts +9 -0
package/index22.js
CHANGED
|
@@ -1,38 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
e.value = o.default;
|
|
8
|
-
};
|
|
9
|
-
} }), s = i({
|
|
10
|
-
inheritAttrs: t,
|
|
11
|
-
props: r.props,
|
|
12
|
-
setup(a, { attrs: o, slots: c }) {
|
|
13
|
-
return () => {
|
|
14
|
-
var l;
|
|
15
|
-
if (!e.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
16
|
-
const n = (l = e.value) === null || l === void 0 ? void 0 : l.call(e, {
|
|
17
|
-
...r.props == null ? m(o) : a,
|
|
18
|
-
$slots: c
|
|
19
|
-
});
|
|
20
|
-
return t && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return d({
|
|
25
|
-
define: u,
|
|
26
|
-
reuse: s
|
|
27
|
-
}, [u, s]);
|
|
28
|
-
}
|
|
29
|
-
function m(r) {
|
|
30
|
-
const t = {};
|
|
31
|
-
for (const e in r) t[f(e)] = r[e];
|
|
32
|
-
return t;
|
|
33
|
-
}
|
|
1
|
+
const s = (t) => {
|
|
2
|
+
const o = Math.max(t.startIndex - t.overscan, 0), e = Math.min(t.endIndex + t.overscan, t.count - 1) - o + 1, r = new Array(e);
|
|
3
|
+
for (let n = 0; n < e; n++)
|
|
4
|
+
r[n] = o + n;
|
|
5
|
+
return r;
|
|
6
|
+
};
|
|
34
7
|
export {
|
|
35
|
-
|
|
36
|
-
h as createReusableTemplate,
|
|
37
|
-
d as makeDestructurable
|
|
8
|
+
s as defaultRangeExtractor
|
|
38
9
|
};
|
package/index23.js
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
function r(t) {
|
|
4
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
5
|
-
return (e) => n[e] || (n[e] = t(e));
|
|
6
|
-
}
|
|
7
|
-
const c = /-(\w)/g, a = r((t) => t.replace(c, (n, e) => e ? e.toUpperCase() : ""));
|
|
1
|
+
import { makeDestructurable as m, camelize as c } from "./index24.js";
|
|
2
|
+
import { shallowRef as p, defineComponent as d } from "vue";
|
|
8
3
|
// @__NO_SIDE_EFFECTS__
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
|
|
4
|
+
function w(e = {}) {
|
|
5
|
+
const { inheritAttrs: r = !0, name: t = "ReusableTemplate" } = e, o = p(), a = d({
|
|
6
|
+
name: `${t}.define`,
|
|
7
|
+
setup(i, { slots: l }) {
|
|
8
|
+
return () => {
|
|
9
|
+
o.value = l.default;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}), s = d({
|
|
13
|
+
inheritAttrs: r,
|
|
14
|
+
name: `${t}.reuse`,
|
|
15
|
+
props: e.props,
|
|
16
|
+
setup(i, { attrs: l, slots: f }) {
|
|
17
|
+
return () => {
|
|
18
|
+
var u;
|
|
19
|
+
if (!o.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
|
|
20
|
+
const n = (u = o.value) === null || u === void 0 ? void 0 : u.call(o, {
|
|
21
|
+
...e.props == null ? v(l) : i,
|
|
22
|
+
$slots: f
|
|
23
|
+
});
|
|
24
|
+
return r && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return m({
|
|
29
|
+
define: a,
|
|
30
|
+
reuse: s
|
|
31
|
+
}, [a, s]);
|
|
32
|
+
}
|
|
33
|
+
function v(e) {
|
|
34
|
+
const r = {};
|
|
35
|
+
for (const t in e) r[c(t)] = e[t];
|
|
36
|
+
return r;
|
|
23
37
|
}
|
|
24
38
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
c as camelize,
|
|
40
|
+
w as createReusableTemplate,
|
|
41
|
+
m as makeDestructurable
|
|
27
42
|
};
|
package/index24.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
typeof WorkerGlobalScope != "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
3
|
+
function r(t) {
|
|
4
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
5
|
+
return (e) => n[e] || (n[e] = t(e));
|
|
6
|
+
}
|
|
7
|
+
const c = /-(\w)/g, a = r((t) => t.replace(c, (n, e) => e ? e.toUpperCase() : ""));
|
|
8
|
+
// @__NO_SIDE_EFFECTS__
|
|
9
|
+
function u(t, n) {
|
|
10
|
+
if (typeof Symbol != "undefined") {
|
|
11
|
+
const e = { ...t };
|
|
12
|
+
return Object.defineProperty(e, Symbol.iterator, {
|
|
13
|
+
enumerable: !1,
|
|
14
|
+
value() {
|
|
15
|
+
let o = 0;
|
|
16
|
+
return { next: () => ({
|
|
17
|
+
value: n[o++],
|
|
18
|
+
done: o > n.length
|
|
19
|
+
}) };
|
|
20
|
+
}
|
|
21
|
+
}), e;
|
|
22
|
+
} else return Object.assign([...n], t);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
a as camelize,
|
|
26
|
+
u as makeDestructurable
|
|
27
|
+
};
|
package/index3.js
CHANGED
|
@@ -1,139 +1,211 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { tree2list as
|
|
3
|
-
import { SunIcon as
|
|
4
|
-
import { SunModal as
|
|
5
|
-
import { linkedRef as
|
|
6
|
-
|
|
1
|
+
import { defineComponent as ve, inject as Z, useModel as me, ref as U, useId as fe, computed as o, effect as ee, Fragment as pe, mergeModels as te, renderSlot as he, toDisplayString as be, openBlock as ke, createElementBlock as ye, createCommentVNode as we, unref as Te, withModifiers as xe, createBlock as Se, createVNode as Ve, normalizeClass as ge, createElementVNode as Ce, renderList as $e, createTextVNode as Ne, withCtx as Be, createSlots as Le, normalizeStyle as _e } from "vue";
|
|
2
|
+
import { tree2list as ze } from "@solar-kit/core";
|
|
3
|
+
import { SUN_ITEM as Ie, SUN_FIELD as Me, SunIcon as g, SunLazyRender as Ee, SunSearchbar as qe, SunItem as D, SunListPlaceholder as Ue } from "@solar-taro/ui-sun";
|
|
4
|
+
import { SunModal as De } from "@solar-taro/ui-vant";
|
|
5
|
+
import { linkedRef as le, untracked as Fe } from "@solar-vue/core";
|
|
6
|
+
import { nextTick as je, getCurrentInstance as Pe } from "@tarojs/taro";
|
|
7
|
+
const Re = he, k = be, a = ke, r = ye, y = we, n = Te, ae = xe, f = Se, w = Ve, F = ge, C = Ce, $ = $e, p = pe, j = Ne, d = Be, P = Le, R = _e, Ae = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "sun-cascader-inner"
|
|
10
|
+
}, Ge = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "sun-cascader-placeholder"
|
|
13
|
+
}, He = ["id", "active"], Je = ["name", "title"], Ke = ["name"], et = /* @__PURE__ */ ve({
|
|
7
14
|
__name: "index",
|
|
8
|
-
props: /* @__PURE__ */
|
|
9
|
-
label: {},
|
|
15
|
+
props: /* @__PURE__ */ te({
|
|
10
16
|
placeholder: { default: "请选择" },
|
|
11
17
|
options: {},
|
|
12
|
-
labelKey: { default: "fullName" },
|
|
13
|
-
valueKey: { default: "id" },
|
|
14
18
|
required: { type: Boolean },
|
|
15
19
|
disabled: { type: Boolean },
|
|
16
20
|
clearable: { type: Boolean, default: !0 },
|
|
17
21
|
delimiter: { default: "/" },
|
|
18
|
-
height: { default: "50vh" }
|
|
22
|
+
height: { default: "50vh" },
|
|
23
|
+
searchable: { type: Boolean, default: !0 }
|
|
19
24
|
}, {
|
|
20
25
|
modelValue: {},
|
|
21
26
|
modelModifiers: {}
|
|
22
27
|
}),
|
|
23
|
-
emits: /* @__PURE__ */
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
28
|
+
emits: /* @__PURE__ */ te(["select", "clear", "close"], ["update:modelValue"]),
|
|
29
|
+
setup(i, { expose: ne, emit: se }) {
|
|
30
|
+
const h = Z(Ie, void 0), N = Z(Me, void 0), B = se, s = i, v = me(i, "modelValue"), b = U(""), A = fe(), G = o(() => v.value && s.clearable && !s.disabled), T = U(!1), H = U(0), oe = o(() => ze(s.options)), J = o(() => s.options.flatMap((e) => ie(e))), K = o(() => {
|
|
31
|
+
if (!b.value) return J.value;
|
|
32
|
+
const e = b.value.toLowerCase();
|
|
33
|
+
return J.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
34
|
+
}), L = o(() => oe.value.find((e) => e.parent && !e.children && e.value === v.value)), re = o(() => {
|
|
26
35
|
const e = [];
|
|
27
|
-
let
|
|
28
|
-
for (;
|
|
29
|
-
e.unshift(
|
|
36
|
+
let t = L.value;
|
|
37
|
+
for (; t; )
|
|
38
|
+
e.unshift(t), t = t.parent;
|
|
30
39
|
return e;
|
|
31
|
-
}),
|
|
40
|
+
}), x = le(() => L.value), _ = o(() => {
|
|
32
41
|
const e = [];
|
|
33
|
-
let
|
|
34
|
-
for (;
|
|
35
|
-
e.unshift(
|
|
42
|
+
let t = x.value;
|
|
43
|
+
for (; t; )
|
|
44
|
+
e.unshift(t), t = t.parent;
|
|
36
45
|
return e;
|
|
37
|
-
}),
|
|
38
|
-
const e =
|
|
46
|
+
}), O = o(() => {
|
|
47
|
+
const e = x.value;
|
|
39
48
|
return e ? !e.children : !1;
|
|
40
|
-
}),
|
|
49
|
+
}), z = o(() => re.value.map((e) => e.label).join(` ${s.delimiter} `)), I = le(
|
|
41
50
|
() => (
|
|
42
51
|
// 如果有值,则取 currentNodes 的最后索引,否则为 0
|
|
43
|
-
|
|
52
|
+
L.value ? Fe(() => _.value.length - 1) : 0
|
|
44
53
|
)
|
|
45
|
-
),
|
|
46
|
-
const e =
|
|
47
|
-
return e ? e.children :
|
|
48
|
-
});
|
|
49
|
-
function
|
|
50
|
-
|
|
54
|
+
), Q = o(() => s.options.filter((e) => !e.parent)), ue = o(() => {
|
|
55
|
+
const e = x.value;
|
|
56
|
+
return e ? e.children : Q.value;
|
|
57
|
+
}), W = o(() => ({ height: `calc(${s.height} - 44px)` }));
|
|
58
|
+
function S() {
|
|
59
|
+
s.disabled || (T.value = !0, H.value++, setTimeout(() => {
|
|
60
|
+
Y();
|
|
61
|
+
}, 300));
|
|
51
62
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
63
|
+
function X() {
|
|
64
|
+
T.value = !1, B("close");
|
|
54
65
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
66
|
+
function M() {
|
|
67
|
+
B("clear", v.value), v.value = null;
|
|
57
68
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
69
|
+
function E(e) {
|
|
70
|
+
x.value = e, B("select", e), O.value ? (v.value = e.value, setTimeout(X, 100)) : I.value++, je(Y);
|
|
60
71
|
}
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
function ie(e, t = "") {
|
|
73
|
+
const l = [];
|
|
74
|
+
function u(c, m) {
|
|
75
|
+
var q;
|
|
76
|
+
const V = m + c.label;
|
|
77
|
+
if ((q = c.children) != null && q.length) {
|
|
78
|
+
const ce = `${V} ${s.delimiter} `;
|
|
79
|
+
for (const de of c.children)
|
|
80
|
+
u(de, ce);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
l.push({ ...c, label: V });
|
|
84
|
+
}
|
|
85
|
+
return u(e, t), l;
|
|
86
|
+
}
|
|
87
|
+
function Y() {
|
|
88
|
+
var t, l, u;
|
|
89
|
+
const { page: e } = Pe();
|
|
90
|
+
(u = (l = (t = e == null ? void 0 : e.selectComponent) == null ? void 0 : t.call(e, `#${A}`)) == null ? void 0 : l.resize) == null || u.call(l);
|
|
91
|
+
}
|
|
92
|
+
return ne({
|
|
93
|
+
present: S,
|
|
94
|
+
clear: M
|
|
95
|
+
}), ee(() => {
|
|
96
|
+
N && (N.required.value = s.required, N.disabled.value = s.disabled);
|
|
97
|
+
}), ee(() => {
|
|
98
|
+
h && (h.clickable.value = !s.disabled);
|
|
99
|
+
}), h == null || h.onTap(S), (e, t) => (a(), r(p, null, [
|
|
100
|
+
Re(e.$slots, "default", {
|
|
101
|
+
present: S,
|
|
102
|
+
label: z.value
|
|
103
|
+
}, () => [
|
|
104
|
+
C("view", {
|
|
105
|
+
class: F(["sun-cascader", {
|
|
106
|
+
"sun-cascader-required": i.required,
|
|
107
|
+
"sun-cascader-disabled": i.disabled
|
|
108
|
+
}]),
|
|
109
|
+
onTap: t[1] || (t[1] = (l) => S())
|
|
110
|
+
}, [
|
|
111
|
+
z.value ? (a(), r("view", Ae, k(z.value), 1)) : (a(), r("view", Ge, k(i.placeholder), 1)),
|
|
112
|
+
G.value ? (a(), f(n(g), {
|
|
113
|
+
key: 2,
|
|
114
|
+
class: "sun-cascader-clear-icon",
|
|
115
|
+
name: "close-circle",
|
|
116
|
+
onTap: t[0] || (t[0] = ae((l) => M(), ["stop"]))
|
|
117
|
+
})) : y("", !0),
|
|
118
|
+
w(n(g), {
|
|
119
|
+
class: "sun-cascader-icon",
|
|
120
|
+
name: "chevron-expand-outline"
|
|
121
|
+
})
|
|
122
|
+
], 34)
|
|
123
|
+
]),
|
|
124
|
+
w(n(Ee), { hook: "created" }, {
|
|
125
|
+
default: d(() => [
|
|
126
|
+
w(n(De), {
|
|
127
|
+
show: T.value,
|
|
128
|
+
"onUpdate:show": t[5] || (t[5] = (l) => T.value = l),
|
|
129
|
+
class: "sun-cascader-modal",
|
|
130
|
+
title: i.placeholder,
|
|
131
|
+
"show-buttons": !1,
|
|
132
|
+
onClose: t[6] || (t[6] = (l) => X()),
|
|
133
|
+
onTap: t[7] || (t[7] = ae(() => {
|
|
134
|
+
}, ["stop"]))
|
|
135
|
+
}, P({
|
|
136
|
+
default: d(() => [
|
|
137
|
+
i.searchable ? (a(), f(n(qe), {
|
|
79
138
|
key: 0,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
})) :
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
139
|
+
modelValue: b.value,
|
|
140
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => b.value = l),
|
|
141
|
+
placeholder: "输入关键字搜索"
|
|
142
|
+
}, null, 8, ["modelValue"])) : y("", !0),
|
|
143
|
+
b.value ? (a(), r("view", {
|
|
144
|
+
key: 1,
|
|
145
|
+
class: "sun-cascader-options",
|
|
146
|
+
style: R({ height: i.height })
|
|
147
|
+
}, [
|
|
148
|
+
(a(!0), r(p, null, $(K.value, (l, u) => (a(), f(n(D), {
|
|
149
|
+
key: u,
|
|
150
|
+
class: F(["sun-cascader-option", { "sun-cascader-option-active": l.value === v.value }]),
|
|
151
|
+
clickable: !0,
|
|
152
|
+
onTap: (c) => E(l)
|
|
153
|
+
}, P({
|
|
154
|
+
default: d(() => [
|
|
155
|
+
j(k(l.label) + " ", 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, [
|
|
159
|
+
l.value === v.value ? {
|
|
160
|
+
name: "end",
|
|
161
|
+
fn: d(() => [
|
|
162
|
+
w(n(g), {
|
|
163
|
+
class: "sun-cascader-option-icon",
|
|
164
|
+
name: "checkmark"
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
key: "0"
|
|
168
|
+
} : void 0
|
|
169
|
+
]), 1032, ["class", "onTap"]))), 128)),
|
|
170
|
+
K.value.length ? y("", !0) : (a(), f(n(Ue), { key: 0 }))
|
|
171
|
+
], 4)) : (a(), r(p, { key: 2 }, [
|
|
172
|
+
H.value ? (a(), r("van-tabs", {
|
|
102
173
|
key: 0,
|
|
174
|
+
id: n(A),
|
|
103
175
|
class: "sun-cascader-tabs",
|
|
104
|
-
active:
|
|
176
|
+
active: n(I),
|
|
105
177
|
"line-width": "30px",
|
|
106
178
|
"line-height": "4px",
|
|
107
179
|
animated: "true",
|
|
108
|
-
onChange:
|
|
180
|
+
onChange: t[4] || (t[4] = (l) => I.value = l.detail.index)
|
|
109
181
|
}, [
|
|
110
|
-
(
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
key:
|
|
114
|
-
name:
|
|
182
|
+
(a(!0), r(p, null, $(_.value, (l, u) => {
|
|
183
|
+
var c;
|
|
184
|
+
return a(), r("van-tab", {
|
|
185
|
+
key: l.value,
|
|
186
|
+
name: u,
|
|
115
187
|
class: "sun-cascader-tab",
|
|
116
|
-
title:
|
|
188
|
+
title: l.label
|
|
117
189
|
}, [
|
|
118
|
-
|
|
119
|
-
class: "sun-cascader-
|
|
120
|
-
style: R(
|
|
190
|
+
C("view", {
|
|
191
|
+
class: "sun-cascader-options",
|
|
192
|
+
style: R(W.value)
|
|
121
193
|
}, [
|
|
122
|
-
(
|
|
123
|
-
key:
|
|
124
|
-
class:
|
|
194
|
+
(a(!0), r(p, null, $(((c = l.parent) == null ? void 0 : c.children) || Q.value, (m, V) => (a(), f(n(D), {
|
|
195
|
+
key: V,
|
|
196
|
+
class: F(["sun-cascader-option", { "sun-cascader-option-active": l.value === m.value }]),
|
|
125
197
|
clickable: !0,
|
|
126
|
-
onTap: (
|
|
127
|
-
},
|
|
128
|
-
default:
|
|
129
|
-
|
|
198
|
+
onTap: (q) => E(m)
|
|
199
|
+
}, P({
|
|
200
|
+
default: d(() => [
|
|
201
|
+
j(k(m.label) + " ", 1)
|
|
130
202
|
]),
|
|
131
203
|
_: 2
|
|
132
204
|
}, [
|
|
133
|
-
|
|
205
|
+
l.value === m.value ? {
|
|
134
206
|
name: "end",
|
|
135
|
-
fn:
|
|
136
|
-
|
|
207
|
+
fn: d(() => [
|
|
208
|
+
w(n(g), {
|
|
137
209
|
class: "sun-cascader-option-icon",
|
|
138
210
|
name: "checkmark"
|
|
139
211
|
})
|
|
@@ -142,43 +214,54 @@ const L = Y, r = Z, t = x, b = ee, k = le, g = ae, ge = te, we = ne, s = oe, Ke
|
|
|
142
214
|
} : void 0
|
|
143
215
|
]), 1032, ["class", "onTap"]))), 128))
|
|
144
216
|
], 4)
|
|
145
|
-
], 8,
|
|
217
|
+
], 8, Je);
|
|
146
218
|
}), 128)),
|
|
147
|
-
|
|
219
|
+
O.value ? y("", !0) : (a(), r("van-tab", {
|
|
148
220
|
key: 0,
|
|
149
|
-
name:
|
|
221
|
+
name: _.value.length,
|
|
150
222
|
class: "sun-cascader-tab",
|
|
151
223
|
title: "请选择",
|
|
152
|
-
"title-style": "color
|
|
224
|
+
"title-style": "color:var(--color-medium-tint);font-weight:normal;font-size:14px"
|
|
153
225
|
}, [
|
|
154
|
-
|
|
226
|
+
C("view", {
|
|
155
227
|
class: "sun-cascader-list",
|
|
156
|
-
style: R(
|
|
228
|
+
style: R(W.value)
|
|
157
229
|
}, [
|
|
158
|
-
(
|
|
159
|
-
key:
|
|
230
|
+
(a(!0), r(p, null, $(ue.value, (l) => (a(), f(n(D), {
|
|
231
|
+
key: l.value,
|
|
160
232
|
class: "sun-cascader-option",
|
|
161
233
|
clickable: !0,
|
|
162
|
-
onTap: (
|
|
234
|
+
onTap: (u) => E(l)
|
|
163
235
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
236
|
+
default: d(() => [
|
|
237
|
+
j(k(l.label), 1)
|
|
166
238
|
]),
|
|
167
239
|
_: 2
|
|
168
240
|
}, 1032, ["onTap"]))), 128))
|
|
169
241
|
], 4)
|
|
170
|
-
], 8,
|
|
171
|
-
], 40,
|
|
242
|
+
], 8, Ke))
|
|
243
|
+
], 40, He)) : y("", !0)
|
|
244
|
+
], 64))
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, [
|
|
248
|
+
G.value ? {
|
|
249
|
+
name: "extra",
|
|
250
|
+
fn: d(() => [
|
|
251
|
+
C("view", {
|
|
252
|
+
class: "sun-cascader-clear-btn",
|
|
253
|
+
onTap: t[2] || (t[2] = (l) => M())
|
|
254
|
+
}, "清除", 32)
|
|
172
255
|
]),
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
]),
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
256
|
+
key: "0"
|
|
257
|
+
} : void 0
|
|
258
|
+
]), 1032, ["show", "title"])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
})
|
|
262
|
+
], 64));
|
|
180
263
|
}
|
|
181
264
|
});
|
|
182
265
|
export {
|
|
183
|
-
|
|
266
|
+
et as default
|
|
184
267
|
};
|