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.
- package/README.en.md +14 -1
- package/README.md +16 -3
- package/dist/fantasia-ui.css +1 -0
- package/dist/fantasia-ui.es.js +620 -956
- package/dist/fantasia-ui.umd.js +1 -2
- package/package.json +36 -15
- package/dist/assets/index.d.ts +0 -5
- package/dist/components/index.d.ts +0 -27
- package/dist/components/modules/FAffix.vue.d.ts +0 -21
- package/dist/components/modules/FAvatar.vue.d.ts +0 -6
- package/dist/components/modules/FBadge.vue.d.ts +0 -24
- package/dist/components/modules/FBreadcrumb.vue.d.ts +0 -24
- package/dist/components/modules/FButton.vue.d.ts +0 -21
- package/dist/components/modules/FCard.vue.d.ts +0 -31
- package/dist/components/modules/FCol.vue.d.ts +0 -22
- package/dist/components/modules/FContainer.vue.d.ts +0 -20
- package/dist/components/modules/FDivider.vue.d.ts +0 -6
- package/dist/components/modules/FDropdown.vue.d.ts +0 -35
- package/dist/components/modules/FIcon.vue.d.ts +0 -20
- package/dist/components/modules/FImage.vue.d.ts +0 -23
- package/dist/components/modules/FInput.vue.d.ts +0 -27
- package/dist/components/modules/FLink.vue.d.ts +0 -21
- package/dist/components/modules/FLoading.vue.d.ts +0 -6
- package/dist/components/modules/FPagination.vue.d.ts +0 -16
- package/dist/components/modules/FProgress.vue.d.ts +0 -6
- package/dist/components/modules/FRate.vue.d.ts +0 -22
- package/dist/components/modules/FRow.vue.d.ts +0 -24
- package/dist/components/modules/FSelect.vue.d.ts +0 -17
- package/dist/components/modules/FSpace.vue.d.ts +0 -9
- package/dist/components/modules/FTabs.vue.d.ts +0 -24
- package/dist/components/modules/FTag.vue.d.ts +0 -25
- package/dist/components/modules/FText.vue.d.ts +0 -22
- package/dist/components/modules/FTooltip.vue.d.ts +0 -31
- package/dist/components/modules/FTypography.vue.d.ts +0 -22
- package/dist/index.css +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/types/components/modules/base.d.ts +0 -7
- package/dist/types/components/modules/f-affix.d.ts +0 -5
- package/dist/types/components/modules/f-avatar.d.ts +0 -10
- package/dist/types/components/modules/f-badge.d.ts +0 -9
- package/dist/types/components/modules/f-breadcrumb.d.ts +0 -10
- package/dist/types/components/modules/f-button.d.ts +0 -9
- package/dist/types/components/modules/f-card.d.ts +0 -6
- package/dist/types/components/modules/f-col.d.ts +0 -15
- package/dist/types/components/modules/f-container.d.ts +0 -4
- package/dist/types/components/modules/f-dialog.d.ts +0 -6
- package/dist/types/components/modules/f-divider.d.ts +0 -8
- package/dist/types/components/modules/f-dropdown.d.ts +0 -17
- package/dist/types/components/modules/f-form.d.ts +0 -83
- package/dist/types/components/modules/f-icon.d.ts +0 -5
- package/dist/types/components/modules/f-image.d.ts +0 -8
- package/dist/types/components/modules/f-input.d.ts +0 -9
- package/dist/types/components/modules/f-link.d.ts +0 -8
- package/dist/types/components/modules/f-loading.d.ts +0 -6
- package/dist/types/components/modules/f-menu.d.ts +0 -13
- package/dist/types/components/modules/f-pagination.d.ts +0 -6
- package/dist/types/components/modules/f-progress.d.ts +0 -7
- package/dist/types/components/modules/f-rate.d.ts +0 -12
- package/dist/types/components/modules/f-row.d.ts +0 -9
- package/dist/types/components/modules/f-slider-captcha.d.ts +0 -16
- package/dist/types/components/modules/f-space.d.ts +0 -11
- package/dist/types/components/modules/f-table.d.ts +0 -12
- package/dist/types/components/modules/f-tabs.d.ts +0 -12
- package/dist/types/components/modules/f-tag.d.ts +0 -10
- package/dist/types/components/modules/f-tagsview.d.ts +0 -7
- package/dist/types/components/modules/f-text.d.ts +0 -10
- package/dist/types/components/modules/f-toolbar.d.ts +0 -26
- package/dist/types/components/modules/f-tooltip.d.ts +0 -10
- package/dist/types/components/modules/f-upload.d.ts +0 -11
- package/dist/types/models/index.d.ts +0 -26
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
},
|
|
44
|
+
}, We = /* @__PURE__ */ y({
|
|
15
45
|
__name: "FIcon",
|
|
16
46
|
props: {
|
|
17
47
|
color: {},
|
|
18
48
|
size: { default: "1em" }
|
|
19
49
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const e =
|
|
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 (
|
|
56
|
+
return (s, o) => (n(), i("span", {
|
|
27
57
|
role: "img",
|
|
28
58
|
class: "f-icon",
|
|
29
|
-
style:
|
|
59
|
+
style: I(u(t))
|
|
30
60
|
}, [
|
|
31
|
-
|
|
61
|
+
h(s.$slots, "default", {}, void 0, !0)
|
|
32
62
|
], 4));
|
|
33
63
|
}
|
|
34
|
-
}),
|
|
35
|
-
const t =
|
|
36
|
-
for (const [
|
|
37
|
-
t[
|
|
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
|
-
},
|
|
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
|
-
},
|
|
72
|
+
}, je = {
|
|
43
73
|
key: 0,
|
|
44
74
|
class: "f-image__error"
|
|
45
|
-
},
|
|
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(
|
|
54
|
-
const e =
|
|
55
|
-
|
|
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
|
|
88
|
+
const s = () => t.value = "loaded", o = () => t.value = "error";
|
|
59
89
|
return (c, d) => {
|
|
60
|
-
const
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
t
|
|
65
|
-
|
|
66
|
-
])) :
|
|
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
|
-
|
|
71
|
-
default:
|
|
72
|
-
t
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
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
|
-
])) :
|
|
111
|
+
])) : k("", !0)
|
|
82
112
|
]),
|
|
83
113
|
_: 3
|
|
84
114
|
}),
|
|
85
|
-
|
|
115
|
+
Z(z("img", {
|
|
86
116
|
src: e.src,
|
|
87
117
|
loading: c.lazy ? "lazy" : "eager",
|
|
88
|
-
style:
|
|
118
|
+
style: I({ objectFit: e.fit }),
|
|
89
119
|
class: "f-image__img",
|
|
90
|
-
onLoad:
|
|
91
|
-
onError:
|
|
92
|
-
}, null, 44,
|
|
93
|
-
[
|
|
120
|
+
onLoad: s,
|
|
121
|
+
onError: o
|
|
122
|
+
}, null, 44, Ne), [
|
|
123
|
+
[ce, u(t) === "loaded"]
|
|
94
124
|
])
|
|
95
125
|
]);
|
|
96
126
|
};
|
|
97
127
|
}
|
|
98
|
-
}),
|
|
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(
|
|
441
|
-
const t =
|
|
442
|
-
const
|
|
443
|
-
|
|
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
|
|
446
|
-
|
|
147
|
+
const _ = a.target.value;
|
|
148
|
+
s("change", _);
|
|
447
149
|
}, d = (a) => {
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
|
|
150
|
+
s("focus", a);
|
|
151
|
+
}, l = (a) => {
|
|
152
|
+
s("blur", a);
|
|
451
153
|
};
|
|
452
|
-
return (a,
|
|
453
|
-
const
|
|
454
|
-
return
|
|
455
|
-
class:
|
|
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
|
-
|
|
458
|
-
default:
|
|
459
|
-
|
|
159
|
+
T(f, { class: "f-input__icon" }, {
|
|
160
|
+
default: B(() => [
|
|
161
|
+
T(u(ze))
|
|
460
162
|
]),
|
|
461
163
|
_: 1
|
|
462
164
|
}),
|
|
463
|
-
|
|
165
|
+
Z(z("input", {
|
|
464
166
|
class: "f-input__text",
|
|
465
|
-
"onUpdate:modelValue":
|
|
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 :
|
|
171
|
+
readonly: "readonly" in a ? a.readonly : u(re),
|
|
470
172
|
name: a.name,
|
|
471
173
|
id: a.id,
|
|
472
|
-
onInput:
|
|
174
|
+
onInput: o,
|
|
473
175
|
onChange: c,
|
|
474
176
|
onFocus: d,
|
|
475
|
-
onBlur:
|
|
476
|
-
}, null, 40,
|
|
477
|
-
[
|
|
177
|
+
onBlur: l
|
|
178
|
+
}, null, 40, Ue), [
|
|
179
|
+
[$e, t.value]
|
|
478
180
|
])
|
|
479
181
|
], 2);
|
|
480
182
|
};
|
|
481
183
|
}
|
|
482
|
-
}),
|
|
184
|
+
}), co = /* @__PURE__ */ b(Xe, [["__scopeId", "data-v-6c6d7c63"]]), Ye = {
|
|
483
185
|
key: 0,
|
|
484
186
|
class: "loop cubes"
|
|
485
|
-
},
|
|
187
|
+
}, qe = {
|
|
486
188
|
key: 2,
|
|
487
189
|
class: "msg"
|
|
488
|
-
},
|
|
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(
|
|
496
|
-
const e =
|
|
497
|
-
return (t,
|
|
498
|
-
class:
|
|
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" ? (
|
|
501
|
-
(
|
|
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:
|
|
205
|
+
key: o
|
|
504
206
|
})), 64))
|
|
505
|
-
])) : (
|
|
207
|
+
])) : (n(), i("div", {
|
|
506
208
|
key: 1,
|
|
507
|
-
class:
|
|
209
|
+
class: C(["loader", t.type])
|
|
508
210
|
}, null, 2)),
|
|
509
|
-
e.text ? (
|
|
211
|
+
e.text ? (n(), i("p", qe, A(e.text), 1)) : k("", !0)
|
|
510
212
|
], 2));
|
|
511
213
|
}
|
|
512
|
-
}),
|
|
214
|
+
}), uo = /* @__PURE__ */ b(Je, [["__scopeId", "data-v-26005e98"]]), Ke = ["onMousemove"], Qe = {
|
|
513
215
|
key: 0,
|
|
514
216
|
class: "f-rate__score"
|
|
515
|
-
},
|
|
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(
|
|
533
|
-
const t =
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
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 =
|
|
547
|
-
},
|
|
548
|
-
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
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 (
|
|
555
|
-
const
|
|
556
|
-
return
|
|
557
|
-
class:
|
|
558
|
-
onMouseleave:
|
|
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
|
-
(
|
|
561
|
-
key:
|
|
266
|
+
(n(!0), i(D, null, U(s.count, (x) => (n(), i("span", {
|
|
267
|
+
key: x,
|
|
562
268
|
class: "f-rate__item",
|
|
563
|
-
onMousemove: (
|
|
564
|
-
onClick:
|
|
269
|
+
onMousemove: (H) => p(H, x),
|
|
270
|
+
onClick: S
|
|
565
271
|
}, [
|
|
566
|
-
|
|
567
|
-
color:
|
|
568
|
-
size: a
|
|
272
|
+
T(V, {
|
|
273
|
+
color: f(x),
|
|
274
|
+
size: u(a)
|
|
569
275
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
|
|
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,
|
|
576
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
655
|
-
const t =
|
|
656
|
-
const [
|
|
657
|
-
return
|
|
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
|
|
661
|
-
let
|
|
662
|
-
|
|
663
|
-
const
|
|
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: `${
|
|
666
|
-
left: `${
|
|
667
|
-
transformOrigin: `${
|
|
310
|
+
top: `${P}px`,
|
|
311
|
+
left: `${W}px`,
|
|
312
|
+
transformOrigin: `${_e} ${me}`
|
|
668
313
|
};
|
|
669
314
|
});
|
|
670
|
-
let
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
},
|
|
674
|
-
t.trigger === "click" && (
|
|
675
|
-
},
|
|
676
|
-
t.trigger === "hover" && (
|
|
677
|
-
d.value && (c.value = d.value.getBoundingClientRect()),
|
|
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
|
-
},
|
|
680
|
-
t.trigger === "hover" && (
|
|
681
|
-
|
|
324
|
+
}, x = () => {
|
|
325
|
+
t.trigger === "hover" && (S && (clearTimeout(S), S = null), F = setTimeout(() => {
|
|
326
|
+
o.value = !1;
|
|
682
327
|
}, 400));
|
|
683
|
-
},
|
|
684
|
-
t.trigger !== "click" || !
|
|
685
|
-
}, J = (
|
|
686
|
-
|
|
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
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
}),
|
|
692
|
-
|
|
693
|
-
}),
|
|
694
|
-
|
|
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:
|
|
699
|
-
onMouseleave:
|
|
700
|
-
onClick:
|
|
343
|
+
onMouseenter: V,
|
|
344
|
+
onMouseleave: x,
|
|
345
|
+
onClick: M
|
|
701
346
|
}, [
|
|
702
|
-
|
|
347
|
+
h(m.$slots, "default", {}, void 0, !0)
|
|
703
348
|
], 544),
|
|
704
|
-
(
|
|
705
|
-
|
|
706
|
-
default:
|
|
707
|
-
|
|
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:
|
|
355
|
+
ref: l,
|
|
711
356
|
class: "f-dropdown-item",
|
|
712
|
-
style:
|
|
713
|
-
onMouseenter:
|
|
714
|
-
onMouseleave:
|
|
715
|
-
onClick:
|
|
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
|
-
|
|
363
|
+
m.trigger === "hover" ? (n(), i("div", {
|
|
719
364
|
key: 0,
|
|
720
365
|
class: "f-dropdown-bridge",
|
|
721
|
-
style:
|
|
722
|
-
}, null, 4)) :
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
key:
|
|
726
|
-
class:
|
|
727
|
-
onClick: (
|
|
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
|
-
|
|
730
|
-
(
|
|
731
|
-
])) :
|
|
732
|
-
|
|
733
|
-
], 10,
|
|
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)) :
|
|
380
|
+
], 36)) : k("", !0)
|
|
736
381
|
]),
|
|
737
382
|
_: 3
|
|
738
383
|
})
|
|
739
384
|
]))
|
|
740
385
|
]));
|
|
741
386
|
}
|
|
742
|
-
}),
|
|
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(
|
|
753
|
-
const t =
|
|
397
|
+
setup(r, { emit: e }) {
|
|
398
|
+
const t = r, s = e, o = Q(r, "modelValue"), c = R(!1), d = v(
|
|
754
399
|
() => {
|
|
755
|
-
var
|
|
756
|
-
return ((
|
|
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
|
-
),
|
|
759
|
-
|
|
760
|
-
},
|
|
761
|
-
c.value =
|
|
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 (
|
|
764
|
-
const
|
|
765
|
-
return
|
|
766
|
-
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] = (
|
|
770
|
-
onHide: p[1] || (p[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:
|
|
775
|
-
|
|
776
|
-
class:
|
|
419
|
+
default: B(() => [
|
|
420
|
+
z("div", {
|
|
421
|
+
class: C(["f-select", { "is-active": u(l), "is-open": u(c) }])
|
|
777
422
|
}, [
|
|
778
|
-
|
|
779
|
-
class:
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
default:
|
|
783
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
808
|
-
const t =
|
|
809
|
-
const
|
|
810
|
-
return !
|
|
811
|
-
}), d = (
|
|
812
|
-
typeof
|
|
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 (
|
|
815
|
-
const
|
|
816
|
-
return
|
|
817
|
-
|
|
818
|
-
class:
|
|
819
|
-
onClick: a[0] || (a[0] = (
|
|
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
|
-
|
|
822
|
-
default:
|
|
823
|
-
|
|
466
|
+
T(_, null, {
|
|
467
|
+
default: B(() => [
|
|
468
|
+
T(u(Be))
|
|
824
469
|
]),
|
|
825
470
|
_: 1
|
|
826
471
|
})
|
|
827
472
|
], 2),
|
|
828
|
-
|
|
829
|
-
(
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
default:
|
|
833
|
-
|
|
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
|
-
])) : (
|
|
482
|
+
])) : (n(), i("li", {
|
|
838
483
|
key: 1,
|
|
839
|
-
class:
|
|
840
|
-
onClick: (
|
|
841
|
-
},
|
|
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
|
-
|
|
845
|
-
class:
|
|
846
|
-
onClick: a[1] || (a[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
|
-
|
|
849
|
-
default:
|
|
850
|
-
|
|
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
|
-
}),
|
|
503
|
+
}), _o = /* @__PURE__ */ b(ut, [["__scopeId", "data-v-e58f1ac9"]]), ft = {
|
|
859
504
|
key: 0,
|
|
860
505
|
class: "f-card__header"
|
|
861
|
-
},
|
|
506
|
+
}, pt = {
|
|
862
507
|
key: 0,
|
|
863
508
|
class: "f-card__header-extra"
|
|
864
|
-
},
|
|
509
|
+
}, mt = {
|
|
865
510
|
key: 1,
|
|
866
511
|
class: "f-card__cover"
|
|
867
|
-
},
|
|
512
|
+
}, _t = {
|
|
868
513
|
key: 2,
|
|
869
514
|
class: "f-card__body"
|
|
870
|
-
},
|
|
515
|
+
}, vt = {
|
|
871
516
|
key: 3,
|
|
872
517
|
class: "f-card__footer"
|
|
873
|
-
},
|
|
518
|
+
}, ht = {
|
|
874
519
|
key: 0,
|
|
875
520
|
class: "f-card__header"
|
|
876
|
-
},
|
|
521
|
+
}, gt = {
|
|
877
522
|
key: 0,
|
|
878
523
|
class: "f-card__header-extra"
|
|
879
|
-
},
|
|
524
|
+
}, yt = {
|
|
880
525
|
key: 1,
|
|
881
526
|
class: "f-card__cover"
|
|
882
|
-
},
|
|
527
|
+
}, bt = { class: "f-card__content" }, $t = {
|
|
883
528
|
key: 0,
|
|
884
529
|
class: "f-card__body"
|
|
885
|
-
},
|
|
530
|
+
}, wt = {
|
|
886
531
|
key: 1,
|
|
887
532
|
class: "f-card__footer"
|
|
888
|
-
},
|
|
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(
|
|
895
|
-
return (e, t) => (
|
|
896
|
-
class:
|
|
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" ? (
|
|
899
|
-
e.$slots.header || e.$slots["header-extra"] ? (
|
|
900
|
-
|
|
901
|
-
e.$slots["header-extra"] ? (
|
|
902
|
-
|
|
903
|
-
])) :
|
|
904
|
-
])) :
|
|
905
|
-
e.$slots.cover ? (
|
|
906
|
-
|
|
907
|
-
])) :
|
|
908
|
-
e.$slots.default ? (
|
|
909
|
-
|
|
910
|
-
])) :
|
|
911
|
-
e.$slots.footer ? (
|
|
912
|
-
|
|
913
|
-
])) :
|
|
914
|
-
], 64)) : (
|
|
915
|
-
e.$slots.header || e.$slots["header-extra"] ? (
|
|
916
|
-
|
|
917
|
-
e.$slots["header-extra"] ? (
|
|
918
|
-
|
|
919
|
-
])) :
|
|
920
|
-
])) :
|
|
921
|
-
e.$slots.cover ? (
|
|
922
|
-
|
|
923
|
-
])) :
|
|
924
|
-
|
|
925
|
-
e.$slots.default ? (
|
|
926
|
-
|
|
927
|
-
])) :
|
|
928
|
-
e.$slots.footer ? (
|
|
929
|
-
|
|
930
|
-
])) :
|
|
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
|
-
}),
|
|
580
|
+
}), vo = /* @__PURE__ */ b(kt, [["__scopeId", "data-v-a66fa373"]]), Ft = {
|
|
936
581
|
key: 0,
|
|
937
582
|
class: "f-tag__dot"
|
|
938
|
-
},
|
|
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(
|
|
949
|
-
const t = e,
|
|
950
|
-
return (
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
`f-tag--${
|
|
956
|
-
|
|
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] = (
|
|
959
|
-
onMouseleave: c[2] || (c[2] = (
|
|
604
|
+
onMouseenter: c[1] || (c[1] = (f) => s.value = !0),
|
|
605
|
+
onMouseleave: c[2] || (c[2] = (f) => s.value = !1)
|
|
960
606
|
}, [
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
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] =
|
|
612
|
+
onClick: c[0] || (c[0] = pe((f) => t("close"), ["stop"]))
|
|
967
613
|
}, {
|
|
968
|
-
default:
|
|
969
|
-
(
|
|
614
|
+
default: B(() => [
|
|
615
|
+
(n(), L(q(u(s) ? u(Re) : u(Ae))))
|
|
970
616
|
]),
|
|
971
617
|
_: 1
|
|
972
|
-
})) :
|
|
618
|
+
})) : k("", !0)
|
|
973
619
|
], 34);
|
|
974
620
|
};
|
|
975
621
|
}
|
|
976
|
-
}),
|
|
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(
|
|
987
|
-
const e =
|
|
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
|
|
635
|
+
const l = () => {
|
|
990
636
|
e.disabled || (d = setTimeout(() => {
|
|
991
|
-
|
|
637
|
+
o.value = !0, de(_);
|
|
992
638
|
}, e.delay));
|
|
993
639
|
}, a = () => {
|
|
994
|
-
d && clearTimeout(d),
|
|
995
|
-
},
|
|
996
|
-
var J;
|
|
997
|
-
if (!
|
|
998
|
-
const
|
|
999
|
-
if (!
|
|
1000
|
-
const p =
|
|
1001
|
-
let
|
|
1002
|
-
switch (
|
|
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
|
-
|
|
650
|
+
V = p.top - F.height - S;
|
|
1005
651
|
break;
|
|
1006
652
|
case "bottom":
|
|
1007
|
-
|
|
653
|
+
V = p.bottom + S;
|
|
1008
654
|
break;
|
|
1009
655
|
case "left":
|
|
1010
|
-
|
|
656
|
+
x = p.left - F.width - S;
|
|
1011
657
|
break;
|
|
1012
658
|
case "right":
|
|
1013
|
-
|
|
659
|
+
x = p.right + S;
|
|
1014
660
|
break;
|
|
1015
661
|
}
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1018
|
-
|
|
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
|
|
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:
|
|
670
|
+
onMouseenter: l,
|
|
1025
671
|
onMouseleave: a
|
|
1026
672
|
}, [
|
|
1027
|
-
|
|
1028
|
-
(
|
|
1029
|
-
|
|
1030
|
-
default:
|
|
1031
|
-
|
|
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:
|
|
1035
|
-
class:
|
|
1036
|
-
style:
|
|
1037
|
-
top: `${c.
|
|
1038
|
-
left: `${c.
|
|
1039
|
-
maxWidth: `${
|
|
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
|
-
|
|
1043
|
-
|
|
688
|
+
h(f.$slots, "content", {}, () => [
|
|
689
|
+
we(A(f.content), 1)
|
|
1044
690
|
], !0),
|
|
1045
|
-
p[0] || (p[0] =
|
|
1046
|
-
], 6)) :
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
1065
|
-
const e =
|
|
1066
|
-
return (
|
|
1067
|
-
|
|
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:
|
|
715
|
+
style: I({ height: `${s.height}px` })
|
|
1070
716
|
}, [
|
|
1071
|
-
|
|
717
|
+
z("div", {
|
|
1072
718
|
class: "f-progress__fill",
|
|
1073
|
-
style:
|
|
1074
|
-
width: `${t
|
|
1075
|
-
background:
|
|
719
|
+
style: I({
|
|
720
|
+
width: `${u(t)}%`,
|
|
721
|
+
background: s.color
|
|
1076
722
|
})
|
|
1077
723
|
}, null, 4)
|
|
1078
724
|
], 4),
|
|
1079
|
-
|
|
725
|
+
s.showText ? (n(), i("span", Tt, A(u(t)) + "%", 1)) : k("", !0)
|
|
1080
726
|
]));
|
|
1081
727
|
}
|
|
1082
|
-
}),
|
|
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(
|
|
1091
|
-
const t =
|
|
736
|
+
setup(r, { emit: e }) {
|
|
737
|
+
const t = r, s = e, o = v({
|
|
1092
738
|
get: () => {
|
|
1093
|
-
|
|
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((
|
|
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
|
-
|
|
746
|
+
s("update:active", d), s("change", d);
|
|
1100
747
|
}
|
|
1101
|
-
}), c = (d,
|
|
1102
|
-
|
|
748
|
+
}), c = (d, l) => {
|
|
749
|
+
l || (o.value = d);
|
|
1103
750
|
};
|
|
1104
|
-
return (d,
|
|
1105
|
-
class:
|
|
751
|
+
return (d, l) => (n(), i("div", {
|
|
752
|
+
class: C(["f-tabs", [`f-tabs--${d.type}`]])
|
|
1106
753
|
}, [
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
(
|
|
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:
|
|
1112
|
-
active:
|
|
758
|
+
class: C(["f-tabs__tab", {
|
|
759
|
+
active: u(o) === a.name,
|
|
1113
760
|
disabled: a.disabled
|
|
1114
761
|
}]),
|
|
1115
|
-
onClick: (
|
|
762
|
+
onClick: (_) => c(a.name, a.disabled)
|
|
1116
763
|
}, [
|
|
1117
|
-
|
|
1118
|
-
], 10,
|
|
764
|
+
z("span", Vt, A(a.label), 1)
|
|
765
|
+
], 10, It))), 128))
|
|
1119
766
|
])
|
|
1120
767
|
]),
|
|
1121
|
-
(
|
|
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
|
-
|
|
772
|
+
h(d.$slots, a.name, {}, void 0, !0)
|
|
1126
773
|
])), [
|
|
1127
|
-
[
|
|
774
|
+
[ce, u(o) === a.name]
|
|
1128
775
|
])), 128))
|
|
1129
776
|
], 2));
|
|
1130
777
|
}
|
|
1131
|
-
}),
|
|
778
|
+
}), bo = /* @__PURE__ */ b(Rt, [["__scopeId", "data-v-268fc654"]]), At = {
|
|
1132
779
|
class: "f-breadcrumb__current",
|
|
1133
780
|
"aria-current": "page"
|
|
1134
|
-
},
|
|
781
|
+
}, Dt = ["href"], Lt = {
|
|
1135
782
|
key: 3,
|
|
1136
783
|
class: "f-breadcrumb__text"
|
|
1137
|
-
},
|
|
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(
|
|
1145
|
-
return (e, t) => (
|
|
1146
|
-
class:
|
|
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
|
-
|
|
1150
|
-
default:
|
|
1151
|
-
(
|
|
1152
|
-
key:
|
|
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
|
-
|
|
1155
|
-
key: `sep-${
|
|
801
|
+
o > 0 ? (n(), i("span", {
|
|
802
|
+
key: `sep-${s.label}`,
|
|
1156
803
|
class: "f-breadcrumb__sep",
|
|
1157
804
|
"aria-hidden": "true"
|
|
1158
|
-
},
|
|
1159
|
-
|
|
805
|
+
}, A(e.separator), 1)) : k("", !0),
|
|
806
|
+
o === e.items.length - 1 ? h(e.$slots, "default", {
|
|
1160
807
|
key: 1,
|
|
1161
|
-
item:
|
|
808
|
+
item: s
|
|
1162
809
|
}, () => [
|
|
1163
|
-
|
|
1164
|
-
], !0) :
|
|
810
|
+
z("span", At, A(s.label), 1)
|
|
811
|
+
], !0) : s.href ? (n(), i("a", {
|
|
1165
812
|
key: 2,
|
|
1166
|
-
href:
|
|
813
|
+
href: s.href,
|
|
1167
814
|
class: "f-breadcrumb__link"
|
|
1168
|
-
},
|
|
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
|
-
}),
|
|
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(
|
|
1187
|
-
const e =
|
|
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
|
-
})),
|
|
838
|
+
})), o = v(() => {
|
|
1192
839
|
const c = [], d = { xs: e.xs, sm: e.sm, md: e.md, lg: e.lg };
|
|
1193
|
-
for (const [
|
|
840
|
+
for (const [l, a] of Object.entries(d)) {
|
|
1194
841
|
if (a === void 0) continue;
|
|
1195
|
-
const { span:
|
|
1196
|
-
|
|
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) => (
|
|
1201
|
-
class:
|
|
1202
|
-
style:
|
|
847
|
+
return (c, d) => (n(), i("div", {
|
|
848
|
+
class: C(["f-col", u(o)]),
|
|
849
|
+
style: I(u(s))
|
|
1203
850
|
}, [
|
|
1204
|
-
|
|
851
|
+
h(c.$slots, "default", {}, void 0, !0)
|
|
1205
852
|
], 6));
|
|
1206
853
|
}
|
|
1207
|
-
}),
|
|
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(
|
|
1217
|
-
const e =
|
|
863
|
+
setup(r) {
|
|
864
|
+
const e = r, t = v(
|
|
1218
865
|
() => Array.isArray(e.gutter) ? e.gutter[0] : e.gutter
|
|
1219
|
-
),
|
|
866
|
+
), s = v(
|
|
1220
867
|
() => Array.isArray(e.gutter) ? e.gutter[1] : 0
|
|
1221
|
-
),
|
|
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:
|
|
1237
|
-
justifyContent:
|
|
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 (
|
|
889
|
+
return (l, a) => (n(), L(q(l.tag), {
|
|
1243
890
|
class: "f-row",
|
|
1244
|
-
style:
|
|
891
|
+
style: I(u(d))
|
|
1245
892
|
}, {
|
|
1246
|
-
default:
|
|
1247
|
-
|
|
893
|
+
default: B(() => [
|
|
894
|
+
h(l.$slots, "default", {}, void 0, !0)
|
|
1248
895
|
]),
|
|
1249
896
|
_: 3
|
|
1250
897
|
}, 8, ["style"]));
|
|
1251
898
|
}
|
|
1252
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
1267
|
-
const e =
|
|
913
|
+
setup(r) {
|
|
914
|
+
const e = r, t = {
|
|
1268
915
|
small: 6,
|
|
1269
916
|
normal: 12,
|
|
1270
917
|
large: 18
|
|
1271
|
-
},
|
|
918
|
+
}, s = (a) => typeof a == "number" ? a : t[a], o = v(() => {
|
|
1272
919
|
const a = e.size;
|
|
1273
|
-
return Array.isArray(a) ? `${
|
|
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:
|
|
1280
|
-
})), d =
|
|
1281
|
-
var
|
|
1282
|
-
const a = (
|
|
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
|
|
931
|
+
const _ = [];
|
|
1285
932
|
for (const p of a)
|
|
1286
|
-
p.type ===
|
|
1287
|
-
return
|
|
933
|
+
p.type === D ? _.push(...p.children) : _.push(p);
|
|
934
|
+
return _.filter((p) => p.type !== Comment);
|
|
1288
935
|
});
|
|
1289
|
-
return (a,
|
|
936
|
+
return (a, _) => (n(), i("div", {
|
|
1290
937
|
class: "f-space",
|
|
1291
|
-
style:
|
|
938
|
+
style: I(u(c))
|
|
1292
939
|
}, [
|
|
1293
|
-
(
|
|
1294
|
-
|
|
1295
|
-
(
|
|
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 <
|
|
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
|
-
}),
|
|
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(
|
|
1307
|
-
const e =
|
|
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 (
|
|
957
|
+
return (s, o) => (n(), i("div", {
|
|
1311
958
|
class: "f-container",
|
|
1312
|
-
style:
|
|
959
|
+
style: I(u(t))
|
|
1313
960
|
}, [
|
|
1314
|
-
|
|
961
|
+
h(s.$slots, "default", {}, void 0, !0)
|
|
1315
962
|
], 4));
|
|
1316
963
|
}
|
|
1317
|
-
}),
|
|
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(
|
|
1325
|
-
const e =
|
|
1326
|
-
const
|
|
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:
|
|
1329
|
-
borderLeft:
|
|
1330
|
-
height:
|
|
1331
|
-
width:
|
|
1332
|
-
margin:
|
|
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 (
|
|
1336
|
-
style:
|
|
982
|
+
return (s, o) => (n(), i("hr", {
|
|
983
|
+
style: I(t.value)
|
|
1337
984
|
}, null, 4));
|
|
1338
985
|
}
|
|
1339
|
-
}),
|
|
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(
|
|
1349
|
-
const e =
|
|
995
|
+
setup(r) {
|
|
996
|
+
const e = r, t = {
|
|
1350
997
|
small: "32px",
|
|
1351
998
|
normal: "48px",
|
|
1352
999
|
large: "64px"
|
|
1353
|
-
},
|
|
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 (
|
|
1359
|
-
const d =
|
|
1360
|
-
return
|
|
1005
|
+
return (o, c) => {
|
|
1006
|
+
const d = O("f-icon");
|
|
1007
|
+
return n(), i("div", {
|
|
1361
1008
|
class: "f-avatar",
|
|
1362
|
-
style:
|
|
1009
|
+
style: I(u(s))
|
|
1363
1010
|
}, [
|
|
1364
|
-
|
|
1011
|
+
o.src ? (n(), i("img", {
|
|
1365
1012
|
key: 0,
|
|
1366
|
-
src:
|
|
1367
|
-
alt:
|
|
1368
|
-
}, null, 8,
|
|
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:
|
|
1373
|
-
(
|
|
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
|
-
}),
|
|
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(
|
|
1390
|
-
const e =
|
|
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
|
-
},
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
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
|
-
}),
|
|
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(
|
|
1416
|
-
const e =
|
|
1067
|
+
setup(r) {
|
|
1068
|
+
const e = r, t = v(() => ({
|
|
1417
1069
|
color: e.color
|
|
1418
1070
|
}));
|
|
1419
|
-
return (
|
|
1071
|
+
return (s, o) => (n(), i("div", {
|
|
1420
1072
|
class: "f-typography",
|
|
1421
|
-
style:
|
|
1073
|
+
style: I(u(t))
|
|
1422
1074
|
}, [
|
|
1423
|
-
|
|
1075
|
+
h(s.$slots, "default", {}, void 0, !0)
|
|
1424
1076
|
], 4));
|
|
1425
1077
|
}
|
|
1426
|
-
}),
|
|
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(
|
|
1438
|
-
const e =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
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:
|
|
1462
|
-
|
|
1122
|
+
default: B(() => [
|
|
1123
|
+
h(l.$slots, "default", {}, void 0, !0)
|
|
1463
1124
|
]),
|
|
1464
1125
|
_: 3
|
|
1465
1126
|
}, 8, ["class"]));
|
|
1466
1127
|
}
|
|
1467
|
-
}),
|
|
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(
|
|
1477
|
-
const e =
|
|
1478
|
-
return (t,
|
|
1479
|
-
class:
|
|
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
|
-
|
|
1489
|
-
], 10,
|
|
1149
|
+
h(t.$slots, "default", {}, void 0, !0)
|
|
1150
|
+
], 10, Qt));
|
|
1490
1151
|
}
|
|
1491
|
-
}),
|
|
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(
|
|
1502
|
-
const e =
|
|
1503
|
-
|
|
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% + ${
|
|
1506
|
-
"top-left": { top: 0, left: 0, transform: `translate(calc(-50% + ${
|
|
1507
|
-
"bottom-right": { bottom: 0, right: 0, transform: `translate(calc(50% + ${
|
|
1508
|
-
"bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${
|
|
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 (
|
|
1512
|
-
|
|
1513
|
-
|
|
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:
|
|
1516
|
-
style:
|
|
1517
|
-
},
|
|
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
|
-
}),
|
|
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(
|
|
1527
|
-
const e =
|
|
1528
|
-
const [
|
|
1190
|
+
setup(r) {
|
|
1191
|
+
const e = r, t = v(() => {
|
|
1192
|
+
const [s, o] = e.offset;
|
|
1529
1193
|
return {
|
|
1530
|
-
"top-left": { top: `${
|
|
1531
|
-
"top-right": { top: `${
|
|
1532
|
-
"bottom-left": { bottom: `${
|
|
1533
|
-
"bottom-right": { bottom: `${
|
|
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 (
|
|
1200
|
+
return (s, o) => (n(), i("div", {
|
|
1537
1201
|
class: "f-affix",
|
|
1538
|
-
style:
|
|
1202
|
+
style: I(u(t))
|
|
1539
1203
|
}, [
|
|
1540
|
-
|
|
1204
|
+
h(s.$slots, "default", {}, void 0, !0)
|
|
1541
1205
|
], 4));
|
|
1542
1206
|
}
|
|
1543
|
-
}),
|
|
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
|
-
|
|
1236
|
+
r.component(t, Ce(() => Pe(/* @__PURE__ */ Object.assign({}), `./common/${t}.vue`, 3)));
|
|
1573
1237
|
});
|
|
1574
1238
|
};
|
|
1575
1239
|
export {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
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
|
};
|