fantasia-ui 0.2.2 → 0.2.3

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.
Files changed (70) hide show
  1. package/README.en.md +14 -1
  2. package/README.md +16 -3
  3. package/dist/fantasia-ui.css +1 -0
  4. package/dist/fantasia-ui.es.js +620 -956
  5. package/dist/fantasia-ui.umd.js +1 -2
  6. package/package.json +36 -15
  7. package/dist/assets/index.d.ts +0 -5
  8. package/dist/components/index.d.ts +0 -27
  9. package/dist/components/modules/FAffix.vue.d.ts +0 -21
  10. package/dist/components/modules/FAvatar.vue.d.ts +0 -6
  11. package/dist/components/modules/FBadge.vue.d.ts +0 -24
  12. package/dist/components/modules/FBreadcrumb.vue.d.ts +0 -24
  13. package/dist/components/modules/FButton.vue.d.ts +0 -21
  14. package/dist/components/modules/FCard.vue.d.ts +0 -31
  15. package/dist/components/modules/FCol.vue.d.ts +0 -22
  16. package/dist/components/modules/FContainer.vue.d.ts +0 -20
  17. package/dist/components/modules/FDivider.vue.d.ts +0 -6
  18. package/dist/components/modules/FDropdown.vue.d.ts +0 -35
  19. package/dist/components/modules/FIcon.vue.d.ts +0 -20
  20. package/dist/components/modules/FImage.vue.d.ts +0 -23
  21. package/dist/components/modules/FInput.vue.d.ts +0 -27
  22. package/dist/components/modules/FLink.vue.d.ts +0 -21
  23. package/dist/components/modules/FLoading.vue.d.ts +0 -6
  24. package/dist/components/modules/FPagination.vue.d.ts +0 -16
  25. package/dist/components/modules/FProgress.vue.d.ts +0 -6
  26. package/dist/components/modules/FRate.vue.d.ts +0 -22
  27. package/dist/components/modules/FRow.vue.d.ts +0 -24
  28. package/dist/components/modules/FSelect.vue.d.ts +0 -17
  29. package/dist/components/modules/FSpace.vue.d.ts +0 -9
  30. package/dist/components/modules/FTabs.vue.d.ts +0 -24
  31. package/dist/components/modules/FTag.vue.d.ts +0 -25
  32. package/dist/components/modules/FText.vue.d.ts +0 -22
  33. package/dist/components/modules/FTooltip.vue.d.ts +0 -31
  34. package/dist/components/modules/FTypography.vue.d.ts +0 -22
  35. package/dist/index.css +0 -1
  36. package/dist/index.d.ts +0 -3
  37. package/dist/types/components/modules/base.d.ts +0 -7
  38. package/dist/types/components/modules/f-affix.d.ts +0 -5
  39. package/dist/types/components/modules/f-avatar.d.ts +0 -10
  40. package/dist/types/components/modules/f-badge.d.ts +0 -9
  41. package/dist/types/components/modules/f-breadcrumb.d.ts +0 -10
  42. package/dist/types/components/modules/f-button.d.ts +0 -9
  43. package/dist/types/components/modules/f-card.d.ts +0 -6
  44. package/dist/types/components/modules/f-col.d.ts +0 -15
  45. package/dist/types/components/modules/f-container.d.ts +0 -4
  46. package/dist/types/components/modules/f-dialog.d.ts +0 -6
  47. package/dist/types/components/modules/f-divider.d.ts +0 -8
  48. package/dist/types/components/modules/f-dropdown.d.ts +0 -17
  49. package/dist/types/components/modules/f-form.d.ts +0 -83
  50. package/dist/types/components/modules/f-icon.d.ts +0 -5
  51. package/dist/types/components/modules/f-image.d.ts +0 -8
  52. package/dist/types/components/modules/f-input.d.ts +0 -9
  53. package/dist/types/components/modules/f-link.d.ts +0 -8
  54. package/dist/types/components/modules/f-loading.d.ts +0 -6
  55. package/dist/types/components/modules/f-menu.d.ts +0 -13
  56. package/dist/types/components/modules/f-pagination.d.ts +0 -6
  57. package/dist/types/components/modules/f-progress.d.ts +0 -7
  58. package/dist/types/components/modules/f-rate.d.ts +0 -12
  59. package/dist/types/components/modules/f-row.d.ts +0 -9
  60. package/dist/types/components/modules/f-slider-captcha.d.ts +0 -16
  61. package/dist/types/components/modules/f-space.d.ts +0 -11
  62. package/dist/types/components/modules/f-table.d.ts +0 -12
  63. package/dist/types/components/modules/f-tabs.d.ts +0 -12
  64. package/dist/types/components/modules/f-tag.d.ts +0 -10
  65. package/dist/types/components/modules/f-tagsview.d.ts +0 -7
  66. package/dist/types/components/modules/f-text.d.ts +0 -10
  67. package/dist/types/components/modules/f-toolbar.d.ts +0 -26
  68. package/dist/types/components/modules/f-tooltip.d.ts +0 -10
  69. package/dist/types/components/modules/f-upload.d.ts +0 -11
  70. package/dist/types/models/index.d.ts +0 -26
