@yeepay/yee-boss-ui 0.1.6 → 0.1.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.js CHANGED
@@ -1,64 +1,64 @@
1
- import { inject as ve, defineComponent as j, computed as r, provide as Oe, openBlock as s, createBlock as b, unref as p, withCtx as f, createElementVNode as w, normalizeStyle as ee, renderSlot as C, reactive as ye, onBeforeUnmount as he, mergeProps as M, createElementBlock as S, Fragment as ge, renderList as de, createTextVNode as A, toDisplayString as B, createCommentVNode as k, ref as Re, shallowRef as K, watch as re, withModifiers as ze, createVNode as I, useSlots as se, useTemplateRef as Ee, onMounted as Ye, onUnmounted as Ae, withDirectives as Me, vShow as Ie, toHandlers as je, createSlots as ae, normalizeProps as U, guardReactiveProps as H, h as be, useModel as ue, useAttrs as _e, useId as Le, mergeModels as ce, normalizeClass as X } from "vue";
2
- import { ConfigProvider as Ue, Descriptions as pe, Tooltip as Z, message as q, Upload as He, Image as Ne, DatePicker as De, Input as Ge, Select as le, Button as Y, Drawer as qe, Modal as Ke } from "ant-design-vue";
3
- import { r as Qe, t as We, a as Je } from "./tokens-CHaQtlyD.js";
4
- import { d as Co, l as $o } from "./tokens-CHaQtlyD.js";
5
- import { FullscreenExitOutlined as Xe, FullscreenOutlined as Ze, CloseOutlined as et } from "@ant-design/icons-vue";
6
- import { VxeTable as tt, VxeColumn as ot, VxeColgroup as at, VxeGrid as we, VxeToolbar as lt, VxeUI as ke } from "vxe-table";
7
- import { VxeButton as st, VxeCheckbox as nt, VxeIcon as it, VxeInput as rt, VxeLoading as ut, VxeModal as ct, VxeNumberInput as dt, VxePager as ft, VxeRadioGroup as pt, VxeSelect as mt, VxeTooltip as vt } from "vxe-pc-ui";
8
- const fe = /* @__PURE__ */ Symbol("platform-theme");
9
- function po() {
10
- const l = ve(fe);
11
- if (!l)
1
+ import { inject as pe, defineComponent as L, computed as s, provide as ze, openBlock as n, createBlock as k, unref as m, withCtx as p, createElementVNode as w, normalizeStyle as oe, renderSlot as x, reactive as he, onBeforeUnmount as fe, mergeProps as A, createElementBlock as B, Fragment as ge, renderList as ve, createTextVNode as W, toDisplayString as P, createCommentVNode as T, useTemplateRef as be, shallowRef as N, onMounted as _e, onUpdated as Re, watch as ae, nextTick as Me, ref as Ye, withModifiers as Ae, createVNode as H, useSlots as ie, onUnmounted as Ie, withDirectives as We, vShow as Le, toHandlers as je, createSlots as se, normalizeProps as G, guardReactiveProps as q, h as Ce, useModel as de, useAttrs as ke, useId as He, mergeModels as ce, normalizeClass as te } from "vue";
2
+ import { ConfigProvider as Ne, Descriptions as me, Tooltip as X, message as J, Upload as Ue, Image as De, DatePicker as Ge, Input as qe, Select as ne, Button as I, Drawer as Ke, Modal as Qe } from "ant-design-vue";
3
+ import { r as Je, t as Xe, a as Ze } from "./tokens-CHaQtlyD.js";
4
+ import { d as Bo, l as Fo } from "./tokens-CHaQtlyD.js";
5
+ import { FullscreenExitOutlined as et, FullscreenOutlined as tt, CloseOutlined as ot } from "@ant-design/icons-vue";
6
+ import { VxeTable as lt, VxeColumn as at, VxeColgroup as st, VxeGrid as xe, VxeToolbar as nt, VxeUI as we } from "vxe-table";
7
+ import { VxeButton as it, VxeCheckbox as rt, VxeIcon as ut, VxeInput as dt, VxeLoading as ct, VxeModal as pt, VxeNumberInput as ft, VxePager as vt, VxeRadioGroup as mt, VxeSelect as yt, VxeTooltip as ht } from "vxe-pc-ui";
8
+ const re = /* @__PURE__ */ Symbol("platform-theme");
9
+ function ho() {
10
+ const a = pe(re);
11
+ if (!a)
12
12
  throw new Error("usePlatformTheme 必须在 PlatformConfigProvider 内使用。");
13
- return l;
13
+ return a;
14
14
  }
15
- const yt = ["data-theme"], ht = /* @__PURE__ */ j({
15
+ const gt = ["data-theme"], bt = /* @__PURE__ */ L({
16
16
  name: "PlatformConfigProvider",
17
17
  __name: "PlatformConfigProvider",
18
18
  props: {
19
19
  theme: { default: () => ({}) }
20
20
  },
21
- setup(l) {
22
- const e = l, t = r(() => Qe(e.theme)), i = r(() => We(t.value)), v = r(() => Je(t.value));
23
- return Oe(fe, t), (n, _) => (s(), b(p(Ue), { theme: i.value }, {
24
- default: f(() => [
21
+ setup(a) {
22
+ const t = a, e = s(() => Je(t.theme)), r = s(() => Xe(e.value)), y = s(() => Ze(e.value));
23
+ return ze(re, e), (i, b) => (n(), k(m(Ne), { theme: r.value }, {
24
+ default: p(() => [
25
25
  w("div", {
26
26
  class: "yee-platform-theme",
27
- "data-theme": t.value.mode,
28
- style: ee(v.value)
27
+ "data-theme": e.value.mode,
28
+ style: oe(y.value)
29
29
  }, [
30
- C(n.$slots, "default", {}, void 0, !0)
31
- ], 12, yt)
30
+ x(i.$slots, "default", {}, void 0, !0)
31
+ ], 12, gt)
32
32
  ]),
33
33
  _: 3
34
34
  }, 8, ["theme"]));
35
35
  }
36
- }), N = (l, e) => {
37
- const t = l.__vccOpts || l;
38
- for (const [i, v] of e)
39
- t[i] = v;
40
- return t;
41
- }, mo = /* @__PURE__ */ N(ht, [["__scopeId", "data-v-36f21f18"]]);
42
- async function gt(l) {
43
- if (!l) return !1;
36
+ }), U = (a, t) => {
37
+ const e = a.__vccOpts || a;
38
+ for (const [r, y] of t)
39
+ e[r] = y;
40
+ return e;
41
+ }, go = /* @__PURE__ */ U(bt, [["__scopeId", "data-v-36f21f18"]]);
42
+ async function _t(a) {
43
+ if (!a) return !1;
44
44
  try {
45
- return await navigator.clipboard.writeText(l), !0;
45
+ return await navigator.clipboard.writeText(a), !0;
46
46
  } catch {
47
- const e = document.createElement("textarea");
48
- e.value = l, e.style.position = "fixed", e.style.opacity = "0", document.body.append(e), e.focus(), e.select();
47
+ const t = document.createElement("textarea");
48
+ t.value = a, t.style.position = "fixed", t.style.opacity = "0", document.body.append(t), t.focus(), t.select();
49
49
  try {
50
50
  return document.execCommand("copy");
51
51
  } catch {
52
52
  return !1;
53
53
  } finally {
54
- e.remove();
54
+ t.remove();
55
55
  }
56
56
  }
57
57
  }
58
- const bt = { class: "yee-descriptions__item" }, _t = { class: "yee-descriptions__content-row" }, wt = { class: "yee-descriptions__value yee-descriptions__value--ellipsis" }, kt = {
58
+ const Ct = { class: "yee-descriptions__item" }, kt = { class: "yee-descriptions__content-row" }, xt = { class: "yee-descriptions__value yee-descriptions__value--ellipsis" }, wt = {
59
59
  key: 1,
60
60
  class: "yee-descriptions__value"
61
- }, Ct = ["disabled", "onClick"], $t = /* @__PURE__ */ j({
61
+ }, $t = ["disabled", "onClick"], Tt = /* @__PURE__ */ L({
62
62
  name: "YeeDescriptions",
63
63
  __name: "YeeDescriptions",
64
64
  props: {
@@ -70,76 +70,76 @@ const bt = { class: "yee-descriptions__item" }, _t = { class: "yee-descriptions_
70
70
  size: {},
71
71
  title: {}
72
72
  },
73
- setup(l) {
74
- const e = l, t = r(() => e.bordered ?? !1), i = r(() => e.colon ?? !0), v = r(() => e.column ?? 3), n = r(() => e.layout ?? "horizontal"), _ = r(() => e.size ?? "default"), T = ye(/* @__PURE__ */ new Set()), F = /* @__PURE__ */ new Set();
75
- function V(g, y) {
76
- return g.name ?? `${g.label}-${y}`;
73
+ setup(a) {
74
+ const t = a, e = s(() => t.bordered ?? !1), r = s(() => t.colon ?? !0), y = s(() => t.column ?? 3), i = s(() => t.layout ?? "horizontal"), b = s(() => t.size ?? "default"), h = he(/* @__PURE__ */ new Set()), F = /* @__PURE__ */ new Set();
75
+ function S(C, g) {
76
+ return C.name ?? `${C.label}-${g}`;
77
77
  }
78
- async function $(g, y) {
79
- const u = String(g.value ?? "");
78
+ async function $(C, g) {
79
+ const u = String(C.value ?? "");
80
80
  if (!u.trim()) {
81
- q.warning("没有可复制的内容");
81
+ J.warning("没有可复制的内容");
82
82
  return;
83
83
  }
84
- if (!await gt(u)) {
85
- q.error("复制失败");
84
+ if (!await _t(u)) {
85
+ J.error("复制失败");
86
86
  return;
87
87
  }
88
- T.add(y), q.success("已复制");
89
- const m = setTimeout(() => {
90
- T.delete(y), F.delete(m);
88
+ h.add(g), J.success("已复制");
89
+ const f = setTimeout(() => {
90
+ h.delete(g), F.delete(f);
91
91
  }, 1500);
92
- F.add(m);
92
+ F.add(f);
93
93
  }
94
- return he(() => {
95
- F.forEach((g) => clearTimeout(g)), F.clear();
96
- }), (g, y) => (s(), b(p(pe), M({
94
+ return fe(() => {
95
+ F.forEach((C) => clearTimeout(C)), F.clear();
96
+ }), (C, g) => (n(), k(m(me), A({
97
97
  class: "yee-descriptions",
98
- bordered: t.value,
99
- colon: i.value,
100
- column: v.value,
101
- layout: n.value,
102
- size: _.value
103
- }, e.title === void 0 ? {} : { title: e.title }), {
104
- default: f(() => [
105
- (s(!0), S(ge, null, de(l.items, (u, m) => (s(), b(p(pe).Item, {
106
- key: V(u, m),
98
+ bordered: e.value,
99
+ colon: r.value,
100
+ column: y.value,
101
+ layout: i.value,
102
+ size: b.value
103
+ }, t.title === void 0 ? {} : { title: t.title }), {
104
+ default: p(() => [
105
+ (n(!0), B(ge, null, ve(a.items, (u, f) => (n(), k(m(me).Item, {
106
+ key: S(u, f),
107
107
  label: u.label,
108
108
  span: u.span ?? 1
109
109
  }, {
110
- default: f(() => [
111
- w("div", bt, [
112
- w("div", _t, [
113
- u.ellipsis ? (s(), b(p(Z), {
110
+ default: p(() => [
111
+ w("div", Ct, [
112
+ w("div", kt, [
113
+ u.ellipsis ? (n(), k(m(X), {
114
114
  key: 0,
115
115
  title: String(u.value ?? "")
116
116
  }, {
117
- default: f(() => [
118
- w("span", wt, [
119
- C(g.$slots, `content-${u.name ?? u.label}`, { item: u }, () => [
120
- A(B(u.value), 1)
117
+ default: p(() => [
118
+ w("span", xt, [
119
+ x(C.$slots, `content-${u.name ?? u.label}`, { item: u }, () => [
120
+ W(P(u.value), 1)
121
121
  ], !0)
122
122
  ])
123
123
  ]),
124
124
  _: 2
125
- }, 1032, ["title"])) : (s(), S("span", kt, [
126
- C(g.$slots, `content-${u.name ?? u.label}`, { item: u }, () => [
127
- A(B(u.value), 1)
125
+ }, 1032, ["title"])) : (n(), B("span", wt, [
126
+ x(C.$slots, `content-${u.name ?? u.label}`, { item: u }, () => [
127
+ W(P(u.value), 1)
128
128
  ], !0)
129
129
  ])),
130
- u.copyable ? (s(), S("button", {
130
+ u.copyable ? (n(), B("button", {
131
131
  key: 2,
132
132
  class: "yee-descriptions__copy",
133
- disabled: T.has(V(u, m)),
133
+ disabled: h.has(S(u, f)),
134
134
  type: "button",
135
- onClick: (o) => $(u, V(u, m))
136
- }, B(T.has(V(u, m)) ? "已复制" : "复制"), 9, Ct)) : k("", !0)
135
+ onClick: (o) => $(u, S(u, f))
136
+ }, P(h.has(S(u, f)) ? "已复制" : "复制"), 9, $t)) : T("", !0)
137
137
  ]),
138
- u.info ? (s(), S("span", {
138
+ u.info ? (n(), B("span", {
139
139
  key: 0,
140
140
  class: "yee-descriptions__info",
141
- style: ee(u.infoStyle)
142
- }, B(u.info), 5)) : k("", !0)
141
+ style: oe(u.infoStyle)
142
+ }, P(u.info), 5)) : T("", !0)
143
143
  ])
144
144
  ]),
145
145
  _: 2
@@ -148,10 +148,102 @@ const bt = { class: "yee-descriptions__item" }, _t = { class: "yee-descriptions_
148
148
  _: 3
149
149
  }, 16, ["bordered", "colon", "column", "layout", "size"]));
150
150
  }
151
- }), vo = /* @__PURE__ */ N($t, [["__scopeId", "data-v-2297b86c"]]), St = { class: "yee-file-upload" }, Tt = {
151
+ }), bo = /* @__PURE__ */ U(Tt, [["__scopeId", "data-v-2297b86c"]]), St = ["aria-expanded", "role", "tabindex"], Bt = /* @__PURE__ */ L({
152
+ inheritAttrs: !1,
153
+ name: "YeeEllipsisText",
154
+ __name: "YeeEllipsisText",
155
+ props: {
156
+ expand: { type: Boolean, default: !1 },
157
+ ellipsisThreshold: { default: 3 },
158
+ line: { default: 1 },
159
+ maxWidth: { default: "100%" },
160
+ placement: { default: "top" },
161
+ tooltip: { type: Boolean, default: !0 },
162
+ tooltipBackgroundColor: {},
163
+ tooltipColor: {},
164
+ tooltipFontSize: {},
165
+ tooltipMaxWidth: {},
166
+ tooltipOverlayStyle: { default: () => ({ textAlign: "justify" }) },
167
+ tooltipWhenEllipsis: { type: Boolean, default: !1 }
168
+ },
169
+ emits: ["expandChange"],
170
+ setup(a, { emit: t }) {
171
+ const e = a, r = t, y = pe(re, void 0), i = be("text"), b = N(!1), h = N(!1), F = N(0), S = s(() => Number.isFinite(e.line) ? Math.max(1, Math.floor(e.line)) : 1), $ = s(() => Number.isFinite(e.ellipsisThreshold) ? Math.max(0, e.ellipsisThreshold) : 3), C = s(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), g = s(() => {
172
+ const v = { maxWidth: C.value };
173
+ return !h.value && S.value > 1 && (v.webkitLineClamp = S.value), v;
174
+ }), u = s(() => ({
175
+ "yee-ellipsis-text--expandable": e.expand,
176
+ "yee-ellipsis-text--expanded": h.value,
177
+ "yee-ellipsis-text--multi-line": !h.value && S.value > 1,
178
+ "yee-ellipsis-text--single-line": !h.value && S.value === 1
179
+ })), f = s(() => e.tooltipMaxWidth !== void 0 ? e.tooltipMaxWidth : F.value > 0 ? F.value + 24 : void 0), o = s(() => {
180
+ const v = {};
181
+ return f.value !== void 0 && (v.maxWidth = `${f.value}px`), v;
182
+ }), c = s(() => {
183
+ const v = {
184
+ ...e.tooltipOverlayStyle,
185
+ backgroundColor: d.value,
186
+ color: e.tooltipColor || y?.value.tokens.popoverForeground || "var(--yee-popover-foreground)",
187
+ fontSize: e.tooltipFontSize === void 0 ? y ? `${y.value.tokens.fontSize}px` : "var(--yee-font-size)" : `${e.tooltipFontSize}px`
188
+ };
189
+ return f.value !== void 0 && (v.maxWidth = `${f.value}px`), v;
190
+ }), d = s(() => e.tooltipBackgroundColor || y?.value.tokens.popover || "var(--yee-popover)"), E = s(() => e.tooltip && !h.value && (!e.tooltipWhenEllipsis || b.value)), R = s(() => E.value ? {} : { open: !1 });
191
+ let V;
192
+ function Y() {
193
+ const v = i.value;
194
+ if (!v) return;
195
+ const O = v.getBoundingClientRect().width || v.clientWidth;
196
+ if (F.value = Math.ceil(O), !e.tooltipWhenEllipsis || h.value || !v.textContent?.trim()) {
197
+ b.value = !1;
198
+ return;
199
+ }
200
+ const j = S.value === 1 ? v.scrollWidth - v.clientWidth : v.scrollHeight - v.clientHeight;
201
+ b.value = j > $.value;
202
+ }
203
+ function D() {
204
+ e.expand && (h.value = !h.value, r("expandChange", h.value), Me(Y));
205
+ }
206
+ function Q(v) {
207
+ !e.expand || v.key !== "Enter" && v.key !== " " || (v.preventDefault(), D());
208
+ }
209
+ return _e(() => {
210
+ const v = i.value;
211
+ v && typeof ResizeObserver < "u" && (V = new ResizeObserver(Y), V.observe(v)), Y();
212
+ }), Re(Y), ae(() => e.expand, (v) => {
213
+ v || (h.value = !1);
214
+ }), fe(() => {
215
+ V?.disconnect(), V = void 0;
216
+ }), (v, O) => (n(), k(m(X), A(R.value, {
217
+ color: d.value,
218
+ "overlay-inner-style": c.value,
219
+ "overlay-style": o.value,
220
+ placement: e.placement
221
+ }), {
222
+ title: p(() => [
223
+ x(v.$slots, "tooltip", {}, () => [
224
+ x(v.$slots, "default", {}, void 0, !0)
225
+ ], !0)
226
+ ]),
227
+ default: p(() => [
228
+ w("div", A({ ref: "text" }, v.$attrs, {
229
+ "aria-expanded": e.expand ? h.value : void 0,
230
+ class: ["yee-ellipsis-text", u.value],
231
+ role: e.expand ? "button" : void 0,
232
+ style: g.value,
233
+ tabindex: e.expand ? 0 : void 0,
234
+ onClick: D,
235
+ onKeydown: Q
236
+ }), [
237
+ x(v.$slots, "default", {}, void 0, !0)
238
+ ], 16, St)
239
+ ]),
240
+ _: 3
241
+ }, 16, ["color", "overlay-inner-style", "overlay-style", "placement"]));
242
+ }
243
+ }), _o = /* @__PURE__ */ U(Bt, [["__scopeId", "data-v-0b85ad64"]]), Ft = { class: "yee-file-upload" }, Vt = {
152
244
  key: 1,
153
245
  class: "yee-file-upload__empty"
154
- }, Bt = /* @__PURE__ */ j({
246
+ }, Ot = /* @__PURE__ */ L({
155
247
  name: "YeeFileUpload",
156
248
  __name: "YeeFileUpload",
157
249
  props: {
@@ -168,151 +260,151 @@ const bt = { class: "yee-descriptions__item" }, _t = { class: "yee-descriptions_
168
260
  width: {}
169
261
  },
170
262
  emits: ["fileRemoved", "fileSelect", "update:fileList", "uploadSuccess", "uploadingChange"],
171
- setup(l, { expose: e, emit: t }) {
172
- const i = l, v = t, n = Re([]), _ = K(!1), T = K(""), F = r(() => i.fileList ?? []), V = r(() => i.height ?? 100), $ = r(() => i.manual ?? !1), g = r(() => i.maxCount ?? 10), y = r(() => i.maxSize ?? 20), u = r(() => i.multiple ?? !1), m = r(() => i.readonly ?? !1), o = r(() => i.uploadText ?? "上传文件"), d = r(() => i.width ?? 100), c = r(() => ({
173
- height: E(V.value),
174
- width: E(d.value)
175
- })), R = r(() => n.value.some((a) => a.status === "uploading"));
176
- re(
263
+ setup(a, { expose: t, emit: e }) {
264
+ const r = a, y = e, i = Ye([]), b = N(!1), h = N(""), F = s(() => r.fileList ?? []), S = s(() => r.height ?? 100), $ = s(() => r.manual ?? !1), C = s(() => r.maxCount ?? 10), g = s(() => r.maxSize ?? 20), u = s(() => r.multiple ?? !1), f = s(() => r.readonly ?? !1), o = s(() => r.uploadText ?? "上传文件"), c = s(() => r.width ?? 100), d = s(() => ({
265
+ height: R(S.value),
266
+ width: R(c.value)
267
+ })), E = s(() => i.value.some((l) => l.status === "uploading"));
268
+ ae(
177
269
  F,
178
- (a) => {
179
- n.value = a.map((h) => ({ ...h }));
270
+ (l) => {
271
+ i.value = l.map((_) => ({ ..._ }));
180
272
  },
181
273
  { immediate: !0 }
182
- ), re(R, (a) => v("uploadingChange", a), { immediate: !0 });
183
- function E(a) {
184
- return typeof a == "number" ? `${a}px` : a;
274
+ ), ae(E, (l) => y("uploadingChange", l), { immediate: !0 });
275
+ function R(l) {
276
+ return typeof l == "number" ? `${l}px` : l;
185
277
  }
186
- function P() {
187
- v("update:fileList", n.value.map((a) => ({ ...a })));
278
+ function V() {
279
+ y("update:fileList", i.value.map((l) => ({ ...l })));
188
280
  }
189
- function L(a) {
190
- return a < 1024 ? `${a}B` : a < 1024 * 1024 ? `${(a / 1024).toFixed(2)}KB` : `${(a / (1024 * 1024)).toFixed(2)}MB`;
281
+ function Y(l) {
282
+ return l < 1024 ? `${l}B` : l < 1024 * 1024 ? `${(l / 1024).toFixed(2)}KB` : `${(l / (1024 * 1024)).toFixed(2)}MB`;
191
283
  }
192
- function Q(a) {
193
- return a.size <= y.value * 1024 * 1024 ? !1 : (q.error(`文件大小不能超过 ${y.value}MB,当前为 ${L(a.size)}`), !0);
284
+ function D(l) {
285
+ return l.size <= g.value * 1024 * 1024 ? !1 : (J.error(`文件大小不能超过 ${g.value}MB,当前为 ${Y(l.size)}`), !0);
194
286
  }
195
- function te(a) {
196
- return a.type?.startsWith("image/") ?? /\.(avif|gif|jpe?g|png|svg|webp)(\?.*)?$/i.test(a.url ?? "");
287
+ function Q(l) {
288
+ return l.type?.startsWith("image/") ?? /\.(avif|gif|jpe?g|png|svg|webp)(\?.*)?$/i.test(l.url ?? "");
197
289
  }
198
- function ne(a) {
199
- if (a.url) {
200
- if (te(a)) {
201
- T.value = a.url, _.value = !0;
290
+ function v(l) {
291
+ if (l.url) {
292
+ if (Q(l)) {
293
+ h.value = l.url, b.value = !0;
202
294
  return;
203
295
  }
204
- window.open(a.url, "_blank", "noopener,noreferrer");
296
+ window.open(l.url, "_blank", "noopener,noreferrer");
205
297
  }
206
298
  }
207
- function O(a) {
208
- _.value = a;
299
+ function O(l) {
300
+ b.value = l;
209
301
  }
210
- function D(a, h, z) {
211
- a.status = "done", a.percent = 100, h?.name && (a.name = h.name), h?.url && (a.url = h.url), P(), z(h), v("uploadSuccess");
302
+ function j(l, _, M) {
303
+ l.status = "done", l.percent = 100, _?.name && (l.name = _.name), _?.url && (l.url = _.url), V(), M(_), y("uploadSuccess");
212
304
  }
213
- function W(a, h, z) {
214
- a.status = "error", P(), z(h);
305
+ function Z(l, _, M) {
306
+ l.status = "error", V(), M(_);
215
307
  }
216
- function $e(a, h, z, oe) {
217
- const G = n.value.find((x) => x.uid === h);
218
- if (!G) return;
219
- if (G.status = "uploading", G.percent = 0, P(), !i.customRequest) {
220
- const x = new Error("未配置 customRequest");
221
- q.error(x.message), W(G, x, oe);
308
+ function Te(l, _, M, le) {
309
+ const K = i.value.find((z) => z.uid === _);
310
+ if (!K) return;
311
+ if (K.status = "uploading", K.percent = 0, V(), !r.customRequest) {
312
+ const z = new Error("未配置 customRequest");
313
+ J.error(z.message), Z(K, z, le);
222
314
  return;
223
315
  }
224
- let J = !1;
225
- const ie = {
226
- file: a,
227
- onError: (x) => {
228
- J || (J = !0, W(G, x, oe));
316
+ let ee = !1;
317
+ const ue = {
318
+ file: l,
319
+ onError: (z) => {
320
+ ee || (ee = !0, Z(K, z, le));
229
321
  },
230
- onProgress: (x) => {
231
- J || (G.percent = Math.min(100, Math.max(0, x)), P());
322
+ onProgress: (z) => {
323
+ ee || (K.percent = Math.min(100, Math.max(0, z)), V());
232
324
  },
233
- onSuccess: (x) => {
234
- J || (J = !0, D(G, x, z));
325
+ onSuccess: (z) => {
326
+ ee || (ee = !0, j(K, z, M));
235
327
  },
236
- uid: h
328
+ uid: _
237
329
  };
238
330
  try {
239
- Promise.resolve(i.customRequest(ie)).catch((x) => {
240
- ie.onError(x instanceof Error ? x : new Error("上传失败"));
331
+ Promise.resolve(r.customRequest(ue)).catch((z) => {
332
+ ue.onError(z instanceof Error ? z : new Error("上传失败"));
241
333
  });
242
- } catch (x) {
243
- ie.onError(x instanceof Error ? x : new Error("上传失败"));
334
+ } catch (z) {
335
+ ue.onError(z instanceof Error ? z : new Error("上传失败"));
244
336
  }
245
337
  }
246
- const Se = (a) => Q(a) || $.value ? !1 : i.customRequest ? !0 : (q.error("未配置 customRequest"), !1);
247
- function Te(a) {
248
- const h = a.file instanceof File ? a.file : void 0;
249
- if (!h || Q(h)) {
250
- a.onError?.(new Error("文件大小超过限制"));
338
+ const Se = (l) => D(l) || $.value ? !1 : r.customRequest ? !0 : (J.error("未配置 customRequest"), !1);
339
+ function Be(l) {
340
+ const _ = l.file instanceof File ? l.file : void 0;
341
+ if (!_ || D(_)) {
342
+ l.onError?.(new Error("文件大小超过限制"));
251
343
  return;
252
344
  }
253
- const z = h.uid ?? String(Date.now());
254
- $e(h, z, a.onSuccess ?? (() => {
255
- }), a.onError ?? (() => {
345
+ const M = _.uid ?? String(Date.now());
346
+ Te(_, M, l.onSuccess ?? (() => {
347
+ }), l.onError ?? (() => {
256
348
  }));
257
349
  }
258
- function Be(a) {
259
- if (n.value = a.fileList.map((z) => ({ ...z })), P(), !$.value) return;
260
- const h = n.value.at(-1);
261
- h?.originFileObj instanceof File && v("fileSelect", { file: h.originFileObj, uid: h.uid });
350
+ function Fe(l) {
351
+ if (i.value = l.fileList.map((M) => ({ ...M })), V(), !$.value) return;
352
+ const _ = i.value.at(-1);
353
+ _?.originFileObj instanceof File && y("fileSelect", { file: _.originFileObj, uid: _.uid });
262
354
  }
263
- function Fe(a) {
264
- v("fileRemoved", a);
355
+ function Ve(l) {
356
+ y("fileRemoved", l);
265
357
  }
266
- function Ve(a, h) {
267
- const z = n.value.find((oe) => oe.uid === a);
268
- z && D(z, h, () => {
358
+ function Oe(l, _) {
359
+ const M = i.value.find((le) => le.uid === l);
360
+ M && j(M, _, () => {
269
361
  });
270
362
  }
271
- function xe(a) {
272
- const h = n.value.find((z) => z.uid === a);
273
- h && W(h, new Error("上传失败"), () => {
363
+ function Pe(l) {
364
+ const _ = i.value.find((M) => M.uid === l);
365
+ _ && Z(_, new Error("上传失败"), () => {
274
366
  });
275
367
  }
276
- function Pe() {
277
- return n.value.flatMap((a) => a.originFileObj instanceof File ? [a.originFileObj] : []);
368
+ function Ee() {
369
+ return i.value.flatMap((l) => l.originFileObj instanceof File ? [l.originFileObj] : []);
278
370
  }
279
- return e({ addError: xe, addResult: Ve, getFiles: Pe }), (a, h) => (s(), S("div", St, [
280
- !m.value || n.value.length > 0 ? (s(), b(p(He), M({ key: 0 }, l.accept ? { accept: l.accept } : {}, {
371
+ return t({ addError: Pe, addResult: Oe, getFiles: Ee }), (l, _) => (n(), B("div", Ft, [
372
+ !f.value || i.value.length > 0 ? (n(), k(m(Ue), A({ key: 0 }, a.accept ? { accept: a.accept } : {}, {
281
373
  "before-upload": Se,
282
- "custom-request": Te,
283
- "file-list": n.value,
284
- "max-count": g.value,
374
+ "custom-request": Be,
375
+ "file-list": i.value,
376
+ "max-count": C.value,
285
377
  multiple: u.value,
286
- "show-upload-list": { showRemoveIcon: !m.value },
378
+ "show-upload-list": { showRemoveIcon: !f.value },
287
379
  "list-type": "picture-card",
288
- onChange: Be,
289
- onPreview: ne,
290
- onRemove: Fe
380
+ onChange: Fe,
381
+ onPreview: v,
382
+ onRemove: Ve
291
383
  }), {
292
- default: f(() => [
293
- !m.value && n.value.length < g.value ? (s(), S("div", {
384
+ default: p(() => [
385
+ !f.value && i.value.length < C.value ? (n(), B("div", {
294
386
  key: 0,
295
387
  class: "yee-file-upload__trigger",
296
- style: ee(c.value)
388
+ style: oe(d.value)
297
389
  }, [
298
- h[0] || (h[0] = w("span", {
390
+ _[0] || (_[0] = w("span", {
299
391
  class: "yee-file-upload__trigger-sign",
300
392
  "aria-hidden": "true"
301
393
  }, "+", -1)),
302
- w("span", null, B(o.value), 1)
303
- ], 4)) : k("", !0)
394
+ w("span", null, P(o.value), 1)
395
+ ], 4)) : T("", !0)
304
396
  ]),
305
397
  _: 1
306
- }, 16, ["file-list", "max-count", "multiple", "show-upload-list"])) : (s(), S("span", Tt, "暂无文件")),
307
- T.value ? (s(), b(p(Ne), {
398
+ }, 16, ["file-list", "max-count", "multiple", "show-upload-list"])) : (n(), B("span", Vt, "暂无文件")),
399
+ h.value ? (n(), k(m(De), {
308
400
  key: 2,
309
401
  class: "yee-file-upload__preview",
310
- preview: { visible: _.value, onVisibleChange: O },
311
- src: T.value
312
- }, null, 8, ["preview", "src"])) : k("", !0)
402
+ preview: { visible: b.value, onVisibleChange: O },
403
+ src: h.value
404
+ }, null, 8, ["preview", "src"])) : T("", !0)
313
405
  ]));
314
406
  }
315
- }), yo = /* @__PURE__ */ N(Bt, [["__scopeId", "data-v-9d1ac9cf"]]), Ft = { class: "yee-form__fields" }, Vt = { class: "yee-form__label" }, xt = { class: "yee-form__actions" }, Pt = /* @__PURE__ */ j({
407
+ }), Co = /* @__PURE__ */ U(Ot, [["__scopeId", "data-v-9d1ac9cf"]]), Pt = { class: "yee-form__fields" }, Et = { class: "yee-form__label" }, zt = { class: "yee-form__actions" }, Rt = /* @__PURE__ */ L({
316
408
  name: "YeeForm",
317
409
  __name: "YeeForm",
318
410
  props: {
@@ -321,196 +413,196 @@ const bt = { class: "yee-descriptions__item" }, _t = { class: "yee-descriptions_
321
413
  onSubmit: { type: Function },
322
414
  options: {}
323
415
  },
324
- setup(l) {
325
- const e = l, t = De.RangePicker, i = K(e.options.collapsed ?? !0);
326
- e.api.configure(e.options);
327
- const v = r(() => e.api.schema.value.filter((y) => !y.hide));
328
- function n(y) {
329
- return e.api.getFieldValue(y.fieldName);
416
+ setup(a) {
417
+ const t = a, e = Ge.RangePicker, r = N(t.options.collapsed ?? !0);
418
+ t.api.configure(t.options);
419
+ const y = s(() => t.api.schema.value.filter((g) => !g.hide));
420
+ function i(g) {
421
+ return t.api.getFieldValue(g.fieldName);
330
422
  }
331
- function _(y) {
332
- const u = n(y);
423
+ function b(g) {
424
+ const u = i(g);
333
425
  return {
334
- ...y.componentProps,
426
+ ...g.componentProps,
335
427
  ...u === void 0 ? {} : { value: u }
336
428
  };
337
429
  }
338
- function T(y, u) {
339
- e.api.setFieldValue(y.fieldName, u), e.options.submitOnChange && V();
430
+ function h(g, u) {
431
+ t.api.setFieldValue(g.fieldName, u), t.options.submitOnChange && S();
340
432
  }
341
433
  async function F() {
342
- e.api.resetForm(), await e.onReset?.();
434
+ t.api.resetForm(), await t.onReset?.();
343
435
  }
344
- async function V() {
345
- await e.onSubmit?.(e.api.getValues());
436
+ async function S() {
437
+ await t.onSubmit?.(t.api.getValues());
346
438
  }
347
- function $(y) {
348
- y.key === "Enter" && e.options.submitOnEnter && (y.preventDefault(), V());
439
+ function $(g) {
440
+ g.key === "Enter" && t.options.submitOnEnter && (g.preventDefault(), S());
349
441
  }
350
- function g() {
351
- i.value = !i.value, e.options.handleCollapsedChange?.(i.value);
442
+ function C() {
443
+ r.value = !r.value, t.options.handleCollapsedChange?.(r.value);
352
444
  }
353
- return (y, u) => (s(), S("form", {
445
+ return (g, u) => (n(), B("form", {
354
446
  class: "yee-form",
355
447
  onKeydown: $,
356
- onSubmit: ze(V, ["prevent"])
448
+ onSubmit: Ae(S, ["prevent"])
357
449
  }, [
358
- w("div", Ft, [
359
- (s(!0), S(ge, null, de(v.value, (m) => (s(), S("label", {
360
- key: m.fieldName,
450
+ w("div", Pt, [
451
+ (n(!0), B(ge, null, ve(y.value, (f) => (n(), B("label", {
452
+ key: f.fieldName,
361
453
  class: "yee-form__field"
362
454
  }, [
363
- w("span", Vt, B(m.label), 1),
364
- m.component === "Input" ? (s(), b(p(Ge), M({
455
+ w("span", Et, P(f.label), 1),
456
+ f.component === "Input" ? (n(), k(m(qe), A({
365
457
  key: 0,
366
458
  ref_for: !0
367
- }, _(m), {
368
- "onUpdate:value": (o) => T(m, o)
369
- }), null, 16, ["onUpdate:value"])) : m.component === "Select" ? (s(), b(p(le), M({
459
+ }, b(f), {
460
+ "onUpdate:value": (o) => h(f, o)
461
+ }), null, 16, ["onUpdate:value"])) : f.component === "Select" ? (n(), k(m(ne), A({
370
462
  key: 1,
371
463
  ref_for: !0
372
- }, _(m), {
373
- "onUpdate:value": (o) => T(m, o)
374
- }), null, 16, ["onUpdate:value"])) : (s(), b(p(t), M({
464
+ }, b(f), {
465
+ "onUpdate:value": (o) => h(f, o)
466
+ }), null, 16, ["onUpdate:value"])) : (n(), k(m(e), A({
375
467
  key: 2,
376
468
  ref_for: !0
377
- }, _(m), {
378
- "onUpdate:value": (o) => T(m, o)
469
+ }, b(f), {
470
+ "onUpdate:value": (o) => h(f, o)
379
471
  }), null, 16, ["onUpdate:value"]))
380
472
  ]))), 128))
381
473
  ]),
382
- w("div", xt, [
383
- I(p(Y), {
474
+ w("div", zt, [
475
+ H(m(I), {
384
476
  "html-type": "button",
385
477
  onClick: F
386
478
  }, {
387
- default: f(() => [...u[0] || (u[0] = [
388
- A(" 重置 ", -1)
479
+ default: p(() => [...u[0] || (u[0] = [
480
+ W(" 重置 ", -1)
389
481
  ])]),
390
482
  _: 1
391
483
  }),
392
- I(p(Y), {
484
+ H(m(I), {
393
485
  type: "primary",
394
486
  "html-type": "submit"
395
487
  }, {
396
- default: f(() => [...u[1] || (u[1] = [
397
- A(" 查询 ", -1)
488
+ default: p(() => [...u[1] || (u[1] = [
489
+ W(" 查询 ", -1)
398
490
  ])]),
399
491
  _: 1
400
492
  }),
401
- l.options.showCollapseButton ? (s(), b(p(Y), {
493
+ a.options.showCollapseButton ? (n(), k(m(I), {
402
494
  key: 0,
403
495
  type: "link",
404
496
  "html-type": "button",
405
- onClick: g
497
+ onClick: C
406
498
  }, {
407
- default: f(() => [
408
- A(B(i.value ? "展开" : "收起"), 1)
499
+ default: p(() => [
500
+ W(P(r.value ? "展开" : "收起"), 1)
409
501
  ]),
410
502
  _: 1
411
- })) : k("", !0)
503
+ })) : T("", !0)
412
504
  ])
413
505
  ], 32));
414
506
  }
415
- }), Ot = /* @__PURE__ */ N(Pt, [["__scopeId", "data-v-12e77340"]]);
416
- class Rt {
417
- schema = K([]);
507
+ }), Mt = /* @__PURE__ */ U(Rt, [["__scopeId", "data-v-12e77340"]]);
508
+ class Yt {
509
+ schema = N([]);
418
510
  initialValues = {};
419
- values = ye({});
420
- configure(e) {
421
- this.schema.value = e.schema.map((t) => ({ ...t })), this.initialValues = { ...e.initialValues }, this.resetForm();
511
+ values = he({});
512
+ configure(t) {
513
+ this.schema.value = t.schema.map((e) => ({ ...e })), this.initialValues = { ...t.initialValues }, this.resetForm();
422
514
  }
423
- getFieldValue(e) {
424
- return this.values[e];
515
+ getFieldValue(t) {
516
+ return this.values[t];
425
517
  }
426
518
  getValues() {
427
519
  return { ...this.values };
428
520
  }
429
521
  resetForm() {
430
- for (const e of Object.keys(this.values))
431
- delete this.values[e];
522
+ for (const t of Object.keys(this.values))
523
+ delete this.values[t];
432
524
  Object.assign(this.values, this.initialValues);
433
525
  }
434
- setFieldValue(e, t) {
435
- this.values[e] = t;
526
+ setFieldValue(t, e) {
527
+ this.values[t] = e;
436
528
  }
437
- setValues(e) {
438
- Object.assign(this.values, e);
529
+ setValues(t) {
530
+ Object.assign(this.values, t);
439
531
  }
440
- updateSchema(e) {
441
- const t = new Map(e.map((i) => [i.fieldName, i]));
442
- this.schema.value = this.schema.value.map((i) => ({
443
- ...i,
444
- ...t.get(i.fieldName)
532
+ updateSchema(t) {
533
+ const e = new Map(t.map((r) => [r.fieldName, r]));
534
+ this.schema.value = this.schema.value.map((r) => ({
535
+ ...r,
536
+ ...e.get(r.fieldName)
445
537
  }));
446
538
  }
447
539
  }
448
- class zt {
449
- formApi = new Rt();
540
+ class At {
541
+ formApi = new Yt();
450
542
  searchFormVisible;
451
543
  state;
452
544
  grid;
453
- constructor(e) {
454
- this.state = K(e), this.searchFormVisible = K(e.showSearchForm ?? !0);
545
+ constructor(t) {
546
+ this.state = N(t), this.searchFormVisible = N(t.showSearchForm ?? !0);
455
547
  }
456
- mount(e) {
457
- this.grid = e;
548
+ mount(t) {
549
+ this.grid = t;
458
550
  }
459
- query = async (e) => (e && this.formApi.setValues(e), this.grid?.commitProxy("query"));
460
- reload = async (e) => (e && this.formApi.setValues(e), this.grid?.commitProxy("reload"));
461
- setGridOptions(e) {
551
+ query = async (t) => (t && this.formApi.setValues(t), this.grid?.commitProxy("query"));
552
+ reload = async (t) => (t && this.formApi.setValues(t), this.grid?.commitProxy("reload"));
553
+ setGridOptions(t) {
462
554
  this.setState({
463
555
  gridOptions: {
464
556
  ...this.state.value.gridOptions,
465
- ...e
557
+ ...t
466
558
  }
467
559
  });
468
560
  }
469
- setLoading(e) {
470
- this.setGridOptions({ loading: e });
561
+ setLoading(t) {
562
+ this.setGridOptions({ loading: t });
471
563
  }
472
- setState(e) {
564
+ setState(t) {
473
565
  this.state.value = {
474
566
  ...this.state.value,
475
- ...e
567
+ ...t
476
568
  };
477
569
  }
478
- toggleSearchForm(e) {
479
- return this.searchFormVisible.value = e ?? !this.searchFormVisible.value, this.searchFormVisible.value;
570
+ toggleSearchForm(t) {
571
+ return this.searchFormVisible.value = t ?? !this.searchFormVisible.value, this.searchFormVisible.value;
480
572
  }
481
573
  unmount() {
482
574
  this.grid = void 0;
483
575
  }
484
576
  }
485
- let me = !1;
486
- function Ce() {
487
- if (me) return;
577
+ let ye = !1;
578
+ function $e() {
579
+ if (ye) return;
488
580
  [
489
- tt,
490
- ot,
491
- at,
492
- we,
493
581
  lt,
582
+ at,
494
583
  st,
584
+ xe,
495
585
  nt,
496
586
  it,
497
587
  rt,
498
588
  ut,
499
- ct,
500
589
  dt,
501
- ft,
590
+ ct,
502
591
  pt,
592
+ ft,
593
+ vt,
503
594
  mt,
504
- vt
505
- ].forEach((e) => ke.component(e)), me = !0;
595
+ yt,
596
+ ht
597
+ ].forEach((t) => we.component(t)), ye = !0;
506
598
  }
507
- const Et = { class: "yee-grid" }, Yt = {
599
+ const It = { class: "yee-grid" }, Wt = {
508
600
  key: 1,
509
601
  class: "yee-grid__separator"
510
- }, At = {
602
+ }, Lt = {
511
603
  key: 0,
512
604
  class: "yee-grid__title"
513
- }, Mt = /* @__PURE__ */ j({
605
+ }, jt = /* @__PURE__ */ L({
514
606
  name: "YeeGrid",
515
607
  __name: "YeeGrid",
516
608
  props: {
@@ -518,17 +610,17 @@ const Et = { class: "yee-grid" }, Yt = {
518
610
  tableTitle: {},
519
611
  tableTitleHelp: {}
520
612
  },
521
- setup(l) {
522
- const e = l, t = se(), i = Ee("gridRef"), v = ve(fe);
523
- Ce();
524
- const n = r(() => e.api.state.value), _ = r(() => n.value.formOptions), T = r(() => !!(e.tableTitle || t["table-title"] || t["toolbar-actions"] || t["toolbar-tools"])), F = r(() => Object.keys(t).filter((o) => ![
613
+ setup(a) {
614
+ const t = a, e = ie(), r = be("gridRef"), y = pe(re);
615
+ $e();
616
+ const i = s(() => t.api.state.value), b = s(() => i.value.formOptions), h = s(() => !!(t.tableTitle || e["table-title"] || e["toolbar-actions"] || e["toolbar-tools"])), F = s(() => Object.keys(e).filter((o) => ![
525
617
  "empty",
526
618
  "loading",
527
619
  "table-title",
528
620
  "toolbar-actions",
529
621
  "toolbar-tools"
530
- ].includes(o))), V = r(() => !!n.value.gridOptions.toolbarConfig?.search), $ = r(() => {
531
- const o = n.value.gridOptions, d = o.proxyConfig, c = d?.ajax?.query, R = o.toolbarConfig, E = o.pagerConfig;
622
+ ].includes(o))), S = s(() => !!i.value.gridOptions.toolbarConfig?.search), $ = s(() => {
623
+ const o = i.value.gridOptions, c = o.proxyConfig, d = c?.ajax?.query, E = o.toolbarConfig, R = o.pagerConfig;
532
624
  return {
533
625
  align: "left",
534
626
  border: "inner",
@@ -536,167 +628,167 @@ const Et = { class: "yee-grid" }, Yt = {
536
628
  showOverflow: "tooltip",
537
629
  size: "medium",
538
630
  ...o,
539
- ...E ? {
631
+ ...R ? {
540
632
  pagerConfig: {
541
633
  pageSize: 20,
542
634
  pageSizes: [10, 20, 30, 50, 100, 200],
543
635
  layouts: ["Total", "Sizes", "Home", "PrevPage", "Number", "NextPage", "End"],
544
- ...E,
636
+ ...R,
545
637
  slots: {
546
638
  sizes: "pagerSizes",
547
- ...E.slots
639
+ ...R.slots
548
640
  }
549
641
  }
550
642
  } : {},
551
- ...d ? {
643
+ ...c ? {
552
644
  proxyConfig: {
553
645
  autoLoad: !0,
554
646
  showResponseMsg: !1,
555
- ...d,
647
+ ...c,
556
648
  response: {
557
649
  list: "items",
558
650
  result: "items",
559
651
  total: "total",
560
- ...d.response
652
+ ...c.response
561
653
  },
562
- ...d.ajax ? {
654
+ ...c.ajax ? {
563
655
  ajax: {
564
- ...d.ajax,
565
- ...c ? {
566
- query: (P) => c(P, e.api.formApi.getValues())
656
+ ...c.ajax,
657
+ ...d ? {
658
+ query: (V) => d(V, t.api.formApi.getValues())
567
659
  } : {}
568
660
  }
569
661
  } : {}
570
662
  }
571
663
  } : {},
572
- ...R || T.value ? {
664
+ ...E || h.value ? {
573
665
  toolbarConfig: {
574
666
  custom: !0,
575
667
  refresh: !0,
576
668
  zoom: !0,
577
- ...R,
669
+ ...E,
578
670
  slots: {
579
- ...e.tableTitle || t["table-title"] || t["toolbar-actions"] ? { buttons: "toolbarActions" } : {},
580
- ...t["toolbar-tools"] || R?.search ? { tools: "toolbarTools" } : {}
671
+ ...t.tableTitle || e["table-title"] || e["toolbar-actions"] ? { buttons: "toolbarActions" } : {},
672
+ ...e["toolbar-tools"] || E?.search ? { tools: "toolbarTools" } : {}
581
673
  }
582
674
  }
583
675
  } : {}
584
676
  };
585
- }), g = r(() => n.value.gridEvents ?? {});
586
- re(
587
- () => v?.value.mode ?? "light",
588
- (o) => ke.setTheme(o),
677
+ }), C = s(() => i.value.gridEvents ?? {});
678
+ ae(
679
+ () => y?.value.mode ?? "light",
680
+ (o) => we.setTheme(o),
589
681
  { immediate: !0 }
590
682
  );
591
- async function y() {
592
- await e.api.reload();
683
+ async function g() {
684
+ await t.api.reload();
593
685
  }
594
686
  async function u() {
595
- await e.api.reload();
687
+ await t.api.reload();
596
688
  }
597
- function m(o, d) {
598
- typeof d != "number" && typeof d != "string" || o.setPageSizeByEvent(new Event("change"), d);
689
+ function f(o, c) {
690
+ typeof c != "number" && typeof c != "string" || o.setPageSizeByEvent(new Event("change"), c);
599
691
  }
600
- return Ye(() => {
601
- i.value && e.api.mount(i.value);
602
- }), Ae(() => e.api.unmount()), (o, d) => (s(), S("section", Et, [
603
- _.value ? Me((s(), b(Ot, {
692
+ return _e(() => {
693
+ r.value && t.api.mount(r.value);
694
+ }), Ie(() => t.api.unmount()), (o, c) => (n(), B("section", It, [
695
+ b.value ? We((n(), k(Mt, {
604
696
  key: 0,
605
- api: l.api.formApi,
606
- options: _.value,
697
+ api: a.api.formApi,
698
+ options: b.value,
607
699
  "on-reset": u,
608
- "on-submit": y
700
+ "on-submit": g
609
701
  }, null, 8, ["api", "options"])), [
610
- [Ie, l.api.searchFormVisible.value]
611
- ]) : k("", !0),
612
- _.value && n.value.separator !== !1 ? (s(), S("div", Yt)) : k("", !0),
613
- I(p(we), M({
702
+ [Le, a.api.searchFormVisible.value]
703
+ ]) : T("", !0),
704
+ b.value && i.value.separator !== !1 ? (n(), B("div", Wt)) : T("", !0),
705
+ H(m(xe), A({
614
706
  ref_key: "gridRef",
615
- ref: i,
707
+ ref: r,
616
708
  class: "yee-grid__table"
617
- }, $.value, je(g.value)), ae({
618
- toolbarActions: f((c) => [
619
- C(o.$slots, "table-title", {}, () => [
620
- l.tableTitle ? (s(), S("div", At, [
621
- A(B(l.tableTitle) + " ", 1),
622
- l.tableTitleHelp ? (s(), b(p(Z), {
709
+ }, $.value, je(C.value)), se({
710
+ toolbarActions: p((d) => [
711
+ x(o.$slots, "table-title", {}, () => [
712
+ a.tableTitle ? (n(), B("div", Lt, [
713
+ W(P(a.tableTitle) + " ", 1),
714
+ a.tableTitleHelp ? (n(), k(m(X), {
623
715
  key: 0,
624
- title: l.tableTitleHelp
716
+ title: a.tableTitleHelp
625
717
  }, {
626
- default: f(() => [...d[1] || (d[1] = [
718
+ default: p(() => [...c[1] || (c[1] = [
627
719
  w("span", {
628
720
  class: "yee-grid__help",
629
721
  tabindex: "0"
630
722
  }, "?", -1)
631
723
  ])]),
632
724
  _: 1
633
- }, 8, ["title"])) : k("", !0)
634
- ])) : k("", !0)
725
+ }, 8, ["title"])) : T("", !0)
726
+ ])) : T("", !0)
635
727
  ], !0),
636
- C(o.$slots, "toolbar-actions", U(H(c)), void 0, !0)
728
+ x(o.$slots, "toolbar-actions", G(q(d)), void 0, !0)
637
729
  ]),
638
- toolbarTools: f((c) => [
639
- C(o.$slots, "toolbar-tools", U(H(c)), void 0, !0),
640
- V.value && _.value ? (s(), b(p(Y), {
730
+ toolbarTools: p((d) => [
731
+ x(o.$slots, "toolbar-tools", G(q(d)), void 0, !0),
732
+ S.value && b.value ? (n(), k(m(I), {
641
733
  key: 0,
642
734
  size: "small",
643
- onClick: d[0] || (d[0] = (R) => l.api.toggleSearchForm())
735
+ onClick: c[0] || (c[0] = (E) => a.api.toggleSearchForm())
644
736
  }, {
645
- default: f(() => [
646
- A(B(l.api.searchFormVisible.value ? "隐藏查询" : "显示查询"), 1)
737
+ default: p(() => [
738
+ W(P(a.api.searchFormVisible.value ? "隐藏查询" : "显示查询"), 1)
647
739
  ]),
648
740
  _: 1
649
- })) : k("", !0)
741
+ })) : T("", !0)
650
742
  ]),
651
- pagerSizes: f(({ $pager: c, options: R, pageSize: E }) => [
652
- I(p(le), {
743
+ pagerSizes: p(({ $pager: d, options: E, pageSize: R }) => [
744
+ H(m(ne), {
653
745
  class: "yee-grid__page-size",
654
- options: R,
655
- value: E,
656
- onChange: (P) => m(c, P)
746
+ options: E,
747
+ value: R,
748
+ onChange: (V) => f(d, V)
657
749
  }, null, 8, ["options", "value", "onChange"])
658
750
  ]),
659
- empty: f(() => [
660
- C(o.$slots, "empty", {}, () => [
661
- d[2] || (d[2] = w("div", { class: "yee-grid__empty" }, "暂无数据", -1))
751
+ empty: p(() => [
752
+ x(o.$slots, "empty", {}, () => [
753
+ c[2] || (c[2] = w("div", { class: "yee-grid__empty" }, "暂无数据", -1))
662
754
  ], !0)
663
755
  ]),
664
756
  _: 2
665
757
  }, [
666
- de(F.value, (c) => ({
667
- name: c,
668
- fn: f((R) => [
669
- C(o.$slots, c, U(H(R)), void 0, !0)
758
+ ve(F.value, (d) => ({
759
+ name: d,
760
+ fn: p((E) => [
761
+ x(o.$slots, d, G(q(E)), void 0, !0)
670
762
  ])
671
763
  }))
672
764
  ]), 1040)
673
765
  ]));
674
766
  }
675
- }), It = /* @__PURE__ */ N(Mt, [["__scopeId", "data-v-dd189ec9"]]);
676
- function ho(l) {
677
- Ce();
678
- const e = new zt(l), t = It;
679
- return [j({
767
+ }), Ht = /* @__PURE__ */ U(jt, [["__scopeId", "data-v-dd189ec9"]]);
768
+ function ko(a) {
769
+ $e();
770
+ const t = new At(a), e = Ht;
771
+ return [L({
680
772
  name: "YeeGrid",
681
773
  inheritAttrs: !1,
682
774
  props: {
683
775
  tableTitle: String,
684
776
  tableTitleHelp: String
685
777
  },
686
- setup(v, { attrs: n, slots: _ }) {
687
- return he(() => e.unmount()), () => be(t, {
688
- ...n,
689
- api: e,
690
- ...v.tableTitle ? { tableTitle: v.tableTitle } : {},
691
- ...v.tableTitleHelp ? { tableTitleHelp: v.tableTitleHelp } : {}
692
- }, _);
778
+ setup(y, { attrs: i, slots: b }) {
779
+ return fe(() => t.unmount()), () => Ce(e, {
780
+ ...i,
781
+ api: t,
782
+ ...y.tableTitle ? { tableTitle: y.tableTitle } : {},
783
+ ...y.tableTitleHelp ? { tableTitleHelp: y.tableTitleHelp } : {}
784
+ }, b);
693
785
  }
694
- }), e];
786
+ }), t];
695
787
  }
696
- const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal__title" }, Ht = {
788
+ const Nt = { class: "yee-modal__header" }, Ut = ["id"], Dt = { class: "yee-modal__title" }, Gt = {
697
789
  key: 1,
698
790
  class: "yee-modal__header-actions"
699
- }, Nt = { class: "yee-modal__body" }, Dt = { class: "yee-modal__footer" }, Gt = { class: "yee-modal__header" }, qt = ["id"], Kt = { class: "yee-modal__title" }, Qt = { class: "yee-modal__header-actions" }, Wt = { class: "yee-modal__body" }, Jt = { class: "yee-modal__footer" }, Xt = /* @__PURE__ */ j({
791
+ }, qt = { class: "yee-modal__body" }, Kt = { class: "yee-modal__footer" }, Qt = { class: "yee-modal__header" }, Jt = ["id"], Xt = { class: "yee-modal__title" }, Zt = { class: "yee-modal__header-actions" }, eo = { class: "yee-modal__body" }, to = { class: "yee-modal__footer" }, oo = /* @__PURE__ */ L({
700
792
  inheritAttrs: !1,
701
793
  name: "YeeModal",
702
794
  __name: "YeeModal",
@@ -723,14 +815,14 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
723
815
  openModifiers: {}
724
816
  }),
725
817
  emits: /* @__PURE__ */ ce(["cancel", "close", "confirm", "update:fullscreen"], ["update:open"]),
726
- setup(l, { emit: e }) {
727
- const t = l, i = e, v = ue(l, "open"), n = ue(t, "fullscreen"), _ = _e(), T = se(), F = Le(), V = r(() => t.type === "drawer"), $ = r(() => !V.value && n.value), g = r(() => !!(t.title || T.header)), y = r(() => g.value || t.closable), u = r(() => g.value || t.fullscreenButton || t.closable), m = r(() => $.value ? "退出全屏" : "进入全屏"), o = r(() => {
728
- const O = Object.prototype.hasOwnProperty.call(t.wrapProps ?? {}, "aria-labelledby");
818
+ setup(a, { emit: t }) {
819
+ const e = a, r = t, y = de(a, "open"), i = de(e, "fullscreen"), b = ke(), h = ie(), F = He(), S = s(() => e.type === "drawer"), $ = s(() => !S.value && i.value), C = s(() => !!(e.title || h.header)), g = s(() => C.value || e.closable), u = s(() => C.value || e.fullscreenButton || e.closable), f = s(() => $.value ? "退出全屏" : "进入全屏"), o = s(() => {
820
+ const O = Object.prototype.hasOwnProperty.call(e.wrapProps ?? {}, "aria-labelledby");
729
821
  return {
730
- ...t.wrapProps,
731
- "aria-labelledby": O ? t.wrapProps?.["aria-labelledby"] : g.value ? F : void 0
822
+ ...e.wrapProps,
823
+ "aria-labelledby": O ? e.wrapProps?.["aria-labelledby"] : C.value ? F : void 0
732
824
  };
733
- }), d = r(() => {
825
+ }), c = s(() => {
734
826
  if ($.value)
735
827
  return {
736
828
  height: "100%",
@@ -741,203 +833,203 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
741
833
  width: "100vw"
742
834
  };
743
835
  });
744
- function c() {
745
- const { style: O, ...D } = _;
746
- return D;
747
- }
748
- function R() {
749
- return [_.style, t.style].filter(Boolean);
836
+ function d() {
837
+ const { style: O, ...j } = b;
838
+ return j;
750
839
  }
751
840
  function E() {
752
- return [_.style, t.style, d.value].filter(Boolean);
841
+ return [b.style, e.style].filter(Boolean);
842
+ }
843
+ function R() {
844
+ return [b.style, e.style, c.value].filter(Boolean);
753
845
  }
754
- const P = () => T.closeIcon?.() ?? _.closeIcon ?? be(et);
755
- function L(O) {
756
- i("cancel", O), v.value = !1;
846
+ const V = () => h.closeIcon?.() ?? b.closeIcon ?? Ce(ot);
847
+ function Y(O) {
848
+ r("cancel", O), y.value = !1;
757
849
  }
758
- function Q(O) {
759
- i("confirm", O);
850
+ function D(O) {
851
+ r("confirm", O);
760
852
  }
761
- function te() {
762
- i("close");
853
+ function Q() {
854
+ r("close");
763
855
  }
764
- function ne() {
765
- n.value = !n.value;
856
+ function v() {
857
+ i.value = !i.value;
766
858
  }
767
- return (O, D) => V.value ? (s(), b(p(qe), M({ key: 0 }, c(), {
859
+ return (O, j) => S.value ? (n(), k(m(Ke), A({ key: 0 }, d(), {
768
860
  class: "yee-modal-drawer",
769
861
  closable: !1,
770
- "destroy-on-close": t.destroyOnClose,
771
- keyboard: t.keyboard,
772
- "mask-closable": t.maskClosable,
773
- open: v.value,
774
- style: R(),
775
- width: t.width,
776
- onAfterOpenChange: D[0] || (D[0] = (W) => !W && te()),
777
- onClose: L
778
- }), ae({
779
- footer: f(() => [
780
- w("div", Dt, [
781
- C(O.$slots, "footer", {}, () => [
782
- t.showCancelButton ? (s(), b(p(Y), {
862
+ "destroy-on-close": e.destroyOnClose,
863
+ keyboard: e.keyboard,
864
+ "mask-closable": e.maskClosable,
865
+ open: y.value,
866
+ style: E(),
867
+ width: e.width,
868
+ onAfterOpenChange: j[0] || (j[0] = (Z) => !Z && Q()),
869
+ onClose: Y
870
+ }), se({
871
+ footer: p(() => [
872
+ w("div", Kt, [
873
+ x(O.$slots, "footer", {}, () => [
874
+ e.showCancelButton ? (n(), k(m(I), {
783
875
  key: 0,
784
- onClick: L
876
+ onClick: Y
785
877
  }, {
786
- default: f(() => [
787
- A(B(t.cancelButtonText), 1)
878
+ default: p(() => [
879
+ W(P(e.cancelButtonText), 1)
788
880
  ]),
789
881
  _: 1
790
- })) : k("", !0),
791
- t.showConfirmButton ? (s(), b(p(Y), {
882
+ })) : T("", !0),
883
+ e.showConfirmButton ? (n(), k(m(I), {
792
884
  key: 1,
793
- loading: t.confirmButtonLoading,
885
+ loading: e.confirmButtonLoading,
794
886
  type: "primary",
795
- onClick: Q
887
+ onClick: D
796
888
  }, {
797
- default: f(() => [
798
- A(B(t.confirmButtonText), 1)
889
+ default: p(() => [
890
+ W(P(e.confirmButtonText), 1)
799
891
  ]),
800
892
  _: 1
801
- }, 8, ["loading"])) : k("", !0)
893
+ }, 8, ["loading"])) : T("", !0)
802
894
  ], !0)
803
895
  ])
804
896
  ]),
805
- default: f(() => [
806
- w("div", Nt, [
807
- C(O.$slots, "default", {}, void 0, !0)
897
+ default: p(() => [
898
+ w("div", qt, [
899
+ x(O.$slots, "default", {}, void 0, !0)
808
900
  ])
809
901
  ]),
810
902
  _: 2
811
903
  }, [
812
- y.value ? {
904
+ g.value ? {
813
905
  name: "title",
814
- fn: f(() => [
815
- w("div", jt, [
816
- g.value ? (s(), S("div", {
906
+ fn: p(() => [
907
+ w("div", Nt, [
908
+ C.value ? (n(), B("div", {
817
909
  key: 0,
818
- id: p(F),
910
+ id: m(F),
819
911
  class: "yee-modal__heading"
820
912
  }, [
821
- C(O.$slots, "header", {}, () => [
822
- w("span", Ut, B(t.title), 1)
913
+ x(O.$slots, "header", {}, () => [
914
+ w("span", Dt, P(e.title), 1)
823
915
  ], !0)
824
- ], 8, Lt)) : k("", !0),
825
- t.closable ? (s(), S("div", Ht, [
826
- I(p(Y), {
916
+ ], 8, Ut)) : T("", !0),
917
+ e.closable ? (n(), B("div", Gt, [
918
+ H(m(I), {
827
919
  "aria-label": "关闭",
828
920
  class: "yee-modal__header-action",
829
921
  size: "small",
830
922
  type: "text",
831
- onClick: L
923
+ onClick: Y
832
924
  }, {
833
- default: f(() => [
834
- I(P)
925
+ default: p(() => [
926
+ H(V)
835
927
  ]),
836
928
  _: 1
837
929
  })
838
- ])) : k("", !0)
930
+ ])) : T("", !0)
839
931
  ])
840
932
  ]),
841
933
  key: "0"
842
934
  } : void 0
843
- ]), 1040, ["destroy-on-close", "keyboard", "mask-closable", "open", "style", "width"])) : (s(), b(p(Ke), M({ key: 1 }, c(), {
844
- centered: $.value ? !1 : t.centered,
935
+ ]), 1040, ["destroy-on-close", "keyboard", "mask-closable", "open", "style", "width"])) : (n(), k(m(Qe), A({ key: 1 }, d(), {
936
+ centered: $.value ? !1 : e.centered,
845
937
  class: {
846
938
  "yee-modal": !0,
847
939
  "yee-modal--fullscreen": $.value
848
940
  },
849
941
  closable: !1,
850
- "destroy-on-close": t.destroyOnClose,
851
- keyboard: t.keyboard,
852
- "mask-closable": t.maskClosable,
853
- open: v.value,
854
- style: E(),
855
- width: $.value ? "100vw" : t.width,
942
+ "destroy-on-close": e.destroyOnClose,
943
+ keyboard: e.keyboard,
944
+ "mask-closable": e.maskClosable,
945
+ open: y.value,
946
+ style: R(),
947
+ width: $.value ? "100vw" : e.width,
856
948
  "wrap-props": o.value,
857
- onAfterClose: te,
858
- onCancel: L
859
- }), ae({
860
- footer: f(() => [
861
- w("div", Jt, [
862
- C(O.$slots, "footer", {}, () => [
863
- t.showCancelButton ? (s(), b(p(Y), {
949
+ onAfterClose: Q,
950
+ onCancel: Y
951
+ }), se({
952
+ footer: p(() => [
953
+ w("div", to, [
954
+ x(O.$slots, "footer", {}, () => [
955
+ e.showCancelButton ? (n(), k(m(I), {
864
956
  key: 0,
865
- onClick: L
957
+ onClick: Y
866
958
  }, {
867
- default: f(() => [
868
- A(B(t.cancelButtonText), 1)
959
+ default: p(() => [
960
+ W(P(e.cancelButtonText), 1)
869
961
  ]),
870
962
  _: 1
871
- })) : k("", !0),
872
- t.showConfirmButton ? (s(), b(p(Y), {
963
+ })) : T("", !0),
964
+ e.showConfirmButton ? (n(), k(m(I), {
873
965
  key: 1,
874
- loading: t.confirmButtonLoading,
966
+ loading: e.confirmButtonLoading,
875
967
  type: "primary",
876
- onClick: Q
968
+ onClick: D
877
969
  }, {
878
- default: f(() => [
879
- A(B(t.confirmButtonText), 1)
970
+ default: p(() => [
971
+ W(P(e.confirmButtonText), 1)
880
972
  ]),
881
973
  _: 1
882
- }, 8, ["loading"])) : k("", !0)
974
+ }, 8, ["loading"])) : T("", !0)
883
975
  ], !0)
884
976
  ])
885
977
  ]),
886
- default: f(() => [
887
- w("div", Wt, [
888
- C(O.$slots, "default", {}, void 0, !0)
978
+ default: p(() => [
979
+ w("div", eo, [
980
+ x(O.$slots, "default", {}, void 0, !0)
889
981
  ])
890
982
  ]),
891
983
  _: 2
892
984
  }, [
893
985
  u.value ? {
894
986
  name: "title",
895
- fn: f(() => [
896
- w("div", Gt, [
897
- g.value ? (s(), S("div", {
987
+ fn: p(() => [
988
+ w("div", Qt, [
989
+ C.value ? (n(), B("div", {
898
990
  key: 0,
899
- id: p(F),
991
+ id: m(F),
900
992
  class: "yee-modal__heading"
901
993
  }, [
902
- C(O.$slots, "header", {}, () => [
903
- w("span", Kt, B(t.title), 1)
994
+ x(O.$slots, "header", {}, () => [
995
+ w("span", Xt, P(e.title), 1)
904
996
  ], !0)
905
- ], 8, qt)) : k("", !0),
906
- w("div", Qt, [
907
- t.fullscreenButton ? (s(), b(p(Z), {
997
+ ], 8, Jt)) : T("", !0),
998
+ w("div", Zt, [
999
+ e.fullscreenButton ? (n(), k(m(X), {
908
1000
  key: 0,
909
- title: m.value
1001
+ title: f.value
910
1002
  }, {
911
- default: f(() => [
912
- I(p(Y), {
913
- "aria-label": m.value,
1003
+ default: p(() => [
1004
+ H(m(I), {
1005
+ "aria-label": f.value,
914
1006
  "aria-pressed": $.value,
915
1007
  class: "yee-modal__header-action",
916
1008
  size: "small",
917
1009
  type: "text",
918
- onClick: ne
1010
+ onClick: v
919
1011
  }, {
920
- default: f(() => [
921
- $.value ? (s(), b(p(Xe), { key: 0 })) : (s(), b(p(Ze), { key: 1 }))
1012
+ default: p(() => [
1013
+ $.value ? (n(), k(m(et), { key: 0 })) : (n(), k(m(tt), { key: 1 }))
922
1014
  ]),
923
1015
  _: 1
924
1016
  }, 8, ["aria-label", "aria-pressed"])
925
1017
  ]),
926
1018
  _: 1
927
- }, 8, ["title"])) : k("", !0),
928
- t.closable ? (s(), b(p(Y), {
1019
+ }, 8, ["title"])) : T("", !0),
1020
+ e.closable ? (n(), k(m(I), {
929
1021
  key: 1,
930
1022
  "aria-label": "关闭",
931
1023
  class: "yee-modal__header-action",
932
1024
  size: "small",
933
1025
  type: "text",
934
- onClick: L
1026
+ onClick: Y
935
1027
  }, {
936
- default: f(() => [
937
- I(P)
1028
+ default: p(() => [
1029
+ H(V)
938
1030
  ]),
939
1031
  _: 1
940
- })) : k("", !0)
1032
+ })) : T("", !0)
941
1033
  ])
942
1034
  ])
943
1035
  ]),
@@ -945,16 +1037,16 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
945
1037
  } : void 0
946
1038
  ]), 1040, ["centered", "class", "destroy-on-close", "keyboard", "mask-closable", "open", "style", "width", "wrap-props"]));
947
1039
  }
948
- }), go = /* @__PURE__ */ N(Xt, [["__scopeId", "data-v-2419e7df"]]), Zt = { class: "yee-page__heading" }, eo = {
1040
+ }), xo = /* @__PURE__ */ U(oo, [["__scopeId", "data-v-2419e7df"]]), lo = { class: "yee-page__heading" }, ao = {
949
1041
  key: 0,
950
1042
  class: "yee-page__title"
951
- }, to = {
1043
+ }, so = {
952
1044
  key: 0,
953
1045
  class: "yee-page__description"
954
- }, oo = {
1046
+ }, no = {
955
1047
  key: 0,
956
1048
  class: "yee-page__extra"
957
- }, ao = /* @__PURE__ */ j({
1049
+ }, io = /* @__PURE__ */ L({
958
1050
  name: "YeePage",
959
1051
  __name: "YeePage",
960
1052
  props: {
@@ -966,44 +1058,44 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
966
1058
  heightOffset: { default: 0 },
967
1059
  title: {}
968
1060
  },
969
- setup(l) {
970
- const e = l, t = se(), i = r(() => !!(e.description || e.title || t.description || t.extra || t.title)), v = r(() => ({
971
- "--yee-page-height-offset": typeof e.heightOffset == "number" ? `${e.heightOffset}px` : e.heightOffset
1061
+ setup(a) {
1062
+ const t = a, e = ie(), r = s(() => !!(t.description || t.title || e.description || e.extra || e.title)), y = s(() => ({
1063
+ "--yee-page-height-offset": typeof t.heightOffset == "number" ? `${t.heightOffset}px` : t.heightOffset
972
1064
  }));
973
- return (n, _) => (s(), S("section", {
974
- class: X(["yee-page", { "yee-page--auto-height": l.autoContentHeight }]),
975
- style: ee(v.value)
1065
+ return (i, b) => (n(), B("section", {
1066
+ class: te(["yee-page", { "yee-page--auto-height": a.autoContentHeight }]),
1067
+ style: oe(y.value)
976
1068
  }, [
977
- i.value ? (s(), S("header", {
1069
+ r.value ? (n(), B("header", {
978
1070
  key: 0,
979
- class: X(["yee-page__header", l.headerClass])
1071
+ class: te(["yee-page__header", a.headerClass])
980
1072
  }, [
981
- w("div", Zt, [
982
- C(n.$slots, "title", {}, () => [
983
- l.title ? (s(), S("h1", eo, B(l.title), 1)) : k("", !0)
1073
+ w("div", lo, [
1074
+ x(i.$slots, "title", {}, () => [
1075
+ a.title ? (n(), B("h1", ao, P(a.title), 1)) : T("", !0)
984
1076
  ], !0),
985
- C(n.$slots, "description", {}, () => [
986
- l.description ? (s(), S("p", to, B(l.description), 1)) : k("", !0)
1077
+ x(i.$slots, "description", {}, () => [
1078
+ a.description ? (n(), B("p", so, P(a.description), 1)) : T("", !0)
987
1079
  ], !0)
988
1080
  ]),
989
- n.$slots.extra ? (s(), S("div", oo, [
990
- C(n.$slots, "extra", {}, void 0, !0)
991
- ])) : k("", !0)
992
- ], 2)) : k("", !0),
1081
+ i.$slots.extra ? (n(), B("div", no, [
1082
+ x(i.$slots, "extra", {}, void 0, !0)
1083
+ ])) : T("", !0)
1084
+ ], 2)) : T("", !0),
993
1085
  w("main", {
994
- class: X(["yee-page__content", l.contentClass])
1086
+ class: te(["yee-page__content", a.contentClass])
995
1087
  }, [
996
- C(n.$slots, "default", {}, void 0, !0)
1088
+ x(i.$slots, "default", {}, void 0, !0)
997
1089
  ], 2),
998
- n.$slots.footer ? (s(), S("footer", {
1090
+ i.$slots.footer ? (n(), B("footer", {
999
1091
  key: 1,
1000
- class: X(["yee-page__footer", l.footerClass])
1092
+ class: te(["yee-page__footer", a.footerClass])
1001
1093
  }, [
1002
- C(n.$slots, "footer", {}, void 0, !0)
1003
- ], 2)) : k("", !0)
1094
+ x(i.$slots, "footer", {}, void 0, !0)
1095
+ ], 2)) : T("", !0)
1004
1096
  ], 6));
1005
1097
  }
1006
- }), bo = /* @__PURE__ */ N(ao, [["__scopeId", "data-v-23464940"]]), lo = { class: "yee-select__option-label" }, so = /* @__PURE__ */ j({
1098
+ }), wo = /* @__PURE__ */ U(io, [["__scopeId", "data-v-23464940"]]), ro = { class: "yee-select__option-label" }, uo = /* @__PURE__ */ L({
1007
1099
  inheritAttrs: !1,
1008
1100
  name: "YeeSelect",
1009
1101
  __name: "YeeSelect",
@@ -1015,106 +1107,106 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
1015
1107
  valueModifiers: {}
1016
1108
  }),
1017
1109
  emits: ["update:value"],
1018
- setup(l) {
1019
- const e = l, t = ue(l, "value"), i = _e(), v = se(), n = r(() => ({
1020
- label: e.fieldNames?.label ?? "label",
1021
- options: e.fieldNames?.options ?? "options",
1022
- value: e.fieldNames?.value ?? "value"
1023
- })), _ = r(() => i.class), T = r(() => i.style), F = r(() => {
1110
+ setup(a) {
1111
+ const t = a, e = de(a, "value"), r = ke(), y = ie(), i = s(() => ({
1112
+ label: t.fieldNames?.label ?? "label",
1113
+ options: t.fieldNames?.options ?? "options",
1114
+ value: t.fieldNames?.value ?? "value"
1115
+ })), b = s(() => r.class), h = s(() => r.style), F = s(() => {
1024
1116
  const o = {};
1025
- for (const [d, c] of Object.entries(i))
1026
- d !== "class" && d !== "style" && (o[d] = c);
1117
+ for (const [c, d] of Object.entries(r))
1118
+ c !== "class" && c !== "style" && (o[c] = d);
1027
1119
  return o;
1028
- }), V = r(() => !v.default && !v.option);
1120
+ }), S = s(() => !y.default && !y.option);
1029
1121
  function $(o) {
1030
1122
  return typeof o == "number" || typeof o == "string" ? String(o) : "";
1031
1123
  }
1032
- function g(o, d) {
1124
+ function C(o, c) {
1033
1125
  if (o)
1034
- for (const c of o) {
1035
- const R = c[n.value.options], E = g(R, d);
1036
- if (E) return E;
1037
- const P = c[n.value.value];
1038
- if (P === d || String(P) === String(d)) return c;
1126
+ for (const d of o) {
1127
+ const E = d[i.value.options], R = C(E, c);
1128
+ if (R) return R;
1129
+ const V = d[i.value.value];
1130
+ if (V === c || String(V) === String(c)) return d;
1039
1131
  }
1040
1132
  }
1041
- function y(o) {
1042
- return o ? $(o[n.value.label]) || $(o.title) || $(o[n.value.value]) : "";
1133
+ function g(o) {
1134
+ return o ? $(o[i.value.label]) || $(o.title) || $(o[i.value.value]) : "";
1043
1135
  }
1044
- const u = r(() => {
1045
- const o = t.value;
1136
+ const u = s(() => {
1137
+ const o = e.value;
1046
1138
  if (!(o == null || o === ""))
1047
- return Array.isArray(o) ? o.map((d) => y(g(e.options, d)) || $(d)).filter(Boolean).join("、") || void 0 : y(g(e.options, o)) || $(o) || void 0;
1139
+ return Array.isArray(o) ? o.map((c) => g(C(t.options, c)) || $(c)).filter(Boolean).join("、") || void 0 : g(C(t.options, o)) || $(o) || void 0;
1048
1140
  });
1049
- function m(o) {
1050
- return y(o);
1141
+ function f(o) {
1142
+ return g(o);
1051
1143
  }
1052
- return (o, d) => (s(), b(p(Z), { title: u.value }, {
1053
- default: f(() => [
1144
+ return (o, c) => (n(), k(m(X), { title: u.value }, {
1145
+ default: p(() => [
1054
1146
  w("div", {
1055
- class: X(["yee-select", _.value]),
1056
- style: ee(T.value)
1147
+ class: te(["yee-select", b.value]),
1148
+ style: oe(h.value)
1057
1149
  }, [
1058
- V.value ? (s(), b(p(le), M({
1150
+ S.value ? (n(), k(m(ne), A({
1059
1151
  key: 0,
1060
- value: t.value,
1061
- "onUpdate:value": d[0] || (d[0] = (c) => t.value = c)
1152
+ value: e.value,
1153
+ "onUpdate:value": c[0] || (c[0] = (d) => e.value = d)
1062
1154
  }, F.value, {
1063
- "field-names": n.value,
1064
- options: l.options
1155
+ "field-names": i.value,
1156
+ options: a.options
1065
1157
  }), {
1066
- option: f((c) => [
1067
- I(p(Z), {
1068
- title: m(c),
1158
+ option: p((d) => [
1159
+ H(m(X), {
1160
+ title: f(d),
1069
1161
  placement: "left"
1070
1162
  }, {
1071
- default: f(() => [
1072
- w("span", lo, B(m(c)), 1)
1163
+ default: p(() => [
1164
+ w("span", ro, P(f(d)), 1)
1073
1165
  ]),
1074
1166
  _: 2
1075
1167
  }, 1032, ["title"])
1076
1168
  ]),
1077
1169
  _: 1
1078
- }, 16, ["value", "field-names", "options"])) : (s(), b(p(le), M({
1170
+ }, 16, ["value", "field-names", "options"])) : (n(), k(m(ne), A({
1079
1171
  key: 1,
1080
- value: t.value,
1081
- "onUpdate:value": d[1] || (d[1] = (c) => t.value = c)
1172
+ value: e.value,
1173
+ "onUpdate:value": c[1] || (c[1] = (d) => e.value = d)
1082
1174
  }, F.value, {
1083
- "field-names": n.value,
1084
- options: l.options
1085
- }), ae({ _: 2 }, [
1175
+ "field-names": i.value,
1176
+ options: a.options
1177
+ }), se({ _: 2 }, [
1086
1178
  o.$slots.default ? {
1087
1179
  name: "default",
1088
- fn: f((c) => [
1089
- C(o.$slots, "default", U(H(c)), void 0, !0)
1180
+ fn: p((d) => [
1181
+ x(o.$slots, "default", G(q(d)), void 0, !0)
1090
1182
  ]),
1091
1183
  key: "0"
1092
1184
  } : void 0,
1093
1185
  o.$slots.option ? {
1094
1186
  name: "option",
1095
- fn: f((c) => [
1096
- C(o.$slots, "option", U(H(c)), void 0, !0)
1187
+ fn: p((d) => [
1188
+ x(o.$slots, "option", G(q(d)), void 0, !0)
1097
1189
  ]),
1098
1190
  key: "1"
1099
1191
  } : void 0,
1100
1192
  o.$slots.tagRender ? {
1101
1193
  name: "tagRender",
1102
- fn: f((c) => [
1103
- C(o.$slots, "tagRender", U(H(c)), void 0, !0)
1194
+ fn: p((d) => [
1195
+ x(o.$slots, "tagRender", G(q(d)), void 0, !0)
1104
1196
  ]),
1105
1197
  key: "2"
1106
1198
  } : void 0,
1107
1199
  o.$slots.dropdownRender ? {
1108
1200
  name: "dropdownRender",
1109
- fn: f((c) => [
1110
- C(o.$slots, "dropdownRender", U(H(c)), void 0, !0)
1201
+ fn: p((d) => [
1202
+ x(o.$slots, "dropdownRender", G(q(d)), void 0, !0)
1111
1203
  ]),
1112
1204
  key: "3"
1113
1205
  } : void 0,
1114
1206
  o.$slots.notFoundContent ? {
1115
1207
  name: "notFoundContent",
1116
- fn: f((c) => [
1117
- C(o.$slots, "notFoundContent", U(H(c)), void 0, !0)
1208
+ fn: p((d) => [
1209
+ x(o.$slots, "notFoundContent", G(q(d)), void 0, !0)
1118
1210
  ]),
1119
1211
  key: "4"
1120
1212
  } : void 0
@@ -1124,23 +1216,24 @@ const jt = { class: "yee-modal__header" }, Lt = ["id"], Ut = { class: "yee-modal
1124
1216
  _: 3
1125
1217
  }, 8, ["title"]));
1126
1218
  }
1127
- }), _o = /* @__PURE__ */ N(so, [["__scopeId", "data-v-64282659"]]);
1219
+ }), $o = /* @__PURE__ */ U(uo, [["__scopeId", "data-v-64282659"]]);
1128
1220
  export {
1129
- mo as PlatformConfigProvider,
1130
- vo as YeeDescriptions,
1131
- yo as YeeFileUpload,
1132
- Ot as YeeForm,
1133
- Rt as YeeFormApi,
1134
- zt as YeeGridApi,
1135
- go as YeeModal,
1136
- bo as YeePage,
1137
- _o as YeeSelect,
1138
- Co as darkThemeTokens,
1139
- $o as lightThemeTokens,
1140
- fe as platformThemeKey,
1141
- Qe as resolvePlatformTheme,
1142
- We as toAntDesignTheme,
1143
- Je as toPlatformCssVariables,
1144
- po as usePlatformTheme,
1145
- ho as useYeeGrid
1221
+ go as PlatformConfigProvider,
1222
+ bo as YeeDescriptions,
1223
+ _o as YeeEllipsisText,
1224
+ Co as YeeFileUpload,
1225
+ Mt as YeeForm,
1226
+ Yt as YeeFormApi,
1227
+ At as YeeGridApi,
1228
+ xo as YeeModal,
1229
+ wo as YeePage,
1230
+ $o as YeeSelect,
1231
+ Bo as darkThemeTokens,
1232
+ Fo as lightThemeTokens,
1233
+ re as platformThemeKey,
1234
+ Je as resolvePlatformTheme,
1235
+ Xe as toAntDesignTheme,
1236
+ Ze as toPlatformCssVariables,
1237
+ ho as usePlatformTheme,
1238
+ ko as useYeeGrid
1146
1239
  };