@rft-rc/recycle-ui 0.0.2-rc.6 → 0.0.2-rc.7

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