fantasia-ui 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/modules/FIcon.d.ts +16 -1
- package/dist/fantasia-ui.css +1 -1
- package/dist/fantasia-ui.es.js +502 -509
- package/dist/fantasia-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var je = Object.defineProperty, Oe = Object.defineProperties;
|
|
2
|
+
var We = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Te = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ye = Object.prototype.hasOwnProperty, Xe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ie = (r, e, o) => e in r ? je(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o, _e = (r, e) => {
|
|
6
6
|
for (var o in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
7
|
+
Ye.call(e, o) && Ie(r, o, e[o]);
|
|
8
|
+
if (Te)
|
|
9
|
+
for (var o of Te(e))
|
|
10
|
+
Xe.call(e, o) && Ie(r, o, e[o]);
|
|
11
11
|
return r;
|
|
12
|
-
}, ge = (r, e) =>
|
|
12
|
+
}, ge = (r, e) => Oe(r, We(e));
|
|
13
13
|
var me = (r, e, o) => new Promise((t, s) => {
|
|
14
14
|
var n = (u) => {
|
|
15
15
|
try {
|
|
@@ -26,34 +26,27 @@ var me = (r, e, o) => new Promise((t, s) => {
|
|
|
26
26
|
}, c = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(n, f);
|
|
27
27
|
c((o = o.apply(r, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as D,
|
|
30
|
-
import { Search as
|
|
31
|
-
import { useEventListener as
|
|
32
|
-
const
|
|
29
|
+
import { defineComponent as D, computed as C, createElementBlock as a, openBlock as l, normalizeStyle as P, unref as i, renderSlot as V, normalizeClass as N, createCommentVNode as x, Fragment as K, renderList as ee, createElementVNode as m, toDisplayString as Y, ref as R, watch as ne, createVNode as U, withDirectives as pe, Transition as ie, withCtx as G, vShow as we, mergeModels as te, useModel as le, readonly as ke, vModelDynamic as Ue, createBlock as Z, nextTick as ce, onUnmounted as Me, Teleport as Fe, withModifiers as re, resolveDynamicComponent as ue, withKeys as xe, isRef as Ge, vModelText as Re, createTextVNode as de, TransitionGroup as Ke, useSlots as qe, provide as be, inject as Le, onMounted as Ce, onBeforeUnmount as Se, toRefs as Je, reactive as ye, createStaticVNode as Qe } from "vue";
|
|
30
|
+
import { Search as Ze, StarOutline as et, StarHalf as tt, Star as ot, ChevronDownOutline as st, ChevronBackOutline as lt, EllipsisHorizontal as nt, ChevronForwardOutline as at, CloseCircle as Ve, Close as Ee, Person as rt, InformationCircleOutline as it, WarningOutline as ut, AlertCircleOutline as ct, CheckmarkCircleOutline as dt, CloudUpload as ft, DocumentOutline as pt } from "@vicons/ionicons5";
|
|
31
|
+
import { useEventListener as mt } from "@vueuse/core";
|
|
32
|
+
const vt = /* @__PURE__ */ D({
|
|
33
33
|
__name: "FIcon",
|
|
34
34
|
props: {
|
|
35
35
|
color: {},
|
|
36
36
|
size: { default: "1em" }
|
|
37
37
|
},
|
|
38
38
|
setup(r) {
|
|
39
|
-
const e = r, o =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
}), s = C(() => {
|
|
47
|
-
var c;
|
|
48
|
-
const n = (c = o.default) == null ? void 0 : c.call(o), f = n == null ? void 0 : n[0];
|
|
49
|
-
return f ? Ge(f, { style: t.value }) : null;
|
|
50
|
-
});
|
|
51
|
-
return (n, f) => (l(), a("span", {
|
|
39
|
+
const e = r, o = C(() => ({
|
|
40
|
+
width: typeof e.size == "number" ? `${e.size}px` : e.size,
|
|
41
|
+
height: typeof e.size == "number" ? `${e.size}px` : e.size,
|
|
42
|
+
color: e.color
|
|
43
|
+
}));
|
|
44
|
+
return (t, s) => (l(), a("span", {
|
|
52
45
|
role: "img",
|
|
53
46
|
class: "f-icon",
|
|
54
|
-
style: P(
|
|
47
|
+
style: P(i(o))
|
|
55
48
|
}, [
|
|
56
|
-
|
|
49
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
57
50
|
], 4));
|
|
58
51
|
}
|
|
59
52
|
}), O = (r, e) => {
|
|
@@ -61,13 +54,13 @@ const ht = /* @__PURE__ */ D({
|
|
|
61
54
|
for (const [t, s] of e)
|
|
62
55
|
o[t] = s;
|
|
63
56
|
return o;
|
|
64
|
-
}, oe = /* @__PURE__ */ O(
|
|
57
|
+
}, oe = /* @__PURE__ */ O(vt, [["__scopeId", "data-v-baf7de0c"]]), ht = "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", _t = {
|
|
65
58
|
key: 0,
|
|
66
59
|
class: "loop cubes"
|
|
67
|
-
},
|
|
60
|
+
}, gt = {
|
|
68
61
|
key: 2,
|
|
69
62
|
class: "msg"
|
|
70
|
-
},
|
|
63
|
+
}, bt = /* @__PURE__ */ D({
|
|
71
64
|
__name: "FLoading",
|
|
72
65
|
props: {
|
|
73
66
|
type: { default: "dots" },
|
|
@@ -79,7 +72,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
79
72
|
return (o, t) => (l(), a("div", {
|
|
80
73
|
class: N(["flex-center-col size-full loading-container", { "global-mask": o.mask }])
|
|
81
74
|
}, [
|
|
82
|
-
o.type === "cubes" ? (l(), a("div",
|
|
75
|
+
o.type === "cubes" ? (l(), a("div", _t, [
|
|
83
76
|
(l(), a(K, null, ee(6, (s) => m("div", {
|
|
84
77
|
class: "item cubes",
|
|
85
78
|
key: s
|
|
@@ -88,16 +81,16 @@ const ht = /* @__PURE__ */ D({
|
|
|
88
81
|
key: 1,
|
|
89
82
|
class: N(["loader", o.type])
|
|
90
83
|
}, null, 2)),
|
|
91
|
-
e.text ? (l(), a("p",
|
|
84
|
+
e.text ? (l(), a("p", gt, Y(e.text), 1)) : x("", !0)
|
|
92
85
|
], 2));
|
|
93
86
|
}
|
|
94
|
-
}),
|
|
87
|
+
}), Ae = /* @__PURE__ */ O(bt, [["__scopeId", "data-v-20f58a50"]]), yt = { class: "f-image" }, $t = {
|
|
95
88
|
key: 0,
|
|
96
89
|
class: "f-image__placeholder"
|
|
97
|
-
},
|
|
90
|
+
}, kt = {
|
|
98
91
|
key: 0,
|
|
99
92
|
class: "f-image__error"
|
|
100
|
-
},
|
|
93
|
+
}, wt = ["src", "loading"], Mt = /* @__PURE__ */ D({
|
|
101
94
|
__name: "FImage",
|
|
102
95
|
props: {
|
|
103
96
|
src: {},
|
|
@@ -111,22 +104,22 @@ const ht = /* @__PURE__ */ D({
|
|
|
111
104
|
o.value = "loading";
|
|
112
105
|
}, { immediate: !1 });
|
|
113
106
|
const t = () => o.value = "loaded", s = () => o.value = "error";
|
|
114
|
-
return (n, f) => (l(), a("div",
|
|
107
|
+
return (n, f) => (l(), a("div", yt, [
|
|
115
108
|
U(ie, { name: "fade" }, {
|
|
116
109
|
default: G(() => [
|
|
117
|
-
i(o) === "loading" ? (l(), a("div",
|
|
118
|
-
U(
|
|
110
|
+
i(o) === "loading" ? (l(), a("div", $t, [
|
|
111
|
+
U(Ae, { type: "classic first" })
|
|
119
112
|
])) : x("", !0)
|
|
120
113
|
]),
|
|
121
114
|
_: 1
|
|
122
115
|
}),
|
|
123
116
|
U(ie, { name: "fade" }, {
|
|
124
117
|
default: G(() => [
|
|
125
|
-
i(o) === "error" ? (l(), a("div",
|
|
126
|
-
|
|
118
|
+
i(o) === "error" ? (l(), a("div", kt, [
|
|
119
|
+
V(n.$slots, "error", {}, () => [
|
|
127
120
|
U(oe, { size: "48px" }, {
|
|
128
121
|
default: G(() => [
|
|
129
|
-
U(i(
|
|
122
|
+
U(i(ht))
|
|
130
123
|
]),
|
|
131
124
|
_: 1
|
|
132
125
|
})
|
|
@@ -142,12 +135,12 @@ const ht = /* @__PURE__ */ D({
|
|
|
142
135
|
class: "f-image__img",
|
|
143
136
|
onLoad: t,
|
|
144
137
|
onError: s
|
|
145
|
-
}, null, 44,
|
|
138
|
+
}, null, 44, wt), [
|
|
146
139
|
[we, i(o) === "loaded"]
|
|
147
140
|
])
|
|
148
141
|
]));
|
|
149
142
|
}
|
|
150
|
-
}),
|
|
143
|
+
}), Ft = /* @__PURE__ */ O(Mt, [["__scopeId", "data-v-e959ab10"]]), Ct = ["type", "placeholder", "disabled", "readonly", "name", "id"], St = /* @__PURE__ */ D({
|
|
151
144
|
__name: "FInput",
|
|
152
145
|
props: /* @__PURE__ */ te({
|
|
153
146
|
placeholder: { default: "输入..." },
|
|
@@ -178,7 +171,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
178
171
|
}, [
|
|
179
172
|
U(oe, { class: "f-input__icon" }, {
|
|
180
173
|
default: G(() => [
|
|
181
|
-
U(i(
|
|
174
|
+
U(i(Ze))
|
|
182
175
|
]),
|
|
183
176
|
_: 1
|
|
184
177
|
}),
|
|
@@ -195,15 +188,15 @@ const ht = /* @__PURE__ */ D({
|
|
|
195
188
|
onChange: n,
|
|
196
189
|
onFocus: f,
|
|
197
190
|
onBlur: c
|
|
198
|
-
}, null, 40,
|
|
199
|
-
[
|
|
191
|
+
}, null, 40, Ct), [
|
|
192
|
+
[Ue, o.value]
|
|
200
193
|
])
|
|
201
194
|
], 2));
|
|
202
195
|
}
|
|
203
|
-
}),
|
|
196
|
+
}), zt = /* @__PURE__ */ O(St, [["__scopeId", "data-v-9af0fbbe"]]), Tt = ["onMousemove"], It = {
|
|
204
197
|
key: 0,
|
|
205
198
|
class: "f-rate__score"
|
|
206
|
-
},
|
|
199
|
+
}, Bt = /* @__PURE__ */ D({
|
|
207
200
|
__name: "FRate",
|
|
208
201
|
props: /* @__PURE__ */ te({
|
|
209
202
|
modelValue: {},
|
|
@@ -234,8 +227,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
234
227
|
}, M = (h) => $(h) === "full" ? t.voidColor : t.color, g = (h, S) => {
|
|
235
228
|
if (!t.readonly)
|
|
236
229
|
if (t.allowHalf) {
|
|
237
|
-
const
|
|
238
|
-
n.value = (h.clientX - E) /
|
|
230
|
+
const T = h.currentTarget, { left: E, width: L } = T.getBoundingClientRect();
|
|
231
|
+
n.value = (h.clientX - E) / L < 0.5 ? S - 0.5 : S;
|
|
239
232
|
} else
|
|
240
233
|
n.value = S;
|
|
241
234
|
}, v = () => {
|
|
@@ -250,29 +243,29 @@ const ht = /* @__PURE__ */ D({
|
|
|
250
243
|
class: N(["f-rate", { "f-rate--readonly": t.readonly }]),
|
|
251
244
|
onMouseleave: v
|
|
252
245
|
}, [
|
|
253
|
-
(l(!0), a(K, null, ee(t.count, (
|
|
254
|
-
key:
|
|
246
|
+
(l(!0), a(K, null, ee(t.count, (T) => (l(), a("span", {
|
|
247
|
+
key: T,
|
|
255
248
|
class: "f-rate__item",
|
|
256
|
-
onMousemove: (E) => g(E,
|
|
249
|
+
onMousemove: (E) => g(E, T),
|
|
257
250
|
onClick: k
|
|
258
251
|
}, [
|
|
259
252
|
U(oe, {
|
|
260
|
-
color: M(
|
|
253
|
+
color: M(T),
|
|
261
254
|
size: i(u)
|
|
262
255
|
}, {
|
|
263
256
|
default: G(() => [
|
|
264
|
-
$(
|
|
257
|
+
$(T) === "full" ? (l(), Z(i(et), { key: 0 })) : $(T) === "half" ? (l(), Z(i(tt), { key: 1 })) : (l(), Z(i(ot), { key: 2 }))
|
|
265
258
|
]),
|
|
266
259
|
_: 2
|
|
267
260
|
}, 1032, ["color", "size"])
|
|
268
|
-
], 40,
|
|
269
|
-
t.showText ? (l(), a("span",
|
|
261
|
+
], 40, Tt))), 128)),
|
|
262
|
+
t.showText ? (l(), a("span", It, Y(i(c)), 1)) : x("", !0)
|
|
270
263
|
], 34));
|
|
271
264
|
}
|
|
272
|
-
}),
|
|
265
|
+
}), xt = /* @__PURE__ */ O(Bt, [["__scopeId", "data-v-3b5c4f14"]]), Rt = { class: "f-dropdown-wrapper" }, Lt = { class: "f-dropdown-content" }, Vt = ["onClick"], Et = {
|
|
273
266
|
key: 0,
|
|
274
267
|
class: "opt-icon"
|
|
275
|
-
},
|
|
268
|
+
}, At = { class: "opt-label" }, Dt = /* @__PURE__ */ D({
|
|
276
269
|
__name: "FDropdown",
|
|
277
270
|
props: {
|
|
278
271
|
placement: { default: "right-start" },
|
|
@@ -284,14 +277,14 @@ const ht = /* @__PURE__ */ D({
|
|
|
284
277
|
emits: ["select"],
|
|
285
278
|
setup(r, { emit: e }) {
|
|
286
279
|
const o = r, t = e, s = R(!1), n = R(null), f = R(null), c = R(null), u = R(0), $ = R(0), M = C(() => {
|
|
287
|
-
const [
|
|
288
|
-
return
|
|
280
|
+
const [z] = o.placement.split("-"), d = (Array.isArray(o.offset) ? o.offset[0] : o.offset) + 4, _ = { position: "absolute" };
|
|
281
|
+
return z === "right" ? (_.width = `${d}px`, _.left = `-${d}px`, _.top = 0, _.bottom = 0) : z === "left" ? (_.width = `${d}px`, _.right = `-${d}px`, _.top = 0, _.bottom = 0) : z === "bottom" ? (_.height = `${d}px`, _.top = `-${d}px`, _.left = 0, _.right = 0) : z === "top" && (_.height = `${d}px`, _.bottom = `-${d}px`, _.left = 0, _.right = 0), _;
|
|
289
282
|
}), g = C(() => {
|
|
290
283
|
if (!n.value) return {};
|
|
291
|
-
const
|
|
284
|
+
const z = n.value, { placement: F } = o, d = Array.isArray(o.offset) ? o.offset[0] : o.offset, [_, I] = F.split("-"), q = window.innerWidth, A = window.innerHeight, W = $.value || 160, b = u.value || 200;
|
|
292
285
|
let p = 0, y = 0, w = _;
|
|
293
|
-
_ === "right" ? (y =
|
|
294
|
-
const B = w === "right" ? "left" : w === "left" ? "right" :
|
|
286
|
+
_ === "right" ? (y = z.right + d, y + W > q && (y = z.left - W - d, w = "left")) : _ === "left" ? (y = z.left - W - d, y < 0 && (y = z.right + d, w = "right")) : _ === "bottom" ? (p = z.bottom + d, p + b > A && (p = z.top - b - d, w = "top")) : _ === "top" && (p = z.top - b - d, p < 0 && (p = z.bottom + d, w = "bottom")), w === "top" || w === "bottom" ? (I === "start" ? y = z.left : I === "end" ? y = z.right - W : y = z.left + (z.width - W) / 2, y = Math.max(8, Math.min(y, q - W - 8))) : (I === "start" ? p = z.top : I === "end" ? p = z.bottom - b : p = z.top + (z.height - b) / 2, p = Math.max(8, Math.min(p, A - b - 8)));
|
|
287
|
+
const B = w === "right" ? "left" : w === "left" ? "right" : I === "start" ? "left" : I === "end" ? "right" : "center", j = w === "bottom" ? "top" : w === "top" ? "bottom" : I === "start" ? "top" : I === "end" ? "bottom" : "center";
|
|
295
288
|
return {
|
|
296
289
|
top: `${p}px`,
|
|
297
290
|
left: `${y}px`,
|
|
@@ -301,9 +294,9 @@ const ht = /* @__PURE__ */ D({
|
|
|
301
294
|
let v = null, k = null;
|
|
302
295
|
const h = () => {
|
|
303
296
|
v && (clearTimeout(v), v = null);
|
|
304
|
-
}, S = (
|
|
305
|
-
o.trigger === "click" && (
|
|
306
|
-
},
|
|
297
|
+
}, S = (z) => {
|
|
298
|
+
o.trigger === "click" && (z.stopPropagation(), s.value ? s.value = !1 : (n.value = f.value.getBoundingClientRect(), s.value = !0));
|
|
299
|
+
}, T = () => {
|
|
307
300
|
o.trigger === "hover" && (h(), k = setTimeout(() => {
|
|
308
301
|
f.value && (n.value = f.value.getBoundingClientRect()), s.value = !0;
|
|
309
302
|
}, 400));
|
|
@@ -311,26 +304,26 @@ const ht = /* @__PURE__ */ D({
|
|
|
311
304
|
o.trigger === "hover" && (k && (clearTimeout(k), k = null), v = setTimeout(() => {
|
|
312
305
|
s.value = !1;
|
|
313
306
|
}, 400));
|
|
314
|
-
},
|
|
307
|
+
}, L = (z) => {
|
|
315
308
|
o.trigger !== "click" || !s.value || (s.value = !1);
|
|
316
|
-
}, X = (
|
|
317
|
-
|
|
309
|
+
}, X = (z) => {
|
|
310
|
+
z.disabled || (t("select", z.key, z), z.children || (s.value = !1));
|
|
318
311
|
};
|
|
319
|
-
return ne(s, (
|
|
312
|
+
return ne(s, (z) => me(null, null, function* () {
|
|
320
313
|
var F, d;
|
|
321
|
-
|
|
314
|
+
z ? (n.value = f.value.getBoundingClientRect(), yield ce(), u.value = ((F = c.value) == null ? void 0 : F.offsetHeight) || 200, $.value = ((d = c.value) == null ? void 0 : d.offsetWidth) || 160) : (u.value = 0, $.value = 0);
|
|
322
315
|
})), Me(() => {
|
|
323
316
|
h(), k && clearTimeout(k);
|
|
324
|
-
}),
|
|
317
|
+
}), mt(window, "click", L), (z, F) => (l(), a("div", Rt, [
|
|
325
318
|
m("div", {
|
|
326
319
|
ref_key: "triggerRef",
|
|
327
320
|
ref: f,
|
|
328
321
|
class: "f-dropdown-trigger-wrapper",
|
|
329
|
-
onMouseenter:
|
|
322
|
+
onMouseenter: T,
|
|
330
323
|
onMouseleave: E,
|
|
331
324
|
onClick: S
|
|
332
325
|
}, [
|
|
333
|
-
|
|
326
|
+
V(z.$slots, "default", {}, void 0, !0)
|
|
334
327
|
], 544),
|
|
335
328
|
(l(), Z(Fe, { to: "body" }, [
|
|
336
329
|
U(ie, { name: "f-dropdown-motion" }, {
|
|
@@ -340,28 +333,28 @@ const ht = /* @__PURE__ */ D({
|
|
|
340
333
|
ref_key: "dropdownRef",
|
|
341
334
|
ref: c,
|
|
342
335
|
class: "f-dropdown-item",
|
|
343
|
-
style: P([i(g), { zIndex:
|
|
336
|
+
style: P([i(g), { zIndex: z.zIndex }]),
|
|
344
337
|
onMouseenter: h,
|
|
345
338
|
onMouseleave: E,
|
|
346
339
|
onClick: F[0] || (F[0] = re(() => {
|
|
347
340
|
}, ["stop"]))
|
|
348
341
|
}, [
|
|
349
|
-
|
|
342
|
+
z.trigger === "hover" ? (l(), a("div", {
|
|
350
343
|
key: 0,
|
|
351
344
|
class: "f-dropdown-bridge",
|
|
352
345
|
style: P(i(M))
|
|
353
346
|
}, null, 4)) : x("", !0),
|
|
354
347
|
m("div", Lt, [
|
|
355
|
-
|
|
348
|
+
z.options && z.options.length > 0 ? (l(!0), a(K, { key: 0 }, ee(z.options, (d) => (l(), a("div", {
|
|
356
349
|
key: d.key,
|
|
357
350
|
class: N(["f-dropdown-option", { "is-disabled": d.disabled }]),
|
|
358
351
|
onClick: (_) => X(d)
|
|
359
352
|
}, [
|
|
360
|
-
d.icon ? (l(), a("span",
|
|
353
|
+
d.icon ? (l(), a("span", Et, [
|
|
361
354
|
(l(), Z(ue(d.icon)))
|
|
362
355
|
])) : x("", !0),
|
|
363
|
-
m("span",
|
|
364
|
-
], 10,
|
|
356
|
+
m("span", At, Y(d.label), 1)
|
|
357
|
+
], 10, Vt))), 128)) : V(z.$slots, "content", { key: 1 }, void 0, !0)
|
|
365
358
|
])
|
|
366
359
|
], 36)) : x("", !0)
|
|
367
360
|
]),
|
|
@@ -370,7 +363,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
370
363
|
]))
|
|
371
364
|
]));
|
|
372
365
|
}
|
|
373
|
-
}),
|
|
366
|
+
}), De = /* @__PURE__ */ O(Dt, [["__scopeId", "data-v-addb3a3b"]]), Ht = /* @__PURE__ */ D({
|
|
374
367
|
__name: "FSelect",
|
|
375
368
|
props: /* @__PURE__ */ te({
|
|
376
369
|
options: {},
|
|
@@ -391,7 +384,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
391
384
|
}, $ = (M) => {
|
|
392
385
|
n.value = M;
|
|
393
386
|
};
|
|
394
|
-
return (M, g) => (l(), Z(
|
|
387
|
+
return (M, g) => (l(), Z(De, {
|
|
395
388
|
options: M.options,
|
|
396
389
|
trigger: "click",
|
|
397
390
|
onSelect: u,
|
|
@@ -409,7 +402,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
409
402
|
}, Y(i(f)), 3),
|
|
410
403
|
U(oe, { class: "f-select__arrow" }, {
|
|
411
404
|
default: G(() => [
|
|
412
|
-
U(i(
|
|
405
|
+
U(i(st))
|
|
413
406
|
]),
|
|
414
407
|
_: 1
|
|
415
408
|
})
|
|
@@ -418,25 +411,25 @@ const ht = /* @__PURE__ */ D({
|
|
|
418
411
|
_: 1
|
|
419
412
|
}, 8, ["options"]));
|
|
420
413
|
}
|
|
421
|
-
}),
|
|
414
|
+
}), Pt = /* @__PURE__ */ O(Ht, [["__scopeId", "data-v-61444561"]]), Nt = {
|
|
422
415
|
key: 0,
|
|
423
416
|
class: "f-pagination"
|
|
424
|
-
},
|
|
417
|
+
}, jt = {
|
|
425
418
|
key: 0,
|
|
426
419
|
class: "f-pagination__total"
|
|
427
|
-
},
|
|
420
|
+
}, Ot = {
|
|
428
421
|
key: 1,
|
|
429
422
|
class: "f-pagination__size"
|
|
430
|
-
},
|
|
423
|
+
}, Wt = ["value"], Yt = ["value"], Xt = {
|
|
431
424
|
key: 3,
|
|
432
425
|
class: "f-pagination__list"
|
|
433
|
-
},
|
|
426
|
+
}, Ut = {
|
|
434
427
|
key: 0,
|
|
435
428
|
class: "page-btn ellipsis"
|
|
436
|
-
},
|
|
429
|
+
}, Gt = ["onClick"], Kt = {
|
|
437
430
|
key: 5,
|
|
438
431
|
class: "f-pagination__jump"
|
|
439
|
-
},
|
|
432
|
+
}, qt = ["max"], Jt = /* @__PURE__ */ D({
|
|
440
433
|
__name: "FPagination",
|
|
441
434
|
props: /* @__PURE__ */ te({
|
|
442
435
|
total: {},
|
|
@@ -466,9 +459,9 @@ const ht = /* @__PURE__ */ D({
|
|
|
466
459
|
const v = parseInt(M.value, 10);
|
|
467
460
|
isNaN(v) || u(v), M.value = "";
|
|
468
461
|
};
|
|
469
|
-
return (v, k) => !v.hideOnSingle || i(f) > 1 ? (l(), a("div",
|
|
462
|
+
return (v, k) => !v.hideOnSingle || i(f) > 1 ? (l(), a("div", Nt, [
|
|
470
463
|
(l(!0), a(K, null, ee(i(n), (h) => (l(), a(K, { key: h }, [
|
|
471
|
-
h === "total" ? (l(), a("span",
|
|
464
|
+
h === "total" ? (l(), a("span", jt, " 共 " + Y(v.total) + " 条 ", 1)) : h === "sizes" ? (l(), a("div", Ot, [
|
|
472
465
|
m("select", {
|
|
473
466
|
class: "size-select",
|
|
474
467
|
value: v.pageSize,
|
|
@@ -477,8 +470,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
477
470
|
(l(!0), a(K, null, ee(v.pageSizes, (S) => (l(), a("option", {
|
|
478
471
|
key: S,
|
|
479
472
|
value: S
|
|
480
|
-
}, Y(S) + " 条/页", 9,
|
|
481
|
-
], 40,
|
|
473
|
+
}, Y(S) + " 条/页", 9, Yt))), 128))
|
|
474
|
+
], 40, Wt)
|
|
482
475
|
])) : h === "prev" ? (l(), a("button", {
|
|
483
476
|
key: 2,
|
|
484
477
|
class: N(["page-btn", { disabled: s.value === 1 }]),
|
|
@@ -486,16 +479,16 @@ const ht = /* @__PURE__ */ D({
|
|
|
486
479
|
}, [
|
|
487
480
|
U(oe, null, {
|
|
488
481
|
default: G(() => [
|
|
489
|
-
U(i(
|
|
482
|
+
U(i(lt))
|
|
490
483
|
]),
|
|
491
484
|
_: 1
|
|
492
485
|
})
|
|
493
|
-
], 2)) : h === "pager" ? (l(), a("ul",
|
|
494
|
-
(l(!0), a(K, null, ee(i(c), (S,
|
|
495
|
-
S === "..." ? (l(), a("li",
|
|
486
|
+
], 2)) : h === "pager" ? (l(), a("ul", Xt, [
|
|
487
|
+
(l(!0), a(K, null, ee(i(c), (S, T) => (l(), a(K, { key: T }, [
|
|
488
|
+
S === "..." ? (l(), a("li", Ut, [
|
|
496
489
|
U(oe, null, {
|
|
497
490
|
default: G(() => [
|
|
498
|
-
U(i(
|
|
491
|
+
U(i(nt))
|
|
499
492
|
]),
|
|
500
493
|
_: 1
|
|
501
494
|
})
|
|
@@ -503,7 +496,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
503
496
|
key: 1,
|
|
504
497
|
class: N(["page-btn", { active: s.value === S }]),
|
|
505
498
|
onClick: (E) => u(S)
|
|
506
|
-
}, Y(S), 11,
|
|
499
|
+
}, Y(S), 11, Gt))
|
|
507
500
|
], 64))), 128))
|
|
508
501
|
])) : h === "next" ? (l(), a("button", {
|
|
509
502
|
key: 4,
|
|
@@ -512,59 +505,59 @@ const ht = /* @__PURE__ */ D({
|
|
|
512
505
|
}, [
|
|
513
506
|
U(oe, null, {
|
|
514
507
|
default: G(() => [
|
|
515
|
-
U(i(
|
|
508
|
+
U(i(at))
|
|
516
509
|
]),
|
|
517
510
|
_: 1
|
|
518
511
|
})
|
|
519
|
-
], 2)) : h === "jumper" ? (l(), a("div",
|
|
512
|
+
], 2)) : h === "jumper" ? (l(), a("div", Kt, [
|
|
520
513
|
k[3] || (k[3] = m("span", { class: "jump-label" }, "前往", -1)),
|
|
521
514
|
pe(m("input", {
|
|
522
|
-
"onUpdate:modelValue": k[2] || (k[2] = (S) =>
|
|
515
|
+
"onUpdate:modelValue": k[2] || (k[2] = (S) => Ge(M) ? M.value = S : null),
|
|
523
516
|
class: "jump-input",
|
|
524
517
|
type: "number",
|
|
525
518
|
min: 1,
|
|
526
519
|
max: i(f),
|
|
527
|
-
onKeydown:
|
|
520
|
+
onKeydown: xe(g, ["enter"]),
|
|
528
521
|
onBlur: g
|
|
529
|
-
}, null, 40,
|
|
530
|
-
[
|
|
522
|
+
}, null, 40, qt), [
|
|
523
|
+
[Re, i(M)]
|
|
531
524
|
]),
|
|
532
525
|
k[4] || (k[4] = m("span", { class: "jump-label" }, "页", -1))
|
|
533
526
|
])) : x("", !0)
|
|
534
527
|
], 64))), 128))
|
|
535
528
|
])) : x("", !0);
|
|
536
529
|
}
|
|
537
|
-
}),
|
|
530
|
+
}), Qt = /* @__PURE__ */ O(Jt, [["__scopeId", "data-v-930f8b20"]]), Zt = {
|
|
538
531
|
key: 0,
|
|
539
532
|
class: "f-card__header"
|
|
540
|
-
},
|
|
533
|
+
}, eo = {
|
|
541
534
|
key: 0,
|
|
542
535
|
class: "f-card__header-extra"
|
|
543
|
-
},
|
|
536
|
+
}, to = {
|
|
544
537
|
key: 1,
|
|
545
538
|
class: "f-card__cover"
|
|
546
|
-
},
|
|
539
|
+
}, oo = {
|
|
547
540
|
key: 2,
|
|
548
541
|
class: "f-card__body"
|
|
549
|
-
},
|
|
542
|
+
}, so = {
|
|
550
543
|
key: 3,
|
|
551
544
|
class: "f-card__footer"
|
|
552
|
-
},
|
|
545
|
+
}, lo = {
|
|
553
546
|
key: 0,
|
|
554
547
|
class: "f-card__header"
|
|
555
|
-
},
|
|
548
|
+
}, no = {
|
|
556
549
|
key: 0,
|
|
557
550
|
class: "f-card__header-extra"
|
|
558
|
-
},
|
|
551
|
+
}, ao = {
|
|
559
552
|
key: 1,
|
|
560
553
|
class: "f-card__cover"
|
|
561
|
-
},
|
|
554
|
+
}, ro = { class: "f-card__content" }, io = {
|
|
562
555
|
key: 0,
|
|
563
556
|
class: "f-card__body"
|
|
564
|
-
},
|
|
557
|
+
}, uo = {
|
|
565
558
|
key: 1,
|
|
566
559
|
class: "f-card__footer"
|
|
567
|
-
},
|
|
560
|
+
}, co = /* @__PURE__ */ D({
|
|
568
561
|
__name: "FCard",
|
|
569
562
|
props: {
|
|
570
563
|
hoverable: { type: Boolean, default: !0 },
|
|
@@ -575,46 +568,46 @@ const ht = /* @__PURE__ */ D({
|
|
|
575
568
|
class: N(["f-card", [`f-card--${e.direction}`, { "is-hoverable": e.hoverable }]])
|
|
576
569
|
}, [
|
|
577
570
|
e.direction === "vertical" ? (l(), a(K, { key: 0 }, [
|
|
578
|
-
e.$slots.header || e.$slots["header-extra"] ? (l(), a("div",
|
|
579
|
-
|
|
580
|
-
e.$slots["header-extra"] ? (l(), a("div",
|
|
581
|
-
|
|
571
|
+
e.$slots.header || e.$slots["header-extra"] ? (l(), a("div", Zt, [
|
|
572
|
+
V(e.$slots, "header", {}, void 0, !0),
|
|
573
|
+
e.$slots["header-extra"] ? (l(), a("div", eo, [
|
|
574
|
+
V(e.$slots, "header-extra", {}, void 0, !0)
|
|
582
575
|
])) : x("", !0)
|
|
583
576
|
])) : x("", !0),
|
|
584
|
-
e.$slots.cover ? (l(), a("div",
|
|
585
|
-
|
|
577
|
+
e.$slots.cover ? (l(), a("div", to, [
|
|
578
|
+
V(e.$slots, "cover", {}, void 0, !0)
|
|
586
579
|
])) : x("", !0),
|
|
587
|
-
e.$slots.default ? (l(), a("div",
|
|
588
|
-
|
|
580
|
+
e.$slots.default ? (l(), a("div", oo, [
|
|
581
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
589
582
|
])) : x("", !0),
|
|
590
|
-
e.$slots.footer ? (l(), a("div",
|
|
591
|
-
|
|
583
|
+
e.$slots.footer ? (l(), a("div", so, [
|
|
584
|
+
V(e.$slots, "footer", {}, void 0, !0)
|
|
592
585
|
])) : x("", !0)
|
|
593
586
|
], 64)) : (l(), a(K, { key: 1 }, [
|
|
594
|
-
e.$slots.header || e.$slots["header-extra"] ? (l(), a("div",
|
|
595
|
-
|
|
596
|
-
e.$slots["header-extra"] ? (l(), a("div",
|
|
597
|
-
|
|
587
|
+
e.$slots.header || e.$slots["header-extra"] ? (l(), a("div", lo, [
|
|
588
|
+
V(e.$slots, "header", {}, void 0, !0),
|
|
589
|
+
e.$slots["header-extra"] ? (l(), a("div", no, [
|
|
590
|
+
V(e.$slots, "header-extra", {}, void 0, !0)
|
|
598
591
|
])) : x("", !0)
|
|
599
592
|
])) : x("", !0),
|
|
600
|
-
e.$slots.cover ? (l(), a("div",
|
|
601
|
-
|
|
593
|
+
e.$slots.cover ? (l(), a("div", ao, [
|
|
594
|
+
V(e.$slots, "cover", {}, void 0, !0)
|
|
602
595
|
])) : x("", !0),
|
|
603
|
-
m("div",
|
|
604
|
-
e.$slots.default ? (l(), a("div",
|
|
605
|
-
|
|
596
|
+
m("div", ro, [
|
|
597
|
+
e.$slots.default ? (l(), a("div", io, [
|
|
598
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
606
599
|
])) : x("", !0),
|
|
607
|
-
e.$slots.footer ? (l(), a("div",
|
|
608
|
-
|
|
600
|
+
e.$slots.footer ? (l(), a("div", uo, [
|
|
601
|
+
V(e.$slots, "footer", {}, void 0, !0)
|
|
609
602
|
])) : x("", !0)
|
|
610
603
|
])
|
|
611
604
|
], 64))
|
|
612
605
|
], 2));
|
|
613
606
|
}
|
|
614
|
-
}),
|
|
607
|
+
}), fo = /* @__PURE__ */ O(co, [["__scopeId", "data-v-a66fa373"]]), po = {
|
|
615
608
|
key: 0,
|
|
616
609
|
class: "f-tag__dot"
|
|
617
|
-
},
|
|
610
|
+
}, mo = /* @__PURE__ */ D({
|
|
618
611
|
__name: "FTag",
|
|
619
612
|
props: {
|
|
620
613
|
color: {},
|
|
@@ -637,22 +630,22 @@ const ht = /* @__PURE__ */ D({
|
|
|
637
630
|
onMouseenter: n[1] || (n[1] = ($) => t.value = !0),
|
|
638
631
|
onMouseleave: n[2] || (n[2] = ($) => t.value = !1)
|
|
639
632
|
}, [
|
|
640
|
-
s.type === "dot" ? (l(), a("span",
|
|
641
|
-
|
|
633
|
+
s.type === "dot" ? (l(), a("span", po)) : x("", !0),
|
|
634
|
+
V(s.$slots, "default", {}, void 0, !0),
|
|
642
635
|
s.closable ? (l(), Z(oe, {
|
|
643
636
|
key: 1,
|
|
644
637
|
class: "f-tag__close",
|
|
645
638
|
onClick: n[0] || (n[0] = re(($) => o("close"), ["stop"]))
|
|
646
639
|
}, {
|
|
647
640
|
default: G(() => [
|
|
648
|
-
(l(), Z(ue(i(t) ? i(
|
|
641
|
+
(l(), Z(ue(i(t) ? i(Ve) : i(Ee))))
|
|
649
642
|
]),
|
|
650
643
|
_: 1
|
|
651
644
|
})) : x("", !0)
|
|
652
645
|
], 34);
|
|
653
646
|
};
|
|
654
647
|
}
|
|
655
|
-
}),
|
|
648
|
+
}), He = /* @__PURE__ */ O(mo, [["__scopeId", "data-v-02bd5aa6"]]), vo = /* @__PURE__ */ D({
|
|
656
649
|
__name: "FTooltip",
|
|
657
650
|
props: {
|
|
658
651
|
content: {},
|
|
@@ -672,18 +665,18 @@ const ht = /* @__PURE__ */ D({
|
|
|
672
665
|
}, u = () => {
|
|
673
666
|
f && clearTimeout(f), s.value = !1;
|
|
674
667
|
}, $ = () => {
|
|
675
|
-
var X,
|
|
668
|
+
var X, z;
|
|
676
669
|
if (!t.value) return;
|
|
677
|
-
const M = (
|
|
670
|
+
const M = (z = (X = o.value) == null ? void 0 : X.firstElementChild) != null ? z : o.value;
|
|
678
671
|
if (!M) return;
|
|
679
672
|
const g = M.getBoundingClientRect(), v = t.value.getBoundingClientRect(), k = e.offset, [h, S] = e.placement.split("-");
|
|
680
|
-
let
|
|
673
|
+
let T = 0, E = 0;
|
|
681
674
|
switch (h) {
|
|
682
675
|
case "top":
|
|
683
|
-
|
|
676
|
+
T = g.top - v.height - k;
|
|
684
677
|
break;
|
|
685
678
|
case "bottom":
|
|
686
|
-
|
|
679
|
+
T = g.bottom + k;
|
|
687
680
|
break;
|
|
688
681
|
case "left":
|
|
689
682
|
E = g.left - v.width - k;
|
|
@@ -692,9 +685,9 @@ const ht = /* @__PURE__ */ D({
|
|
|
692
685
|
E = g.right + k;
|
|
693
686
|
break;
|
|
694
687
|
}
|
|
695
|
-
h === "top" || h === "bottom" ? S === "start" ? E = g.left : S === "end" ? E = g.right - v.width : E = g.left + (g.width - v.width) / 2 : S === "start" ?
|
|
696
|
-
const
|
|
697
|
-
E = Math.max(
|
|
688
|
+
h === "top" || h === "bottom" ? S === "start" ? E = g.left : S === "end" ? E = g.right - v.width : E = g.left + (g.width - v.width) / 2 : S === "start" ? T = g.top : S === "end" ? T = g.bottom - v.height : T = g.top + (g.height - v.height) / 2;
|
|
689
|
+
const L = 8;
|
|
690
|
+
E = Math.max(L, Math.min(E, window.innerWidth - v.width - L)), T = Math.max(L, Math.min(T, window.innerHeight - v.height - L)), n.value = { top: T + window.scrollY, left: E + window.scrollX };
|
|
698
691
|
};
|
|
699
692
|
return Me(u), (M, g) => (l(), a("div", {
|
|
700
693
|
class: "f-tooltip",
|
|
@@ -703,7 +696,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
703
696
|
onMouseenter: c,
|
|
704
697
|
onMouseleave: u
|
|
705
698
|
}, [
|
|
706
|
-
|
|
699
|
+
V(M.$slots, "default", {}, void 0, !0),
|
|
707
700
|
(l(), Z(Fe, { to: "body" }, [
|
|
708
701
|
U(ie, { name: "f-tooltip" }, {
|
|
709
702
|
default: G(() => [
|
|
@@ -718,7 +711,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
718
711
|
maxWidth: `${M.maxWidth}px`
|
|
719
712
|
})
|
|
720
713
|
}, [
|
|
721
|
-
|
|
714
|
+
V(M.$slots, "content", {}, () => [
|
|
722
715
|
de(Y(M.content), 1)
|
|
723
716
|
], !0),
|
|
724
717
|
g[0] || (g[0] = m("span", { class: "f-tooltip-arrow" }, null, -1))
|
|
@@ -729,10 +722,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
729
722
|
]))
|
|
730
723
|
], 544));
|
|
731
724
|
}
|
|
732
|
-
}),
|
|
725
|
+
}), Pe = /* @__PURE__ */ O(vo, [["__scopeId", "data-v-be9acca7"]]), ho = { class: "f-progress" }, _o = {
|
|
733
726
|
key: 0,
|
|
734
727
|
class: "f-progress__text"
|
|
735
|
-
},
|
|
728
|
+
}, go = /* @__PURE__ */ D({
|
|
736
729
|
__name: "FProgress",
|
|
737
730
|
props: {
|
|
738
731
|
percent: {},
|
|
@@ -742,7 +735,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
742
735
|
},
|
|
743
736
|
setup(r) {
|
|
744
737
|
const e = r, o = C(() => Math.min(100, Math.max(0, e.percent)));
|
|
745
|
-
return (t, s) => (l(), a("div",
|
|
738
|
+
return (t, s) => (l(), a("div", ho, [
|
|
746
739
|
m("div", {
|
|
747
740
|
class: "f-progress__track",
|
|
748
741
|
style: P({ height: `${t.height}px` })
|
|
@@ -755,10 +748,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
755
748
|
})
|
|
756
749
|
}, null, 4)
|
|
757
750
|
], 4),
|
|
758
|
-
t.showText ? (l(), a("span",
|
|
751
|
+
t.showText ? (l(), a("span", _o, Y(i(o)) + "%", 1)) : x("", !0)
|
|
759
752
|
]));
|
|
760
753
|
}
|
|
761
|
-
}),
|
|
754
|
+
}), Ne = /* @__PURE__ */ O(go, [["__scopeId", "data-v-c2164d6e"]]), bo = { class: "f-tabs__nav-container" }, yo = { class: "f-tabs__nav" }, $o = ["onClick"], ko = { class: "f-tabs__label" }, wo = /* @__PURE__ */ D({
|
|
762
755
|
__name: "FTabs",
|
|
763
756
|
props: {
|
|
764
757
|
tabs: {},
|
|
@@ -784,8 +777,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
784
777
|
return (f, c) => (l(), a("div", {
|
|
785
778
|
class: N(["f-tabs", [`f-tabs--${f.type}`]])
|
|
786
779
|
}, [
|
|
787
|
-
m("div",
|
|
788
|
-
m("div",
|
|
780
|
+
m("div", bo, [
|
|
781
|
+
m("div", yo, [
|
|
789
782
|
(l(!0), a(K, null, ee(f.tabs, (u) => (l(), a("div", {
|
|
790
783
|
key: u.name,
|
|
791
784
|
class: N(["f-tabs__tab", {
|
|
@@ -794,27 +787,27 @@ const ht = /* @__PURE__ */ D({
|
|
|
794
787
|
}]),
|
|
795
788
|
onClick: ($) => n(u.name, u.disabled)
|
|
796
789
|
}, [
|
|
797
|
-
m("span",
|
|
798
|
-
], 10,
|
|
790
|
+
m("span", ko, Y(u.label), 1)
|
|
791
|
+
], 10, $o))), 128))
|
|
799
792
|
])
|
|
800
793
|
]),
|
|
801
794
|
(l(!0), a(K, null, ee(f.tabs, (u) => pe((l(), a("div", {
|
|
802
795
|
key: u.name,
|
|
803
796
|
class: "f-tabs__panel"
|
|
804
797
|
}, [
|
|
805
|
-
|
|
798
|
+
V(f.$slots, u.name, {}, void 0, !0)
|
|
806
799
|
])), [
|
|
807
800
|
[we, i(s) === u.name]
|
|
808
801
|
])), 128))
|
|
809
802
|
], 2));
|
|
810
803
|
}
|
|
811
|
-
}),
|
|
804
|
+
}), Mo = /* @__PURE__ */ O(wo, [["__scopeId", "data-v-268fc654"]]), Fo = {
|
|
812
805
|
class: "f-breadcrumb__current",
|
|
813
806
|
"aria-current": "page"
|
|
814
|
-
},
|
|
807
|
+
}, Co = ["href"], So = {
|
|
815
808
|
key: 3,
|
|
816
809
|
class: "f-breadcrumb__text"
|
|
817
|
-
},
|
|
810
|
+
}, zo = /* @__PURE__ */ D({
|
|
818
811
|
__name: "FBreadcrumb",
|
|
819
812
|
props: {
|
|
820
813
|
items: { default: () => [] },
|
|
@@ -826,7 +819,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
826
819
|
class: N(["f-breadcrumb", { "f-breadcrumb--animated": e.animated }]),
|
|
827
820
|
"aria-label": "breadcrumb"
|
|
828
821
|
}, [
|
|
829
|
-
U(
|
|
822
|
+
U(Ke, { name: "breadcrumb" }, {
|
|
830
823
|
default: G(() => [
|
|
831
824
|
(l(!0), a(K, null, ee(e.items, (t, s) => (l(), a(K, {
|
|
832
825
|
key: t.label
|
|
@@ -836,23 +829,23 @@ const ht = /* @__PURE__ */ D({
|
|
|
836
829
|
class: "f-breadcrumb__sep",
|
|
837
830
|
"aria-hidden": "true"
|
|
838
831
|
}, Y(e.separator), 1)) : x("", !0),
|
|
839
|
-
s === e.items.length - 1 ?
|
|
832
|
+
s === e.items.length - 1 ? V(e.$slots, "default", {
|
|
840
833
|
key: 1,
|
|
841
834
|
item: t
|
|
842
835
|
}, () => [
|
|
843
|
-
m("span",
|
|
836
|
+
m("span", Fo, Y(t.label), 1)
|
|
844
837
|
], !0) : t.href ? (l(), a("a", {
|
|
845
838
|
key: 2,
|
|
846
839
|
href: t.href,
|
|
847
840
|
class: "f-breadcrumb__link"
|
|
848
|
-
}, Y(t.label), 9,
|
|
841
|
+
}, Y(t.label), 9, Co)) : (l(), a("span", So, Y(t.label), 1))
|
|
849
842
|
], 64))), 128))
|
|
850
843
|
]),
|
|
851
844
|
_: 3
|
|
852
845
|
})
|
|
853
846
|
], 2));
|
|
854
847
|
}
|
|
855
|
-
}),
|
|
848
|
+
}), To = /* @__PURE__ */ O(zo, [["__scopeId", "data-v-bb787dcc"]]), Io = /* @__PURE__ */ D({
|
|
856
849
|
__name: "FCol",
|
|
857
850
|
props: {
|
|
858
851
|
span: { default: 24 },
|
|
@@ -881,10 +874,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
881
874
|
class: N(["f-col", i(s)]),
|
|
882
875
|
style: P(i(t))
|
|
883
876
|
}, [
|
|
884
|
-
|
|
877
|
+
V(n.$slots, "default", {}, void 0, !0)
|
|
885
878
|
], 6));
|
|
886
879
|
}
|
|
887
|
-
}),
|
|
880
|
+
}), Bo = /* @__PURE__ */ O(Io, [["__scopeId", "data-v-5a8b0cb4"]]), xo = /* @__PURE__ */ D({
|
|
888
881
|
__name: "FRow",
|
|
889
882
|
props: {
|
|
890
883
|
gutter: { default: 0 },
|
|
@@ -924,16 +917,16 @@ const ht = /* @__PURE__ */ D({
|
|
|
924
917
|
style: P(i(f))
|
|
925
918
|
}, {
|
|
926
919
|
default: G(() => [
|
|
927
|
-
|
|
920
|
+
V(c.$slots, "default", {}, void 0, !0)
|
|
928
921
|
]),
|
|
929
922
|
_: 3
|
|
930
923
|
}, 8, ["style"]));
|
|
931
924
|
}
|
|
932
|
-
}),
|
|
925
|
+
}), Ro = /* @__PURE__ */ O(xo, [["__scopeId", "data-v-72f62339"]]), Lo = { class: "f-space__item" }, Vo = {
|
|
933
926
|
key: 0,
|
|
934
927
|
class: "f-space__split",
|
|
935
928
|
"aria-hidden": "true"
|
|
936
|
-
},
|
|
929
|
+
}, Eo = /* @__PURE__ */ D({
|
|
937
930
|
__name: "FSpace",
|
|
938
931
|
props: {
|
|
939
932
|
direction: { default: "horizontal" },
|
|
@@ -957,7 +950,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
957
950
|
justifyContent: e.justify,
|
|
958
951
|
flexWrap: e.wrap ? "wrap" : "nowrap",
|
|
959
952
|
gap: s.value
|
|
960
|
-
})), f =
|
|
953
|
+
})), f = qe(), c = C(() => {
|
|
961
954
|
var M;
|
|
962
955
|
const u = (M = f.default) == null ? void 0 : M.call(f);
|
|
963
956
|
if (!u) return [];
|
|
@@ -974,11 +967,11 @@ const ht = /* @__PURE__ */ D({
|
|
|
974
967
|
m("div", Lo, [
|
|
975
968
|
(l(), Z(ue(M)))
|
|
976
969
|
]),
|
|
977
|
-
u.split && g < i(c).length - 1 ? (l(), a("span",
|
|
970
|
+
u.split && g < i(c).length - 1 ? (l(), a("span", Vo, Y(u.split), 1)) : x("", !0)
|
|
978
971
|
], 64))), 128))
|
|
979
972
|
], 4));
|
|
980
973
|
}
|
|
981
|
-
}),
|
|
974
|
+
}), Ao = /* @__PURE__ */ O(Eo, [["__scopeId", "data-v-5fb3b1a0"]]), Do = /* @__PURE__ */ D({
|
|
982
975
|
__name: "FContainer",
|
|
983
976
|
props: {
|
|
984
977
|
gap: { default: 12 }
|
|
@@ -991,10 +984,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
991
984
|
class: "f-container",
|
|
992
985
|
style: P(i(o))
|
|
993
986
|
}, [
|
|
994
|
-
|
|
987
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
995
988
|
], 4));
|
|
996
989
|
}
|
|
997
|
-
}),
|
|
990
|
+
}), Ho = /* @__PURE__ */ O(Do, [["__scopeId", "data-v-08450ddf"]]), Po = /* @__PURE__ */ D({
|
|
998
991
|
__name: "FDivider",
|
|
999
992
|
props: {
|
|
1000
993
|
color: {},
|
|
@@ -1016,7 +1009,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1016
1009
|
style: P(o.value)
|
|
1017
1010
|
}, null, 4));
|
|
1018
1011
|
}
|
|
1019
|
-
}),
|
|
1012
|
+
}), No = /* @__PURE__ */ O(Po, [["__scopeId", "data-v-512ee743"]]), jo = ["src", "alt"], Oo = /* @__PURE__ */ D({
|
|
1020
1013
|
__name: "FAvatar",
|
|
1021
1014
|
props: {
|
|
1022
1015
|
src: {},
|
|
@@ -1043,18 +1036,18 @@ const ht = /* @__PURE__ */ D({
|
|
|
1043
1036
|
key: 0,
|
|
1044
1037
|
src: s.src,
|
|
1045
1038
|
alt: s.alt
|
|
1046
|
-
}, null, 8,
|
|
1039
|
+
}, null, 8, jo)) : (l(), Z(oe, {
|
|
1047
1040
|
key: 1,
|
|
1048
1041
|
size: 24
|
|
1049
1042
|
}, {
|
|
1050
1043
|
default: G(() => [
|
|
1051
|
-
(l(), Z(ue(s.icon ? s.icon : i(
|
|
1044
|
+
(l(), Z(ue(s.icon ? s.icon : i(rt))))
|
|
1052
1045
|
]),
|
|
1053
1046
|
_: 1
|
|
1054
1047
|
}))
|
|
1055
1048
|
], 4));
|
|
1056
1049
|
}
|
|
1057
|
-
}),
|
|
1050
|
+
}), Wo = /* @__PURE__ */ O(Oo, [["__scopeId", "data-v-b3665268"]]), Yo = ["disabled"], Xo = /* @__PURE__ */ D({
|
|
1058
1051
|
__name: "FButton",
|
|
1059
1052
|
props: {
|
|
1060
1053
|
size: { default: "normal" },
|
|
@@ -1085,11 +1078,11 @@ const ht = /* @__PURE__ */ D({
|
|
|
1085
1078
|
style: P(i(t)),
|
|
1086
1079
|
disabled: s.disabled
|
|
1087
1080
|
}, [
|
|
1088
|
-
|
|
1089
|
-
], 14,
|
|
1081
|
+
V(s.$slots, "default", {}, void 0, !0)
|
|
1082
|
+
], 14, Yo);
|
|
1090
1083
|
};
|
|
1091
1084
|
}
|
|
1092
|
-
}),
|
|
1085
|
+
}), Uo = /* @__PURE__ */ O(Xo, [["__scopeId", "data-v-eeff7101"]]), Go = /* @__PURE__ */ D({
|
|
1093
1086
|
__name: "FTypography",
|
|
1094
1087
|
props: {
|
|
1095
1088
|
color: { default: "" }
|
|
@@ -1102,10 +1095,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1102
1095
|
class: "f-typography",
|
|
1103
1096
|
style: P(i(o))
|
|
1104
1097
|
}, [
|
|
1105
|
-
|
|
1098
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
1106
1099
|
], 4));
|
|
1107
1100
|
}
|
|
1108
|
-
}),
|
|
1101
|
+
}), Ko = /* @__PURE__ */ O(Go, [["__scopeId", "data-v-50e044db"]]), qo = /* @__PURE__ */ D({
|
|
1109
1102
|
__name: "FText",
|
|
1110
1103
|
props: {
|
|
1111
1104
|
tag: { default: "span" },
|
|
@@ -1150,12 +1143,12 @@ const ht = /* @__PURE__ */ D({
|
|
|
1150
1143
|
]])
|
|
1151
1144
|
}, {
|
|
1152
1145
|
default: G(() => [
|
|
1153
|
-
|
|
1146
|
+
V(c.$slots, "default", {}, void 0, !0)
|
|
1154
1147
|
]),
|
|
1155
1148
|
_: 3
|
|
1156
1149
|
}, 8, ["class"]));
|
|
1157
1150
|
}
|
|
1158
|
-
}),
|
|
1151
|
+
}), Jo = /* @__PURE__ */ O(qo, [["__scopeId", "data-v-8bcfc6b3"]]), Qo = ["href", "target", "rel"], Zo = /* @__PURE__ */ D({
|
|
1159
1152
|
__name: "FLink",
|
|
1160
1153
|
props: {
|
|
1161
1154
|
href: {},
|
|
@@ -1176,10 +1169,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1176
1169
|
target: e.target,
|
|
1177
1170
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1178
1171
|
}, [
|
|
1179
|
-
|
|
1180
|
-
], 10,
|
|
1172
|
+
V(o.$slots, "default", {}, void 0, !0)
|
|
1173
|
+
], 10, Qo));
|
|
1181
1174
|
}
|
|
1182
|
-
}),
|
|
1175
|
+
}), es = /* @__PURE__ */ O(Zo, [["__scopeId", "data-v-daaa3e25"]]), ts = { class: "f-badge" }, os = /* @__PURE__ */ D({
|
|
1183
1176
|
__name: "FBadge",
|
|
1184
1177
|
props: {
|
|
1185
1178
|
value: {},
|
|
@@ -1202,8 +1195,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
1202
1195
|
"bottom-left": { bottom: 0, left: 0, transform: `translate(calc(-50% + ${s}px), calc(50% + ${n}px))` }
|
|
1203
1196
|
}[e.placement];
|
|
1204
1197
|
});
|
|
1205
|
-
return (s, n) => (l(), a("div",
|
|
1206
|
-
|
|
1198
|
+
return (s, n) => (l(), a("div", ts, [
|
|
1199
|
+
V(s.$slots, "default", {}, void 0, !0),
|
|
1207
1200
|
s.dot || s.value !== void 0 && s.value !== "" ? (l(), a("span", {
|
|
1208
1201
|
key: 0,
|
|
1209
1202
|
class: N(["f-badge__content", [`f-badge--${s.type}`, { "f-badge--dot": s.dot }]]),
|
|
@@ -1211,7 +1204,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1211
1204
|
}, Y(i(o)), 7)) : x("", !0)
|
|
1212
1205
|
]));
|
|
1213
1206
|
}
|
|
1214
|
-
}),
|
|
1207
|
+
}), ss = /* @__PURE__ */ O(os, [["__scopeId", "data-v-be6947ff"]]), ls = /* @__PURE__ */ D({
|
|
1215
1208
|
__name: "FAffix",
|
|
1216
1209
|
props: {
|
|
1217
1210
|
placement: { default: "top-right" },
|
|
@@ -1231,10 +1224,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1231
1224
|
class: "f-affix",
|
|
1232
1225
|
style: P(i(o))
|
|
1233
1226
|
}, [
|
|
1234
|
-
|
|
1227
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
1235
1228
|
], 4));
|
|
1236
1229
|
}
|
|
1237
|
-
}),
|
|
1230
|
+
}), ns = /* @__PURE__ */ O(ls, [["__scopeId", "data-v-8506d679"]]), as = /* @__PURE__ */ D({
|
|
1238
1231
|
__name: "FForm",
|
|
1239
1232
|
props: {
|
|
1240
1233
|
model: {},
|
|
@@ -1275,10 +1268,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1275
1268
|
onSubmit: $[0] || ($[0] = re(() => {
|
|
1276
1269
|
}, ["prevent"]))
|
|
1277
1270
|
}, [
|
|
1278
|
-
|
|
1271
|
+
V(u.$slots, "default", {}, void 0, !0)
|
|
1279
1272
|
], 34));
|
|
1280
1273
|
}
|
|
1281
|
-
}),
|
|
1274
|
+
}), rs = /* @__PURE__ */ O(as, [["__scopeId", "data-v-21f7de9b"]]), is = (r, e) => me(null, null, function* () {
|
|
1282
1275
|
const o = Array.isArray(e) ? e : [e];
|
|
1283
1276
|
for (let t of o) {
|
|
1284
1277
|
t.transform && (r = t.transform(r));
|
|
@@ -1287,10 +1280,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1287
1280
|
return t.message || "此字段为必填项";
|
|
1288
1281
|
if (!t.required && s) continue;
|
|
1289
1282
|
if (t.type) {
|
|
1290
|
-
const c =
|
|
1283
|
+
const c = us(r, t);
|
|
1291
1284
|
if (c) return c;
|
|
1292
1285
|
}
|
|
1293
|
-
const f =
|
|
1286
|
+
const f = cs(r, t);
|
|
1294
1287
|
if (f) return f;
|
|
1295
1288
|
if (t.pattern && !t.pattern.test(String(r)))
|
|
1296
1289
|
return t.message || "格式不匹配";
|
|
@@ -1302,7 +1295,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1302
1295
|
if (c === !1) return t.message || "校验失败";
|
|
1303
1296
|
}
|
|
1304
1297
|
}
|
|
1305
|
-
}),
|
|
1298
|
+
}), us = (r, e) => {
|
|
1306
1299
|
const { type: o, message: t } = e;
|
|
1307
1300
|
switch (o) {
|
|
1308
1301
|
case "string":
|
|
@@ -1331,7 +1324,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1331
1324
|
return e.message || "格式不匹配";
|
|
1332
1325
|
break;
|
|
1333
1326
|
}
|
|
1334
|
-
},
|
|
1327
|
+
}, cs = (r, e) => {
|
|
1335
1328
|
const { min: o, max: t, len: s, message: n, type: f } = e, c = f === "number" || f === "integer" || f === "float", u = c && typeof r == "number" ? r : r == null ? void 0 : r.length;
|
|
1336
1329
|
if (u !== void 0) {
|
|
1337
1330
|
if (s !== void 0 && u !== s)
|
|
@@ -1341,13 +1334,13 @@ const ht = /* @__PURE__ */ D({
|
|
|
1341
1334
|
if (t !== void 0 && u > t)
|
|
1342
1335
|
return n || (c ? `最大值不能大于 ${t}` : `长度不能大于 ${t}`);
|
|
1343
1336
|
}
|
|
1344
|
-
},
|
|
1337
|
+
}, ds = {
|
|
1345
1338
|
key: 0,
|
|
1346
1339
|
class: "star"
|
|
1347
|
-
},
|
|
1340
|
+
}, fs = { class: "f-form-item__content" }, ps = {
|
|
1348
1341
|
key: 0,
|
|
1349
1342
|
class: "f-form-item__error"
|
|
1350
|
-
},
|
|
1343
|
+
}, ms = /* @__PURE__ */ D({
|
|
1351
1344
|
__name: "FFormItem",
|
|
1352
1345
|
props: {
|
|
1353
1346
|
label: {},
|
|
@@ -1366,7 +1359,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1366
1359
|
return Array.isArray(g) ? g : [g];
|
|
1367
1360
|
}), u = C(() => c.value.some((g) => g.required)), $ = () => me(null, null, function* () {
|
|
1368
1361
|
if (!o.prop || !t) return;
|
|
1369
|
-
const g = t.model[o.prop], v = yield
|
|
1362
|
+
const g = t.model[o.prop], v = yield is(g, c.value);
|
|
1370
1363
|
return s.value = v || "", v;
|
|
1371
1364
|
}), M = () => {
|
|
1372
1365
|
s.value = "";
|
|
@@ -1394,14 +1387,14 @@ const ht = /* @__PURE__ */ D({
|
|
|
1394
1387
|
textAlign: i(n) === "top" ? "left" : i(n)
|
|
1395
1388
|
})
|
|
1396
1389
|
}, [
|
|
1397
|
-
i(u) ? (l(), a("span",
|
|
1390
|
+
i(u) ? (l(), a("span", ds, "*")) : x("", !0),
|
|
1398
1391
|
de(" " + Y(g.label) + ": ", 1)
|
|
1399
1392
|
], 4)) : x("", !0),
|
|
1400
|
-
m("div",
|
|
1401
|
-
|
|
1393
|
+
m("div", fs, [
|
|
1394
|
+
V(g.$slots, "default", {}, void 0, !0),
|
|
1402
1395
|
U(ie, { name: "err-slide" }, {
|
|
1403
1396
|
default: G(() => [
|
|
1404
|
-
i(s) ? (l(), a("p",
|
|
1397
|
+
i(s) ? (l(), a("p", ps, Y(i(s)), 1)) : x("", !0)
|
|
1405
1398
|
]),
|
|
1406
1399
|
_: 1
|
|
1407
1400
|
})
|
|
@@ -1409,10 +1402,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1409
1402
|
], 2);
|
|
1410
1403
|
};
|
|
1411
1404
|
}
|
|
1412
|
-
}),
|
|
1405
|
+
}), vs = /* @__PURE__ */ O(ms, [["__scopeId", "data-v-c3d6ec01"]]), hs = { class: "f-checkbox__wrapper" }, _s = ["checked", "disabled"], gs = {
|
|
1413
1406
|
key: 0,
|
|
1414
1407
|
class: "f-checkbox__label"
|
|
1415
|
-
},
|
|
1408
|
+
}, bs = /* @__PURE__ */ D({
|
|
1416
1409
|
__name: "FCheckbox",
|
|
1417
1410
|
props: /* @__PURE__ */ te({
|
|
1418
1411
|
label: {},
|
|
@@ -1431,19 +1424,19 @@ const ht = /* @__PURE__ */ D({
|
|
|
1431
1424
|
return (s, n) => (l(), a("label", {
|
|
1432
1425
|
class: N(["f-checkbox", { "is-disabled": s.disabled }])
|
|
1433
1426
|
}, [
|
|
1434
|
-
m("span",
|
|
1427
|
+
m("span", hs, [
|
|
1435
1428
|
m("input", {
|
|
1436
1429
|
type: "checkbox",
|
|
1437
1430
|
checked: e.value,
|
|
1438
1431
|
disabled: s.disabled,
|
|
1439
1432
|
onChange: t
|
|
1440
|
-
}, null, 40,
|
|
1433
|
+
}, null, 40, _s),
|
|
1441
1434
|
n[0] || (n[0] = m("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
1442
1435
|
]),
|
|
1443
|
-
s.label ? (l(), a("span",
|
|
1436
|
+
s.label ? (l(), a("span", gs, Y(s.label), 1)) : x("", !0)
|
|
1444
1437
|
], 2));
|
|
1445
1438
|
}
|
|
1446
|
-
}),
|
|
1439
|
+
}), ys = /* @__PURE__ */ O(bs, [["__scopeId", "data-v-633b283a"]]), $s = { class: "alert__body" }, ks = { class: "alert__title" }, ws = { class: "alert__content" }, Ms = /* @__PURE__ */ D({
|
|
1447
1440
|
__name: "FAlert",
|
|
1448
1441
|
props: {
|
|
1449
1442
|
type: { default: "info" },
|
|
@@ -1452,10 +1445,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1452
1445
|
},
|
|
1453
1446
|
setup(r) {
|
|
1454
1447
|
const e = r, o = C(() => ({
|
|
1455
|
-
success: { icon:
|
|
1456
|
-
error: { icon:
|
|
1457
|
-
warning: { icon:
|
|
1458
|
-
info: { icon:
|
|
1448
|
+
success: { icon: dt, label: "Success" },
|
|
1449
|
+
error: { icon: ct, label: "Error" },
|
|
1450
|
+
warning: { icon: ut, label: "Warning" },
|
|
1451
|
+
info: { icon: it, label: "Tips" }
|
|
1459
1452
|
})[e.type]);
|
|
1460
1453
|
return (t, s) => {
|
|
1461
1454
|
var n;
|
|
@@ -1468,10 +1461,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1468
1461
|
]),
|
|
1469
1462
|
_: 1
|
|
1470
1463
|
}),
|
|
1471
|
-
m("div",
|
|
1472
|
-
m("h4",
|
|
1473
|
-
m("div",
|
|
1474
|
-
|
|
1464
|
+
m("div", $s, [
|
|
1465
|
+
m("h4", ks, Y((n = t.title) != null ? n : i(o).label), 1),
|
|
1466
|
+
m("div", ws, [
|
|
1467
|
+
V(t.$slots, "default", {}, () => [
|
|
1475
1468
|
de(Y(t.content), 1)
|
|
1476
1469
|
], !0)
|
|
1477
1470
|
])
|
|
@@ -1479,7 +1472,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1479
1472
|
], 2);
|
|
1480
1473
|
};
|
|
1481
1474
|
}
|
|
1482
|
-
}),
|
|
1475
|
+
}), Fs = /* @__PURE__ */ O(Ms, [["__scopeId", "data-v-f16678ef"]]), Cs = { class: "f-editor__toolbar" }, Ss = { class: "f-editor__status" }, zs = { class: "f-editor__lines" }, Ts = { class: "f-editor__code-wrapper" }, Is = ["innerHTML"], Bs = ["rows", "readonly", "placeholder"], $e = 17.6, Be = 12, xs = 180, Rs = 1500, Ls = /* @__PURE__ */ D({
|
|
1483
1476
|
__name: "FEditor",
|
|
1484
1477
|
props: /* @__PURE__ */ te({
|
|
1485
1478
|
placeholder: {},
|
|
@@ -1520,24 +1513,24 @@ const ht = /* @__PURE__ */ D({
|
|
|
1520
1513
|
}
|
|
1521
1514
|
}
|
|
1522
1515
|
}, v = t.height, k = C(() => {
|
|
1523
|
-
const p = Be * 2 +
|
|
1524
|
-
return Math.min(v, Math.max(
|
|
1516
|
+
const p = Be * 2 + T.value * $e;
|
|
1517
|
+
return Math.min(v, Math.max(xs, p));
|
|
1525
1518
|
}), h = () => {
|
|
1526
1519
|
const p = n.value;
|
|
1527
1520
|
p && (M.value = p.selectionStart, $.value = o.value.slice(0, p.selectionStart).split(`
|
|
1528
1521
|
`).length);
|
|
1529
1522
|
}, S = C(() => o.value.split(`
|
|
1530
|
-
`)),
|
|
1531
|
-
let
|
|
1523
|
+
`)), T = C(() => S.value.length), E = C(() => T.value > Rs);
|
|
1524
|
+
let L = null;
|
|
1532
1525
|
const X = R(o.value);
|
|
1533
1526
|
ne(o, (p) => {
|
|
1534
|
-
|
|
1527
|
+
L && clearTimeout(L);
|
|
1535
1528
|
const y = p.length > 2e4 ? 120 : 0;
|
|
1536
|
-
|
|
1529
|
+
L = setTimeout(() => {
|
|
1537
1530
|
X.value = p;
|
|
1538
1531
|
}, y);
|
|
1539
1532
|
}, { immediate: !0 });
|
|
1540
|
-
const
|
|
1533
|
+
const z = C(() => {
|
|
1541
1534
|
if (t.language !== "json" || !X.value.trim()) return null;
|
|
1542
1535
|
try {
|
|
1543
1536
|
return JSON.parse(X.value), null;
|
|
@@ -1554,25 +1547,25 @@ const ht = /* @__PURE__ */ D({
|
|
|
1554
1547
|
}
|
|
1555
1548
|
return X.value.length;
|
|
1556
1549
|
}
|
|
1557
|
-
}), F = C(() =>
|
|
1558
|
-
`).length), d = C(() =>
|
|
1550
|
+
}), F = C(() => z.value === null ? null : X.value.slice(0, z.value).split(`
|
|
1551
|
+
`).length), d = C(() => z.value === null), _ = () => {
|
|
1559
1552
|
if (t.language === "json")
|
|
1560
1553
|
try {
|
|
1561
1554
|
o.value = JSON.stringify(JSON.parse(o.value), null, 2);
|
|
1562
1555
|
} catch (p) {
|
|
1563
1556
|
}
|
|
1564
|
-
},
|
|
1557
|
+
}, I = (p) => p.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), q = (p) => I(p).replace(/("(?:\\.|[^"\\])*")(\s*:)?/g, (w, B, j) => `<span class="${j ? "tok-key" : "tok-string"}">${B}</span>${j || ""}`).replace(/\b(true|false|null)\b/g, '<span class="tok-keyword">$1</span>').replace(/(-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b)/g, '<span class="tok-number">$1</span>').replace(/([{}[\],])/g, '<span class="tok-punct">$1</span>'), A = C(() => {
|
|
1565
1558
|
const y = X.value.split(`
|
|
1566
|
-
`), w =
|
|
1559
|
+
`), w = z.value, B = F.value;
|
|
1567
1560
|
let j = 0;
|
|
1568
1561
|
return y.map((H, Q) => {
|
|
1569
1562
|
const J = Q + 1, se = j;
|
|
1570
1563
|
j += H.length + 1;
|
|
1571
1564
|
let ae;
|
|
1572
1565
|
if (B === J && w !== null) {
|
|
1573
|
-
const fe = w - se, ve = H.slice(0, Math.max(0, fe)), he = H.slice(fe, fe + 1) || " ",
|
|
1574
|
-
ae = (E.value ?
|
|
1575
|
-
} else t.language === "json" && !E.value ? ae = q(H) : ae =
|
|
1566
|
+
const fe = w - se, ve = H.slice(0, Math.max(0, fe)), he = H.slice(fe, fe + 1) || " ", ze = H.slice(fe + 1);
|
|
1567
|
+
ae = (E.value ? I(ve) : q(ve)) + `<span class="tok-error">${I(he)}</span>` + (E.value ? I(ze) : q(ze));
|
|
1568
|
+
} else t.language === "json" && !E.value ? ae = q(H) : ae = I(H);
|
|
1576
1569
|
return { lineNo: J, html: ae || " " };
|
|
1577
1570
|
});
|
|
1578
1571
|
}), W = () => {
|
|
@@ -1585,10 +1578,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1585
1578
|
return l(), a("div", {
|
|
1586
1579
|
class: N(["f-editor", { "f-editor--invalid": !i(d) }])
|
|
1587
1580
|
}, [
|
|
1588
|
-
m("div",
|
|
1589
|
-
m("span",
|
|
1590
|
-
m("span",
|
|
1591
|
-
i(E) ? (l(), Z(
|
|
1581
|
+
m("div", Cs, [
|
|
1582
|
+
m("span", Ss, [
|
|
1583
|
+
m("span", zs, Y(i(T)) + " 行", 1),
|
|
1584
|
+
i(E) ? (l(), Z(He, {
|
|
1592
1585
|
key: 0,
|
|
1593
1586
|
color: "orange",
|
|
1594
1587
|
type: "square",
|
|
@@ -1618,12 +1611,12 @@ const ht = /* @__PURE__ */ D({
|
|
|
1618
1611
|
ref: c,
|
|
1619
1612
|
class: "f-editor__gutter"
|
|
1620
1613
|
}, [
|
|
1621
|
-
(l(!0), a(K, null, ee(i(
|
|
1614
|
+
(l(!0), a(K, null, ee(i(T), (B) => (l(), a("div", {
|
|
1622
1615
|
key: B,
|
|
1623
1616
|
class: N(["f-editor__gutter-line", { "f-editor__gutter-line--active": B === i($) }])
|
|
1624
1617
|
}, Y(B), 3))), 128))
|
|
1625
1618
|
], 512)) : x("", !0),
|
|
1626
|
-
m("div",
|
|
1619
|
+
m("div", Ts, [
|
|
1627
1620
|
m("div", {
|
|
1628
1621
|
class: "f-editor__active-line",
|
|
1629
1622
|
style: P({
|
|
@@ -1641,7 +1634,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1641
1634
|
class: "f-editor__line",
|
|
1642
1635
|
innerHTML: B.html + `
|
|
1643
1636
|
`
|
|
1644
|
-
}, null, 8,
|
|
1637
|
+
}, null, 8, Is))), 128))
|
|
1645
1638
|
], 512),
|
|
1646
1639
|
pe(m("textarea", {
|
|
1647
1640
|
ref_key: "textareaRef",
|
|
@@ -1658,33 +1651,33 @@ const ht = /* @__PURE__ */ D({
|
|
|
1658
1651
|
onClick: h,
|
|
1659
1652
|
onKeyup: h,
|
|
1660
1653
|
onBlur: y[1] || (y[1] = (B) => s("blur"))
|
|
1661
|
-
}, null, 40,
|
|
1662
|
-
[
|
|
1654
|
+
}, null, 40, Bs), [
|
|
1655
|
+
[Re, o.value]
|
|
1663
1656
|
])
|
|
1664
1657
|
])
|
|
1665
1658
|
], 4)
|
|
1666
1659
|
], 2);
|
|
1667
1660
|
};
|
|
1668
1661
|
}
|
|
1669
|
-
}),
|
|
1662
|
+
}), Vs = /* @__PURE__ */ O(Ls, [["__scopeId", "data-v-6d590649"]]), Es = { class: "f-table" }, As = {
|
|
1670
1663
|
key: 0,
|
|
1671
1664
|
class: "f-table__loading"
|
|
1672
|
-
},
|
|
1665
|
+
}, Ds = { class: "f-table__inner" }, Hs = {
|
|
1673
1666
|
key: 0,
|
|
1674
1667
|
class: "f-table__col--index"
|
|
1675
|
-
},
|
|
1668
|
+
}, Ps = { class: "f-table__head" }, Ns = {
|
|
1676
1669
|
key: 0,
|
|
1677
1670
|
class: "f-table__th f-table__th--index"
|
|
1678
|
-
},
|
|
1671
|
+
}, js = { class: "f-table__th-inner" }, Os = { class: "f-table__body" }, Ws = {
|
|
1679
1672
|
key: 0,
|
|
1680
1673
|
class: "f-table__spacer"
|
|
1681
|
-
},
|
|
1674
|
+
}, Ys = ["colspan"], Xs = {
|
|
1682
1675
|
key: 0,
|
|
1683
1676
|
class: "f-table__td f-table__td--index"
|
|
1684
|
-
},
|
|
1677
|
+
}, Us = { key: 2 }, Gs = ["colspan"], Ks = {
|
|
1685
1678
|
key: 3,
|
|
1686
1679
|
class: "f-table__spacer"
|
|
1687
|
-
},
|
|
1680
|
+
}, qs = ["colspan"], Js = /* @__PURE__ */ D({
|
|
1688
1681
|
__name: "FTable",
|
|
1689
1682
|
props: {
|
|
1690
1683
|
data: {},
|
|
@@ -1722,8 +1715,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
1722
1715
|
k == null || k.disconnect();
|
|
1723
1716
|
}), ne(() => e.data, () => {
|
|
1724
1717
|
o.value && (o.value.scrollTop = 0), t.value = 0;
|
|
1725
|
-
}), (h, S) => (l(), a("div",
|
|
1726
|
-
h.loading ? (l(), a("div",
|
|
1718
|
+
}), (h, S) => (l(), a("div", Es, [
|
|
1719
|
+
h.loading ? (l(), a("div", As, [
|
|
1727
1720
|
S[0] || (S[0] = m("span", { class: "spinner" }, null, -1)),
|
|
1728
1721
|
m("span", null, Y(h.loadingText), 1)
|
|
1729
1722
|
])) : x("", !0),
|
|
@@ -1733,95 +1726,95 @@ const ht = /* @__PURE__ */ D({
|
|
|
1733
1726
|
ref: o,
|
|
1734
1727
|
onScroll: g
|
|
1735
1728
|
}, [
|
|
1736
|
-
m("table",
|
|
1729
|
+
m("table", Ds, [
|
|
1737
1730
|
m("colgroup", null, [
|
|
1738
|
-
h.showIndex ? (l(), a("col",
|
|
1739
|
-
(l(!0), a(K, null, ee(h.columns, (
|
|
1740
|
-
var E,
|
|
1731
|
+
h.showIndex ? (l(), a("col", Hs)) : x("", !0),
|
|
1732
|
+
(l(!0), a(K, null, ee(h.columns, (T) => {
|
|
1733
|
+
var E, L;
|
|
1741
1734
|
return l(), a("col", {
|
|
1742
|
-
key:
|
|
1735
|
+
key: T.key,
|
|
1743
1736
|
style: P({
|
|
1744
|
-
width: (E =
|
|
1745
|
-
minWidth: (
|
|
1737
|
+
width: (E = T.width) != null ? E : "auto",
|
|
1738
|
+
minWidth: (L = T.minWidth) != null ? L : "120px"
|
|
1746
1739
|
})
|
|
1747
1740
|
}, null, 4);
|
|
1748
1741
|
}), 128))
|
|
1749
1742
|
]),
|
|
1750
|
-
m("thead",
|
|
1743
|
+
m("thead", Ps, [
|
|
1751
1744
|
m("tr", null, [
|
|
1752
|
-
h.showIndex ? (l(), a("th",
|
|
1753
|
-
(l(!0), a(K, null, ee(h.columns, (
|
|
1754
|
-
key:
|
|
1755
|
-
class: N(["f-table__th",
|
|
1745
|
+
h.showIndex ? (l(), a("th", Ns, "#")) : x("", !0),
|
|
1746
|
+
(l(!0), a(K, null, ee(h.columns, (T) => (l(), a("th", {
|
|
1747
|
+
key: T.key,
|
|
1748
|
+
class: N(["f-table__th", T.thClass])
|
|
1756
1749
|
}, [
|
|
1757
|
-
|
|
1758
|
-
m("div",
|
|
1759
|
-
m("span", null, Y(
|
|
1750
|
+
V(h.$slots, `header-${T.key}`, { column: T }, () => [
|
|
1751
|
+
m("div", js, [
|
|
1752
|
+
m("span", null, Y(T.label), 1)
|
|
1760
1753
|
])
|
|
1761
1754
|
], !0)
|
|
1762
1755
|
], 2))), 128))
|
|
1763
1756
|
])
|
|
1764
1757
|
]),
|
|
1765
|
-
m("tbody",
|
|
1766
|
-
i($) > 0 ? (l(), a("tr",
|
|
1758
|
+
m("tbody", Os, [
|
|
1759
|
+
i($) > 0 ? (l(), a("tr", Ws, [
|
|
1767
1760
|
m("td", {
|
|
1768
1761
|
colspan: i(n),
|
|
1769
1762
|
style: P({ height: i($) + "px" })
|
|
1770
|
-
}, null, 12,
|
|
1763
|
+
}, null, 12, Ys)
|
|
1771
1764
|
])) : x("", !0),
|
|
1772
|
-
i(u).length > 0 ? (l(!0), a(K, { key: 1 }, ee(i(u), ({ row:
|
|
1765
|
+
i(u).length > 0 ? (l(!0), a(K, { key: 1 }, ee(i(u), ({ row: T, index: E }) => (l(), a("tr", {
|
|
1773
1766
|
key: E,
|
|
1774
1767
|
class: "f-table__row"
|
|
1775
1768
|
}, [
|
|
1776
|
-
h.showIndex ? (l(), a("td",
|
|
1777
|
-
(l(!0), a(K, null, ee(h.columns, (
|
|
1778
|
-
key:
|
|
1779
|
-
class: N(["f-table__td",
|
|
1769
|
+
h.showIndex ? (l(), a("td", Xs, Y(E + 1), 1)) : x("", !0),
|
|
1770
|
+
(l(!0), a(K, null, ee(h.columns, (L) => (l(), a("td", {
|
|
1771
|
+
key: L.key,
|
|
1772
|
+
class: N(["f-table__td", L.tdClass])
|
|
1780
1773
|
}, [
|
|
1781
|
-
h.$slots[`cell-${
|
|
1774
|
+
h.$slots[`cell-${L.key}`] ? V(h.$slots, `cell-${L.key}`, {
|
|
1782
1775
|
key: 0,
|
|
1783
|
-
row:
|
|
1784
|
-
value:
|
|
1776
|
+
row: T,
|
|
1777
|
+
value: T[L.key],
|
|
1785
1778
|
index: E,
|
|
1786
|
-
col:
|
|
1787
|
-
}, void 0, !0) : h.$slots.cell ?
|
|
1779
|
+
col: L
|
|
1780
|
+
}, void 0, !0) : h.$slots.cell ? V(h.$slots, "cell", {
|
|
1788
1781
|
key: 1,
|
|
1789
|
-
row:
|
|
1790
|
-
value:
|
|
1782
|
+
row: T,
|
|
1783
|
+
value: T[L.key],
|
|
1791
1784
|
index: E,
|
|
1792
|
-
col:
|
|
1793
|
-
}, void 0, !0) : (l(), Z(
|
|
1785
|
+
col: L
|
|
1786
|
+
}, void 0, !0) : (l(), Z(Pe, {
|
|
1794
1787
|
key: 2,
|
|
1795
|
-
content: v(
|
|
1788
|
+
content: v(T[L.key])
|
|
1796
1789
|
}, {
|
|
1797
1790
|
default: G(() => [
|
|
1798
|
-
de(Y(v(
|
|
1791
|
+
de(Y(v(T[L.key])), 1)
|
|
1799
1792
|
]),
|
|
1800
1793
|
_: 2
|
|
1801
1794
|
}, 1032, ["content"]))
|
|
1802
1795
|
], 2))), 128))
|
|
1803
|
-
]))), 128)) : h.loading ? x("", !0) : (l(), a("tr",
|
|
1796
|
+
]))), 128)) : h.loading ? x("", !0) : (l(), a("tr", Us, [
|
|
1804
1797
|
m("td", {
|
|
1805
1798
|
colspan: i(n),
|
|
1806
1799
|
class: "f-table__empty"
|
|
1807
1800
|
}, [
|
|
1808
|
-
|
|
1801
|
+
V(h.$slots, "empty", {}, () => [
|
|
1809
1802
|
de(Y(h.emptyText), 1)
|
|
1810
1803
|
], !0)
|
|
1811
|
-
], 8,
|
|
1804
|
+
], 8, Gs)
|
|
1812
1805
|
])),
|
|
1813
|
-
i(M) > 0 ? (l(), a("tr",
|
|
1806
|
+
i(M) > 0 ? (l(), a("tr", Ks, [
|
|
1814
1807
|
m("td", {
|
|
1815
1808
|
colspan: i(n),
|
|
1816
1809
|
style: P({ height: i(M) + "px" })
|
|
1817
|
-
}, null, 12,
|
|
1810
|
+
}, null, 12, qs)
|
|
1818
1811
|
])) : x("", !0)
|
|
1819
1812
|
])
|
|
1820
1813
|
])
|
|
1821
1814
|
], 544)
|
|
1822
1815
|
]));
|
|
1823
1816
|
}
|
|
1824
|
-
}),
|
|
1817
|
+
}), Qs = /* @__PURE__ */ O(Js, [["__scopeId", "data-v-22daf8be"]]), Zs = /* @__PURE__ */ D({
|
|
1825
1818
|
__name: "FDialog",
|
|
1826
1819
|
props: /* @__PURE__ */ te({
|
|
1827
1820
|
maskClosable: { type: Boolean, default: !0 },
|
|
@@ -1862,7 +1855,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1862
1855
|
onClick: f[0] || (f[0] = re(() => {
|
|
1863
1856
|
}, ["stop"]))
|
|
1864
1857
|
}, [
|
|
1865
|
-
|
|
1858
|
+
V(n.$slots, "default", {}, void 0, !0)
|
|
1866
1859
|
])
|
|
1867
1860
|
], 4)) : x("", !0)
|
|
1868
1861
|
]),
|
|
@@ -1870,10 +1863,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1870
1863
|
})
|
|
1871
1864
|
]));
|
|
1872
1865
|
}
|
|
1873
|
-
}),
|
|
1866
|
+
}), el = /* @__PURE__ */ O(Zs, [["__scopeId", "data-v-31496822"]]), tl = { class: "f-upload" }, ol = { class: "f-upload__label" }, sl = ["accept"], ll = {
|
|
1874
1867
|
key: 0,
|
|
1875
1868
|
class: "f-upload__file-item"
|
|
1876
|
-
},
|
|
1869
|
+
}, nl = { class: "f-upload__file-info" }, al = { class: "f-upload__file-name" }, rl = /* @__PURE__ */ D({
|
|
1877
1870
|
__name: "FUpload",
|
|
1878
1871
|
props: /* @__PURE__ */ te({
|
|
1879
1872
|
accept: {},
|
|
@@ -1913,24 +1906,24 @@ const ht = /* @__PURE__ */ D({
|
|
|
1913
1906
|
s("change", k);
|
|
1914
1907
|
}
|
|
1915
1908
|
};
|
|
1916
|
-
return (v, k) => (l(), a("div",
|
|
1909
|
+
return (v, k) => (l(), a("div", tl, [
|
|
1917
1910
|
m("div", {
|
|
1918
1911
|
class: N(["f-upload__zone", { "f-upload--drag": i(n) }]),
|
|
1919
1912
|
onDragover: u,
|
|
1920
1913
|
onDragleave: $,
|
|
1921
1914
|
onDrop: M
|
|
1922
1915
|
}, [
|
|
1923
|
-
m("label",
|
|
1916
|
+
m("label", ol, [
|
|
1924
1917
|
m("input", {
|
|
1925
1918
|
type: "file",
|
|
1926
1919
|
accept: v.accept,
|
|
1927
1920
|
class: "f-upload__input",
|
|
1928
1921
|
onChange: g
|
|
1929
|
-
}, null, 40,
|
|
1930
|
-
|
|
1922
|
+
}, null, 40, sl),
|
|
1923
|
+
V(v.$slots, "default", {}, () => [
|
|
1931
1924
|
U(oe, { size: 40 }, {
|
|
1932
1925
|
default: G(() => [
|
|
1933
|
-
U(i(
|
|
1926
|
+
U(i(ft))
|
|
1934
1927
|
]),
|
|
1935
1928
|
_: 1
|
|
1936
1929
|
}),
|
|
@@ -1939,16 +1932,16 @@ const ht = /* @__PURE__ */ D({
|
|
|
1939
1932
|
], !0)
|
|
1940
1933
|
])
|
|
1941
1934
|
], 34),
|
|
1942
|
-
o.value ? (l(), a("div",
|
|
1935
|
+
o.value ? (l(), a("div", ll, [
|
|
1943
1936
|
U(oe, null, {
|
|
1944
1937
|
default: G(() => [
|
|
1945
|
-
U(i(
|
|
1938
|
+
U(i(pt))
|
|
1946
1939
|
]),
|
|
1947
1940
|
_: 1
|
|
1948
1941
|
}),
|
|
1949
|
-
m("div",
|
|
1950
|
-
m("span",
|
|
1951
|
-
v.progress != null ? (l(), Z(
|
|
1942
|
+
m("div", nl, [
|
|
1943
|
+
m("span", al, Y(o.value), 1),
|
|
1944
|
+
v.progress != null ? (l(), Z(Ne, {
|
|
1952
1945
|
key: 0,
|
|
1953
1946
|
percent: v.progress,
|
|
1954
1947
|
"show-text": ""
|
|
@@ -1961,14 +1954,14 @@ const ht = /* @__PURE__ */ D({
|
|
|
1961
1954
|
style: { cursor: "pointer", transition: "color 0.2s" }
|
|
1962
1955
|
}, {
|
|
1963
1956
|
default: G(() => [
|
|
1964
|
-
(l(), Z(ue(i(f) ? i(
|
|
1957
|
+
(l(), Z(ue(i(f) ? i(Ve) : i(Ee))))
|
|
1965
1958
|
]),
|
|
1966
1959
|
_: 1
|
|
1967
1960
|
})
|
|
1968
1961
|
])) : x("", !0)
|
|
1969
1962
|
]));
|
|
1970
1963
|
}
|
|
1971
|
-
}),
|
|
1964
|
+
}), il = /* @__PURE__ */ O(rl, [["__scopeId", "data-v-07b95a32"]]), ul = /* @__PURE__ */ D({
|
|
1972
1965
|
__name: "FButtonGroup",
|
|
1973
1966
|
props: {
|
|
1974
1967
|
size: { default: "default" },
|
|
@@ -1977,7 +1970,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
1977
1970
|
vertical: { type: Boolean, default: !1 }
|
|
1978
1971
|
},
|
|
1979
1972
|
setup(r) {
|
|
1980
|
-
const e = r, { size: o, type: t, disabled: s } =
|
|
1973
|
+
const e = r, { size: o, type: t, disabled: s } = Je(e);
|
|
1981
1974
|
return be(
|
|
1982
1975
|
"fButtonGroupContext",
|
|
1983
1976
|
ye({
|
|
@@ -1989,10 +1982,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
1989
1982
|
class: N(["f-button-group", { "f-button-group--vertical": n.vertical }]),
|
|
1990
1983
|
role: "group"
|
|
1991
1984
|
}, [
|
|
1992
|
-
|
|
1985
|
+
V(n.$slots, "default")
|
|
1993
1986
|
], 2));
|
|
1994
1987
|
}
|
|
1995
|
-
}),
|
|
1988
|
+
}), cl = { class: "f-collapse" }, dl = /* @__PURE__ */ D({
|
|
1996
1989
|
__name: "FCollapse",
|
|
1997
1990
|
props: /* @__PURE__ */ te({
|
|
1998
1991
|
accordion: { type: Boolean, default: !1 }
|
|
@@ -2019,11 +2012,11 @@ const ht = /* @__PURE__ */ D({
|
|
|
2019
2012
|
activeNames: t,
|
|
2020
2013
|
handleItemClick: s
|
|
2021
2014
|
})
|
|
2022
|
-
), (n, f) => (l(), a("div",
|
|
2023
|
-
|
|
2015
|
+
), (n, f) => (l(), a("div", cl, [
|
|
2016
|
+
V(n.$slots, "default")
|
|
2024
2017
|
]));
|
|
2025
2018
|
}
|
|
2026
|
-
}),
|
|
2019
|
+
}), fl = { class: "f-collapse-item__header-title" }, pl = { class: "f-collapse-item__wrapper" }, ml = { class: "f-collapse-item__content" }, vl = /* @__PURE__ */ D({
|
|
2027
2020
|
__name: "FCollapseItem",
|
|
2028
2021
|
props: {
|
|
2029
2022
|
name: {},
|
|
@@ -2060,8 +2053,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
2060
2053
|
class: "f-collapse-item__header",
|
|
2061
2054
|
onClick: s
|
|
2062
2055
|
}, [
|
|
2063
|
-
|
|
2064
|
-
m("span",
|
|
2056
|
+
V(u.$slots, "title", {}, () => [
|
|
2057
|
+
m("span", fl, Y(u.title), 1)
|
|
2065
2058
|
]),
|
|
2066
2059
|
$[0] || ($[0] = m("svg", {
|
|
2067
2060
|
class: "f-collapse-item__icon",
|
|
@@ -2085,9 +2078,9 @@ const ht = /* @__PURE__ */ D({
|
|
|
2085
2078
|
onLeave: c
|
|
2086
2079
|
}, {
|
|
2087
2080
|
default: G(() => [
|
|
2088
|
-
pe(m("div",
|
|
2089
|
-
m("div",
|
|
2090
|
-
|
|
2081
|
+
pe(m("div", pl, [
|
|
2082
|
+
m("div", ml, [
|
|
2083
|
+
V(u.$slots, "default")
|
|
2091
2084
|
])
|
|
2092
2085
|
], 512), [
|
|
2093
2086
|
[we, i(t)]
|
|
@@ -2097,13 +2090,13 @@ const ht = /* @__PURE__ */ D({
|
|
|
2097
2090
|
})
|
|
2098
2091
|
], 2));
|
|
2099
2092
|
}
|
|
2100
|
-
}),
|
|
2093
|
+
}), hl = { class: "f-color-picker__swatch" }, _l = {
|
|
2101
2094
|
key: 0,
|
|
2102
2095
|
class: "f-color-picker__panel"
|
|
2103
|
-
},
|
|
2096
|
+
}, gl = { class: "f-color-picker__sliders" }, bl = { class: "f-color-picker__slider-group" }, yl = ["value"], $l = {
|
|
2104
2097
|
key: 0,
|
|
2105
2098
|
class: "f-color-picker__predefine"
|
|
2106
|
-
},
|
|
2099
|
+
}, kl = ["onClick"], wl = "linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)", Ml = /* @__PURE__ */ D({
|
|
2107
2100
|
__name: "FColorPicker",
|
|
2108
2101
|
props: /* @__PURE__ */ te({
|
|
2109
2102
|
showAlpha: { type: Boolean, default: !1 },
|
|
@@ -2184,7 +2177,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2184
2177
|
ne(k, (b) => {
|
|
2185
2178
|
b ? ce(() => document.addEventListener("mousedown", S)) : document.removeEventListener("mousedown", S);
|
|
2186
2179
|
}), Se(() => document.removeEventListener("mousedown", S));
|
|
2187
|
-
function
|
|
2180
|
+
function T() {
|
|
2188
2181
|
e.disabled || (k.value = !k.value);
|
|
2189
2182
|
}
|
|
2190
2183
|
function E(b, p, y) {
|
|
@@ -2198,15 +2191,15 @@ const ht = /* @__PURE__ */ D({
|
|
|
2198
2191
|
}
|
|
2199
2192
|
document.addEventListener("mousemove", B), document.addEventListener("mouseup", j);
|
|
2200
2193
|
}
|
|
2201
|
-
function
|
|
2194
|
+
function L(b, p, y) {
|
|
2202
2195
|
return Math.min(Math.max(b, p), y);
|
|
2203
2196
|
}
|
|
2204
2197
|
const X = R(null);
|
|
2205
|
-
function
|
|
2198
|
+
function z(b) {
|
|
2206
2199
|
X.value && E(
|
|
2207
2200
|
X.value,
|
|
2208
2201
|
(p, y, w) => {
|
|
2209
|
-
const B =
|
|
2202
|
+
const B = L(p - w.left, 0, w.width), j = L(y - w.top, 0, w.height);
|
|
2210
2203
|
c.s = B / w.width * 100, c.v = 100 - j / w.height * 100, g();
|
|
2211
2204
|
},
|
|
2212
2205
|
b
|
|
@@ -2217,18 +2210,18 @@ const ht = /* @__PURE__ */ D({
|
|
|
2217
2210
|
F.value && E(
|
|
2218
2211
|
F.value,
|
|
2219
2212
|
(p, y, w) => {
|
|
2220
|
-
const B =
|
|
2213
|
+
const B = L(p - w.left, 0, w.width);
|
|
2221
2214
|
c.h = B / w.width * 360, g();
|
|
2222
2215
|
},
|
|
2223
2216
|
b
|
|
2224
2217
|
);
|
|
2225
2218
|
}
|
|
2226
2219
|
const _ = R(null);
|
|
2227
|
-
function
|
|
2220
|
+
function I(b) {
|
|
2228
2221
|
_.value && E(
|
|
2229
2222
|
_.value,
|
|
2230
2223
|
(p, y, w) => {
|
|
2231
|
-
const B =
|
|
2224
|
+
const B = L(p - w.left, 0, w.width);
|
|
2232
2225
|
c.a = B / w.width, g();
|
|
2233
2226
|
},
|
|
2234
2227
|
b
|
|
@@ -2253,9 +2246,9 @@ const ht = /* @__PURE__ */ D({
|
|
|
2253
2246
|
}, [
|
|
2254
2247
|
m("div", {
|
|
2255
2248
|
class: "f-color-picker__trigger",
|
|
2256
|
-
onClick:
|
|
2249
|
+
onClick: T
|
|
2257
2250
|
}, [
|
|
2258
|
-
m("div",
|
|
2251
|
+
m("div", hl, [
|
|
2259
2252
|
m("span", {
|
|
2260
2253
|
class: "f-color-picker__swatch-color",
|
|
2261
2254
|
style: P({ background: `rgba(${i(v).r}, ${i(v).g}, ${i(v).b}, ${i(c).a})` })
|
|
@@ -2264,26 +2257,26 @@ const ht = /* @__PURE__ */ D({
|
|
|
2264
2257
|
]),
|
|
2265
2258
|
U(ie, { name: "f-color-picker-fade" }, {
|
|
2266
2259
|
default: G(() => [
|
|
2267
|
-
i(k) ? (l(), a("div",
|
|
2260
|
+
i(k) ? (l(), a("div", _l, [
|
|
2268
2261
|
m("div", {
|
|
2269
2262
|
ref_key: "panelRef",
|
|
2270
2263
|
ref: X,
|
|
2271
2264
|
class: "f-color-picker__saturation",
|
|
2272
2265
|
style: P({ backgroundColor: `hsl(${i(c).h}, 100%, 50%)` }),
|
|
2273
|
-
onMousedown:
|
|
2266
|
+
onMousedown: z
|
|
2274
2267
|
}, [
|
|
2275
2268
|
m("div", {
|
|
2276
2269
|
class: "f-color-picker__saturation-thumb",
|
|
2277
2270
|
style: P({ left: `${i(c).s}%`, top: `${100 - i(c).v}%` })
|
|
2278
2271
|
}, null, 4)
|
|
2279
2272
|
], 36),
|
|
2280
|
-
m("div",
|
|
2281
|
-
m("div",
|
|
2273
|
+
m("div", gl, [
|
|
2274
|
+
m("div", bl, [
|
|
2282
2275
|
m("div", {
|
|
2283
2276
|
ref_key: "hueRef",
|
|
2284
2277
|
ref: F,
|
|
2285
2278
|
class: "f-color-picker__hue",
|
|
2286
|
-
style: P({ backgroundImage:
|
|
2279
|
+
style: P({ backgroundImage: wl }),
|
|
2287
2280
|
onMousedown: d
|
|
2288
2281
|
}, [
|
|
2289
2282
|
m("div", {
|
|
@@ -2296,7 +2289,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2296
2289
|
ref_key: "alphaRef",
|
|
2297
2290
|
ref: _,
|
|
2298
2291
|
class: "f-color-picker__alpha",
|
|
2299
|
-
onMousedown:
|
|
2292
|
+
onMousedown: I
|
|
2300
2293
|
}, [
|
|
2301
2294
|
m("div", {
|
|
2302
2295
|
class: "f-color-picker__alpha-gradient",
|
|
@@ -2318,15 +2311,15 @@ const ht = /* @__PURE__ */ D({
|
|
|
2318
2311
|
type: "text",
|
|
2319
2312
|
value: M(),
|
|
2320
2313
|
onChange: A,
|
|
2321
|
-
onKeydown: p[0] || (p[0] =
|
|
2322
|
-
}, null, 40,
|
|
2323
|
-
b.predefine.length ? (l(), a("div",
|
|
2314
|
+
onKeydown: p[0] || (p[0] = xe((y) => y.target.blur(), ["enter"]))
|
|
2315
|
+
}, null, 40, yl),
|
|
2316
|
+
b.predefine.length ? (l(), a("div", $l, [
|
|
2324
2317
|
(l(!0), a(K, null, ee(b.predefine, (y) => (l(), a("span", {
|
|
2325
2318
|
key: y,
|
|
2326
2319
|
class: "f-color-picker__predefine-item",
|
|
2327
2320
|
style: P({ background: y }),
|
|
2328
2321
|
onClick: (w) => W(y)
|
|
2329
|
-
}, null, 12,
|
|
2322
|
+
}, null, 12, kl))), 128))
|
|
2330
2323
|
])) : x("", !0)
|
|
2331
2324
|
])) : x("", !0)
|
|
2332
2325
|
]),
|
|
@@ -2334,14 +2327,14 @@ const ht = /* @__PURE__ */ D({
|
|
|
2334
2327
|
})
|
|
2335
2328
|
], 2));
|
|
2336
2329
|
}
|
|
2337
|
-
}),
|
|
2330
|
+
}), Fl = { class: "f-empty" }, Cl = ["src"], Sl = {
|
|
2338
2331
|
key: 1,
|
|
2339
2332
|
viewBox: "0 0 160 160",
|
|
2340
2333
|
class: "f-empty__image-default"
|
|
2341
|
-
},
|
|
2334
|
+
}, zl = { class: "f-empty__description" }, Tl = {
|
|
2342
2335
|
key: 0,
|
|
2343
2336
|
class: "f-empty__extra"
|
|
2344
|
-
},
|
|
2337
|
+
}, Il = /* @__PURE__ */ D({
|
|
2345
2338
|
__name: "FEmpty",
|
|
2346
2339
|
props: {
|
|
2347
2340
|
description: { default: "暂无数据" },
|
|
@@ -2349,33 +2342,33 @@ const ht = /* @__PURE__ */ D({
|
|
|
2349
2342
|
imageSize: { default: 120 }
|
|
2350
2343
|
},
|
|
2351
2344
|
setup(r) {
|
|
2352
|
-
return (e, o) => (l(), a("div",
|
|
2345
|
+
return (e, o) => (l(), a("div", Fl, [
|
|
2353
2346
|
m("div", {
|
|
2354
2347
|
class: "f-empty__image",
|
|
2355
2348
|
style: P({ width: `${e.imageSize}px`, height: `${e.imageSize}px` })
|
|
2356
2349
|
}, [
|
|
2357
|
-
|
|
2350
|
+
V(e.$slots, "image", {}, () => [
|
|
2358
2351
|
e.image ? (l(), a("img", {
|
|
2359
2352
|
key: 0,
|
|
2360
2353
|
src: e.image,
|
|
2361
2354
|
class: "f-empty__image-img",
|
|
2362
2355
|
alt: ""
|
|
2363
|
-
}, null, 8,
|
|
2364
|
-
|
|
2356
|
+
}, null, 8, Cl)) : (l(), a("svg", Sl, o[0] || (o[0] = [
|
|
2357
|
+
Qe('<ellipse cx="80" cy="132" rx="46" ry="8" fill="currentColor" opacity="0.08"></ellipse><path d="M40 60 L120 60 L128 128 L32 128 Z" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><path d="M40 60 L58 32 L102 32 L120 60" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><line x1="32" y1="88" x2="128" y2="88" stroke="currentColor" stroke-width="3" opacity="0.35"></line><path d="M64 88 Q80 106 96 88" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" opacity="0.5"></path>', 5)
|
|
2365
2358
|
])))
|
|
2366
2359
|
])
|
|
2367
2360
|
], 4),
|
|
2368
|
-
m("div",
|
|
2369
|
-
|
|
2361
|
+
m("div", zl, [
|
|
2362
|
+
V(e.$slots, "description", {}, () => [
|
|
2370
2363
|
de(Y(e.description), 1)
|
|
2371
2364
|
])
|
|
2372
2365
|
]),
|
|
2373
|
-
e.$slots.default ? (l(), a("div",
|
|
2374
|
-
|
|
2366
|
+
e.$slots.default ? (l(), a("div", Tl, [
|
|
2367
|
+
V(e.$slots, "default")
|
|
2375
2368
|
])) : x("", !0)
|
|
2376
2369
|
]));
|
|
2377
2370
|
}
|
|
2378
|
-
}),
|
|
2371
|
+
}), Bl = { class: "f-slider__mark-label" }, xl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"], Rl = {
|
|
2379
2372
|
key: 0,
|
|
2380
2373
|
class: "f-slider__tooltip"
|
|
2381
2374
|
}, Ll = /* @__PURE__ */ D({
|
|
@@ -2417,8 +2410,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
2417
2410
|
return d === -1 ? 0 : F.length - d - 1;
|
|
2418
2411
|
});
|
|
2419
2412
|
function c(F) {
|
|
2420
|
-
const d = Math.min(Math.max(F, e.min), e.max), _ = Math.round((d - e.min) / e.step) * e.step + e.min,
|
|
2421
|
-
return Math.min(Math.max(
|
|
2413
|
+
const d = Math.min(Math.max(F, e.min), e.max), _ = Math.round((d - e.min) / e.step) * e.step + e.min, I = Number(_.toFixed(f.value));
|
|
2414
|
+
return Math.min(Math.max(I, e.min), e.max);
|
|
2422
2415
|
}
|
|
2423
2416
|
function u(F) {
|
|
2424
2417
|
return e.max === e.min ? 0 : (F - e.min) / (e.max - e.min) * 100;
|
|
@@ -2435,10 +2428,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
2435
2428
|
d.preventDefault(), d.stopPropagation();
|
|
2436
2429
|
const _ = M.value;
|
|
2437
2430
|
if (!_) return;
|
|
2438
|
-
const
|
|
2431
|
+
const I = _.getBoundingClientRect();
|
|
2439
2432
|
g.value = F;
|
|
2440
2433
|
function q(b, p) {
|
|
2441
|
-
const y = k(b, p,
|
|
2434
|
+
const y = k(b, p, I);
|
|
2442
2435
|
let w = $(y);
|
|
2443
2436
|
e.range && (F === 0 ? w = Math.min(w, t[1]) : w = Math.max(w, t[0])), t[F] !== w && (t[F] = w, n());
|
|
2444
2437
|
}
|
|
@@ -2453,19 +2446,19 @@ const ht = /* @__PURE__ */ D({
|
|
|
2453
2446
|
}
|
|
2454
2447
|
function S(F) {
|
|
2455
2448
|
if (e.disabled || !M.value || F.target.closest(".f-slider__thumb")) return;
|
|
2456
|
-
const d = M.value.getBoundingClientRect(), _ = k(F.clientX, F.clientY, d),
|
|
2457
|
-
t[q] =
|
|
2449
|
+
const d = M.value.getBoundingClientRect(), _ = k(F.clientX, F.clientY, d), I = $(_), q = e.range ? Math.abs(I - t[0]) <= Math.abs(I - t[1]) ? 0 : 1 : 0;
|
|
2450
|
+
t[q] = I, n();
|
|
2458
2451
|
}
|
|
2459
|
-
function
|
|
2452
|
+
function T(F, d) {
|
|
2460
2453
|
if (e.disabled) return;
|
|
2461
2454
|
const _ = e.vertical ? { inc: "ArrowUp", dec: "ArrowDown" } : { inc: "ArrowRight", dec: "ArrowLeft" };
|
|
2462
|
-
let
|
|
2463
|
-
if (d.key === _.inc)
|
|
2464
|
-
else if (d.key === _.dec)
|
|
2465
|
-
else if (d.key === "Home")
|
|
2466
|
-
else if (d.key === "End")
|
|
2455
|
+
let I = t[F];
|
|
2456
|
+
if (d.key === _.inc) I += e.step;
|
|
2457
|
+
else if (d.key === _.dec) I -= e.step;
|
|
2458
|
+
else if (d.key === "Home") I = e.min;
|
|
2459
|
+
else if (d.key === "End") I = e.max;
|
|
2467
2460
|
else return;
|
|
2468
|
-
d.preventDefault(),
|
|
2461
|
+
d.preventDefault(), I = c(I), e.range && (I = F === 0 ? Math.min(I, t[1]) : Math.max(I, t[0])), t[F] = I, n();
|
|
2469
2462
|
}
|
|
2470
2463
|
const E = C(() => {
|
|
2471
2464
|
if (e.range) {
|
|
@@ -2475,7 +2468,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2475
2468
|
const F = u(t[0]);
|
|
2476
2469
|
return e.vertical ? { bottom: "0%", height: `${F}%` } : { left: "0%", width: `${F}%` };
|
|
2477
2470
|
});
|
|
2478
|
-
function
|
|
2471
|
+
function L(F) {
|
|
2479
2472
|
const d = u(t[F]);
|
|
2480
2473
|
return e.vertical ? { bottom: `${d}%` } : { left: `${d}%` };
|
|
2481
2474
|
}
|
|
@@ -2486,7 +2479,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2486
2479
|
percent: u(Number(F))
|
|
2487
2480
|
}))
|
|
2488
2481
|
);
|
|
2489
|
-
function
|
|
2482
|
+
function z(F) {
|
|
2490
2483
|
return e.showTooltip && (g.value === F || v.value === F);
|
|
2491
2484
|
}
|
|
2492
2485
|
return (F, d) => (l(), a("div", {
|
|
@@ -2508,33 +2501,33 @@ const ht = /* @__PURE__ */ D({
|
|
|
2508
2501
|
style: P(F.vertical ? { bottom: `${_.percent}%` } : { left: `${_.percent}%` })
|
|
2509
2502
|
}, [
|
|
2510
2503
|
d[1] || (d[1] = m("span", { class: "f-slider__mark-dot" }, null, -1)),
|
|
2511
|
-
m("span",
|
|
2504
|
+
m("span", Bl, Y(_.label), 1)
|
|
2512
2505
|
], 4))), 128)),
|
|
2513
|
-
(l(!0), a(K, null, ee(i(t), (_,
|
|
2514
|
-
key:
|
|
2515
|
-
class: N(["f-slider__thumb", { "f-slider__thumb--active": i(g) ===
|
|
2516
|
-
style: P(
|
|
2506
|
+
(l(!0), a(K, null, ee(i(t), (_, I) => (l(), a("div", {
|
|
2507
|
+
key: I,
|
|
2508
|
+
class: N(["f-slider__thumb", { "f-slider__thumb--active": i(g) === I }]),
|
|
2509
|
+
style: P(L(I)),
|
|
2517
2510
|
tabindex: "0",
|
|
2518
2511
|
role: "slider",
|
|
2519
2512
|
"aria-valuemin": F.min,
|
|
2520
2513
|
"aria-valuemax": F.max,
|
|
2521
2514
|
"aria-valuenow": _,
|
|
2522
|
-
onMousedown: (q) => h(
|
|
2523
|
-
onKeydown: (q) => I
|
|
2524
|
-
onMouseenter: (q) => v.value =
|
|
2515
|
+
onMousedown: (q) => h(I, q),
|
|
2516
|
+
onKeydown: (q) => T(I, q),
|
|
2517
|
+
onMouseenter: (q) => v.value = I,
|
|
2525
2518
|
onMouseleave: d[0] || (d[0] = (q) => v.value = null)
|
|
2526
2519
|
}, [
|
|
2527
2520
|
U(ie, { name: "f-slider-tooltip-fade" }, {
|
|
2528
2521
|
default: G(() => [
|
|
2529
|
-
|
|
2522
|
+
z(I) ? (l(), a("div", Rl, Y(_), 1)) : x("", !0)
|
|
2530
2523
|
]),
|
|
2531
2524
|
_: 2
|
|
2532
2525
|
}, 1024)
|
|
2533
|
-
], 46,
|
|
2526
|
+
], 46, xl))), 128))
|
|
2534
2527
|
], 544)
|
|
2535
2528
|
], 2));
|
|
2536
2529
|
}
|
|
2537
|
-
}),
|
|
2530
|
+
}), Vl = /* @__PURE__ */ D({
|
|
2538
2531
|
__name: "FScrollbar",
|
|
2539
2532
|
props: {
|
|
2540
2533
|
height: { default: "" },
|
|
@@ -2548,12 +2541,12 @@ const ht = /* @__PURE__ */ D({
|
|
|
2548
2541
|
emits: ["scroll"],
|
|
2549
2542
|
setup(r, { expose: e, emit: o }) {
|
|
2550
2543
|
const t = r, s = o, n = R(null), f = R(null), c = R(null), u = R(null), $ = R(1), M = R(1), g = R(0), v = R(0), k = R(!1), h = R(!1);
|
|
2551
|
-
let S = null,
|
|
2544
|
+
let S = null, T = null;
|
|
2552
2545
|
const E = C(() => ({
|
|
2553
2546
|
height: t.height || void 0,
|
|
2554
2547
|
maxHeight: t.maxHeight || void 0
|
|
2555
2548
|
}));
|
|
2556
|
-
function
|
|
2549
|
+
function L() {
|
|
2557
2550
|
const A = n.value;
|
|
2558
2551
|
if (!A) return;
|
|
2559
2552
|
const { clientHeight: W, scrollHeight: b, clientWidth: p, scrollWidth: y, scrollTop: w, scrollLeft: B } = A;
|
|
@@ -2562,13 +2555,13 @@ const ht = /* @__PURE__ */ D({
|
|
|
2562
2555
|
g.value = j > 0 ? w / j * (1 - $.value) * 100 : 0, v.value = H > 0 ? B / H * (1 - M.value) * 100 : 0;
|
|
2563
2556
|
}
|
|
2564
2557
|
function X() {
|
|
2565
|
-
|
|
2558
|
+
L(), k.value || F();
|
|
2566
2559
|
const A = n.value;
|
|
2567
2560
|
A && s("scroll", { scrollTop: A.scrollTop, scrollLeft: A.scrollLeft });
|
|
2568
2561
|
}
|
|
2569
|
-
let
|
|
2562
|
+
let z = null;
|
|
2570
2563
|
function F() {
|
|
2571
|
-
h.value = !0,
|
|
2564
|
+
h.value = !0, z && clearTimeout(z), z = setTimeout(() => {
|
|
2572
2565
|
k.value || (h.value = !1);
|
|
2573
2566
|
}, 800);
|
|
2574
2567
|
}
|
|
@@ -2591,7 +2584,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2591
2584
|
const b = n.value;
|
|
2592
2585
|
b && (typeof A == "number" ? b.scrollTo(A, W != null ? W : b.scrollTop) : b.scrollTo(A));
|
|
2593
2586
|
}
|
|
2594
|
-
function
|
|
2587
|
+
function I(A) {
|
|
2595
2588
|
n.value && (n.value.scrollTop = A);
|
|
2596
2589
|
}
|
|
2597
2590
|
function q(A) {
|
|
@@ -2599,19 +2592,19 @@ const ht = /* @__PURE__ */ D({
|
|
|
2599
2592
|
}
|
|
2600
2593
|
return e({
|
|
2601
2594
|
scrollTo: _,
|
|
2602
|
-
setScrollTop:
|
|
2595
|
+
setScrollTop: I,
|
|
2603
2596
|
setScrollLeft: q,
|
|
2604
|
-
update:
|
|
2597
|
+
update: L,
|
|
2605
2598
|
wrapRef: n
|
|
2606
2599
|
}), Ce(() => {
|
|
2607
2600
|
t.native || ce(() => {
|
|
2608
|
-
|
|
2601
|
+
L(), n.value && (S = new ResizeObserver(() => L()), S.observe(n.value)), f.value && (T = new ResizeObserver(() => L()), T.observe(f.value));
|
|
2609
2602
|
});
|
|
2610
2603
|
}), Se(() => {
|
|
2611
|
-
S == null || S.disconnect(),
|
|
2604
|
+
S == null || S.disconnect(), T == null || T.disconnect(), z && clearTimeout(z);
|
|
2612
2605
|
}), ne(
|
|
2613
2606
|
() => [t.height, t.maxHeight],
|
|
2614
|
-
() => ce(
|
|
2607
|
+
() => ce(L)
|
|
2615
2608
|
), (A, W) => (l(), a("div", {
|
|
2616
2609
|
class: N(["f-scrollbar", { "f-scrollbar--native": A.native }]),
|
|
2617
2610
|
onMouseenter: W[2] || (W[2] = (b) => !A.native && F())
|
|
@@ -2628,7 +2621,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2628
2621
|
ref: f,
|
|
2629
2622
|
class: "f-scrollbar__view"
|
|
2630
2623
|
}, [
|
|
2631
|
-
|
|
2624
|
+
V(A.$slots, "default")
|
|
2632
2625
|
], 512)
|
|
2633
2626
|
], 38),
|
|
2634
2627
|
A.native ? x("", !0) : (l(), a(K, { key: 0 }, [
|
|
@@ -2659,10 +2652,10 @@ const ht = /* @__PURE__ */ D({
|
|
|
2659
2652
|
], 64))
|
|
2660
2653
|
], 34));
|
|
2661
2654
|
}
|
|
2662
|
-
}),
|
|
2655
|
+
}), El = ["disabled"], Al = ["value", "disabled", "placeholder"], Dl = ["disabled"], Hl = {
|
|
2663
2656
|
key: 2,
|
|
2664
2657
|
class: "f-input-number__stack"
|
|
2665
|
-
},
|
|
2658
|
+
}, Pl = ["disabled"], Nl = ["disabled"], jl = /* @__PURE__ */ D({
|
|
2666
2659
|
__name: "FInputNumber",
|
|
2667
2660
|
props: /* @__PURE__ */ te({
|
|
2668
2661
|
min: { default: -1 / 0 },
|
|
@@ -2706,8 +2699,8 @@ const ht = /* @__PURE__ */ D({
|
|
|
2706
2699
|
n.value = o.value === void 0 ? "" : f(o.value);
|
|
2707
2700
|
return;
|
|
2708
2701
|
}
|
|
2709
|
-
const
|
|
2710
|
-
o.value =
|
|
2702
|
+
const I = c(_);
|
|
2703
|
+
o.value = I, n.value = f(I);
|
|
2711
2704
|
}
|
|
2712
2705
|
function g(d) {
|
|
2713
2706
|
const _ = d.target.value;
|
|
@@ -2726,19 +2719,19 @@ const ht = /* @__PURE__ */ D({
|
|
|
2726
2719
|
function S(d) {
|
|
2727
2720
|
var q;
|
|
2728
2721
|
if (e.disabled) return;
|
|
2729
|
-
const _ = (q = o.value) != null ? q : 0,
|
|
2730
|
-
o.value =
|
|
2722
|
+
const _ = (q = o.value) != null ? q : 0, I = c(_ + d * e.step);
|
|
2723
|
+
o.value = I, n.value = f(I);
|
|
2731
2724
|
}
|
|
2732
|
-
let
|
|
2733
|
-
function
|
|
2734
|
-
e.disabled || (S(d),
|
|
2725
|
+
let T = null, E = null;
|
|
2726
|
+
function L(d) {
|
|
2727
|
+
e.disabled || (S(d), T = setTimeout(() => {
|
|
2735
2728
|
E = setInterval(() => S(d), 80);
|
|
2736
2729
|
}, 400));
|
|
2737
2730
|
}
|
|
2738
2731
|
function X() {
|
|
2739
|
-
|
|
2732
|
+
T && clearTimeout(T), E && clearInterval(E), T = null, E = null;
|
|
2740
2733
|
}
|
|
2741
|
-
function
|
|
2734
|
+
function z(d) {
|
|
2742
2735
|
d.key === "ArrowUp" ? (d.preventDefault(), S(1)) : d.key === "ArrowDown" ? (d.preventDefault(), S(-1)) : d.key === "Enter" && h();
|
|
2743
2736
|
}
|
|
2744
2737
|
function F(d) {
|
|
@@ -2757,7 +2750,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2757
2750
|
class: "f-input-number__control f-input-number__control--minus",
|
|
2758
2751
|
tabindex: "-1",
|
|
2759
2752
|
disabled: d.disabled || !i($),
|
|
2760
|
-
onMousedown: _[0] || (_[0] = re((
|
|
2753
|
+
onMousedown: _[0] || (_[0] = re((I) => L(-1), ["prevent"])),
|
|
2761
2754
|
onMouseup: X,
|
|
2762
2755
|
onMouseleave: X
|
|
2763
2756
|
}, _[4] || (_[4] = [
|
|
@@ -2773,7 +2766,7 @@ const ht = /* @__PURE__ */ D({
|
|
|
2773
2766
|
"stroke-linecap": "round"
|
|
2774
2767
|
})
|
|
2775
2768
|
], -1)
|
|
2776
|
-
]), 40,
|
|
2769
|
+
]), 40, El)) : x("", !0),
|
|
2777
2770
|
m("input", {
|
|
2778
2771
|
ref_key: "inputRef",
|
|
2779
2772
|
ref: t,
|
|
@@ -2786,16 +2779,16 @@ const ht = /* @__PURE__ */ D({
|
|
|
2786
2779
|
onInput: g,
|
|
2787
2780
|
onFocus: v,
|
|
2788
2781
|
onBlur: k,
|
|
2789
|
-
onKeydown:
|
|
2782
|
+
onKeydown: z,
|
|
2790
2783
|
onWheel: F
|
|
2791
|
-
}, null, 40,
|
|
2784
|
+
}, null, 40, Al),
|
|
2792
2785
|
d.controls && d.controlsPosition === "both" ? (l(), a("button", {
|
|
2793
2786
|
key: 1,
|
|
2794
2787
|
type: "button",
|
|
2795
2788
|
class: "f-input-number__control f-input-number__control--plus",
|
|
2796
2789
|
tabindex: "-1",
|
|
2797
2790
|
disabled: d.disabled || !i(u),
|
|
2798
|
-
onMousedown: _[1] || (_[1] = re((
|
|
2791
|
+
onMousedown: _[1] || (_[1] = re((I) => L(1), ["prevent"])),
|
|
2799
2792
|
onMouseup: X,
|
|
2800
2793
|
onMouseleave: X
|
|
2801
2794
|
}, _[5] || (_[5] = [
|
|
@@ -2811,14 +2804,14 @@ const ht = /* @__PURE__ */ D({
|
|
|
2811
2804
|
"stroke-linecap": "round"
|
|
2812
2805
|
})
|
|
2813
2806
|
], -1)
|
|
2814
|
-
]), 40,
|
|
2815
|
-
d.controls && d.controlsPosition === "right" ? (l(), a("div",
|
|
2807
|
+
]), 40, Dl)) : x("", !0),
|
|
2808
|
+
d.controls && d.controlsPosition === "right" ? (l(), a("div", Hl, [
|
|
2816
2809
|
m("button", {
|
|
2817
2810
|
type: "button",
|
|
2818
2811
|
class: "f-input-number__stack-btn",
|
|
2819
2812
|
tabindex: "-1",
|
|
2820
2813
|
disabled: d.disabled || !i(u),
|
|
2821
|
-
onMousedown: _[2] || (_[2] = re((
|
|
2814
|
+
onMousedown: _[2] || (_[2] = re((I) => L(1), ["prevent"])),
|
|
2822
2815
|
onMouseup: X,
|
|
2823
2816
|
onMouseleave: X
|
|
2824
2817
|
}, _[6] || (_[6] = [
|
|
@@ -2836,13 +2829,13 @@ const ht = /* @__PURE__ */ D({
|
|
|
2836
2829
|
"stroke-linejoin": "round"
|
|
2837
2830
|
})
|
|
2838
2831
|
], -1)
|
|
2839
|
-
]), 40,
|
|
2832
|
+
]), 40, Pl),
|
|
2840
2833
|
m("button", {
|
|
2841
2834
|
type: "button",
|
|
2842
2835
|
class: "f-input-number__stack-btn",
|
|
2843
2836
|
tabindex: "-1",
|
|
2844
2837
|
disabled: d.disabled || !i($),
|
|
2845
|
-
onMousedown: _[3] || (_[3] = re((
|
|
2838
|
+
onMousedown: _[3] || (_[3] = re((I) => L(-1), ["prevent"])),
|
|
2846
2839
|
onMouseup: X,
|
|
2847
2840
|
onMouseleave: X
|
|
2848
2841
|
}, _[7] || (_[7] = [
|
|
@@ -2860,101 +2853,101 @@ const ht = /* @__PURE__ */ D({
|
|
|
2860
2853
|
"stroke-linejoin": "round"
|
|
2861
2854
|
})
|
|
2862
2855
|
], -1)
|
|
2863
|
-
]), 40,
|
|
2856
|
+
]), 40, Nl)
|
|
2864
2857
|
])) : x("", !0)
|
|
2865
2858
|
], 2));
|
|
2866
2859
|
}
|
|
2867
|
-
}),
|
|
2860
|
+
}), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2868
2861
|
__proto__: null,
|
|
2869
|
-
FAffix:
|
|
2870
|
-
FAlert:
|
|
2871
|
-
FAvatar:
|
|
2872
|
-
FBadge:
|
|
2873
|
-
FBreadcrumb:
|
|
2874
|
-
FButton:
|
|
2875
|
-
FButtonGroup:
|
|
2876
|
-
FCard:
|
|
2877
|
-
FCheckbox:
|
|
2878
|
-
FCol:
|
|
2879
|
-
FCollapse:
|
|
2880
|
-
FCollapseItem:
|
|
2881
|
-
FColorPicker:
|
|
2882
|
-
FContainer:
|
|
2883
|
-
FDialog:
|
|
2884
|
-
FDivider:
|
|
2885
|
-
FDropdown:
|
|
2886
|
-
FEditor:
|
|
2887
|
-
FEmpty:
|
|
2888
|
-
FForm:
|
|
2889
|
-
FFormItem:
|
|
2862
|
+
FAffix: ns,
|
|
2863
|
+
FAlert: Fs,
|
|
2864
|
+
FAvatar: Wo,
|
|
2865
|
+
FBadge: ss,
|
|
2866
|
+
FBreadcrumb: To,
|
|
2867
|
+
FButton: Uo,
|
|
2868
|
+
FButtonGroup: ul,
|
|
2869
|
+
FCard: fo,
|
|
2870
|
+
FCheckbox: ys,
|
|
2871
|
+
FCol: Bo,
|
|
2872
|
+
FCollapse: dl,
|
|
2873
|
+
FCollapseItem: vl,
|
|
2874
|
+
FColorPicker: Ml,
|
|
2875
|
+
FContainer: Ho,
|
|
2876
|
+
FDialog: el,
|
|
2877
|
+
FDivider: No,
|
|
2878
|
+
FDropdown: De,
|
|
2879
|
+
FEditor: Vs,
|
|
2880
|
+
FEmpty: Il,
|
|
2881
|
+
FForm: rs,
|
|
2882
|
+
FFormItem: vs,
|
|
2890
2883
|
FIcon: oe,
|
|
2891
|
-
FImage:
|
|
2892
|
-
FInput:
|
|
2893
|
-
FInputNumber:
|
|
2894
|
-
FLink:
|
|
2895
|
-
FLoading:
|
|
2896
|
-
FPagination:
|
|
2897
|
-
FProgress:
|
|
2898
|
-
FRate:
|
|
2899
|
-
FRow:
|
|
2900
|
-
FScrollbar:
|
|
2901
|
-
FSelect:
|
|
2884
|
+
FImage: Ft,
|
|
2885
|
+
FInput: zt,
|
|
2886
|
+
FInputNumber: jl,
|
|
2887
|
+
FLink: es,
|
|
2888
|
+
FLoading: Ae,
|
|
2889
|
+
FPagination: Qt,
|
|
2890
|
+
FProgress: Ne,
|
|
2891
|
+
FRate: xt,
|
|
2892
|
+
FRow: Ro,
|
|
2893
|
+
FScrollbar: Vl,
|
|
2894
|
+
FSelect: Pt,
|
|
2902
2895
|
FSlider: Ll,
|
|
2903
|
-
FSpace:
|
|
2904
|
-
FTable:
|
|
2905
|
-
FTabs:
|
|
2906
|
-
FTag:
|
|
2907
|
-
FText:
|
|
2908
|
-
FTooltip:
|
|
2909
|
-
FTypography:
|
|
2910
|
-
FUpload:
|
|
2911
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2912
|
-
Object.entries(
|
|
2896
|
+
FSpace: Ao,
|
|
2897
|
+
FTable: Qs,
|
|
2898
|
+
FTabs: Mo,
|
|
2899
|
+
FTag: He,
|
|
2900
|
+
FText: Jo,
|
|
2901
|
+
FTooltip: Pe,
|
|
2902
|
+
FTypography: Ko,
|
|
2903
|
+
FUpload: il
|
|
2904
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = (r) => {
|
|
2905
|
+
Object.entries(Ol).forEach(([e, o]) => {
|
|
2913
2906
|
r.component(e, o);
|
|
2914
2907
|
});
|
|
2915
2908
|
};
|
|
2916
2909
|
export {
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2910
|
+
ns as FAffix,
|
|
2911
|
+
Fs as FAlert,
|
|
2912
|
+
Wo as FAvatar,
|
|
2913
|
+
ss as FBadge,
|
|
2914
|
+
To as FBreadcrumb,
|
|
2915
|
+
Uo as FButton,
|
|
2916
|
+
ul as FButtonGroup,
|
|
2917
|
+
fo as FCard,
|
|
2918
|
+
ys as FCheckbox,
|
|
2919
|
+
Bo as FCol,
|
|
2920
|
+
dl as FCollapse,
|
|
2921
|
+
vl as FCollapseItem,
|
|
2922
|
+
Ml as FColorPicker,
|
|
2923
|
+
Ho as FContainer,
|
|
2924
|
+
el as FDialog,
|
|
2925
|
+
No as FDivider,
|
|
2926
|
+
De as FDropdown,
|
|
2927
|
+
Vs as FEditor,
|
|
2928
|
+
Il as FEmpty,
|
|
2929
|
+
rs as FForm,
|
|
2930
|
+
vs as FFormItem,
|
|
2938
2931
|
oe as FIcon,
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2932
|
+
Ft as FImage,
|
|
2933
|
+
zt as FInput,
|
|
2934
|
+
jl as FInputNumber,
|
|
2935
|
+
es as FLink,
|
|
2936
|
+
Ae as FLoading,
|
|
2937
|
+
Qt as FPagination,
|
|
2938
|
+
Ne as FProgress,
|
|
2939
|
+
xt as FRate,
|
|
2940
|
+
Ro as FRow,
|
|
2941
|
+
Vl as FScrollbar,
|
|
2942
|
+
Pt as FSelect,
|
|
2950
2943
|
Ll as FSlider,
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2944
|
+
Ao as FSpace,
|
|
2945
|
+
Qs as FTable,
|
|
2946
|
+
Mo as FTabs,
|
|
2947
|
+
He as FTag,
|
|
2948
|
+
Jo as FText,
|
|
2949
|
+
Pe as FTooltip,
|
|
2950
|
+
Ko as FTypography,
|
|
2951
|
+
il as FUpload,
|
|
2952
|
+
Gl as default
|
|
2960
2953
|
};
|