fantasia-ui 0.6.13 → 0.7.1
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/fantasia-ui.css +194 -0
- package/dist/fantasia-ui.es.js +832 -512
- package/dist/fantasia-ui.umd.js +832 -512
- package/dist/types/packages/components/index.d.ts +2 -0
- package/dist/types/packages/components/modules/FInfiniteScroll.vue.d.ts +44 -0
- package/dist/types/packages/components/modules/FPopconfirm.vue.d.ts +43 -0
- package/dist/types/packages/types/components/index.d.ts +2 -0
- package/dist/types/packages/types/components/modules/f-infinite-scroll.d.ts +13 -0
- package/dist/types/packages/types/components/modules/f-popconfirm.d.ts +25 -0
- package/package.json +1 -1
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -40,7 +40,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
40
40
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, useSlots, inject, createBlock, resolveDynamicComponent, withModifiers, nextTick, onMounted, onBeforeUnmount, onUnmounted, Teleport, createTextVNode, withKeys, isRef, vModelText, TransitionGroup, Comment as Comment$1, Text, provide, readonly, reactive, toRefs, h, render } from "vue";
|
|
41
41
|
import { CloseCircleOutline, EyeOutline, EyeOffOutline, StarOutline, StarHalf, Star, CloseCircle, Close, ChevronDownOutline, CalendarOutline, ChevronBackOutline, ChevronForwardOutline, EllipsisHorizontal, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, CheckmarkCircle, AlertCircle, DocumentOutline, Reload, FileTrayOutline, RemoveOutline, AddOutline, ChevronUpOutline, InformationCircle, RefreshOutline, PauseOutline, PlayOutline, CloseOutline, Warning } from "@vicons/ionicons5";
|
|
42
42
|
import { useResizeObserver, useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -71,17 +71,17 @@ const _export_sfc = (sfc, props) => {
|
|
|
71
71
|
}
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
|
-
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-50cd082e"]]);
|
|
75
75
|
const PictureError = "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";
|
|
76
|
-
const _hoisted_1$
|
|
76
|
+
const _hoisted_1$M = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$G = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
84
|
-
const _sfc_main$
|
|
84
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
85
85
|
__name: "FLoading",
|
|
86
86
|
props: {
|
|
87
87
|
type: { default: "dots" },
|
|
@@ -94,7 +94,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
return openBlock(), createElementBlock("div", {
|
|
95
95
|
class: normalizeClass(["flex-center-col size-full loading-container", { "global-mask": _ctx.mask }])
|
|
96
96
|
}, [
|
|
97
|
-
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
97
|
+
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
98
98
|
(openBlock(), createElementBlock(Fragment, null, renderList(6, (i) => {
|
|
99
99
|
return createElementVNode("div", {
|
|
100
100
|
class: "item cubes",
|
|
@@ -105,23 +105,23 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
key: 1,
|
|
106
106
|
class: normalizeClass(["loader", _ctx.type])
|
|
107
107
|
}, null, 2)),
|
|
108
|
-
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
108
|
+
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$G, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
113
|
+
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-b0bde403"]]);
|
|
114
|
+
const _hoisted_1$L = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$F = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$A = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
123
|
-
const _hoisted_4$
|
|
124
|
-
const _sfc_main$
|
|
123
|
+
const _hoisted_4$n = ["src", "loading"];
|
|
124
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
127
127
|
src: {},
|
|
@@ -138,10 +138,10 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
const onLoad = () => status.value = "loaded";
|
|
139
139
|
const onError = () => status.value = "error";
|
|
140
140
|
return (_ctx, _cache) => {
|
|
141
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
141
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
142
142
|
createVNode(Transition, { name: "fade" }, {
|
|
143
143
|
default: withCtx(() => [
|
|
144
|
-
unref(status) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
144
|
+
unref(status) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,7 +149,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
}),
|
|
150
150
|
createVNode(Transition, { name: "fade" }, {
|
|
151
151
|
default: withCtx(() => [
|
|
152
|
-
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
152
|
+
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
154
|
createVNode(FIcon, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
@@ -169,21 +169,21 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
class: "f-image__img",
|
|
170
170
|
onLoad,
|
|
171
171
|
onError
|
|
172
|
-
}, null, 44, _hoisted_4$
|
|
172
|
+
}, null, 44, _hoisted_4$n), [
|
|
173
173
|
[vShow, unref(status) === "loaded"]
|
|
174
174
|
])
|
|
175
175
|
]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
180
|
-
const _hoisted_1$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-3057ceb9"]]);
|
|
180
|
+
const _hoisted_1$K = {
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "f-input__prefix"
|
|
183
183
|
};
|
|
184
|
-
const _hoisted_2$
|
|
185
|
-
const _hoisted_3$
|
|
186
|
-
const _sfc_main$
|
|
184
|
+
const _hoisted_2$E = ["type", "value", "placeholder"];
|
|
185
|
+
const _hoisted_3$z = { class: "f-input__suffix" };
|
|
186
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
187
187
|
__name: "FInput",
|
|
188
188
|
props: /* @__PURE__ */ mergeModels({
|
|
189
189
|
type: {},
|
|
@@ -243,7 +243,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
243
243
|
"is-round": _ctx.round
|
|
244
244
|
}])
|
|
245
245
|
}, [
|
|
246
|
-
unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
246
|
+
unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
247
247
|
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
248
248
|
createVNode(FIcon, null, {
|
|
249
249
|
default: withCtx(() => [
|
|
@@ -261,8 +261,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
261
261
|
onBlur,
|
|
262
262
|
onFocus,
|
|
263
263
|
class: "f-input__inner"
|
|
264
|
-
}, null, 40, _hoisted_2$
|
|
265
|
-
createElementVNode("div", _hoisted_3$
|
|
264
|
+
}, null, 40, _hoisted_2$E),
|
|
265
|
+
createElementVNode("div", _hoisted_3$z, [
|
|
266
266
|
unref(showClearIcon) ? (openBlock(), createBlock(FIcon, {
|
|
267
267
|
key: 0,
|
|
268
268
|
class: "icon-btn",
|
|
@@ -293,13 +293,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
|
-
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
297
|
-
const _hoisted_1$
|
|
298
|
-
const _hoisted_2$
|
|
296
|
+
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-1316bd23"]]);
|
|
297
|
+
const _hoisted_1$J = ["value", "placeholder", "disabled", "maxlength"];
|
|
298
|
+
const _hoisted_2$D = {
|
|
299
299
|
key: 1,
|
|
300
300
|
class: "f-textarea__count"
|
|
301
301
|
};
|
|
302
|
-
const _sfc_main$
|
|
302
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
303
303
|
__name: "FTextarea",
|
|
304
304
|
props: /* @__PURE__ */ mergeModels({
|
|
305
305
|
placeholder: {},
|
|
@@ -404,7 +404,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
404
404
|
onInput,
|
|
405
405
|
onBlur,
|
|
406
406
|
onFocus
|
|
407
|
-
}, null, 44, _hoisted_1$
|
|
407
|
+
}, null, 44, _hoisted_1$J),
|
|
408
408
|
unref(showClear) ? (openBlock(), createElementBlock("button", {
|
|
409
409
|
key: 0,
|
|
410
410
|
type: "button",
|
|
@@ -419,18 +419,18 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
419
419
|
_: 1
|
|
420
420
|
})
|
|
421
421
|
])) : createCommentVNode("", true),
|
|
422
|
-
_ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
422
|
+
_ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(unref(countText)), 1)) : createCommentVNode("", true)
|
|
423
423
|
], 2);
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
const FTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
428
|
-
const _hoisted_1$
|
|
429
|
-
const _hoisted_2$
|
|
427
|
+
const FTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-177d85dc"]]);
|
|
428
|
+
const _hoisted_1$I = ["onMousemove"];
|
|
429
|
+
const _hoisted_2$C = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "f-rate__score"
|
|
432
432
|
};
|
|
433
|
-
const _sfc_main$
|
|
433
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
434
434
|
__name: "FRate",
|
|
435
435
|
props: /* @__PURE__ */ mergeModels({
|
|
436
436
|
modelValue: {},
|
|
@@ -513,15 +513,15 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
513
513
|
]),
|
|
514
514
|
_: 2
|
|
515
515
|
}, 1032, ["color", "size"])
|
|
516
|
-
], 40, _hoisted_1$
|
|
516
|
+
], 40, _hoisted_1$I);
|
|
517
517
|
}), 128)),
|
|
518
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
518
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$C, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
519
519
|
], 34);
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
|
-
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
524
|
-
const _sfc_main$
|
|
523
|
+
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-b6e077c9"]]);
|
|
524
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
525
525
|
__name: "FScrollbar",
|
|
526
526
|
props: {
|
|
527
527
|
height: { default: "" },
|
|
@@ -709,14 +709,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
|
-
const FScrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
713
|
-
const _hoisted_1$
|
|
714
|
-
const _hoisted_2$
|
|
715
|
-
const _hoisted_3$
|
|
712
|
+
const FScrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-b0e3c8ea"]]);
|
|
713
|
+
const _hoisted_1$H = { class: "f-checkbox__wrapper" };
|
|
714
|
+
const _hoisted_2$B = ["checked", "disabled"];
|
|
715
|
+
const _hoisted_3$y = {
|
|
716
716
|
key: 0,
|
|
717
717
|
class: "f-checkbox__label"
|
|
718
718
|
};
|
|
719
|
-
const _sfc_main$
|
|
719
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
720
720
|
__name: "FCheckbox",
|
|
721
721
|
props: /* @__PURE__ */ mergeModels({
|
|
722
722
|
label: {},
|
|
@@ -738,29 +738,29 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
738
738
|
return openBlock(), createElementBlock("label", {
|
|
739
739
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
740
740
|
}, [
|
|
741
|
-
createElementVNode("span", _hoisted_1$
|
|
741
|
+
createElementVNode("span", _hoisted_1$H, [
|
|
742
742
|
createElementVNode("input", {
|
|
743
743
|
type: "checkbox",
|
|
744
744
|
checked: modelValue.value,
|
|
745
745
|
disabled: _ctx.disabled,
|
|
746
746
|
onChange: handleChange
|
|
747
|
-
}, null, 40, _hoisted_2$
|
|
747
|
+
}, null, 40, _hoisted_2$B),
|
|
748
748
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
749
749
|
]),
|
|
750
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
750
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$y, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
751
751
|
], 2);
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
});
|
|
755
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
756
|
-
const _hoisted_1$
|
|
757
|
-
const _hoisted_2$
|
|
758
|
-
const _hoisted_3$
|
|
755
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-eeeb70b5"]]);
|
|
756
|
+
const _hoisted_1$G = { class: "f-dropdown-content" };
|
|
757
|
+
const _hoisted_2$A = ["onClick"];
|
|
758
|
+
const _hoisted_3$x = {
|
|
759
759
|
key: 1,
|
|
760
760
|
class: "opt-icon"
|
|
761
761
|
};
|
|
762
|
-
const _hoisted_4$
|
|
763
|
-
const _sfc_main$
|
|
762
|
+
const _hoisted_4$m = { class: "opt-label" };
|
|
763
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
764
764
|
__name: "FDropdown",
|
|
765
765
|
props: {
|
|
766
766
|
placement: { default: "right-start" },
|
|
@@ -1016,7 +1016,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
1016
1016
|
class: "f-dropdown-scrollbar"
|
|
1017
1017
|
}, {
|
|
1018
1018
|
default: withCtx(() => [
|
|
1019
|
-
createElementVNode("div", _hoisted_1$
|
|
1019
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
1020
1020
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
1021
1021
|
return openBlock(), createElementBlock("div", {
|
|
1022
1022
|
key: opt.key,
|
|
@@ -1029,11 +1029,11 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
1029
1029
|
disabled: opt.disabled,
|
|
1030
1030
|
class: "opt-checkbox"
|
|
1031
1031
|
}, null, 8, ["model-value", "disabled"])) : createCommentVNode("", true),
|
|
1032
|
-
opt.icon && !_ctx.multiple ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1032
|
+
opt.icon && !_ctx.multiple ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
|
|
1033
1033
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
1034
1034
|
])) : createCommentVNode("", true),
|
|
1035
|
-
createElementVNode("span", _hoisted_4$
|
|
1036
|
-
], 10, _hoisted_2$
|
|
1035
|
+
createElementVNode("span", _hoisted_4$m, toDisplayString(opt.label), 1)
|
|
1036
|
+
], 10, _hoisted_2$A);
|
|
1037
1037
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
1038
1038
|
]),
|
|
1039
1039
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
@@ -1049,12 +1049,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
1051
|
});
|
|
1052
|
-
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1053
|
-
const _hoisted_1$
|
|
1052
|
+
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-c46e9d1e"]]);
|
|
1053
|
+
const _hoisted_1$F = {
|
|
1054
1054
|
key: 0,
|
|
1055
1055
|
class: "f-tag__dot"
|
|
1056
1056
|
};
|
|
1057
|
-
const _sfc_main$
|
|
1057
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
1058
1058
|
__name: "FTag",
|
|
1059
1059
|
props: {
|
|
1060
1060
|
color: {},
|
|
@@ -1078,7 +1078,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
1078
1078
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
1079
1079
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
1080
1080
|
}, [
|
|
1081
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1081
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$F)) : createCommentVNode("", true),
|
|
1082
1082
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1083
1083
|
_ctx.closable ? (openBlock(), createBlock(FIcon, {
|
|
1084
1084
|
key: 1,
|
|
@@ -1094,22 +1094,22 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
|
-
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1098
|
-
const _hoisted_1$
|
|
1097
|
+
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-19e20dd3"]]);
|
|
1098
|
+
const _hoisted_1$E = {
|
|
1099
1099
|
key: 0,
|
|
1100
1100
|
class: "f-select__tags"
|
|
1101
1101
|
};
|
|
1102
|
-
const _hoisted_2$
|
|
1103
|
-
const _hoisted_3$
|
|
1102
|
+
const _hoisted_2$z = ["placeholder", "disabled"];
|
|
1103
|
+
const _hoisted_3$w = {
|
|
1104
1104
|
key: 1,
|
|
1105
1105
|
class: "f-select__label is-placeholder"
|
|
1106
1106
|
};
|
|
1107
|
-
const _hoisted_4$
|
|
1108
|
-
const _hoisted_5$
|
|
1109
|
-
const _hoisted_6$
|
|
1110
|
-
const _hoisted_7$
|
|
1111
|
-
const _hoisted_8$
|
|
1112
|
-
const _hoisted_9$
|
|
1107
|
+
const _hoisted_4$l = ["placeholder"];
|
|
1108
|
+
const _hoisted_5$g = { class: "f-select__suffix" };
|
|
1109
|
+
const _hoisted_6$f = ["data-placement"];
|
|
1110
|
+
const _hoisted_7$a = { class: "f-select-dropdown__content" };
|
|
1111
|
+
const _hoisted_8$9 = ["onClick"];
|
|
1112
|
+
const _hoisted_9$8 = { class: "f-select-option__label" };
|
|
1113
1113
|
const _hoisted_10$6 = {
|
|
1114
1114
|
key: 0,
|
|
1115
1115
|
class: "f-select-option is-empty"
|
|
@@ -1127,7 +1127,7 @@ const ADD_SECTION_HEIGHT = 44;
|
|
|
1127
1127
|
const PANEL_PADDING = 8;
|
|
1128
1128
|
const GAP$2 = 4;
|
|
1129
1129
|
const VIEWPORT_MARGIN = 8;
|
|
1130
|
-
const _sfc_main$
|
|
1130
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
1131
1131
|
__name: "FSelect",
|
|
1132
1132
|
props: /* @__PURE__ */ mergeModels({
|
|
1133
1133
|
bordered: { type: Boolean, default: true },
|
|
@@ -1358,7 +1358,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1358
1358
|
}]),
|
|
1359
1359
|
onClick: handleTriggerClick
|
|
1360
1360
|
}, [
|
|
1361
|
-
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1361
|
+
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
1362
1362
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedOptions), (opt) => {
|
|
1363
1363
|
return openBlock(), createBlock(FTag, {
|
|
1364
1364
|
key: opt.key,
|
|
@@ -1388,9 +1388,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1388
1388
|
withKeys(handleBackspace, ["delete"]),
|
|
1389
1389
|
_cache[2] || (_cache[2] = withKeys(($event) => isOpen.value = false, ["esc"]))
|
|
1390
1390
|
]
|
|
1391
|
-
}, null, 40, _hoisted_2$
|
|
1391
|
+
}, null, 40, _hoisted_2$z)), [
|
|
1392
1392
|
[vModelText, unref(keyword)]
|
|
1393
|
-
]) : !unref(selectedOptions).length ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1393
|
+
]) : !unref(selectedOptions).length ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.placeholder), 1)) : createCommentVNode("", true)
|
|
1394
1394
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1395
1395
|
_ctx.filterable && unref(isOpen) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
1396
1396
|
key: 0,
|
|
@@ -1400,7 +1400,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1400
1400
|
class: normalizeClass(["f-select__input", { "has-value": unref(hasValue) }]),
|
|
1401
1401
|
placeholder: unref(hasValue) ? unref(selectedLabel) : _ctx.placeholder,
|
|
1402
1402
|
onClick: stopWhenOpen
|
|
1403
|
-
}, null, 10, _hoisted_4$
|
|
1403
|
+
}, null, 10, _hoisted_4$l)), [
|
|
1404
1404
|
[vModelText, unref(keyword)]
|
|
1405
1405
|
]) : (openBlock(), createElementBlock("span", {
|
|
1406
1406
|
key: 1,
|
|
@@ -1414,7 +1414,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1414
1414
|
], true)
|
|
1415
1415
|
], 2))
|
|
1416
1416
|
], 64)),
|
|
1417
|
-
createElementVNode("div", _hoisted_5$
|
|
1417
|
+
createElementVNode("div", _hoisted_5$g, [
|
|
1418
1418
|
unref(showClear) ? (openBlock(), createBlock(FIcon, {
|
|
1419
1419
|
key: 0,
|
|
1420
1420
|
class: "f-select__clear",
|
|
@@ -1450,7 +1450,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1450
1450
|
"max-height": `${unref(dropdownMaxHeight)}px`
|
|
1451
1451
|
}, {
|
|
1452
1452
|
default: withCtx(() => [
|
|
1453
|
-
createElementVNode("div", _hoisted_7$
|
|
1453
|
+
createElementVNode("div", _hoisted_7$a, [
|
|
1454
1454
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(filteredOptions), (opt) => {
|
|
1455
1455
|
return openBlock(), createElementBlock("div", {
|
|
1456
1456
|
key: opt.key,
|
|
@@ -1467,9 +1467,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1467
1467
|
option: opt,
|
|
1468
1468
|
selected: isSelected(opt.key)
|
|
1469
1469
|
}, () => [
|
|
1470
|
-
createElementVNode("span", _hoisted_9$
|
|
1470
|
+
createElementVNode("span", _hoisted_9$8, toDisplayString(opt.label), 1)
|
|
1471
1471
|
], true)
|
|
1472
|
-
], 10, _hoisted_8$
|
|
1472
|
+
], 10, _hoisted_8$9);
|
|
1473
1473
|
}), 128)),
|
|
1474
1474
|
unref(filteredOptions).length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$6, [
|
|
1475
1475
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
@@ -1527,7 +1527,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1527
1527
|
]),
|
|
1528
1528
|
_: 3
|
|
1529
1529
|
}, 8, ["max-height"])
|
|
1530
|
-
], 14, _hoisted_6$
|
|
1530
|
+
], 14, _hoisted_6$f)) : createCommentVNode("", true)
|
|
1531
1531
|
]),
|
|
1532
1532
|
_: 3
|
|
1533
1533
|
})
|
|
@@ -1536,16 +1536,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
1538
|
});
|
|
1539
|
-
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1540
|
-
const _hoisted_1$
|
|
1541
|
-
const _hoisted_2$
|
|
1542
|
-
const _hoisted_3$
|
|
1543
|
-
const _hoisted_4$
|
|
1544
|
-
const _hoisted_5$
|
|
1545
|
-
const _hoisted_6$
|
|
1546
|
-
const _hoisted_7$
|
|
1547
|
-
const _hoisted_8$
|
|
1548
|
-
const _hoisted_9$
|
|
1539
|
+
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-42ec0325"]]);
|
|
1540
|
+
const _hoisted_1$D = { class: "f-date-picker__inner" };
|
|
1541
|
+
const _hoisted_2$y = ["value", "placeholder", "disabled"];
|
|
1542
|
+
const _hoisted_3$v = { class: "f-date-picker-panel" };
|
|
1543
|
+
const _hoisted_4$k = { class: "f-date-picker-panel__header" };
|
|
1544
|
+
const _hoisted_5$f = { class: "f-date-picker-panel__body" };
|
|
1545
|
+
const _hoisted_6$e = { key: 0 };
|
|
1546
|
+
const _hoisted_7$9 = { class: "week-header" };
|
|
1547
|
+
const _hoisted_8$8 = { class: "calendar-grid" };
|
|
1548
|
+
const _hoisted_9$7 = ["onClick"];
|
|
1549
1549
|
const _hoisted_10$5 = {
|
|
1550
1550
|
key: 1,
|
|
1551
1551
|
class: "month-grid"
|
|
@@ -1556,7 +1556,7 @@ const _hoisted_12$2 = {
|
|
|
1556
1556
|
class: "year-grid"
|
|
1557
1557
|
};
|
|
1558
1558
|
const _hoisted_13$2 = ["onClick"];
|
|
1559
|
-
const _sfc_main$
|
|
1559
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
1560
1560
|
__name: "FDatePicker",
|
|
1561
1561
|
props: /* @__PURE__ */ mergeModels({
|
|
1562
1562
|
placeholder: { default: "选择日期" },
|
|
@@ -1752,8 +1752,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1752
1752
|
onHide: handleHide
|
|
1753
1753
|
}, {
|
|
1754
1754
|
content: withCtx(() => [
|
|
1755
|
-
createElementVNode("div", _hoisted_3$
|
|
1756
|
-
createElementVNode("div", _hoisted_4$
|
|
1755
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
1756
|
+
createElementVNode("div", _hoisted_4$k, [
|
|
1757
1757
|
createElementVNode("button", {
|
|
1758
1758
|
type: "button",
|
|
1759
1759
|
class: "panel-btn",
|
|
@@ -1783,9 +1783,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1783
1783
|
})
|
|
1784
1784
|
])
|
|
1785
1785
|
]),
|
|
1786
|
-
createElementVNode("div", _hoisted_5$
|
|
1787
|
-
unref(panelMode) === "date" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1788
|
-
createElementVNode("div", _hoisted_7$
|
|
1786
|
+
createElementVNode("div", _hoisted_5$f, [
|
|
1787
|
+
unref(panelMode) === "date" ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
1788
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
1789
1789
|
(openBlock(), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
|
|
1790
1790
|
return createElementVNode("div", {
|
|
1791
1791
|
key: day,
|
|
@@ -1793,7 +1793,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1793
1793
|
}, toDisplayString(day), 1);
|
|
1794
1794
|
}), 64))
|
|
1795
1795
|
]),
|
|
1796
|
-
createElementVNode("div", _hoisted_8$
|
|
1796
|
+
createElementVNode("div", _hoisted_8$8, [
|
|
1797
1797
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendarDays), (day, index) => {
|
|
1798
1798
|
return openBlock(), createElementBlock("div", {
|
|
1799
1799
|
key: index,
|
|
@@ -1804,7 +1804,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1804
1804
|
"is-selected": day.isSelected
|
|
1805
1805
|
}]),
|
|
1806
1806
|
onClick: ($event) => selectDate(day)
|
|
1807
|
-
}, toDisplayString(day.date), 11, _hoisted_9$
|
|
1807
|
+
}, toDisplayString(day.date), 11, _hoisted_9$7);
|
|
1808
1808
|
}), 128))
|
|
1809
1809
|
])
|
|
1810
1810
|
])) : unref(panelMode) === "month" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
|
|
@@ -1835,7 +1835,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1835
1835
|
"is-disabled": _ctx.disabled
|
|
1836
1836
|
}])
|
|
1837
1837
|
}, [
|
|
1838
|
-
createElementVNode("div", _hoisted_1$
|
|
1838
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
1839
1839
|
createVNode(FIcon, { class: "f-date-picker__icon" }, {
|
|
1840
1840
|
default: withCtx(() => [
|
|
1841
1841
|
createVNode(unref(CalendarOutline))
|
|
@@ -1848,7 +1848,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1848
1848
|
disabled: _ctx.disabled,
|
|
1849
1849
|
class: "f-date-picker__input",
|
|
1850
1850
|
readonly: ""
|
|
1851
|
-
}, null, 8, _hoisted_2$
|
|
1851
|
+
}, null, 8, _hoisted_2$y),
|
|
1852
1852
|
unref(showClear) ? (openBlock(), createBlock(FIcon, {
|
|
1853
1853
|
key: 0,
|
|
1854
1854
|
class: "f-date-picker__clear",
|
|
@@ -1867,36 +1867,36 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1867
1867
|
};
|
|
1868
1868
|
}
|
|
1869
1869
|
});
|
|
1870
|
-
const FDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1871
|
-
const _hoisted_1$
|
|
1870
|
+
const FDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-82ea76e0"]]);
|
|
1871
|
+
const _hoisted_1$C = {
|
|
1872
1872
|
key: 0,
|
|
1873
1873
|
class: "f-pagination"
|
|
1874
1874
|
};
|
|
1875
|
-
const _hoisted_2$
|
|
1875
|
+
const _hoisted_2$x = {
|
|
1876
1876
|
key: 0,
|
|
1877
1877
|
class: "f-pagination__total"
|
|
1878
1878
|
};
|
|
1879
|
-
const _hoisted_3$
|
|
1879
|
+
const _hoisted_3$u = {
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
class: "f-pagination__size"
|
|
1882
1882
|
};
|
|
1883
|
-
const _hoisted_4$
|
|
1884
|
-
const _hoisted_5$
|
|
1885
|
-
const _hoisted_6$
|
|
1883
|
+
const _hoisted_4$j = ["value"];
|
|
1884
|
+
const _hoisted_5$e = ["value"];
|
|
1885
|
+
const _hoisted_6$d = {
|
|
1886
1886
|
key: 3,
|
|
1887
1887
|
class: "f-pagination__list"
|
|
1888
1888
|
};
|
|
1889
|
-
const _hoisted_7$
|
|
1889
|
+
const _hoisted_7$8 = {
|
|
1890
1890
|
key: 0,
|
|
1891
1891
|
class: "page-btn ellipsis"
|
|
1892
1892
|
};
|
|
1893
|
-
const _hoisted_8$
|
|
1894
|
-
const _hoisted_9$
|
|
1893
|
+
const _hoisted_8$7 = ["onClick"];
|
|
1894
|
+
const _hoisted_9$6 = {
|
|
1895
1895
|
key: 5,
|
|
1896
1896
|
class: "f-pagination__jump"
|
|
1897
1897
|
};
|
|
1898
1898
|
const _hoisted_10$4 = ["max"];
|
|
1899
|
-
const _sfc_main$
|
|
1899
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
1900
1900
|
__name: "FPagination",
|
|
1901
1901
|
props: /* @__PURE__ */ mergeModels({
|
|
1902
1902
|
total: {},
|
|
@@ -1945,10 +1945,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1945
1945
|
jumpInput.value = "";
|
|
1946
1946
|
};
|
|
1947
1947
|
return (_ctx, _cache) => {
|
|
1948
|
-
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1948
|
+
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
1949
1949
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
|
|
1950
1950
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
1951
|
-
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1951
|
+
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$x, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
1952
1952
|
createElementVNode("select", {
|
|
1953
1953
|
class: "size-select",
|
|
1954
1954
|
value: _ctx.pageSize,
|
|
@@ -1958,9 +1958,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1958
1958
|
return openBlock(), createElementBlock("option", {
|
|
1959
1959
|
key: s,
|
|
1960
1960
|
value: s
|
|
1961
|
-
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$
|
|
1961
|
+
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$e);
|
|
1962
1962
|
}), 128))
|
|
1963
|
-
], 40, _hoisted_4$
|
|
1963
|
+
], 40, _hoisted_4$j)
|
|
1964
1964
|
])) : item === "prev" ? (openBlock(), createElementBlock("button", {
|
|
1965
1965
|
key: 2,
|
|
1966
1966
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === 1 }]),
|
|
@@ -1972,10 +1972,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1972
1972
|
]),
|
|
1973
1973
|
_: 1
|
|
1974
1974
|
})
|
|
1975
|
-
], 2)) : item === "pager" ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
1975
|
+
], 2)) : item === "pager" ? (openBlock(), createElementBlock("ul", _hoisted_6$d, [
|
|
1976
1976
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pages), (page, index) => {
|
|
1977
1977
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
1978
|
-
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$
|
|
1978
|
+
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$8, [
|
|
1979
1979
|
createVNode(FIcon, null, {
|
|
1980
1980
|
default: withCtx(() => [
|
|
1981
1981
|
createVNode(unref(EllipsisHorizontal))
|
|
@@ -1986,7 +1986,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1986
1986
|
key: 1,
|
|
1987
1987
|
class: normalizeClass(["page-btn", { active: currentPage.value === page }]),
|
|
1988
1988
|
onClick: ($event) => go(page)
|
|
1989
|
-
}, toDisplayString(page), 11, _hoisted_8$
|
|
1989
|
+
}, toDisplayString(page), 11, _hoisted_8$7))
|
|
1990
1990
|
], 64);
|
|
1991
1991
|
}), 128))
|
|
1992
1992
|
])) : item === "next" ? (openBlock(), createElementBlock("button", {
|
|
@@ -2000,7 +2000,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
2000
2000
|
]),
|
|
2001
2001
|
_: 1
|
|
2002
2002
|
})
|
|
2003
|
-
], 2)) : item === "jumper" ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
2003
|
+
], 2)) : item === "jumper" ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
|
|
2004
2004
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "jump-label" }, "前往", -1)),
|
|
2005
2005
|
withDirectives(createElementVNode("input", {
|
|
2006
2006
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(jumpInput) ? jumpInput.value = $event : null),
|
|
@@ -2021,40 +2021,40 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
|
-
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2025
|
-
const _hoisted_1$
|
|
2024
|
+
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-a9438fb8"]]);
|
|
2025
|
+
const _hoisted_1$B = {
|
|
2026
2026
|
key: 0,
|
|
2027
2027
|
class: "f-card__header"
|
|
2028
2028
|
};
|
|
2029
|
-
const _hoisted_2$
|
|
2029
|
+
const _hoisted_2$w = {
|
|
2030
2030
|
key: 0,
|
|
2031
2031
|
class: "f-card__header-extra"
|
|
2032
2032
|
};
|
|
2033
|
-
const _hoisted_3$
|
|
2033
|
+
const _hoisted_3$t = {
|
|
2034
2034
|
key: 1,
|
|
2035
2035
|
class: "f-card__cover"
|
|
2036
2036
|
};
|
|
2037
|
-
const _hoisted_4$
|
|
2037
|
+
const _hoisted_4$i = {
|
|
2038
2038
|
key: 2,
|
|
2039
2039
|
class: "f-card__body"
|
|
2040
2040
|
};
|
|
2041
|
-
const _hoisted_5$
|
|
2041
|
+
const _hoisted_5$d = {
|
|
2042
2042
|
key: 3,
|
|
2043
2043
|
class: "f-card__footer"
|
|
2044
2044
|
};
|
|
2045
|
-
const _hoisted_6$
|
|
2045
|
+
const _hoisted_6$c = {
|
|
2046
2046
|
key: 0,
|
|
2047
2047
|
class: "f-card__header"
|
|
2048
2048
|
};
|
|
2049
|
-
const _hoisted_7$
|
|
2049
|
+
const _hoisted_7$7 = {
|
|
2050
2050
|
key: 0,
|
|
2051
2051
|
class: "f-card__header-extra"
|
|
2052
2052
|
};
|
|
2053
|
-
const _hoisted_8$
|
|
2053
|
+
const _hoisted_8$6 = {
|
|
2054
2054
|
key: 1,
|
|
2055
2055
|
class: "f-card__cover"
|
|
2056
2056
|
};
|
|
2057
|
-
const _hoisted_9$
|
|
2057
|
+
const _hoisted_9$5 = { class: "f-card__content" };
|
|
2058
2058
|
const _hoisted_10$3 = {
|
|
2059
2059
|
key: 0,
|
|
2060
2060
|
class: "f-card__body"
|
|
@@ -2063,7 +2063,7 @@ const _hoisted_11$3 = {
|
|
|
2063
2063
|
key: 1,
|
|
2064
2064
|
class: "f-card__footer"
|
|
2065
2065
|
};
|
|
2066
|
-
const _sfc_main$
|
|
2066
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
2067
2067
|
__name: "FCard",
|
|
2068
2068
|
props: {
|
|
2069
2069
|
hoverable: { type: Boolean, default: true },
|
|
@@ -2075,32 +2075,32 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
2075
2075
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
2076
2076
|
}, [
|
|
2077
2077
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2078
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2078
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
2079
2079
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
2080
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2080
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
2081
2081
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
2082
2082
|
])) : createCommentVNode("", true)
|
|
2083
2083
|
])) : createCommentVNode("", true),
|
|
2084
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2084
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
2085
2085
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
2086
2086
|
])) : createCommentVNode("", true),
|
|
2087
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2087
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
2088
2088
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2089
2089
|
])) : createCommentVNode("", true),
|
|
2090
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2090
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
2091
2091
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
2092
2092
|
])) : createCommentVNode("", true)
|
|
2093
2093
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2094
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2094
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_6$c, [
|
|
2095
2095
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
2096
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2096
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_7$7, [
|
|
2097
2097
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
2098
2098
|
])) : createCommentVNode("", true)
|
|
2099
2099
|
])) : createCommentVNode("", true),
|
|
2100
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
2100
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
2101
2101
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
2102
2102
|
])) : createCommentVNode("", true),
|
|
2103
|
-
createElementVNode("div", _hoisted_9$
|
|
2103
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
2104
2104
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
2105
2105
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2106
2106
|
])) : createCommentVNode("", true),
|
|
@@ -2113,8 +2113,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
2113
2113
|
};
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
|
-
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2117
|
-
const _sfc_main$
|
|
2116
|
+
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-59b9e149"]]);
|
|
2117
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
2118
2118
|
__name: "FTooltip",
|
|
2119
2119
|
props: {
|
|
2120
2120
|
content: {},
|
|
@@ -2229,13 +2229,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
2231
2231
|
});
|
|
2232
|
-
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2233
|
-
const _hoisted_1$
|
|
2234
|
-
const _hoisted_2$
|
|
2232
|
+
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-398a5be6"]]);
|
|
2233
|
+
const _hoisted_1$A = { class: "f-progress" };
|
|
2234
|
+
const _hoisted_2$v = {
|
|
2235
2235
|
key: 0,
|
|
2236
2236
|
class: "f-progress__text"
|
|
2237
2237
|
};
|
|
2238
|
-
const _sfc_main$
|
|
2238
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
2239
2239
|
__name: "FProgress",
|
|
2240
2240
|
props: {
|
|
2241
2241
|
percent: {},
|
|
@@ -2247,7 +2247,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
2247
2247
|
const props = __props;
|
|
2248
2248
|
const clampedPercent = computed(() => Math.min(100, Math.max(0, props.percent)));
|
|
2249
2249
|
return (_ctx, _cache) => {
|
|
2250
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2250
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
2251
2251
|
createElementVNode("div", {
|
|
2252
2252
|
class: "f-progress__track",
|
|
2253
2253
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -2260,17 +2260,17 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
2260
2260
|
})
|
|
2261
2261
|
}, null, 4)
|
|
2262
2262
|
], 4),
|
|
2263
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2263
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$v, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
2264
2264
|
]);
|
|
2265
2265
|
};
|
|
2266
2266
|
}
|
|
2267
2267
|
});
|
|
2268
|
-
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2269
|
-
const _hoisted_1$
|
|
2270
|
-
const _hoisted_2$
|
|
2271
|
-
const _hoisted_3$
|
|
2272
|
-
const _hoisted_4$
|
|
2273
|
-
const _sfc_main$
|
|
2268
|
+
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-95060470"]]);
|
|
2269
|
+
const _hoisted_1$z = { class: "f-tabs__nav-container" };
|
|
2270
|
+
const _hoisted_2$u = { class: "f-tabs__nav" };
|
|
2271
|
+
const _hoisted_3$s = ["onClick"];
|
|
2272
|
+
const _hoisted_4$h = { class: "f-tabs__label" };
|
|
2273
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
2274
2274
|
__name: "FTabs",
|
|
2275
2275
|
props: {
|
|
2276
2276
|
tabs: {},
|
|
@@ -2303,8 +2303,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
2303
2303
|
return openBlock(), createElementBlock("div", {
|
|
2304
2304
|
class: normalizeClass(["f-tabs", [`f-tabs--${_ctx.type}`]])
|
|
2305
2305
|
}, [
|
|
2306
|
-
createElementVNode("div", _hoisted_1$
|
|
2307
|
-
createElementVNode("div", _hoisted_2$
|
|
2306
|
+
createElementVNode("div", _hoisted_1$z, [
|
|
2307
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
2308
2308
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
2309
2309
|
return openBlock(), createElementBlock("div", {
|
|
2310
2310
|
key: tab.name,
|
|
@@ -2314,8 +2314,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
2314
2314
|
}]),
|
|
2315
2315
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
2316
2316
|
}, [
|
|
2317
|
-
createElementVNode("span", _hoisted_4$
|
|
2318
|
-
], 10, _hoisted_3$
|
|
2317
|
+
createElementVNode("span", _hoisted_4$h, toDisplayString(tab.label), 1)
|
|
2318
|
+
], 10, _hoisted_3$s);
|
|
2319
2319
|
}), 128))
|
|
2320
2320
|
])
|
|
2321
2321
|
]),
|
|
@@ -2333,17 +2333,17 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
});
|
|
2336
|
-
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2337
|
-
const _hoisted_1$
|
|
2336
|
+
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-9a632cb1"]]);
|
|
2337
|
+
const _hoisted_1$y = {
|
|
2338
2338
|
class: "f-breadcrumb__current",
|
|
2339
2339
|
"aria-current": "page"
|
|
2340
2340
|
};
|
|
2341
|
-
const _hoisted_2$
|
|
2342
|
-
const _hoisted_3$
|
|
2341
|
+
const _hoisted_2$t = ["href"];
|
|
2342
|
+
const _hoisted_3$r = {
|
|
2343
2343
|
key: 3,
|
|
2344
2344
|
class: "f-breadcrumb__text"
|
|
2345
2345
|
};
|
|
2346
|
-
const _sfc_main$
|
|
2346
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
2347
2347
|
__name: "FBreadcrumb",
|
|
2348
2348
|
props: {
|
|
2349
2349
|
items: { default: () => [] },
|
|
@@ -2371,12 +2371,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
2371
2371
|
key: 1,
|
|
2372
2372
|
item
|
|
2373
2373
|
}, () => [
|
|
2374
|
-
createElementVNode("span", _hoisted_1$
|
|
2374
|
+
createElementVNode("span", _hoisted_1$y, toDisplayString(item.label), 1)
|
|
2375
2375
|
], true) : item.href ? (openBlock(), createElementBlock("a", {
|
|
2376
2376
|
key: 2,
|
|
2377
2377
|
href: item.href,
|
|
2378
2378
|
class: "f-breadcrumb__link"
|
|
2379
|
-
}, toDisplayString(item.label), 9, _hoisted_2$
|
|
2379
|
+
}, toDisplayString(item.label), 9, _hoisted_2$t)) : (openBlock(), createElementBlock("span", _hoisted_3$r, toDisplayString(item.label), 1))
|
|
2380
2380
|
], 64);
|
|
2381
2381
|
}), 128))
|
|
2382
2382
|
]),
|
|
@@ -2386,8 +2386,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
2388
|
});
|
|
2389
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2390
|
-
const _sfc_main$
|
|
2389
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-8ed14ce1"]]);
|
|
2390
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
2391
2391
|
__name: "FCol",
|
|
2392
2392
|
props: {
|
|
2393
2393
|
span: { default: 24 },
|
|
@@ -2428,8 +2428,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
2428
2428
|
};
|
|
2429
2429
|
}
|
|
2430
2430
|
});
|
|
2431
|
-
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2432
|
-
const _sfc_main$
|
|
2431
|
+
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-fc17aac0"]]);
|
|
2432
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
2433
2433
|
__name: "FRow",
|
|
2434
2434
|
props: {
|
|
2435
2435
|
gutter: { default: 0 },
|
|
@@ -2482,14 +2482,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
2484
|
});
|
|
2485
|
-
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2486
|
-
const _hoisted_1$
|
|
2487
|
-
const _hoisted_2$
|
|
2485
|
+
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-f662e24f"]]);
|
|
2486
|
+
const _hoisted_1$x = { class: "f-space__item" };
|
|
2487
|
+
const _hoisted_2$s = {
|
|
2488
2488
|
key: 0,
|
|
2489
2489
|
class: "f-space__split",
|
|
2490
2490
|
"aria-hidden": "true"
|
|
2491
2491
|
};
|
|
2492
|
-
const _sfc_main$
|
|
2492
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
2493
2493
|
__name: "FSpace",
|
|
2494
2494
|
props: {
|
|
2495
2495
|
direction: { default: "horizontal" },
|
|
@@ -2543,18 +2543,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
2543
2543
|
}, [
|
|
2544
2544
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (child, index) => {
|
|
2545
2545
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
2546
|
-
createElementVNode("div", _hoisted_1$
|
|
2546
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
2547
2547
|
(openBlock(), createBlock(resolveDynamicComponent(child)))
|
|
2548
2548
|
]),
|
|
2549
|
-
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2549
|
+
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$s, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
2550
2550
|
], 64);
|
|
2551
2551
|
}), 128))
|
|
2552
2552
|
], 4);
|
|
2553
2553
|
};
|
|
2554
2554
|
}
|
|
2555
2555
|
});
|
|
2556
|
-
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2557
|
-
const _sfc_main$
|
|
2556
|
+
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-4e9e662d"]]);
|
|
2557
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
2558
2558
|
__name: "FContainer",
|
|
2559
2559
|
props: {
|
|
2560
2560
|
gap: { default: 12 }
|
|
@@ -2574,9 +2574,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2574
2574
|
};
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
|
-
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2578
|
-
const _hoisted_1$
|
|
2579
|
-
const _sfc_main$
|
|
2577
|
+
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-096e60e4"]]);
|
|
2578
|
+
const _hoisted_1$w = { class: "f-divider__text" };
|
|
2579
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
2580
2580
|
__name: "FDivider",
|
|
2581
2581
|
props: {
|
|
2582
2582
|
color: { default: "#dcdfe6" },
|
|
@@ -2625,7 +2625,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2625
2625
|
class: "f-divider__line",
|
|
2626
2626
|
style: normalizeStyle(unref(lineStyle))
|
|
2627
2627
|
}, null, 4),
|
|
2628
|
-
createElementVNode("div", _hoisted_1$
|
|
2628
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
2629
2629
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2630
2630
|
]),
|
|
2631
2631
|
createElementVNode("div", {
|
|
@@ -2636,9 +2636,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2636
2636
|
};
|
|
2637
2637
|
}
|
|
2638
2638
|
});
|
|
2639
|
-
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2640
|
-
const _hoisted_1$
|
|
2641
|
-
const _sfc_main$
|
|
2639
|
+
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-ad0389c4"]]);
|
|
2640
|
+
const _hoisted_1$v = ["src", "alt"];
|
|
2641
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
2642
2642
|
__name: "FAvatar",
|
|
2643
2643
|
props: {
|
|
2644
2644
|
src: {},
|
|
@@ -2670,7 +2670,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2670
2670
|
key: 0,
|
|
2671
2671
|
src: _ctx.src,
|
|
2672
2672
|
alt: _ctx.alt
|
|
2673
|
-
}, null, 8, _hoisted_1$
|
|
2673
|
+
}, null, 8, _hoisted_1$v)) : (openBlock(), createBlock(FIcon, {
|
|
2674
2674
|
key: 1,
|
|
2675
2675
|
size: 24
|
|
2676
2676
|
}, {
|
|
@@ -2683,18 +2683,18 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
2685
|
});
|
|
2686
|
-
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2687
|
-
const _hoisted_1$
|
|
2688
|
-
const _hoisted_2$
|
|
2689
|
-
const _hoisted_3$
|
|
2686
|
+
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-937a848f"]]);
|
|
2687
|
+
const _hoisted_1$u = ["type", "disabled"];
|
|
2688
|
+
const _hoisted_2$r = { class: "f-button__inner" };
|
|
2689
|
+
const _hoisted_3$q = {
|
|
2690
2690
|
key: 0,
|
|
2691
2691
|
class: "f-loader"
|
|
2692
2692
|
};
|
|
2693
|
-
const _hoisted_4$
|
|
2693
|
+
const _hoisted_4$g = {
|
|
2694
2694
|
key: 2,
|
|
2695
2695
|
class: "f-button__text"
|
|
2696
2696
|
};
|
|
2697
|
-
const _sfc_main$
|
|
2697
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2698
2698
|
__name: "FButton",
|
|
2699
2699
|
props: {
|
|
2700
2700
|
type: {},
|
|
@@ -2788,8 +2788,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
2788
2788
|
disabled: unref(isDisabled),
|
|
2789
2789
|
style: normalizeStyle(unref(buttonStyle))
|
|
2790
2790
|
}, [
|
|
2791
|
-
createElementVNode("span", _hoisted_2$
|
|
2792
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2791
|
+
createElementVNode("span", _hoisted_2$r, [
|
|
2792
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$q)) : createCommentVNode("", true),
|
|
2793
2793
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2794
2794
|
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(FIcon, {
|
|
2795
2795
|
key: 0,
|
|
@@ -2804,16 +2804,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
2804
2804
|
_: 3
|
|
2805
2805
|
}, 8, ["style"])) : createCommentVNode("", true)
|
|
2806
2806
|
], 64)) : createCommentVNode("", true),
|
|
2807
|
-
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2807
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$g, [
|
|
2808
2808
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2809
2809
|
])) : createCommentVNode("", true)
|
|
2810
2810
|
])
|
|
2811
|
-
], 14, _hoisted_1$
|
|
2811
|
+
], 14, _hoisted_1$u);
|
|
2812
2812
|
};
|
|
2813
2813
|
}
|
|
2814
2814
|
});
|
|
2815
|
-
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2816
|
-
const _sfc_main$
|
|
2815
|
+
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-84f420be"]]);
|
|
2816
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
2817
2817
|
__name: "FTypography",
|
|
2818
2818
|
props: {
|
|
2819
2819
|
color: { default: "" }
|
|
@@ -2835,8 +2835,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
2837
|
});
|
|
2838
|
-
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2839
|
-
const _sfc_main$
|
|
2838
|
+
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-1ba2afd3"]]);
|
|
2839
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
2840
2840
|
__name: "FText",
|
|
2841
2841
|
props: {
|
|
2842
2842
|
tag: { default: "span" },
|
|
@@ -2894,9 +2894,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
2896
|
});
|
|
2897
|
-
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2898
|
-
const _hoisted_1$
|
|
2899
|
-
const _sfc_main$
|
|
2897
|
+
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-489c8a06"]]);
|
|
2898
|
+
const _hoisted_1$t = ["href", "target", "rel"];
|
|
2899
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
2900
2900
|
__name: "FLink",
|
|
2901
2901
|
props: {
|
|
2902
2902
|
href: {},
|
|
@@ -2919,13 +2919,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
2919
2919
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2920
2920
|
}, [
|
|
2921
2921
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2922
|
-
], 10, _hoisted_1$
|
|
2922
|
+
], 10, _hoisted_1$t);
|
|
2923
2923
|
};
|
|
2924
2924
|
}
|
|
2925
2925
|
});
|
|
2926
|
-
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2927
|
-
const _hoisted_1$
|
|
2928
|
-
const _sfc_main$
|
|
2926
|
+
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-8bb4d33f"]]);
|
|
2927
|
+
const _hoisted_1$s = { class: "f-badge" };
|
|
2928
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
2929
2929
|
__name: "FBadge",
|
|
2930
2930
|
props: {
|
|
2931
2931
|
value: {},
|
|
@@ -2954,7 +2954,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2954
2954
|
return map[props.placement];
|
|
2955
2955
|
});
|
|
2956
2956
|
return (_ctx, _cache) => {
|
|
2957
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2957
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2958
2958
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
2959
2959
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
2960
2960
|
key: 0,
|
|
@@ -2965,8 +2965,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
2967
|
});
|
|
2968
|
-
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2969
|
-
const _sfc_main$
|
|
2968
|
+
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-4d8a46e5"]]);
|
|
2969
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
2970
2970
|
__name: "FAffix",
|
|
2971
2971
|
props: {
|
|
2972
2972
|
placement: { default: "top-right" },
|
|
@@ -2994,8 +2994,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
2996
2996
|
});
|
|
2997
|
-
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2998
|
-
const _sfc_main$
|
|
2997
|
+
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-5e3108b5"]]);
|
|
2998
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2999
2999
|
__name: "FForm",
|
|
3000
3000
|
props: {
|
|
3001
3001
|
model: {},
|
|
@@ -3052,7 +3052,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
3052
3052
|
};
|
|
3053
3053
|
}
|
|
3054
3054
|
});
|
|
3055
|
-
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3055
|
+
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-7e90ebac"]]);
|
|
3056
3056
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
3057
3057
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
3058
3058
|
for (let rule of ruleArray) {
|
|
@@ -3134,16 +3134,16 @@ const checkRange = (value, rule) => {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
return void 0;
|
|
3136
3136
|
};
|
|
3137
|
-
const _hoisted_1$
|
|
3137
|
+
const _hoisted_1$r = {
|
|
3138
3138
|
key: 0,
|
|
3139
3139
|
class: "star"
|
|
3140
3140
|
};
|
|
3141
|
-
const _hoisted_2$
|
|
3142
|
-
const _hoisted_3$
|
|
3141
|
+
const _hoisted_2$q = { class: "f-form-item__content" };
|
|
3142
|
+
const _hoisted_3$p = {
|
|
3143
3143
|
key: 0,
|
|
3144
3144
|
class: "f-form-item__error"
|
|
3145
3145
|
};
|
|
3146
|
-
const _sfc_main$
|
|
3146
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
3147
3147
|
__name: "FFormItem",
|
|
3148
3148
|
props: {
|
|
3149
3149
|
label: {},
|
|
@@ -3209,14 +3209,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
3209
3209
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
3210
3210
|
})
|
|
3211
3211
|
}, [
|
|
3212
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3212
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$r, "*")) : createCommentVNode("", true),
|
|
3213
3213
|
createTextVNode(" " + toDisplayString(_ctx.label), 1)
|
|
3214
3214
|
], 4)) : createCommentVNode("", true),
|
|
3215
|
-
createElementVNode("div", _hoisted_2$
|
|
3215
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
3216
3216
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
3217
3217
|
createVNode(Transition, { name: "err-slide" }, {
|
|
3218
3218
|
default: withCtx(() => [
|
|
3219
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
3219
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$p, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
3220
3220
|
]),
|
|
3221
3221
|
_: 1
|
|
3222
3222
|
})
|
|
@@ -3225,14 +3225,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
3225
3225
|
};
|
|
3226
3226
|
}
|
|
3227
3227
|
});
|
|
3228
|
-
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3229
|
-
const _hoisted_1$
|
|
3230
|
-
const _hoisted_2$
|
|
3231
|
-
const _hoisted_3$
|
|
3228
|
+
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c1ead052"]]);
|
|
3229
|
+
const _hoisted_1$q = { class: "f-radio__wrapper" };
|
|
3230
|
+
const _hoisted_2$p = ["name", "checked", "disabled"];
|
|
3231
|
+
const _hoisted_3$o = {
|
|
3232
3232
|
key: 0,
|
|
3233
3233
|
class: "f-radio__label"
|
|
3234
3234
|
};
|
|
3235
|
-
const _sfc_main$
|
|
3235
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
3236
3236
|
__name: "FRadio",
|
|
3237
3237
|
props: /* @__PURE__ */ mergeModels({
|
|
3238
3238
|
label: {},
|
|
@@ -3259,29 +3259,29 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3259
3259
|
return openBlock(), createElementBlock("label", {
|
|
3260
3260
|
class: normalizeClass(["f-radio", { "is-disabled": _ctx.disabled }])
|
|
3261
3261
|
}, [
|
|
3262
|
-
createElementVNode("span", _hoisted_1$
|
|
3262
|
+
createElementVNode("span", _hoisted_1$q, [
|
|
3263
3263
|
createElementVNode("input", {
|
|
3264
3264
|
type: "radio",
|
|
3265
3265
|
name: _ctx.name,
|
|
3266
3266
|
checked: modelValue.value === _ctx.value,
|
|
3267
3267
|
disabled: _ctx.disabled,
|
|
3268
3268
|
onChange: handleChange
|
|
3269
|
-
}, null, 40, _hoisted_2$
|
|
3269
|
+
}, null, 40, _hoisted_2$p),
|
|
3270
3270
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
3271
3271
|
]),
|
|
3272
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3272
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3273
3273
|
], 2);
|
|
3274
3274
|
};
|
|
3275
3275
|
}
|
|
3276
3276
|
});
|
|
3277
|
-
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3278
|
-
const _hoisted_1$
|
|
3279
|
-
const _hoisted_2$
|
|
3280
|
-
const _hoisted_3$
|
|
3277
|
+
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b06cba07"]]);
|
|
3278
|
+
const _hoisted_1$p = { class: "f-radio__wrapper" };
|
|
3279
|
+
const _hoisted_2$o = ["name", "checked", "disabled", "onChange"];
|
|
3280
|
+
const _hoisted_3$n = {
|
|
3281
3281
|
key: 0,
|
|
3282
3282
|
class: "f-radio__label"
|
|
3283
3283
|
};
|
|
3284
|
-
const _sfc_main$
|
|
3284
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
3285
3285
|
__name: "FRadioGroup",
|
|
3286
3286
|
props: /* @__PURE__ */ mergeModels({
|
|
3287
3287
|
options: {},
|
|
@@ -3310,30 +3310,30 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3310
3310
|
key: String(option.value),
|
|
3311
3311
|
class: normalizeClass(["f-radio", { "is-disabled": option.disabled || _ctx.disabled }])
|
|
3312
3312
|
}, [
|
|
3313
|
-
createElementVNode("span", _hoisted_1$
|
|
3313
|
+
createElementVNode("span", _hoisted_1$p, [
|
|
3314
3314
|
createElementVNode("input", {
|
|
3315
3315
|
type: "radio",
|
|
3316
3316
|
name: (_a = _ctx.name) != null ? _a : "f-radio-group",
|
|
3317
3317
|
checked: modelValue.value === option.value,
|
|
3318
3318
|
disabled: option.disabled || _ctx.disabled,
|
|
3319
3319
|
onChange: ($event) => handleChange(option)
|
|
3320
|
-
}, null, 40, _hoisted_2$
|
|
3320
|
+
}, null, 40, _hoisted_2$o),
|
|
3321
3321
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
3322
3322
|
]),
|
|
3323
|
-
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3323
|
+
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(option.label), 1)) : createCommentVNode("", true)
|
|
3324
3324
|
], 2);
|
|
3325
3325
|
}), 128))
|
|
3326
3326
|
], 2);
|
|
3327
3327
|
};
|
|
3328
3328
|
}
|
|
3329
3329
|
});
|
|
3330
|
-
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3331
|
-
const _hoisted_1$
|
|
3332
|
-
const _hoisted_2$
|
|
3330
|
+
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-f1bf3aae"]]);
|
|
3331
|
+
const _hoisted_1$o = ["disabled", "aria-checked"];
|
|
3332
|
+
const _hoisted_2$n = {
|
|
3333
3333
|
key: 0,
|
|
3334
3334
|
class: "f-switch__text"
|
|
3335
3335
|
};
|
|
3336
|
-
const _sfc_main$
|
|
3336
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3337
3337
|
__name: "FSwitch",
|
|
3338
3338
|
props: /* @__PURE__ */ mergeModels({
|
|
3339
3339
|
label: {},
|
|
@@ -3365,24 +3365,24 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3365
3365
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-switch__track" }, [
|
|
3366
3366
|
createElementVNode("span", { class: "f-switch__thumb" })
|
|
3367
3367
|
], -1)),
|
|
3368
|
-
_ctx.label || _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3369
|
-
], 10, _hoisted_1$
|
|
3368
|
+
_ctx.label || _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", _hoisted_2$n, toDisplayString(modelValue.value ? (_a = _ctx.activeText) != null ? _a : _ctx.label : (_b = _ctx.inactiveText) != null ? _b : _ctx.label), 1)) : createCommentVNode("", true)
|
|
3369
|
+
], 10, _hoisted_1$o);
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
3372
|
});
|
|
3373
|
-
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3374
|
-
const _hoisted_1$
|
|
3375
|
-
const _hoisted_2$
|
|
3373
|
+
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-dd66bb33"]]);
|
|
3374
|
+
const _hoisted_1$n = { class: "f-tree-select__label" };
|
|
3375
|
+
const _hoisted_2$m = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "f-tree-select__panel"
|
|
3378
3378
|
};
|
|
3379
|
-
const _hoisted_3$
|
|
3380
|
-
const _hoisted_4$
|
|
3379
|
+
const _hoisted_3$m = ["onClick"];
|
|
3380
|
+
const _hoisted_4$f = {
|
|
3381
3381
|
key: 0,
|
|
3382
3382
|
class: "f-tree-select__expand"
|
|
3383
3383
|
};
|
|
3384
|
-
const _hoisted_5$
|
|
3385
|
-
const _sfc_main$
|
|
3384
|
+
const _hoisted_5$c = { class: "f-tree-select__text" };
|
|
3385
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3386
3386
|
__name: "FTreeSelect",
|
|
3387
3387
|
props: /* @__PURE__ */ mergeModels({
|
|
3388
3388
|
options: {},
|
|
@@ -3457,7 +3457,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3457
3457
|
class: "f-tree-select__trigger",
|
|
3458
3458
|
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && (isOpen.value = !unref(isOpen)))
|
|
3459
3459
|
}, [
|
|
3460
|
-
createElementVNode("span", _hoisted_1$
|
|
3460
|
+
createElementVNode("span", _hoisted_1$n, toDisplayString(unref(selectedLabel)), 1),
|
|
3461
3461
|
createVNode(FIcon, { class: "f-tree-select__arrow" }, {
|
|
3462
3462
|
default: withCtx(() => [
|
|
3463
3463
|
createVNode(unref(ChevronDownOutline))
|
|
@@ -3465,7 +3465,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3465
3465
|
_: 1
|
|
3466
3466
|
})
|
|
3467
3467
|
]),
|
|
3468
|
-
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3468
|
+
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
|
|
3469
3469
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(visibleNodes), (node) => {
|
|
3470
3470
|
return openBlock(), createElementBlock("div", {
|
|
3471
3471
|
key: String(node.key),
|
|
@@ -3473,28 +3473,28 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3473
3473
|
style: normalizeStyle({ paddingLeft: `${(node.level + 1) * 16 + 8}px` }),
|
|
3474
3474
|
onClick: ($event) => node.children && node.children.length ? toggleExpand(node.key) : handleSelect(node)
|
|
3475
3475
|
}, [
|
|
3476
|
-
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
3477
|
-
createElementVNode("span", _hoisted_5$
|
|
3478
|
-
], 14, _hoisted_3$
|
|
3476
|
+
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString(unref(expandedKeys).includes(node.key) ? "-" : "+"), 1)) : createCommentVNode("", true),
|
|
3477
|
+
createElementVNode("span", _hoisted_5$c, toDisplayString(node.label), 1)
|
|
3478
|
+
], 14, _hoisted_3$m);
|
|
3479
3479
|
}), 128))
|
|
3480
3480
|
])) : createCommentVNode("", true)
|
|
3481
3481
|
], 2);
|
|
3482
3482
|
};
|
|
3483
3483
|
}
|
|
3484
3484
|
});
|
|
3485
|
-
const FTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3486
|
-
const _hoisted_1$
|
|
3487
|
-
const _hoisted_2$
|
|
3488
|
-
const _hoisted_3$
|
|
3489
|
-
const _hoisted_4$
|
|
3490
|
-
const _hoisted_5$
|
|
3491
|
-
const _hoisted_6$
|
|
3492
|
-
const _hoisted_7$
|
|
3493
|
-
const _hoisted_8$
|
|
3494
|
-
const _hoisted_9$
|
|
3485
|
+
const FTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-3e78b510"]]);
|
|
3486
|
+
const _hoisted_1$m = { class: "f-transfer__panel" };
|
|
3487
|
+
const _hoisted_2$l = { class: "f-transfer__header" };
|
|
3488
|
+
const _hoisted_3$l = { class: "f-transfer__list" };
|
|
3489
|
+
const _hoisted_4$e = ["onClick"];
|
|
3490
|
+
const _hoisted_5$b = { class: "f-transfer__actions" };
|
|
3491
|
+
const _hoisted_6$b = ["disabled"];
|
|
3492
|
+
const _hoisted_7$6 = ["disabled"];
|
|
3493
|
+
const _hoisted_8$5 = { class: "f-transfer__panel" };
|
|
3494
|
+
const _hoisted_9$4 = { class: "f-transfer__header" };
|
|
3495
3495
|
const _hoisted_10$2 = { class: "f-transfer__list" };
|
|
3496
3496
|
const _hoisted_11$2 = ["onClick"];
|
|
3497
|
-
const _sfc_main$
|
|
3497
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3498
3498
|
__name: "FTransfer",
|
|
3499
3499
|
props: /* @__PURE__ */ mergeModels({
|
|
3500
3500
|
data: {},
|
|
@@ -3550,34 +3550,34 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3550
3550
|
return openBlock(), createElementBlock("div", {
|
|
3551
3551
|
class: normalizeClass(["f-transfer", { "is-disabled": _ctx.disabled }])
|
|
3552
3552
|
}, [
|
|
3553
|
-
createElementVNode("div", _hoisted_1$
|
|
3554
|
-
createElementVNode("div", _hoisted_2$
|
|
3555
|
-
createElementVNode("ul", _hoisted_3$
|
|
3553
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
3554
|
+
createElementVNode("div", _hoisted_2$l, toDisplayString(_ctx.leftTitle), 1),
|
|
3555
|
+
createElementVNode("ul", _hoisted_3$l, [
|
|
3556
3556
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(leftList), (item) => {
|
|
3557
3557
|
return openBlock(), createElementBlock("li", {
|
|
3558
3558
|
key: String(item.key),
|
|
3559
3559
|
class: normalizeClass(["f-transfer__item", { "is-selected": unref(leftSelected).includes(item.key), "is-disabled": item.disabled }]),
|
|
3560
3560
|
onClick: ($event) => toggle(unref(leftSelected), item.key)
|
|
3561
|
-
}, toDisplayString(item.label), 11, _hoisted_4$
|
|
3561
|
+
}, toDisplayString(item.label), 11, _hoisted_4$e);
|
|
3562
3562
|
}), 128))
|
|
3563
3563
|
])
|
|
3564
3564
|
]),
|
|
3565
|
-
createElementVNode("div", _hoisted_5$
|
|
3565
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
3566
3566
|
createElementVNode("button", {
|
|
3567
3567
|
type: "button",
|
|
3568
3568
|
class: "f-transfer__btn",
|
|
3569
3569
|
disabled: _ctx.disabled || unref(leftList).length === 0,
|
|
3570
3570
|
onClick: _cache[0] || (_cache[0] = ($event) => moveSelected("right"))
|
|
3571
|
-
}, " 鈫? ", 8, _hoisted_6$
|
|
3571
|
+
}, " 鈫? ", 8, _hoisted_6$b),
|
|
3572
3572
|
createElementVNode("button", {
|
|
3573
3573
|
type: "button",
|
|
3574
3574
|
class: "f-transfer__btn",
|
|
3575
3575
|
disabled: _ctx.disabled || unref(rightList).length === 0,
|
|
3576
3576
|
onClick: _cache[1] || (_cache[1] = ($event) => moveSelected("left"))
|
|
3577
|
-
}, " 鈫? ", 8, _hoisted_7$
|
|
3577
|
+
}, " 鈫? ", 8, _hoisted_7$6)
|
|
3578
3578
|
]),
|
|
3579
|
-
createElementVNode("div", _hoisted_8$
|
|
3580
|
-
createElementVNode("div", _hoisted_9$
|
|
3579
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
3580
|
+
createElementVNode("div", _hoisted_9$4, toDisplayString(_ctx.rightTitle), 1),
|
|
3581
3581
|
createElementVNode("ul", _hoisted_10$2, [
|
|
3582
3582
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rightList), (item) => {
|
|
3583
3583
|
return openBlock(), createElementBlock("li", {
|
|
@@ -3592,11 +3592,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3592
3592
|
};
|
|
3593
3593
|
}
|
|
3594
3594
|
});
|
|
3595
|
-
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3596
|
-
const _hoisted_1$
|
|
3597
|
-
const _hoisted_2$
|
|
3598
|
-
const _hoisted_3$
|
|
3599
|
-
const _sfc_main$
|
|
3595
|
+
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-32dbd066"]]);
|
|
3596
|
+
const _hoisted_1$l = { class: "alert__body" };
|
|
3597
|
+
const _hoisted_2$k = { class: "alert__title" };
|
|
3598
|
+
const _hoisted_3$k = { class: "alert__content" };
|
|
3599
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
3600
3600
|
__name: "FAlert",
|
|
3601
3601
|
props: {
|
|
3602
3602
|
type: { default: "info" },
|
|
@@ -3622,9 +3622,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3622
3622
|
]),
|
|
3623
3623
|
_: 1
|
|
3624
3624
|
}),
|
|
3625
|
-
createElementVNode("div", _hoisted_1$
|
|
3626
|
-
createElementVNode("h4", _hoisted_2$
|
|
3627
|
-
createElementVNode("div", _hoisted_3$
|
|
3625
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
3626
|
+
createElementVNode("h4", _hoisted_2$k, toDisplayString((_a = _ctx.title) != null ? _a : unref(config).label), 1),
|
|
3627
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
3628
3628
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3629
3629
|
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
3630
3630
|
], true)
|
|
@@ -3634,18 +3634,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3634
3634
|
};
|
|
3635
3635
|
}
|
|
3636
3636
|
});
|
|
3637
|
-
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3638
|
-
const _hoisted_1$
|
|
3639
|
-
const _hoisted_2$
|
|
3640
|
-
const _hoisted_3$
|
|
3641
|
-
const _hoisted_4$
|
|
3642
|
-
const _hoisted_5$
|
|
3643
|
-
const _hoisted_6$
|
|
3637
|
+
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7e66ccc2"]]);
|
|
3638
|
+
const _hoisted_1$k = { class: "f-editor__toolbar" };
|
|
3639
|
+
const _hoisted_2$j = { class: "f-editor__status" };
|
|
3640
|
+
const _hoisted_3$j = { class: "f-editor__lines" };
|
|
3641
|
+
const _hoisted_4$d = { class: "f-editor__code-wrapper" };
|
|
3642
|
+
const _hoisted_5$a = ["innerHTML"];
|
|
3643
|
+
const _hoisted_6$a = ["rows", "readonly", "placeholder"];
|
|
3644
3644
|
const LINE_HEIGHT_PX = 17.6;
|
|
3645
3645
|
const PADDING_TOP_PX = 12;
|
|
3646
3646
|
const MIN_BODY_HEIGHT = 180;
|
|
3647
3647
|
const HEAVY_LINE_THRESHOLD = 1500;
|
|
3648
|
-
const _sfc_main$
|
|
3648
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3649
3649
|
__name: "FEditor",
|
|
3650
3650
|
props: /* @__PURE__ */ mergeModels({
|
|
3651
3651
|
placeholder: {},
|
|
@@ -3811,9 +3811,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3811
3811
|
return openBlock(), createElementBlock("div", {
|
|
3812
3812
|
class: normalizeClass(["f-editor", { "f-editor--invalid": !unref(isJsonValid) }])
|
|
3813
3813
|
}, [
|
|
3814
|
-
createElementVNode("div", _hoisted_1$
|
|
3815
|
-
createElementVNode("span", _hoisted_2$
|
|
3816
|
-
createElementVNode("span", _hoisted_3$
|
|
3814
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
3815
|
+
createElementVNode("span", _hoisted_2$j, [
|
|
3816
|
+
createElementVNode("span", _hoisted_3$j, toDisplayString(unref(lineCount)) + " 行", 1),
|
|
3817
3817
|
unref(isHeavy) ? (openBlock(), createBlock(FTag, {
|
|
3818
3818
|
key: 0,
|
|
3819
3819
|
color: "orange",
|
|
@@ -3851,7 +3851,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3851
3851
|
}, toDisplayString(ln), 3);
|
|
3852
3852
|
}), 128))
|
|
3853
3853
|
], 512)) : createCommentVNode("", true),
|
|
3854
|
-
createElementVNode("div", _hoisted_4$
|
|
3854
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
3855
3855
|
createElementVNode("div", {
|
|
3856
3856
|
class: "f-editor__active-line",
|
|
3857
3857
|
style: normalizeStyle({
|
|
@@ -3869,7 +3869,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3869
3869
|
key: line.lineNo,
|
|
3870
3870
|
class: "f-editor__line",
|
|
3871
3871
|
innerHTML: line.html + "\n"
|
|
3872
|
-
}, null, 8, _hoisted_5$
|
|
3872
|
+
}, null, 8, _hoisted_5$a);
|
|
3873
3873
|
}), 128))
|
|
3874
3874
|
], 512),
|
|
3875
3875
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -3887,7 +3887,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3887
3887
|
onClick: updateCursorInfo,
|
|
3888
3888
|
onKeyup: updateCursorInfo,
|
|
3889
3889
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur"))
|
|
3890
|
-
}, null, 40, _hoisted_6$
|
|
3890
|
+
}, null, 40, _hoisted_6$a), [
|
|
3891
3891
|
[vModelText, model.value]
|
|
3892
3892
|
])
|
|
3893
3893
|
])
|
|
@@ -3896,28 +3896,28 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3896
3896
|
};
|
|
3897
3897
|
}
|
|
3898
3898
|
});
|
|
3899
|
-
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3900
|
-
const _hoisted_1$
|
|
3901
|
-
const _hoisted_2$
|
|
3899
|
+
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-48883044"]]);
|
|
3900
|
+
const _hoisted_1$j = { class: "f-table__inner" };
|
|
3901
|
+
const _hoisted_2$i = {
|
|
3902
3902
|
key: 0,
|
|
3903
3903
|
class: "f-table__col--index"
|
|
3904
3904
|
};
|
|
3905
|
-
const _hoisted_3$
|
|
3906
|
-
const _hoisted_4$
|
|
3905
|
+
const _hoisted_3$i = { class: "f-table__head" };
|
|
3906
|
+
const _hoisted_4$c = {
|
|
3907
3907
|
key: 0,
|
|
3908
3908
|
class: "f-table__th f-table__th--index"
|
|
3909
3909
|
};
|
|
3910
|
-
const _hoisted_5$
|
|
3911
|
-
const _hoisted_6$
|
|
3910
|
+
const _hoisted_5$9 = { class: "f-table__th-inner" };
|
|
3911
|
+
const _hoisted_6$9 = {
|
|
3912
3912
|
key: 0,
|
|
3913
3913
|
class: "f-table__spacer"
|
|
3914
3914
|
};
|
|
3915
|
-
const _hoisted_7$
|
|
3916
|
-
const _hoisted_8$
|
|
3915
|
+
const _hoisted_7$5 = ["colspan"];
|
|
3916
|
+
const _hoisted_8$4 = {
|
|
3917
3917
|
key: 0,
|
|
3918
3918
|
class: "f-table__td f-table__td--index"
|
|
3919
3919
|
};
|
|
3920
|
-
const _hoisted_9$
|
|
3920
|
+
const _hoisted_9$3 = ["data-tooltip"];
|
|
3921
3921
|
const _hoisted_10$1 = { key: 2 };
|
|
3922
3922
|
const _hoisted_11$1 = ["colspan"];
|
|
3923
3923
|
const _hoisted_12$1 = {
|
|
@@ -3926,7 +3926,7 @@ const _hoisted_12$1 = {
|
|
|
3926
3926
|
};
|
|
3927
3927
|
const _hoisted_13$1 = ["colspan"];
|
|
3928
3928
|
const TIP_HALF_WIDTH = 160;
|
|
3929
|
-
const _sfc_main$
|
|
3929
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3930
3930
|
__name: "FTable",
|
|
3931
3931
|
props: {
|
|
3932
3932
|
data: {},
|
|
@@ -4036,9 +4036,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4036
4036
|
ref: scrollEl,
|
|
4037
4037
|
onScrollPassive: onScroll
|
|
4038
4038
|
}, [
|
|
4039
|
-
createElementVNode("table", _hoisted_1$
|
|
4039
|
+
createElementVNode("table", _hoisted_1$j, [
|
|
4040
4040
|
createElementVNode("colgroup", null, [
|
|
4041
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_2$
|
|
4041
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_2$i)) : createCommentVNode("", true),
|
|
4042
4042
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
4043
4043
|
var _a, _b;
|
|
4044
4044
|
return openBlock(), createElementBlock("col", {
|
|
@@ -4050,16 +4050,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4050
4050
|
}, null, 4);
|
|
4051
4051
|
}), 128))
|
|
4052
4052
|
]),
|
|
4053
|
-
createElementVNode("thead", _hoisted_3$
|
|
4053
|
+
createElementVNode("thead", _hoisted_3$i, [
|
|
4054
4054
|
createElementVNode("tr", null, [
|
|
4055
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_4$
|
|
4055
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_4$c, "#")) : createCommentVNode("", true),
|
|
4056
4056
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
4057
4057
|
return openBlock(), createElementBlock("th", {
|
|
4058
4058
|
key: col.key,
|
|
4059
4059
|
class: normalizeClass(["f-table__th", col.thClass])
|
|
4060
4060
|
}, [
|
|
4061
4061
|
renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [
|
|
4062
|
-
createElementVNode("div", _hoisted_5$
|
|
4062
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
4063
4063
|
createElementVNode("span", null, toDisplayString(col.label), 1)
|
|
4064
4064
|
])
|
|
4065
4065
|
], true)
|
|
@@ -4072,11 +4072,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4072
4072
|
onMouseover: onBodyOver,
|
|
4073
4073
|
onMouseleave: hideTip
|
|
4074
4074
|
}, [
|
|
4075
|
-
unref(offsetTop) > 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$
|
|
4075
|
+
unref(offsetTop) > 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$9, [
|
|
4076
4076
|
createElementVNode("td", {
|
|
4077
4077
|
colspan: unref(colSpan),
|
|
4078
4078
|
style: normalizeStyle({ height: unref(offsetTop) + "px" })
|
|
4079
|
-
}, null, 12, _hoisted_7$
|
|
4079
|
+
}, null, 12, _hoisted_7$5)
|
|
4080
4080
|
])) : createCommentVNode("", true),
|
|
4081
4081
|
unref(visibleRows).length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(visibleRows), ({ row, index }) => {
|
|
4082
4082
|
return openBlock(), createElementBlock("tr", {
|
|
@@ -4084,7 +4084,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4084
4084
|
class: "f-table__row",
|
|
4085
4085
|
style: normalizeStyle({ height: _ctx.rowHeight + "px" })
|
|
4086
4086
|
}, [
|
|
4087
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("td", _hoisted_8$
|
|
4087
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("td", _hoisted_8$4, toDisplayString(index + 1), 1)) : createCommentVNode("", true),
|
|
4088
4088
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
4089
4089
|
return openBlock(), createElementBlock("td", {
|
|
4090
4090
|
key: col.key,
|
|
@@ -4107,7 +4107,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4107
4107
|
key: 2,
|
|
4108
4108
|
class: "f-table__text",
|
|
4109
4109
|
"data-tooltip": col.tooltip === void 0 ? void 0 : col.tooltip ? "1" : "0"
|
|
4110
|
-
}, toDisplayString(formatCell(row[col.key])), 9, _hoisted_9$
|
|
4110
|
+
}, toDisplayString(formatCell(row[col.key])), 9, _hoisted_9$3))
|
|
4111
4111
|
], 6);
|
|
4112
4112
|
}), 128))
|
|
4113
4113
|
], 4);
|
|
@@ -4141,22 +4141,22 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
4141
4141
|
};
|
|
4142
4142
|
}
|
|
4143
4143
|
});
|
|
4144
|
-
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4145
|
-
const _hoisted_1$
|
|
4146
|
-
const _hoisted_2$
|
|
4147
|
-
const _hoisted_3$
|
|
4148
|
-
const _hoisted_4$
|
|
4149
|
-
const _hoisted_5$
|
|
4144
|
+
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5ae2ec2c"]]);
|
|
4145
|
+
const _hoisted_1$i = { class: "f-upload" };
|
|
4146
|
+
const _hoisted_2$h = ["accept", "multiple"];
|
|
4147
|
+
const _hoisted_3$h = { class: "f-upload__zone" };
|
|
4148
|
+
const _hoisted_4$b = { class: "f-upload__hint" };
|
|
4149
|
+
const _hoisted_5$8 = {
|
|
4150
4150
|
key: 0,
|
|
4151
4151
|
class: "f-upload__list"
|
|
4152
4152
|
};
|
|
4153
|
-
const _hoisted_6$
|
|
4154
|
-
const _hoisted_7$
|
|
4155
|
-
const _hoisted_8$
|
|
4153
|
+
const _hoisted_6$8 = { class: "f-upload__file-info" };
|
|
4154
|
+
const _hoisted_7$4 = { class: "f-upload__file-name" };
|
|
4155
|
+
const _hoisted_8$3 = {
|
|
4156
4156
|
key: 1,
|
|
4157
4157
|
class: "f-upload__file-error"
|
|
4158
4158
|
};
|
|
4159
|
-
const _sfc_main$
|
|
4159
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
4160
4160
|
__name: "FUpload",
|
|
4161
4161
|
props: /* @__PURE__ */ mergeModels({
|
|
4162
4162
|
accept: {},
|
|
@@ -4267,7 +4267,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4267
4267
|
}
|
|
4268
4268
|
});
|
|
4269
4269
|
return (_ctx, _cache) => {
|
|
4270
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4270
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
4271
4271
|
createElementVNode("label", {
|
|
4272
4272
|
class: normalizeClass(["f-upload__trigger", { "f-upload--drag": unref(dragActive) }]),
|
|
4273
4273
|
onDragover: onDragOver,
|
|
@@ -4280,9 +4280,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4280
4280
|
multiple: _ctx.limit == null || _ctx.limit > 1,
|
|
4281
4281
|
class: "f-upload__input",
|
|
4282
4282
|
onChange: onFileChange
|
|
4283
|
-
}, null, 40, _hoisted_2$
|
|
4283
|
+
}, null, 40, _hoisted_2$h),
|
|
4284
4284
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4285
|
-
createElementVNode("div", _hoisted_3$
|
|
4285
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
4286
4286
|
createVNode(FIcon, { size: 40 }, {
|
|
4287
4287
|
default: withCtx(() => [
|
|
4288
4288
|
createVNode(unref(CloudUpload))
|
|
@@ -4290,11 +4290,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4290
4290
|
_: 1
|
|
4291
4291
|
}),
|
|
4292
4292
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-upload__title" }, "点击或拖拽文件到此处", -1)),
|
|
4293
|
-
createElementVNode("span", _hoisted_4$
|
|
4293
|
+
createElementVNode("span", _hoisted_4$b, toDisplayString(_ctx.hint), 1)
|
|
4294
4294
|
])
|
|
4295
4295
|
], true)
|
|
4296
4296
|
], 34),
|
|
4297
|
-
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4297
|
+
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
4298
4298
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item) => {
|
|
4299
4299
|
return openBlock(), createElementBlock("div", {
|
|
4300
4300
|
key: item.uid,
|
|
@@ -4306,13 +4306,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4306
4306
|
]),
|
|
4307
4307
|
_: 2
|
|
4308
4308
|
}, 1024),
|
|
4309
|
-
createElementVNode("div", _hoisted_6$
|
|
4310
|
-
createElementVNode("span", _hoisted_7$
|
|
4309
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
4310
|
+
createElementVNode("span", _hoisted_7$4, toDisplayString(item.name), 1),
|
|
4311
4311
|
item.status === "uploading" ? (openBlock(), createBlock(FProgress, {
|
|
4312
4312
|
key: 0,
|
|
4313
4313
|
percent: item.percentage,
|
|
4314
4314
|
"show-text": ""
|
|
4315
|
-
}, null, 8, ["percent"])) : item.status === "error" ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
4315
|
+
}, null, 8, ["percent"])) : item.status === "error" ? (openBlock(), createElementBlock("span", _hoisted_8$3, toDisplayString(item.errorMessage), 1)) : createCommentVNode("", true)
|
|
4316
4316
|
]),
|
|
4317
4317
|
item.status === "error" ? (openBlock(), createBlock(FIcon, {
|
|
4318
4318
|
key: 0,
|
|
@@ -4342,8 +4342,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
4342
4342
|
};
|
|
4343
4343
|
}
|
|
4344
4344
|
});
|
|
4345
|
-
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4346
|
-
const _sfc_main$
|
|
4345
|
+
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-45a5af2d"]]);
|
|
4346
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
4347
4347
|
__name: "FButtonGroup",
|
|
4348
4348
|
props: {
|
|
4349
4349
|
size: { default: "normal" },
|
|
@@ -4364,17 +4364,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
4364
4364
|
};
|
|
4365
4365
|
}
|
|
4366
4366
|
});
|
|
4367
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4368
|
-
const _hoisted_1$
|
|
4369
|
-
const _hoisted_2$
|
|
4367
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a1a51140"]]);
|
|
4368
|
+
const _hoisted_1$h = { class: "f-collapse" };
|
|
4369
|
+
const _hoisted_2$g = {
|
|
4370
4370
|
key: 0,
|
|
4371
4371
|
class: "f-collapse__add-button f-collapse__add-button--top"
|
|
4372
4372
|
};
|
|
4373
|
-
const _hoisted_3$
|
|
4373
|
+
const _hoisted_3$g = {
|
|
4374
4374
|
key: 1,
|
|
4375
4375
|
class: "f-collapse__add-button f-collapse__add-button--bottom"
|
|
4376
4376
|
};
|
|
4377
|
-
const _sfc_main$
|
|
4377
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
4378
4378
|
__name: "FCollapse",
|
|
4379
4379
|
props: /* @__PURE__ */ mergeModels({
|
|
4380
4380
|
accordion: { type: Boolean, default: false },
|
|
@@ -4421,8 +4421,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
4421
4421
|
})
|
|
4422
4422
|
);
|
|
4423
4423
|
return (_ctx, _cache) => {
|
|
4424
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4425
|
-
_ctx.showAddButton && _ctx.addButtonPosition === "top" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4424
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
4425
|
+
_ctx.showAddButton && _ctx.addButtonPosition === "top" ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
4426
4426
|
createElementVNode("button", {
|
|
4427
4427
|
class: "f-collapse__add-button-inner",
|
|
4428
4428
|
onClick: handleAddClick
|
|
@@ -4432,7 +4432,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
4432
4432
|
])
|
|
4433
4433
|
])) : createCommentVNode("", true),
|
|
4434
4434
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
4435
|
-
_ctx.showAddButton && _ctx.addButtonPosition === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4435
|
+
_ctx.showAddButton && _ctx.addButtonPosition === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
|
|
4436
4436
|
createElementVNode("button", {
|
|
4437
4437
|
class: "f-collapse__add-button-inner",
|
|
4438
4438
|
onClick: handleAddClick
|
|
@@ -4445,11 +4445,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
4445
4445
|
};
|
|
4446
4446
|
}
|
|
4447
4447
|
});
|
|
4448
|
-
const FCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4449
|
-
const _hoisted_1$
|
|
4450
|
-
const _hoisted_2$
|
|
4451
|
-
const _hoisted_3$
|
|
4452
|
-
const _sfc_main$
|
|
4448
|
+
const FCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4615c116"]]);
|
|
4449
|
+
const _hoisted_1$g = { class: "f-collapse-item__header-title" };
|
|
4450
|
+
const _hoisted_2$f = { class: "f-collapse-item__wrapper" };
|
|
4451
|
+
const _hoisted_3$f = { class: "f-collapse-item__content" };
|
|
4452
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
4453
4453
|
__name: "FCollapseItem",
|
|
4454
4454
|
props: {
|
|
4455
4455
|
name: {},
|
|
@@ -4493,7 +4493,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4493
4493
|
onClick: handleHeaderClick
|
|
4494
4494
|
}, [
|
|
4495
4495
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4496
|
-
createElementVNode("span", _hoisted_1$
|
|
4496
|
+
createElementVNode("span", _hoisted_1$g, toDisplayString(_ctx.title), 1)
|
|
4497
4497
|
], true),
|
|
4498
4498
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
4499
4499
|
class: "f-collapse-item__icon",
|
|
@@ -4517,8 +4517,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4517
4517
|
onLeave
|
|
4518
4518
|
}, {
|
|
4519
4519
|
default: withCtx(() => [
|
|
4520
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
4521
|
-
createElementVNode("div", _hoisted_3$
|
|
4520
|
+
withDirectives(createElementVNode("div", _hoisted_2$f, [
|
|
4521
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
4522
4522
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4523
4523
|
])
|
|
4524
4524
|
], 512), [
|
|
@@ -4531,22 +4531,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4531
4531
|
};
|
|
4532
4532
|
}
|
|
4533
4533
|
});
|
|
4534
|
-
const FCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4535
|
-
const _hoisted_1$
|
|
4536
|
-
const _hoisted_2$
|
|
4534
|
+
const FCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-d69a6c2b"]]);
|
|
4535
|
+
const _hoisted_1$f = { class: "f-color-picker__swatch" };
|
|
4536
|
+
const _hoisted_2$e = {
|
|
4537
4537
|
key: 0,
|
|
4538
4538
|
class: "f-color-picker__panel"
|
|
4539
4539
|
};
|
|
4540
|
-
const _hoisted_3$
|
|
4541
|
-
const _hoisted_4$
|
|
4542
|
-
const _hoisted_5$
|
|
4543
|
-
const _hoisted_6$
|
|
4540
|
+
const _hoisted_3$e = { class: "f-color-picker__sliders" };
|
|
4541
|
+
const _hoisted_4$a = { class: "f-color-picker__slider-group" };
|
|
4542
|
+
const _hoisted_5$7 = ["value"];
|
|
4543
|
+
const _hoisted_6$7 = {
|
|
4544
4544
|
key: 0,
|
|
4545
4545
|
class: "f-color-picker__predefine"
|
|
4546
4546
|
};
|
|
4547
|
-
const _hoisted_7$
|
|
4547
|
+
const _hoisted_7$3 = ["onClick"];
|
|
4548
4548
|
const hueBackground = "linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)";
|
|
4549
|
-
const _sfc_main$
|
|
4549
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
4550
4550
|
__name: "FColorPicker",
|
|
4551
4551
|
props: /* @__PURE__ */ mergeModels({
|
|
4552
4552
|
showAlpha: { type: Boolean, default: false },
|
|
@@ -4772,7 +4772,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4772
4772
|
class: "f-color-picker__trigger",
|
|
4773
4773
|
onClick: togglePanel
|
|
4774
4774
|
}, [
|
|
4775
|
-
createElementVNode("div", _hoisted_1$
|
|
4775
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
4776
4776
|
createElementVNode("span", {
|
|
4777
4777
|
class: "f-color-picker__swatch-color",
|
|
4778
4778
|
style: normalizeStyle({ background: `rgba(${unref(previewRgb).r}, ${unref(previewRgb).g}, ${unref(previewRgb).b}, ${unref(hsva).a})` })
|
|
@@ -4781,7 +4781,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4781
4781
|
]),
|
|
4782
4782
|
createVNode(Transition, { name: "f-color-picker-fade" }, {
|
|
4783
4783
|
default: withCtx(() => [
|
|
4784
|
-
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4784
|
+
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
4785
4785
|
createElementVNode("div", {
|
|
4786
4786
|
ref_key: "panelRef",
|
|
4787
4787
|
ref: panelRef,
|
|
@@ -4794,8 +4794,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4794
4794
|
style: normalizeStyle({ left: `${unref(hsva).s}%`, top: `${100 - unref(hsva).v}%` })
|
|
4795
4795
|
}, null, 4)
|
|
4796
4796
|
], 36),
|
|
4797
|
-
createElementVNode("div", _hoisted_3$
|
|
4798
|
-
createElementVNode("div", _hoisted_4$
|
|
4797
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
4798
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
4799
4799
|
createElementVNode("div", {
|
|
4800
4800
|
ref_key: "hueRef",
|
|
4801
4801
|
ref: hueRef,
|
|
@@ -4836,15 +4836,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4836
4836
|
value: toColorString(),
|
|
4837
4837
|
onChange: handleInputChange,
|
|
4838
4838
|
onKeydown: _cache[0] || (_cache[0] = withKeys(($event) => $event.target.blur(), ["enter"]))
|
|
4839
|
-
}, null, 40, _hoisted_5$
|
|
4840
|
-
_ctx.predefine.length ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
4839
|
+
}, null, 40, _hoisted_5$7),
|
|
4840
|
+
_ctx.predefine.length ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
4841
4841
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.predefine, (color) => {
|
|
4842
4842
|
return openBlock(), createElementBlock("span", {
|
|
4843
4843
|
key: color,
|
|
4844
4844
|
class: "f-color-picker__predefine-item",
|
|
4845
4845
|
style: normalizeStyle({ background: color }),
|
|
4846
4846
|
onClick: ($event) => selectPredefine(color)
|
|
4847
|
-
}, null, 12, _hoisted_7$
|
|
4847
|
+
}, null, 12, _hoisted_7$3);
|
|
4848
4848
|
}), 128))
|
|
4849
4849
|
])) : createCommentVNode("", true)
|
|
4850
4850
|
])) : createCommentVNode("", true)
|
|
@@ -4855,15 +4855,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4855
4855
|
};
|
|
4856
4856
|
}
|
|
4857
4857
|
});
|
|
4858
|
-
const FColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4859
|
-
const _hoisted_1$
|
|
4860
|
-
const _hoisted_2$
|
|
4861
|
-
const _hoisted_3$
|
|
4862
|
-
const _hoisted_4$
|
|
4858
|
+
const FColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2cc1dd01"]]);
|
|
4859
|
+
const _hoisted_1$e = { class: "f-empty" };
|
|
4860
|
+
const _hoisted_2$d = ["src"];
|
|
4861
|
+
const _hoisted_3$d = { class: "f-empty__description" };
|
|
4862
|
+
const _hoisted_4$9 = {
|
|
4863
4863
|
key: 0,
|
|
4864
4864
|
class: "f-empty__extra"
|
|
4865
4865
|
};
|
|
4866
|
-
const _sfc_main$
|
|
4866
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
4867
4867
|
__name: "FEmpty",
|
|
4868
4868
|
props: {
|
|
4869
4869
|
description: { default: "暂无数据" },
|
|
@@ -4873,7 +4873,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4873
4873
|
},
|
|
4874
4874
|
setup(__props) {
|
|
4875
4875
|
return (_ctx, _cache) => {
|
|
4876
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4876
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
4877
4877
|
createElementVNode("div", {
|
|
4878
4878
|
class: "f-empty__image",
|
|
4879
4879
|
style: normalizeStyle({ width: `${_ctx.imageSize}px`, height: `${_ctx.imageSize}px` })
|
|
@@ -4884,7 +4884,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4884
4884
|
src: _ctx.image,
|
|
4885
4885
|
class: "f-empty__image-img",
|
|
4886
4886
|
alt: ""
|
|
4887
|
-
}, null, 8, _hoisted_2$
|
|
4887
|
+
}, null, 8, _hoisted_2$d)) : (openBlock(), createBlock(FIcon, {
|
|
4888
4888
|
key: 1,
|
|
4889
4889
|
class: "f-empty__image-default",
|
|
4890
4890
|
size: Math.round(_ctx.imageSize * 0.55)
|
|
@@ -4896,26 +4896,26 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4896
4896
|
}, 8, ["size"]))
|
|
4897
4897
|
], true)
|
|
4898
4898
|
], 4),
|
|
4899
|
-
createElementVNode("div", _hoisted_3$
|
|
4899
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
4900
4900
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
4901
4901
|
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
4902
4902
|
], true)
|
|
4903
4903
|
]),
|
|
4904
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4904
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
4905
4905
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4906
4906
|
])) : createCommentVNode("", true)
|
|
4907
4907
|
]);
|
|
4908
4908
|
};
|
|
4909
4909
|
}
|
|
4910
4910
|
});
|
|
4911
|
-
const FEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4912
|
-
const _hoisted_1$
|
|
4913
|
-
const _hoisted_2$
|
|
4914
|
-
const _hoisted_3$
|
|
4911
|
+
const FEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-af34030d"]]);
|
|
4912
|
+
const _hoisted_1$d = { class: "f-slider__mark-label" };
|
|
4913
|
+
const _hoisted_2$c = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"];
|
|
4914
|
+
const _hoisted_3$c = {
|
|
4915
4915
|
key: 0,
|
|
4916
4916
|
class: "f-slider__tooltip"
|
|
4917
4917
|
};
|
|
4918
|
-
const _sfc_main$
|
|
4918
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
4919
4919
|
__name: "FSlider",
|
|
4920
4920
|
props: /* @__PURE__ */ mergeModels({
|
|
4921
4921
|
min: { default: 0 },
|
|
@@ -5089,7 +5089,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
5089
5089
|
style: normalizeStyle(_ctx.vertical ? { bottom: `${mark.percent}%` } : { left: `${mark.percent}%` })
|
|
5090
5090
|
}, [
|
|
5091
5091
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-slider__mark-dot" }, null, -1)),
|
|
5092
|
-
createElementVNode("span", _hoisted_1$
|
|
5092
|
+
createElementVNode("span", _hoisted_1$d, toDisplayString(mark.label), 1)
|
|
5093
5093
|
], 4);
|
|
5094
5094
|
}), 128)),
|
|
5095
5095
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
@@ -5109,28 +5109,28 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
5109
5109
|
}, [
|
|
5110
5110
|
createVNode(Transition, { name: "f-slider-tooltip-fade" }, {
|
|
5111
5111
|
default: withCtx(() => [
|
|
5112
|
-
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5112
|
+
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$c, toDisplayString(value), 1)) : createCommentVNode("", true)
|
|
5113
5113
|
]),
|
|
5114
5114
|
_: 2
|
|
5115
5115
|
}, 1024)
|
|
5116
|
-
], 46, _hoisted_2$
|
|
5116
|
+
], 46, _hoisted_2$c);
|
|
5117
5117
|
}), 128))
|
|
5118
5118
|
], 544)
|
|
5119
5119
|
], 2);
|
|
5120
5120
|
};
|
|
5121
5121
|
}
|
|
5122
5122
|
});
|
|
5123
|
-
const FSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5124
|
-
const _hoisted_1$
|
|
5125
|
-
const _hoisted_2$
|
|
5126
|
-
const _hoisted_3$
|
|
5127
|
-
const _hoisted_4$
|
|
5123
|
+
const FSlider = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ac11d4e9"]]);
|
|
5124
|
+
const _hoisted_1$c = ["disabled"];
|
|
5125
|
+
const _hoisted_2$b = ["value", "disabled", "placeholder"];
|
|
5126
|
+
const _hoisted_3$b = ["disabled"];
|
|
5127
|
+
const _hoisted_4$8 = {
|
|
5128
5128
|
key: 2,
|
|
5129
5129
|
class: "f-input-number__stack"
|
|
5130
5130
|
};
|
|
5131
|
-
const _hoisted_5$
|
|
5132
|
-
const _hoisted_6$
|
|
5133
|
-
const _sfc_main$
|
|
5131
|
+
const _hoisted_5$6 = ["disabled"];
|
|
5132
|
+
const _hoisted_6$6 = ["disabled"];
|
|
5133
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
5134
5134
|
__name: "FInputNumber",
|
|
5135
5135
|
props: /* @__PURE__ */ mergeModels({
|
|
5136
5136
|
min: { default: -Infinity },
|
|
@@ -5276,7 +5276,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5276
5276
|
]),
|
|
5277
5277
|
_: 1
|
|
5278
5278
|
})
|
|
5279
|
-
], 40, _hoisted_1$
|
|
5279
|
+
], 40, _hoisted_1$c)) : createCommentVNode("", true),
|
|
5280
5280
|
createElementVNode("input", {
|
|
5281
5281
|
ref_key: "inputRef",
|
|
5282
5282
|
ref: inputRef,
|
|
@@ -5291,7 +5291,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5291
5291
|
onBlur: handleBlur,
|
|
5292
5292
|
onKeydown: handleKeydown,
|
|
5293
5293
|
onWheel: handleWheel
|
|
5294
|
-
}, null, 40, _hoisted_2$
|
|
5294
|
+
}, null, 40, _hoisted_2$b),
|
|
5295
5295
|
_ctx.controls && _ctx.controlsPosition === "both" ? (openBlock(), createElementBlock("button", {
|
|
5296
5296
|
key: 1,
|
|
5297
5297
|
type: "button",
|
|
@@ -5308,8 +5308,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5308
5308
|
]),
|
|
5309
5309
|
_: 1
|
|
5310
5310
|
})
|
|
5311
|
-
], 40, _hoisted_3$
|
|
5312
|
-
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
5311
|
+
], 40, _hoisted_3$b)) : createCommentVNode("", true),
|
|
5312
|
+
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
5313
5313
|
createElementVNode("button", {
|
|
5314
5314
|
type: "button",
|
|
5315
5315
|
class: "f-input-number__stack-btn",
|
|
@@ -5325,7 +5325,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5325
5325
|
]),
|
|
5326
5326
|
_: 1
|
|
5327
5327
|
})
|
|
5328
|
-
], 40, _hoisted_5$
|
|
5328
|
+
], 40, _hoisted_5$6),
|
|
5329
5329
|
createElementVNode("button", {
|
|
5330
5330
|
type: "button",
|
|
5331
5331
|
class: "f-input-number__stack-btn",
|
|
@@ -5341,35 +5341,35 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5341
5341
|
]),
|
|
5342
5342
|
_: 1
|
|
5343
5343
|
})
|
|
5344
|
-
], 40, _hoisted_6$
|
|
5344
|
+
], 40, _hoisted_6$6)
|
|
5345
5345
|
])) : createCommentVNode("", true)
|
|
5346
5346
|
], 2);
|
|
5347
5347
|
};
|
|
5348
5348
|
}
|
|
5349
5349
|
});
|
|
5350
|
-
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5351
|
-
const _hoisted_1$
|
|
5352
|
-
const _hoisted_2$
|
|
5350
|
+
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-3a928408"]]);
|
|
5351
|
+
const _hoisted_1$b = { class: "f-result__icon" };
|
|
5352
|
+
const _hoisted_2$a = {
|
|
5353
5353
|
key: 0,
|
|
5354
5354
|
class: "f-result__code"
|
|
5355
5355
|
};
|
|
5356
|
-
const _hoisted_3$
|
|
5356
|
+
const _hoisted_3$a = {
|
|
5357
5357
|
key: 0,
|
|
5358
5358
|
class: "f-result__title"
|
|
5359
5359
|
};
|
|
5360
|
-
const _hoisted_4$
|
|
5360
|
+
const _hoisted_4$7 = {
|
|
5361
5361
|
key: 1,
|
|
5362
5362
|
class: "f-result__subtitle"
|
|
5363
5363
|
};
|
|
5364
|
-
const _hoisted_5$
|
|
5364
|
+
const _hoisted_5$5 = {
|
|
5365
5365
|
key: 2,
|
|
5366
5366
|
class: "f-result__extra"
|
|
5367
5367
|
};
|
|
5368
|
-
const _hoisted_6$
|
|
5368
|
+
const _hoisted_6$5 = {
|
|
5369
5369
|
key: 3,
|
|
5370
5370
|
class: "f-result__content"
|
|
5371
5371
|
};
|
|
5372
|
-
const _sfc_main$
|
|
5372
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
5373
5373
|
__name: "FResult",
|
|
5374
5374
|
props: {
|
|
5375
5375
|
status: { default: "info" },
|
|
@@ -5395,9 +5395,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5395
5395
|
return openBlock(), createElementBlock("div", {
|
|
5396
5396
|
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
5397
5397
|
}, [
|
|
5398
|
-
createElementVNode("div", _hoisted_1$
|
|
5398
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
5399
5399
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5400
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5400
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$a, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon, {
|
|
5401
5401
|
key: 1,
|
|
5402
5402
|
size: 72
|
|
5403
5403
|
}, {
|
|
@@ -5408,28 +5408,28 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
5408
5408
|
}))
|
|
5409
5409
|
], true)
|
|
5410
5410
|
]),
|
|
5411
|
-
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
5411
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
5412
5412
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
5413
5413
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
5414
5414
|
], true)
|
|
5415
5415
|
])) : createCommentVNode("", true),
|
|
5416
|
-
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
5416
|
+
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
5417
5417
|
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
5418
5418
|
createTextVNode(toDisplayString(_ctx.subTitle), 1)
|
|
5419
5419
|
], true)
|
|
5420
5420
|
])) : createCommentVNode("", true),
|
|
5421
|
-
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5421
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
5422
5422
|
renderSlot(_ctx.$slots, "extra", {}, void 0, true)
|
|
5423
5423
|
])) : createCommentVNode("", true),
|
|
5424
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
5424
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
5425
5425
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5426
5426
|
])) : createCommentVNode("", true)
|
|
5427
5427
|
], 2);
|
|
5428
5428
|
};
|
|
5429
5429
|
}
|
|
5430
5430
|
});
|
|
5431
|
-
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5432
|
-
const _sfc_main$
|
|
5431
|
+
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f0bf955f"]]);
|
|
5432
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
5433
5433
|
__name: "FMask",
|
|
5434
5434
|
props: /* @__PURE__ */ mergeModels({
|
|
5435
5435
|
maskClosable: { type: Boolean, default: true },
|
|
@@ -5484,8 +5484,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
5484
5484
|
};
|
|
5485
5485
|
}
|
|
5486
5486
|
});
|
|
5487
|
-
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5488
|
-
const _sfc_main$
|
|
5487
|
+
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-a2989c99"]]);
|
|
5488
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
5489
5489
|
__name: "FMarquee",
|
|
5490
5490
|
props: {
|
|
5491
5491
|
direction: { default: "left" },
|
|
@@ -5628,32 +5628,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5628
5628
|
};
|
|
5629
5629
|
}
|
|
5630
5630
|
});
|
|
5631
|
-
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5632
|
-
const _hoisted_1$
|
|
5633
|
-
const _hoisted_2$
|
|
5634
|
-
const _hoisted_3$
|
|
5635
|
-
const _hoisted_4$
|
|
5636
|
-
const _hoisted_5$
|
|
5631
|
+
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-454360ad"]]);
|
|
5632
|
+
const _hoisted_1$a = { class: "f-slider-captcha" };
|
|
5633
|
+
const _hoisted_2$9 = { class: "captcha-imgs" };
|
|
5634
|
+
const _hoisted_3$9 = ["width", "height"];
|
|
5635
|
+
const _hoisted_4$6 = ["width", "height"];
|
|
5636
|
+
const _hoisted_5$4 = {
|
|
5637
5637
|
key: 0,
|
|
5638
5638
|
class: "loading-overlay"
|
|
5639
5639
|
};
|
|
5640
|
-
const _hoisted_6$
|
|
5641
|
-
const _hoisted_7$
|
|
5640
|
+
const _hoisted_6$4 = ["disabled"];
|
|
5641
|
+
const _hoisted_7$2 = {
|
|
5642
5642
|
viewBox: "0 0 24 24",
|
|
5643
5643
|
width: "20",
|
|
5644
5644
|
height: "20"
|
|
5645
5645
|
};
|
|
5646
|
-
const _hoisted_8$
|
|
5646
|
+
const _hoisted_8$2 = {
|
|
5647
5647
|
key: 0,
|
|
5648
5648
|
fill: "currentColor",
|
|
5649
5649
|
d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
|
|
5650
5650
|
};
|
|
5651
|
-
const _hoisted_9$
|
|
5651
|
+
const _hoisted_9$2 = {
|
|
5652
5652
|
key: 1,
|
|
5653
5653
|
fill: "currentColor",
|
|
5654
5654
|
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"
|
|
5655
5655
|
};
|
|
5656
|
-
const _sfc_main$
|
|
5656
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
5657
5657
|
__name: "FSliderCaptcha",
|
|
5658
5658
|
props: {
|
|
5659
5659
|
bgImage: { default: "" },
|
|
@@ -5830,15 +5830,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5830
5830
|
initCanvas();
|
|
5831
5831
|
});
|
|
5832
5832
|
return (_ctx, _cache) => {
|
|
5833
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5834
|
-
createElementVNode("div", _hoisted_2$
|
|
5833
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
5834
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
5835
5835
|
createElementVNode("canvas", {
|
|
5836
5836
|
ref_key: "bgCanvasRef",
|
|
5837
5837
|
ref: bgCanvasRef,
|
|
5838
5838
|
width: _ctx.width,
|
|
5839
5839
|
height: _ctx.height,
|
|
5840
5840
|
class: "bg-canvas"
|
|
5841
|
-
}, null, 8, _hoisted_3$
|
|
5841
|
+
}, null, 8, _hoisted_3$9),
|
|
5842
5842
|
createElementVNode("canvas", {
|
|
5843
5843
|
ref_key: "puzzleCanvasRef",
|
|
5844
5844
|
ref: puzzleCanvasRef,
|
|
@@ -5850,8 +5850,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5850
5850
|
opacity: unref(isSuccess) ? 0 : 1,
|
|
5851
5851
|
transition: unref(isDragging) ? "none" : "all 0.3s"
|
|
5852
5852
|
})
|
|
5853
|
-
}, null, 12, _hoisted_4$
|
|
5854
|
-
unref(isLoading) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5853
|
+
}, null, 12, _hoisted_4$6),
|
|
5854
|
+
unref(isLoading) ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
5855
5855
|
createVNode(FLoading, { type: "dots" })
|
|
5856
5856
|
])) : createCommentVNode("", true),
|
|
5857
5857
|
createElementVNode("button", {
|
|
@@ -5865,7 +5865,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5865
5865
|
]),
|
|
5866
5866
|
_: 1
|
|
5867
5867
|
})
|
|
5868
|
-
], 8, _hoisted_6$
|
|
5868
|
+
], 8, _hoisted_6$4)
|
|
5869
5869
|
]),
|
|
5870
5870
|
createElementVNode("div", {
|
|
5871
5871
|
class: "slider-track",
|
|
@@ -5895,8 +5895,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5895
5895
|
onPointerup: handleDragEnd,
|
|
5896
5896
|
onPointercancel: handleDragEnd
|
|
5897
5897
|
}, [
|
|
5898
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
5899
|
-
!unref(isSuccess) ? (openBlock(), createElementBlock("path", _hoisted_8$
|
|
5898
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$2, [
|
|
5899
|
+
!unref(isSuccess) ? (openBlock(), createElementBlock("path", _hoisted_8$2)) : (openBlock(), createElementBlock("path", _hoisted_9$2))
|
|
5900
5900
|
]))
|
|
5901
5901
|
], 38)
|
|
5902
5902
|
], 512)
|
|
@@ -5904,31 +5904,31 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
5904
5904
|
};
|
|
5905
5905
|
}
|
|
5906
5906
|
});
|
|
5907
|
-
const FSliderCaptcha = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5908
|
-
const _hoisted_1$
|
|
5909
|
-
const _hoisted_2$
|
|
5910
|
-
const _hoisted_3$
|
|
5911
|
-
const _hoisted_4$
|
|
5907
|
+
const FSliderCaptcha = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7b80ef8b"]]);
|
|
5908
|
+
const _hoisted_1$9 = { class: "f-carousel__container" };
|
|
5909
|
+
const _hoisted_2$8 = ["src", "alt"];
|
|
5910
|
+
const _hoisted_3$8 = ["innerHTML"];
|
|
5911
|
+
const _hoisted_4$5 = {
|
|
5912
5912
|
key: 2,
|
|
5913
5913
|
class: "f-carousel__content"
|
|
5914
5914
|
};
|
|
5915
|
-
const _hoisted_5$
|
|
5915
|
+
const _hoisted_5$3 = {
|
|
5916
5916
|
key: 3,
|
|
5917
5917
|
class: "f-carousel__overlay"
|
|
5918
5918
|
};
|
|
5919
|
-
const _hoisted_6$
|
|
5919
|
+
const _hoisted_6$3 = {
|
|
5920
5920
|
key: 0,
|
|
5921
5921
|
class: "f-carousel__title"
|
|
5922
5922
|
};
|
|
5923
|
-
const _hoisted_7 = {
|
|
5923
|
+
const _hoisted_7$1 = {
|
|
5924
5924
|
key: 1,
|
|
5925
5925
|
class: "f-carousel__description"
|
|
5926
5926
|
};
|
|
5927
|
-
const _hoisted_8 = {
|
|
5927
|
+
const _hoisted_8$1 = {
|
|
5928
5928
|
key: 0,
|
|
5929
5929
|
class: "f-carousel__controls"
|
|
5930
5930
|
};
|
|
5931
|
-
const _hoisted_9 = ["disabled"];
|
|
5931
|
+
const _hoisted_9$1 = ["disabled"];
|
|
5932
5932
|
const _hoisted_10 = ["disabled"];
|
|
5933
5933
|
const _hoisted_11 = {
|
|
5934
5934
|
key: 1,
|
|
@@ -5940,7 +5940,7 @@ const _hoisted_14 = {
|
|
|
5940
5940
|
key: 2,
|
|
5941
5941
|
class: "f-carousel__play-control"
|
|
5942
5942
|
};
|
|
5943
|
-
const _sfc_main$
|
|
5943
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
5944
5944
|
__name: "FCarousel",
|
|
5945
5945
|
props: {
|
|
5946
5946
|
items: { default: () => [] },
|
|
@@ -6050,7 +6050,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6050
6050
|
onMouseenter: handleMouseEnter,
|
|
6051
6051
|
onMouseleave: handleMouseLeave
|
|
6052
6052
|
}, [
|
|
6053
|
-
createElementVNode("div", _hoisted_1$
|
|
6053
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
6054
6054
|
createElementVNode("div", {
|
|
6055
6055
|
class: "f-carousel__track",
|
|
6056
6056
|
style: normalizeStyle({ transform: _ctx.direction === "horizontal" ? `translateX(-${unref(currentIndex) * 100}%)` : `translateY(-${unref(currentIndex) * 100}%)` })
|
|
@@ -6066,14 +6066,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6066
6066
|
src: item.src,
|
|
6067
6067
|
alt: item.alt || "",
|
|
6068
6068
|
class: "f-carousel__image"
|
|
6069
|
-
}, null, 8, _hoisted_2$
|
|
6069
|
+
}, null, 8, _hoisted_2$8)) : item.type === "html" ? (openBlock(), createElementBlock("div", {
|
|
6070
6070
|
key: 1,
|
|
6071
6071
|
class: "f-carousel__html-content",
|
|
6072
6072
|
innerHTML: item.content
|
|
6073
|
-
}, null, 8, _hoisted_3$
|
|
6074
|
-
item.title || item.description ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
6075
|
-
item.title ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
6076
|
-
item.description ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
6073
|
+
}, null, 8, _hoisted_3$8)) : (openBlock(), createElementBlock("div", _hoisted_4$5, toDisplayString(item.content), 1)),
|
|
6074
|
+
item.title || item.description ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
6075
|
+
item.title ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(item.title), 1)) : createCommentVNode("", true),
|
|
6076
|
+
item.description ? (openBlock(), createElementBlock("div", _hoisted_7$1, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
6077
6077
|
])) : createCommentVNode("", true)
|
|
6078
6078
|
]);
|
|
6079
6079
|
}), 128)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
@@ -6082,7 +6082,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6082
6082
|
], true)
|
|
6083
6083
|
], 4)
|
|
6084
6084
|
]),
|
|
6085
|
-
_ctx.showControls && _ctx.items && _ctx.items.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
6085
|
+
_ctx.showControls && _ctx.items && _ctx.items.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
6086
6086
|
createElementVNode("button", {
|
|
6087
6087
|
class: "f-carousel__control f-carousel__control--prev",
|
|
6088
6088
|
onClick: prevSlide,
|
|
@@ -6094,7 +6094,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6094
6094
|
]),
|
|
6095
6095
|
_: 1
|
|
6096
6096
|
})
|
|
6097
|
-
], 8, _hoisted_9),
|
|
6097
|
+
], 8, _hoisted_9$1),
|
|
6098
6098
|
createElementVNode("button", {
|
|
6099
6099
|
class: "f-carousel__control f-carousel__control--next",
|
|
6100
6100
|
onClick: nextSlide,
|
|
@@ -6141,15 +6141,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
6141
6141
|
};
|
|
6142
6142
|
}
|
|
6143
6143
|
});
|
|
6144
|
-
const FCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6145
|
-
const _hoisted_1$
|
|
6146
|
-
const _hoisted_2$
|
|
6147
|
-
const _hoisted_3$
|
|
6148
|
-
const _hoisted_4$
|
|
6144
|
+
const FCarousel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-187b78d3"]]);
|
|
6145
|
+
const _hoisted_1$8 = { class: "f-step__icon" };
|
|
6146
|
+
const _hoisted_2$7 = { class: "f-step__content" };
|
|
6147
|
+
const _hoisted_3$7 = { class: "f-step__title" };
|
|
6148
|
+
const _hoisted_4$4 = {
|
|
6149
6149
|
key: 0,
|
|
6150
6150
|
class: "f-step__description"
|
|
6151
6151
|
};
|
|
6152
|
-
const _sfc_main$
|
|
6152
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
6153
6153
|
__name: "FSteps",
|
|
6154
6154
|
props: {
|
|
6155
6155
|
items: {},
|
|
@@ -6174,10 +6174,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
6174
6174
|
key: `${index}-step`,
|
|
6175
6175
|
class: normalizeClass(["f-step", [`is-${resolvedStatus(index, item.status)}`]])
|
|
6176
6176
|
}, [
|
|
6177
|
-
createElementVNode("div", _hoisted_1$
|
|
6178
|
-
createElementVNode("div", _hoisted_2$
|
|
6179
|
-
createElementVNode("div", _hoisted_3$
|
|
6180
|
-
item.description || _ctx.statusText ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
6177
|
+
createElementVNode("div", _hoisted_1$8, toDisplayString(index + 1), 1),
|
|
6178
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
6179
|
+
createElementVNode("div", _hoisted_3$7, toDisplayString(item.title || `Step ${index + 1}`), 1),
|
|
6180
|
+
item.description || _ctx.statusText ? (openBlock(), createElementBlock("div", _hoisted_4$4, toDisplayString(item.description || "Processing"), 1)) : createCommentVNode("", true)
|
|
6181
6181
|
])
|
|
6182
6182
|
], 2);
|
|
6183
6183
|
}), 128))
|
|
@@ -6185,8 +6185,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
6185
6185
|
};
|
|
6186
6186
|
}
|
|
6187
6187
|
});
|
|
6188
|
-
const FSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6189
|
-
const _sfc_main$
|
|
6188
|
+
const FSteps = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-39ce5b1c"]]);
|
|
6189
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
6190
6190
|
__name: "FTimeline",
|
|
6191
6191
|
props: {
|
|
6192
6192
|
mode: { default: "left" },
|
|
@@ -6207,26 +6207,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
6207
6207
|
};
|
|
6208
6208
|
}
|
|
6209
6209
|
});
|
|
6210
|
-
const FTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6211
|
-
const _hoisted_1$
|
|
6210
|
+
const FTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-05989a62"]]);
|
|
6211
|
+
const _hoisted_1$7 = {
|
|
6212
6212
|
key: 1,
|
|
6213
6213
|
class: "f-timeline-item__dot"
|
|
6214
6214
|
};
|
|
6215
|
-
const _hoisted_2$
|
|
6216
|
-
const _hoisted_3$
|
|
6215
|
+
const _hoisted_2$6 = { class: "f-timeline-item__wrapper" };
|
|
6216
|
+
const _hoisted_3$6 = {
|
|
6217
6217
|
key: 0,
|
|
6218
6218
|
class: "f-timeline-item__timestamp"
|
|
6219
6219
|
};
|
|
6220
|
-
const _hoisted_4$
|
|
6220
|
+
const _hoisted_4$3 = {
|
|
6221
6221
|
key: 1,
|
|
6222
6222
|
class: "f-timeline-item__title"
|
|
6223
6223
|
};
|
|
6224
|
-
const _hoisted_5$
|
|
6224
|
+
const _hoisted_5$2 = {
|
|
6225
6225
|
key: 2,
|
|
6226
6226
|
class: "f-timeline-item__collapse-icon"
|
|
6227
6227
|
};
|
|
6228
|
-
const _hoisted_6$
|
|
6229
|
-
const _sfc_main$
|
|
6228
|
+
const _hoisted_6$2 = { class: "f-timeline-item__content-wrapper" };
|
|
6229
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
6230
6230
|
__name: "FTimelineItem",
|
|
6231
6231
|
props: {
|
|
6232
6232
|
timestamp: {},
|
|
@@ -6284,20 +6284,20 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
6284
6284
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
6285
6285
|
]),
|
|
6286
6286
|
_: 1
|
|
6287
|
-
}, 8, ["size"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6287
|
+
}, 8, ["size"])) : (openBlock(), createElementBlock("div", _hoisted_1$7))
|
|
6288
6288
|
], true)
|
|
6289
6289
|
], 2),
|
|
6290
|
-
createElementVNode("div", _hoisted_2$
|
|
6290
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
6291
6291
|
_ctx.timestamp || _ctx.$slots.title || _ctx.collapsible ? (openBlock(), createElementBlock("div", {
|
|
6292
6292
|
key: 0,
|
|
6293
6293
|
class: normalizeClass(["f-timeline-item__header", { "is-clickable": _ctx.collapsible }]),
|
|
6294
6294
|
onClick: toggleCollapse
|
|
6295
6295
|
}, [
|
|
6296
|
-
_ctx.timestamp ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
6297
|
-
_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
6296
|
+
_ctx.timestamp ? (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString(_ctx.timestamp), 1)) : createCommentVNode("", true),
|
|
6297
|
+
_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
6298
6298
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
6299
6299
|
])) : createCommentVNode("", true),
|
|
6300
|
-
_ctx.collapsible ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
6300
|
+
_ctx.collapsible ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
6301
6301
|
createVNode(FIcon, { size: 12 }, {
|
|
6302
6302
|
default: withCtx(() => [
|
|
6303
6303
|
createVNode(unref(ChevronDownOutline))
|
|
@@ -6312,7 +6312,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
6312
6312
|
onLeave
|
|
6313
6313
|
}, {
|
|
6314
6314
|
default: withCtx(() => [
|
|
6315
|
-
withDirectives(createElementVNode("div", _hoisted_6$
|
|
6315
|
+
withDirectives(createElementVNode("div", _hoisted_6$2, [
|
|
6316
6316
|
createElementVNode("div", {
|
|
6317
6317
|
ref_key: "contentRef",
|
|
6318
6318
|
ref: contentRef,
|
|
@@ -6331,11 +6331,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
6331
6331
|
};
|
|
6332
6332
|
}
|
|
6333
6333
|
});
|
|
6334
|
-
const FTimelineItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6335
|
-
const _hoisted_1$
|
|
6336
|
-
const _hoisted_2$
|
|
6337
|
-
const _hoisted_3$
|
|
6338
|
-
const _sfc_main$
|
|
6334
|
+
const FTimelineItem = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-235d4634"]]);
|
|
6335
|
+
const _hoisted_1$6 = { class: "f-dialog__icon" };
|
|
6336
|
+
const _hoisted_2$5 = { class: "f-dialog__title" };
|
|
6337
|
+
const _hoisted_3$5 = { key: 0 };
|
|
6338
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
6339
6339
|
__name: "FDialog",
|
|
6340
6340
|
props: /* @__PURE__ */ mergeModels({
|
|
6341
6341
|
title: { default: "提示" },
|
|
@@ -6436,7 +6436,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6436
6436
|
class: normalizeClass(["f-dialog__header", { "has-divider": _ctx.divider }])
|
|
6437
6437
|
}, [
|
|
6438
6438
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
6439
|
-
createElementVNode("div", _hoisted_1$
|
|
6439
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
6440
6440
|
createVNode(FIcon, null, {
|
|
6441
6441
|
default: withCtx(() => [
|
|
6442
6442
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
@@ -6444,13 +6444,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6444
6444
|
_: 1
|
|
6445
6445
|
})
|
|
6446
6446
|
]),
|
|
6447
|
-
createElementVNode("h3", _hoisted_2$
|
|
6447
|
+
createElementVNode("h3", _hoisted_2$5, toDisplayString(_ctx.title), 1)
|
|
6448
6448
|
], true)
|
|
6449
6449
|
], 2)) : createCommentVNode("", true),
|
|
6450
6450
|
createVNode(FScrollbar, { class: "f-dialog__body" }, {
|
|
6451
6451
|
default: withCtx(() => [
|
|
6452
6452
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6453
|
-
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
6453
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_3$5, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
6454
6454
|
], true)
|
|
6455
6455
|
]),
|
|
6456
6456
|
_: 3
|
|
@@ -6491,17 +6491,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
6491
6491
|
};
|
|
6492
6492
|
}
|
|
6493
6493
|
});
|
|
6494
|
-
const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6495
|
-
const _hoisted_1$
|
|
6494
|
+
const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b15f082a"]]);
|
|
6495
|
+
const _hoisted_1$5 = {
|
|
6496
6496
|
key: 0,
|
|
6497
6497
|
class: "f-drawer__header"
|
|
6498
6498
|
};
|
|
6499
|
-
const _hoisted_2$
|
|
6500
|
-
const _hoisted_3$
|
|
6499
|
+
const _hoisted_2$4 = { class: "f-drawer__title" };
|
|
6500
|
+
const _hoisted_3$4 = {
|
|
6501
6501
|
key: 1,
|
|
6502
6502
|
class: "f-drawer__footer"
|
|
6503
6503
|
};
|
|
6504
|
-
const _sfc_main$
|
|
6504
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
6505
6505
|
__name: "FDrawer",
|
|
6506
6506
|
props: /* @__PURE__ */ mergeModels({
|
|
6507
6507
|
title: {},
|
|
@@ -6568,9 +6568,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6568
6568
|
class: normalizeClass(["f-drawer", [`f-drawer--${_ctx.placement}`, { "is-auto-size": unref(isAutoSize) }]]),
|
|
6569
6569
|
style: normalizeStyle(unref(drawerStyle))
|
|
6570
6570
|
}, [
|
|
6571
|
-
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6571
|
+
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
6572
6572
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
6573
|
-
createElementVNode("h3", _hoisted_2$
|
|
6573
|
+
createElementVNode("h3", _hoisted_2$4, toDisplayString(_ctx.title), 1)
|
|
6574
6574
|
], true),
|
|
6575
6575
|
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
6576
6576
|
key: 0,
|
|
@@ -6593,7 +6593,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6593
6593
|
]),
|
|
6594
6594
|
_: 3
|
|
6595
6595
|
}),
|
|
6596
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
6596
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
6597
6597
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
6598
6598
|
])) : createCommentVNode("", true)
|
|
6599
6599
|
], 6)) : createCommentVNode("", true)
|
|
@@ -6604,20 +6604,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6604
6604
|
};
|
|
6605
6605
|
}
|
|
6606
6606
|
});
|
|
6607
|
-
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6608
|
-
const _hoisted_1$
|
|
6609
|
-
const _hoisted_2$
|
|
6607
|
+
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-89aa73e0"]]);
|
|
6608
|
+
const _hoisted_1$4 = { class: "crop-box" };
|
|
6609
|
+
const _hoisted_2$3 = {
|
|
6610
6610
|
key: 0,
|
|
6611
6611
|
class: "crop-container"
|
|
6612
6612
|
};
|
|
6613
|
-
const _hoisted_3$
|
|
6614
|
-
const _hoisted_4 = ["draggable"];
|
|
6615
|
-
const _hoisted_5 = ["id", "data-direction", "onMousedown", "onTouchstart"];
|
|
6616
|
-
const _hoisted_6 = {
|
|
6613
|
+
const _hoisted_3$3 = ["src"];
|
|
6614
|
+
const _hoisted_4$2 = ["draggable"];
|
|
6615
|
+
const _hoisted_5$1 = ["id", "data-direction", "onMousedown", "onTouchstart"];
|
|
6616
|
+
const _hoisted_6$1 = {
|
|
6617
6617
|
key: 1,
|
|
6618
6618
|
class: "empty-state"
|
|
6619
6619
|
};
|
|
6620
|
-
const _sfc_main$
|
|
6620
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
6621
6621
|
__name: "FCrop",
|
|
6622
6622
|
props: {
|
|
6623
6623
|
src: {},
|
|
@@ -6984,8 +6984,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6984
6984
|
}
|
|
6985
6985
|
});
|
|
6986
6986
|
return (_ctx, _cache) => {
|
|
6987
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6988
|
-
unref(imageUrl) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
6988
|
+
unref(imageUrl) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
6989
6989
|
createElementVNode("div", {
|
|
6990
6990
|
class: normalizeClass(["preview", { "mosaic-bg": props.mosaic }]),
|
|
6991
6991
|
style: normalizeStyle({ background: props.backgroundColor || void 0 })
|
|
@@ -6993,7 +6993,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6993
6993
|
createElementVNode("img", {
|
|
6994
6994
|
src: unref(imageUrl),
|
|
6995
6995
|
class: "image"
|
|
6996
|
-
}, null, 8, _hoisted_3$
|
|
6996
|
+
}, null, 8, _hoisted_3$3),
|
|
6997
6997
|
createElementVNode("div", {
|
|
6998
6998
|
style: normalizeStyle({
|
|
6999
6999
|
transform: `translate(${unref(cutPosition).x}px, ${unref(cutPosition).y}px)`,
|
|
@@ -7022,10 +7022,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7022
7022
|
"data-direction": direction,
|
|
7023
7023
|
onMousedown: ($event) => handleResizeStart($event, direction),
|
|
7024
7024
|
onTouchstart: ($event) => handleResizeStart($event, direction)
|
|
7025
|
-
}, null, 42, _hoisted_5)) : createCommentVNode("", true)
|
|
7025
|
+
}, null, 42, _hoisted_5$1)) : createCommentVNode("", true)
|
|
7026
7026
|
], 64);
|
|
7027
7027
|
}), 64))
|
|
7028
|
-
], 46, _hoisted_4),
|
|
7028
|
+
], 46, _hoisted_4$2),
|
|
7029
7029
|
createElementVNode("div", {
|
|
7030
7030
|
class: "mask",
|
|
7031
7031
|
style: normalizeStyle(unref(maskStyle))
|
|
@@ -7043,7 +7043,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7043
7043
|
type: "button"
|
|
7044
7044
|
}, "确认裁剪")
|
|
7045
7045
|
])
|
|
7046
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
7046
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
7047
7047
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
7048
7048
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "empty-text" }, "请设置 src 属性加载图片", -1))
|
|
7049
7049
|
], true)
|
|
@@ -7052,7 +7052,323 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7052
7052
|
};
|
|
7053
7053
|
}
|
|
7054
7054
|
});
|
|
7055
|
-
const FCrop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7055
|
+
const FCrop = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-54852b1f"]]);
|
|
7056
|
+
const _hoisted_1$3 = { class: "f-infinite-scroll__content" };
|
|
7057
|
+
const _hoisted_2$2 = { class: "f-infinite-scroll__footer" };
|
|
7058
|
+
const _hoisted_3$2 = { class: "footer-text" };
|
|
7059
|
+
const _hoisted_4$1 = { class: "footer-text" };
|
|
7060
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
7061
|
+
__name: "FInfiniteScroll",
|
|
7062
|
+
props: /* @__PURE__ */ mergeModels({
|
|
7063
|
+
finished: { type: Boolean, default: false },
|
|
7064
|
+
disabled: { type: Boolean, default: false },
|
|
7065
|
+
distance: { default: 100 },
|
|
7066
|
+
useWindow: { type: Boolean, default: false },
|
|
7067
|
+
loadingText: { default: "加载中..." },
|
|
7068
|
+
finishedText: { default: "没有更多了" },
|
|
7069
|
+
errorText: { default: "加载失败,点击重试" }
|
|
7070
|
+
}, {
|
|
7071
|
+
"loading": __spreadValues({ type: Boolean }, { default: false }),
|
|
7072
|
+
"loadingModifiers": {},
|
|
7073
|
+
"error": __spreadValues({ type: Boolean }, { default: false }),
|
|
7074
|
+
"errorModifiers": {}
|
|
7075
|
+
}),
|
|
7076
|
+
emits: /* @__PURE__ */ mergeModels(["load"], ["update:loading", "update:error"]),
|
|
7077
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
7078
|
+
const props = __props;
|
|
7079
|
+
const emit = __emit;
|
|
7080
|
+
const loading = useModel(__props, "loading");
|
|
7081
|
+
const error2 = useModel(__props, "error");
|
|
7082
|
+
const rootRef = ref(null);
|
|
7083
|
+
const sentinelRef = ref(null);
|
|
7084
|
+
let observer = null;
|
|
7085
|
+
const canLoad = computed(
|
|
7086
|
+
() => !props.disabled && !props.finished && !loading.value && !error2.value
|
|
7087
|
+
);
|
|
7088
|
+
const trigger = () => {
|
|
7089
|
+
if (!canLoad.value) return;
|
|
7090
|
+
loading.value = true;
|
|
7091
|
+
emit("load");
|
|
7092
|
+
};
|
|
7093
|
+
const onIntersect = (entries) => {
|
|
7094
|
+
if (entries.some((e) => e.isIntersecting)) trigger();
|
|
7095
|
+
};
|
|
7096
|
+
const disconnect = () => {
|
|
7097
|
+
observer == null ? void 0 : observer.disconnect();
|
|
7098
|
+
observer = null;
|
|
7099
|
+
};
|
|
7100
|
+
const observe = () => {
|
|
7101
|
+
disconnect();
|
|
7102
|
+
if (!sentinelRef.value) return;
|
|
7103
|
+
observer = new IntersectionObserver(onIntersect, {
|
|
7104
|
+
root: props.useWindow ? null : rootRef.value,
|
|
7105
|
+
rootMargin: `0px 0px ${props.distance}px 0px`
|
|
7106
|
+
});
|
|
7107
|
+
observer.observe(sentinelRef.value);
|
|
7108
|
+
};
|
|
7109
|
+
const retry = () => {
|
|
7110
|
+
error2.value = false;
|
|
7111
|
+
trigger();
|
|
7112
|
+
};
|
|
7113
|
+
watch(
|
|
7114
|
+
() => [loading.value, error2.value, props.finished, props.disabled],
|
|
7115
|
+
() => {
|
|
7116
|
+
if (canLoad.value) nextTick(observe);
|
|
7117
|
+
}
|
|
7118
|
+
);
|
|
7119
|
+
watch(() => [props.useWindow, props.distance], observe);
|
|
7120
|
+
onMounted(observe);
|
|
7121
|
+
onBeforeUnmount(disconnect);
|
|
7122
|
+
__expose({ check: observe });
|
|
7123
|
+
return (_ctx, _cache) => {
|
|
7124
|
+
return openBlock(), createElementBlock("div", {
|
|
7125
|
+
ref_key: "rootRef",
|
|
7126
|
+
ref: rootRef,
|
|
7127
|
+
class: normalizeClass(["f-infinite-scroll", { "is-window": _ctx.useWindow }])
|
|
7128
|
+
}, [
|
|
7129
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
7130
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
7131
|
+
]),
|
|
7132
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
7133
|
+
loading.value ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
|
|
7134
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-infinite-scroll__spinner" }, null, -1)),
|
|
7135
|
+
createElementVNode("span", _hoisted_3$2, toDisplayString(_ctx.loadingText), 1)
|
|
7136
|
+
], true) : error2.value ? renderSlot(_ctx.$slots, "error", {
|
|
7137
|
+
key: 1,
|
|
7138
|
+
retry
|
|
7139
|
+
}, () => [
|
|
7140
|
+
createElementVNode("span", {
|
|
7141
|
+
class: "footer-text is-error",
|
|
7142
|
+
onClick: retry
|
|
7143
|
+
}, toDisplayString(_ctx.errorText), 1)
|
|
7144
|
+
], true) : _ctx.finished ? renderSlot(_ctx.$slots, "finished", { key: 2 }, () => [
|
|
7145
|
+
createElementVNode("span", _hoisted_4$1, toDisplayString(_ctx.finishedText), 1)
|
|
7146
|
+
], true) : createCommentVNode("", true)
|
|
7147
|
+
]),
|
|
7148
|
+
createElementVNode("div", {
|
|
7149
|
+
ref_key: "sentinelRef",
|
|
7150
|
+
ref: sentinelRef,
|
|
7151
|
+
class: "f-infinite-scroll__sentinel"
|
|
7152
|
+
}, null, 512)
|
|
7153
|
+
], 2);
|
|
7154
|
+
};
|
|
7155
|
+
}
|
|
7156
|
+
});
|
|
7157
|
+
const FInfiniteScroll = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9eebd209"]]);
|
|
7158
|
+
const _hoisted_1$2 = { class: "f-popconfirm__body" };
|
|
7159
|
+
const _hoisted_2$1 = {
|
|
7160
|
+
key: 0,
|
|
7161
|
+
class: "f-popconfirm__icon"
|
|
7162
|
+
};
|
|
7163
|
+
const _hoisted_3$1 = { class: "f-popconfirm__main" };
|
|
7164
|
+
const _hoisted_4 = { class: "f-popconfirm__title" };
|
|
7165
|
+
const _hoisted_5 = {
|
|
7166
|
+
key: 0,
|
|
7167
|
+
class: "f-popconfirm__content"
|
|
7168
|
+
};
|
|
7169
|
+
const _hoisted_6 = { class: "f-popconfirm__footer" };
|
|
7170
|
+
const _hoisted_7 = ["disabled"];
|
|
7171
|
+
const _hoisted_8 = ["disabled"];
|
|
7172
|
+
const _hoisted_9 = {
|
|
7173
|
+
key: 0,
|
|
7174
|
+
class: "pop-btn__spinner"
|
|
7175
|
+
};
|
|
7176
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7177
|
+
__name: "FPopconfirm",
|
|
7178
|
+
props: /* @__PURE__ */ mergeModels({
|
|
7179
|
+
title: { default: "" },
|
|
7180
|
+
content: { default: "" },
|
|
7181
|
+
placement: { default: "top" },
|
|
7182
|
+
type: { default: "warning" },
|
|
7183
|
+
confirmText: { default: "确定" },
|
|
7184
|
+
cancelText: { default: "取消" },
|
|
7185
|
+
showCancel: { type: Boolean, default: true },
|
|
7186
|
+
showIcon: { type: Boolean, default: true },
|
|
7187
|
+
disabled: { type: Boolean, default: false },
|
|
7188
|
+
offset: { default: 10 },
|
|
7189
|
+
closeOnClickOutside: { type: Boolean, default: true },
|
|
7190
|
+
beforeConfirm: {}
|
|
7191
|
+
}, {
|
|
7192
|
+
"modelValue": __spreadValues({ type: Boolean }, { default: false }),
|
|
7193
|
+
"modelModifiers": {}
|
|
7194
|
+
}),
|
|
7195
|
+
emits: /* @__PURE__ */ mergeModels(["confirm", "cancel"], ["update:modelValue"]),
|
|
7196
|
+
setup(__props, { emit: __emit }) {
|
|
7197
|
+
const props = __props;
|
|
7198
|
+
const emit = __emit;
|
|
7199
|
+
const visible = useModel(__props, "modelValue");
|
|
7200
|
+
const triggerRef = ref(null);
|
|
7201
|
+
const popupRef = ref(null);
|
|
7202
|
+
const popupStyle = ref({});
|
|
7203
|
+
const actualPlacement = ref(props.placement);
|
|
7204
|
+
const confirming = ref(false);
|
|
7205
|
+
const side = computed(() => actualPlacement.value.split("-")[0]);
|
|
7206
|
+
const clamp = (n, min, max) => Math.min(Math.max(n, min), Math.max(min, max));
|
|
7207
|
+
const updatePosition = () => {
|
|
7208
|
+
const trigger = triggerRef.value;
|
|
7209
|
+
const popup = popupRef.value;
|
|
7210
|
+
if (!trigger || !popup) return;
|
|
7211
|
+
const t = trigger.getBoundingClientRect();
|
|
7212
|
+
const w = popup.offsetWidth;
|
|
7213
|
+
const h2 = popup.offsetHeight;
|
|
7214
|
+
const vw = window.innerWidth;
|
|
7215
|
+
const vh = window.innerHeight;
|
|
7216
|
+
const gap = props.offset;
|
|
7217
|
+
const edge = 8;
|
|
7218
|
+
const [wantSide, align = "center"] = props.placement.split("-");
|
|
7219
|
+
let s = wantSide;
|
|
7220
|
+
if (s === "top" && t.top - h2 - gap < 0 && t.bottom + h2 + gap <= vh) s = "bottom";
|
|
7221
|
+
else if (s === "bottom" && t.bottom + h2 + gap > vh && t.top - h2 - gap >= 0) s = "top";
|
|
7222
|
+
else if (s === "left" && t.left - w - gap < 0 && t.right + w + gap <= vw) s = "right";
|
|
7223
|
+
else if (s === "right" && t.right + w + gap > vw && t.left - w - gap >= 0) s = "left";
|
|
7224
|
+
let top;
|
|
7225
|
+
let left;
|
|
7226
|
+
let arrow;
|
|
7227
|
+
if (s === "top" || s === "bottom") {
|
|
7228
|
+
top = s === "top" ? t.top - h2 - gap : t.bottom + gap;
|
|
7229
|
+
left = align === "start" ? t.left : align === "end" ? t.right - w : t.left + (t.width - w) / 2;
|
|
7230
|
+
left = clamp(left, edge, vw - w - edge);
|
|
7231
|
+
arrow = clamp(t.left + t.width / 2 - left, 12, w - 12);
|
|
7232
|
+
} else {
|
|
7233
|
+
left = s === "left" ? t.left - w - gap : t.right + gap;
|
|
7234
|
+
top = t.top + (t.height - h2) / 2;
|
|
7235
|
+
top = clamp(top, edge, vh - h2 - edge);
|
|
7236
|
+
arrow = clamp(t.top + t.height / 2 - top, 12, h2 - 12);
|
|
7237
|
+
}
|
|
7238
|
+
actualPlacement.value = s + (s === wantSide && align !== "center" ? `-${align}` : "");
|
|
7239
|
+
popupStyle.value = {
|
|
7240
|
+
top: `${top}px`,
|
|
7241
|
+
left: `${left}px`,
|
|
7242
|
+
"--arrow-offset": `${arrow}px`
|
|
7243
|
+
};
|
|
7244
|
+
};
|
|
7245
|
+
const onDocMouseDown = (e) => {
|
|
7246
|
+
var _a, _b;
|
|
7247
|
+
if (!props.closeOnClickOutside || confirming.value) return;
|
|
7248
|
+
const target = e.target;
|
|
7249
|
+
if (((_a = triggerRef.value) == null ? void 0 : _a.contains(target)) || ((_b = popupRef.value) == null ? void 0 : _b.contains(target))) return;
|
|
7250
|
+
visible.value = false;
|
|
7251
|
+
};
|
|
7252
|
+
const onKeydown = (e) => {
|
|
7253
|
+
if (e.key === "Escape" && !confirming.value) visible.value = false;
|
|
7254
|
+
};
|
|
7255
|
+
const bind = () => {
|
|
7256
|
+
document.addEventListener("mousedown", onDocMouseDown);
|
|
7257
|
+
document.addEventListener("keydown", onKeydown);
|
|
7258
|
+
window.addEventListener("resize", updatePosition);
|
|
7259
|
+
window.addEventListener("scroll", updatePosition, true);
|
|
7260
|
+
};
|
|
7261
|
+
const unbind = () => {
|
|
7262
|
+
document.removeEventListener("mousedown", onDocMouseDown);
|
|
7263
|
+
document.removeEventListener("keydown", onKeydown);
|
|
7264
|
+
window.removeEventListener("resize", updatePosition);
|
|
7265
|
+
window.removeEventListener("scroll", updatePosition, true);
|
|
7266
|
+
};
|
|
7267
|
+
watch(visible, (v) => __async(null, null, function* () {
|
|
7268
|
+
if (v) {
|
|
7269
|
+
yield nextTick();
|
|
7270
|
+
updatePosition();
|
|
7271
|
+
bind();
|
|
7272
|
+
} else {
|
|
7273
|
+
unbind();
|
|
7274
|
+
}
|
|
7275
|
+
}), { immediate: true, flush: "post" });
|
|
7276
|
+
onBeforeUnmount(unbind);
|
|
7277
|
+
const onTriggerClick = () => {
|
|
7278
|
+
if (props.disabled) return;
|
|
7279
|
+
visible.value = !visible.value;
|
|
7280
|
+
};
|
|
7281
|
+
const onCancel = () => {
|
|
7282
|
+
emit("cancel");
|
|
7283
|
+
visible.value = false;
|
|
7284
|
+
};
|
|
7285
|
+
const onConfirm = () => __async(null, null, function* () {
|
|
7286
|
+
if (confirming.value) return;
|
|
7287
|
+
if (props.beforeConfirm) {
|
|
7288
|
+
confirming.value = true;
|
|
7289
|
+
try {
|
|
7290
|
+
if ((yield props.beforeConfirm()) === false) return;
|
|
7291
|
+
} catch (e) {
|
|
7292
|
+
return;
|
|
7293
|
+
} finally {
|
|
7294
|
+
confirming.value = false;
|
|
7295
|
+
}
|
|
7296
|
+
}
|
|
7297
|
+
emit("confirm");
|
|
7298
|
+
visible.value = false;
|
|
7299
|
+
});
|
|
7300
|
+
return (_ctx, _cache) => {
|
|
7301
|
+
return openBlock(), createElementBlock("span", {
|
|
7302
|
+
ref_key: "triggerRef",
|
|
7303
|
+
ref: triggerRef,
|
|
7304
|
+
class: "f-popconfirm",
|
|
7305
|
+
onClick: onTriggerClick
|
|
7306
|
+
}, [
|
|
7307
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
7308
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
7309
|
+
createVNode(Transition, { name: "f-popconfirm-fade" }, {
|
|
7310
|
+
default: withCtx(() => [
|
|
7311
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
7312
|
+
key: 0,
|
|
7313
|
+
ref_key: "popupRef",
|
|
7314
|
+
ref: popupRef,
|
|
7315
|
+
class: normalizeClass(["f-popconfirm__popup", [`f-popconfirm__popup--${_ctx.type}`, `is-${unref(side)}`]]),
|
|
7316
|
+
style: normalizeStyle(unref(popupStyle)),
|
|
7317
|
+
role: "dialog",
|
|
7318
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
7319
|
+
}, ["stop"]))
|
|
7320
|
+
}, [
|
|
7321
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
7322
|
+
_ctx.showIcon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
|
|
7323
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
7324
|
+
createVNode(FIcon, null, {
|
|
7325
|
+
default: withCtx(() => [
|
|
7326
|
+
createVNode(unref(AlertCircle))
|
|
7327
|
+
]),
|
|
7328
|
+
_: 1
|
|
7329
|
+
})
|
|
7330
|
+
], true)
|
|
7331
|
+
])) : createCommentVNode("", true),
|
|
7332
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
7333
|
+
createElementVNode("div", _hoisted_4, [
|
|
7334
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
7335
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
7336
|
+
], true)
|
|
7337
|
+
]),
|
|
7338
|
+
_ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
7339
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
7340
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
7341
|
+
], true)
|
|
7342
|
+
])) : createCommentVNode("", true)
|
|
7343
|
+
])
|
|
7344
|
+
]),
|
|
7345
|
+
createElementVNode("div", _hoisted_6, [
|
|
7346
|
+
_ctx.showCancel ? (openBlock(), createElementBlock("button", {
|
|
7347
|
+
key: 0,
|
|
7348
|
+
class: "pop-btn",
|
|
7349
|
+
disabled: unref(confirming),
|
|
7350
|
+
onClick: onCancel
|
|
7351
|
+
}, toDisplayString(_ctx.cancelText), 9, _hoisted_7)) : createCommentVNode("", true),
|
|
7352
|
+
createElementVNode("button", {
|
|
7353
|
+
class: normalizeClass(["pop-btn is-confirm", { loading: unref(confirming) }]),
|
|
7354
|
+
disabled: unref(confirming),
|
|
7355
|
+
onClick: onConfirm
|
|
7356
|
+
}, [
|
|
7357
|
+
unref(confirming) ? (openBlock(), createElementBlock("span", _hoisted_9)) : createCommentVNode("", true),
|
|
7358
|
+
createTextVNode(" " + toDisplayString(_ctx.confirmText), 1)
|
|
7359
|
+
], 10, _hoisted_8)
|
|
7360
|
+
]),
|
|
7361
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-popconfirm__arrow" }, null, -1))
|
|
7362
|
+
], 6)) : createCommentVNode("", true)
|
|
7363
|
+
]),
|
|
7364
|
+
_: 3
|
|
7365
|
+
})
|
|
7366
|
+
]))
|
|
7367
|
+
], 512);
|
|
7368
|
+
};
|
|
7369
|
+
}
|
|
7370
|
+
});
|
|
7371
|
+
const FPopconfirm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2e9378f9"]]);
|
|
7056
7372
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7057
7373
|
__proto__: null,
|
|
7058
7374
|
FAffix,
|
|
@@ -7082,6 +7398,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
7082
7398
|
FFormItem,
|
|
7083
7399
|
FIcon,
|
|
7084
7400
|
FImage,
|
|
7401
|
+
FInfiniteScroll,
|
|
7085
7402
|
FInput,
|
|
7086
7403
|
FInputNumber,
|
|
7087
7404
|
FLink,
|
|
@@ -7089,6 +7406,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
7089
7406
|
FMarquee,
|
|
7090
7407
|
FMask,
|
|
7091
7408
|
FPagination,
|
|
7409
|
+
FPopconfirm,
|
|
7092
7410
|
FProgress,
|
|
7093
7411
|
FRadio,
|
|
7094
7412
|
FRadioGroup,
|
|
@@ -7603,6 +7921,7 @@ export {
|
|
|
7603
7921
|
FFormItem,
|
|
7604
7922
|
FIcon,
|
|
7605
7923
|
FImage,
|
|
7924
|
+
FInfiniteScroll,
|
|
7606
7925
|
FInput,
|
|
7607
7926
|
FInputNumber,
|
|
7608
7927
|
FLink,
|
|
@@ -7612,6 +7931,7 @@ export {
|
|
|
7612
7931
|
FMessage,
|
|
7613
7932
|
FNotification,
|
|
7614
7933
|
FPagination,
|
|
7934
|
+
FPopconfirm,
|
|
7615
7935
|
FProgress,
|
|
7616
7936
|
FRadio,
|
|
7617
7937
|
FRadioGroup,
|