@@ -1,7 +1,37 @@
1
- import { defineComponent as m, computed as _, createElementBlock as r, openBlock as l, normalizeStyle as B, renderSlot as g, ref as A, watch as te, resolveComponent as P, createVNode as z, withDirectives as oe, Transition as Q, withCtx as S, createCommentVNode as b, unref as T, createElementVNode as h, vShow as ae, mergeModels as G, useModel as Z, normalizeClass as x, readonly as se, vModelDynamic as fe, Fragment as R, renderList as U, toDisplayString as V, createBlock as D, getCurrentScope as ve, onScopeDispose as me, toValue as K, nextTick as re, onUnmounted as ie, Teleport as ce, withModifiers as de, resolveDynamicComponent as Y, createTextVNode as he, TransitionGroup as _e, useSlots as ge, defineAsyncComponent as ye } from "vue";
2
- const we = (s, e, t) => {
3
- const o = s[e];
4
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, c) => {
1
+ var ve = Object.defineProperty, he = Object.defineProperties;
2
+ var ge = Object.getOwnPropertyDescriptors;
3
+ var oe = Object.getOwnPropertySymbols;
4
+ var ye = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
5
+ var se = (r, e, t) => e in r ? ve(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ae = (r, e) => {
6
+ for (var t in e || (e = {}))
7
+ ye.call(e, t) && se(r, t, e[t]);
8
+ if (oe)
9
+ for (var t of oe(e))
10
+ be.call(e, t) && se(r, t, e[t]);
11
+ return r;
12
+ }, ne = (r, e) => he(r, ge(e));
13
+ var le = (r, e, t) => new Promise((s, o) => {
14
+ var c = (a) => {
15
+ try {
16
+ l(t.next(a));
17
+ } catch (_) {
18
+ o(_);
19
+ }
20
+ }, d = (a) => {
21
+ try {
22
+ l(t.throw(a));
23
+ } catch (_) {
24
+ o(_);
25
+ }
26
+ }, l = (a) => a.done ? s(a.value) : Promise.resolve(a.value).then(c, d);
27
+ l((t = t.apply(r, e)).next());
28
+ });
29
+ import { defineComponent as y, computed as v, createElementBlock as i, openBlock as n, normalizeStyle as I, unref as u, renderSlot as h, ref as R, watch as ie, resolveComponent as O, createVNode as T, withDirectives as Z, Transition as K, withCtx as B, createCommentVNode as k, createElementVNode as z, vShow as ce, mergeModels as G, useModel as Q, normalizeClass as C, readonly as re, vModelDynamic as $e, Fragment as D, renderList as U, toDisplayString as A, createBlock as L, nextTick as de, onUnmounted as ue, Teleport as fe, withModifiers as pe, resolveDynamicComponent as q, createTextVNode as we, TransitionGroup as ke, useSlots as Fe, defineAsyncComponent as Ce } from "vue";
30
+ import { Search as ze, StarOutline as xe, StarHalf as Te, Star as Se, ChevronDownOutline as Me, ChevronBackOutline as Be, EllipsisHorizontal as Ie, ChevronForwardOutline as Ve, CloseCircle as Re, Close as Ae, Person as De } from "@vicons/ionicons5";
31
+ import { useEventListener as Le } from "@vueuse/core";
32
+ const Pe = (r, e, t) => {
33
+ const s = r[e];
34
+ return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((o, c) => {
5
35
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
6
36
  c.bind(
7
37
  null,
@@ -11,38 +41,38 @@ const we = (s, e, t) => {
11
41
  )
12
42
  );
13
43
  });
14
- }, $e = /* @__PURE__ */ m({
44
+ }, We = /* @__PURE__ */ y({
15
45
  __name: "FIcon",
16
46
  props: {
17
47
  color: {},
18
48
  size: { default: "1em" }
19
49
  },
20
- setup(s) {
21
- const e = s, t = _(() => ({
50
+ setup(r) {
51
+ const e = r, t = v(() => ({
22
52
  width: typeof e.size == "number" ? `${e.size}px` : e.size,
23
53
  height: typeof e.size == "number" ? `${e.size}px` : e.size,
24
54
  color: e.color
25
55
  }));
26
- return (o, n) => (l(), r("span", {
56
+ return (s, o) => (n(), i("span", {
27
57
  role: "img",
28
58
  class: "f-icon",
29
- style: B(t.value)
59
+ style: I(u(t))
30
60
  }, [
31
- g(o.$slots, "default", {}, void 0, !0)
61
+ h(s.$slots, "default", {}, void 0, !0)
32
62
  ], 4));
33
63
  }
34
- }), w = (s, e) => {
35
- const t = s.__vccOpts || s;
36
- for (const [o, n] of e)
37
- t[o] = n;
64
+ }), b = (r, e) => {
65
+ const t = r.__vccOpts || r;
66
+ for (const [s, o] of e)
67
+ t[s] = o;
38
68
  return t;
39
- }, _o = /* @__PURE__ */ w($e, [["__scopeId", "data-v-6fc51076"]]), be = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1780285609860'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12961'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M894.4%20281.504a39.36%2039.36%200%200%200-27.104-11.808l-293.888-10.976-22.016%2046.88%2030.592%2087.2-55.2%2099.008%2022.4%2079.904%2056%2068.48%2081.024-70.496c7.808-6.88%2020.288-6.496%2027.104%201.216l103.904%20106.4c7.296%207.296%206.88%2019.2-0.928%2026.112a18.944%2018.944%200%200%201-13.76%204.896l-284.8-10.624-14.24%2038.72%2015.52%2034.592%20327.488%2011.808c21.504%200.8%2039.616-15.104%2040.096-35.52l18.208-439.296a34.368%2034.368%200%200%200-10.4-26.496zM684.096%20483.2c-32.32-1.184-57.28-26.88-56-57.088%201.28-30.592%2028.416-54.208%2060.288-52.992%2031.904%201.184%2057.312%2026.88%2056%2057.088-1.184%2030.208-28.384%2054.304-60.288%2052.992z%20m-211.104%20253.6l9.92-40.8-231.424%2015.104c-10.784%200.8-19.776-6.496-20.672-16.704a17.856%2017.856%200%200%201%204.672-13.504l171.52-186.272a18.048%2018.048%200%200%201%2014.208-6.112c5.184%200%2010.272%201.984%2014.176%205.696l57.28%2056.704-24.576-60.32%2044-104.288L472%20302.72l16.384-48.096-315.392%2020.8c-21.504%201.184-37.504%2018.784-36.192%2039.072l31.904%20439.424c0.384%209.792%205.184%2018.688%2013.408%2024.896%207.776%206.496%2017.696%209.792%2028%208.992l281.792-18.304-18.88-32.704z'%20p-id='12962'%3e%3c/path%3e%3c/svg%3e", ke = { class: "f-image" }, xe = {
69
+ }, ro = /* @__PURE__ */ b(We, [["__scopeId", "data-v-524b7dbb"]]), He = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1780285609860'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12961'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M894.4%20281.504a39.36%2039.36%200%200%200-27.104-11.808l-293.888-10.976-22.016%2046.88%2030.592%2087.2-55.2%2099.008%2022.4%2079.904%2056%2068.48%2081.024-70.496c7.808-6.88%2020.288-6.496%2027.104%201.216l103.904%20106.4c7.296%207.296%206.88%2019.2-0.928%2026.112a18.944%2018.944%200%200%201-13.76%204.896l-284.8-10.624-14.24%2038.72%2015.52%2034.592%20327.488%2011.808c21.504%200.8%2039.616-15.104%2040.096-35.52l18.208-439.296a34.368%2034.368%200%200%200-10.4-26.496zM684.096%20483.2c-32.32-1.184-57.28-26.88-56-57.088%201.28-30.592%2028.416-54.208%2060.288-52.992%2031.904%201.184%2057.312%2026.88%2056%2057.088-1.184%2030.208-28.384%2054.304-60.288%2052.992z%20m-211.104%20253.6l9.92-40.8-231.424%2015.104c-10.784%200.8-19.776-6.496-20.672-16.704a17.856%2017.856%200%200%201%204.672-13.504l171.52-186.272a18.048%2018.048%200%200%201%2014.208-6.112c5.184%200%2010.272%201.984%2014.176%205.696l57.28%2056.704-24.576-60.32%2044-104.288L472%20302.72l16.384-48.096-315.392%2020.8c-21.504%201.184-37.504%2018.784-36.192%2039.072l31.904%20439.424c0.384%209.792%205.184%2018.688%2013.408%2024.896%207.776%206.496%2017.696%209.792%2028%208.992l281.792-18.304-18.88-32.704z'%20p-id='12962'%3e%3c/path%3e%3c/svg%3e", Ee = { class: "f-image" }, Oe = {
40
70
  key: 0,
41
71
  class: "f-image__placeholder"
42
- }, Ce = {
72
+ }, je = {
43
73
  key: 0,
44
74
  class: "f-image__error"
45
- }, Fe = ["src", "loading"], ze = /* @__PURE__ */ m({
75
+ }, Ne = ["src", "loading"], Ge = /* @__PURE__ */ y({
46
76
  __name: "FImage",
47
77
  props: {
48
78
  src: {},
@@ -50,380 +80,52 @@ const we = (s, e, t) => {
50
80
  fit: { default: "cover" },
51
81
  lazy: { type: Boolean, default: !0 }
52
82
  },
53
- setup(s) {
54
- const e = s, t = A("loading");
55
- te(() => e.src, () => {
83
+ setup(r) {
84
+ const e = r, t = R("loading");
85
+ ie(() => e.src, () => {
56
86
  t.value = "loading";
57
87
  }, { immediate: !1 });
58
- const o = () => t.value = "loaded", n = () => t.value = "error";
88
+ const s = () => t.value = "loaded", o = () => t.value = "error";
59
89
  return (c, d) => {
60
- const i = P("f-loading"), a = P("f-icon");
61
- return l(), r("div", ke, [
62
- z(Q, { name: "fade" }, {
63
- default: S(() => [
64
- t.value === "loading" ? (l(), r("div", xe, [
65
- z(i, { type: "classic first" })
66
- ])) : b("", !0)
90
+ const l = O("f-loading"), a = O("f-icon");
91
+ return n(), i("div", Ee, [
92
+ T(K, { name: "fade" }, {
93
+ default: B(() => [
94
+ u(t) === "loading" ? (n(), i("div", Oe, [
95
+ T(l, { type: "classic first" })
96
+ ])) : k("", !0)
67
97
  ]),
68
98
  _: 1
69
99
  }),
70
- z(Q, { name: "fade" }, {
71
- default: S(() => [
72
- t.value === "error" ? (l(), r("div", Ce, [
73
- g(c.$slots, "error", {}, () => [
74
- z(a, { size: "48px" }, {
75
- default: S(() => [
76
- z(T(be))
100
+ T(K, { name: "fade" }, {
101
+ default: B(() => [
102
+ u(t) === "error" ? (n(), i("div", je, [
103
+ h(c.$slots, "error", {}, () => [
104
+ T(a, { size: "48px" }, {
105
+ default: B(() => [
106
+ T(u(He))
77
107
  ]),
78
108
  _: 1
79
109
  })
80
110
  ], !0)
81
- ])) : b("", !0)
111
+ ])) : k("", !0)
82
112
  ]),
83
113
  _: 3
84
114
  }),
85
- oe(h("img", {
115
+ Z(z("img", {
86
116
  src: e.src,
87
117
  loading: c.lazy ? "lazy" : "eager",
88
- style: B({ objectFit: e.fit }),
118
+ style: I({ objectFit: e.fit }),
89
119
  class: "f-image__img",
90
- onLoad: o,
91
- onError: n
92
- }, null, 44, Fe), [
93
- [ae, t.value === "loaded"]
120
+ onLoad: s,
121
+ onError: o
122
+ }, null, 44, Ne), [
123
+ [ce, u(t) === "loaded"]
94
124
  ])
95
125
  ]);
96
126
  };
97
127
  }
98
- }), go = /* @__PURE__ */ w(ze, [["__scopeId", "data-v-aaa14cc8"]]), Me = {
99
- xmlns: "http://www.w3.org/2000/svg",
100
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
101
- viewBox: "0 0 512 512"
102
- }, Se = m({
103
- name: "ChevronBackOutline",
104
- render: function(e, t) {
105
- return l(), r(
106
- "svg",
107
- Me,
108
- t[0] || (t[0] = [
109
- h(
110
- "path",
111
- {
112
- fill: "none",
113
- stroke: "currentColor",
114
- "stroke-linecap": "round",
115
- "stroke-linejoin": "round",
116
- "stroke-width": "48",
117
- d: "M328 112L184 256l144 144"
118
- },
119
- null,
120
- -1
121
- /* HOISTED */
122
- )
123
- ])
124
- );
125
- }
126
- }), Be = {
127
- xmlns: "http://www.w3.org/2000/svg",
128
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
129
- viewBox: "0 0 512 512"
130
- }, Te = m({
131
- name: "ChevronDownOutline",
132
- render: function(e, t) {
133
- return l(), r(
134
- "svg",
135
- Be,
136
- t[0] || (t[0] = [
137
- h(
138
- "path",
139
- {
140
- fill: "none",
141
- stroke: "currentColor",
142
- "stroke-linecap": "round",
143
- "stroke-linejoin": "round",
144
- "stroke-width": "48",
145
- d: "M112 184l144 144l144-144"
146
- },
147
- null,
148
- -1
149
- /* HOISTED */
150
- )
151
- ])
152
- );
153
- }
154
- }), Ie = {
155
- xmlns: "http://www.w3.org/2000/svg",
156
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
157
- viewBox: "0 0 512 512"
158
- }, Le = m({
159
- name: "ChevronForwardOutline",
160
- render: function(e, t) {
161
- return l(), r(
162
- "svg",
163
- Ie,
164
- t[0] || (t[0] = [
165
- h(
166
- "path",
167
- {
168
- fill: "none",
169
- stroke: "currentColor",
170
- "stroke-linecap": "round",
171
- "stroke-linejoin": "round",
172
- "stroke-width": "48",
173
- d: "M184 112l144 144l-144 144"
174
- },
175
- null,
176
- -1
177
- /* HOISTED */
178
- )
179
- ])
180
- );
181
- }
182
- }), Ae = {
183
- xmlns: "http://www.w3.org/2000/svg",
184
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
185
- viewBox: "0 0 512 512"
186
- }, Ve = m({
187
- name: "Close",
188
- render: function(e, t) {
189
- return l(), r(
190
- "svg",
191
- Ae,
192
- t[0] || (t[0] = [
193
- h(
194
- "path",
195
- {
196
- d: "M289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34z",
197
- fill: "currentColor"
198
- },
199
- null,
200
- -1
201
- /* HOISTED */
202
- )
203
- ])
204
- );
205
- }
206
- }), Re = {
207
- xmlns: "http://www.w3.org/2000/svg",
208
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
209
- viewBox: "0 0 512 512"
210
- }, De = m({
211
- name: "CloseCircle",
212
- render: function(e, t) {
213
- return l(), r(
214
- "svg",
215
- Re,
216
- t[0] || (t[0] = [
217
- h(
218
- "path",
219
- {
220
- d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208s208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 1 1-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 0 1-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0 1 22.62-22.62L256 233.37l52.69-52.68a16 16 0 0 1 22.62 22.62L278.63 256z",
221
- fill: "currentColor"
222
- },
223
- null,
224
- -1
225
- /* HOISTED */
226
- )
227
- ])
228
- );
229
- }
230
- }), He = {
231
- xmlns: "http://www.w3.org/2000/svg",
232
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
233
- viewBox: "0 0 512 512"
234
- }, je = m({
235
- name: "EllipsisHorizontal",
236
- render: function(e, t) {
237
- return l(), r(
238
- "svg",
239
- He,
240
- t[0] || (t[0] = [
241
- h(
242
- "circle",
243
- {
244
- cx: "256",
245
- cy: "256",
246
- r: "48",
247
- fill: "currentColor"
248
- },
249
- null,
250
- -1
251
- /* HOISTED */
252
- ),
253
- h(
254
- "circle",
255
- {
256
- cx: "416",
257
- cy: "256",
258
- r: "48",
259
- fill: "currentColor"
260
- },
261
- null,
262
- -1
263
- /* HOISTED */
264
- ),
265
- h(
266
- "circle",
267
- {
268
- cx: "96",
269
- cy: "256",
270
- r: "48",
271
- fill: "currentColor"
272
- },
273
- null,
274
- -1
275
- /* HOISTED */
276
- )
277
- ])
278
- );
279
- }
280
- }), Oe = {
281
- xmlns: "http://www.w3.org/2000/svg",
282
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
283
- viewBox: "0 0 512 512"
284
- }, We = m({
285
- name: "Person",
286
- render: function(e, t) {
287
- return l(), r(
288
- "svg",
289
- Oe,
290
- t[0] || (t[0] = [
291
- h(
292
- "path",
293
- {
294
- d: "M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38c-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6z",
295
- fill: "currentColor"
296
- },
297
- null,
298
- -1
299
- /* HOISTED */
300
- ),
301
- h(
302
- "path",
303
- {
304
- d: "M432 480H80a31 31 0 0 1-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75c1.94 10.73-.68 21.34-7.18 29.11A31 31 0 0 1 432 480z",
305
- fill: "currentColor"
306
- },
307
- null,
308
- -1
309
- /* HOISTED */
310
- )
311
- ])
312
- );
313
- }
314
- }), Pe = {
315
- xmlns: "http://www.w3.org/2000/svg",
316
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
317
- viewBox: "0 0 512 512"
318
- }, Ee = m({
319
- name: "Search",
320
- render: function(e, t) {
321
- return l(), r(
322
- "svg",
323
- Pe,
324
- t[0] || (t[0] = [
325
- h(
326
- "path",
327
- {
328
- d: "M456.69 421.39L362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8a124.95 124.95 0 0 1-124.8-124.8z",
329
- fill: "currentColor"
330
- },
331
- null,
332
- -1
333
- /* HOISTED */
334
- )
335
- ])
336
- );
337
- }
338
- }), Ne = {
339
- xmlns: "http://www.w3.org/2000/svg",
340
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
341
- viewBox: "0 0 512 512"
342
- }, Ge = m({
343
- name: "Star",
344
- render: function(e, t) {
345
- return l(), r(
346
- "svg",
347
- Ne,
348
- t[0] || (t[0] = [
349
- h(
350
- "path",
351
- {
352
- d: "M394 480a16 16 0 0 1-9.39-3L256 383.76L127.39 477a16 16 0 0 1-24.55-18.08L153 310.35L23 221.2a16 16 0 0 1 9-29.2h160.38l48.4-148.95a16 16 0 0 1 30.44 0l48.4 149H480a16 16 0 0 1 9.05 29.2L359 310.35l50.13 148.53A16 16 0 0 1 394 480z",
353
- fill: "currentColor"
354
- },
355
- null,
356
- -1
357
- /* HOISTED */
358
- )
359
- ])
360
- );
361
- }
362
- }), Ue = {
363
- xmlns: "http://www.w3.org/2000/svg",
364
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
365
- viewBox: "0 0 512 512"
366
- }, qe = m({
367
- name: "StarHalf",
368
- render: function(e, t) {
369
- return l(), r(
370
- "svg",
371
- Ue,
372
- t[0] || (t[0] = [
373
- h(
374
- "path",
375
- {
376
- d: "M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",
377
- fill: "none",
378
- stroke: "currentColor",
379
- "stroke-linejoin": "round",
380
- "stroke-width": "32"
381
- },
382
- null,
383
- -1
384
- /* HOISTED */
385
- ),
386
- h(
387
- "path",
388
- {
389
- d: "M256 48v316L118 464l54-160l-140-96h172l52-160z",
390
- fill: "currentColor"
391
- },
392
- null,
393
- -1
394
- /* HOISTED */
395
- )
396
- ])
397
- );
398
- }
399
- }), Xe = {
400
- xmlns: "http://www.w3.org/2000/svg",
401
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
402
- viewBox: "0 0 512 512"
403
- }, Ye = m({
404
- name: "StarOutline",
405
- render: function(e, t) {
406
- return l(), r(
407
- "svg",
408
- Xe,
409
- t[0] || (t[0] = [
410
- h(
411
- "path",
412
- {
413
- d: "M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",
414
- fill: "none",
415
- stroke: "currentColor",
416
- "stroke-linejoin": "round",
417
- "stroke-width": "32"
418
- },
419
- null,
420
- -1
421
- /* HOISTED */
422
- )
423
- ])
424
- );
425
- }
426
- }), Je = ["type", "placeholder", "disabled", "readonly", "name", "id"], Ke = /* @__PURE__ */ m({
128
+ }), io = /* @__PURE__ */ b(Ge, [["__scopeId", "data-v-2948108d"]]), Ue = ["type", "placeholder", "disabled", "readonly", "name", "id"], Xe = /* @__PURE__ */ y({
427
129
  __name: "FInput",
428
130
  props: /* @__PURE__ */ G({
429
131
  placeholder: { default: "输入..." },
@@ -437,82 +139,82 @@ const we = (s, e, t) => {
437
139
  modelModifiers: {}
438
140
  }),
439
141
  emits: /* @__PURE__ */ G(["input", "change", "focus", "blur"], ["update:modelValue"]),
440
- setup(s, { emit: e }) {
441
- const t = Z(s, "modelValue"), o = e, n = (a) => {
442
- const f = a.target.value;
443
- o("input", f);
142
+ setup(r, { emit: e }) {
143
+ const t = Q(r, "modelValue"), s = e, o = (a) => {
144
+ const _ = a.target.value;
145
+ s("input", _);
444
146
  }, c = (a) => {
445
- const f = a.target.value;
446
- o("change", f);
147
+ const _ = a.target.value;
148
+ s("change", _);
447
149
  }, d = (a) => {
448
- o("focus", a);
449
- }, i = (a) => {
450
- o("blur", a);
150
+ s("focus", a);
151
+ }, l = (a) => {
152
+ s("blur", a);
451
153
  };
452
- return (a, f) => {
453
- const u = P("f-icon");
454
- return l(), r("div", {
455
- class: x(["f-input", { "is-disabled": a.disabled, "is-readonly": "readonly" in a ? a.readonly : T(se) }])
154
+ return (a, _) => {
155
+ const f = O("f-icon");
156
+ return n(), i("div", {
157
+ class: C(["f-input", { "is-disabled": a.disabled, "is-readonly": "readonly" in a ? a.readonly : u(re) }])
456
158
  }, [
457
- z(u, { class: "f-input__icon" }, {
458
- default: S(() => [
459
- z(T(Ee))
159
+ T(f, { class: "f-input__icon" }, {
160
+ default: B(() => [
161
+ T(u(ze))
460
162
  ]),
461
163
  _: 1
462
164
  }),
463
- oe(h("input", {
165
+ Z(z("input", {
464
166
  class: "f-input__text",
465
- "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value = p),
167
+ "onUpdate:modelValue": _[0] || (_[0] = (p) => t.value = p),
466
168
  type: a.type,
467
169
  placeholder: a.placeholder,
468
170
  disabled: a.disabled,
469
- readonly: "readonly" in a ? a.readonly : T(se),
171
+ readonly: "readonly" in a ? a.readonly : u(re),
470
172
  name: a.name,
471
173
  id: a.id,
472
- onInput: n,
174
+ onInput: o,
473
175
  onChange: c,
474
176
  onFocus: d,
475
- onBlur: i
476
- }, null, 40, Je), [
477
- [fe, t.value]
177
+ onBlur: l
178
+ }, null, 40, Ue), [
179
+ [$e, t.value]
478
180
  ])
479
181
  ], 2);
480
182
  };
481
183
  }
482
- }), yo = /* @__PURE__ */ w(Ke, [["__scopeId", "data-v-6c6d7c63"]]), Qe = {
184
+ }), co = /* @__PURE__ */ b(Xe, [["__scopeId", "data-v-6c6d7c63"]]), Ye = {
483
185
  key: 0,
484
186
  class: "loop cubes"
485
- }, Ze = {
187
+ }, qe = {
486
188
  key: 2,
487
189
  class: "msg"
488
- }, et = /* @__PURE__ */ m({
190
+ }, Je = /* @__PURE__ */ y({
489
191
  __name: "FLoading",
490
192
  props: {
491
193
  type: { default: "dots" },
492
194
  text: {},
493
195
  mask: { type: Boolean, default: !1 }
494
196
  },
495
- setup(s) {
496
- const e = s;
497
- return (t, o) => (l(), r("div", {
498
- class: x(["flex-center-col size-full loading-container", { "global-mask": t.mask }])
197
+ setup(r) {
198
+ const e = r;
199
+ return (t, s) => (n(), i("div", {
200
+ class: C(["flex-center-col size-full loading-container", { "global-mask": t.mask }])
499
201
  }, [
500
- t.type === "cubes" ? (l(), r("div", Qe, [
501
- (l(), r(R, null, U(6, (n) => h("div", {
202
+ t.type === "cubes" ? (n(), i("div", Ye, [
203
+ (n(), i(D, null, U(6, (o) => z("div", {
502
204
  class: "item cubes",
503
- key: n
205
+ key: o
504
206
  })), 64))
505
- ])) : (l(), r("div", {
207
+ ])) : (n(), i("div", {
506
208
  key: 1,
507
- class: x(["loader", t.type])
209
+ class: C(["loader", t.type])
508
210
  }, null, 2)),
509
- e.text ? (l(), r("p", Ze, V(e.text), 1)) : b("", !0)
211
+ e.text ? (n(), i("p", qe, A(e.text), 1)) : k("", !0)
510
212
  ], 2));
511
213
  }
512
- }), wo = /* @__PURE__ */ w(et, [["__scopeId", "data-v-26005e98"]]), tt = ["onMousemove"], ot = {
214
+ }), uo = /* @__PURE__ */ b(Je, [["__scopeId", "data-v-26005e98"]]), Ke = ["onMousemove"], Qe = {
513
215
  key: 0,
514
216
  class: "f-rate__score"
515
- }, nt = /* @__PURE__ */ m({
217
+ }, Ze = /* @__PURE__ */ y({
516
218
  __name: "FRate",
517
219
  props: /* @__PURE__ */ G({
518
220
  modelValue: {},
@@ -529,119 +231,62 @@ const we = (s, e, t) => {
529
231
  modelModifiers: {}
530
232
  }),
531
233
  emits: /* @__PURE__ */ G(["change"], ["update:modelValue"]),
532
- setup(s, { emit: e }) {
533
- const t = Z(s, "modelValue"), o = s, n = e, c = A(null), d = _(() => c.value ?? t.value), i = _(
534
- () => o.scoreTemplate.replace("{value}", String(t.value))
535
- ), a = _(
536
- () => o.size === "normal" ? 16 : o.size === "small" ? 12 : 20
537
- ), f = (k) => {
538
- const I = d.value;
539
- return I >= k ? "full" : o.allowHalf && I >= k - 0.5 ? "half" : "empty";
540
- }, u = (k) => f(k) === "full" ? o.voidColor : o.color, p = (k, I) => {
541
- if (!o.readonly)
542
- if (o.allowHalf) {
543
- const L = k.currentTarget, { left: F, width: O } = L.getBoundingClientRect();
544
- c.value = (k.clientX - F) / O < 0.5 ? I - 0.5 : I;
234
+ setup(r, { emit: e }) {
235
+ const t = Q(r, "modelValue"), s = r, o = e, c = R(null), d = v(() => {
236
+ var $;
237
+ return ($ = c.value) != null ? $ : t.value;
238
+ }), l = v(
239
+ () => s.scoreTemplate.replace("{value}", String(t.value))
240
+ ), a = v(
241
+ () => s.size === "normal" ? 16 : s.size === "small" ? 12 : 20
242
+ ), _ = ($) => {
243
+ const M = d.value;
244
+ return M >= $ ? "full" : s.allowHalf && M >= $ - 0.5 ? "half" : "empty";
245
+ }, f = ($) => _($) === "full" ? s.voidColor : s.color, p = ($, M) => {
246
+ if (!s.readonly)
247
+ if (s.allowHalf) {
248
+ const V = $.currentTarget, { left: x, width: H } = V.getBoundingClientRect();
249
+ c.value = ($.clientX - x) / H < 0.5 ? M - 0.5 : M;
545
250
  } else
546
- c.value = I;
547
- }, C = () => {
548
- o.readonly || (c.value = null);
549
- }, M = () => {
550
- if (o.readonly) return;
551
- const k = c.value ?? t.value;
552
- t.value = k, n("change", k);
251
+ c.value = M;
252
+ }, F = () => {
253
+ s.readonly || (c.value = null);
254
+ }, S = () => {
255
+ var M;
256
+ if (s.readonly) return;
257
+ const $ = (M = c.value) != null ? M : t.value;
258
+ t.value = $, o("change", $);
553
259
  };
554
- return (k, I) => {
555
- const L = P("f-icon");
556
- return l(), r("div", {
557
- class: x(["f-rate", { "f-rate--readonly": o.readonly }]),
558
- onMouseleave: C
260
+ return ($, M) => {
261
+ const V = O("f-icon");
262
+ return n(), i("div", {
263
+ class: C(["f-rate", { "f-rate--readonly": s.readonly }]),
264
+ onMouseleave: F
559
265
  }, [
560
- (l(!0), r(R, null, U(o.count, (F) => (l(), r("span", {
561
- key: F,
266
+ (n(!0), i(D, null, U(s.count, (x) => (n(), i("span", {
267
+ key: x,
562
268
  class: "f-rate__item",
563
- onMousemove: (O) => p(O, F),
564
- onClick: M
269
+ onMousemove: (H) => p(H, x),
270
+ onClick: S
565
271
  }, [
566
- z(L, {
567
- color: u(F),
568
- size: a.value
272
+ T(V, {
273
+ color: f(x),
274
+ size: u(a)
569
275
  }, {
570
- default: S(() => [
571
- f(F) === "full" ? (l(), D(T(Ye), { key: 0 })) : f(F) === "half" ? (l(), D(T(qe), { key: 1 })) : (l(), D(T(Ge), { key: 2 }))
276
+ default: B(() => [
277
+ _(x) === "full" ? (n(), L(u(xe), { key: 0 })) : _(x) === "half" ? (n(), L(u(Te), { key: 1 })) : (n(), L(u(Se), { key: 2 }))
572
278
  ]),
573
279
  _: 2
574
280
  }, 1032, ["color", "size"])
575
- ], 40, tt))), 128)),
576
- o.showText ? (l(), r("span", ot, V(i.value), 1)) : b("", !0)
281
+ ], 40, Ke))), 128)),
282
+ s.showText ? (n(), i("span", Qe, A(u(l)), 1)) : k("", !0)
577
283
  ], 34);
578
284
  };
579
285
  }
580
- }), $o = /* @__PURE__ */ w(nt, [["__scopeId", "data-v-58cbc0f6"]]);
581
- function lt(s) {
582
- return ve() ? (me(s), !0) : !1;
583
- }
584
- const st = typeof window < "u" && typeof document < "u";
585
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
586
- const at = Object.prototype.toString, rt = (s) => at.call(s) === "[object Object]";
587
- function ee(s) {
588
- return Array.isArray(s) ? s : [s];
589
- }
590
- function it(s, e, t) {
591
- return te(
592
- s,
593
- e,
594
- {
595
- ...t,
596
- immediate: !0
597
- }
598
- );
599
- }
600
- const ct = st ? window : void 0;
601
- function dt(s) {
602
- var e;
603
- const t = K(s);
604
- return (e = t == null ? void 0 : t.$el) != null ? e : t;
605
- }
606
- function ut(...s) {
607
- const e = [], t = () => {
608
- e.forEach((i) => i()), e.length = 0;
609
- }, o = (i, a, f, u) => (i.addEventListener(a, f, u), () => i.removeEventListener(a, f, u)), n = _(() => {
610
- const i = ee(K(s[0])).filter((a) => a != null);
611
- return i.every((a) => typeof a != "string") ? i : void 0;
612
- }), c = it(
613
- () => {
614
- var i, a;
615
- return [
616
- (a = (i = n.value) == null ? void 0 : i.map((f) => dt(f))) != null ? a : [ct].filter((f) => f != null),
617
- ee(K(n.value ? s[1] : s[0])),
618
- ee(T(n.value ? s[2] : s[1])),
619
- // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
620
- K(n.value ? s[3] : s[2])
621
- ];
622
- },
623
- ([i, a, f, u]) => {
624
- if (t(), !(i != null && i.length) || !(a != null && a.length) || !(f != null && f.length))
625
- return;
626
- const p = rt(u) ? { ...u } : u;
627
- e.push(
628
- ...i.flatMap(
629
- (C) => a.flatMap(
630
- (M) => f.map((k) => o(C, M, k, p))
631
- )
632
- )
633
- );
634
- },
635
- { flush: "post" }
636
- ), d = () => {
637
- c(), t();
638
- };
639
- return lt(t), d;
640
- }
641
- const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }, vt = ["onClick"], mt = {
286
+ }), fo = /* @__PURE__ */ b(Ze, [["__scopeId", "data-v-d68cd0e3"]]), et = { class: "f-dropdown-wrapper" }, tt = { class: "f-dropdown-content" }, ot = ["onClick"], st = {
642
287
  key: 0,
643
288
  class: "opt-icon"
644
- }, ht = { class: "opt-label" }, _t = /* @__PURE__ */ m({
289
+ }, at = { class: "opt-label" }, nt = /* @__PURE__ */ y({
645
290
  __name: "FDropdown",
646
291
  props: {
647
292
  placement: { default: "right-start" },
@@ -651,95 +296,95 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
651
296
  options: { default: () => [] }
652
297
  },
653
298
  emits: ["select"],
654
- setup(s, { emit: e }) {
655
- const t = s, o = e, n = A(!1), c = A(null), d = A(null), i = A(null), a = A(0), f = A(0), u = _(() => {
656
- const [v] = t.placement.split("-"), y = (Array.isArray(t.offset) ? t.offset[0] : t.offset) + 4, $ = { position: "absolute" };
657
- return v === "right" ? ($.width = `${y}px`, $.left = `-${y}px`, $.top = 0, $.bottom = 0) : v === "left" ? ($.width = `${y}px`, $.right = `-${y}px`, $.top = 0, $.bottom = 0) : v === "bottom" ? ($.height = `${y}px`, $.top = `-${y}px`, $.left = 0, $.right = 0) : v === "top" && ($.height = `${y}px`, $.bottom = `-${y}px`, $.left = 0, $.right = 0), $;
658
- }), p = _(() => {
299
+ setup(r, { emit: e }) {
300
+ const t = r, s = e, o = R(!1), c = R(null), d = R(null), l = R(null), a = R(0), _ = R(0), f = v(() => {
301
+ const [m] = t.placement.split("-"), g = (Array.isArray(t.offset) ? t.offset[0] : t.offset) + 4, w = { position: "absolute" };
302
+ return m === "right" ? (w.width = `${g}px`, w.left = `-${g}px`, w.top = 0, w.bottom = 0) : m === "left" ? (w.width = `${g}px`, w.right = `-${g}px`, w.top = 0, w.bottom = 0) : m === "bottom" ? (w.height = `${g}px`, w.top = `-${g}px`, w.left = 0, w.right = 0) : m === "top" && (w.height = `${g}px`, w.bottom = `-${g}px`, w.left = 0, w.right = 0), w;
303
+ }), p = v(() => {
659
304
  if (!c.value) return {};
660
- const v = c.value, { placement: E } = t, y = Array.isArray(t.offset) ? t.offset[0] : t.offset, [$, N] = E.split("-"), ne = window.innerWidth, le = window.innerHeight, q = f.value || 160, X = a.value || 200;
661
- let H = 0, j = 0, W = $;
662
- $ === "right" ? (j = v.right + y, j + q > ne && (j = v.left - q - y, W = "left")) : $ === "left" ? (j = v.left - q - y, j < 0 && (j = v.right + y, W = "right")) : $ === "bottom" ? (H = v.bottom + y, H + X > le && (H = v.top - X - y, W = "top")) : $ === "top" && (H = v.top - X - y, H < 0 && (H = v.bottom + y, W = "bottom")), W === "top" || W === "bottom" ? (N === "start" ? j = v.left : N === "end" ? j = v.right - q : j = v.left + (v.width - q) / 2, j = Math.max(8, Math.min(j, ne - q - 8))) : (N === "start" ? H = v.top : N === "end" ? H = v.bottom - X : H = v.top + (v.height - X) / 2, H = Math.max(8, Math.min(H, le - X - 8)));
663
- const ue = W === "right" ? "left" : W === "left" ? "right" : N === "start" ? "left" : N === "end" ? "right" : "center", pe = W === "bottom" ? "top" : W === "top" ? "bottom" : N === "start" ? "top" : N === "end" ? "bottom" : "center";
305
+ const m = c.value, { placement: j } = t, g = Array.isArray(t.offset) ? t.offset[0] : t.offset, [w, N] = j.split("-"), ee = window.innerWidth, te = window.innerHeight, X = _.value || 160, Y = a.value || 200;
306
+ let P = 0, W = 0, E = w;
307
+ w === "right" ? (W = m.right + g, W + X > ee && (W = m.left - X - g, E = "left")) : w === "left" ? (W = m.left - X - g, W < 0 && (W = m.right + g, E = "right")) : w === "bottom" ? (P = m.bottom + g, P + Y > te && (P = m.top - Y - g, E = "top")) : w === "top" && (P = m.top - Y - g, P < 0 && (P = m.bottom + g, E = "bottom")), E === "top" || E === "bottom" ? (N === "start" ? W = m.left : N === "end" ? W = m.right - X : W = m.left + (m.width - X) / 2, W = Math.max(8, Math.min(W, ee - X - 8))) : (N === "start" ? P = m.top : N === "end" ? P = m.bottom - Y : P = m.top + (m.height - Y) / 2, P = Math.max(8, Math.min(P, te - Y - 8)));
308
+ const me = E === "right" ? "left" : E === "left" ? "right" : N === "start" ? "left" : N === "end" ? "right" : "center", _e = E === "bottom" ? "top" : E === "top" ? "bottom" : N === "start" ? "top" : N === "end" ? "bottom" : "center";
664
309
  return {
665
- top: `${H}px`,
666
- left: `${j}px`,
667
- transformOrigin: `${pe} ${ue}`
310
+ top: `${P}px`,
311
+ left: `${W}px`,
312
+ transformOrigin: `${_e} ${me}`
668
313
  };
669
314
  });
670
- let C = null, M = null;
671
- const k = () => {
672
- C && (clearTimeout(C), C = null);
673
- }, I = (v) => {
674
- t.trigger === "click" && (v.stopPropagation(), n.value ? n.value = !1 : (c.value = d.value.getBoundingClientRect(), n.value = !0));
675
- }, L = () => {
676
- t.trigger === "hover" && (k(), M = setTimeout(() => {
677
- d.value && (c.value = d.value.getBoundingClientRect()), n.value = !0;
315
+ let F = null, S = null;
316
+ const $ = () => {
317
+ F && (clearTimeout(F), F = null);
318
+ }, M = (m) => {
319
+ t.trigger === "click" && (m.stopPropagation(), o.value ? o.value = !1 : (c.value = d.value.getBoundingClientRect(), o.value = !0));
320
+ }, V = () => {
321
+ t.trigger === "hover" && ($(), S = setTimeout(() => {
322
+ d.value && (c.value = d.value.getBoundingClientRect()), o.value = !0;
678
323
  }, 400));
679
- }, F = () => {
680
- t.trigger === "hover" && (M && (clearTimeout(M), M = null), C = setTimeout(() => {
681
- n.value = !1;
324
+ }, x = () => {
325
+ t.trigger === "hover" && (S && (clearTimeout(S), S = null), F = setTimeout(() => {
326
+ o.value = !1;
682
327
  }, 400));
683
- }, O = (v) => {
684
- t.trigger !== "click" || !n.value || (n.value = !1);
685
- }, J = (v) => {
686
- v.disabled || (o("select", v.key, v), v.children || (n.value = !1));
328
+ }, H = (m) => {
329
+ t.trigger !== "click" || !o.value || (o.value = !1);
330
+ }, J = (m) => {
331
+ m.disabled || (s("select", m.key, m), m.children || (o.value = !1));
687
332
  };
688
- return te(n, async (v) => {
689
- var E, y;
690
- v ? (c.value = d.value.getBoundingClientRect(), await re(), a.value = ((E = i.value) == null ? void 0 : E.offsetHeight) || 200, f.value = ((y = i.value) == null ? void 0 : y.offsetWidth) || 160) : (a.value = 0, f.value = 0);
691
- }), ie(() => {
692
- k(), M && clearTimeout(M);
693
- }), ut(window, "click", O), (v, E) => (l(), r("div", pt, [
694
- h("div", {
333
+ return ie(o, (m) => le(null, null, function* () {
334
+ var j, g;
335
+ m ? (c.value = d.value.getBoundingClientRect(), yield de(), a.value = ((j = l.value) == null ? void 0 : j.offsetHeight) || 200, _.value = ((g = l.value) == null ? void 0 : g.offsetWidth) || 160) : (a.value = 0, _.value = 0);
336
+ })), ue(() => {
337
+ $(), S && clearTimeout(S);
338
+ }), Le(window, "click", H), (m, j) => (n(), i("div", et, [
339
+ z("div", {
695
340
  ref_key: "triggerRef",
696
341
  ref: d,
697
342
  class: "f-dropdown-trigger-wrapper",
698
- onMouseenter: L,
699
- onMouseleave: F,
700
- onClick: I
343
+ onMouseenter: V,
344
+ onMouseleave: x,
345
+ onClick: M
701
346
  }, [
702
- g(v.$slots, "default", {}, void 0, !0)
347
+ h(m.$slots, "default", {}, void 0, !0)
703
348
  ], 544),
704
- (l(), D(ce, { to: "body" }, [
705
- z(Q, { name: "f-dropdown-motion" }, {
706
- default: S(() => [
707
- n.value ? (l(), r("div", {
349
+ (n(), L(fe, { to: "body" }, [
350
+ T(K, { name: "f-dropdown-motion" }, {
351
+ default: B(() => [
352
+ u(o) ? (n(), i("div", {
708
353
  key: 0,
709
354
  ref_key: "dropdownRef",
710
- ref: i,
355
+ ref: l,
711
356
  class: "f-dropdown-item",
712
- style: B([p.value, { zIndex: v.zIndex }]),
713
- onMouseenter: k,
714
- onMouseleave: F,
715
- onClick: E[0] || (E[0] = de(() => {
357
+ style: I([u(p), { zIndex: m.zIndex }]),
358
+ onMouseenter: $,
359
+ onMouseleave: x,
360
+ onClick: j[0] || (j[0] = pe(() => {
716
361
  }, ["stop"]))
717
362
  }, [
718
- v.trigger === "hover" ? (l(), r("div", {
363
+ m.trigger === "hover" ? (n(), i("div", {
719
364
  key: 0,
720
365
  class: "f-dropdown-bridge",
721
- style: B(u.value)
722
- }, null, 4)) : b("", !0),
723
- h("div", ft, [
724
- v.options && v.options.length > 0 ? (l(!0), r(R, { key: 0 }, U(v.options, (y) => (l(), r("div", {
725
- key: y.key,
726
- class: x(["f-dropdown-option", { "is-disabled": y.disabled }]),
727
- onClick: ($) => J(y)
366
+ style: I(u(f))
367
+ }, null, 4)) : k("", !0),
368
+ z("div", tt, [
369
+ m.options && m.options.length > 0 ? (n(!0), i(D, { key: 0 }, U(m.options, (g) => (n(), i("div", {
370
+ key: g.key,
371
+ class: C(["f-dropdown-option", { "is-disabled": g.disabled }]),
372
+ onClick: (w) => J(g)
728
373
  }, [
729
- y.icon ? (l(), r("span", mt, [
730
- (l(), D(Y(y.icon)))
731
- ])) : b("", !0),
732
- h("span", ht, V(y.label), 1)
733
- ], 10, vt))), 128)) : g(v.$slots, "content", { key: 1 }, void 0, !0)
374
+ g.icon ? (n(), i("span", st, [
375
+ (n(), L(q(g.icon)))
376
+ ])) : k("", !0),
377
+ z("span", at, A(g.label), 1)
378
+ ], 10, ot))), 128)) : h(m.$slots, "content", { key: 1 }, void 0, !0)
734
379
  ])
735
- ], 36)) : b("", !0)
380
+ ], 36)) : k("", !0)
736
381
  ]),
737
382
  _: 3
738
383
  })
739
384
  ]))
740
385
  ]));
741
386
  }
742
- }), bo = /* @__PURE__ */ w(_t, [["__scopeId", "data-v-73eb3486"]]), gt = /* @__PURE__ */ m({
387
+ }), po = /* @__PURE__ */ b(nt, [["__scopeId", "data-v-addb3a3b"]]), lt = /* @__PURE__ */ y({
743
388
  __name: "FSelect",
744
389
  props: /* @__PURE__ */ G({
745
390
  options: {},
@@ -749,38 +394,38 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
749
394
  modelModifiers: {}
750
395
  }),
751
396
  emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
752
- setup(s, { emit: e }) {
753
- const t = s, o = e, n = Z(s, "modelValue"), c = A(!1), d = _(
397
+ setup(r, { emit: e }) {
398
+ const t = r, s = e, o = Q(r, "modelValue"), c = R(!1), d = v(
754
399
  () => {
755
- var u;
756
- return ((u = t.options.find((p) => p.key === n.value)) == null ? void 0 : u.label) ?? t.placeholder ?? "请选择";
400
+ var f, p, F;
401
+ return (F = (f = t.options.find((S) => S.key === o.value)) == null ? void 0 : f.label) != null ? F : (p = t.placeholder) != null ? p : "请选择";
757
402
  }
758
- ), i = _(() => n.value !== void 0 && n.value !== ""), a = (u, p) => {
759
- n.value = u, o("select", u, p), c.value = !1;
760
- }, f = (u) => {
761
- c.value = u;
403
+ ), l = v(() => o.value !== void 0 && o.value !== ""), a = (f, p) => {
404
+ o.value = f, s("select", f, p), c.value = !1;
405
+ }, _ = (f) => {
406
+ c.value = f;
762
407
  };
763
- return (u, p) => {
764
- const C = P("f-icon"), M = P("f-dropdown");
765
- return l(), D(M, {
766
- options: u.options,
408
+ return (f, p) => {
409
+ const F = O("f-icon"), S = O("f-dropdown");
410
+ return n(), L(S, {
411
+ options: f.options,
767
412
  trigger: "click",
768
413
  onSelect: a,
769
- onShow: p[0] || (p[0] = (k) => f(!0)),
770
- onHide: p[1] || (p[1] = (k) => f(!1)),
414
+ onShow: p[0] || (p[0] = ($) => _(!0)),
415
+ onHide: p[1] || (p[1] = ($) => _(!1)),
771
416
  placement: "bottom",
772
417
  offset: 4
773
418
  }, {
774
- default: S(() => [
775
- h("div", {
776
- class: x(["f-select", { "is-active": i.value, "is-open": c.value }])
419
+ default: B(() => [
420
+ z("div", {
421
+ class: C(["f-select", { "is-active": u(l), "is-open": u(c) }])
777
422
  }, [
778
- h("span", {
779
- class: x(["f-select__label", { "is-placeholder": !i.value }])
780
- }, V(d.value), 3),
781
- z(C, { class: "f-select__arrow" }, {
782
- default: S(() => [
783
- z(T(Te))
423
+ z("span", {
424
+ class: C(["f-select__label", { "is-placeholder": !u(l) }])
425
+ }, A(u(d)), 3),
426
+ T(F, { class: "f-select__arrow" }, {
427
+ default: B(() => [
428
+ T(u(Me))
784
429
  ]),
785
430
  _: 1
786
431
  })
@@ -790,10 +435,10 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
790
435
  }, 8, ["options"]);
791
436
  };
792
437
  }
793
- }), ko = /* @__PURE__ */ w(gt, [["__scopeId", "data-v-0a611203"]]), yt = { class: "f-pagination" }, wt = { class: "f-pagination__list" }, $t = {
438
+ }), mo = /* @__PURE__ */ b(lt, [["__scopeId", "data-v-25e7d03d"]]), rt = { class: "f-pagination" }, it = { class: "f-pagination__list" }, ct = {
794
439
  key: 0,
795
440
  class: "page-btn ellipsis"
796
- }, bt = ["onClick"], kt = /* @__PURE__ */ m({
441
+ }, dt = ["onClick"], ut = /* @__PURE__ */ y({
797
442
  __name: "FPagination",
798
443
  props: /* @__PURE__ */ G({
799
444
  total: {},
@@ -804,50 +449,50 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
804
449
  modelModifiers: {}
805
450
  }),
806
451
  emits: /* @__PURE__ */ G(["update:currentPage"], ["update:modelValue"]),
807
- setup(s, { emit: e }) {
808
- const t = s, o = Z(s, "modelValue"), n = _(() => Math.ceil(t.total / t.pageSize) || 1), c = _(() => {
809
- const i = n.value, a = o.value;
810
- return !i || i <= 0 ? [] : i <= 7 ? Array.from({ length: i }, (f, u) => u + 1) : a <= 4 ? [1, 2, 3, 4, 5, "...", i] : a >= i - 3 ? [1, "...", i - 4, i - 3, i - 2, i - 1, i] : [1, "...", a - 1, a, a + 1, "...", i];
811
- }), d = (i) => {
812
- typeof i == "number" && (i < 1 || i > n.value || i === o.value || (o.value = i));
452
+ setup(r, { emit: e }) {
453
+ const t = r, s = Q(r, "modelValue"), o = v(() => Math.ceil(t.total / t.pageSize) || 1), c = v(() => {
454
+ const l = o.value, a = s.value;
455
+ return !l || l <= 0 ? [] : l <= 7 ? Array.from({ length: l }, (_, f) => f + 1) : a <= 4 ? [1, 2, 3, 4, 5, "...", l] : a >= l - 3 ? [1, "...", l - 4, l - 3, l - 2, l - 1, l] : [1, "...", a - 1, a, a + 1, "...", l];
456
+ }), d = (l) => {
457
+ typeof l == "number" && (l < 1 || l > o.value || l === s.value || (s.value = l));
813
458
  };
814
- return (i, a) => {
815
- const f = P("f-icon");
816
- return l(), r("div", yt, [
817
- h("button", {
818
- class: x(["page-btn", { disabled: o.value === 1 }]),
819
- onClick: a[0] || (a[0] = (u) => d(o.value - 1))
459
+ return (l, a) => {
460
+ const _ = O("f-icon");
461
+ return n(), i("div", rt, [
462
+ z("button", {
463
+ class: C(["page-btn", { disabled: s.value === 1 }]),
464
+ onClick: a[0] || (a[0] = (f) => d(s.value - 1))
820
465
  }, [
821
- z(f, null, {
822
- default: S(() => [
823
- z(T(Se))
466
+ T(_, null, {
467
+ default: B(() => [
468
+ T(u(Be))
824
469
  ]),
825
470
  _: 1
826
471
  })
827
472
  ], 2),
828
- h("ul", wt, [
829
- (l(!0), r(R, null, U(c.value, (u, p) => (l(), r(R, { key: p }, [
830
- u === "..." ? (l(), r("li", $t, [
831
- z(f, null, {
832
- default: S(() => [
833
- z(T(je))
473
+ z("ul", it, [
474
+ (n(!0), i(D, null, U(u(c), (f, p) => (n(), i(D, { key: p }, [
475
+ f === "..." ? (n(), i("li", ct, [
476
+ T(_, null, {
477
+ default: B(() => [
478
+ T(u(Ie))
834
479
  ]),
835
480
  _: 1
836
481
  })
837
- ])) : (l(), r("li", {
482
+ ])) : (n(), i("li", {
838
483
  key: 1,
839
- class: x(["page-btn", { active: o.value === u }]),
840
- onClick: (C) => d(u)
841
- }, V(u), 11, bt))
484
+ class: C(["page-btn", { active: s.value === f }]),
485
+ onClick: (F) => d(f)
486
+ }, A(f), 11, dt))
842
487
  ], 64))), 128))
843
488
  ]),
844
- h("button", {
845
- class: x(["page-btn", { disabled: o.value === n.value }]),
846
- onClick: a[1] || (a[1] = (u) => d(o.value + 1))
489
+ z("button", {
490
+ class: C(["page-btn", { disabled: s.value === u(o) }]),
491
+ onClick: a[1] || (a[1] = (f) => d(s.value + 1))
847
492
  }, [
848
- z(f, null, {
849
- default: S(() => [
850
- z(T(Le))
493
+ T(_, null, {
494
+ default: B(() => [
495
+ T(u(Ve))
851
496
  ]),
852
497
  _: 1
853
498
  })
@@ -855,87 +500,87 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
855
500
  ]);
856
501
  };
857
502
  }
858
- }), xo = /* @__PURE__ */ w(kt, [["__scopeId", "data-v-33bfb5be"]]), xt = {
503
+ }), _o = /* @__PURE__ */ b(ut, [["__scopeId", "data-v-e58f1ac9"]]), ft = {
859
504
  key: 0,
860
505
  class: "f-card__header"
861
- }, Ct = {
506
+ }, pt = {
862
507
  key: 0,
863
508
  class: "f-card__header-extra"
864
- }, Ft = {
509
+ }, mt = {
865
510
  key: 1,
866
511
  class: "f-card__cover"
867
- }, zt = {
512
+ }, _t = {
868
513
  key: 2,
869
514
  class: "f-card__body"
870
- }, Mt = {
515
+ }, vt = {
871
516
  key: 3,
872
517
  class: "f-card__footer"
873
- }, St = {
518
+ }, ht = {
874
519
  key: 0,
875
520
  class: "f-card__header"
876
- }, Bt = {
521
+ }, gt = {
877
522
  key: 0,
878
523
  class: "f-card__header-extra"
879
- }, Tt = {
524
+ }, yt = {
880
525
  key: 1,
881
526
  class: "f-card__cover"
882
- }, It = { class: "f-card__content" }, Lt = {
527
+ }, bt = { class: "f-card__content" }, $t = {
883
528
  key: 0,
884
529
  class: "f-card__body"
885
- }, At = {
530
+ }, wt = {
886
531
  key: 1,
887
532
  class: "f-card__footer"
888
- }, Vt = /* @__PURE__ */ m({
533
+ }, kt = /* @__PURE__ */ y({
889
534
  __name: "FCard",
890
535
  props: {
891
536
  hoverable: { type: Boolean, default: !0 },
892
537
  direction: { default: "vertical" }
893
538
  },
894
- setup(s) {
895
- return (e, t) => (l(), r("div", {
896
- class: x(["f-card", [`f-card--${e.direction}`, { "is-hoverable": e.hoverable }]])
539
+ setup(r) {
540
+ return (e, t) => (n(), i("div", {
541
+ class: C(["f-card", [`f-card--${e.direction}`, { "is-hoverable": e.hoverable }]])
897
542
  }, [
898
- e.direction === "vertical" ? (l(), r(R, { key: 0 }, [
899
- e.$slots.header || e.$slots["header-extra"] ? (l(), r("div", xt, [
900
- g(e.$slots, "header", {}, void 0, !0),
901
- e.$slots["header-extra"] ? (l(), r("div", Ct, [
902
- g(e.$slots, "header-extra", {}, void 0, !0)
903
- ])) : b("", !0)
904
- ])) : b("", !0),
905
- e.$slots.cover ? (l(), r("div", Ft, [
906
- g(e.$slots, "cover", {}, void 0, !0)
907
- ])) : b("", !0),
908
- e.$slots.default ? (l(), r("div", zt, [
909
- g(e.$slots, "default", {}, void 0, !0)
910
- ])) : b("", !0),
911
- e.$slots.footer ? (l(), r("div", Mt, [
912
- g(e.$slots, "footer", {}, void 0, !0)
913
- ])) : b("", !0)
914
- ], 64)) : (l(), r(R, { key: 1 }, [
915
- e.$slots.header || e.$slots["header-extra"] ? (l(), r("div", St, [
916
- g(e.$slots, "header", {}, void 0, !0),
917
- e.$slots["header-extra"] ? (l(), r("div", Bt, [
918
- g(e.$slots, "header-extra", {}, void 0, !0)
919
- ])) : b("", !0)
920
- ])) : b("", !0),
921
- e.$slots.cover ? (l(), r("div", Tt, [
922
- g(e.$slots, "cover", {}, void 0, !0)
923
- ])) : b("", !0),
924
- h("div", It, [
925
- e.$slots.default ? (l(), r("div", Lt, [
926
- g(e.$slots, "default", {}, void 0, !0)
927
- ])) : b("", !0),
928
- e.$slots.footer ? (l(), r("div", At, [
929
- g(e.$slots, "footer", {}, void 0, !0)
930
- ])) : b("", !0)
543
+ e.direction === "vertical" ? (n(), i(D, { key: 0 }, [
544
+ e.$slots.header || e.$slots["header-extra"] ? (n(), i("div", ft, [
545
+ h(e.$slots, "header", {}, void 0, !0),
546
+ e.$slots["header-extra"] ? (n(), i("div", pt, [
547
+ h(e.$slots, "header-extra", {}, void 0, !0)
548
+ ])) : k("", !0)
549
+ ])) : k("", !0),
550
+ e.$slots.cover ? (n(), i("div", mt, [
551
+ h(e.$slots, "cover", {}, void 0, !0)
552
+ ])) : k("", !0),
553
+ e.$slots.default ? (n(), i("div", _t, [
554
+ h(e.$slots, "default", {}, void 0, !0)
555
+ ])) : k("", !0),
556
+ e.$slots.footer ? (n(), i("div", vt, [
557
+ h(e.$slots, "footer", {}, void 0, !0)
558
+ ])) : k("", !0)
559
+ ], 64)) : (n(), i(D, { key: 1 }, [
560
+ e.$slots.header || e.$slots["header-extra"] ? (n(), i("div", ht, [
561
+ h(e.$slots, "header", {}, void 0, !0),
562
+ e.$slots["header-extra"] ? (n(), i("div", gt, [
563
+ h(e.$slots, "header-extra", {}, void 0, !0)
564
+ ])) : k("", !0)
565
+ ])) : k("", !0),
566
+ e.$slots.cover ? (n(), i("div", yt, [
567
+ h(e.$slots, "cover", {}, void 0, !0)
568
+ ])) : k("", !0),
569
+ z("div", bt, [
570
+ e.$slots.default ? (n(), i("div", $t, [
571
+ h(e.$slots, "default", {}, void 0, !0)
572
+ ])) : k("", !0),
573
+ e.$slots.footer ? (n(), i("div", wt, [
574
+ h(e.$slots, "footer", {}, void 0, !0)
575
+ ])) : k("", !0)
931
576
  ])
932
577
  ], 64))
933
578
  ], 2));
934
579
  }
935
- }), Co = /* @__PURE__ */ w(Vt, [["__scopeId", "data-v-a66fa373"]]), Rt = {
580
+ }), vo = /* @__PURE__ */ b(kt, [["__scopeId", "data-v-a66fa373"]]), Ft = {
936
581
  key: 0,
937
582
  class: "f-tag__dot"
938
- }, Dt = /* @__PURE__ */ m({
583
+ }, Ct = /* @__PURE__ */ y({
939
584
  __name: "FTag",
940
585
  props: {
941
586
  color: {},
@@ -945,35 +590,36 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
945
590
  size: { default: "normal" }
946
591
  },
947
592
  emits: ["close"],
948
- setup(s, { emit: e }) {
949
- const t = e, o = A(!1);
950
- return (n, c) => {
951
- const d = P("f-icon");
952
- return l(), r("span", {
953
- class: x(["f-tag", [
954
- `f-tag--${n.type ?? "round"}`,
955
- `f-tag--${n.effect ?? "light"}`,
956
- n.color ?? "default"
593
+ setup(r, { emit: e }) {
594
+ const t = e, s = R(!1);
595
+ return (o, c) => {
596
+ var l, a, _;
597
+ const d = O("f-icon");
598
+ return n(), i("span", {
599
+ class: C(["f-tag", [
600
+ `f-tag--${(l = o.type) != null ? l : "round"}`,
601
+ `f-tag--${(a = o.effect) != null ? a : "light"}`,
602
+ (_ = o.color) != null ? _ : "default"
957
603
  ]]),
958
- onMouseenter: c[1] || (c[1] = (i) => o.value = !0),
959
- onMouseleave: c[2] || (c[2] = (i) => o.value = !1)
604
+ onMouseenter: c[1] || (c[1] = (f) => s.value = !0),
605
+ onMouseleave: c[2] || (c[2] = (f) => s.value = !1)
960
606
  }, [
961
- n.type === "dot" ? (l(), r("span", Rt)) : b("", !0),
962
- g(n.$slots, "default", {}, void 0, !0),
963
- n.closable ? (l(), D(d, {
607
+ o.type === "dot" ? (n(), i("span", Ft)) : k("", !0),
608
+ h(o.$slots, "default", {}, void 0, !0),
609
+ o.closable ? (n(), L(d, {
964
610
  key: 1,
965
611
  class: "f-tag__close",
966
- onClick: c[0] || (c[0] = de((i) => t("close"), ["stop"]))
612
+ onClick: c[0] || (c[0] = pe((f) => t("close"), ["stop"]))
967
613
  }, {
968
- default: S(() => [
969
- (l(), D(Y(o.value ? T(De) : T(Ve))))
614
+ default: B(() => [
615
+ (n(), L(q(u(s) ? u(Re) : u(Ae))))
970
616
  ]),
971
617
  _: 1
972
- })) : b("", !0)
618
+ })) : k("", !0)
973
619
  ], 34);
974
620
  };
975
621
  }
976
- }), Fo = /* @__PURE__ */ w(Dt, [["__scopeId", "data-v-6667c961"]]), Ht = /* @__PURE__ */ m({
622
+ }), ho = /* @__PURE__ */ b(Ct, [["__scopeId", "data-v-9f7974a7"]]), zt = /* @__PURE__ */ y({
977
623
  __name: "FTooltip",
978
624
  props: {
979
625
  content: {},
@@ -983,77 +629,77 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
983
629
  offset: { default: 6 },
984
630
  maxWidth: { default: 240 }
985
631
  },
986
- setup(s) {
987
- const e = s, t = A(null), o = A(null), n = A(!1), c = A({ top: 0, left: 0 });
632
+ setup(r) {
633
+ const e = r, t = R(null), s = R(null), o = R(!1), c = R({ top: 0, left: 0 });
988
634
  let d = null;
989
- const i = () => {
635
+ const l = () => {
990
636
  e.disabled || (d = setTimeout(() => {
991
- n.value = !0, re(f);
637
+ o.value = !0, de(_);
992
638
  }, e.delay));
993
639
  }, a = () => {
994
- d && clearTimeout(d), n.value = !1;
995
- }, f = () => {
996
- var J;
997
- if (!o.value) return;
998
- const u = ((J = t.value) == null ? void 0 : J.firstElementChild) ?? t.value;
999
- if (!u) return;
1000
- const p = u.getBoundingClientRect(), C = o.value.getBoundingClientRect(), M = e.offset, [k, I] = e.placement.split("-");
1001
- let L = 0, F = 0;
1002
- switch (k) {
640
+ d && clearTimeout(d), o.value = !1;
641
+ }, _ = () => {
642
+ var J, m;
643
+ if (!s.value) return;
644
+ const f = (m = (J = t.value) == null ? void 0 : J.firstElementChild) != null ? m : t.value;
645
+ if (!f) return;
646
+ const p = f.getBoundingClientRect(), F = s.value.getBoundingClientRect(), S = e.offset, [$, M] = e.placement.split("-");
647
+ let V = 0, x = 0;
648
+ switch ($) {
1003
649
  case "top":
1004
- L = p.top - C.height - M;
650
+ V = p.top - F.height - S;
1005
651
  break;
1006
652
  case "bottom":
1007
- L = p.bottom + M;
653
+ V = p.bottom + S;
1008
654
  break;
1009
655
  case "left":
1010
- F = p.left - C.width - M;
656
+ x = p.left - F.width - S;
1011
657
  break;
1012
658
  case "right":
1013
- F = p.right + M;
659
+ x = p.right + S;
1014
660
  break;
1015
661
  }
1016
- k === "top" || k === "bottom" ? I === "start" ? F = p.left : I === "end" ? F = p.right - C.width : F = p.left + (p.width - C.width) / 2 : I === "start" ? L = p.top : I === "end" ? L = p.bottom - C.height : L = p.top + (p.height - C.height) / 2;
1017
- const O = 8;
1018
- F = Math.max(O, Math.min(F, window.innerWidth - C.width - O)), L = Math.max(O, Math.min(L, window.innerHeight - C.height - O)), c.value = { top: L + window.scrollY, left: F + window.scrollX };
662
+ $ === "top" || $ === "bottom" ? M === "start" ? x = p.left : M === "end" ? x = p.right - F.width : x = p.left + (p.width - F.width) / 2 : M === "start" ? V = p.top : M === "end" ? V = p.bottom - F.height : V = p.top + (p.height - F.height) / 2;
663
+ const H = 8;
664
+ x = Math.max(H, Math.min(x, window.innerWidth - F.width - H)), V = Math.max(H, Math.min(V, window.innerHeight - F.height - H)), c.value = { top: V + window.scrollY, left: x + window.scrollX };
1019
665
  };
1020
- return ie(a), (u, p) => (l(), r("div", {
666
+ return ue(a), (f, p) => (n(), i("div", {
1021
667
  class: "f-tooltip",
1022
668
  ref_key: "triggerRef",
1023
669
  ref: t,
1024
- onMouseenter: i,
670
+ onMouseenter: l,
1025
671
  onMouseleave: a
1026
672
  }, [
1027
- g(u.$slots, "default", {}, void 0, !0),
1028
- (l(), D(ce, { to: "body" }, [
1029
- z(Q, { name: "f-tooltip" }, {
1030
- default: S(() => [
1031
- n.value && (u.content || u.$slots.content) ? (l(), r("div", {
673
+ h(f.$slots, "default", {}, void 0, !0),
674
+ (n(), L(fe, { to: "body" }, [
675
+ T(K, { name: "f-tooltip" }, {
676
+ default: B(() => [
677
+ u(o) && (f.content || f.$slots.content) ? (n(), i("div", {
1032
678
  key: 0,
1033
679
  ref_key: "tooltipRef",
1034
- ref: o,
1035
- class: x(["f-tooltip-wrapper", `is-${u.placement.split("-")[0]}`]),
1036
- style: B({
1037
- top: `${c.value.top}px`,
1038
- left: `${c.value.left}px`,
1039
- maxWidth: `${u.maxWidth}px`
680
+ ref: s,
681
+ class: C(["f-tooltip-wrapper", `is-${f.placement.split("-")[0]}`]),
682
+ style: I({
683
+ top: `${u(c).top}px`,
684
+ left: `${u(c).left}px`,
685
+ maxWidth: `${f.maxWidth}px`
1040
686
  })
1041
687
  }, [
1042
- g(u.$slots, "content", {}, () => [
1043
- he(V(u.content), 1)
688
+ h(f.$slots, "content", {}, () => [
689
+ we(A(f.content), 1)
1044
690
  ], !0),
1045
- p[0] || (p[0] = h("span", { class: "f-tooltip-arrow" }, null, -1))
1046
- ], 6)) : b("", !0)
691
+ p[0] || (p[0] = z("span", { class: "f-tooltip-arrow" }, null, -1))
692
+ ], 6)) : k("", !0)
1047
693
  ]),
1048
694
  _: 3
1049
695
  })
1050
696
  ]))
1051
697
  ], 544));
1052
698
  }
1053
- }), zo = /* @__PURE__ */ w(Ht, [["__scopeId", "data-v-8d9ae5bb"]]), jt = { class: "f-progress" }, Ot = {
699
+ }), go = /* @__PURE__ */ b(zt, [["__scopeId", "data-v-be9acca7"]]), xt = { class: "f-progress" }, Tt = {
1054
700
  key: 0,
1055
701
  class: "f-progress__text"
1056
- }, Wt = /* @__PURE__ */ m({
702
+ }, St = /* @__PURE__ */ y({
1057
703
  __name: "FProgress",
1058
704
  props: {
1059
705
  percent: {},
@@ -1061,25 +707,25 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1061
707
  showText: { type: Boolean, default: !1 },
1062
708
  height: { default: 5 }
1063
709
  },
1064
- setup(s) {
1065
- const e = s, t = _(() => Math.min(100, Math.max(0, e.percent)));
1066
- return (o, n) => (l(), r("div", jt, [
1067
- h("div", {
710
+ setup(r) {
711
+ const e = r, t = v(() => Math.min(100, Math.max(0, e.percent)));
712
+ return (s, o) => (n(), i("div", xt, [
713
+ z("div", {
1068
714
  class: "f-progress__track",
1069
- style: B({ height: `${o.height}px` })
715
+ style: I({ height: `${s.height}px` })
1070
716
  }, [
1071
- h("div", {
717
+ z("div", {
1072
718
  class: "f-progress__fill",
1073
- style: B({
1074
- width: `${t.value}%`,
1075
- background: o.color
719
+ style: I({
720
+ width: `${u(t)}%`,
721
+ background: s.color
1076
722
  })
1077
723
  }, null, 4)
1078
724
  ], 4),
1079
- o.showText ? (l(), r("span", Ot, V(t.value) + "%", 1)) : b("", !0)
725
+ s.showText ? (n(), i("span", Tt, A(u(t)) + "%", 1)) : k("", !0)
1080
726
  ]));
1081
727
  }
1082
- }), Mo = /* @__PURE__ */ w(Wt, [["__scopeId", "data-v-06d85e64"]]), Pt = { class: "f-tabs__nav-container" }, Et = { class: "f-tabs__nav" }, Nt = ["onClick"], Gt = { class: "f-tabs__label" }, Ut = /* @__PURE__ */ m({
728
+ }), yo = /* @__PURE__ */ b(St, [["__scopeId", "data-v-c2164d6e"]]), Mt = { class: "f-tabs__nav-container" }, Bt = { class: "f-tabs__nav" }, It = ["onClick"], Vt = { class: "f-tabs__label" }, Rt = /* @__PURE__ */ y({
1083
729
  __name: "FTabs",
1084
730
  props: {
1085
731
  tabs: {},
@@ -1087,92 +733,93 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1087
733
  type: { default: "line" }
1088
734
  },
1089
735
  emits: ["update:active", "change"],
1090
- setup(s, { emit: e }) {
1091
- const t = s, o = e, n = _({
736
+ setup(r, { emit: e }) {
737
+ const t = r, s = e, o = v({
1092
738
  get: () => {
1093
- if (t.active && t.tabs.some((i) => i.name === t.active && !i.disabled))
739
+ var l;
740
+ if (t.active && t.tabs.some((a) => a.name === t.active && !a.disabled))
1094
741
  return t.active;
1095
- const d = t.tabs.find((i) => !i.disabled);
1096
- return (d == null ? void 0 : d.name) ?? "";
742
+ const d = t.tabs.find((a) => !a.disabled);
743
+ return (l = d == null ? void 0 : d.name) != null ? l : "";
1097
744
  },
1098
745
  set: (d) => {
1099
- o("update:active", d), o("change", d);
746
+ s("update:active", d), s("change", d);
1100
747
  }
1101
- }), c = (d, i) => {
1102
- i || (n.value = d);
748
+ }), c = (d, l) => {
749
+ l || (o.value = d);
1103
750
  };
1104
- return (d, i) => (l(), r("div", {
1105
- class: x(["f-tabs", [`f-tabs--${d.type}`]])
751
+ return (d, l) => (n(), i("div", {
752
+ class: C(["f-tabs", [`f-tabs--${d.type}`]])
1106
753
  }, [
1107
- h("div", Pt, [
1108
- h("div", Et, [
1109
- (l(!0), r(R, null, U(d.tabs, (a) => (l(), r("div", {
754
+ z("div", Mt, [
755
+ z("div", Bt, [
756
+ (n(!0), i(D, null, U(d.tabs, (a) => (n(), i("div", {
1110
757
  key: a.name,
1111
- class: x(["f-tabs__tab", {
1112
- active: n.value === a.name,
758
+ class: C(["f-tabs__tab", {
759
+ active: u(o) === a.name,
1113
760
  disabled: a.disabled
1114
761
  }]),
1115
- onClick: (f) => c(a.name, a.disabled)
762
+ onClick: (_) => c(a.name, a.disabled)
1116
763
  }, [
1117
- h("span", Gt, V(a.label), 1)
1118
- ], 10, Nt))), 128))
764
+ z("span", Vt, A(a.label), 1)
765
+ ], 10, It))), 128))
1119
766
  ])
1120
767
  ]),
1121
- (l(!0), r(R, null, U(d.tabs, (a) => oe((l(), r("div", {
768
+ (n(!0), i(D, null, U(d.tabs, (a) => Z((n(), i("div", {
1122
769
  key: a.name,
1123
770
  class: "f-tabs__panel"
1124
771
  }, [
1125
- g(d.$slots, a.name, {}, void 0, !0)
772
+ h(d.$slots, a.name, {}, void 0, !0)
1126
773
  ])), [
1127
- [ae, n.value === a.name]
774
+ [ce, u(o) === a.name]
1128
775
  ])), 128))
1129
776
  ], 2));
1130
777
  }
1131
- }), So = /* @__PURE__ */ w(Ut, [["__scopeId", "data-v-00231637"]]), qt = {
778
+ }), bo = /* @__PURE__ */ b(Rt, [["__scopeId", "data-v-268fc654"]]), At = {
1132
779
  class: "f-breadcrumb__current",
1133
780
  "aria-current": "page"
1134
- }, Xt = ["href"], Yt = {
781
+ }, Dt = ["href"], Lt = {
1135
782
  key: 3,
1136
783
  class: "f-breadcrumb__text"
1137
- }, Jt = /* @__PURE__ */ m({
784
+ }, Pt = /* @__PURE__ */ y({
1138
785
  __name: "FBreadcrumb",
1139
786
  props: {
1140
787
  items: { default: () => [] },
1141
788
  separator: { default: "/" },
1142
789
  animated: { type: Boolean, default: !1 }
1143
790
  },
1144
- setup(s) {
1145
- return (e, t) => (l(), r("nav", {
1146
- class: x(["f-breadcrumb", { "f-breadcrumb--animated": e.animated }]),
791
+ setup(r) {
792
+ return (e, t) => (n(), i("nav", {
793
+ class: C(["f-breadcrumb", { "f-breadcrumb--animated": e.animated }]),
1147
794
  "aria-label": "breadcrumb"
1148
795
  }, [
1149
- z(_e, { name: "breadcrumb" }, {
1150
- default: S(() => [
1151
- (l(!0), r(R, null, U(e.items, (o, n) => (l(), r(R, {
1152
- key: o.label
796
+ T(ke, { name: "breadcrumb" }, {
797
+ default: B(() => [
798
+ (n(!0), i(D, null, U(e.items, (s, o) => (n(), i(D, {
799
+ key: s.label
1153
800
  }, [
1154
- n > 0 ? (l(), r("span", {
1155
- key: `sep-${o.label}`,
801
+ o > 0 ? (n(), i("span", {
802
+ key: `sep-${s.label}`,
1156
803
  class: "f-breadcrumb__sep",
1157
804
  "aria-hidden": "true"
1158
- }, V(e.separator), 1)) : b("", !0),
1159
- n === e.items.length - 1 ? g(e.$slots, "default", {
805
+ }, A(e.separator), 1)) : k("", !0),
806
+ o === e.items.length - 1 ? h(e.$slots, "default", {
1160
807
  key: 1,
1161
- item: o
808
+ item: s
1162
809
  }, () => [
1163
- h("span", qt, V(o.label), 1)
1164
- ], !0) : o.href ? (l(), r("a", {
810
+ z("span", At, A(s.label), 1)
811
+ ], !0) : s.href ? (n(), i("a", {
1165
812
  key: 2,
1166
- href: o.href,
813
+ href: s.href,
1167
814
  class: "f-breadcrumb__link"
1168
- }, V(o.label), 9, Xt)) : (l(), r("span", Yt, V(o.label), 1))
815
+ }, A(s.label), 9, Dt)) : (n(), i("span", Lt, A(s.label), 1))
1169
816
  ], 64))), 128))
1170
817
  ]),
1171
818
  _: 3
1172
819
  })
1173
820
  ], 2));
1174
821
  }
1175
- }), Bo = /* @__PURE__ */ w(Jt, [["__scopeId", "data-v-bb787dcc"]]), Kt = /* @__PURE__ */ m({
822
+ }), $o = /* @__PURE__ */ b(Pt, [["__scopeId", "data-v-bb787dcc"]]), Wt = /* @__PURE__ */ y({
1176
823
  __name: "FCol",
1177
824
  props: {
1178
825
  span: { default: 24 },
@@ -1183,28 +830,28 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1183
830
  md: {},
1184
831
  lg: {}
1185
832
  },
1186
- setup(s) {
1187
- const e = s, t = (c) => typeof c == "number" ? { span: c } : c, o = _(() => ({
833
+ setup(r) {
834
+ const e = r, t = (c) => typeof c == "number" ? { span: c } : c, s = v(() => ({
1188
835
  "--col-span": e.span,
1189
836
  "--col-offset": e.offset,
1190
837
  "--col-order": e.order
1191
- })), n = _(() => {
838
+ })), o = v(() => {
1192
839
  const c = [], d = { xs: e.xs, sm: e.sm, md: e.md, lg: e.lg };
1193
- for (const [i, a] of Object.entries(d)) {
840
+ for (const [l, a] of Object.entries(d)) {
1194
841
  if (a === void 0) continue;
1195
- const { span: f, offset: u, order: p } = t(a);
1196
- f !== void 0 && c.push(`f-col--${i}-${f}`), u !== void 0 && c.push(`f-col--${i}-offset-${u}`), p !== void 0 && c.push(`f-col--${i}-order-${p}`);
842
+ const { span: _, offset: f, order: p } = t(a);
843
+ _ !== void 0 && c.push(`f-col--${l}-${_}`), f !== void 0 && c.push(`f-col--${l}-offset-${f}`), p !== void 0 && c.push(`f-col--${l}-order-${p}`);
1197
844
  }
1198
845
  return c;
1199
846
  });
1200
- return (c, d) => (l(), r("div", {
1201
- class: x(["f-col", n.value]),
1202
- style: B(o.value)
847
+ return (c, d) => (n(), i("div", {
848
+ class: C(["f-col", u(o)]),
849
+ style: I(u(s))
1203
850
  }, [
1204
- g(c.$slots, "default", {}, void 0, !0)
851
+ h(c.$slots, "default", {}, void 0, !0)
1205
852
  ], 6));
1206
853
  }
1207
- }), To = /* @__PURE__ */ w(Kt, [["__scopeId", "data-v-522acc47"]]), Qt = /* @__PURE__ */ m({
854
+ }), wo = /* @__PURE__ */ b(Wt, [["__scopeId", "data-v-5a8b0cb4"]]), Ht = /* @__PURE__ */ y({
1208
855
  __name: "FRow",
1209
856
  props: {
1210
857
  gutter: { default: 0 },
@@ -1213,12 +860,12 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1213
860
  wrap: { default: "wrap" },
1214
861
  tag: { default: "div" }
1215
862
  },
1216
- setup(s) {
1217
- const e = s, t = _(
863
+ setup(r) {
864
+ const e = r, t = v(
1218
865
  () => Array.isArray(e.gutter) ? e.gutter[0] : e.gutter
1219
- ), o = _(
866
+ ), s = v(
1220
867
  () => Array.isArray(e.gutter) ? e.gutter[1] : 0
1221
- ), n = {
868
+ ), o = {
1222
869
  start: "flex-start",
1223
870
  end: "flex-end",
1224
871
  center: "center",
@@ -1230,30 +877,30 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1230
877
  middle: "center",
1231
878
  bottom: "flex-end",
1232
879
  stretch: "stretch"
1233
- }, d = _(() => ({
880
+ }, d = v(() => ({
1234
881
  marginLeft: t.value ? `-${t.value / 2}px` : void 0,
1235
882
  marginRight: t.value ? `-${t.value / 2}px` : void 0,
1236
- rowGap: o.value ? `${o.value}px` : void 0,
1237
- justifyContent: n[e.justify],
883
+ rowGap: s.value ? `${s.value}px` : void 0,
884
+ justifyContent: o[e.justify],
1238
885
  alignItems: c[e.align],
1239
886
  flexWrap: e.wrap,
1240
887
  "--row-gutter-h": t.value ? `${t.value / 2}px` : "0px"
1241
888
  }));
1242
- return (i, a) => (l(), D(Y(i.tag), {
889
+ return (l, a) => (n(), L(q(l.tag), {
1243
890
  class: "f-row",
1244
- style: B(d.value)
891
+ style: I(u(d))
1245
892
  }, {
1246
- default: S(() => [
1247
- g(i.$slots, "default", {}, void 0, !0)
893
+ default: B(() => [
894
+ h(l.$slots, "default", {}, void 0, !0)
1248
895
  ]),
1249
896
  _: 3
1250
897
  }, 8, ["style"]));
1251
898
  }
1252
- }), Io = /* @__PURE__ */ w(Qt, [["__scopeId", "data-v-bf5b6af7"]]), Zt = { class: "f-space__item" }, eo = {
899
+ }), ko = /* @__PURE__ */ b(Ht, [["__scopeId", "data-v-72f62339"]]), Et = { class: "f-space__item" }, Ot = {
1253
900
  key: 0,
1254
901
  class: "f-space__split",
1255
902
  "aria-hidden": "true"
1256
- }, to = /* @__PURE__ */ m({
903
+ }, jt = /* @__PURE__ */ y({
1257
904
  __name: "FSpace",
1258
905
  props: {
1259
906
  direction: { default: "horizontal" },
@@ -1263,80 +910,80 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1263
910
  wrap: { type: Boolean, default: !1 },
1264
911
  split: {}
1265
912
  },
1266
- setup(s) {
1267
- const e = s, t = {
913
+ setup(r) {
914
+ const e = r, t = {
1268
915
  small: 6,
1269
916
  normal: 12,
1270
917
  large: 18
1271
- }, o = (a) => typeof a == "number" ? a : t[a], n = _(() => {
918
+ }, s = (a) => typeof a == "number" ? a : t[a], o = v(() => {
1272
919
  const a = e.size;
1273
- return Array.isArray(a) ? `${o(a[1])}px ${o(a[0])}px` : `${o(a)}px`;
1274
- }), c = _(() => ({
920
+ return Array.isArray(a) ? `${s(a[1])}px ${s(a[0])}px` : `${s(a)}px`;
921
+ }), c = v(() => ({
1275
922
  flexDirection: e.direction === "vertical" ? "column" : "row",
1276
923
  alignItems: e.align,
1277
924
  justifyContent: e.justify,
1278
925
  flexWrap: e.wrap ? "wrap" : "nowrap",
1279
- gap: n.value
1280
- })), d = ge(), i = _(() => {
1281
- var u;
1282
- const a = (u = d.default) == null ? void 0 : u.call(d);
926
+ gap: o.value
927
+ })), d = Fe(), l = v(() => {
928
+ var f;
929
+ const a = (f = d.default) == null ? void 0 : f.call(d);
1283
930
  if (!a) return [];
1284
- const f = [];
931
+ const _ = [];
1285
932
  for (const p of a)
1286
- p.type === R ? f.push(...p.children) : f.push(p);
1287
- return f.filter((p) => p.type !== Comment);
933
+ p.type === D ? _.push(...p.children) : _.push(p);
934
+ return _.filter((p) => p.type !== Comment);
1288
935
  });
1289
- return (a, f) => (l(), r("div", {
936
+ return (a, _) => (n(), i("div", {
1290
937
  class: "f-space",
1291
- style: B(c.value)
938
+ style: I(u(c))
1292
939
  }, [
1293
- (l(!0), r(R, null, U(i.value, (u, p) => (l(), r(R, { key: p }, [
1294
- h("div", Zt, [
1295
- (l(), D(Y(u)))
940
+ (n(!0), i(D, null, U(u(l), (f, p) => (n(), i(D, { key: p }, [
941
+ z("div", Et, [
942
+ (n(), L(q(f)))
1296
943
  ]),
1297
- a.split && p < i.value.length - 1 ? (l(), r("span", eo, V(a.split), 1)) : b("", !0)
944
+ a.split && p < u(l).length - 1 ? (n(), i("span", Ot, A(a.split), 1)) : k("", !0)
1298
945
  ], 64))), 128))
1299
946
  ], 4));
1300
947
  }
1301
- }), Lo = /* @__PURE__ */ w(to, [["__scopeId", "data-v-9a9642c7"]]), oo = /* @__PURE__ */ m({
948
+ }), Fo = /* @__PURE__ */ b(jt, [["__scopeId", "data-v-5fb3b1a0"]]), Nt = /* @__PURE__ */ y({
1302
949
  __name: "FContainer",
1303
950
  props: {
1304
951
  gap: { default: 12 }
1305
952
  },
1306
- setup(s) {
1307
- const e = s, t = _(() => ({
953
+ setup(r) {
954
+ const e = r, t = v(() => ({
1308
955
  gap: typeof e.gap == "number" ? `${e.gap}px` : e.gap
1309
956
  }));
1310
- return (o, n) => (l(), r("div", {
957
+ return (s, o) => (n(), i("div", {
1311
958
  class: "f-container",
1312
- style: B(t.value)
959
+ style: I(u(t))
1313
960
  }, [
1314
- g(o.$slots, "default", {}, void 0, !0)
961
+ h(s.$slots, "default", {}, void 0, !0)
1315
962
  ], 4));
1316
963
  }
1317
- }), Ao = /* @__PURE__ */ w(oo, [["__scopeId", "data-v-7a5352b1"]]), no = /* @__PURE__ */ m({
964
+ }), Co = /* @__PURE__ */ b(Nt, [["__scopeId", "data-v-08450ddf"]]), Gt = /* @__PURE__ */ y({
1318
965
  __name: "FDivider",
1319
966
  props: {
1320
967
  color: {},
1321
968
  direction: { default: "horizontal" },
1322
969
  line: { default: "solid" }
1323
970
  },
1324
- setup(s) {
1325
- const e = s, t = _(() => {
1326
- const o = e.color || "var(--el-color-primary)", n = e.direction === "horizontal";
971
+ setup(r) {
972
+ const e = r, t = v(() => {
973
+ const s = e.color || "var(--el-color-primary)", o = e.direction === "horizontal";
1327
974
  return {
1328
- borderTop: n ? `${e.line} ${o}` : "none",
1329
- borderLeft: n ? "none" : `${e.line} ${o}`,
1330
- height: n ? "0" : "100%",
1331
- width: n ? "100%" : "0",
1332
- margin: n ? "24px 0" : "0"
975
+ borderTop: o ? `${e.line} ${s}` : "none",
976
+ borderLeft: o ? "none" : `${e.line} ${s}`,
977
+ height: o ? "0" : "100%",
978
+ width: o ? "100%" : "0",
979
+ margin: o ? "24px 0" : "0"
1333
980
  };
1334
981
  });
1335
- return (o, n) => (l(), r("hr", {
1336
- style: B(t.value)
982
+ return (s, o) => (n(), i("hr", {
983
+ style: I(t.value)
1337
984
  }, null, 4));
1338
985
  }
1339
- }), Vo = /* @__PURE__ */ w(no, [["__scopeId", "data-v-512ee743"]]), lo = ["src", "alt"], so = /* @__PURE__ */ m({
986
+ }), zo = /* @__PURE__ */ b(Gt, [["__scopeId", "data-v-512ee743"]]), Ut = ["src", "alt"], Xt = /* @__PURE__ */ y({
1340
987
  __name: "FAvatar",
1341
988
  props: {
1342
989
  src: {},
@@ -1345,39 +992,39 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1345
992
  shape: { default: "circle" },
1346
993
  icon: {}
1347
994
  },
1348
- setup(s) {
1349
- const e = s, t = {
995
+ setup(r) {
996
+ const e = r, t = {
1350
997
  small: "32px",
1351
998
  normal: "48px",
1352
999
  large: "64px"
1353
- }, o = _(() => ({
1000
+ }, s = v(() => ({
1354
1001
  width: typeof e.size == "string" ? t[e.size] : `${e.size}px`,
1355
1002
  height: typeof e.size == "string" ? t[e.size] : `${e.size}px`,
1356
1003
  borderRadius: e.shape === "circle" ? "50%" : "8px"
1357
1004
  }));
1358
- return (n, c) => {
1359
- const d = P("f-icon");
1360
- return l(), r("div", {
1005
+ return (o, c) => {
1006
+ const d = O("f-icon");
1007
+ return n(), i("div", {
1361
1008
  class: "f-avatar",
1362
- style: B(o.value)
1009
+ style: I(u(s))
1363
1010
  }, [
1364
- n.src ? (l(), r("img", {
1011
+ o.src ? (n(), i("img", {
1365
1012
  key: 0,
1366
- src: n.src,
1367
- alt: n.alt
1368
- }, null, 8, lo)) : (l(), D(d, {
1013
+ src: o.src,
1014
+ alt: o.alt
1015
+ }, null, 8, Ut)) : (n(), L(d, {
1369
1016
  key: 1,
1370
1017
  size: 24
1371
1018
  }, {
1372
- default: S(() => [
1373
- (l(), D(Y(n.icon ? n.icon : T(We))))
1019
+ default: B(() => [
1020
+ (n(), L(q(o.icon ? o.icon : u(De))))
1374
1021
  ]),
1375
1022
  _: 1
1376
1023
  }))
1377
1024
  ], 4);
1378
1025
  };
1379
1026
  }
1380
- }), Ro = /* @__PURE__ */ w(so, [["__scopeId", "data-v-e28271c3"]]), ao = ["disabled"], ro = /* @__PURE__ */ m({
1027
+ }), xo = /* @__PURE__ */ b(Xt, [["__scopeId", "data-v-799350d0"]]), Yt = ["disabled"], qt = /* @__PURE__ */ y({
1381
1028
  __name: "FButton",
1382
1029
  props: {
1383
1030
  size: { default: "normal" },
@@ -1386,44 +1033,49 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1386
1033
  bgColor: {},
1387
1034
  variant: {}
1388
1035
  },
1389
- setup(s) {
1390
- const e = s, t = {
1036
+ setup(r) {
1037
+ const e = r, t = {
1391
1038
  small: { height: "24px", minWidth: "24px", padding: "0 8px", fontSize: "11px" },
1392
1039
  normal: { height: "32px", minWidth: "32px", padding: "0 12px", fontSize: "12px" },
1393
1040
  large: { height: "40px", minWidth: "40px", padding: "0 16px", fontSize: "13px" }
1394
- }, o = _(() => ({
1395
- ...t[e.size] ?? t.normal,
1396
- borderRadius: e.round === !0 ? "999px" : typeof e.round == "number" ? `${e.round}px` : "6px",
1397
- backgroundColor: e.bgColor
1398
- }));
1399
- return (n, c) => (l(), r("button", {
1400
- class: x(["f-button", [
1401
- `f-button--${n.variant ?? "default"}`,
1402
- { "is-disabled": n.disabled }
1403
- ]]),
1404
- style: B(o.value),
1405
- disabled: n.disabled
1406
- }, [
1407
- g(n.$slots, "default", {}, void 0, !0)
1408
- ], 14, ao));
1041
+ }, s = v(() => {
1042
+ var o;
1043
+ return ne(ae({}, (o = t[e.size]) != null ? o : t.normal), {
1044
+ borderRadius: e.round === !0 ? "999px" : typeof e.round == "number" ? `${e.round}px` : "6px",
1045
+ backgroundColor: e.bgColor
1046
+ });
1047
+ });
1048
+ return (o, c) => {
1049
+ var d;
1050
+ return n(), i("button", {
1051
+ class: C(["f-button", [
1052
+ `f-button--${(d = o.variant) != null ? d : "default"}`,
1053
+ { "is-disabled": o.disabled }
1054
+ ]]),
1055
+ style: I(u(s)),
1056
+ disabled: o.disabled
1057
+ }, [
1058
+ h(o.$slots, "default", {}, void 0, !0)
1059
+ ], 14, Yt);
1060
+ };
1409
1061
  }
1410
- }), Do = /* @__PURE__ */ w(ro, [["__scopeId", "data-v-04df3a98"]]), io = /* @__PURE__ */ m({
1062
+ }), To = /* @__PURE__ */ b(qt, [["__scopeId", "data-v-eeff7101"]]), Jt = /* @__PURE__ */ y({
1411
1063
  __name: "FTypography",
1412
1064
  props: {
1413
1065
  color: { default: "" }
1414
1066
  },
1415
- setup(s) {
1416
- const e = s, t = _(() => ({
1067
+ setup(r) {
1068
+ const e = r, t = v(() => ({
1417
1069
  color: e.color
1418
1070
  }));
1419
- return (o, n) => (l(), r("div", {
1071
+ return (s, o) => (n(), i("div", {
1420
1072
  class: "f-typography",
1421
- style: B(t.value)
1073
+ style: I(u(t))
1422
1074
  }, [
1423
- g(o.$slots, "default", {}, void 0, !0)
1075
+ h(s.$slots, "default", {}, void 0, !0)
1424
1076
  ], 4));
1425
1077
  }
1426
- }), Ho = /* @__PURE__ */ w(io, [["__scopeId", "data-v-40f51ad6"]]), co = /* @__PURE__ */ m({
1078
+ }), So = /* @__PURE__ */ b(Jt, [["__scopeId", "data-v-54c9aca5"]]), Kt = /* @__PURE__ */ y({
1427
1079
  __name: "FText",
1428
1080
  props: {
1429
1081
  tag: { default: "span" },
@@ -1434,37 +1086,46 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1434
1086
  truncate: { type: Boolean },
1435
1087
  italic: { type: Boolean }
1436
1088
  },
1437
- setup(s) {
1438
- const e = s, t = {
1089
+ setup(r) {
1090
+ const e = r, t = {
1439
1091
  1: "3xl",
1440
1092
  2: "2xl",
1441
1093
  3: "xl",
1442
1094
  4: "lg",
1443
1095
  5: "normal",
1444
1096
  6: "sm"
1445
- }, o = {
1097
+ }, s = {
1446
1098
  1: "bolder",
1447
1099
  2: "bold",
1448
1100
  3: "bold",
1449
1101
  4: "medium",
1450
1102
  5: "medium",
1451
1103
  6: "normal"
1452
- }, n = _(() => e.heading ? `h${e.heading}` : e.tag ?? "span"), c = _(() => e.size ?? (e.heading ? t[e.heading] : "normal")), d = _(() => e.weight ?? (e.heading ? o[e.heading] : "normal"));
1453
- return (i, a) => (l(), D(Y(n.value), {
1454
- class: x(["f-text", [
1455
- `f-text--${c.value}`,
1456
- `f-text--${d.value}`,
1457
- i.color && `f-text--${i.color}`,
1458
- { "f-text--truncate": i.truncate, "f-text--italic": i.italic }
1104
+ }, o = v(() => {
1105
+ var l;
1106
+ return e.heading ? `h${e.heading}` : (l = e.tag) != null ? l : "span";
1107
+ }), c = v(() => {
1108
+ var l;
1109
+ return (l = e.size) != null ? l : e.heading ? t[e.heading] : "normal";
1110
+ }), d = v(() => {
1111
+ var l;
1112
+ return (l = e.weight) != null ? l : e.heading ? s[e.heading] : "normal";
1113
+ });
1114
+ return (l, a) => (n(), L(q(u(o)), {
1115
+ class: C(["f-text", [
1116
+ `f-text--${u(c)}`,
1117
+ `f-text--${u(d)}`,
1118
+ l.color && `f-text--${l.color}`,
1119
+ { "f-text--truncate": l.truncate, "f-text--italic": l.italic }
1459
1120
  ]])
1460
1121
  }, {
1461
- default: S(() => [
1462
- g(i.$slots, "default", {}, void 0, !0)
1122
+ default: B(() => [
1123
+ h(l.$slots, "default", {}, void 0, !0)
1463
1124
  ]),
1464
1125
  _: 3
1465
1126
  }, 8, ["class"]));
1466
1127
  }
1467
- }), jo = /* @__PURE__ */ w(co, [["__scopeId", "data-v-ac74c770"]]), uo = ["href", "target", "rel"], po = /* @__PURE__ */ m({
1128
+ }), Mo = /* @__PURE__ */ b(Kt, [["__scopeId", "data-v-8bcfc6b3"]]), Qt = ["href", "target", "rel"], Zt = /* @__PURE__ */ y({
1468
1129
  __name: "FLink",
1469
1130
  props: {
1470
1131
  href: {},
@@ -1473,10 +1134,10 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1473
1134
  color: {},
1474
1135
  disabled: { type: Boolean }
1475
1136
  },
1476
- setup(s) {
1477
- const e = s;
1478
- return (t, o) => (l(), r("a", {
1479
- class: x(["f-link", [
1137
+ setup(r) {
1138
+ const e = r;
1139
+ return (t, s) => (n(), i("a", {
1140
+ class: C(["f-link", [
1480
1141
  e.color && `f-link--${e.color}`,
1481
1142
  `f-link--underline-${e.underline}`,
1482
1143
  { "f-link--disabled": e.disabled }
@@ -1485,10 +1146,10 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1485
1146
  target: e.target,
1486
1147
  rel: e.target === "_blank" ? "noopener noreferrer" : void 0
1487
1148
  }, [
1488
- g(t.$slots, "default", {}, void 0, !0)
1489
- ], 10, uo));
1149
+ h(t.$slots, "default", {}, void 0, !0)
1150
+ ], 10, Qt));
1490
1151
  }
1491
- }), Oo = /* @__PURE__ */ w(po, [["__scopeId", "data-v-daaa3e25"]]), fo = { class: "f-badge" }, vo = /* @__PURE__ */ m({
1152
+ }), Bo = /* @__PURE__ */ b(Zt, [["__scopeId", "data-v-daaa3e25"]]), eo = { class: "f-badge" }, to = /* @__PURE__ */ y({
1492
1153
  __name: "FBadge",
1493
1154
  props: {
1494
1155
  value: {},
@@ -1498,49 +1159,52 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1498
1159
  placement: { default: "top-right" },
1499
1160
  offset: { default: () => [0, 0] }
1500
1161
  },
1501
- setup(s) {
1502
- const e = s, t = _(() => e.dot ? "" : typeof e.value == "number" && e.value > e.max ? `${e.max}+` : e.value ?? ""), o = _(() => {
1503
- const [n, c] = e.offset;
1162
+ setup(r) {
1163
+ const e = r, t = v(() => {
1164
+ var o;
1165
+ return e.dot ? "" : typeof e.value == "number" && e.value > e.max ? `${e.max}+` : (o = e.value) != null ? o : "";
1166
+ }), s = v(() => {
1167
+ const [o, c] = e.offset;
1504
1168
  return {
1505
- "top-right": { top: 0, right: 0, transform: `translate(calc(50% + ${n}px), calc(-50% + ${c}px))` },
1506
- "top-left": { top: 0, left: 0, transform: `translate(calc(-50% + ${n}px), calc(-50% + ${c}px))` },
1507
- "bottom-right": { bottom: 0, right: 0, transform: `translate(calc(50% + ${n}px), calc(50% + ${c}px))` },
1508
- "bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${n}px), calc(50% + ${c}px))` }
1169
+ "top-right": { top: 0, right: 0, transform: `translate(calc(50% + ${o}px), calc(-50% + ${c}px))` },
1170
+ "top-left": { top: 0, left: 0, transform: `translate(calc(-50% + ${o}px), calc(-50% + ${c}px))` },
1171
+ "bottom-right": { bottom: 0, right: 0, transform: `translate(calc(50% + ${o}px), calc(50% + ${c}px))` },
1172
+ "bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${o}px), calc(50% + ${c}px))` }
1509
1173
  }[e.placement];
1510
1174
  });
1511
- return (n, c) => (l(), r("div", fo, [
1512
- g(n.$slots, "default", {}, void 0, !0),
1513
- n.dot || n.value !== void 0 && n.value !== "" ? (l(), r("span", {
1175
+ return (o, c) => (n(), i("div", eo, [
1176
+ h(o.$slots, "default", {}, void 0, !0),
1177
+ o.dot || o.value !== void 0 && o.value !== "" ? (n(), i("span", {
1514
1178
  key: 0,
1515
- class: x(["f-badge__content", [`f-badge--${n.type}`, { "f-badge--dot": n.dot }]]),
1516
- style: B(o.value)
1517
- }, V(t.value), 7)) : b("", !0)
1179
+ class: C(["f-badge__content", [`f-badge--${o.type}`, { "f-badge--dot": o.dot }]]),
1180
+ style: I(u(s))
1181
+ }, A(u(t)), 7)) : k("", !0)
1518
1182
  ]));
1519
1183
  }
1520
- }), Wo = /* @__PURE__ */ w(vo, [["__scopeId", "data-v-b9d3e8d6"]]), mo = /* @__PURE__ */ m({
1184
+ }), Io = /* @__PURE__ */ b(to, [["__scopeId", "data-v-be6947ff"]]), oo = /* @__PURE__ */ y({
1521
1185
  __name: "FAffix",
1522
1186
  props: {
1523
1187
  placement: { default: "top-right" },
1524
1188
  offset: { default: () => [8, 8] }
1525
1189
  },
1526
- setup(s) {
1527
- const e = s, t = _(() => {
1528
- const [o, n] = e.offset;
1190
+ setup(r) {
1191
+ const e = r, t = v(() => {
1192
+ const [s, o] = e.offset;
1529
1193
  return {
1530
- "top-left": { top: `${n}px`, left: `${o}px` },
1531
- "top-right": { top: `${n}px`, right: `${o}px` },
1532
- "bottom-left": { bottom: `${n}px`, left: `${o}px` },
1533
- "bottom-right": { bottom: `${n}px`, right: `${o}px` }
1194
+ "top-left": { top: `${o}px`, left: `${s}px` },
1195
+ "top-right": { top: `${o}px`, right: `${s}px` },
1196
+ "bottom-left": { bottom: `${o}px`, left: `${s}px` },
1197
+ "bottom-right": { bottom: `${o}px`, right: `${s}px` }
1534
1198
  }[e.placement];
1535
1199
  });
1536
- return (o, n) => (l(), r("div", {
1200
+ return (s, o) => (n(), i("div", {
1537
1201
  class: "f-affix",
1538
- style: B(t.value)
1202
+ style: I(u(t))
1539
1203
  }, [
1540
- g(o.$slots, "default", {}, void 0, !0)
1204
+ h(s.$slots, "default", {}, void 0, !0)
1541
1205
  ], 4));
1542
1206
  }
1543
- }), Po = /* @__PURE__ */ w(mo, [["__scopeId", "data-v-2ba0b82c"]]), Eo = (s) => {
1207
+ }), Vo = /* @__PURE__ */ b(oo, [["__scopeId", "data-v-8506d679"]]), Ro = (r) => {
1544
1208
  [
1545
1209
  "FInput",
1546
1210
  "FImage",
@@ -1569,35 +1233,35 @@ const pt = { class: "f-dropdown-wrapper" }, ft = { class: "f-dropdown-content" }
1569
1233
  "FBadge",
1570
1234
  "FAffix"
1571
1235
  ].forEach((t) => {
1572
- s.component(t, ye(() => we(/* @__PURE__ */ Object.assign({}), `./common/${t}.vue`, 3)));
1236
+ r.component(t, Ce(() => Pe(/* @__PURE__ */ Object.assign({}), `./common/${t}.vue`, 3)));
1573
1237
  });
1574
1238
  };
1575
1239
  export {
1576
- Po as FAffix,
1577
- Ro as FAvatar,
1578
- Wo as FBadge,
1579
- Bo as FBreadcrumb,
1580
- Do as FButton,
1581
- Co as FCard,
1582
- To as FCol,
1583
- Ao as FContainer,
1584
- Vo as FDivider,
1585
- bo as FDropdown,
1586
- _o as FIcon,
1587
- go as FImage,
1588
- yo as FInput,
1589
- Oo as FLink,
1590
- wo as FLoading,
1591
- xo as FPagination,
1592
- Mo as FProgress,
1593
- $o as FRate,
1594
- Io as FRow,
1595
- ko as FSelect,
1596
- Lo as FSpace,
1597
- So as FTabs,
1598
- Fo as FTag,
1599
- jo as FText,
1600
- zo as FTooltip,
1601
- Ho as FTypography,
1602
- Eo as install
1240
+ Vo as FAffix,
1241
+ xo as FAvatar,
1242
+ Io as FBadge,
1243
+ $o as FBreadcrumb,
1244
+ To as FButton,
1245
+ vo as FCard,
1246
+ wo as FCol,
1247
+ Co as FContainer,
1248
+ zo as FDivider,
1249
+ po as FDropdown,
1250
+ ro as FIcon,
1251
+ io as FImage,
1252
+ co as FInput,
1253
+ Bo as FLink,
1254
+ uo as FLoading,
1255
+ _o as FPagination,
1256
+ yo as FProgress,
1257
+ fo as FRate,
1258
+ ko as FRow,
1259
+ mo as FSelect,
1260
+ Fo as FSpace,
1261
+ bo as FTabs,
1262
+ ho as FTag,
1263
+ Mo as FText,
1264
+ go as FTooltip,
1265
+ So as FTypography,
1266
+ Ro as install
1603
1267
  };