@rft-rc/recycle-ui 0.0.2-rc.3 → 0.0.2-rc.4

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as F, inject as Y, computed as C, onMounted as We, createElementBlock as u, openBlock as l, normalizeStyle as T, normalizeClass as E, createCommentVNode as $, toDisplayString as w, renderSlot as A, Fragment as L, createBlock as U, createTextVNode as ae, createElementVNode as k, ref as V, watchEffect as Xe, provide as X, renderList as W, onUnmounted as ze, Teleport as Ze, createVNode as M, Transition as fe, withCtx as ee, createApp as et, reactive as tt, TransitionGroup as nt, render as Me, watch as Ie, nextTick as we, unref as H, withDirectives as at, vModelText as st } from "vue";
2
- const rt = {
1
+ import { defineComponent as ce, inject as _e, computed as M, onMounted as it, createElementBlock as v, openBlock as c, normalizeStyle as X, normalizeClass as O, createCommentVNode as w, toDisplayString as R, renderSlot as q, Fragment as H, createBlock as ie, createTextVNode as de, createElementVNode as k, ref as I, watchEffect as gt, provide as $e, renderList as ae, onUnmounted as Ke, Teleport as dt, createVNode as E, Transition as we, withCtx as ne, createApp as _t, reactive as kt, TransitionGroup as bt, render as ft, watch as be, withModifiers as $t, unref as j, nextTick as Ge, withDirectives as vt, vModelText as pt } from "vue";
2
+ const xt = {
3
3
  key: 0,
4
4
  class: "rc-icon__unicode"
5
- }, lt = /* @__PURE__ */ F({
5
+ }, Ct = /* @__PURE__ */ ce({
6
6
  name: "rc-icon",
7
7
  __name: "index",
8
8
  props: {
@@ -12,52 +12,52 @@ const rt = {
12
12
  spin: { type: Boolean, default: !1 },
13
13
  code: { default: "" }
14
14
  },
15
- setup(t) {
16
- const a = t, o = Y(ve, {}), d = C(() => (o == null ? void 0 : o.iconClass) || "iconfont"), y = C(() => a.name || ""), h = C(() => typeof a.size == "number" ? `${a.size}px` : a.size || "16px"), p = C(() => ({
17
- fontSize: h.value,
18
- color: a.color || void 0,
15
+ setup(e) {
16
+ const r = e, d = _e(je, {}), l = M(() => (d == null ? void 0 : d.iconClass) || "iconfont"), y = M(() => r.name || ""), b = M(() => typeof r.size == "number" ? `${r.size}px` : r.size || "16px"), p = M(() => ({
17
+ fontSize: b.value,
18
+ color: r.color || void 0,
19
19
  lineHeight: 1,
20
- fontFamily: (o == null ? void 0 : o.iconClass) || "iconfont"
21
- })), f = C(() => {
22
- const c = a.code;
23
- if (c == null || c === "" || c === 0) return "";
24
- if (typeof c == "number")
25
- return String.fromCharCode(c);
26
- const v = String(c).replace(/^0x/i, ""), x = parseInt(v, 16);
27
- return Number.isNaN(x) ? "" : String.fromCharCode(x);
20
+ fontFamily: (d == null ? void 0 : d.iconClass) || "iconfont"
21
+ })), m = M(() => {
22
+ const i = r.code;
23
+ if (i == null || i === "" || i === 0) return "";
24
+ if (typeof i == "number")
25
+ return String.fromCharCode(i);
26
+ const h = String(i).replace(/^0x/i, ""), A = parseInt(h, 16);
27
+ return Number.isNaN(A) ? "" : String.fromCharCode(A);
28
28
  });
29
- return We(() => {
29
+ return it(() => {
30
30
  if (typeof window > "u") return;
31
- const c = o && o.iconCssUrl || Ke.iconCssUrl;
32
- if (!c) return;
33
- const v = `link[rel="stylesheet"][data-rcui-icon="true"][href="${c}"]`;
34
- if (!document.head.querySelector(v)) {
35
- const _ = document.createElement("link");
36
- _.rel = "stylesheet", _.href = c, _.setAttribute("data-rcui-icon", "true"), document.head.appendChild(_);
31
+ const i = d && d.iconCssUrl || mt.iconCssUrl;
32
+ if (!i) return;
33
+ const h = `link[rel="stylesheet"][data-rcui-icon="true"][href="${i}"]`;
34
+ if (!document.head.querySelector(h)) {
35
+ const $ = document.createElement("link");
36
+ $.rel = "stylesheet", $.href = i, $.setAttribute("data-rcui-icon", "true"), document.head.appendChild($);
37
37
  }
38
- }), (c, v) => (l(), u("i", {
39
- class: E(["rc-icon", [d.value, y.value, { "rc-icon--spin": t.spin }]]),
40
- style: T(p.value),
38
+ }), (i, h) => (c(), v("i", {
39
+ class: O(["rc-icon", [l.value, y.value, { "rc-icon--spin": e.spin }]]),
40
+ style: X(p.value),
41
41
  "aria-hidden": "true"
42
42
  }, [
43
- f.value ? (l(), u("span", rt, w(f.value), 1)) : $("", !0)
43
+ m.value ? (c(), v("span", xt, R(m.value), 1)) : w("", !0)
44
44
  ], 6));
45
45
  }
46
- }), O = (t, a) => {
47
- const o = t.__vccOpts || t;
48
- for (const [d, y] of a)
49
- o[d] = y;
50
- return o;
51
- }, B = /* @__PURE__ */ O(lt, [["__scopeId", "data-v-3857a892"]]), ot = ["disabled"], ct = {
46
+ }), ue = (e, r) => {
47
+ const d = e.__vccOpts || e;
48
+ for (const [l, y] of r)
49
+ d[l] = y;
50
+ return d;
51
+ }, J = /* @__PURE__ */ ue(Ct, [["__scopeId", "data-v-3857a892"]]), Dt = ["disabled"], wt = {
52
52
  key: 0,
53
53
  class: "rc-button__spinner"
54
- }, ut = {
54
+ }, St = {
55
55
  key: 0,
56
56
  class: "rc-button__icon rc-button__icon--prefix"
57
- }, it = {
57
+ }, It = {
58
58
  key: 2,
59
59
  class: "rc-button__icon rc-button__icon--suffix"
60
- }, dt = /* @__PURE__ */ F({
60
+ }, Mt = /* @__PURE__ */ ce({
61
61
  __name: "index",
62
62
  props: {
63
63
  type: { default: "default" },
@@ -72,48 +72,48 @@ const rt = {
72
72
  suffixIcon: { default: "" }
73
73
  },
74
74
  emits: ["click"],
75
- setup(t, { emit: a }) {
76
- const o = t, d = a, y = (p) => {
77
- !o.disabled && !o.loading && d("click", p);
78
- }, h = C(() => {
79
- const p = o.round;
75
+ setup(e, { emit: r }) {
76
+ const d = e, l = r, y = (p) => {
77
+ !d.disabled && !d.loading && l("click", p);
78
+ }, b = M(() => {
79
+ const p = d.round;
80
80
  return typeof p == "boolean" ? p ? "999px" : "6px" : typeof p == "number" ? `${p}px` : String(p);
81
81
  });
82
- return (p, f) => (l(), u("button", {
83
- class: E(["rc-button", [`rc-button--${t.type}`, `rc-button--${t.size}`, t.mode ? `rc-button--${t.mode}` : "", { "is-block": t.block, "is-disabled": t.disabled, "is-loading": t.loading }]]),
84
- style: T({ borderRadius: h.value }),
85
- disabled: t.disabled || t.loading,
82
+ return (p, m) => (c(), v("button", {
83
+ class: O(["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: X({ borderRadius: b.value }),
85
+ disabled: e.disabled || e.loading,
86
86
  onClick: y
87
87
  }, [
88
- t.loading ? (l(), u("span", ct)) : (l(), u(L, { key: 1 }, [
89
- t.preIcon || p.$slots.preIcon ? (l(), u("span", ut, [
90
- A(p.$slots, "preIcon", {}, () => [
91
- t.preIcon ? (l(), U(B, {
88
+ e.loading ? (c(), v("span", wt)) : (c(), v(H, { key: 1 }, [
89
+ e.preIcon || p.$slots.preIcon ? (c(), v("span", St, [
90
+ q(p.$slots, "preIcon", {}, () => [
91
+ e.preIcon ? (c(), ie(J, {
92
92
  key: 0,
93
- name: t.preIcon
94
- }, null, 8, ["name"])) : $("", !0)
93
+ name: e.preIcon
94
+ }, null, 8, ["name"])) : w("", !0)
95
95
  ], !0)
96
- ])) : $("", !0)
96
+ ])) : w("", !0)
97
97
  ], 64)),
98
- A(p.$slots, "default", {}, () => [
99
- ae(w(t.label), 1)
98
+ q(p.$slots, "default", {}, () => [
99
+ de(R(e.label), 1)
100
100
  ], !0),
101
- !t.loading && (t.suffixIcon || p.$slots.suffixIcon) ? (l(), u("span", it, [
102
- A(p.$slots, "suffixIcon", {}, () => [
103
- t.suffixIcon ? (l(), U(B, {
101
+ !e.loading && (e.suffixIcon || p.$slots.suffixIcon) ? (c(), v("span", It, [
102
+ q(p.$slots, "suffixIcon", {}, () => [
103
+ e.suffixIcon ? (c(), ie(J, {
104
104
  key: 0,
105
- name: t.suffixIcon
106
- }, null, 8, ["name"])) : $("", !0)
105
+ name: e.suffixIcon
106
+ }, null, 8, ["name"])) : w("", !0)
107
107
  ], !0)
108
- ])) : $("", !0)
109
- ], 14, ot));
108
+ ])) : w("", !0)
109
+ ], 14, Dt));
110
110
  }
111
- }), le = /* @__PURE__ */ O(dt, [["__scopeId", "data-v-3ed3109f"]]);
112
- le.name = "rc-button";
113
- function Ae(t) {
114
- return t.component(le.name, le), t;
111
+ }), ye = /* @__PURE__ */ ue(Mt, [["__scopeId", "data-v-3ed3109f"]]);
112
+ ye.name = "rc-button";
113
+ function Xe(e) {
114
+ return e.component(ye.name, ye), e;
115
115
  }
116
- const ft = { class: "rc-desc-item__value" }, vt = /* @__PURE__ */ F({
116
+ const Vt = { class: "rc-desc-item__value" }, Rt = /* @__PURE__ */ ce({
117
117
  name: "rc-descriptions-item",
118
118
  __name: "item",
119
119
  props: {
@@ -122,44 +122,44 @@ const ft = { class: "rc-desc-item__value" }, vt = /* @__PURE__ */ F({
122
122
  labelWidth: { default: "" },
123
123
  span: { default: 1 }
124
124
  },
125
- setup(t) {
126
- const a = t;
127
- Y("rcDescItemWidth", void 0), Y("rcDescSingleWidth", ""), Y("rcDescGap", "0px");
128
- const o = Y("rcDescGapPx", 0), d = Y("rcDescColCount", 1), y = Y("rcDescLabelWidth", ""), h = C(() => {
129
- const c = typeof a.span == "string" ? parseInt(a.span, 10) : a.span, v = typeof (d == null ? void 0 : d.value) == "number" ? d.value : d, x = !Number.isNaN(c) && c > 0 ? c : 1;
130
- return Math.min(x, v || 1);
131
- }), p = C(() => {
132
- const c = typeof (d == null ? void 0 : d.value) == "number" ? d.value : d, v = typeof (o == null ? void 0 : o.value) == "number" ? o.value : o, x = h.value;
133
- if (!c || c <= 1 || x >= c) return "100%";
134
- const _ = (c - 1) * v, I = (x - 1) * v;
135
- return `calc((100% - ${_}px) * ${x} / ${c} + ${I}px)`;
136
- }), f = C(() => {
137
- const c = typeof (y == null ? void 0 : y.value) == "string" ? y.value : y, v = a.labelWidth !== "" ? a.labelWidth : c || "";
138
- return v ? { width: typeof v == "number" ? `${v}px` : String(v), flex: "0 0 auto" } : {};
125
+ setup(e) {
126
+ const r = e;
127
+ _e("rcDescItemWidth", void 0), _e("rcDescSingleWidth", ""), _e("rcDescGap", "0px");
128
+ const d = _e("rcDescGapPx", 0), l = _e("rcDescColCount", 1), y = _e("rcDescLabelWidth", ""), b = M(() => {
129
+ const i = typeof r.span == "string" ? parseInt(r.span, 10) : r.span, h = typeof (l == null ? void 0 : l.value) == "number" ? l.value : l, A = !Number.isNaN(i) && i > 0 ? i : 1;
130
+ return Math.min(A, h || 1);
131
+ }), p = M(() => {
132
+ const i = typeof (l == null ? void 0 : l.value) == "number" ? l.value : l, h = typeof (d == null ? void 0 : d.value) == "number" ? d.value : d, A = b.value;
133
+ if (!i || i <= 1 || A >= i) return "100%";
134
+ const $ = (i - 1) * h, g = (A - 1) * h;
135
+ return `calc((100% - ${$}px) * ${A} / ${i} + ${g}px)`;
136
+ }), m = M(() => {
137
+ const i = typeof (y == null ? void 0 : y.value) == "string" ? y.value : y, h = r.labelWidth !== "" ? r.labelWidth : i || "";
138
+ return h ? { width: typeof h == "number" ? `${h}px` : String(h), flex: "0 0 auto" } : {};
139
139
  });
140
- return (c, v) => (l(), u("div", {
140
+ return (i, h) => (c(), v("div", {
141
141
  class: "rc-desc-item",
142
- style: T({ width: p.value, flex: `0 0 ${p.value}` })
142
+ style: X({ width: p.value, flex: `0 0 ${p.value}` })
143
143
  }, [
144
144
  k("div", {
145
145
  class: "rc-desc-item__label",
146
- style: T(f.value)
146
+ style: X(m.value)
147
147
  }, [
148
- A(c.$slots, "label", {}, () => [
149
- ae(w(t.label), 1)
148
+ q(i.$slots, "label", {}, () => [
149
+ de(R(e.label), 1)
150
150
  ], !0)
151
151
  ], 4),
152
- k("div", ft, [
153
- A(c.$slots, "default", {}, () => [
154
- ae(w(t.value), 1)
152
+ k("div", Vt, [
153
+ q(i.$slots, "default", {}, () => [
154
+ de(R(e.value), 1)
155
155
  ], !0)
156
156
  ])
157
157
  ], 4));
158
158
  }
159
- }), te = /* @__PURE__ */ O(vt, [["__scopeId", "data-v-970d0b99"]]), yt = { class: "rc-descriptions" }, pt = {
159
+ }), Ce = /* @__PURE__ */ ue(Rt, [["__scopeId", "data-v-970d0b99"]]), At = { class: "rc-descriptions" }, Tt = {
160
160
  key: 0,
161
161
  class: "rc-descriptions__title"
162
- }, ht = /* @__PURE__ */ F({
162
+ }, Bt = /* @__PURE__ */ ce({
163
163
  name: "rc-descriptions",
164
164
  __name: "index",
165
165
  props: {
@@ -170,67 +170,67 @@ const ft = { class: "rc-desc-item__value" }, vt = /* @__PURE__ */ F({
170
170
  data: { default: () => [] },
171
171
  keyMap: {}
172
172
  },
173
- setup(t) {
174
- const a = t, o = V(null), d = C(() => typeof a.gap == "number" ? `${a.gap}px` : String(a.gap)), y = C(() => {
175
- const v = typeof a.column == "string" ? Number.parseInt(a.column, 10) : a.column ?? 1;
176
- return !Number.isNaN(v) && v > 0 ? v : 1;
177
- }), h = V("100%"), p = V("100%");
178
- Xe(() => {
179
- const v = y.value;
180
- if (v <= 1)
181
- h.value = "100%", p.value = "100%";
173
+ setup(e) {
174
+ const r = e, d = I(null), l = M(() => typeof r.gap == "number" ? `${r.gap}px` : String(r.gap)), y = M(() => {
175
+ const h = typeof r.column == "string" ? Number.parseInt(r.column, 10) : r.column ?? 1;
176
+ return !Number.isNaN(h) && h > 0 ? h : 1;
177
+ }), b = I("100%"), p = I("100%");
178
+ gt(() => {
179
+ const h = y.value;
180
+ if (h <= 1)
181
+ b.value = "100%", p.value = "100%";
182
182
  else {
183
- const x = typeof a.gap == "number" ? a.gap : parseFloat(String(a.gap)) || 0, I = `calc((100% - ${(v - 1) * x}px) / ${v})`;
184
- p.value = I, h.value = I;
183
+ const A = typeof r.gap == "number" ? r.gap : parseFloat(String(r.gap)) || 0, g = `calc((100% - ${(h - 1) * A}px) / ${h})`;
184
+ p.value = g, b.value = g;
185
185
  }
186
- }), X("rcDescItemWidth", h), X("rcDescSingleWidth", p), X("rcDescColCount", y), X("rcDescGapPx", C(() => typeof a.gap == "number" ? a.gap : parseFloat(String(a.gap)) || 0));
187
- const f = C(() => a.labelWidth === "" || a.labelWidth === void 0 ? "" : typeof a.labelWidth == "number" ? `${a.labelWidth}px` : String(a.labelWidth));
188
- X("rcDescLabelWidth", f), X("rcDescGap", C(() => typeof a.gap == "number" ? `${a.gap}px` : String(a.gap)));
189
- const c = C(() => {
190
- var _, I, R;
191
- const v = ((_ = a.keyMap) == null ? void 0 : _.key) ?? "label", x = ((I = a.keyMap) == null ? void 0 : I.value) ?? "value";
192
- return (R = a.data) != null && R.length ? a.data.map((m) => ({
193
- label: m == null ? void 0 : m[v],
194
- value: m == null ? void 0 : m[x]
186
+ }), $e("rcDescItemWidth", b), $e("rcDescSingleWidth", p), $e("rcDescColCount", y), $e("rcDescGapPx", M(() => typeof r.gap == "number" ? r.gap : parseFloat(String(r.gap)) || 0));
187
+ const m = M(() => r.labelWidth === "" || r.labelWidth === void 0 ? "" : typeof r.labelWidth == "number" ? `${r.labelWidth}px` : String(r.labelWidth));
188
+ $e("rcDescLabelWidth", m), $e("rcDescGap", M(() => typeof r.gap == "number" ? `${r.gap}px` : String(r.gap)));
189
+ const i = M(() => {
190
+ var $, g, D;
191
+ const h = (($ = r.keyMap) == null ? void 0 : $.key) ?? "label", A = ((g = r.keyMap) == null ? void 0 : g.value) ?? "value";
192
+ return (D = r.data) != null && D.length ? r.data.map((V) => ({
193
+ label: V == null ? void 0 : V[h],
194
+ value: V == null ? void 0 : V[A]
195
195
  })) : [];
196
196
  });
197
- return (v, x) => (l(), u("div", yt, [
198
- v.$slots.title || t.title ? (l(), u("div", pt, [
199
- A(v.$slots, "title", {}, () => [
200
- ae(w(t.title), 1)
197
+ return (h, A) => (c(), v("div", At, [
198
+ h.$slots.title || e.title ? (c(), v("div", Tt, [
199
+ q(h.$slots, "title", {}, () => [
200
+ de(R(e.title), 1)
201
201
  ], !0)
202
- ])) : $("", !0),
202
+ ])) : w("", !0),
203
203
  k("div", {
204
204
  class: "rc-descriptions__body",
205
- style: T({ gap: d.value }),
205
+ style: X({ gap: l.value }),
206
206
  ref_key: "wrapEl",
207
- ref: o
207
+ ref: d
208
208
  }, [
209
- c.value.length ? (l(!0), u(L, { key: 0 }, W(c.value, (_, I) => (l(), U(te, {
210
- key: I,
211
- label: _.label,
212
- value: _.value,
213
- "label-width": t.labelWidth
214
- }, null, 8, ["label", "value", "label-width"]))), 128)) : A(v.$slots, "default", { key: 1 }, void 0, !0)
209
+ i.value.length ? (c(!0), v(H, { key: 0 }, ae(i.value, ($, g) => (c(), ie(Ce, {
210
+ key: g,
211
+ label: $.label,
212
+ value: $.value,
213
+ "label-width": e.labelWidth
214
+ }, null, 8, ["label", "value", "label-width"]))), 128)) : q(h.$slots, "default", { key: 1 }, void 0, !0)
215
215
  ], 4)
216
216
  ]));
217
217
  }
218
- }), re = /* @__PURE__ */ O(ht, [["__scopeId", "data-v-5fcaa235"]]);
219
- re.name = "rc-descriptions";
220
- te.name = "rc-descriptions-item";
221
- function Ve(t) {
222
- return t.component(re.name, re), t.component("RcDescriptions", re), t.component(te.name, te), t.component("RcDescriptionsItem", te), t;
218
+ }), Me = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-5fcaa235"]]);
219
+ Me.name = "rc-descriptions";
220
+ Ce.name = "rc-descriptions-item";
221
+ function Ze(e) {
222
+ return e.component(Me.name, Me), e.component("RcDescriptions", Me), e.component(Ce.name, Ce), e.component("RcDescriptionsItem", Ce), e;
223
223
  }
224
- const vn = re, yn = te, mt = { class: "rc-card__title" }, _t = { class: "rc-card__title-text" }, gt = {
224
+ const on = Me, sn = Ce, Ft = { class: "rc-card__title" }, Nt = { class: "rc-card__title-text" }, Et = {
225
225
  key: 0,
226
226
  class: "rc-card__status"
227
- }, kt = {
227
+ }, Yt = {
228
228
  key: 1,
229
229
  class: "rc-card__divider"
230
- }, bt = {
230
+ }, Pt = {
231
231
  key: 2,
232
232
  class: "rc-card__action"
233
- }, $t = /* @__PURE__ */ F({
233
+ }, Lt = /* @__PURE__ */ ce({
234
234
  name: "rc-card",
235
235
  __name: "index",
236
236
  props: {
@@ -247,85 +247,85 @@ const vn = re, yn = te, mt = { class: "rc-card__title" }, _t = { class: "rc-card
247
247
  width: { default: "100%" },
248
248
  height: { default: "" }
249
249
  },
250
- setup(t) {
251
- const a = t, o = C(() => {
252
- const f = typeof a.round == "boolean" ? a.round ? "12px" : "0" : typeof a.round == "number" ? `${a.round}px` : String(a.round);
250
+ setup(e) {
251
+ const r = e, d = M(() => {
252
+ const m = typeof r.round == "boolean" ? r.round ? "12px" : "0" : typeof r.round == "number" ? `${r.round}px` : String(r.round);
253
253
  return {
254
- backgroundColor: a.color || "var(--rc-white)",
255
- borderRadius: f,
256
- boxShadow: p(a.elevation),
257
- width: h(a.width),
258
- height: h(a.height)
254
+ backgroundColor: r.color || "var(--rc-white)",
255
+ borderRadius: m,
256
+ boxShadow: p(r.elevation),
257
+ width: b(r.width),
258
+ height: b(r.height)
259
259
  };
260
- }), d = C(() => a.padding || "16px"), y = C(
261
- () => typeof a.gap == "number" ? `${a.gap}px` : String(a.gap)
260
+ }), l = M(() => r.padding || "16px"), y = M(
261
+ () => typeof r.gap == "number" ? `${r.gap}px` : String(r.gap)
262
262
  );
263
- function h(f) {
264
- return f == null || f === "" ? "" : typeof f == "number" ? `${f}px` : String(f);
265
- }
266
- function p(f) {
267
- if (!f || f <= 0) return "none";
268
- const c = 4 * f;
269
- return `0 ${Math.round(c / 2)}px ${c}px rgba(0,0,0,0.06), 0 ${Math.round(
270
- c / 4
271
- )}px ${Math.round(c / 2)}px rgba(0,0,0,0.04)`;
272
- }
273
- return (f, c) => (l(), u("div", {
274
- class: E(["rc-card", [{ "rc-card--bordered": t.bordered }]]),
275
- style: T(o.value)
263
+ function b(m) {
264
+ return m == null || m === "" ? "" : typeof m == "number" ? `${m}px` : String(m);
265
+ }
266
+ function p(m) {
267
+ if (!m || m <= 0) return "none";
268
+ const i = 4 * m;
269
+ return `0 ${Math.round(i / 2)}px ${i}px rgba(0,0,0,0.06), 0 ${Math.round(
270
+ i / 4
271
+ )}px ${Math.round(i / 2)}px rgba(0,0,0,0.04)`;
272
+ }
273
+ return (m, i) => (c(), v("div", {
274
+ class: O(["rc-card", [{ "rc-card--bordered": e.bordered }]]),
275
+ style: X(d.value)
276
276
  }, [
277
- f.$slots.title || t.title || f.$slots.status || t.status ? (l(), u("div", {
277
+ m.$slots.title || e.title || m.$slots.status || e.status ? (c(), v("div", {
278
278
  key: 0,
279
279
  class: "rc-card__top",
280
- style: T({ backgroundColor: t.topBgColor || "rgba(29, 133, 252, 0.05)" })
280
+ style: X({ backgroundColor: e.topBgColor || "rgba(29, 133, 252, 0.05)" })
281
281
  }, [
282
- k("div", mt, [
283
- A(f.$slots, "title", {}, () => [
284
- k("span", _t, w(t.title), 1)
282
+ k("div", Ft, [
283
+ q(m.$slots, "title", {}, () => [
284
+ k("span", Nt, R(e.title), 1)
285
285
  ], !0)
286
286
  ]),
287
- f.$slots.status || t.status ? (l(), u("div", gt, [
288
- A(f.$slots, "status", {}, () => [
287
+ m.$slots.status || e.status ? (c(), v("div", Et, [
288
+ q(m.$slots, "status", {}, () => [
289
289
  k("span", {
290
290
  class: "rc-card__status-text",
291
- style: T({ color: t.statusColor || "var(--rc-primary)" })
292
- }, w(t.status), 5)
291
+ style: X({ color: e.statusColor || "var(--rc-primary)" })
292
+ }, R(e.status), 5)
293
293
  ], !0)
294
- ])) : $("", !0)
295
- ], 4)) : $("", !0),
294
+ ])) : w("", !0)
295
+ ], 4)) : w("", !0),
296
296
  k("div", {
297
297
  class: "rc-card__body",
298
- style: T({ padding: d.value, gap: y.value })
298
+ style: X({ padding: l.value, gap: y.value })
299
299
  }, [
300
- A(f.$slots, "content", {}, () => [
301
- A(f.$slots, "default", {}, void 0, !0)
300
+ q(m.$slots, "content", {}, () => [
301
+ q(m.$slots, "default", {}, void 0, !0)
302
302
  ], !0)
303
303
  ], 4),
304
- f.$slots.action ? (l(), u("div", kt)) : $("", !0),
305
- f.$slots.action ? (l(), u("div", bt, [
306
- A(f.$slots, "action", {}, void 0, !0)
307
- ])) : $("", !0)
304
+ m.$slots.action ? (c(), v("div", Yt)) : w("", !0),
305
+ m.$slots.action ? (c(), v("div", Pt, [
306
+ q(m.$slots, "action", {}, void 0, !0)
307
+ ])) : w("", !0)
308
308
  ], 6));
309
309
  }
310
- }), ce = /* @__PURE__ */ O($t, [["__scopeId", "data-v-a7b95214"]]);
311
- ce.name = "rc-card";
312
- const Ct = "RcCard";
313
- function Re(t) {
314
- return t.component(ce.name, ce), t.component(Ct, ce), t;
310
+ }), Ne = /* @__PURE__ */ ue(Lt, [["__scopeId", "data-v-a7b95214"]]);
311
+ Ne.name = "rc-card";
312
+ const Wt = "RcCard";
313
+ function et(e) {
314
+ return e.component(Ne.name, Ne), e.component(Wt, Ne), e;
315
315
  }
316
- const St = {
316
+ const zt = {
317
317
  key: 0,
318
318
  class: "rc-toast__mask"
319
- }, xt = { class: "rc-toast__content" }, It = {
319
+ }, Ut = { class: "rc-toast__content" }, Ot = {
320
320
  key: 0,
321
321
  class: "rc-toast__spinner"
322
- }, wt = {
322
+ }, Gt = {
323
323
  key: 1,
324
324
  class: "rc-toast__icon rc-toast__icon--success"
325
- }, At = {
325
+ }, Kt = {
326
326
  key: 2,
327
327
  class: "rc-toast__icon rc-toast__icon--fail"
328
- }, Vt = { class: "rc-toast__text" }, Rt = /* @__PURE__ */ F({
328
+ }, jt = { class: "rc-toast__text" }, Ht = /* @__PURE__ */ ce({
329
329
  __name: "index",
330
330
  props: {
331
331
  message: { default: "" },
@@ -334,176 +334,862 @@ const St = {
334
334
  mask: { type: Boolean, default: !1 },
335
335
  onAfterLeave: {}
336
336
  },
337
- setup(t, { expose: a }) {
338
- const o = t, d = V(!0);
337
+ setup(e, { expose: r }) {
338
+ const d = e, l = I(!0);
339
339
  let y;
340
- function h() {
340
+ function b() {
341
341
  y && (clearTimeout(y), y = null);
342
342
  }
343
343
  function p() {
344
- h(), d.value = !1;
344
+ b(), l.value = !1;
345
345
  }
346
- return a({ close: p }), We(() => {
347
- o.duration && o.duration > 0 && (y = setTimeout(() => {
346
+ return r({ close: p }), it(() => {
347
+ d.duration && d.duration > 0 && (y = setTimeout(() => {
348
348
  p();
349
- }, o.duration));
350
- }), ze(() => {
351
- h();
352
- }), (f, c) => (l(), u(L, null, [
353
- (l(), U(Ze, { to: "body" }, [
354
- M(fe, {
349
+ }, d.duration));
350
+ }), Ke(() => {
351
+ b();
352
+ }), (m, i) => (c(), v(H, null, [
353
+ (c(), ie(dt, { to: "body" }, [
354
+ E(we, {
355
355
  name: "rc-toast-fade",
356
- onAfterLeave: t.onAfterLeave
356
+ onAfterLeave: e.onAfterLeave
357
357
  }, {
358
- default: ee(() => [
359
- d.value ? (l(), u("div", {
358
+ default: ne(() => [
359
+ l.value ? (c(), v("div", {
360
360
  key: 0,
361
- class: E(["rc-toast", [`rc-toast--${t.type}`]])
361
+ class: O(["rc-toast", [`rc-toast--${e.type}`]])
362
362
  }, [
363
- t.mask ? (l(), u("div", St)) : $("", !0),
364
- k("div", xt, [
365
- t.type === "loading" ? (l(), u("div", It)) : t.type === "success" ? (l(), u("div", wt)) : t.type === "fail" ? (l(), u("div", At)) : $("", !0),
366
- k("div", Vt, w(t.message), 1)
363
+ e.mask ? (c(), v("div", zt)) : w("", !0),
364
+ k("div", Ut, [
365
+ e.type === "loading" ? (c(), v("div", Ot)) : e.type === "success" ? (c(), v("div", Gt)) : e.type === "fail" ? (c(), v("div", Kt)) : w("", !0),
366
+ k("div", jt, R(e.message), 1)
367
367
  ])
368
- ], 2)) : $("", !0)
368
+ ], 2)) : w("", !0)
369
369
  ]),
370
370
  _: 1
371
371
  }, 8, ["onAfterLeave"])
372
372
  ])),
373
- A(f.$slots, "default", {}, void 0, !0)
373
+ q(m.$slots, "default", {}, void 0, !0)
374
374
  ], 64));
375
375
  }
376
- }), ue = /* @__PURE__ */ O(Rt, [["__scopeId", "data-v-d234c9c5"]]);
377
- let J = null, ne = null;
378
- function De() {
379
- J && (J.unmount(), J = null), ne && (document.body.removeChild(ne), ne = null);
376
+ }), Ee = /* @__PURE__ */ ue(Ht, [["__scopeId", "data-v-d234c9c5"]]);
377
+ let ke = null, De = null;
378
+ function tt() {
379
+ ke && (ke.unmount(), ke = null), De && (document.body.removeChild(De), De = null);
380
380
  }
381
- function pn(t) {
382
- const a = typeof t == "string" ? { message: t } : t || {};
383
- De(), ne = document.createElement("div"), document.body.appendChild(ne);
384
- const o = {
385
- message: a.message,
386
- type: a.type ?? "text",
387
- duration: a.duration ?? 2e3,
388
- mask: a.mask ?? !1,
381
+ function cn(e) {
382
+ const r = typeof e == "string" ? { message: e } : e || {};
383
+ tt(), De = document.createElement("div"), document.body.appendChild(De);
384
+ const d = {
385
+ message: r.message,
386
+ type: r.type ?? "text",
387
+ duration: r.duration ?? 2e3,
388
+ mask: r.mask ?? !1,
389
389
  onAfterLeave: () => {
390
- var d;
391
- De(), (d = a.onClose) == null || d.call(a);
390
+ var l;
391
+ tt(), (l = r.onClose) == null || l.call(r);
392
392
  }
393
393
  };
394
- return J = et(ue, o), J.mount(ne), {
395
- close: Dt
394
+ return ke = _t(Ee, d), ke.mount(De), {
395
+ close: qt
396
396
  };
397
397
  }
398
- function Dt() {
399
- var t, a, o;
400
- J && ((o = (a = (t = J._instance) == null ? void 0 : t.exposed) == null ? void 0 : a.close) == null || o.call(a));
398
+ function qt() {
399
+ var e, r, d;
400
+ ke && ((d = (r = (e = ke._instance) == null ? void 0 : e.exposed) == null ? void 0 : r.close) == null || d.call(r));
401
401
  }
402
- ue.name = "rc-toast";
403
- function Le(t) {
404
- return t.component(ue.name, ue), t;
402
+ Ee.name = "rc-toast";
403
+ function at(e) {
404
+ return e.component(Ee.name, Ee), e;
405
405
  }
406
- const Lt = {
406
+ const Jt = {
407
407
  class: "rc-message",
408
408
  role: "alert",
409
409
  "aria-live": "polite"
410
- }, Et = { class: "rc-message__content" }, Bt = /* @__PURE__ */ F({
410
+ }, Qt = { class: "rc-message__content" }, Xt = /* @__PURE__ */ ce({
411
411
  __name: "index",
412
- setup(t, { expose: a }) {
413
- const o = tt([]);
414
- let d = 1;
412
+ setup(e, { expose: r }) {
413
+ const d = kt([]);
414
+ let l = 1;
415
415
  function y(p) {
416
- const f = o.findIndex((c) => c.id === p);
417
- f >= 0 && o.splice(f, 1);
416
+ const m = d.findIndex((i) => i.id === p);
417
+ m >= 0 && d.splice(m, 1);
418
418
  }
419
- function h(p, f, c) {
420
- const v = d++;
421
- return o.push({ id: v, type: p, content: f, duration: c }), c > 0 && window.setTimeout(() => y(v), c), v;
419
+ function b(p, m, i) {
420
+ const h = l++;
421
+ return d.push({ id: h, type: p, content: m, duration: i }), i > 0 && window.setTimeout(() => y(h), i), h;
422
422
  }
423
- return a({ add: h, remove: y }), (p, f) => (l(), u("div", Lt, [
424
- M(nt, {
423
+ return r({ add: b, remove: y }), (p, m) => (c(), v("div", Jt, [
424
+ E(bt, {
425
425
  name: "rc-message-fade",
426
426
  tag: "div"
427
427
  }, {
428
- default: ee(() => [
429
- (l(!0), u(L, null, W(o, (c) => (l(), u("div", {
430
- key: c.id,
431
- class: E(["rc-message__item", `rc-message--${c.type}`])
428
+ default: ne(() => [
429
+ (c(!0), v(H, null, ae(d, (i) => (c(), v("div", {
430
+ key: i.id,
431
+ class: O(["rc-message__item", `rc-message--${i.type}`])
432
432
  }, [
433
- k("span", Et, w(c.content), 1)
433
+ k("span", Qt, R(i.content), 1)
434
434
  ], 2))), 128))
435
435
  ]),
436
436
  _: 1
437
437
  })
438
438
  ]));
439
439
  }
440
- }), Tt = /* @__PURE__ */ O(Bt, [["__scopeId", "data-v-87811df0"]]);
441
- let G = null, K = null;
442
- function Nt() {
443
- var a;
444
- if (G && K) return;
445
- G = document.createElement("div"), document.body.appendChild(G);
446
- const t = M(Tt, {});
447
- Me(t, G), K = (a = t.component) == null ? void 0 : a.exposed;
440
+ }), Zt = /* @__PURE__ */ ue(Xt, [["__scopeId", "data-v-87811df0"]]);
441
+ let me = null, pe = null;
442
+ function ea() {
443
+ var r;
444
+ if (me && pe) return;
445
+ me = document.createElement("div"), document.body.appendChild(me);
446
+ const e = E(Zt, {});
447
+ ft(e, me), pe = (r = e.component) == null ? void 0 : r.exposed;
448
448
  }
449
- function Z(t, a, o) {
449
+ function xe(e, r, d) {
450
450
  var y;
451
- Nt();
452
- const d = typeof o == "number" ? o : t === "loading" ? 0 : 2e3;
453
- return (y = K == null ? void 0 : K.add) == null ? void 0 : y.call(K, t, a, d);
451
+ ea();
452
+ const l = typeof d == "number" ? d : e === "loading" ? 0 : 2e3;
453
+ return (y = pe == null ? void 0 : pe.add) == null ? void 0 : y.call(pe, e, r, l);
454
454
  }
455
- const Wt = {
456
- open(t) {
457
- return Z(t.type || "info", t.content, t.duration);
455
+ const ta = {
456
+ open(e) {
457
+ return xe(e.type || "info", e.content, e.duration);
458
458
  },
459
- info(t, a) {
460
- return Z("info", t, a);
459
+ info(e, r) {
460
+ return xe("info", e, r);
461
461
  },
462
- success(t, a) {
463
- return Z("success", t, a);
462
+ success(e, r) {
463
+ return xe("success", e, r);
464
464
  },
465
- warning(t, a) {
466
- return Z("warning", t, a);
465
+ warning(e, r) {
466
+ return xe("warning", e, r);
467
467
  },
468
- error(t, a) {
469
- return Z("error", t, a);
468
+ error(e, r) {
469
+ return xe("error", e, r);
470
470
  },
471
- loading(t, a) {
472
- return Z("loading", t, a);
471
+ loading(e, r) {
472
+ return xe("loading", e, r);
473
473
  },
474
474
  destroy() {
475
- G && (Me(null, G), G.remove(), G = null, K = null);
475
+ me && (ft(null, me), me.remove(), me = null, pe = null);
476
476
  }
477
477
  };
478
- function Ee(t) {
479
- return t.config.globalProperties.$message = Wt, t;
478
+ function nt(e) {
479
+ return e.config.globalProperties.$message = ta, e;
480
480
  }
481
- B.name = "rc-icon";
482
- function Be(t) {
483
- return t.component(B.name, B), t.component("RcIcon", B), t;
481
+ J.name = "rc-icon";
482
+ function lt(e) {
483
+ return e.component(J.name, J), e.component("RcIcon", J), e;
484
484
  }
485
- const zt = { class: "rc-search-area" }, Mt = { class: "rc-search-area__bar" }, Kt = ["onClick"], Ut = { class: "rc-search-area__item-label" }, Gt = { class: "rc-search-area__panel-content" }, Ft = {
485
+ const aa = { class: "rc-popup__content" }, na = /* @__PURE__ */ ce({
486
+ name: "rc-popup",
487
+ __name: "index",
488
+ props: {
489
+ modelValue: { type: Boolean, default: !1 },
490
+ position: { default: "center" },
491
+ overlay: { type: Boolean, default: !0 },
492
+ overlayClass: { default: "" },
493
+ overlayStyle: { default: void 0 },
494
+ closeable: { type: Boolean, default: !1 },
495
+ closeIconPosition: { default: "top-right" },
496
+ closeIcon: { default: "icon_close" },
497
+ round: { type: Boolean, default: !1 },
498
+ popupStyle: { default: void 0 },
499
+ closeOnClickOverlay: { type: Boolean, default: !0 },
500
+ lockScroll: { type: Boolean, default: !0 }
501
+ },
502
+ emits: ["update:modelValue", "open", "close", "click-overlay"],
503
+ setup(e, { expose: r, emit: d }) {
504
+ const l = e, y = d, b = I(), p = I(l.modelValue);
505
+ be(
506
+ () => l.modelValue,
507
+ (s) => {
508
+ p.value = s, s ? (y("open"), l.lockScroll && A()) : (y("close"), l.lockScroll && $());
509
+ },
510
+ { immediate: !0 }
511
+ ), be(p, (s) => {
512
+ s !== l.modelValue && y("update:modelValue", s);
513
+ });
514
+ const m = M(() => `rc-popup-slide-${l.position}`), i = M(() => ({ ...l.popupStyle || {} }));
515
+ let h = !1;
516
+ function A() {
517
+ h || (h = !0, document.body.style.overflow = "hidden");
518
+ }
519
+ function $() {
520
+ h && (h = !1, document.body.style.overflow = "");
521
+ }
522
+ function g() {
523
+ y("click-overlay"), l.closeOnClickOverlay && V();
524
+ }
525
+ function D() {
526
+ V();
527
+ }
528
+ function V() {
529
+ p.value = !1;
530
+ }
531
+ function x() {
532
+ p.value = !0;
533
+ }
534
+ return Ke(() => {
535
+ $();
536
+ }), r({
537
+ open: x,
538
+ close: V,
539
+ visible: p
540
+ }), (s, fe) => (c(), ie(dt, { to: "body" }, [
541
+ E(we, { name: "rc-popup-fade" }, {
542
+ default: ne(() => [
543
+ p.value && l.overlay ? (c(), v("div", {
544
+ key: 0,
545
+ class: O(["rc-popup__overlay", { "rc-popup__overlay--transparent": l.overlayClass === "transparent" }]),
546
+ style: X(l.overlayStyle),
547
+ onClick: g
548
+ }, null, 6)) : w("", !0)
549
+ ]),
550
+ _: 1
551
+ }),
552
+ E(we, { name: m.value }, {
553
+ default: ne(() => [
554
+ p.value ? (c(), v("div", {
555
+ key: 0,
556
+ ref_key: "popupRef",
557
+ ref: b,
558
+ class: O(["rc-popup", [
559
+ `rc-popup--${e.position}`,
560
+ { "rc-popup--round": e.round }
561
+ ]]),
562
+ style: X(i.value),
563
+ onClick: fe[0] || (fe[0] = $t(() => {
564
+ }, ["stop"]))
565
+ }, [
566
+ e.closeable ? (c(), v("div", {
567
+ key: 0,
568
+ class: O(["rc-popup__close", `rc-popup__close--${e.closeIconPosition}`]),
569
+ onClick: D
570
+ }, [
571
+ E(J, {
572
+ name: e.closeIcon,
573
+ class: "rc-popup__close-icon"
574
+ }, null, 8, ["name"])
575
+ ], 2)) : w("", !0),
576
+ k("div", aa, [
577
+ q(s.$slots, "default", {}, void 0, !0)
578
+ ])
579
+ ], 6)) : w("", !0)
580
+ ]),
581
+ _: 3
582
+ }, 8, ["name"])
583
+ ]));
584
+ }
585
+ }), Ve = /* @__PURE__ */ ue(na, [["__scopeId", "data-v-f1696784"]]);
586
+ Ve.name = "rc-popup";
587
+ const la = "RcPopup";
588
+ function rt(e) {
589
+ return e.component(Ve.name, Ve), e.component(la, Ve), e;
590
+ }
591
+ const ra = {
592
+ key: 0,
593
+ class: "rc-calendar__header"
594
+ }, oa = { class: "rc-calendar__header-title" }, sa = { class: "rc-calendar__month-title" }, ca = { class: "rc-calendar__weekdays" }, ua = { class: "rc-calendar__days" }, ia = ["onClick"], da = { class: "rc-calendar__day-content" }, fa = { class: "rc-calendar__day-text" }, va = {
595
+ key: 0,
596
+ class: "rc-calendar__day-bottom"
597
+ }, pa = {
598
+ key: 1,
599
+ class: "rc-calendar__footer"
600
+ }, ma = {
601
+ key: 0,
602
+ class: "rc-calendar__month-picker-overlay"
603
+ }, ya = { class: "rc-calendar__month-picker" }, ha = { class: "rc-calendar__month-picker-header" }, ga = { class: "rc-calendar__month-picker-title" }, _a = { key: 0 }, ka = {
604
+ key: 0,
605
+ class: "rc-calendar__year-picker-content"
606
+ }, ba = { class: "rc-calendar__year-picker-grid" }, $a = ["onClick"], xa = {
607
+ key: 1,
608
+ class: "rc-calendar__month-picker-content"
609
+ }, Ca = ["onClick"], Fe = 48, Q = 3, Oe = 7, Da = /* @__PURE__ */ ce({
610
+ __name: "panel-content",
611
+ props: {
612
+ showTitle: { type: Boolean },
613
+ title: {},
614
+ range: { type: Boolean },
615
+ selectedDate: {},
616
+ rangeStart: {},
617
+ rangeEnd: {},
618
+ minDate: {},
619
+ maxDate: {},
620
+ disabledDate: { type: Function },
621
+ formatter: { type: Function },
622
+ showFooter: { type: Boolean }
623
+ },
624
+ emits: ["select-day", "clear", "confirm"],
625
+ setup(e, { expose: r, emit: d }) {
626
+ const l = e, y = d, b = ["日", "一", "二", "三", "四", "五", "六"];
627
+ function p(a) {
628
+ if (!a) return null;
629
+ const u = new Date(a);
630
+ return isNaN(u.getTime()) ? null : u;
631
+ }
632
+ function m(a) {
633
+ const u = a.getFullYear(), f = String(a.getMonth() + 1).padStart(2, "0"), S = String(a.getDate()).padStart(2, "0");
634
+ return `${u}-${f}-${S}`;
635
+ }
636
+ const i = I(/* @__PURE__ */ new Date());
637
+ be(
638
+ () => [l.selectedDate, l.rangeStart],
639
+ () => {
640
+ if (l.range && l.rangeStart) {
641
+ const a = p(l.rangeStart);
642
+ a && (i.value = a);
643
+ } else if (!l.range && l.selectedDate) {
644
+ const a = p(l.selectedDate);
645
+ a && (i.value = a);
646
+ }
647
+ },
648
+ { immediate: !0 }
649
+ );
650
+ function h(a) {
651
+ const u = /* @__PURE__ */ new Date();
652
+ return a.getFullYear() === u.getFullYear() && a.getMonth() === u.getMonth() && a.getDate() === u.getDate();
653
+ }
654
+ function A(a) {
655
+ if (!l.rangeStart || !l.rangeEnd) return !1;
656
+ const u = m(a), f = l.rangeStart, S = l.rangeEnd;
657
+ return u > f && u < S;
658
+ }
659
+ function $(a) {
660
+ if (l.disabledDate && l.disabledDate(a))
661
+ return !0;
662
+ const u = m(a);
663
+ return !!(l.minDate && u < l.minDate || l.maxDate && u > l.maxDate);
664
+ }
665
+ function g(a, u) {
666
+ const f = new Date(a, u, 1), S = new Date(a, u + 1, 0), B = f.getDay(), te = S.getDate(), re = [], Se = new Date(a, u, 0).getDate();
667
+ for (let W = B - 1; W >= 0; W--) {
668
+ const z = {
669
+ date: new Date(a, u - 1, Se - W),
670
+ type: "prev-month",
671
+ text: String(Se - W)
672
+ };
673
+ if (l.formatter) {
674
+ const U = l.formatter(z);
675
+ U.text && (z.text = U.text), U.bottomInfo && (z.bottomInfo = U.bottomInfo);
676
+ }
677
+ re.push(z);
678
+ }
679
+ for (let W = 1; W <= te; W++) {
680
+ const z = {
681
+ date: new Date(a, u, W),
682
+ type: "current-month",
683
+ text: String(W)
684
+ };
685
+ if (l.formatter) {
686
+ const U = l.formatter(z);
687
+ U.text && (z.text = U.text), U.bottomInfo && (z.bottomInfo = U.bottomInfo);
688
+ }
689
+ re.push(z);
690
+ }
691
+ const Be = 42 - re.length;
692
+ for (let W = 1; W <= Be; W++) {
693
+ const z = {
694
+ date: new Date(a, u + 1, W),
695
+ type: "next-month",
696
+ text: String(W)
697
+ };
698
+ if (l.formatter) {
699
+ const U = l.formatter(z);
700
+ U.text && (z.text = U.text), U.bottomInfo && (z.bottomInfo = U.bottomInfo);
701
+ }
702
+ re.push(z);
703
+ }
704
+ return re;
705
+ }
706
+ const D = M(() => {
707
+ const a = i.value.getFullYear(), u = i.value.getMonth();
708
+ return g(a, u);
709
+ }), V = M(() => {
710
+ const a = i.value.getFullYear(), u = i.value.getMonth() + 1;
711
+ return `${a}年${u}月`;
712
+ });
713
+ function x(a) {
714
+ const u = [];
715
+ if (a.type !== "current-month" && u.push("is-other-month"), h(a.date) && u.push("is-today"), $(a.date))
716
+ return u.push("is-disabled"), u;
717
+ const f = m(a.date);
718
+ return l.range ? (l.rangeStart === f && u.push("is-start"), l.rangeEnd === f && u.push("is-end"), A(a.date) && u.push("is-in-range")) : l.selectedDate === f && u.push("is-selected"), u;
719
+ }
720
+ const s = M(() => !!(l.rangeStart && l.rangeEnd)), fe = M(() => l.rangeStart && l.rangeEnd ? 2 : l.rangeStart || l.rangeEnd ? 1 : 0);
721
+ function he(a) {
722
+ if (!l.minDate && !l.maxDate)
723
+ return !1;
724
+ const u = l.minDate ? p(l.minDate) : null, f = l.maxDate ? p(l.maxDate) : null;
725
+ return !!(u && a < u.getFullYear() || f && a > f.getFullYear());
726
+ }
727
+ function ve(a, u) {
728
+ const f = l.minDate ? p(l.minDate) : null, S = l.maxDate ? p(l.maxDate) : null;
729
+ if (f) {
730
+ const B = f.getFullYear(), te = f.getMonth() + 1;
731
+ if (a < B || a === B && u < te)
732
+ return !0;
733
+ }
734
+ if (S) {
735
+ const B = S.getFullYear(), te = S.getMonth() + 1;
736
+ if (a > B || a === B && u > te)
737
+ return !0;
738
+ }
739
+ return !1;
740
+ }
741
+ const G = I(!1), Y = I("year"), P = I(i.value.getFullYear()), oe = I(i.value.getMonth() + 1), Z = I(), ee = I(1900), L = I(1920), F = I(1900), _ = I(2100), C = M(() => {
742
+ const a = [], f = Math.floor((ee.value - F.value) / Q) - 3, S = Math.ceil((L.value - F.value) / Q) + 3, B = F.value + Math.max(0, f) * Q, te = F.value + S * Q - 1;
743
+ for (let re = B; re <= te; re++)
744
+ a.push(re);
745
+ return a;
746
+ });
747
+ be(() => i.value, (a) => {
748
+ P.value = a.getFullYear(), oe.value = a.getMonth() + 1;
749
+ }, { immediate: !0 });
750
+ function T() {
751
+ if (!Z.value) return;
752
+ const a = Z.value.scrollTop, f = Math.max(0, Math.floor(a / Fe)), S = F.value + f * Q, B = S + Oe * Q - 1;
753
+ S < F.value ? F.value = S - 100 : B > _.value && (_.value = B + 100), (S !== ee.value || B !== L.value) && (ee.value = S, L.value = B);
754
+ }
755
+ function K() {
756
+ P.value = i.value.getFullYear(), oe.value = i.value.getMonth() + 1, Y.value = "year", G.value = !0;
757
+ const a = P.value;
758
+ a < F.value ? F.value = Math.floor(a / 100) * 100 : a > _.value && (_.value = Math.ceil(a / 100) * 100 + 99), Ge(() => {
759
+ if (Z.value) {
760
+ const u = Math.floor((a - F.value) / Q), f = Math.max(0, u - 2);
761
+ ee.value = F.value + f * Q, L.value = ee.value + Oe * Q - 1, le(a);
762
+ }
763
+ });
764
+ }
765
+ function le(a) {
766
+ if (!Z.value) return;
767
+ a < F.value ? F.value = Math.floor(a / 100) * 100 : a > _.value && (_.value = Math.ceil(a / 100) * 100 + 99);
768
+ const u = Math.floor((a - F.value) / Q), f = u * Fe;
769
+ Z.value.scrollTop = f;
770
+ const S = Math.max(0, u - 2);
771
+ ee.value = F.value + S * Q, L.value = ee.value + Oe * Q - 1;
772
+ }
773
+ function Ae() {
774
+ const a = new Date(i.value);
775
+ a.setMonth(a.getMonth() - 1), i.value = a;
776
+ }
777
+ function Ye() {
778
+ const a = new Date(i.value);
779
+ a.setMonth(a.getMonth() + 1), i.value = a;
780
+ }
781
+ function Pe(a) {
782
+ he(a) || (P.value = a, Y.value = "month");
783
+ }
784
+ function Le(a) {
785
+ ve(P.value, a) || (oe.value = a, We());
786
+ }
787
+ function We() {
788
+ const a = new Date(i.value);
789
+ a.setFullYear(P.value), a.setMonth(oe.value - 1), i.value = a, G.value = !1, Y.value = "year";
790
+ }
791
+ function Te(a) {
792
+ y("select-day", a);
793
+ }
794
+ function ze() {
795
+ y("clear");
796
+ }
797
+ function t() {
798
+ y("confirm");
799
+ }
800
+ function n() {
801
+ G.value = !1;
802
+ }
803
+ function o(a) {
804
+ Y.value = a;
805
+ }
806
+ return r({
807
+ yearScrollRef: Z
808
+ }), (a, u) => (c(), v("div", null, [
809
+ e.showTitle ? (c(), v("div", ra, [
810
+ k("div", oa, R(e.title), 1)
811
+ ])) : w("", !0),
812
+ k("div", sa, [
813
+ k("div", {
814
+ class: "rc-calendar__nav-button",
815
+ onClick: Ae
816
+ }, [
817
+ E(j(J), {
818
+ name: "icon_caret-left",
819
+ class: "rc-calendar__nav-icon"
820
+ })
821
+ ]),
822
+ k("div", {
823
+ class: "rc-calendar__month-text",
824
+ onClick: K
825
+ }, R(V.value), 1),
826
+ k("div", {
827
+ class: "rc-calendar__nav-button",
828
+ onClick: Ye
829
+ }, [
830
+ E(j(J), {
831
+ name: "icon_caret-right",
832
+ class: "rc-calendar__nav-icon"
833
+ })
834
+ ])
835
+ ]),
836
+ k("div", ca, [
837
+ (c(), v(H, null, ae(b, (f) => k("div", {
838
+ key: f,
839
+ class: "rc-calendar__weekday"
840
+ }, R(f), 1)), 64))
841
+ ]),
842
+ k("div", ua, [
843
+ (c(!0), v(H, null, ae(D.value, (f, S) => (c(), v("div", {
844
+ key: S,
845
+ class: O(["rc-calendar__day", x(f)]),
846
+ onClick: (B) => Te(f)
847
+ }, [
848
+ k("div", da, [
849
+ k("span", fa, R(f.text), 1),
850
+ f.bottomInfo ? (c(), v("span", va, R(f.bottomInfo), 1)) : w("", !0)
851
+ ])
852
+ ], 10, ia))), 128))
853
+ ]),
854
+ e.range && e.showFooter ? (c(), v("div", pa, [
855
+ E(j(ye), {
856
+ type: "default",
857
+ class: "rc-calendar__footer-reset",
858
+ onClick: ze
859
+ }, {
860
+ default: ne(() => [...u[2] || (u[2] = [
861
+ de("取消", -1)
862
+ ])]),
863
+ _: 1
864
+ }),
865
+ E(j(ye), {
866
+ type: "primary",
867
+ class: "rc-calendar__footer-confirm",
868
+ disabled: !s.value,
869
+ onClick: t
870
+ }, {
871
+ default: ne(() => [
872
+ de(R(s.value ? `确定(${fe.value}项)` : "确定"), 1)
873
+ ]),
874
+ _: 1
875
+ }, 8, ["disabled"])
876
+ ])) : w("", !0),
877
+ E(we, { name: "rc-calendar-fade" }, {
878
+ default: ne(() => [
879
+ G.value ? (c(), v("div", ma, [
880
+ k("div", ya, [
881
+ k("div", ha, [
882
+ E(j(ye), {
883
+ type: "default",
884
+ mode: "text",
885
+ size: "small",
886
+ onClick: n
887
+ }, {
888
+ default: ne(() => [...u[3] || (u[3] = [
889
+ de("取消", -1)
890
+ ])]),
891
+ _: 1
892
+ }),
893
+ k("div", ga, [
894
+ k("span", {
895
+ onClick: u[0] || (u[0] = (f) => o("year"))
896
+ }, R(P.value) + "年", 1),
897
+ Y.value === "month" ? (c(), v("span", _a, " - ")) : w("", !0),
898
+ Y.value === "month" ? (c(), v("span", {
899
+ key: 1,
900
+ onClick: u[1] || (u[1] = (f) => o("month"))
901
+ }, R(oe.value) + "月", 1)) : w("", !0)
902
+ ])
903
+ ]),
904
+ Y.value === "year" ? (c(), v("div", ka, [
905
+ k("div", {
906
+ class: "rc-calendar__year-picker-scroll",
907
+ ref_key: "yearScrollRef",
908
+ ref: Z,
909
+ onScroll: T
910
+ }, [
911
+ k("div", {
912
+ class: "rc-calendar__year-picker-spacer",
913
+ style: X({ height: `${Math.floor((ee.value - F.value) / Q) * Fe}px` })
914
+ }, null, 4),
915
+ k("div", ba, [
916
+ (c(!0), v(H, null, ae(C.value, (f) => (c(), v("div", {
917
+ key: f,
918
+ class: O(["rc-calendar__year-picker-item", {
919
+ "is-selected": P.value === f,
920
+ "is-disabled": he(f)
921
+ }]),
922
+ onClick: (S) => Pe(f)
923
+ }, R(f), 11, $a))), 128))
924
+ ]),
925
+ k("div", {
926
+ class: "rc-calendar__year-picker-spacer",
927
+ style: X({ height: `${Math.ceil((_.value - L.value) / Q) * Fe}px` })
928
+ }, null, 4)
929
+ ], 544)
930
+ ])) : w("", !0),
931
+ Y.value === "month" ? (c(), v("div", xa, [
932
+ (c(), v(H, null, ae(12, (f) => k("div", {
933
+ key: f,
934
+ class: O(["rc-calendar__month-picker-item", {
935
+ "is-selected": oe.value === f,
936
+ "is-disabled": ve(P.value, f)
937
+ }]),
938
+ onClick: (S) => Le(f)
939
+ }, R(f) + "月 ", 11, Ca)), 64))
940
+ ])) : w("", !0)
941
+ ])
942
+ ])) : w("", !0)
943
+ ]),
944
+ _: 1
945
+ })
946
+ ]));
947
+ }
948
+ }), ot = /* @__PURE__ */ ue(Da, [["__scopeId", "data-v-30d4815e"]]), wa = { class: "rc-calendar" }, Sa = ["placeholder"], Ia = {
949
+ key: 1,
950
+ class: "rc-calendar__panel"
951
+ }, Ma = /* @__PURE__ */ ce({
952
+ name: "rc-calendar",
953
+ __name: "index",
954
+ props: {
955
+ modelValue: { default: null },
956
+ range: { type: [Boolean, Number], default: !1 },
957
+ mode: { default: "default" },
958
+ placeholder: { default: "请选择日期" },
959
+ showTitle: { type: Boolean, default: !0 },
960
+ title: { default: "选择日期" },
961
+ minDate: { default: void 0 },
962
+ maxDate: { default: void 0 },
963
+ disabledDate: { type: Function, default: void 0 },
964
+ formatter: { type: Function, default: void 0 },
965
+ showFooter: { type: Boolean, default: !0 }
966
+ },
967
+ emits: ["update:modelValue", "change", "confirm"],
968
+ setup(e, { emit: r }) {
969
+ const d = e, l = r, y = I(), b = I(), p = I(!1), m = I(""), i = M(() => d.range === !0 || typeof d.range == "number"), h = M(() => typeof d.range == "number" ? d.range : void 0), A = M(() => (_) => {
970
+ if (d.disabledDate && d.disabledDate(_))
971
+ return !0;
972
+ if (h.value !== void 0 && g.value && !D.value) {
973
+ const C = s(_);
974
+ if (x(g.value) && fe(g.value, C) > h.value)
975
+ return !0;
976
+ }
977
+ return !1;
978
+ }), $ = I(null), g = I(null), D = I(null);
979
+ be(
980
+ () => d.modelValue,
981
+ (_) => {
982
+ i.value ? Array.isArray(_) && _.length === 2 ? (g.value = _[0], D.value = _[1]) : (g.value = null, D.value = null) : $.value = typeof _ == "string" ? _ : null, V();
983
+ },
984
+ { immediate: !0 }
985
+ );
986
+ function V() {
987
+ d.mode === "popup" && (i.value ? g.value && D.value ? m.value = `${g.value} ~ ${D.value}` : g.value ? m.value = `${g.value} ~ ` : m.value = "" : m.value = $.value || "");
988
+ }
989
+ function x(_) {
990
+ if (!_) return null;
991
+ const C = new Date(_);
992
+ return isNaN(C.getTime()) ? null : C;
993
+ }
994
+ function s(_) {
995
+ const C = _.getFullYear(), T = String(_.getMonth() + 1).padStart(2, "0"), K = String(_.getDate()).padStart(2, "0");
996
+ return `${C}-${T}-${K}`;
997
+ }
998
+ function fe(_, C) {
999
+ const T = x(_), K = x(C);
1000
+ if (!T || !K) return 0;
1001
+ const le = Math.abs(K.getTime() - T.getTime());
1002
+ return Math.ceil(le / (1e3 * 60 * 60 * 24));
1003
+ }
1004
+ function he(_) {
1005
+ if (_.type !== "current-month" || d.disabledDate && d.disabledDate(_.date))
1006
+ return;
1007
+ const C = s(_.date);
1008
+ if (!(d.minDate && C < d.minDate) && !(d.maxDate && C > d.maxDate)) {
1009
+ if (i.value)
1010
+ if (!g.value || g.value && D.value)
1011
+ g.value = C, D.value = null;
1012
+ else {
1013
+ let T = g.value, K = C;
1014
+ if (C < g.value && (K = g.value, T = C), g.value = T, D.value = K, g.value && D.value) {
1015
+ const le = [g.value, D.value];
1016
+ l("update:modelValue", le), l("change", le), d.showFooter || ve();
1017
+ }
1018
+ }
1019
+ else {
1020
+ $.value = C;
1021
+ const T = C;
1022
+ l("update:modelValue", T), l("change", T), d.mode && P();
1023
+ }
1024
+ V();
1025
+ }
1026
+ }
1027
+ function ve() {
1028
+ if (g.value && D.value) {
1029
+ const _ = [g.value, D.value];
1030
+ l("update:modelValue", _), l("change", _), l("confirm", _), P();
1031
+ }
1032
+ }
1033
+ function G() {
1034
+ i.value ? (g.value = null, D.value = null) : $.value = null;
1035
+ const _ = null;
1036
+ l("update:modelValue", _), l("change", _), V();
1037
+ }
1038
+ function Y() {
1039
+ p.value = !0;
1040
+ }
1041
+ function P() {
1042
+ p.value = !1;
1043
+ }
1044
+ function oe(_) {
1045
+ p.value = _;
1046
+ }
1047
+ function Z() {
1048
+ Y();
1049
+ }
1050
+ function ee() {
1051
+ d.mode === "popup" && F();
1052
+ }
1053
+ function L() {
1054
+ p.value || Y();
1055
+ }
1056
+ function F() {
1057
+ const _ = m.value.trim();
1058
+ if (i.value) {
1059
+ const C = _.split("~").map((T) => T.trim());
1060
+ if (C.length === 2 && C[0] && C[1]) {
1061
+ const T = x(C[0]), K = x(C[1]);
1062
+ if (T && K && !isNaN(T.getTime()) && !isNaN(K.getTime())) {
1063
+ g.value = s(T), D.value = s(K);
1064
+ const le = [g.value, D.value];
1065
+ l("update:modelValue", le), l("change", le);
1066
+ return;
1067
+ }
1068
+ }
1069
+ } else {
1070
+ const C = x(_);
1071
+ if (C && !isNaN(C.getTime())) {
1072
+ $.value = s(C), l("update:modelValue", $.value), l("change", $.value);
1073
+ return;
1074
+ }
1075
+ }
1076
+ V();
1077
+ }
1078
+ return (_, C) => (c(), v("div", wa, [
1079
+ e.mode === "popup" ? (c(), v("div", {
1080
+ key: 0,
1081
+ class: "rc-calendar__input",
1082
+ onClick: Y
1083
+ }, [
1084
+ vt(k("input", {
1085
+ ref_key: "inputRef",
1086
+ ref: y,
1087
+ "onUpdate:modelValue": C[0] || (C[0] = (T) => m.value = T),
1088
+ type: "text",
1089
+ class: "rc-calendar__input-field",
1090
+ placeholder: e.placeholder,
1091
+ readonly: "",
1092
+ onFocus: Z,
1093
+ onBlur: ee,
1094
+ onInput: L
1095
+ }, null, 40, Sa), [
1096
+ [pt, m.value]
1097
+ ]),
1098
+ E(j(J), {
1099
+ name: "icon_a-rili",
1100
+ class: "rc-calendar__input-icon"
1101
+ })
1102
+ ])) : w("", !0),
1103
+ e.mode === "default" ? (c(), v("div", Ia, [
1104
+ E(ot, {
1105
+ "show-title": e.showTitle,
1106
+ title: e.title,
1107
+ range: i.value,
1108
+ "selected-date": $.value,
1109
+ "range-start": g.value,
1110
+ "range-end": D.value,
1111
+ "min-date": e.minDate,
1112
+ "max-date": e.maxDate,
1113
+ "disabled-date": A.value,
1114
+ formatter: e.formatter,
1115
+ "show-footer": !1,
1116
+ onSelectDay: he,
1117
+ onClear: G,
1118
+ onConfirm: ve
1119
+ }, null, 8, ["show-title", "title", "range", "selected-date", "range-start", "range-end", "min-date", "max-date", "disabled-date", "formatter"])
1120
+ ])) : w("", !0),
1121
+ e.mode === "popup" ? (c(), ie(j(Ve), {
1122
+ key: 2,
1123
+ modelValue: p.value,
1124
+ "onUpdate:modelValue": [
1125
+ C[1] || (C[1] = (T) => p.value = T),
1126
+ oe
1127
+ ],
1128
+ position: "bottom",
1129
+ overlay: !0,
1130
+ round: !0,
1131
+ "close-on-click-overlay": !0,
1132
+ "lock-scroll": !0
1133
+ }, {
1134
+ default: ne(() => [
1135
+ k("div", {
1136
+ ref_key: "popupPanelRef",
1137
+ ref: b,
1138
+ class: "rc-calendar__panel"
1139
+ }, [
1140
+ E(ot, {
1141
+ "show-title": e.showTitle,
1142
+ title: e.title,
1143
+ range: i.value,
1144
+ "selected-date": $.value,
1145
+ "range-start": g.value,
1146
+ "range-end": D.value,
1147
+ "min-date": e.minDate,
1148
+ "max-date": e.maxDate,
1149
+ "disabled-date": A.value,
1150
+ formatter: e.formatter,
1151
+ "show-footer": e.showFooter,
1152
+ onSelectDay: he,
1153
+ onClear: G,
1154
+ onConfirm: ve
1155
+ }, null, 8, ["show-title", "title", "range", "selected-date", "range-start", "range-end", "min-date", "max-date", "disabled-date", "formatter", "show-footer"])
1156
+ ], 512)
1157
+ ]),
1158
+ _: 1
1159
+ }, 8, ["modelValue"])) : w("", !0)
1160
+ ]));
1161
+ }
1162
+ }), Re = /* @__PURE__ */ ue(Ma, [["__scopeId", "data-v-2836ea57"]]);
1163
+ Re.name = "rc-calendar";
1164
+ const Va = "RcCalendar";
1165
+ function st(e) {
1166
+ return e.component(Re.name, Re), e.component(Va, Re), e;
1167
+ }
1168
+ const Ra = { class: "rc-search-area" }, Aa = { class: "rc-search-area__bar" }, Ta = ["onClick"], Ba = { class: "rc-search-area__item-label" }, Fa = { class: "rc-search-area__panel-content" }, Na = {
486
1169
  key: 1,
487
1170
  class: "rc-search-area__input-wrapper"
488
- }, Ot = ["placeholder"], jt = {
1171
+ }, Ea = ["placeholder"], Ya = {
489
1172
  key: 2,
490
- class: "rc-search-area__tree-container"
491
- }, Pt = { class: "rc-search-area__tree-group-title" }, qt = { class: "rc-search-area__tree-group-options" }, Ht = ["onClick"], Yt = { class: "rc-search-area__option-label" }, Jt = {
1173
+ class: "rc-search-area__calendar-wrapper"
1174
+ }, Pa = {
492
1175
  key: 3,
493
1176
  class: "rc-search-area__tree-container"
494
- }, Qt = { class: "rc-search-area__tree-group-title" }, Xt = { class: "rc-search-area__tree-group-options" }, Zt = ["onClick"], en = { class: "rc-search-area__option-label" }, tn = {
1177
+ }, La = { class: "rc-search-area__tree-group-title" }, Wa = { class: "rc-search-area__tree-group-options" }, za = ["onClick"], Ua = { class: "rc-search-area__option-label" }, Oa = {
495
1178
  key: 4,
496
- class: "rc-search-area__options-grid"
497
- }, nn = ["onClick"], an = { class: "rc-search-area__option-label" }, sn = {
1179
+ class: "rc-search-area__tree-container"
1180
+ }, Ga = { class: "rc-search-area__tree-group-title" }, Ka = { class: "rc-search-area__tree-group-options" }, ja = ["onClick"], Ha = { class: "rc-search-area__option-label" }, qa = {
498
1181
  key: 5,
499
1182
  class: "rc-search-area__options-grid"
500
- }, rn = ["onClick"], ln = { class: "rc-search-area__option-label" }, on = {
1183
+ }, Ja = ["onClick"], Qa = { class: "rc-search-area__option-label" }, Xa = {
501
1184
  key: 6,
1185
+ class: "rc-search-area__options-grid"
1186
+ }, Za = ["onClick"], en = { class: "rc-search-area__option-label" }, tn = {
1187
+ key: 7,
502
1188
  class: "rc-search-area__empty"
503
- }, cn = {
1189
+ }, an = {
504
1190
  key: 0,
505
1191
  class: "rc-search-area__panel-footer"
506
- }, un = /* @__PURE__ */ F({
1192
+ }, nn = /* @__PURE__ */ ce({
507
1193
  name: "rc-search-area",
508
1194
  __name: "index",
509
1195
  props: {
@@ -513,423 +1199,457 @@ const zt = { class: "rc-search-area" }, Mt = { class: "rc-search-area__bar" }, K
513
1199
  autoConfirm: { type: Boolean, default: !1 }
514
1200
  },
515
1201
  emits: ["update:modelValue", "change"],
516
- setup(t, { expose: a, emit: o }) {
517
- const d = t, y = o, h = V(null), p = V(null), f = V(null), c = V({ top: "0px" }), v = async () => {
518
- if (h.value === null || !p.value)
1202
+ setup(e, { expose: r, emit: d }) {
1203
+ const l = e, y = d, b = I(null), p = I(null), m = I(null), i = I({ top: "0px" }), h = async () => {
1204
+ if (b.value === null || !p.value)
519
1205
  return;
520
- await we();
1206
+ await Ge();
521
1207
  const n = p.value.getBoundingClientRect().top;
522
- c.value = { top: `${n}px` };
523
- }, x = (e) => {
524
- if (h.value === null || !p.value)
1208
+ i.value = { top: `${n}px` };
1209
+ }, A = (t) => {
1210
+ if (b.value === null || !p.value)
525
1211
  return;
526
- const n = e.target;
1212
+ const n = t.target;
527
1213
  if (p.value.contains(n))
528
1214
  return;
529
- const s = p.value.closest(".rc-search-area");
530
- if (s) {
531
- const i = s.querySelector(".rc-search-area__bar");
532
- if (i && i.contains(n))
1215
+ const o = p.value.closest(".rc-search-area");
1216
+ if (o) {
1217
+ const a = o.querySelector(".rc-search-area__bar");
1218
+ if (a && a.contains(n))
533
1219
  return;
534
1220
  }
535
- j();
1221
+ G();
536
1222
  };
537
- Ie(h, async (e) => {
538
- e !== null ? (await we(), v(), window.addEventListener("resize", v), window.addEventListener("scroll", v, !0), document.addEventListener("click", x, !0)) : (window.removeEventListener("resize", v), window.removeEventListener("scroll", v, !0), document.removeEventListener("click", x, !0));
539
- }), ze(() => {
540
- window.removeEventListener("resize", v), window.removeEventListener("scroll", v, !0), document.removeEventListener("click", x, !0);
1223
+ be(b, async (t) => {
1224
+ t !== null ? (await Ge(), h(), window.addEventListener("resize", h), window.addEventListener("scroll", h, !0), document.addEventListener("click", A, !0)) : (window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0), document.removeEventListener("click", A, !0));
1225
+ }), Ke(() => {
1226
+ window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0), document.removeEventListener("click", A, !0);
541
1227
  });
542
- const _ = V({}), I = V(""), R = V({}), m = V({ ...d.modelValue });
543
- Ie(() => d.modelValue, (e) => {
544
- m.value = { ...e || {} };
1228
+ const $ = I({}), g = I(""), D = I(null), V = I({}), x = I({ ...l.modelValue });
1229
+ be(() => l.modelValue, (t) => {
1230
+ x.value = { ...t || {} };
545
1231
  }, { deep: !0, immediate: !0 });
546
- const r = C(() => h.value === null ? null : d.items[h.value]), Ge = C(() => {
547
- if (!r.value) return "";
548
- const e = Je(r.value);
549
- return e > 0 ? `(${e}项)` : "";
550
- }), Fe = (e) => {
551
- const n = m.value[e.key];
552
- if (n == null || n === "" || e.slot)
553
- return e.label;
554
- if (e.type === "input") {
1232
+ const s = M(() => b.value === null ? null : l.items[b.value]), fe = M(() => {
1233
+ if (!s.value) return "";
1234
+ const t = ze(s.value);
1235
+ return t > 0 ? `(${t}项)` : "";
1236
+ }), he = (t) => {
1237
+ const n = x.value[t.key];
1238
+ if (n == null || n === "" || t.slot)
1239
+ return t.label;
1240
+ if (t.type === "input") {
555
1241
  if (n && String(n).trim())
556
- return `${e.label}: ${n}`;
557
- } else if (e.type === "single" || e.type === "tree-single") {
558
- const s = ie(e, n);
559
- if (s)
560
- return `${e.label}: ${ye(s, e)}`;
1242
+ return `${t.label}: ${n}`;
1243
+ } else if (t.type === "calendar") {
1244
+ if (n) {
1245
+ if (Array.isArray(n) && n.length === 2)
1246
+ return `${t.label}: ${n[0]} ~ ${n[1]}`;
1247
+ if (typeof n == "string")
1248
+ return `${t.label}: ${n}`;
1249
+ }
1250
+ } else if (t.type === "single" || t.type === "tree-single") {
1251
+ const o = Z(t, n);
1252
+ if (o)
1253
+ return `${t.label}: ${oe(o, t)}`;
561
1254
  } else {
562
- const s = Array.isArray(n) ? n : [n];
563
- if (s.length > 0) {
564
- const i = s.map((b) => {
565
- const g = ie(e, b);
566
- return g ? ye(g, e) : null;
567
- }).filter((b) => b !== null);
568
- if (i.length > 0)
569
- return `${e.label}: ${i.join("、")}`;
1255
+ const o = Array.isArray(n) ? n : [n];
1256
+ if (o.length > 0) {
1257
+ const a = o.map((u) => {
1258
+ const f = Z(t, u);
1259
+ return f ? oe(f, t) : null;
1260
+ }).filter((u) => u !== null);
1261
+ if (a.length > 0)
1262
+ return `${t.label}: ${a.join("、")}`;
570
1263
  }
571
1264
  }
572
- return e.label;
573
- }, Oe = (e) => {
574
- const n = d.items[e];
1265
+ return t.label;
1266
+ }, ve = (t) => {
1267
+ const n = l.items[t];
575
1268
  if (!n) return;
576
- if (h.value === e) {
577
- h.value = null;
1269
+ if (b.value === t) {
1270
+ b.value = null;
578
1271
  return;
579
1272
  }
580
- const s = m.value[n.key];
581
- n.slot ? R.value[n.key] = s !== void 0 ? typeof s == "object" && s !== null ? { ...s } : s : void 0 : n.type === "input" ? I.value = s != null ? String(s) : "" : n.type === "single" || n.type === "tree-single" ? _.value[n.key] = s !== void 0 ? s : null : _.value[n.key] = s !== void 0 ? Array.isArray(s) ? [...s] : [s] : [], h.value = e;
582
- }, j = () => {
583
- h.value = null;
584
- }, P = (e, n) => {
1273
+ const o = x.value[n.key];
1274
+ n.slot ? o != null ? Array.isArray(o) ? V.value[n.key] = [...o] : typeof o == "object" ? V.value[n.key] = { ...o } : V.value[n.key] = o : V.value[n.key] = void 0 : n.type === "input" ? g.value = o != null ? String(o) : "" : n.type === "calendar" ? D.value = o ?? null : n.type === "single" || n.type === "tree-single" ? $.value[n.key] = o !== void 0 ? o : null : $.value[n.key] = o !== void 0 ? Array.isArray(o) ? [...o] : [o] : [], b.value = t;
1275
+ }, G = () => {
1276
+ b.value = null;
1277
+ }, Y = (t, n) => {
585
1278
  if (!n)
586
- return typeof e == "string" ? e : e.label || String(e.value);
587
- const s = e;
1279
+ return typeof t == "string" ? t : t.label || String(t.value);
1280
+ const o = t;
588
1281
  if (n.renderItem) {
589
1282
  if (typeof n.renderItem == "string")
590
- return String(typeof s == "object" && s !== null ? s[n.renderItem] ?? "" : s);
1283
+ return String(typeof o == "object" && o !== null ? o[n.renderItem] ?? "" : o);
591
1284
  {
592
- const i = n.renderItem(s);
593
- return i != null ? String(i) : "";
1285
+ const a = n.renderItem(o);
1286
+ return a != null ? String(a) : "";
594
1287
  }
595
1288
  }
596
- return typeof e == "string" ? e : e.label || String(e.value);
597
- }, oe = (e, n) => {
1289
+ return typeof t == "string" ? t : t.label || String(t.value);
1290
+ }, P = (t, n) => {
598
1291
  if (!n)
599
- return typeof e == "string" ? e : e.value !== void 0 ? e.value : e;
600
- const s = e;
601
- return n.format ? typeof n.format == "string" ? typeof s == "object" && s !== null ? s[n.format] : s : n.format(s) : typeof e == "string" ? e : e.value !== void 0 ? e.value : e;
602
- }, ye = (e, n) => {
603
- const s = e, i = n.renderResult || n.renderItem;
604
- if (i) {
605
- if (typeof i == "string")
606
- return String(typeof s == "object" && s !== null ? s[i] ?? "" : s);
1292
+ return typeof t == "string" ? t : t.value !== void 0 ? t.value : t;
1293
+ const o = t;
1294
+ return n.format ? typeof n.format == "string" ? typeof o == "object" && o !== null ? o[n.format] : o : n.format(o) : typeof t == "string" ? t : t.value !== void 0 ? t.value : t;
1295
+ }, oe = (t, n) => {
1296
+ const o = t, a = n.renderResult || n.renderItem;
1297
+ if (a) {
1298
+ if (typeof a == "string")
1299
+ return String(typeof o == "object" && o !== null ? o[a] ?? "" : o);
607
1300
  {
608
- const b = i(s);
609
- return b != null ? String(b) : "";
1301
+ const u = a(o);
1302
+ return u != null ? String(u) : "";
610
1303
  }
611
1304
  }
612
- return P(e, n);
613
- }, ie = (e, n, s) => {
614
- const i = s || e.options, b = e.childrenKey || "children";
615
- for (const g of i) {
616
- const N = oe(g, e);
617
- if (N === n || String(N) === String(n))
618
- return g;
619
- if (e.childrenKey && typeof g == "object" && g !== null) {
620
- const Q = g[b];
621
- if (Array.isArray(Q) && Q.length > 0) {
622
- const se = ie(e, n, Q);
623
- if (se) return se;
1305
+ return Y(t, n);
1306
+ }, Z = (t, n, o) => {
1307
+ const a = o || t.options, u = t.childrenKey || "children";
1308
+ for (const f of a) {
1309
+ const S = P(f, t);
1310
+ if (S === n || String(S) === String(n))
1311
+ return f;
1312
+ if (typeof f == "object" && f !== null) {
1313
+ const B = f[u];
1314
+ if (Array.isArray(B) && B.length > 0) {
1315
+ const te = Z(t, n, B);
1316
+ if (te) return te;
624
1317
  }
625
1318
  }
626
1319
  }
627
1320
  return null;
628
- }, pe = (e, n) => {
629
- const s = n || e.options, i = e.childrenKey || "children", b = [];
630
- for (const g of s)
631
- if (b.push(g), e.childrenKey && typeof g == "object" && g !== null) {
632
- const N = g[i];
633
- Array.isArray(N) && N.length > 0 && b.push(...pe(e, N));
1321
+ }, ee = (t, n) => {
1322
+ const o = n || t.options, a = t.childrenKey || "children", u = [];
1323
+ for (const f of o)
1324
+ if (u.push(f), typeof f == "object" && f !== null) {
1325
+ const S = f[a];
1326
+ Array.isArray(S) && S.length > 0 && u.push(...ee(t, S));
634
1327
  }
635
- return b;
636
- }, z = (e) => {
637
- if (!r.value) return !1;
638
- const n = r.value.key, s = _.value[n], i = oe(e, r.value);
639
- return r.value.type === "single" || r.value.type === "tree-single" ? s != null && s === i : (Array.isArray(s) ? s : []).some((g) => g === i || String(g) === String(i));
640
- }, he = (e) => e ? e.childrenKey ? pe(e) : e.options : [], me = (e) => {
641
- if (!e) return [];
642
- const n = e.childrenKey || "children";
643
- return (e.options || []).filter((s) => {
644
- if (typeof s == "string") return !1;
645
- const i = s[n];
646
- return Array.isArray(i) && i.length > 0;
1328
+ return u;
1329
+ }, L = (t) => {
1330
+ if (!s.value) return !1;
1331
+ const n = s.value.key, o = $.value[n], a = P(t, s.value);
1332
+ return s.value.type === "single" || s.value.type === "tree-single" ? o != null && o === a : (Array.isArray(o) ? o : []).some((f) => f === a || String(f) === String(a));
1333
+ }, F = (t) => t ? t.childrenKey ? ee(t) : t.options : [], _ = (t) => {
1334
+ if (!t) return [];
1335
+ const n = t.childrenKey || "children";
1336
+ return (t.options || []).filter((o) => {
1337
+ if (typeof o == "string") return !1;
1338
+ const a = o[n];
1339
+ return Array.isArray(a) && a.length > 0;
647
1340
  });
648
- }, _e = (e, n) => {
649
- if (!n || typeof e == "string") return [];
650
- const s = n.childrenKey || "children", i = e[s];
651
- return Array.isArray(i) ? i : [];
652
- }, je = (e) => {
653
- if (e)
654
- return R.value[e.key] !== void 0 ? R.value[e.key] : m.value[e.key];
655
- }, Pe = (e, n) => {
656
- if (e && (R.value[e.key] = n, d.autoConfirm)) {
657
- const s = e.key;
658
- m.value[s] = n, y("update:modelValue", { ...m.value }), y("change", { ...m.value }, e), j();
1341
+ }, C = (t, n) => {
1342
+ if (!n || typeof t == "string") return [];
1343
+ const o = n.childrenKey || "children", a = t[o];
1344
+ return Array.isArray(a) ? a : [];
1345
+ }, T = (t) => {
1346
+ if (t)
1347
+ return V.value[t.key] !== void 0 ? V.value[t.key] : x.value[t.key];
1348
+ }, K = (t, n) => {
1349
+ if (t && (V.value[t.key] = n, l.autoConfirm)) {
1350
+ const o = t.key;
1351
+ x.value[o] = n, y("update:modelValue", { ...x.value }), y("change", { ...x.value }, t), G();
659
1352
  }
660
- }, ge = (e) => {
661
- if (!r.value) return;
662
- const n = r.value.key, s = oe(e, r.value);
663
- m.value[n];
664
- let i;
665
- _.value[n] === s ? i = void 0 : i = s, m.value[n] = i, y("update:modelValue", { ...m.value }), y("change", { ...m.value }, r.value), j();
666
- }, ke = (e) => {
667
- if (!r.value) return;
668
- const n = r.value.key, s = oe(e, r.value), i = Array.isArray(_.value[n]) ? [..._.value[n]] : [], b = i.findIndex(
669
- (g) => g === s || String(g) === String(s)
1353
+ }, le = (t) => {
1354
+ if (!s.value) return;
1355
+ const n = s.value.key, o = P(t, s.value);
1356
+ x.value[n];
1357
+ let a;
1358
+ $.value[n] === o ? a = void 0 : a = o, x.value[n] = a, y("update:modelValue", { ...x.value }), y("change", { ...x.value }, s.value), G();
1359
+ }, Ae = (t) => {
1360
+ if (!s.value) return;
1361
+ const n = s.value.key, o = P(t, s.value), a = Array.isArray($.value[n]) ? [...$.value[n]] : [], u = a.findIndex(
1362
+ (f) => f === o || String(f) === String(o)
670
1363
  );
671
- if (b >= 0 ? i.splice(b, 1) : i.push(s), _.value[n] = i, d.autoConfirm) {
672
- const g = i.length > 0 ? i : void 0;
673
- m.value[n] = g, y("update:modelValue", { ...m.value }), y("change", { ...m.value }, r.value), j();
674
- }
675
- }, qe = () => {
676
- if (!r.value) return;
677
- const e = r.value.key;
678
- r.value.slot ? R.value[e] = void 0 : r.value.type === "input" ? I.value = "" : r.value.type === "single" || r.value.type === "tree-single" ? _.value[e] = null : _.value[e] = [];
679
- }, He = () => {
680
- if (d.autoConfirm && r.value) {
681
- const e = r.value.key, n = I.value.trim() || void 0;
682
- m.value[e] = n, y("update:modelValue", { ...m.value }), y("change", { ...m.value }, r.value), j();
1364
+ if (u >= 0 ? a.splice(u, 1) : a.push(o), $.value[n] = a, l.autoConfirm) {
1365
+ const f = a.length > 0 ? a : void 0;
1366
+ x.value[n] = f, y("update:modelValue", { ...x.value }), y("change", { ...x.value }, s.value), G();
683
1367
  }
684
1368
  }, Ye = () => {
685
- if (!r.value) return;
686
- const e = r.value.key;
687
- m.value[e];
1369
+ if (!s.value) return;
1370
+ const t = s.value.key;
1371
+ s.value.slot ? V.value[t] = void 0 : s.value.type === "input" ? g.value = "" : s.value.type === "calendar" ? D.value = null : s.value.type === "single" || s.value.type === "tree-single" ? $.value[t] = null : $.value[t] = [];
1372
+ }, Pe = () => {
1373
+ if (l.autoConfirm && s.value) {
1374
+ const t = s.value.key, n = g.value.trim() || void 0;
1375
+ x.value[t] = n, y("update:modelValue", { ...x.value }), y("change", { ...x.value }, s.value), G();
1376
+ }
1377
+ }, Le = (t) => {
1378
+ if (D.value = t, l.autoConfirm && s.value) {
1379
+ const n = s.value.key, o = t ?? void 0;
1380
+ x.value[n] = o, y("update:modelValue", { ...x.value }), y("change", { ...x.value }, s.value), G();
1381
+ }
1382
+ }, We = () => {
1383
+ if (!s.value) return;
1384
+ const t = s.value.key;
1385
+ x.value[t];
688
1386
  let n;
689
- if (r.value.slot)
690
- n = R.value[e], m.value[e] = n;
691
- else if (r.value.type === "input")
692
- n = I.value.trim() || void 0, m.value[e] = n;
693
- else if (r.value.type === "single" || r.value.type === "tree-single") {
694
- const s = _.value[e];
695
- n = s ?? void 0, m.value[e] = n;
1387
+ if (s.value.slot)
1388
+ n = V.value[t], x.value[t] = n;
1389
+ else if (s.value.type === "input")
1390
+ n = g.value.trim() || void 0, x.value[t] = n;
1391
+ else if (s.value.type === "calendar")
1392
+ n = D.value !== null && D.value !== void 0 ? D.value : void 0, x.value[t] = n;
1393
+ else if (s.value.type === "single" || s.value.type === "tree-single") {
1394
+ const o = $.value[t];
1395
+ n = o ?? void 0, x.value[t] = n;
696
1396
  } else {
697
- const s = _.value[e];
698
- n = Array.isArray(s) && s.length > 0 ? s : void 0, m.value[e] = n;
1397
+ const o = $.value[t];
1398
+ n = Array.isArray(o) && o.length > 0 ? o : void 0, x.value[t] = n;
699
1399
  }
700
- y("update:modelValue", { ...m.value }), y("change", { ...m.value }, r.value), j();
701
- }, be = (e) => {
702
- const n = m.value[e.key];
703
- return n == null || n === "" ? 0 : e.slot ? 1 : e.type === "input" ? String(n).trim() ? 1 : 0 : e.type === "single" || e.type === "tree-single" ? 1 : Array.isArray(n) ? n.length : n ? 1 : 0;
704
- }, Je = (e) => {
705
- if (e.slot) {
706
- const s = R.value[e.key];
707
- return s != null && s !== "" ? 1 : 0;
708
- } else if (e.type === "input")
709
- return I.value.trim() ? 1 : 0;
710
- const n = _.value[e.key];
711
- return n == null || n === "" ? 0 : e.type === "single" || e.type === "tree-single" ? 1 : Array.isArray(n) ? n.length : 0;
1400
+ y("update:modelValue", { ...x.value }), y("change", { ...x.value }, s.value), G();
1401
+ }, Te = (t) => {
1402
+ const n = x.value[t.key];
1403
+ return n == null || n === "" ? 0 : t.slot ? 1 : t.type === "input" ? String(n).trim() ? 1 : 0 : t.type === "single" || t.type === "tree-single" ? 1 : Array.isArray(n) ? n.length : n ? 1 : 0;
1404
+ }, ze = (t) => {
1405
+ if (t.slot) {
1406
+ const o = V.value[t.key];
1407
+ return o != null && o !== "" ? 1 : 0;
1408
+ } else {
1409
+ if (t.type === "input")
1410
+ return g.value.trim() ? 1 : 0;
1411
+ if (t.type === "calendar")
1412
+ return D.value !== null && D.value !== void 0 ? 1 : 0;
1413
+ }
1414
+ const n = $.value[t.key];
1415
+ return n == null || n === "" ? 0 : t.type === "single" || t.type === "tree-single" ? 1 : Array.isArray(n) ? n.length : 0;
712
1416
  };
713
- return a({
1417
+ return r({
714
1418
  /** 获取当前筛选值 */
715
- getValues: () => ({ ...m.value }),
1419
+ getValues: () => ({ ...x.value }),
716
1420
  /** 重置所有筛选 */
717
1421
  reset: () => {
718
- m.value = {}, _.value = {}, R.value = {}, y("update:modelValue", {});
1422
+ x.value = {}, $.value = {}, V.value = {}, y("update:modelValue", {});
719
1423
  }
720
- }), (e, n) => (l(), u("div", zt, [
721
- k("div", Mt, [
722
- (l(!0), u(L, null, W(d.items, (s, i) => (l(), u("div", {
723
- key: i,
724
- class: E(["rc-search-area__item", {
725
- "is-active": h.value === i,
726
- "has-value": be(s) > 0
1424
+ }), (t, n) => (c(), v("div", Ra, [
1425
+ k("div", Aa, [
1426
+ (c(!0), v(H, null, ae(l.items, (o, a) => (c(), v("div", {
1427
+ key: a,
1428
+ class: O(["rc-search-area__item", {
1429
+ "is-active": b.value === a,
1430
+ "has-value": Te(o) > 0
727
1431
  }]),
728
- onClick: (b) => Oe(i)
1432
+ onClick: (u) => ve(a)
729
1433
  }, [
730
- k("span", Ut, w(Fe(s)), 1),
731
- M(H(B), {
1434
+ k("span", Ba, R(he(o)), 1),
1435
+ E(j(J), {
732
1436
  name: "icon_a-xiala2",
733
- color: h.value !== i && be(s) > 0 ? "#1677ff" : "#969799",
734
- class: E(["rc-search-area__item-arrow", { "is-up": h.value === i }])
1437
+ color: b.value !== a && Te(o) > 0 ? "#1677ff" : "#969799",
1438
+ class: O(["rc-search-area__item-arrow", { "is-up": b.value === a }])
735
1439
  }, null, 8, ["color", "class"])
736
- ], 10, Kt))), 128))
1440
+ ], 10, Ta))), 128))
737
1441
  ]),
738
- M(fe, { name: "rc-search-area-fade" }, {
739
- default: ee(() => [
740
- h.value !== null && d.showMask ? (l(), u("div", {
1442
+ E(we, { name: "rc-search-area-fade" }, {
1443
+ default: ne(() => [
1444
+ b.value !== null && l.showMask ? (c(), v("div", {
741
1445
  key: 0,
742
1446
  ref_key: "maskRef",
743
- ref: f,
1447
+ ref: m,
744
1448
  class: "rc-search-area__mask",
745
- style: T(c.value),
746
- onClick: j
747
- }, null, 4)) : $("", !0)
1449
+ style: X(i.value),
1450
+ onClick: G
1451
+ }, null, 4)) : w("", !0)
748
1452
  ]),
749
1453
  _: 1
750
1454
  }),
751
- M(fe, { name: "rc-search-area-slide" }, {
752
- default: ee(() => {
753
- var s, i, b, g, N, Q, se, $e, Ce, Se, xe;
1455
+ E(we, { name: "rc-search-area-slide" }, {
1456
+ default: ne(() => {
1457
+ var o, a, u, f, S, B, te, re, Se, Be, W, Ie, z, U, He, qe, Je, Qe;
754
1458
  return [
755
- h.value !== null ? (l(), u("div", {
1459
+ b.value !== null ? (c(), v("div", {
756
1460
  key: 0,
757
1461
  ref_key: "panelRef",
758
1462
  ref: p,
759
1463
  class: "rc-search-area__panel"
760
1464
  }, [
761
- k("div", Gt, [
762
- (s = r.value) != null && s.slot && e.$slots[r.value.key] ? A(e.$slots, r.value.key, {
1465
+ k("div", Fa, [
1466
+ (o = s.value) != null && o.slot && t.$slots[s.value.key] ? q(t.$slots, s.value.key, {
763
1467
  key: 0,
764
- value: je(r.value),
765
- "update:value": (S) => Pe(r.value, S)
766
- }, void 0, !0) : ((i = r.value) == null ? void 0 : i.type) === "input" ? (l(), u("div", Ft, [
767
- at(k("input", {
768
- "onUpdate:modelValue": n[0] || (n[0] = (S) => I.value = S),
1468
+ value: T(s.value),
1469
+ "update:value": (N) => K(s.value, N)
1470
+ }, void 0, !0) : ((a = s.value) == null ? void 0 : a.type) === "input" ? (c(), v("div", Na, [
1471
+ vt(k("input", {
1472
+ "onUpdate:modelValue": n[0] || (n[0] = (N) => g.value = N),
769
1473
  type: "text",
770
1474
  class: "rc-search-area__input",
771
- placeholder: r.value.placeholder || "请输入",
772
- onInput: He
773
- }, null, 40, Ot), [
774
- [st, I.value]
1475
+ placeholder: s.value.placeholder || "请输入",
1476
+ onInput: Pe
1477
+ }, null, 40, Ea), [
1478
+ [pt, g.value]
775
1479
  ])
776
- ])) : ((b = r.value) == null ? void 0 : b.type) === "tree-single" ? (l(), u("div", jt, [
777
- (l(!0), u(L, null, W(me(r.value), (S, q) => (l(), u("div", {
778
- key: q,
1480
+ ])) : ((u = s.value) == null ? void 0 : u.type) === "calendar" ? (c(), v("div", Ya, [
1481
+ E(j(Re), {
1482
+ modelValue: D.value,
1483
+ "onUpdate:modelValue": n[1] || (n[1] = (N) => D.value = N),
1484
+ range: ((f = s.value.calendarConfig) == null ? void 0 : f.range) || !1,
1485
+ mode: "default",
1486
+ "min-date": (S = s.value.calendarConfig) == null ? void 0 : S.minDate,
1487
+ "max-date": (B = s.value.calendarConfig) == null ? void 0 : B.maxDate,
1488
+ "disabled-date": (te = s.value.calendarConfig) == null ? void 0 : te.disabledDate,
1489
+ formatter: (re = s.value.calendarConfig) == null ? void 0 : re.formatter,
1490
+ onChange: Le
1491
+ }, null, 8, ["modelValue", "range", "min-date", "max-date", "disabled-date", "formatter"])
1492
+ ])) : ((Se = s.value) == null ? void 0 : Se.type) === "tree-single" ? (c(), v("div", Pa, [
1493
+ (c(!0), v(H, null, ae(_(s.value), (N, ge) => (c(), v("div", {
1494
+ key: ge,
779
1495
  class: "rc-search-area__tree-group"
780
1496
  }, [
781
- k("div", Pt, w(P(S, r.value || void 0)), 1),
782
- k("div", qt, [
783
- (l(!0), u(L, null, W(_e(S, r.value), (D, de) => (l(), u("div", {
784
- key: de,
785
- class: E(["rc-search-area__option", { "is-selected": z(D) }]),
786
- onClick: (Qe) => ge(D)
1497
+ k("div", La, R(Y(N, s.value || void 0)), 1),
1498
+ k("div", Wa, [
1499
+ (c(!0), v(H, null, ae(C(N, s.value), (se, Ue) => (c(), v("div", {
1500
+ key: Ue,
1501
+ class: O(["rc-search-area__option", { "is-selected": L(se) }]),
1502
+ onClick: (ht) => le(se)
787
1503
  }, [
788
- k("span", Yt, w(P(D, r.value || void 0)), 1),
789
- z(D) ? (l(), U(H(B), {
1504
+ k("span", Ua, R(Y(se, s.value || void 0)), 1),
1505
+ L(se) ? (c(), ie(j(J), {
790
1506
  key: 0,
791
- name: "icon_select",
1507
+ name: "icon_check",
792
1508
  class: "rc-search-area__option-check"
793
- })) : $("", !0)
794
- ], 10, Ht))), 128))
1509
+ })) : w("", !0)
1510
+ ], 10, za))), 128))
795
1511
  ])
796
1512
  ]))), 128))
797
- ])) : ((g = r.value) == null ? void 0 : g.type) === "tree-multiple" ? (l(), u("div", Jt, [
798
- (l(!0), u(L, null, W(me(r.value), (S, q) => (l(), u("div", {
799
- key: q,
1513
+ ])) : ((Be = s.value) == null ? void 0 : Be.type) === "tree-multiple" ? (c(), v("div", Oa, [
1514
+ (c(!0), v(H, null, ae(_(s.value), (N, ge) => (c(), v("div", {
1515
+ key: ge,
800
1516
  class: "rc-search-area__tree-group"
801
1517
  }, [
802
- k("div", Qt, w(P(S, r.value || void 0)), 1),
803
- k("div", Xt, [
804
- (l(!0), u(L, null, W(_e(S, r.value), (D, de) => (l(), u("div", {
805
- key: de,
806
- class: E(["rc-search-area__option", { "is-selected": z(D) }]),
807
- onClick: (Qe) => ke(D)
1518
+ k("div", Ga, R(Y(N, s.value || void 0)), 1),
1519
+ k("div", Ka, [
1520
+ (c(!0), v(H, null, ae(C(N, s.value), (se, Ue) => (c(), v("div", {
1521
+ key: Ue,
1522
+ class: O(["rc-search-area__option", { "is-selected": L(se) }]),
1523
+ onClick: (ht) => Ae(se)
808
1524
  }, [
809
- k("span", en, w(P(D, r.value || void 0)), 1),
810
- z(D) ? (l(), U(H(B), {
1525
+ k("span", Ha, R(Y(se, s.value || void 0)), 1),
1526
+ L(se) ? (c(), ie(j(J), {
811
1527
  key: 0,
812
- name: "icon_select",
1528
+ name: "icon_check",
813
1529
  class: "rc-search-area__option-check"
814
- })) : $("", !0)
815
- ], 10, Zt))), 128))
1530
+ })) : w("", !0)
1531
+ ], 10, ja))), 128))
816
1532
  ])
817
1533
  ]))), 128))
818
- ])) : ((N = r.value) == null ? void 0 : N.type) === "single" ? (l(), u("div", tn, [
819
- (l(!0), u(L, null, W(he(r.value), (S, q) => (l(), u("div", {
820
- key: q,
821
- class: E(["rc-search-area__option", { "is-selected": z(S) }]),
822
- onClick: (D) => ge(S)
1534
+ ])) : ((W = s.value) == null ? void 0 : W.type) === "single" ? (c(), v("div", qa, [
1535
+ (c(!0), v(H, null, ae(F(s.value), (N, ge) => (c(), v("div", {
1536
+ key: ge,
1537
+ class: O(["rc-search-area__option", { "is-selected": L(N) }]),
1538
+ onClick: (se) => le(N)
823
1539
  }, [
824
- k("span", an, w(P(S, r.value || void 0)), 1),
825
- z(S) ? (l(), U(H(B), {
1540
+ k("span", Qa, R(Y(N, s.value || void 0)), 1),
1541
+ L(N) ? (c(), ie(j(J), {
826
1542
  key: 0,
827
- name: "icon_select",
1543
+ name: "icon_check",
828
1544
  class: "rc-search-area__option-check"
829
- })) : $("", !0)
830
- ], 10, nn))), 128))
831
- ])) : (l(), u("div", sn, [
832
- (l(!0), u(L, null, W(he(r.value), (S, q) => (l(), u("div", {
833
- key: q,
834
- class: E(["rc-search-area__option", { "is-selected": z(S) }]),
835
- onClick: (D) => ke(S)
1545
+ })) : w("", !0)
1546
+ ], 10, Ja))), 128))
1547
+ ])) : (c(), v("div", Xa, [
1548
+ (c(!0), v(H, null, ae(F(s.value), (N, ge) => (c(), v("div", {
1549
+ key: ge,
1550
+ class: O(["rc-search-area__option", { "is-selected": L(N) }]),
1551
+ onClick: (se) => Ae(N)
836
1552
  }, [
837
- k("span", ln, w(P(S, r.value || void 0)), 1),
838
- z(S) ? (l(), U(H(B), {
1553
+ k("span", en, R(Y(N, s.value || void 0)), 1),
1554
+ L(N) ? (c(), ie(j(J), {
839
1555
  key: 0,
840
- name: "icon_select",
1556
+ name: "icon_check",
841
1557
  class: "rc-search-area__option-check"
842
- })) : $("", !0)
843
- ], 10, rn))), 128))
1558
+ })) : w("", !0)
1559
+ ], 10, Za))), 128))
844
1560
  ])),
845
- ((Q = r.value) == null ? void 0 : Q.type) !== "input" && !((se = r.value) != null && se.slot) && ((Ce = ($e = r.value) == null ? void 0 : $e.options) == null ? void 0 : Ce.length) === 0 ? (l(), u("div", on, [...n[1] || (n[1] = [
1561
+ ((Ie = s.value) == null ? void 0 : Ie.type) !== "input" && ((z = s.value) == null ? void 0 : z.type) !== "calendar" && !((U = s.value) != null && U.slot) && ((qe = (He = s.value) == null ? void 0 : He.options) == null ? void 0 : qe.length) === 0 ? (c(), v("div", tn, [...n[2] || (n[2] = [
846
1562
  k("p", null, "暂无选项", -1)
847
- ])])) : $("", !0)
1563
+ ])])) : w("", !0)
848
1564
  ]),
849
- !d.autoConfirm && ((Se = r.value) == null ? void 0 : Se.type) !== "single" && ((xe = r.value) == null ? void 0 : xe.type) !== "tree-single" ? (l(), u("div", cn, [
850
- M(H(le), {
1565
+ !l.autoConfirm && ((Je = s.value) == null ? void 0 : Je.type) !== "single" && ((Qe = s.value) == null ? void 0 : Qe.type) !== "tree-single" ? (c(), v("div", an, [
1566
+ E(j(ye), {
851
1567
  block: "",
852
- onClick: qe
1568
+ onClick: Ye
853
1569
  }, {
854
- default: ee(() => [...n[2] || (n[2] = [
855
- ae(" 重置 ", -1)
1570
+ default: ne(() => [...n[3] || (n[3] = [
1571
+ de(" 重置 ", -1)
856
1572
  ])]),
857
1573
  _: 1
858
1574
  }),
859
- M(H(le), {
1575
+ E(j(ye), {
860
1576
  type: "primary",
861
1577
  block: "",
862
- onClick: Ye
1578
+ onClick: We
863
1579
  }, {
864
- default: ee(() => [
865
- ae(" 确定" + w(Ge.value), 1)
1580
+ default: ne(() => [
1581
+ de(" 确定" + R(fe.value), 1)
866
1582
  ]),
867
1583
  _: 1
868
1584
  })
869
- ])) : $("", !0)
870
- ], 512)) : $("", !0)
1585
+ ])) : w("", !0)
1586
+ ], 512)) : w("", !0)
871
1587
  ];
872
1588
  }),
873
1589
  _: 3
874
1590
  })
875
1591
  ]));
876
1592
  }
877
- }), Te = /* @__PURE__ */ O(un, [["__scopeId", "data-v-2252d02c"]]), Ne = (t) => {
878
- t.component("RcSearchArea", Te), t.component("rc-search-area", Te);
879
- }, ve = Symbol("RECYCLE_UI_CONFIG"), Ke = {
1593
+ }), ct = /* @__PURE__ */ ue(nn, [["__scopeId", "data-v-d6546197"]]), ut = (e) => {
1594
+ e.component("RcSearchArea", ct), e.component("rc-search-area", ct);
1595
+ }, je = Symbol("RECYCLE_UI_CONFIG"), mt = {
880
1596
  prefix: "rc",
881
1597
  autoRegister: !0,
882
- provideKey: ve,
1598
+ provideKey: je,
883
1599
  // 预留主题/其他全局配置
884
1600
  theme: {},
885
1601
  // IconFont 默认配置(可在 app.use 时覆盖)
886
- iconCssUrl: "//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",
1602
+ iconCssUrl: "//at.alicdn.com/t/c/font_4252799_o59odx6bqil.css",
887
1603
  iconClass: "iconfont"
888
1604
  };
889
- function dn(t, a) {
890
- a.autoRegister !== !1 && (typeof Ae == "function" && Ae(t), typeof Ve == "function" && Ve(t), typeof Re == "function" && Re(t), typeof Le == "function" && Le(t), typeof Be == "function" && Be(t), typeof Ee == "function" && Ee(t), typeof Ne == "function" && Ne(t));
1605
+ function ln(e, r) {
1606
+ r.autoRegister !== !1 && (typeof Xe == "function" && Xe(e), typeof Ze == "function" && Ze(e), typeof et == "function" && et(e), typeof at == "function" && at(e), typeof lt == "function" && lt(e), typeof nt == "function" && nt(e), typeof ut == "function" && ut(e), typeof st == "function" && st(e), typeof rt == "function" && rt(e));
891
1607
  }
892
- const Ue = (t, a) => {
893
- const o = { ...Ke, ...a || {} };
894
- if (t.provide(o.provideKey ?? ve, o), t.config.globalProperties.$recycleUI = o, typeof window < "u" && o.iconCssUrl) {
895
- const d = `link[rel="stylesheet"][data-rcui-icon="true"][href="${o.iconCssUrl}"]`;
896
- if (!document.head.querySelector(d)) {
897
- const h = document.createElement("link");
898
- h.rel = "stylesheet", h.href = o.iconCssUrl, h.setAttribute("data-rcui-icon", "true"), document.head.appendChild(h);
1608
+ const yt = (e, r) => {
1609
+ const d = { ...mt, ...r || {} };
1610
+ if (e.provide(d.provideKey ?? je, d), e.config.globalProperties.$recycleUI = d, typeof window < "u" && d.iconCssUrl) {
1611
+ const l = `link[rel="stylesheet"][data-rcui-icon="true"][href="${d.iconCssUrl}"]`;
1612
+ if (!document.head.querySelector(l)) {
1613
+ const b = document.createElement("link");
1614
+ b.rel = "stylesheet", b.href = d.iconCssUrl, b.setAttribute("data-rcui-icon", "true"), document.head.appendChild(b);
899
1615
  }
900
1616
  }
901
- return dn(t, o), t;
902
- }, hn = { install: Ue };
903
- function mn(t) {
1617
+ return ln(e, d), e;
1618
+ }, un = { install: yt };
1619
+ function dn(e) {
904
1620
  return {
905
- install(a) {
906
- Ue(a, t);
1621
+ install(r) {
1622
+ yt(r, e);
907
1623
  }
908
1624
  };
909
1625
  }
910
1626
  export {
911
- ve as RECYCLE_UI_SYMBOL,
912
- le as RcButton,
913
- ce as RcCard,
914
- vn as RcDescriptions,
915
- yn as RcDescriptionsItem,
916
- B as RcIcon,
917
- Te as RcSearchArea,
918
- ue as RcToast,
919
- mn as createRecycleUI,
920
- hn as default,
921
- Ke as defaultRecycleUIConfig,
922
- Dt as hideToast,
923
- Ue as install,
924
- Ae as installButton,
925
- Re as installCard,
926
- Ve as installDescriptions,
927
- Be as installIcon,
928
- Ee as installMessage,
929
- Ne as installSearchArea,
930
- Wt as message,
931
- vn as rcDescriptions,
932
- yn as rcDescriptionsItem,
933
- pn as showToast
1627
+ je as RECYCLE_UI_SYMBOL,
1628
+ ye as RcButton,
1629
+ Re as RcCalendar,
1630
+ Ne as RcCard,
1631
+ on as RcDescriptions,
1632
+ sn as RcDescriptionsItem,
1633
+ J as RcIcon,
1634
+ Ve as RcPopup,
1635
+ ct as RcSearchArea,
1636
+ Ee as RcToast,
1637
+ dn as createRecycleUI,
1638
+ un as default,
1639
+ mt as defaultRecycleUIConfig,
1640
+ qt as hideToast,
1641
+ yt as install,
1642
+ Xe as installButton,
1643
+ st as installCalendar,
1644
+ et as installCard,
1645
+ Ze as installDescriptions,
1646
+ lt as installIcon,
1647
+ nt as installMessage,
1648
+ rt as installPopup,
1649
+ ut as installSearchArea,
1650
+ ta as message,
1651
+ on as rcDescriptions,
1652
+ sn as rcDescriptionsItem,
1653
+ cn as showToast
934
1654
  };
935
1655
  //# sourceMappingURL=index.mjs.map