@rft-rc/recycle-ui 0.0.1-rc.7 → 0.0.2-rc.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/dist/components/button/index.vue.d.ts +18 -6
- package/dist/components/button/index.vue.d.ts.map +1 -1
- package/dist/components/card/index.vue.d.ts +2 -2
- package/dist/components/card/index.vue.d.ts.map +1 -1
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.vue.d.ts +1 -1
- package/dist/components/icon/index.vue.d.ts.map +1 -1
- package/dist/components/search-area/index.d.ts +10 -0
- package/dist/components/search-area/index.d.ts.map +1 -0
- package/dist/components/search-area/index.vue.d.ts +51 -0
- package/dist/components/search-area/index.vue.d.ts.map +1 -0
- package/dist/favicon.svg +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +546 -294
- package/dist/index.mjs.map +1 -1
- package/dist/logo.svg +22 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,50 +1,119 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as W, inject as z, computed as _, onMounted as be, createElementBlock as m, openBlock as r, normalizeStyle as A, normalizeClass as V, createCommentVNode as k, toDisplayString as x, renderSlot as C, Fragment as M, createBlock as q, createTextVNode as H, createElementVNode as $, ref as I, watchEffect as Le, provide as F, renderList as Y, onUnmounted as ke, Teleport as Ne, createVNode as L, Transition as le, withCtx as O, createApp as Be, reactive as We, TransitionGroup as Te, render as $e, watch as ie, nextTick as ue, unref as K } from "vue";
|
|
2
|
+
const ze = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "rc-icon__unicode"
|
|
5
|
+
}, Me = /* @__PURE__ */ W({
|
|
6
|
+
name: "rc-icon",
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
name: {},
|
|
10
|
+
size: { default: 16 },
|
|
11
|
+
color: { default: "" },
|
|
12
|
+
spin: { type: Boolean, default: !1 },
|
|
13
|
+
code: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const t = e, a = z(re, {}), i = _(() => (a == null ? void 0 : a.iconClass) || "iconfont"), v = _(() => t.name || ""), f = _(() => typeof t.size == "number" ? `${t.size}px` : t.size || "16px"), u = _(() => ({
|
|
17
|
+
fontSize: f.value,
|
|
18
|
+
color: t.color || void 0,
|
|
19
|
+
lineHeight: 1,
|
|
20
|
+
fontFamily: (a == null ? void 0 : a.iconClass) || "iconfont"
|
|
21
|
+
})), o = _(() => {
|
|
22
|
+
const l = t.code;
|
|
23
|
+
if (l == null || l === "" || l === 0) return "";
|
|
24
|
+
if (typeof l == "number")
|
|
25
|
+
return String.fromCharCode(l);
|
|
26
|
+
const c = String(l).replace(/^0x/i, ""), b = parseInt(c, 16);
|
|
27
|
+
return Number.isNaN(b) ? "" : String.fromCharCode(b);
|
|
28
|
+
});
|
|
29
|
+
return be(() => {
|
|
30
|
+
if (typeof window > "u") return;
|
|
31
|
+
const l = a && a.iconCssUrl || Ce.iconCssUrl;
|
|
32
|
+
if (!l) return;
|
|
33
|
+
const c = `link[rel="stylesheet"][data-rcui-icon="true"][href="${l}"]`;
|
|
34
|
+
if (!document.head.querySelector(c)) {
|
|
35
|
+
const y = document.createElement("link");
|
|
36
|
+
y.rel = "stylesheet", y.href = l, y.setAttribute("data-rcui-icon", "true"), document.head.appendChild(y);
|
|
37
|
+
}
|
|
38
|
+
}), (l, c) => (r(), m("i", {
|
|
39
|
+
class: V(["rc-icon", [i.value, v.value, { "rc-icon--spin": e.spin }]]),
|
|
40
|
+
style: A(u.value),
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}, [
|
|
43
|
+
o.value ? (r(), m("span", ze, x(o.value), 1)) : k("", !0)
|
|
44
|
+
], 6));
|
|
45
|
+
}
|
|
46
|
+
}), T = (e, t) => {
|
|
47
|
+
const a = e.__vccOpts || e;
|
|
48
|
+
for (const [i, v] of t)
|
|
49
|
+
a[i] = v;
|
|
50
|
+
return a;
|
|
51
|
+
}, D = /* @__PURE__ */ T(Me, [["__scopeId", "data-v-3857a892"]]), Ue = ["disabled"], Fe = {
|
|
3
52
|
key: 0,
|
|
4
53
|
class: "rc-button__spinner"
|
|
5
|
-
},
|
|
54
|
+
}, Ge = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "rc-button__icon rc-button__icon--prefix"
|
|
57
|
+
}, Oe = {
|
|
58
|
+
key: 2,
|
|
59
|
+
class: "rc-button__icon rc-button__icon--suffix"
|
|
60
|
+
}, Pe = /* @__PURE__ */ W({
|
|
6
61
|
__name: "index",
|
|
7
62
|
props: {
|
|
8
63
|
type: { default: "default" },
|
|
9
64
|
size: { default: "medium" },
|
|
10
|
-
|
|
65
|
+
mode: { default: void 0 },
|
|
11
66
|
block: { type: Boolean, default: !1 },
|
|
12
67
|
label: { default: "" },
|
|
13
68
|
round: { type: [Number, String, Boolean], default: 6 },
|
|
14
69
|
disabled: { type: Boolean, default: !1 },
|
|
15
|
-
loading: { type: Boolean, default: !1 }
|
|
70
|
+
loading: { type: Boolean, default: !1 },
|
|
71
|
+
preIcon: { default: "" },
|
|
72
|
+
suffixIcon: { default: "" }
|
|
16
73
|
},
|
|
17
74
|
emits: ["click"],
|
|
18
75
|
setup(e, { emit: t }) {
|
|
19
|
-
const
|
|
20
|
-
!
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
return typeof
|
|
76
|
+
const a = e, i = t, v = (u) => {
|
|
77
|
+
!a.disabled && !a.loading && i("click", u);
|
|
78
|
+
}, f = _(() => {
|
|
79
|
+
const u = a.round;
|
|
80
|
+
return typeof u == "boolean" ? u ? "999px" : "6px" : typeof u == "number" ? `${u}px` : String(u);
|
|
24
81
|
});
|
|
25
|
-
return (
|
|
26
|
-
class:
|
|
27
|
-
style:
|
|
82
|
+
return (u, o) => (r(), m("button", {
|
|
83
|
+
class: V(["rc-button", [`rc-button--${e.type}`, `rc-button--${e.size}`, e.mode ? `rc-button--${e.mode}` : "", { "is-block": e.block, "is-disabled": e.disabled, "is-loading": e.loading }]]),
|
|
84
|
+
style: A({ borderRadius: f.value }),
|
|
28
85
|
disabled: e.disabled || e.loading,
|
|
29
|
-
onClick:
|
|
86
|
+
onClick: v
|
|
30
87
|
}, [
|
|
31
|
-
e.loading ? (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
88
|
+
e.loading ? (r(), m("span", Fe)) : (r(), m(M, { key: 1 }, [
|
|
89
|
+
e.preIcon || u.$slots.preIcon ? (r(), m("span", Ge, [
|
|
90
|
+
C(u.$slots, "preIcon", {}, () => [
|
|
91
|
+
e.preIcon ? (r(), q(D, {
|
|
92
|
+
key: 0,
|
|
93
|
+
name: e.preIcon
|
|
94
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
95
|
+
], !0)
|
|
96
|
+
])) : k("", !0)
|
|
97
|
+
], 64)),
|
|
98
|
+
C(u.$slots, "default", {}, () => [
|
|
99
|
+
H(x(e.label), 1)
|
|
100
|
+
], !0),
|
|
101
|
+
!e.loading && (e.suffixIcon || u.$slots.suffixIcon) ? (r(), m("span", Oe, [
|
|
102
|
+
C(u.$slots, "suffixIcon", {}, () => [
|
|
103
|
+
e.suffixIcon ? (r(), q(D, {
|
|
104
|
+
key: 0,
|
|
105
|
+
name: e.suffixIcon
|
|
106
|
+
}, null, 8, ["name"])) : k("", !0)
|
|
107
|
+
], !0)
|
|
108
|
+
])) : k("", !0)
|
|
109
|
+
], 14, Ue));
|
|
36
110
|
}
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return n;
|
|
42
|
-
}, G = /* @__PURE__ */ w(me, [["__scopeId", "data-v-a70e95bb"]]);
|
|
43
|
-
G.name = "rc-button";
|
|
44
|
-
function H(e) {
|
|
45
|
-
return e.component(G.name, G), e;
|
|
111
|
+
}), Q = /* @__PURE__ */ T(Pe, [["__scopeId", "data-v-3ed3109f"]]);
|
|
112
|
+
Q.name = "rc-button";
|
|
113
|
+
function de(e) {
|
|
114
|
+
return e.component(Q.name, Q), e;
|
|
46
115
|
}
|
|
47
|
-
const
|
|
116
|
+
const je = { class: "rc-desc-item__value" }, qe = /* @__PURE__ */ W({
|
|
48
117
|
name: "rc-descriptions-item",
|
|
49
118
|
__name: "item",
|
|
50
119
|
props: {
|
|
@@ -55,42 +124,42 @@ const pe = { class: "rc-desc-item__value" }, ye = /* @__PURE__ */ S({
|
|
|
55
124
|
},
|
|
56
125
|
setup(e) {
|
|
57
126
|
const t = e;
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
return Math.min(
|
|
62
|
-
}),
|
|
63
|
-
const
|
|
64
|
-
if (!
|
|
65
|
-
const
|
|
66
|
-
return `calc((100% - ${
|
|
67
|
-
}), o =
|
|
68
|
-
const
|
|
69
|
-
return
|
|
127
|
+
z("rcDescItemWidth", void 0), z("rcDescSingleWidth", ""), z("rcDescGap", "0px");
|
|
128
|
+
const a = z("rcDescGapPx", 0), i = z("rcDescColCount", 1), v = z("rcDescLabelWidth", ""), f = _(() => {
|
|
129
|
+
const l = typeof t.span == "string" ? parseInt(t.span, 10) : t.span, c = typeof (i == null ? void 0 : i.value) == "number" ? i.value : i, b = !Number.isNaN(l) && l > 0 ? l : 1;
|
|
130
|
+
return Math.min(b, c || 1);
|
|
131
|
+
}), u = _(() => {
|
|
132
|
+
const l = typeof (i == null ? void 0 : i.value) == "number" ? i.value : i, c = typeof (a == null ? void 0 : a.value) == "number" ? a.value : a, b = f.value;
|
|
133
|
+
if (!l || l <= 1 || b >= l) return "100%";
|
|
134
|
+
const y = (l - 1) * c, g = (b - 1) * c;
|
|
135
|
+
return `calc((100% - ${y}px) * ${b} / ${l} + ${g}px)`;
|
|
136
|
+
}), o = _(() => {
|
|
137
|
+
const l = typeof (v == null ? void 0 : v.value) == "string" ? v.value : v, c = t.labelWidth !== "" ? t.labelWidth : l || "";
|
|
138
|
+
return c ? { width: typeof c == "number" ? `${c}px` : String(c), flex: "0 0 auto" } : {};
|
|
70
139
|
});
|
|
71
|
-
return (
|
|
140
|
+
return (l, c) => (r(), m("div", {
|
|
72
141
|
class: "rc-desc-item",
|
|
73
|
-
style:
|
|
142
|
+
style: A({ width: u.value, flex: `0 0 ${u.value}` })
|
|
74
143
|
}, [
|
|
75
|
-
|
|
144
|
+
$("div", {
|
|
76
145
|
class: "rc-desc-item__label",
|
|
77
|
-
style:
|
|
146
|
+
style: A(o.value)
|
|
78
147
|
}, [
|
|
79
|
-
|
|
80
|
-
|
|
148
|
+
C(l.$slots, "label", {}, () => [
|
|
149
|
+
H(x(e.label), 1)
|
|
81
150
|
], !0)
|
|
82
151
|
], 4),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
152
|
+
$("div", je, [
|
|
153
|
+
C(l.$slots, "default", {}, () => [
|
|
154
|
+
H(x(e.value), 1)
|
|
86
155
|
], !0)
|
|
87
156
|
])
|
|
88
157
|
], 4));
|
|
89
158
|
}
|
|
90
|
-
}),
|
|
159
|
+
}), P = /* @__PURE__ */ T(qe, [["__scopeId", "data-v-970d0b99"]]), He = { class: "rc-descriptions" }, Ke = {
|
|
91
160
|
key: 0,
|
|
92
161
|
class: "rc-descriptions__title"
|
|
93
|
-
},
|
|
162
|
+
}, Ye = /* @__PURE__ */ W({
|
|
94
163
|
name: "rc-descriptions",
|
|
95
164
|
__name: "index",
|
|
96
165
|
props: {
|
|
@@ -102,66 +171,66 @@ const pe = { class: "rc-desc-item__value" }, ye = /* @__PURE__ */ S({
|
|
|
102
171
|
keyMap: {}
|
|
103
172
|
},
|
|
104
173
|
setup(e) {
|
|
105
|
-
const t = e,
|
|
106
|
-
const
|
|
107
|
-
return !Number.isNaN(
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
|
|
174
|
+
const t = e, a = I(null), i = _(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)), v = _(() => {
|
|
175
|
+
const c = typeof t.column == "string" ? Number.parseInt(t.column, 10) : t.column ?? 1;
|
|
176
|
+
return !Number.isNaN(c) && c > 0 ? c : 1;
|
|
177
|
+
}), f = I("100%"), u = I("100%");
|
|
178
|
+
Le(() => {
|
|
179
|
+
const c = v.value;
|
|
180
|
+
if (c <= 1)
|
|
181
|
+
f.value = "100%", u.value = "100%";
|
|
113
182
|
else {
|
|
114
|
-
const
|
|
115
|
-
|
|
183
|
+
const b = typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0, g = `calc((100% - ${(c - 1) * b}px) / ${c})`;
|
|
184
|
+
u.value = g, f.value = g;
|
|
116
185
|
}
|
|
117
|
-
}),
|
|
118
|
-
const o =
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
var
|
|
122
|
-
const
|
|
123
|
-
return (
|
|
124
|
-
label:
|
|
125
|
-
value:
|
|
186
|
+
}), F("rcDescItemWidth", f), F("rcDescSingleWidth", u), F("rcDescColCount", v), F("rcDescGapPx", _(() => typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0));
|
|
187
|
+
const o = _(() => t.labelWidth === "" || t.labelWidth === void 0 ? "" : typeof t.labelWidth == "number" ? `${t.labelWidth}px` : String(t.labelWidth));
|
|
188
|
+
F("rcDescLabelWidth", o), F("rcDescGap", _(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)));
|
|
189
|
+
const l = _(() => {
|
|
190
|
+
var y, g, h;
|
|
191
|
+
const c = ((y = t.keyMap) == null ? void 0 : y.key) ?? "label", b = ((g = t.keyMap) == null ? void 0 : g.value) ?? "value";
|
|
192
|
+
return (h = t.data) != null && h.length ? t.data.map((E) => ({
|
|
193
|
+
label: E == null ? void 0 : E[c],
|
|
194
|
+
value: E == null ? void 0 : E[b]
|
|
126
195
|
})) : [];
|
|
127
196
|
});
|
|
128
|
-
return (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
197
|
+
return (c, b) => (r(), m("div", He, [
|
|
198
|
+
c.$slots.title || e.title ? (r(), m("div", Ke, [
|
|
199
|
+
C(c.$slots, "title", {}, () => [
|
|
200
|
+
H(x(e.title), 1)
|
|
132
201
|
], !0)
|
|
133
|
-
])) :
|
|
134
|
-
|
|
202
|
+
])) : k("", !0),
|
|
203
|
+
$("div", {
|
|
135
204
|
class: "rc-descriptions__body",
|
|
136
|
-
style:
|
|
205
|
+
style: A({ gap: i.value }),
|
|
137
206
|
ref_key: "wrapEl",
|
|
138
|
-
ref:
|
|
207
|
+
ref: a
|
|
139
208
|
}, [
|
|
140
|
-
|
|
141
|
-
key:
|
|
142
|
-
label:
|
|
143
|
-
value:
|
|
209
|
+
l.value.length ? (r(!0), m(M, { key: 0 }, Y(l.value, (y, g) => (r(), q(P, {
|
|
210
|
+
key: g,
|
|
211
|
+
label: y.label,
|
|
212
|
+
value: y.value,
|
|
144
213
|
"label-width": e.labelWidth
|
|
145
|
-
}, null, 8, ["label", "value", "label-width"]))), 128)) :
|
|
214
|
+
}, null, 8, ["label", "value", "label-width"]))), 128)) : C(c.$slots, "default", { key: 1 }, void 0, !0)
|
|
146
215
|
], 4)
|
|
147
216
|
]));
|
|
148
217
|
}
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
function
|
|
153
|
-
return e.component(
|
|
218
|
+
}), J = /* @__PURE__ */ T(Ye, [["__scopeId", "data-v-5fcaa235"]]);
|
|
219
|
+
J.name = "rc-descriptions";
|
|
220
|
+
P.name = "rc-descriptions-item";
|
|
221
|
+
function fe(e) {
|
|
222
|
+
return e.component(J.name, J), e.component("RcDescriptions", J), e.component(P.name, P), e.component("RcDescriptionsItem", P), e;
|
|
154
223
|
}
|
|
155
|
-
const
|
|
224
|
+
const Lt = J, Nt = P, Je = { class: "rc-card__title" }, Qe = { class: "rc-card__title-text" }, Xe = {
|
|
156
225
|
key: 0,
|
|
157
226
|
class: "rc-card__status"
|
|
158
|
-
},
|
|
227
|
+
}, Ze = {
|
|
159
228
|
key: 1,
|
|
160
229
|
class: "rc-card__divider"
|
|
161
|
-
},
|
|
230
|
+
}, et = {
|
|
162
231
|
key: 2,
|
|
163
232
|
class: "rc-card__action"
|
|
164
|
-
},
|
|
233
|
+
}, tt = /* @__PURE__ */ W({
|
|
165
234
|
name: "rc-card",
|
|
166
235
|
__name: "index",
|
|
167
236
|
props: {
|
|
@@ -179,84 +248,84 @@ const He = B, Ke = R, he = { class: "rc-card__title" }, _e = { class: "rc-card__
|
|
|
179
248
|
height: { default: "" }
|
|
180
249
|
},
|
|
181
250
|
setup(e) {
|
|
182
|
-
const t = e,
|
|
251
|
+
const t = e, a = _(() => {
|
|
183
252
|
const o = typeof t.round == "boolean" ? t.round ? "12px" : "0" : typeof t.round == "number" ? `${t.round}px` : String(t.round);
|
|
184
253
|
return {
|
|
185
254
|
backgroundColor: t.color || "var(--rc-white)",
|
|
186
255
|
borderRadius: o,
|
|
187
|
-
boxShadow:
|
|
188
|
-
width:
|
|
189
|
-
height:
|
|
256
|
+
boxShadow: u(t.elevation),
|
|
257
|
+
width: f(t.width),
|
|
258
|
+
height: f(t.height)
|
|
190
259
|
};
|
|
191
|
-
}),
|
|
260
|
+
}), i = _(() => t.padding || "16px"), v = _(
|
|
192
261
|
() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)
|
|
193
262
|
);
|
|
194
|
-
function
|
|
263
|
+
function f(o) {
|
|
195
264
|
return o == null || o === "" ? "" : typeof o == "number" ? `${o}px` : String(o);
|
|
196
265
|
}
|
|
197
|
-
function
|
|
266
|
+
function u(o) {
|
|
198
267
|
if (!o || o <= 0) return "none";
|
|
199
|
-
const
|
|
200
|
-
return `0 ${Math.round(
|
|
201
|
-
|
|
202
|
-
)}px ${Math.round(
|
|
268
|
+
const l = 4 * o;
|
|
269
|
+
return `0 ${Math.round(l / 2)}px ${l}px rgba(0,0,0,0.06), 0 ${Math.round(
|
|
270
|
+
l / 4
|
|
271
|
+
)}px ${Math.round(l / 2)}px rgba(0,0,0,0.04)`;
|
|
203
272
|
}
|
|
204
|
-
return (o,
|
|
205
|
-
class:
|
|
206
|
-
style:
|
|
273
|
+
return (o, l) => (r(), m("div", {
|
|
274
|
+
class: V(["rc-card", [{ "rc-card--bordered": e.bordered }]]),
|
|
275
|
+
style: A(a.value)
|
|
207
276
|
}, [
|
|
208
|
-
o.$slots.title || e.title || o.$slots.status || e.status ? (
|
|
277
|
+
o.$slots.title || e.title || o.$slots.status || e.status ? (r(), m("div", {
|
|
209
278
|
key: 0,
|
|
210
279
|
class: "rc-card__top",
|
|
211
|
-
style:
|
|
280
|
+
style: A({ backgroundColor: e.topBgColor || "rgba(29, 133, 252, 0.05)" })
|
|
212
281
|
}, [
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
282
|
+
$("div", Je, [
|
|
283
|
+
C(o.$slots, "title", {}, () => [
|
|
284
|
+
$("span", Qe, x(e.title), 1)
|
|
216
285
|
], !0)
|
|
217
286
|
]),
|
|
218
|
-
o.$slots.status || e.status ? (
|
|
219
|
-
|
|
220
|
-
|
|
287
|
+
o.$slots.status || e.status ? (r(), m("div", Xe, [
|
|
288
|
+
C(o.$slots, "status", {}, () => [
|
|
289
|
+
$("span", {
|
|
221
290
|
class: "rc-card__status-text",
|
|
222
|
-
style:
|
|
223
|
-
},
|
|
291
|
+
style: A({ color: e.statusColor || "var(--rc-primary)" })
|
|
292
|
+
}, x(e.status), 5)
|
|
224
293
|
], !0)
|
|
225
|
-
])) :
|
|
226
|
-
], 4)) :
|
|
227
|
-
|
|
294
|
+
])) : k("", !0)
|
|
295
|
+
], 4)) : k("", !0),
|
|
296
|
+
$("div", {
|
|
228
297
|
class: "rc-card__body",
|
|
229
|
-
style:
|
|
298
|
+
style: A({ padding: i.value, gap: v.value })
|
|
230
299
|
}, [
|
|
231
|
-
|
|
232
|
-
|
|
300
|
+
C(o.$slots, "content", {}, () => [
|
|
301
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
233
302
|
], !0)
|
|
234
303
|
], 4),
|
|
235
|
-
o.$slots.action ? (
|
|
236
|
-
o.$slots.action ? (
|
|
237
|
-
|
|
238
|
-
])) :
|
|
304
|
+
o.$slots.action ? (r(), m("div", Ze)) : k("", !0),
|
|
305
|
+
o.$slots.action ? (r(), m("div", et, [
|
|
306
|
+
C(o.$slots, "action", {}, void 0, !0)
|
|
307
|
+
])) : k("", !0)
|
|
239
308
|
], 6));
|
|
240
309
|
}
|
|
241
|
-
}),
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
function
|
|
245
|
-
return e.component(
|
|
310
|
+
}), te = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-a7b95214"]]);
|
|
311
|
+
te.name = "rc-card";
|
|
312
|
+
const nt = "RcCard";
|
|
313
|
+
function me(e) {
|
|
314
|
+
return e.component(te.name, te), e.component(nt, te), e;
|
|
246
315
|
}
|
|
247
|
-
const
|
|
316
|
+
const st = {
|
|
248
317
|
key: 0,
|
|
249
318
|
class: "rc-toast__mask"
|
|
250
|
-
},
|
|
319
|
+
}, at = { class: "rc-toast__content" }, lt = {
|
|
251
320
|
key: 0,
|
|
252
321
|
class: "rc-toast__spinner"
|
|
253
|
-
},
|
|
322
|
+
}, rt = {
|
|
254
323
|
key: 1,
|
|
255
324
|
class: "rc-toast__icon rc-toast__icon--success"
|
|
256
|
-
},
|
|
325
|
+
}, ot = {
|
|
257
326
|
key: 2,
|
|
258
327
|
class: "rc-toast__icon rc-toast__icon--fail"
|
|
259
|
-
},
|
|
328
|
+
}, ct = { class: "rc-toast__text" }, it = /* @__PURE__ */ W({
|
|
260
329
|
__name: "index",
|
|
261
330
|
props: {
|
|
262
331
|
message: { default: "" },
|
|
@@ -266,250 +335,433 @@ const we = {
|
|
|
266
335
|
onAfterLeave: {}
|
|
267
336
|
},
|
|
268
337
|
setup(e, { expose: t }) {
|
|
269
|
-
const
|
|
270
|
-
let
|
|
271
|
-
function
|
|
272
|
-
|
|
338
|
+
const a = e, i = I(!0);
|
|
339
|
+
let v;
|
|
340
|
+
function f() {
|
|
341
|
+
v && (clearTimeout(v), v = null);
|
|
273
342
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
343
|
+
function u() {
|
|
344
|
+
f(), i.value = !1;
|
|
276
345
|
}
|
|
277
|
-
return t({ close:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
},
|
|
281
|
-
}),
|
|
282
|
-
|
|
283
|
-
}), (o,
|
|
284
|
-
(
|
|
285
|
-
|
|
346
|
+
return t({ close: u }), be(() => {
|
|
347
|
+
a.duration && a.duration > 0 && (v = setTimeout(() => {
|
|
348
|
+
u();
|
|
349
|
+
}, a.duration));
|
|
350
|
+
}), ke(() => {
|
|
351
|
+
f();
|
|
352
|
+
}), (o, l) => (r(), m(M, null, [
|
|
353
|
+
(r(), q(Ne, { to: "body" }, [
|
|
354
|
+
L(le, {
|
|
286
355
|
name: "rc-toast-fade",
|
|
287
356
|
onAfterLeave: e.onAfterLeave
|
|
288
357
|
}, {
|
|
289
|
-
default:
|
|
290
|
-
|
|
358
|
+
default: O(() => [
|
|
359
|
+
i.value ? (r(), m("div", {
|
|
291
360
|
key: 0,
|
|
292
|
-
class:
|
|
361
|
+
class: V(["rc-toast", [`rc-toast--${e.type}`]])
|
|
293
362
|
}, [
|
|
294
|
-
e.mask ? (
|
|
295
|
-
|
|
296
|
-
e.type === "loading" ? (
|
|
297
|
-
|
|
363
|
+
e.mask ? (r(), m("div", st)) : k("", !0),
|
|
364
|
+
$("div", at, [
|
|
365
|
+
e.type === "loading" ? (r(), m("div", lt)) : e.type === "success" ? (r(), m("div", rt)) : e.type === "fail" ? (r(), m("div", ot)) : k("", !0),
|
|
366
|
+
$("div", ct, x(e.message), 1)
|
|
298
367
|
])
|
|
299
|
-
], 2)) :
|
|
368
|
+
], 2)) : k("", !0)
|
|
300
369
|
]),
|
|
301
370
|
_: 1
|
|
302
371
|
}, 8, ["onAfterLeave"])
|
|
303
372
|
])),
|
|
304
|
-
|
|
373
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
305
374
|
], 64));
|
|
306
375
|
}
|
|
307
|
-
}),
|
|
308
|
-
let
|
|
309
|
-
function
|
|
310
|
-
|
|
376
|
+
}), ne = /* @__PURE__ */ T(it, [["__scopeId", "data-v-d234c9c5"]]);
|
|
377
|
+
let U = null, j = null;
|
|
378
|
+
function ve() {
|
|
379
|
+
U && (U.unmount(), U = null), j && (document.body.removeChild(j), j = null);
|
|
311
380
|
}
|
|
312
|
-
function
|
|
381
|
+
function Bt(e) {
|
|
313
382
|
const t = typeof e == "string" ? { message: e } : e || {};
|
|
314
|
-
|
|
315
|
-
const
|
|
383
|
+
ve(), j = document.createElement("div"), document.body.appendChild(j);
|
|
384
|
+
const a = {
|
|
316
385
|
message: t.message,
|
|
317
386
|
type: t.type ?? "text",
|
|
318
387
|
duration: t.duration ?? 2e3,
|
|
319
388
|
mask: t.mask ?? !1,
|
|
320
389
|
onAfterLeave: () => {
|
|
321
|
-
var
|
|
322
|
-
|
|
390
|
+
var i;
|
|
391
|
+
ve(), (i = t.onClose) == null || i.call(t);
|
|
323
392
|
}
|
|
324
393
|
};
|
|
325
|
-
return
|
|
326
|
-
close:
|
|
394
|
+
return U = Be(ne, a), U.mount(j), {
|
|
395
|
+
close: ut
|
|
327
396
|
};
|
|
328
397
|
}
|
|
329
|
-
function
|
|
330
|
-
var e, t,
|
|
331
|
-
|
|
398
|
+
function ut() {
|
|
399
|
+
var e, t, a;
|
|
400
|
+
U && ((a = (t = (e = U._instance) == null ? void 0 : e.exposed) == null ? void 0 : t.close) == null || a.call(t));
|
|
332
401
|
}
|
|
333
|
-
|
|
334
|
-
function
|
|
335
|
-
return e.component(
|
|
402
|
+
ne.name = "rc-toast";
|
|
403
|
+
function pe(e) {
|
|
404
|
+
return e.component(ne.name, ne), e;
|
|
336
405
|
}
|
|
337
|
-
const
|
|
406
|
+
const dt = {
|
|
338
407
|
class: "rc-message",
|
|
339
408
|
role: "alert",
|
|
340
409
|
"aria-live": "polite"
|
|
341
|
-
},
|
|
410
|
+
}, ft = { class: "rc-message__content" }, mt = /* @__PURE__ */ W({
|
|
342
411
|
__name: "index",
|
|
343
412
|
setup(e, { expose: t }) {
|
|
344
|
-
const
|
|
345
|
-
let
|
|
346
|
-
function
|
|
347
|
-
const o =
|
|
348
|
-
o >= 0 &&
|
|
413
|
+
const a = We([]);
|
|
414
|
+
let i = 1;
|
|
415
|
+
function v(u) {
|
|
416
|
+
const o = a.findIndex((l) => l.id === u);
|
|
417
|
+
o >= 0 && a.splice(o, 1);
|
|
349
418
|
}
|
|
350
|
-
function u
|
|
351
|
-
const
|
|
352
|
-
return
|
|
419
|
+
function f(u, o, l) {
|
|
420
|
+
const c = i++;
|
|
421
|
+
return a.push({ id: c, type: u, content: o, duration: l }), l > 0 && window.setTimeout(() => v(c), l), c;
|
|
353
422
|
}
|
|
354
|
-
return t({ add:
|
|
355
|
-
|
|
423
|
+
return t({ add: f, remove: v }), (u, o) => (r(), m("div", dt, [
|
|
424
|
+
L(Te, {
|
|
356
425
|
name: "rc-message-fade",
|
|
357
426
|
tag: "div"
|
|
358
427
|
}, {
|
|
359
|
-
default:
|
|
360
|
-
(
|
|
361
|
-
key:
|
|
362
|
-
class:
|
|
428
|
+
default: O(() => [
|
|
429
|
+
(r(!0), m(M, null, Y(a, (l) => (r(), m("div", {
|
|
430
|
+
key: l.id,
|
|
431
|
+
class: V(["rc-message__item", `rc-message--${l.type}`])
|
|
363
432
|
}, [
|
|
364
|
-
|
|
433
|
+
$("span", ft, x(l.content), 1)
|
|
365
434
|
], 2))), 128))
|
|
366
435
|
]),
|
|
367
436
|
_: 1
|
|
368
437
|
})
|
|
369
438
|
]));
|
|
370
439
|
}
|
|
371
|
-
}),
|
|
372
|
-
let
|
|
373
|
-
function
|
|
440
|
+
}), vt = /* @__PURE__ */ T(mt, [["__scopeId", "data-v-87811df0"]]);
|
|
441
|
+
let B = null, N = null;
|
|
442
|
+
function pt() {
|
|
374
443
|
var t;
|
|
375
|
-
if (
|
|
376
|
-
|
|
377
|
-
const e =
|
|
378
|
-
|
|
444
|
+
if (B && N) return;
|
|
445
|
+
B = document.createElement("div"), document.body.appendChild(B);
|
|
446
|
+
const e = L(vt, {});
|
|
447
|
+
$e(e, B), N = (t = e.component) == null ? void 0 : t.exposed;
|
|
379
448
|
}
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
|
|
383
|
-
const
|
|
384
|
-
return (
|
|
449
|
+
function G(e, t, a) {
|
|
450
|
+
var v;
|
|
451
|
+
pt();
|
|
452
|
+
const i = typeof a == "number" ? a : e === "loading" ? 0 : 2e3;
|
|
453
|
+
return (v = N == null ? void 0 : N.add) == null ? void 0 : v.call(N, e, t, i);
|
|
385
454
|
}
|
|
386
|
-
const
|
|
455
|
+
const yt = {
|
|
387
456
|
open(e) {
|
|
388
|
-
return
|
|
457
|
+
return G(e.type || "info", e.content, e.duration);
|
|
389
458
|
},
|
|
390
459
|
info(e, t) {
|
|
391
|
-
return
|
|
460
|
+
return G("info", e, t);
|
|
392
461
|
},
|
|
393
462
|
success(e, t) {
|
|
394
|
-
return
|
|
463
|
+
return G("success", e, t);
|
|
395
464
|
},
|
|
396
465
|
warning(e, t) {
|
|
397
|
-
return
|
|
466
|
+
return G("warning", e, t);
|
|
398
467
|
},
|
|
399
468
|
error(e, t) {
|
|
400
|
-
return
|
|
469
|
+
return G("error", e, t);
|
|
401
470
|
},
|
|
402
471
|
loading(e, t) {
|
|
403
|
-
return
|
|
472
|
+
return G("loading", e, t);
|
|
404
473
|
},
|
|
405
474
|
destroy() {
|
|
406
|
-
|
|
475
|
+
B && ($e(null, B), B.remove(), B = null, N = null);
|
|
407
476
|
}
|
|
408
477
|
};
|
|
409
|
-
function
|
|
410
|
-
return e.config.globalProperties.$message =
|
|
478
|
+
function ye(e) {
|
|
479
|
+
return e.config.globalProperties.$message = yt, e;
|
|
411
480
|
}
|
|
412
|
-
|
|
481
|
+
D.name = "rc-icon";
|
|
482
|
+
function he(e) {
|
|
483
|
+
return e.component(D.name, D), e.component("RcIcon", D), e;
|
|
484
|
+
}
|
|
485
|
+
const ht = { class: "rc-search-area" }, gt = { class: "rc-search-area__bar" }, _t = ["onClick"], bt = { class: "rc-search-area__item-label" }, kt = { class: "rc-search-area__panel-content" }, $t = {
|
|
413
486
|
key: 0,
|
|
414
|
-
class: "rc-
|
|
415
|
-
},
|
|
416
|
-
|
|
487
|
+
class: "rc-search-area__options-grid"
|
|
488
|
+
}, Ct = ["onClick"], xt = { class: "rc-search-area__option-label" }, St = {
|
|
489
|
+
key: 1,
|
|
490
|
+
class: "rc-search-area__options-grid"
|
|
491
|
+
}, wt = ["onClick"], It = { class: "rc-search-area__option-label" }, At = {
|
|
492
|
+
key: 2,
|
|
493
|
+
class: "rc-search-area__empty"
|
|
494
|
+
}, Rt = { class: "rc-search-area__panel-footer" }, Vt = /* @__PURE__ */ W({
|
|
495
|
+
name: "rc-search-area",
|
|
417
496
|
__name: "index",
|
|
418
497
|
props: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
spin: { type: Boolean, default: !1 },
|
|
423
|
-
code: { default: "" }
|
|
498
|
+
items: { default: () => [] },
|
|
499
|
+
modelValue: { default: () => ({}) },
|
|
500
|
+
showMask: { type: Boolean, default: !0 }
|
|
424
501
|
},
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
if (
|
|
435
|
-
return
|
|
436
|
-
const
|
|
437
|
-
|
|
502
|
+
emits: ["update:modelValue", "change", "confirm", "reset", "item-change"],
|
|
503
|
+
setup(e, { expose: t, emit: a }) {
|
|
504
|
+
const i = e, v = a, f = I(null), u = I(null), o = I(null), l = I({ top: "0px" }), c = async () => {
|
|
505
|
+
if (f.value === null || !u.value)
|
|
506
|
+
return;
|
|
507
|
+
await ue();
|
|
508
|
+
const s = u.value.getBoundingClientRect().top;
|
|
509
|
+
l.value = { top: `${s}px` };
|
|
510
|
+
}, b = (n) => {
|
|
511
|
+
if (f.value === null || !u.value)
|
|
512
|
+
return;
|
|
513
|
+
const s = n.target;
|
|
514
|
+
if (u.value.contains(s))
|
|
515
|
+
return;
|
|
516
|
+
const d = u.value.closest(".rc-search-area");
|
|
517
|
+
if (d) {
|
|
518
|
+
const p = d.querySelector(".rc-search-area__bar");
|
|
519
|
+
if (p && p.contains(s))
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
se();
|
|
523
|
+
};
|
|
524
|
+
ie(f, async (n) => {
|
|
525
|
+
n !== null ? (await ue(), c(), window.addEventListener("resize", c), window.addEventListener("scroll", c, !0), document.addEventListener("click", b, !0)) : (window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), document.removeEventListener("click", b, !0));
|
|
526
|
+
}), ke(() => {
|
|
527
|
+
window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), document.removeEventListener("click", b, !0);
|
|
438
528
|
});
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
529
|
+
const y = I({}), g = I({ ...i.modelValue });
|
|
530
|
+
ie(() => i.modelValue, (n) => {
|
|
531
|
+
g.value = { ...n || {} };
|
|
532
|
+
}, { deep: !0, immediate: !0 });
|
|
533
|
+
const h = _(() => f.value === null ? null : i.items[f.value]), E = _(() => {
|
|
534
|
+
if (!h.value) return "";
|
|
535
|
+
const n = De(h.value);
|
|
536
|
+
return n > 0 ? `(${n}项)` : "";
|
|
537
|
+
}), Se = (n) => {
|
|
538
|
+
const s = g.value[n.key];
|
|
539
|
+
if (s == null || s === "")
|
|
540
|
+
return n.label;
|
|
541
|
+
if (n.type === "single") {
|
|
542
|
+
const d = oe(n, s);
|
|
543
|
+
if (d)
|
|
544
|
+
return `${n.label}: ${X(d)}`;
|
|
545
|
+
} else {
|
|
546
|
+
const d = Array.isArray(s) ? s : [s];
|
|
547
|
+
if (d.length > 0) {
|
|
548
|
+
const p = d.map((S) => {
|
|
549
|
+
const w = oe(n, S);
|
|
550
|
+
return w ? X(w) : null;
|
|
551
|
+
}).filter((S) => S !== null);
|
|
552
|
+
if (p.length > 0)
|
|
553
|
+
return `${n.label}: ${p.join("、")}`;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return n.label;
|
|
557
|
+
}, we = (n) => {
|
|
558
|
+
const s = i.items[n];
|
|
442
559
|
if (!s) return;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
p.rel = "stylesheet", p.href = s, p.setAttribute("data-rcui-icon", "true"), document.head.appendChild(p);
|
|
560
|
+
if (f.value === n) {
|
|
561
|
+
f.value = null;
|
|
562
|
+
return;
|
|
447
563
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
|
|
564
|
+
const d = g.value[s.key];
|
|
565
|
+
s.type === "single" ? y.value[s.key] = d !== void 0 ? d : null : y.value[s.key] = d !== void 0 ? Array.isArray(d) ? [...d] : [d] : [], f.value = n;
|
|
566
|
+
}, se = () => {
|
|
567
|
+
f.value = null;
|
|
568
|
+
}, X = (n) => typeof n == "string" ? n : n.label || String(n.value), Z = (n) => typeof n == "string" ? n : n.value !== void 0 ? n.value : n, oe = (n, s) => n.options.find((d) => {
|
|
569
|
+
const p = Z(d);
|
|
570
|
+
return p === s || String(p) === String(s);
|
|
571
|
+
}) || null, ee = (n) => {
|
|
572
|
+
if (!h.value) return !1;
|
|
573
|
+
const s = h.value.key, d = y.value[s], p = Z(n);
|
|
574
|
+
return h.value.type === "single" ? d != null && d === p : (Array.isArray(d) ? d : []).some((w) => w === p || String(w) === String(p));
|
|
575
|
+
}, Ie = (n) => {
|
|
576
|
+
if (!h.value) return;
|
|
577
|
+
const s = h.value.key, d = Z(n);
|
|
578
|
+
y.value[s] === d ? y.value[s] = null : y.value[s] = d;
|
|
579
|
+
}, Ae = (n) => {
|
|
580
|
+
if (!h.value) return;
|
|
581
|
+
const s = h.value.key, d = Z(n), p = Array.isArray(y.value[s]) ? [...y.value[s]] : [], S = p.findIndex(
|
|
582
|
+
(w) => w === d || String(w) === String(d)
|
|
583
|
+
);
|
|
584
|
+
S >= 0 ? p.splice(S, 1) : p.push(d), y.value[s] = p;
|
|
585
|
+
}, Re = () => {
|
|
586
|
+
if (!h.value) return;
|
|
587
|
+
const n = h.value.key;
|
|
588
|
+
h.value.type === "single" ? y.value[n] = null : y.value[n] = [];
|
|
589
|
+
}, Ve = () => {
|
|
590
|
+
if (!h.value) return;
|
|
591
|
+
const n = h.value.key, s = y.value[n], d = g.value[n];
|
|
592
|
+
let p;
|
|
593
|
+
h.value.type === "single" ? (p = s ?? void 0, g.value[n] = p) : (p = Array.isArray(s) && s.length > 0 ? s : void 0, g.value[n] = p), v("update:modelValue", { ...g.value }), v("change", { ...g.value }, h.value), v("confirm", { ...g.value }, h.value), JSON.stringify(d) !== JSON.stringify(p) && v("item-change", n, p), se();
|
|
594
|
+
}, ce = (n) => {
|
|
595
|
+
const s = g.value[n.key];
|
|
596
|
+
return s == null || s === "" ? 0 : n.type === "single" ? 1 : Array.isArray(s) ? s.length : s ? 1 : 0;
|
|
597
|
+
}, De = (n) => {
|
|
598
|
+
const s = y.value[n.key];
|
|
599
|
+
return s == null || s === "" ? 0 : n.type === "single" ? 1 : Array.isArray(s) ? s.length : 0;
|
|
600
|
+
};
|
|
601
|
+
return t({
|
|
602
|
+
/** 获取当前筛选值 */
|
|
603
|
+
getValues: () => ({ ...g.value }),
|
|
604
|
+
/** 重置所有筛选 */
|
|
605
|
+
reset: () => {
|
|
606
|
+
g.value = {}, y.value = {}, v("update:modelValue", {}), v("change", {}, null), v("reset");
|
|
607
|
+
}
|
|
608
|
+
}), (n, s) => (r(), m("div", ht, [
|
|
609
|
+
$("div", gt, [
|
|
610
|
+
(r(!0), m(M, null, Y(i.items, (d, p) => (r(), m("div", {
|
|
611
|
+
key: p,
|
|
612
|
+
class: V(["rc-search-area__item", {
|
|
613
|
+
"is-active": f.value === p,
|
|
614
|
+
"has-value": ce(d) > 0
|
|
615
|
+
}]),
|
|
616
|
+
onClick: (S) => we(p)
|
|
617
|
+
}, [
|
|
618
|
+
$("span", bt, x(Se(d)), 1),
|
|
619
|
+
L(K(D), {
|
|
620
|
+
name: "icon_a-xiala2",
|
|
621
|
+
color: f.value !== p && ce(d) > 0 ? "#1677ff" : "#969799",
|
|
622
|
+
class: V(["rc-search-area__item-arrow", { "is-up": f.value === p }])
|
|
623
|
+
}, null, 8, ["color", "class"])
|
|
624
|
+
], 10, _t))), 128))
|
|
625
|
+
]),
|
|
626
|
+
L(le, { name: "rc-search-area-fade" }, {
|
|
627
|
+
default: O(() => [
|
|
628
|
+
f.value !== null && i.showMask ? (r(), m("div", {
|
|
629
|
+
key: 0,
|
|
630
|
+
ref_key: "maskRef",
|
|
631
|
+
ref: o,
|
|
632
|
+
class: "rc-search-area__mask",
|
|
633
|
+
style: A(l.value),
|
|
634
|
+
onClick: se
|
|
635
|
+
}, null, 4)) : k("", !0)
|
|
636
|
+
]),
|
|
637
|
+
_: 1
|
|
638
|
+
}),
|
|
639
|
+
L(le, { name: "rc-search-area-slide" }, {
|
|
640
|
+
default: O(() => {
|
|
641
|
+
var d, p, S, w;
|
|
642
|
+
return [
|
|
643
|
+
f.value !== null ? (r(), m("div", {
|
|
644
|
+
key: 0,
|
|
645
|
+
ref_key: "panelRef",
|
|
646
|
+
ref: u,
|
|
647
|
+
class: "rc-search-area__panel"
|
|
648
|
+
}, [
|
|
649
|
+
$("div", kt, [
|
|
650
|
+
((d = h.value) == null ? void 0 : d.type) === "single" ? (r(), m("div", $t, [
|
|
651
|
+
(r(!0), m(M, null, Y(h.value.options, (R, ae) => (r(), m("div", {
|
|
652
|
+
key: ae,
|
|
653
|
+
class: V(["rc-search-area__option", { "is-selected": ee(R) }]),
|
|
654
|
+
onClick: (Ee) => Ie(R)
|
|
655
|
+
}, [
|
|
656
|
+
$("span", xt, x(X(R)), 1),
|
|
657
|
+
ee(R) ? (r(), q(K(D), {
|
|
658
|
+
key: 0,
|
|
659
|
+
name: "icon_select",
|
|
660
|
+
class: "rc-search-area__option-check"
|
|
661
|
+
})) : k("", !0)
|
|
662
|
+
], 10, Ct))), 128))
|
|
663
|
+
])) : (r(), m("div", St, [
|
|
664
|
+
(r(!0), m(M, null, Y(((p = h.value) == null ? void 0 : p.options) || [], (R, ae) => (r(), m("div", {
|
|
665
|
+
key: ae,
|
|
666
|
+
class: V(["rc-search-area__option", { "is-selected": ee(R) }]),
|
|
667
|
+
onClick: (Ee) => Ae(R)
|
|
668
|
+
}, [
|
|
669
|
+
$("span", It, x(X(R)), 1),
|
|
670
|
+
ee(R) ? (r(), q(K(D), {
|
|
671
|
+
key: 0,
|
|
672
|
+
name: "icon_select",
|
|
673
|
+
class: "rc-search-area__option-check"
|
|
674
|
+
})) : k("", !0)
|
|
675
|
+
], 10, wt))), 128))
|
|
676
|
+
])),
|
|
677
|
+
((w = (S = h.value) == null ? void 0 : S.options) == null ? void 0 : w.length) === 0 ? (r(), m("div", At, [...s[0] || (s[0] = [
|
|
678
|
+
$("p", null, "暂无选项", -1)
|
|
679
|
+
])])) : k("", !0)
|
|
680
|
+
]),
|
|
681
|
+
$("div", Rt, [
|
|
682
|
+
L(K(Q), {
|
|
683
|
+
block: "",
|
|
684
|
+
onClick: Re
|
|
685
|
+
}, {
|
|
686
|
+
default: O(() => [...s[1] || (s[1] = [
|
|
687
|
+
H(" 重置 ", -1)
|
|
688
|
+
])]),
|
|
689
|
+
_: 1
|
|
690
|
+
}),
|
|
691
|
+
L(K(Q), {
|
|
692
|
+
type: "primary",
|
|
693
|
+
block: "",
|
|
694
|
+
onClick: Ve
|
|
695
|
+
}, {
|
|
696
|
+
default: O(() => [
|
|
697
|
+
H(" 确定" + x(E.value), 1)
|
|
698
|
+
]),
|
|
699
|
+
_: 1
|
|
700
|
+
})
|
|
701
|
+
])
|
|
702
|
+
], 512)) : k("", !0)
|
|
703
|
+
];
|
|
704
|
+
}),
|
|
705
|
+
_: 1
|
|
706
|
+
})
|
|
707
|
+
]));
|
|
455
708
|
}
|
|
456
|
-
}),
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return e.component(L.name, L), e.component("RcIcon", L), e;
|
|
460
|
-
}
|
|
461
|
-
const F = Symbol("RECYCLE_UI_CONFIG"), ne = {
|
|
709
|
+
}), ge = /* @__PURE__ */ T(Vt, [["__scopeId", "data-v-6a70650d"]]), _e = (e) => {
|
|
710
|
+
e.component("RcSearchArea", ge), e.component("rc-search-area", ge);
|
|
711
|
+
}, re = Symbol("RECYCLE_UI_CONFIG"), Ce = {
|
|
462
712
|
prefix: "rc",
|
|
463
713
|
autoRegister: !0,
|
|
464
|
-
provideKey:
|
|
714
|
+
provideKey: re,
|
|
465
715
|
// 预留主题/其他全局配置
|
|
466
716
|
theme: {},
|
|
467
717
|
// IconFont 默认配置(可在 app.use 时覆盖)
|
|
468
718
|
iconCssUrl: "//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",
|
|
469
719
|
iconClass: "iconfont"
|
|
470
720
|
};
|
|
471
|
-
function
|
|
472
|
-
t.autoRegister !== !1 && (typeof
|
|
721
|
+
function Dt(e, t) {
|
|
722
|
+
t.autoRegister !== !1 && (typeof de == "function" && de(e), typeof fe == "function" && fe(e), typeof me == "function" && me(e), typeof pe == "function" && pe(e), typeof he == "function" && he(e), typeof ye == "function" && ye(e), typeof _e == "function" && _e(e));
|
|
473
723
|
}
|
|
474
|
-
const
|
|
475
|
-
const
|
|
476
|
-
if (e.provide(
|
|
477
|
-
const
|
|
478
|
-
if (!document.head.querySelector(
|
|
479
|
-
const
|
|
480
|
-
|
|
724
|
+
const xe = (e, t) => {
|
|
725
|
+
const a = { ...Ce, ...t || {} };
|
|
726
|
+
if (e.provide(a.provideKey ?? re, a), e.config.globalProperties.$recycleUI = a, typeof window < "u" && a.iconCssUrl) {
|
|
727
|
+
const i = `link[rel="stylesheet"][data-rcui-icon="true"][href="${a.iconCssUrl}"]`;
|
|
728
|
+
if (!document.head.querySelector(i)) {
|
|
729
|
+
const f = document.createElement("link");
|
|
730
|
+
f.rel = "stylesheet", f.href = a.iconCssUrl, f.setAttribute("data-rcui-icon", "true"), document.head.appendChild(f);
|
|
481
731
|
}
|
|
482
732
|
}
|
|
483
|
-
return
|
|
484
|
-
},
|
|
485
|
-
function
|
|
733
|
+
return Dt(e, a), e;
|
|
734
|
+
}, Wt = { install: xe };
|
|
735
|
+
function Tt(e) {
|
|
486
736
|
return {
|
|
487
737
|
install(t) {
|
|
488
|
-
|
|
738
|
+
xe(t, e);
|
|
489
739
|
}
|
|
490
740
|
};
|
|
491
741
|
}
|
|
492
742
|
export {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
743
|
+
re as RECYCLE_UI_SYMBOL,
|
|
744
|
+
Q as RcButton,
|
|
745
|
+
te as RcCard,
|
|
746
|
+
Lt as RcDescriptions,
|
|
747
|
+
Nt as RcDescriptionsItem,
|
|
748
|
+
D as RcIcon,
|
|
749
|
+
ge as RcSearchArea,
|
|
750
|
+
ne as RcToast,
|
|
751
|
+
Tt as createRecycleUI,
|
|
752
|
+
Wt as default,
|
|
753
|
+
Ce as defaultRecycleUIConfig,
|
|
754
|
+
ut as hideToast,
|
|
755
|
+
xe as install,
|
|
756
|
+
de as installButton,
|
|
757
|
+
me as installCard,
|
|
758
|
+
fe as installDescriptions,
|
|
759
|
+
he as installIcon,
|
|
760
|
+
ye as installMessage,
|
|
761
|
+
_e as installSearchArea,
|
|
762
|
+
yt as message,
|
|
763
|
+
Lt as rcDescriptions,
|
|
764
|
+
Nt as rcDescriptionsItem,
|
|
765
|
+
Bt as showToast
|
|
514
766
|
};
|
|
515
767
|
//# sourceMappingURL=index.mjs.map
|