fantasia-ui 0.2.30 → 0.2.32
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/LICENSE +21 -0
- package/README.en.md +1 -1
- package/README.md +2 -2
- package/dist/fantasia-ui.css +262 -49
- package/dist/fantasia-ui.es.js +1766 -327
- package/dist/fantasia-ui.umd.js +1764 -325
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/modules/FButtonGroup.vue.d.ts +0 -1
- package/dist/types/components/modules/FMessage.d.ts +3 -0
- package/dist/types/components/modules/FMessage.vue.d.ts +17 -0
- package/dist/types/components/modules/FNotification.d.ts +3 -0
- package/dist/types/components/modules/FNotification.vue.d.ts +20 -0
- package/dist/types/types/components/index.d.ts +2 -0
- package/dist/types/types/components/modules/base.d.ts +9 -2
- package/dist/types/types/components/modules/f-message.d.ts +33 -0
- package/dist/types/types/components/modules/f-notification.d.ts +48 -0
- package/package.json +4 -4
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -37,10 +37,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, readonly, vModelDynamic, createBlock, nextTick, onUnmounted, Teleport, withModifiers, resolveDynamicComponent, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, inject, provide, onMounted, onBeforeUnmount, reactive, toRefs, createStaticVNode } from "vue";
|
|
41
|
-
import { Search, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, DocumentOutline, InformationCircle, AlertCircle
|
|
40
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, readonly, vModelDynamic, createBlock, nextTick, onUnmounted, Teleport, withModifiers, resolveDynamicComponent, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, inject, provide, onMounted, onBeforeUnmount, reactive, toRefs, createStaticVNode, render } from "vue";
|
|
41
|
+
import { Search, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, DocumentOutline, Warning, CheckmarkCircle, InformationCircle, AlertCircle } from "@vicons/ionicons5";
|
|
42
42
|
import { useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -71,17 +71,17 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
71
71
|
}
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
|
-
const FIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
74
|
+
const FIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["__scopeId", "data-v-baf7de0c"]]);
|
|
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$Q = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$J = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
84
|
-
const _sfc_main$
|
|
84
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
85
85
|
__name: "FLoading",
|
|
86
86
|
props: {
|
|
87
87
|
type: { default: "dots" },
|
|
@@ -94,7 +94,7 @@ const _sfc_main$F = /* @__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$Q, [
|
|
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$F = /* @__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$J, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const FLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
113
|
+
const FLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
+
const _hoisted_1$P = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$I = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$F = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
123
123
|
const _hoisted_4$b = ["src", "loading"];
|
|
124
|
-
const _sfc_main$
|
|
124
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
127
127
|
src: {},
|
|
@@ -138,10 +138,10 @@ const _sfc_main$E = /* @__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$P, [
|
|
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$I, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,7 +149,7 @@ const _sfc_main$E = /* @__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$F, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
154
|
createVNode(FIcon$1, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
@@ -176,9 +176,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _sfc_main$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
+
const _hoisted_1$O = ["type", "placeholder", "disabled", "readonly", "name", "id"];
|
|
181
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
182
182
|
__name: "FInput",
|
|
183
183
|
props: /* @__PURE__ */ mergeModels({
|
|
184
184
|
placeholder: { default: "输入..." },
|
|
@@ -232,20 +232,20 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
onChange: handleChange,
|
|
233
233
|
onFocus: handleFocus,
|
|
234
234
|
onBlur: handleBlur
|
|
235
|
-
}, null, 40, _hoisted_1$
|
|
235
|
+
}, null, 40, _hoisted_1$O), [
|
|
236
236
|
[vModelDynamic, model.value]
|
|
237
237
|
])
|
|
238
238
|
], 2);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
|
-
const FInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
243
|
-
const _hoisted_1$
|
|
244
|
-
const _hoisted_2$
|
|
242
|
+
const FInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
+
const _hoisted_1$N = ["onMousemove"];
|
|
244
|
+
const _hoisted_2$H = {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: "f-rate__score"
|
|
247
247
|
};
|
|
248
|
-
const _sfc_main$
|
|
248
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
249
249
|
__name: "FRate",
|
|
250
250
|
props: /* @__PURE__ */ mergeModels({
|
|
251
251
|
modelValue: {},
|
|
@@ -328,23 +328,23 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
]),
|
|
329
329
|
_: 2
|
|
330
330
|
}, 1032, ["color", "size"])
|
|
331
|
-
], 40, _hoisted_1$
|
|
331
|
+
], 40, _hoisted_1$N);
|
|
332
332
|
}), 128)),
|
|
333
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
333
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$H, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
334
334
|
], 34);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
const FRate = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
339
|
-
const _hoisted_1$
|
|
340
|
-
const _hoisted_2$
|
|
341
|
-
const _hoisted_3$
|
|
338
|
+
const FRate = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
339
|
+
const _hoisted_1$M = { class: "f-dropdown-wrapper" };
|
|
340
|
+
const _hoisted_2$G = { class: "f-dropdown-content" };
|
|
341
|
+
const _hoisted_3$E = ["onClick"];
|
|
342
342
|
const _hoisted_4$a = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "opt-icon"
|
|
345
345
|
};
|
|
346
346
|
const _hoisted_5$9 = { class: "opt-label" };
|
|
347
|
-
const _sfc_main$
|
|
347
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
348
348
|
__name: "FDropdown",
|
|
349
349
|
props: {
|
|
350
350
|
placement: { default: "right-start" },
|
|
@@ -513,7 +513,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
513
513
|
});
|
|
514
514
|
useEventListener(window, "click", handleWindowClick);
|
|
515
515
|
return (_ctx, _cache) => {
|
|
516
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
517
517
|
createElementVNode("div", {
|
|
518
518
|
ref_key: "triggerRef",
|
|
519
519
|
ref: triggerRef,
|
|
@@ -543,7 +543,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
543
543
|
class: "f-dropdown-bridge",
|
|
544
544
|
style: normalizeStyle(unref(bridgeStyle))
|
|
545
545
|
}, null, 4)) : createCommentVNode("", true),
|
|
546
|
-
createElementVNode("div", _hoisted_2$
|
|
546
|
+
createElementVNode("div", _hoisted_2$G, [
|
|
547
547
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
548
548
|
return openBlock(), createElementBlock("div", {
|
|
549
549
|
key: opt.key,
|
|
@@ -554,7 +554,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
554
554
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
555
555
|
])) : createCommentVNode("", true),
|
|
556
556
|
createElementVNode("span", _hoisted_5$9, toDisplayString(opt.label), 1)
|
|
557
|
-
], 10, _hoisted_3$
|
|
557
|
+
], 10, _hoisted_3$E);
|
|
558
558
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
559
559
|
])
|
|
560
560
|
], 36)) : createCommentVNode("", true)
|
|
@@ -566,8 +566,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
|
-
const FDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
570
|
-
const _sfc_main$
|
|
569
|
+
const FDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-addb3a3b"]]);
|
|
570
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
571
571
|
__name: "FSelect",
|
|
572
572
|
props: /* @__PURE__ */ mergeModels({
|
|
573
573
|
options: {},
|
|
@@ -627,16 +627,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
const FSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
631
|
-
const _hoisted_1$
|
|
630
|
+
const FSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
+
const _hoisted_1$L = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "f-pagination"
|
|
634
634
|
};
|
|
635
|
-
const _hoisted_2$
|
|
635
|
+
const _hoisted_2$F = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "f-pagination__total"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_3$
|
|
639
|
+
const _hoisted_3$D = {
|
|
640
640
|
key: 1,
|
|
641
641
|
class: "f-pagination__size"
|
|
642
642
|
};
|
|
@@ -656,7 +656,7 @@ const _hoisted_9$2 = {
|
|
|
656
656
|
class: "f-pagination__jump"
|
|
657
657
|
};
|
|
658
658
|
const _hoisted_10$2 = ["max"];
|
|
659
|
-
const _sfc_main$
|
|
659
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
660
660
|
__name: "FPagination",
|
|
661
661
|
props: /* @__PURE__ */ mergeModels({
|
|
662
662
|
total: {},
|
|
@@ -705,10 +705,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
705
705
|
jumpInput.value = "";
|
|
706
706
|
};
|
|
707
707
|
return (_ctx, _cache) => {
|
|
708
|
-
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
708
|
+
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
709
709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
|
|
710
710
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
711
|
-
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
711
|
+
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$F, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
|
|
712
712
|
createElementVNode("select", {
|
|
713
713
|
class: "size-select",
|
|
714
714
|
value: _ctx.pageSize,
|
|
@@ -781,16 +781,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
|
-
const FPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
785
|
-
const _hoisted_1$
|
|
784
|
+
const FPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
+
const _hoisted_1$K = {
|
|
786
786
|
key: 0,
|
|
787
787
|
class: "f-card__header"
|
|
788
788
|
};
|
|
789
|
-
const _hoisted_2$
|
|
789
|
+
const _hoisted_2$E = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "f-card__header-extra"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$C = {
|
|
794
794
|
key: 1,
|
|
795
795
|
class: "f-card__cover"
|
|
796
796
|
};
|
|
@@ -823,7 +823,7 @@ const _hoisted_11$1 = {
|
|
|
823
823
|
key: 1,
|
|
824
824
|
class: "f-card__footer"
|
|
825
825
|
};
|
|
826
|
-
const _sfc_main$
|
|
826
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
827
827
|
__name: "FCard",
|
|
828
828
|
props: {
|
|
829
829
|
hoverable: { type: Boolean, default: true },
|
|
@@ -835,13 +835,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
835
835
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
836
836
|
}, [
|
|
837
837
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
838
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
838
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
839
839
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
840
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
840
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
841
841
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
842
842
|
])) : createCommentVNode("", true)
|
|
843
843
|
])) : createCommentVNode("", true),
|
|
844
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
844
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
|
|
845
845
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
846
846
|
])) : createCommentVNode("", true),
|
|
847
847
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
@@ -873,12 +873,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
-
const FCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
877
|
-
const _hoisted_1$
|
|
876
|
+
const FCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
+
const _hoisted_1$J = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "f-tag__dot"
|
|
880
880
|
};
|
|
881
|
-
const _sfc_main$
|
|
881
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
882
882
|
__name: "FTag",
|
|
883
883
|
props: {
|
|
884
884
|
color: {},
|
|
@@ -902,7 +902,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
902
902
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
903
903
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
904
904
|
}, [
|
|
905
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
905
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$J)) : createCommentVNode("", true),
|
|
906
906
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
907
907
|
_ctx.closable ? (openBlock(), createBlock(FIcon$1, {
|
|
908
908
|
key: 1,
|
|
@@ -918,8 +918,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
|
-
const FTag = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
922
|
-
const _sfc_main$
|
|
921
|
+
const FTag = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-02bd5aa6"]]);
|
|
922
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
923
923
|
__name: "FTooltip",
|
|
924
924
|
props: {
|
|
925
925
|
content: {},
|
|
@@ -1023,13 +1023,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
|
-
const FTooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1027
|
-
const _hoisted_1$
|
|
1028
|
-
const _hoisted_2$
|
|
1026
|
+
const FTooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
+
const _hoisted_1$I = { class: "f-progress" };
|
|
1028
|
+
const _hoisted_2$D = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
class: "f-progress__text"
|
|
1031
1031
|
};
|
|
1032
|
-
const _sfc_main$
|
|
1032
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1033
1033
|
__name: "FProgress",
|
|
1034
1034
|
props: {
|
|
1035
1035
|
percent: {},
|
|
@@ -1041,7 +1041,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1041
1041
|
const props = __props;
|
|
1042
1042
|
const clampedPercent = computed(() => Math.min(100, Math.max(0, props.percent)));
|
|
1043
1043
|
return (_ctx, _cache) => {
|
|
1044
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1044
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
1045
1045
|
createElementVNode("div", {
|
|
1046
1046
|
class: "f-progress__track",
|
|
1047
1047
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -1054,17 +1054,17 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1054
1054
|
})
|
|
1055
1055
|
}, null, 4)
|
|
1056
1056
|
], 4),
|
|
1057
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1057
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$D, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1058
1058
|
]);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
const FProgress = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1063
|
-
const _hoisted_1$
|
|
1064
|
-
const _hoisted_2$
|
|
1065
|
-
const _hoisted_3$
|
|
1062
|
+
const FProgress = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1063
|
+
const _hoisted_1$H = { class: "f-tabs__nav-container" };
|
|
1064
|
+
const _hoisted_2$C = { class: "f-tabs__nav" };
|
|
1065
|
+
const _hoisted_3$B = ["onClick"];
|
|
1066
1066
|
const _hoisted_4$7 = { class: "f-tabs__label" };
|
|
1067
|
-
const _sfc_main$
|
|
1067
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1068
1068
|
__name: "FTabs",
|
|
1069
1069
|
props: {
|
|
1070
1070
|
tabs: {},
|
|
@@ -1097,8 +1097,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1097
1097
|
return openBlock(), createElementBlock("div", {
|
|
1098
1098
|
class: normalizeClass(["f-tabs", [`f-tabs--${_ctx.type}`]])
|
|
1099
1099
|
}, [
|
|
1100
|
-
createElementVNode("div", _hoisted_1$
|
|
1101
|
-
createElementVNode("div", _hoisted_2$
|
|
1100
|
+
createElementVNode("div", _hoisted_1$H, [
|
|
1101
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
1102
1102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1103
1103
|
return openBlock(), createElementBlock("div", {
|
|
1104
1104
|
key: tab.name,
|
|
@@ -1109,7 +1109,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1109
1109
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1110
1110
|
}, [
|
|
1111
1111
|
createElementVNode("span", _hoisted_4$7, toDisplayString(tab.label), 1)
|
|
1112
|
-
], 10, _hoisted_3$
|
|
1112
|
+
], 10, _hoisted_3$B);
|
|
1113
1113
|
}), 128))
|
|
1114
1114
|
])
|
|
1115
1115
|
]),
|
|
@@ -1127,17 +1127,17 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
|
-
const FTabs = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1131
|
-
const _hoisted_1$
|
|
1130
|
+
const FTabs = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
+
const _hoisted_1$G = {
|
|
1132
1132
|
class: "f-breadcrumb__current",
|
|
1133
1133
|
"aria-current": "page"
|
|
1134
1134
|
};
|
|
1135
|
-
const _hoisted_2$
|
|
1136
|
-
const _hoisted_3$
|
|
1135
|
+
const _hoisted_2$B = ["href"];
|
|
1136
|
+
const _hoisted_3$A = {
|
|
1137
1137
|
key: 3,
|
|
1138
1138
|
class: "f-breadcrumb__text"
|
|
1139
1139
|
};
|
|
1140
|
-
const _sfc_main$
|
|
1140
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1141
1141
|
__name: "FBreadcrumb",
|
|
1142
1142
|
props: {
|
|
1143
1143
|
items: { default: () => [] },
|
|
@@ -1165,12 +1165,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
item
|
|
1167
1167
|
}, () => [
|
|
1168
|
-
createElementVNode("span", _hoisted_1$
|
|
1168
|
+
createElementVNode("span", _hoisted_1$G, toDisplayString(item.label), 1)
|
|
1169
1169
|
], true) : item.href ? (openBlock(), createElementBlock("a", {
|
|
1170
1170
|
key: 2,
|
|
1171
1171
|
href: item.href,
|
|
1172
1172
|
class: "f-breadcrumb__link"
|
|
1173
|
-
}, toDisplayString(item.label), 9, _hoisted_2$
|
|
1173
|
+
}, toDisplayString(item.label), 9, _hoisted_2$B)) : (openBlock(), createElementBlock("span", _hoisted_3$A, toDisplayString(item.label), 1))
|
|
1174
1174
|
], 64);
|
|
1175
1175
|
}), 128))
|
|
1176
1176
|
]),
|
|
@@ -1180,8 +1180,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1184
|
-
const _sfc_main$
|
|
1183
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-55b15358"]]);
|
|
1184
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1185
1185
|
__name: "FCol",
|
|
1186
1186
|
props: {
|
|
1187
1187
|
span: { default: 24 },
|
|
@@ -1222,8 +1222,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
|
-
const FCol = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1226
|
-
const _sfc_main$
|
|
1225
|
+
const FCol = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-5a8b0cb4"]]);
|
|
1226
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1227
1227
|
__name: "FRow",
|
|
1228
1228
|
props: {
|
|
1229
1229
|
gutter: { default: 0 },
|
|
@@ -1276,14 +1276,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
|
-
const FRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1280
|
-
const _hoisted_1$
|
|
1281
|
-
const _hoisted_2$
|
|
1279
|
+
const FRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
+
const _hoisted_1$F = { class: "f-space__item" };
|
|
1281
|
+
const _hoisted_2$A = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
class: "f-space__split",
|
|
1284
1284
|
"aria-hidden": "true"
|
|
1285
1285
|
};
|
|
1286
|
-
const _sfc_main$
|
|
1286
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1287
1287
|
__name: "FSpace",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
direction: { default: "horizontal" },
|
|
@@ -1337,18 +1337,18 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1337
1337
|
}, [
|
|
1338
1338
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (child, index) => {
|
|
1339
1339
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
1340
|
-
createElementVNode("div", _hoisted_1$
|
|
1340
|
+
createElementVNode("div", _hoisted_1$F, [
|
|
1341
1341
|
(openBlock(), createBlock(resolveDynamicComponent(child)))
|
|
1342
1342
|
]),
|
|
1343
|
-
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1343
|
+
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$A, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
1344
1344
|
], 64);
|
|
1345
1345
|
}), 128))
|
|
1346
1346
|
], 4);
|
|
1347
1347
|
};
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
|
-
const FSpace = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1351
|
-
const _sfc_main$
|
|
1350
|
+
const FSpace = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-5fb3b1a0"]]);
|
|
1351
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1352
1352
|
__name: "FContainer",
|
|
1353
1353
|
props: {
|
|
1354
1354
|
gap: { default: 12 }
|
|
@@ -1368,8 +1368,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
|
-
const FContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1372
|
-
const _sfc_main$
|
|
1371
|
+
const FContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["__scopeId", "data-v-08450ddf"]]);
|
|
1372
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1373
1373
|
__name: "FDivider",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
color: {},
|
|
@@ -1396,9 +1396,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
|
-
const FDivider = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1400
|
-
const _hoisted_1$
|
|
1401
|
-
const _sfc_main$
|
|
1399
|
+
const FDivider = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
+
const _hoisted_1$E = ["src", "alt"];
|
|
1401
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1402
1402
|
__name: "FAvatar",
|
|
1403
1403
|
props: {
|
|
1404
1404
|
src: {},
|
|
@@ -1430,7 +1430,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1430
1430
|
key: 0,
|
|
1431
1431
|
src: _ctx.src,
|
|
1432
1432
|
alt: _ctx.alt
|
|
1433
|
-
}, null, 8, _hoisted_1$
|
|
1433
|
+
}, null, 8, _hoisted_1$E)) : (openBlock(), createBlock(FIcon$1, {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
size: 24
|
|
1436
1436
|
}, {
|
|
@@ -1443,14 +1443,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const FAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1447
|
-
const _hoisted_1$
|
|
1448
|
-
const _hoisted_2$
|
|
1449
|
-
const _hoisted_3$
|
|
1446
|
+
const FAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
+
const _hoisted_1$D = ["type", "disabled"];
|
|
1448
|
+
const _hoisted_2$z = { class: "f-button__inner" };
|
|
1449
|
+
const _hoisted_3$z = {
|
|
1450
1450
|
key: 0,
|
|
1451
1451
|
class: "f-loader"
|
|
1452
1452
|
};
|
|
1453
|
-
const _sfc_main$
|
|
1453
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1454
1454
|
__name: "FButton",
|
|
1455
1455
|
props: {
|
|
1456
1456
|
type: {},
|
|
@@ -1515,16 +1515,16 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1515
1515
|
disabled: unref(isDisabled),
|
|
1516
1516
|
style: normalizeStyle(unref(buttonStyle))
|
|
1517
1517
|
}, [
|
|
1518
|
-
createElementVNode("span", _hoisted_2$
|
|
1519
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1518
|
+
createElementVNode("span", _hoisted_2$z, [
|
|
1519
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$z)) : createCommentVNode("", true),
|
|
1520
1520
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1521
1521
|
])
|
|
1522
|
-
], 14, _hoisted_1$
|
|
1522
|
+
], 14, _hoisted_1$D);
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
|
-
const FButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1527
|
-
const _sfc_main$
|
|
1526
|
+
const FButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["__scopeId", "data-v-8ec1ff5a"]]);
|
|
1527
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1528
1528
|
__name: "FTypography",
|
|
1529
1529
|
props: {
|
|
1530
1530
|
color: { default: "" }
|
|
@@ -1546,8 +1546,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1546
1546
|
};
|
|
1547
1547
|
}
|
|
1548
1548
|
});
|
|
1549
|
-
const FTypography = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1550
|
-
const _sfc_main$
|
|
1549
|
+
const FTypography = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-50e044db"]]);
|
|
1550
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1551
1551
|
__name: "FText",
|
|
1552
1552
|
props: {
|
|
1553
1553
|
tag: { default: "span" },
|
|
@@ -1605,9 +1605,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
1607
|
});
|
|
1608
|
-
const FText = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1609
|
-
const _hoisted_1$
|
|
1610
|
-
const _sfc_main$
|
|
1608
|
+
const FText = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1609
|
+
const _hoisted_1$C = ["href", "target", "rel"];
|
|
1610
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1611
1611
|
__name: "FLink",
|
|
1612
1612
|
props: {
|
|
1613
1613
|
href: {},
|
|
@@ -1630,13 +1630,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1630
1630
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1631
1631
|
}, [
|
|
1632
1632
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1633
|
-
], 10, _hoisted_1$
|
|
1633
|
+
], 10, _hoisted_1$C);
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
});
|
|
1637
|
-
const FLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1638
|
-
const _hoisted_1$
|
|
1639
|
-
const _sfc_main$
|
|
1637
|
+
const FLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1638
|
+
const _hoisted_1$B = { class: "f-badge" };
|
|
1639
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1640
1640
|
__name: "FBadge",
|
|
1641
1641
|
props: {
|
|
1642
1642
|
value: {},
|
|
@@ -1665,7 +1665,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1665
1665
|
return map[props.placement];
|
|
1666
1666
|
});
|
|
1667
1667
|
return (_ctx, _cache) => {
|
|
1668
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1668
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
1669
1669
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1670
1670
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1671
1671
|
key: 0,
|
|
@@ -1676,8 +1676,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
|
-
const FBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1680
|
-
const _sfc_main$
|
|
1679
|
+
const FBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__scopeId", "data-v-be6947ff"]]);
|
|
1680
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1681
1681
|
__name: "FAffix",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
placement: { default: "top-right" },
|
|
@@ -1705,8 +1705,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
1707
|
});
|
|
1708
|
-
const FAffix = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1709
|
-
const _sfc_main$
|
|
1708
|
+
const FAffix = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-8506d679"]]);
|
|
1709
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1710
1710
|
__name: "FForm",
|
|
1711
1711
|
props: {
|
|
1712
1712
|
model: {},
|
|
@@ -1763,7 +1763,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
1765
|
});
|
|
1766
|
-
const FForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1766
|
+
const FForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-21f7de9b"]]);
|
|
1767
1767
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
1768
1768
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
1769
1769
|
for (let rule of ruleArray) {
|
|
@@ -1845,16 +1845,16 @@ const checkRange = (value, rule) => {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
return void 0;
|
|
1847
1847
|
};
|
|
1848
|
-
const _hoisted_1$
|
|
1848
|
+
const _hoisted_1$A = {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "star"
|
|
1851
1851
|
};
|
|
1852
|
-
const _hoisted_2$
|
|
1853
|
-
const _hoisted_3$
|
|
1852
|
+
const _hoisted_2$y = { class: "f-form-item__content" };
|
|
1853
|
+
const _hoisted_3$y = {
|
|
1854
1854
|
key: 0,
|
|
1855
1855
|
class: "f-form-item__error"
|
|
1856
1856
|
};
|
|
1857
|
-
const _sfc_main$
|
|
1857
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1858
1858
|
__name: "FFormItem",
|
|
1859
1859
|
props: {
|
|
1860
1860
|
label: {},
|
|
@@ -1920,14 +1920,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1920
1920
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
1921
1921
|
})
|
|
1922
1922
|
}, [
|
|
1923
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1923
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$A, "*")) : createCommentVNode("", true),
|
|
1924
1924
|
createTextVNode(" " + toDisplayString(_ctx.label) + ": ", 1)
|
|
1925
1925
|
], 4)) : createCommentVNode("", true),
|
|
1926
|
-
createElementVNode("div", _hoisted_2$
|
|
1926
|
+
createElementVNode("div", _hoisted_2$y, [
|
|
1927
1927
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1928
1928
|
createVNode(Transition, { name: "err-slide" }, {
|
|
1929
1929
|
default: withCtx(() => [
|
|
1930
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1930
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$y, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
1931
1931
|
]),
|
|
1932
1932
|
_: 1
|
|
1933
1933
|
})
|
|
@@ -1936,14 +1936,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
1938
|
});
|
|
1939
|
-
const FFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1940
|
-
const _hoisted_1$
|
|
1941
|
-
const _hoisted_2$
|
|
1942
|
-
const _hoisted_3$
|
|
1939
|
+
const FFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
1940
|
+
const _hoisted_1$z = { class: "f-checkbox__wrapper" };
|
|
1941
|
+
const _hoisted_2$x = ["checked", "disabled"];
|
|
1942
|
+
const _hoisted_3$x = {
|
|
1943
1943
|
key: 0,
|
|
1944
1944
|
class: "f-checkbox__label"
|
|
1945
1945
|
};
|
|
1946
|
-
const _sfc_main$
|
|
1946
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1947
1947
|
__name: "FCheckbox",
|
|
1948
1948
|
props: /* @__PURE__ */ mergeModels({
|
|
1949
1949
|
label: {},
|
|
@@ -1965,25 +1965,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1965
1965
|
return openBlock(), createElementBlock("label", {
|
|
1966
1966
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
1967
1967
|
}, [
|
|
1968
|
-
createElementVNode("span", _hoisted_1$
|
|
1968
|
+
createElementVNode("span", _hoisted_1$z, [
|
|
1969
1969
|
createElementVNode("input", {
|
|
1970
1970
|
type: "checkbox",
|
|
1971
1971
|
checked: modelValue.value,
|
|
1972
1972
|
disabled: _ctx.disabled,
|
|
1973
1973
|
onChange: handleChange
|
|
1974
|
-
}, null, 40, _hoisted_2$
|
|
1974
|
+
}, null, 40, _hoisted_2$x),
|
|
1975
1975
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
1976
1976
|
]),
|
|
1977
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1977
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
1978
1978
|
], 2);
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
});
|
|
1982
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1983
|
-
const _hoisted_1$
|
|
1984
|
-
const _hoisted_2$
|
|
1985
|
-
const _hoisted_3$
|
|
1986
|
-
const _sfc_main$
|
|
1982
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-633b283a"]]);
|
|
1983
|
+
const _hoisted_1$x = { class: "alert__body" };
|
|
1984
|
+
const _hoisted_2$v = { class: "alert__title" };
|
|
1985
|
+
const _hoisted_3$v = { class: "alert__content" };
|
|
1986
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1987
1987
|
__name: "FAlert",
|
|
1988
1988
|
props: {
|
|
1989
1989
|
type: { default: "info" },
|
|
@@ -2009,9 +2009,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2009
2009
|
]),
|
|
2010
2010
|
_: 1
|
|
2011
2011
|
}),
|
|
2012
|
-
createElementVNode("div", _hoisted_1$
|
|
2013
|
-
createElementVNode("h4", _hoisted_2$
|
|
2014
|
-
createElementVNode("div", _hoisted_3$
|
|
2012
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
2013
|
+
createElementVNode("h4", _hoisted_2$v, toDisplayString((_a = _ctx.title) != null ? _a : unref(config).label), 1),
|
|
2014
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
2015
2015
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2016
2016
|
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
2017
2017
|
], true)
|
|
@@ -2021,10 +2021,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
|
-
const FAlert = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2025
|
-
const _hoisted_1$
|
|
2026
|
-
const _hoisted_2$
|
|
2027
|
-
const _hoisted_3$
|
|
2024
|
+
const FAlert = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-f16678ef"]]);
|
|
2025
|
+
const _hoisted_1$t = { class: "f-editor__toolbar" };
|
|
2026
|
+
const _hoisted_2$r = { class: "f-editor__status" };
|
|
2027
|
+
const _hoisted_3$r = { class: "f-editor__lines" };
|
|
2028
2028
|
const _hoisted_4$6 = { class: "f-editor__code-wrapper" };
|
|
2029
2029
|
const _hoisted_5$6 = ["innerHTML"];
|
|
2030
2030
|
const _hoisted_6$5 = ["rows", "readonly", "placeholder"];
|
|
@@ -2032,7 +2032,7 @@ const LINE_HEIGHT_PX = 17.6;
|
|
|
2032
2032
|
const PADDING_TOP_PX = 12;
|
|
2033
2033
|
const MIN_BODY_HEIGHT = 180;
|
|
2034
2034
|
const HEAVY_LINE_THRESHOLD = 1500;
|
|
2035
|
-
const _sfc_main$
|
|
2035
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2036
2036
|
__name: "FEditor",
|
|
2037
2037
|
props: /* @__PURE__ */ mergeModels({
|
|
2038
2038
|
placeholder: {},
|
|
@@ -2198,9 +2198,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2198
2198
|
return openBlock(), createElementBlock("div", {
|
|
2199
2199
|
class: normalizeClass(["f-editor", { "f-editor--invalid": !unref(isJsonValid) }])
|
|
2200
2200
|
}, [
|
|
2201
|
-
createElementVNode("div", _hoisted_1$
|
|
2202
|
-
createElementVNode("span", _hoisted_2$
|
|
2203
|
-
createElementVNode("span", _hoisted_3$
|
|
2201
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
2202
|
+
createElementVNode("span", _hoisted_2$r, [
|
|
2203
|
+
createElementVNode("span", _hoisted_3$r, toDisplayString(unref(lineCount)) + " 行", 1),
|
|
2204
2204
|
unref(isHeavy) ? (openBlock(), createBlock(FTag, {
|
|
2205
2205
|
key: 0,
|
|
2206
2206
|
color: "orange",
|
|
@@ -2283,13 +2283,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
|
-
const FEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2287
|
-
const _hoisted_1$
|
|
2288
|
-
const _hoisted_2$
|
|
2286
|
+
const FEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-6d590649"]]);
|
|
2287
|
+
const _hoisted_1$s = { class: "f-table" };
|
|
2288
|
+
const _hoisted_2$a = {
|
|
2289
2289
|
key: 0,
|
|
2290
2290
|
class: "f-table__loading"
|
|
2291
2291
|
};
|
|
2292
|
-
const _hoisted_3$
|
|
2292
|
+
const _hoisted_3$a = { class: "f-table__inner" };
|
|
2293
2293
|
const _hoisted_4$5 = {
|
|
2294
2294
|
key: 0,
|
|
2295
2295
|
class: "f-table__col--index"
|
|
@@ -2317,7 +2317,7 @@ const _hoisted_14 = {
|
|
|
2317
2317
|
class: "f-table__spacer"
|
|
2318
2318
|
};
|
|
2319
2319
|
const _hoisted_15 = ["colspan"];
|
|
2320
|
-
const _sfc_main$
|
|
2320
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2321
2321
|
__name: "FTable",
|
|
2322
2322
|
props: {
|
|
2323
2323
|
data: {},
|
|
@@ -2381,8 +2381,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2381
2381
|
scrollTop.value = 0;
|
|
2382
2382
|
});
|
|
2383
2383
|
return (_ctx, _cache) => {
|
|
2384
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2385
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2384
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2385
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
2386
2386
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "spinner" }, null, -1)),
|
|
2387
2387
|
createElementVNode("span", null, toDisplayString(_ctx.loadingText), 1)
|
|
2388
2388
|
])) : createCommentVNode("", true),
|
|
@@ -2392,7 +2392,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2392
2392
|
ref: scrollEl,
|
|
2393
2393
|
onScroll
|
|
2394
2394
|
}, [
|
|
2395
|
-
createElementVNode("table", _hoisted_3$
|
|
2395
|
+
createElementVNode("table", _hoisted_3$a, [
|
|
2396
2396
|
createElementVNode("colgroup", null, [
|
|
2397
2397
|
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_4$5)) : createCommentVNode("", true),
|
|
2398
2398
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
@@ -2488,8 +2488,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
2490
|
});
|
|
2491
|
-
const FTable = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2492
|
-
const _sfc_main$
|
|
2491
|
+
const FTable = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-01724962"]]);
|
|
2492
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2493
2493
|
__name: "FDialog",
|
|
2494
2494
|
props: /* @__PURE__ */ mergeModels({
|
|
2495
2495
|
maskClosable: { type: Boolean, default: true },
|
|
@@ -2544,17 +2544,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2544
2544
|
};
|
|
2545
2545
|
}
|
|
2546
2546
|
});
|
|
2547
|
-
const FDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2548
|
-
const _hoisted_1$
|
|
2549
|
-
const _hoisted_2$
|
|
2550
|
-
const _hoisted_3$
|
|
2547
|
+
const FDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-31496822"]]);
|
|
2548
|
+
const _hoisted_1$b = { class: "f-upload" };
|
|
2549
|
+
const _hoisted_2$8 = { class: "f-upload__label" };
|
|
2550
|
+
const _hoisted_3$8 = ["accept"];
|
|
2551
2551
|
const _hoisted_4$4 = {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
class: "f-upload__file-item"
|
|
2554
2554
|
};
|
|
2555
2555
|
const _hoisted_5$4 = { class: "f-upload__file-info" };
|
|
2556
2556
|
const _hoisted_6$3 = { class: "f-upload__file-name" };
|
|
2557
|
-
const _sfc_main$
|
|
2557
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2558
2558
|
__name: "FUpload",
|
|
2559
2559
|
props: /* @__PURE__ */ mergeModels({
|
|
2560
2560
|
accept: {},
|
|
@@ -2605,20 +2605,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2605
2605
|
emit("change", f);
|
|
2606
2606
|
};
|
|
2607
2607
|
return (_ctx, _cache) => {
|
|
2608
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2608
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
2609
2609
|
createElementVNode("div", {
|
|
2610
2610
|
class: normalizeClass(["f-upload__zone", { "f-upload--drag": unref(dragActive) }]),
|
|
2611
2611
|
onDragover: onDragOver,
|
|
2612
2612
|
onDragleave: onDragLeave,
|
|
2613
2613
|
onDrop
|
|
2614
2614
|
}, [
|
|
2615
|
-
createElementVNode("label", _hoisted_2$
|
|
2615
|
+
createElementVNode("label", _hoisted_2$8, [
|
|
2616
2616
|
createElementVNode("input", {
|
|
2617
2617
|
type: "file",
|
|
2618
2618
|
accept: _ctx.accept,
|
|
2619
2619
|
class: "f-upload__input",
|
|
2620
2620
|
onChange: onFileChange
|
|
2621
|
-
}, null, 40, _hoisted_3$
|
|
2621
|
+
}, null, 40, _hoisted_3$8),
|
|
2622
2622
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2623
2623
|
createVNode(FIcon$1, { size: 40 }, {
|
|
2624
2624
|
default: withCtx(() => [
|
|
@@ -2662,12 +2662,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
|
-
const FUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2666
|
-
const _sfc_main$
|
|
2665
|
+
const FUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-07b95a32"]]);
|
|
2666
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2667
2667
|
__name: "FButtonGroup",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
size: { default: "normal" },
|
|
2670
|
-
type: {
|
|
2670
|
+
type: {},
|
|
2671
2671
|
disabled: { type: Boolean },
|
|
2672
2672
|
vertical: { type: Boolean, default: false }
|
|
2673
2673
|
},
|
|
@@ -2684,9 +2684,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2688
|
-
const _hoisted_1$
|
|
2689
|
-
const _sfc_main$
|
|
2687
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-62561657"]]);
|
|
2688
|
+
const _hoisted_1$9 = { class: "f-collapse" };
|
|
2689
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2690
2690
|
__name: "FCollapse",
|
|
2691
2691
|
props: /* @__PURE__ */ mergeModels({
|
|
2692
2692
|
accordion: { type: Boolean, default: false }
|
|
@@ -2726,16 +2726,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2726
2726
|
})
|
|
2727
2727
|
);
|
|
2728
2728
|
return (_ctx, _cache) => {
|
|
2729
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2729
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2730
2730
|
renderSlot(_ctx.$slots, "default")
|
|
2731
2731
|
]);
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
2734
2734
|
});
|
|
2735
|
-
const _hoisted_1$
|
|
2736
|
-
const _hoisted_2$
|
|
2737
|
-
const _hoisted_3$
|
|
2738
|
-
const _sfc_main$
|
|
2735
|
+
const _hoisted_1$8 = { class: "f-collapse-item__header-title" };
|
|
2736
|
+
const _hoisted_2$7 = { class: "f-collapse-item__wrapper" };
|
|
2737
|
+
const _hoisted_3$7 = { class: "f-collapse-item__content" };
|
|
2738
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2739
2739
|
__name: "FCollapseItem",
|
|
2740
2740
|
props: {
|
|
2741
2741
|
name: {},
|
|
@@ -2779,7 +2779,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2779
2779
|
onClick: handleHeaderClick
|
|
2780
2780
|
}, [
|
|
2781
2781
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2782
|
-
createElementVNode("span", _hoisted_1$
|
|
2782
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(_ctx.title), 1)
|
|
2783
2783
|
]),
|
|
2784
2784
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
2785
2785
|
class: "f-collapse-item__icon",
|
|
@@ -2803,8 +2803,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2803
2803
|
onLeave
|
|
2804
2804
|
}, {
|
|
2805
2805
|
default: withCtx(() => [
|
|
2806
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
2807
|
-
createElementVNode("div", _hoisted_3$
|
|
2806
|
+
withDirectives(createElementVNode("div", _hoisted_2$7, [
|
|
2807
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
2808
2808
|
renderSlot(_ctx.$slots, "default")
|
|
2809
2809
|
])
|
|
2810
2810
|
], 512), [
|
|
@@ -2817,12 +2817,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2817
2817
|
};
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
|
-
const _hoisted_1$
|
|
2821
|
-
const _hoisted_2$
|
|
2820
|
+
const _hoisted_1$7 = { class: "f-color-picker__swatch" };
|
|
2821
|
+
const _hoisted_2$6 = {
|
|
2822
2822
|
key: 0,
|
|
2823
2823
|
class: "f-color-picker__panel"
|
|
2824
2824
|
};
|
|
2825
|
-
const _hoisted_3$
|
|
2825
|
+
const _hoisted_3$6 = { class: "f-color-picker__sliders" };
|
|
2826
2826
|
const _hoisted_4$3 = { class: "f-color-picker__slider-group" };
|
|
2827
2827
|
const _hoisted_5$3 = ["value"];
|
|
2828
2828
|
const _hoisted_6$2 = {
|
|
@@ -2831,7 +2831,7 @@ const _hoisted_6$2 = {
|
|
|
2831
2831
|
};
|
|
2832
2832
|
const _hoisted_7 = ["onClick"];
|
|
2833
2833
|
const hueBackground = "linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)";
|
|
2834
|
-
const _sfc_main$
|
|
2834
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2835
2835
|
__name: "FColorPicker",
|
|
2836
2836
|
props: /* @__PURE__ */ mergeModels({
|
|
2837
2837
|
showAlpha: { type: Boolean, default: false },
|
|
@@ -3057,7 +3057,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3057
3057
|
class: "f-color-picker__trigger",
|
|
3058
3058
|
onClick: togglePanel
|
|
3059
3059
|
}, [
|
|
3060
|
-
createElementVNode("div", _hoisted_1$
|
|
3060
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
3061
3061
|
createElementVNode("span", {
|
|
3062
3062
|
class: "f-color-picker__swatch-color",
|
|
3063
3063
|
style: normalizeStyle({ background: `rgba(${unref(previewRgb).r}, ${unref(previewRgb).g}, ${unref(previewRgb).b}, ${unref(hsva).a})` })
|
|
@@ -3066,7 +3066,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3066
3066
|
]),
|
|
3067
3067
|
createVNode(Transition, { name: "f-color-picker-fade" }, {
|
|
3068
3068
|
default: withCtx(() => [
|
|
3069
|
-
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3069
|
+
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
3070
3070
|
createElementVNode("div", {
|
|
3071
3071
|
ref_key: "panelRef",
|
|
3072
3072
|
ref: panelRef,
|
|
@@ -3079,7 +3079,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3079
3079
|
style: normalizeStyle({ left: `${unref(hsva).s}%`, top: `${100 - unref(hsva).v}%` })
|
|
3080
3080
|
}, null, 4)
|
|
3081
3081
|
], 36),
|
|
3082
|
-
createElementVNode("div", _hoisted_3$
|
|
3082
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
3083
3083
|
createElementVNode("div", _hoisted_4$3, [
|
|
3084
3084
|
createElementVNode("div", {
|
|
3085
3085
|
ref_key: "hueRef",
|
|
@@ -3140,9 +3140,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
3142
|
});
|
|
3143
|
-
const _hoisted_1$
|
|
3144
|
-
const _hoisted_2$
|
|
3145
|
-
const _hoisted_3$
|
|
3143
|
+
const _hoisted_1$6 = { class: "f-empty" };
|
|
3144
|
+
const _hoisted_2$5 = ["src"];
|
|
3145
|
+
const _hoisted_3$5 = {
|
|
3146
3146
|
key: 1,
|
|
3147
3147
|
viewBox: "0 0 160 160",
|
|
3148
3148
|
class: "f-empty__image-default"
|
|
@@ -3152,7 +3152,7 @@ const _hoisted_5$2 = {
|
|
|
3152
3152
|
key: 0,
|
|
3153
3153
|
class: "f-empty__extra"
|
|
3154
3154
|
};
|
|
3155
|
-
const _sfc_main$
|
|
3155
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3156
3156
|
__name: "FEmpty",
|
|
3157
3157
|
props: {
|
|
3158
3158
|
description: { default: "暂无数据" },
|
|
@@ -3161,7 +3161,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3161
3161
|
},
|
|
3162
3162
|
setup(__props) {
|
|
3163
3163
|
return (_ctx, _cache) => {
|
|
3164
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3164
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
3165
3165
|
createElementVNode("div", {
|
|
3166
3166
|
class: "f-empty__image",
|
|
3167
3167
|
style: normalizeStyle({ width: `${_ctx.imageSize}px`, height: `${_ctx.imageSize}px` })
|
|
@@ -3172,7 +3172,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3172
3172
|
src: _ctx.image,
|
|
3173
3173
|
class: "f-empty__image-img",
|
|
3174
3174
|
alt: ""
|
|
3175
|
-
}, null, 8, _hoisted_2$
|
|
3175
|
+
}, null, 8, _hoisted_2$5)) : (openBlock(), createElementBlock("svg", _hoisted_3$5, _cache[0] || (_cache[0] = [
|
|
3176
3176
|
createStaticVNode('<ellipse cx="80" cy="132" rx="46" ry="8" fill="currentColor" opacity="0.08"></ellipse><path d="M40 60 L120 60 L128 128 L32 128 Z" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><path d="M40 60 L58 32 L102 32 L120 60" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><line x1="32" y1="88" x2="128" y2="88" stroke="currentColor" stroke-width="3" opacity="0.35"></line><path d="M64 88 Q80 106 96 88" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" opacity="0.5"></path>', 5)
|
|
3177
3177
|
])))
|
|
3178
3178
|
])
|
|
@@ -3189,13 +3189,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3189
3189
|
};
|
|
3190
3190
|
}
|
|
3191
3191
|
});
|
|
3192
|
-
const _hoisted_1$
|
|
3193
|
-
const _hoisted_2$
|
|
3194
|
-
const _hoisted_3$
|
|
3192
|
+
const _hoisted_1$5 = { class: "f-slider__mark-label" };
|
|
3193
|
+
const _hoisted_2$4 = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"];
|
|
3194
|
+
const _hoisted_3$4 = {
|
|
3195
3195
|
key: 0,
|
|
3196
3196
|
class: "f-slider__tooltip"
|
|
3197
3197
|
};
|
|
3198
|
-
const _sfc_main$
|
|
3198
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3199
3199
|
__name: "FSlider",
|
|
3200
3200
|
props: /* @__PURE__ */ mergeModels({
|
|
3201
3201
|
min: { default: 0 },
|
|
@@ -3369,7 +3369,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3369
3369
|
style: normalizeStyle(_ctx.vertical ? { bottom: `${mark.percent}%` } : { left: `${mark.percent}%` })
|
|
3370
3370
|
}, [
|
|
3371
3371
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-slider__mark-dot" }, null, -1)),
|
|
3372
|
-
createElementVNode("span", _hoisted_1$
|
|
3372
|
+
createElementVNode("span", _hoisted_1$5, toDisplayString(mark.label), 1)
|
|
3373
3373
|
], 4);
|
|
3374
3374
|
}), 128)),
|
|
3375
3375
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
@@ -3389,18 +3389,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3389
3389
|
}, [
|
|
3390
3390
|
createVNode(Transition, { name: "f-slider-tooltip-fade" }, {
|
|
3391
3391
|
default: withCtx(() => [
|
|
3392
|
-
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3392
|
+
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$4, toDisplayString(value), 1)) : createCommentVNode("", true)
|
|
3393
3393
|
]),
|
|
3394
3394
|
_: 2
|
|
3395
3395
|
}, 1024)
|
|
3396
|
-
], 46, _hoisted_2$
|
|
3396
|
+
], 46, _hoisted_2$4);
|
|
3397
3397
|
}), 128))
|
|
3398
3398
|
], 544)
|
|
3399
3399
|
], 2);
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
3402
|
});
|
|
3403
|
-
const _sfc_main$
|
|
3403
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3404
3404
|
__name: "FScrollbar",
|
|
3405
3405
|
props: {
|
|
3406
3406
|
height: { default: "" },
|
|
@@ -3588,16 +3588,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
3590
|
});
|
|
3591
|
-
const _hoisted_1$
|
|
3592
|
-
const _hoisted_2$
|
|
3593
|
-
const _hoisted_3$
|
|
3591
|
+
const _hoisted_1$4 = ["disabled"];
|
|
3592
|
+
const _hoisted_2$3 = ["value", "disabled", "placeholder"];
|
|
3593
|
+
const _hoisted_3$3 = ["disabled"];
|
|
3594
3594
|
const _hoisted_4$1 = {
|
|
3595
3595
|
key: 2,
|
|
3596
3596
|
class: "f-input-number__stack"
|
|
3597
3597
|
};
|
|
3598
3598
|
const _hoisted_5$1 = ["disabled"];
|
|
3599
3599
|
const _hoisted_6$1 = ["disabled"];
|
|
3600
|
-
const _sfc_main$
|
|
3600
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3601
3601
|
__name: "FInputNumber",
|
|
3602
3602
|
props: /* @__PURE__ */ mergeModels({
|
|
3603
3603
|
min: { default: -Infinity },
|
|
@@ -3741,7 +3741,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3741
3741
|
"stroke-linecap": "round"
|
|
3742
3742
|
})
|
|
3743
3743
|
], -1)
|
|
3744
|
-
]), 40, _hoisted_1$
|
|
3744
|
+
]), 40, _hoisted_1$4)) : createCommentVNode("", true),
|
|
3745
3745
|
createElementVNode("input", {
|
|
3746
3746
|
ref_key: "inputRef",
|
|
3747
3747
|
ref: inputRef,
|
|
@@ -3756,7 +3756,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3756
3756
|
onBlur: handleBlur,
|
|
3757
3757
|
onKeydown: handleKeydown,
|
|
3758
3758
|
onWheel: handleWheel
|
|
3759
|
-
}, null, 40, _hoisted_2$
|
|
3759
|
+
}, null, 40, _hoisted_2$3),
|
|
3760
3760
|
_ctx.controls && _ctx.controlsPosition === "both" ? (openBlock(), createElementBlock("button", {
|
|
3761
3761
|
key: 1,
|
|
3762
3762
|
type: "button",
|
|
@@ -3779,7 +3779,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3779
3779
|
"stroke-linecap": "round"
|
|
3780
3780
|
})
|
|
3781
3781
|
], -1)
|
|
3782
|
-
]), 40, _hoisted_3$
|
|
3782
|
+
]), 40, _hoisted_3$3)) : createCommentVNode("", true),
|
|
3783
3783
|
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
3784
3784
|
createElementVNode("button", {
|
|
3785
3785
|
type: "button",
|
|
@@ -3835,6 +3835,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3835
3835
|
}
|
|
3836
3836
|
});
|
|
3837
3837
|
var __defProp2 = Object.defineProperty;
|
|
3838
|
+
var __defProps2 = Object.defineProperties;
|
|
3839
|
+
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
3838
3840
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
3839
3841
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
3840
3842
|
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
@@ -3850,7 +3852,8 @@ var __spreadValues2 = (a, b) => {
|
|
|
3850
3852
|
}
|
|
3851
3853
|
return a;
|
|
3852
3854
|
};
|
|
3853
|
-
|
|
3855
|
+
var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
|
|
3856
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
3854
3857
|
__name: "FIcon",
|
|
3855
3858
|
props: {
|
|
3856
3859
|
color: {},
|
|
@@ -3881,10 +3884,10 @@ const _export_sfc = (sfc, props) => {
|
|
|
3881
3884
|
}
|
|
3882
3885
|
return target;
|
|
3883
3886
|
};
|
|
3884
|
-
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3885
|
-
const _hoisted_1$
|
|
3886
|
-
const _hoisted_2$
|
|
3887
|
-
const _hoisted_3$
|
|
3887
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-baf7de0c"]]);
|
|
3888
|
+
const _hoisted_1$y = { class: "f-checkbox__wrapper" };
|
|
3889
|
+
const _hoisted_2$w = ["checked", "disabled"];
|
|
3890
|
+
const _hoisted_3$w = {
|
|
3888
3891
|
key: 0,
|
|
3889
3892
|
class: "f-checkbox__label"
|
|
3890
3893
|
};
|
|
@@ -3910,16 +3913,16 @@ const _hoisted_3$o = {
|
|
|
3910
3913
|
return openBlock(), createElementBlock("label", {
|
|
3911
3914
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
3912
3915
|
}, [
|
|
3913
|
-
createElementVNode("span", _hoisted_1$
|
|
3916
|
+
createElementVNode("span", _hoisted_1$y, [
|
|
3914
3917
|
createElementVNode("input", {
|
|
3915
3918
|
type: "checkbox",
|
|
3916
3919
|
checked: modelValue.value,
|
|
3917
3920
|
disabled: _ctx.disabled,
|
|
3918
3921
|
onChange: handleChange
|
|
3919
|
-
}, null, 40, _hoisted_2$
|
|
3922
|
+
}, null, 40, _hoisted_2$w),
|
|
3920
3923
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
3921
3924
|
]),
|
|
3922
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3925
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3923
3926
|
], 2);
|
|
3924
3927
|
};
|
|
3925
3928
|
}
|
|
@@ -3995,9 +3998,9 @@ var __spreadValues22 = (a, b) => {
|
|
|
3995
3998
|
}
|
|
3996
3999
|
return a;
|
|
3997
4000
|
};
|
|
3998
|
-
const _hoisted_1$
|
|
3999
|
-
const _hoisted_2$
|
|
4000
|
-
const _hoisted_3$
|
|
4001
|
+
const _hoisted_1$w = { class: "f-checkbox__wrapper" };
|
|
4002
|
+
const _hoisted_2$u = ["checked", "disabled"];
|
|
4003
|
+
const _hoisted_3$u = {
|
|
4001
4004
|
key: 0,
|
|
4002
4005
|
class: "f-checkbox__label"
|
|
4003
4006
|
};
|
|
@@ -4023,16 +4026,16 @@ const _hoisted_3$n = {
|
|
|
4023
4026
|
return openBlock(), createElementBlock("label", {
|
|
4024
4027
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4025
4028
|
}, [
|
|
4026
|
-
createElementVNode("span", _hoisted_1$
|
|
4029
|
+
createElementVNode("span", _hoisted_1$w, [
|
|
4027
4030
|
createElementVNode("input", {
|
|
4028
4031
|
type: "checkbox",
|
|
4029
4032
|
checked: modelValue.value,
|
|
4030
4033
|
disabled: _ctx.disabled,
|
|
4031
4034
|
onChange: handleChange
|
|
4032
|
-
}, null, 40, _hoisted_2$
|
|
4035
|
+
}, null, 40, _hoisted_2$u),
|
|
4033
4036
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4034
4037
|
]),
|
|
4035
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4038
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$u, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4036
4039
|
], 2);
|
|
4037
4040
|
};
|
|
4038
4041
|
}
|
|
@@ -4108,9 +4111,9 @@ var __spreadValues222 = (a, b) => {
|
|
|
4108
4111
|
}
|
|
4109
4112
|
return a;
|
|
4110
4113
|
};
|
|
4111
|
-
const _hoisted_1$
|
|
4112
|
-
const _hoisted_2$
|
|
4113
|
-
const _hoisted_3$
|
|
4114
|
+
const _hoisted_1$v = { class: "f-checkbox__wrapper" };
|
|
4115
|
+
const _hoisted_2$t = ["checked", "disabled"];
|
|
4116
|
+
const _hoisted_3$t = {
|
|
4114
4117
|
key: 0,
|
|
4115
4118
|
class: "f-checkbox__label"
|
|
4116
4119
|
};
|
|
@@ -4136,16 +4139,16 @@ const _hoisted_3$m = {
|
|
|
4136
4139
|
return openBlock(), createElementBlock("label", {
|
|
4137
4140
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4138
4141
|
}, [
|
|
4139
|
-
createElementVNode("span", _hoisted_1$
|
|
4142
|
+
createElementVNode("span", _hoisted_1$v, [
|
|
4140
4143
|
createElementVNode("input", {
|
|
4141
4144
|
type: "checkbox",
|
|
4142
4145
|
checked: modelValue.value,
|
|
4143
4146
|
disabled: _ctx.disabled,
|
|
4144
4147
|
onChange: handleChange
|
|
4145
|
-
}, null, 40, _hoisted_2$
|
|
4148
|
+
}, null, 40, _hoisted_2$t),
|
|
4146
4149
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4147
4150
|
]),
|
|
4148
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4151
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$t, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4149
4152
|
], 2);
|
|
4150
4153
|
};
|
|
4151
4154
|
}
|
|
@@ -4221,9 +4224,9 @@ var __spreadValues2222 = (a, b) => {
|
|
|
4221
4224
|
}
|
|
4222
4225
|
return a;
|
|
4223
4226
|
};
|
|
4224
|
-
const _hoisted_1$
|
|
4225
|
-
const _hoisted_2$
|
|
4226
|
-
const _hoisted_3$
|
|
4227
|
+
const _hoisted_1$u = { class: "f-checkbox__wrapper" };
|
|
4228
|
+
const _hoisted_2$s = ["checked", "disabled"];
|
|
4229
|
+
const _hoisted_3$s = {
|
|
4227
4230
|
key: 0,
|
|
4228
4231
|
class: "f-checkbox__label"
|
|
4229
4232
|
};
|
|
@@ -4249,16 +4252,16 @@ const _hoisted_3$l = {
|
|
|
4249
4252
|
return openBlock(), createElementBlock("label", {
|
|
4250
4253
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4251
4254
|
}, [
|
|
4252
|
-
createElementVNode("span", _hoisted_1$
|
|
4255
|
+
createElementVNode("span", _hoisted_1$u, [
|
|
4253
4256
|
createElementVNode("input", {
|
|
4254
4257
|
type: "checkbox",
|
|
4255
4258
|
checked: modelValue.value,
|
|
4256
4259
|
disabled: _ctx.disabled,
|
|
4257
4260
|
onChange: handleChange
|
|
4258
|
-
}, null, 40, _hoisted_2$
|
|
4261
|
+
}, null, 40, _hoisted_2$s),
|
|
4259
4262
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4260
4263
|
]),
|
|
4261
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4264
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$s, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4262
4265
|
], 2);
|
|
4263
4266
|
};
|
|
4264
4267
|
}
|
|
@@ -4334,9 +4337,9 @@ var __spreadValues22222 = (a, b) => {
|
|
|
4334
4337
|
}
|
|
4335
4338
|
return a;
|
|
4336
4339
|
};
|
|
4337
|
-
const _hoisted_1$
|
|
4338
|
-
const _hoisted_2$
|
|
4339
|
-
const _hoisted_3$
|
|
4340
|
+
const _hoisted_1$r = { class: "f-checkbox__wrapper" };
|
|
4341
|
+
const _hoisted_2$q = ["checked", "disabled"];
|
|
4342
|
+
const _hoisted_3$q = {
|
|
4340
4343
|
key: 0,
|
|
4341
4344
|
class: "f-checkbox__label"
|
|
4342
4345
|
};
|
|
@@ -4362,16 +4365,16 @@ const _hoisted_3$k = {
|
|
|
4362
4365
|
return openBlock(), createElementBlock("label", {
|
|
4363
4366
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4364
4367
|
}, [
|
|
4365
|
-
createElementVNode("span", _hoisted_1$
|
|
4368
|
+
createElementVNode("span", _hoisted_1$r, [
|
|
4366
4369
|
createElementVNode("input", {
|
|
4367
4370
|
type: "checkbox",
|
|
4368
4371
|
checked: modelValue.value,
|
|
4369
4372
|
disabled: _ctx.disabled,
|
|
4370
4373
|
onChange: handleChange
|
|
4371
|
-
}, null, 40, _hoisted_2$
|
|
4374
|
+
}, null, 40, _hoisted_2$q),
|
|
4372
4375
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4373
4376
|
]),
|
|
4374
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4377
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4375
4378
|
], 2);
|
|
4376
4379
|
};
|
|
4377
4380
|
}
|
|
@@ -4447,9 +4450,9 @@ var __spreadValues222222 = (a, b) => {
|
|
|
4447
4450
|
}
|
|
4448
4451
|
return a;
|
|
4449
4452
|
};
|
|
4450
|
-
const _hoisted_1$
|
|
4451
|
-
const _hoisted_2$
|
|
4452
|
-
const _hoisted_3$
|
|
4453
|
+
const _hoisted_1$q = { class: "f-checkbox__wrapper" };
|
|
4454
|
+
const _hoisted_2$p = ["checked", "disabled"];
|
|
4455
|
+
const _hoisted_3$p = {
|
|
4453
4456
|
key: 0,
|
|
4454
4457
|
class: "f-checkbox__label"
|
|
4455
4458
|
};
|
|
@@ -4475,16 +4478,16 @@ const _hoisted_3$j = {
|
|
|
4475
4478
|
return openBlock(), createElementBlock("label", {
|
|
4476
4479
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4477
4480
|
}, [
|
|
4478
|
-
createElementVNode("span", _hoisted_1$
|
|
4481
|
+
createElementVNode("span", _hoisted_1$q, [
|
|
4479
4482
|
createElementVNode("input", {
|
|
4480
4483
|
type: "checkbox",
|
|
4481
4484
|
checked: modelValue.value,
|
|
4482
4485
|
disabled: _ctx.disabled,
|
|
4483
4486
|
onChange: handleChange
|
|
4484
|
-
}, null, 40, _hoisted_2$
|
|
4487
|
+
}, null, 40, _hoisted_2$p),
|
|
4485
4488
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4486
4489
|
]),
|
|
4487
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4490
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4488
4491
|
], 2);
|
|
4489
4492
|
};
|
|
4490
4493
|
}
|
|
@@ -4560,9 +4563,9 @@ var __spreadValues2222222 = (a, b) => {
|
|
|
4560
4563
|
}
|
|
4561
4564
|
return a;
|
|
4562
4565
|
};
|
|
4563
|
-
const _hoisted_1$
|
|
4564
|
-
const _hoisted_2$
|
|
4565
|
-
const _hoisted_3$
|
|
4566
|
+
const _hoisted_1$p = { class: "f-checkbox__wrapper" };
|
|
4567
|
+
const _hoisted_2$o = ["checked", "disabled"];
|
|
4568
|
+
const _hoisted_3$o = {
|
|
4566
4569
|
key: 0,
|
|
4567
4570
|
class: "f-checkbox__label"
|
|
4568
4571
|
};
|
|
@@ -4588,16 +4591,16 @@ const _hoisted_3$i = {
|
|
|
4588
4591
|
return openBlock(), createElementBlock("label", {
|
|
4589
4592
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4590
4593
|
}, [
|
|
4591
|
-
createElementVNode("span", _hoisted_1$
|
|
4594
|
+
createElementVNode("span", _hoisted_1$p, [
|
|
4592
4595
|
createElementVNode("input", {
|
|
4593
4596
|
type: "checkbox",
|
|
4594
4597
|
checked: modelValue.value,
|
|
4595
4598
|
disabled: _ctx.disabled,
|
|
4596
4599
|
onChange: handleChange
|
|
4597
|
-
}, null, 40, _hoisted_2$
|
|
4600
|
+
}, null, 40, _hoisted_2$o),
|
|
4598
4601
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4599
4602
|
]),
|
|
4600
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4603
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4601
4604
|
], 2);
|
|
4602
4605
|
};
|
|
4603
4606
|
}
|
|
@@ -4673,9 +4676,9 @@ var __spreadValues22222222 = (a, b) => {
|
|
|
4673
4676
|
}
|
|
4674
4677
|
return a;
|
|
4675
4678
|
};
|
|
4676
|
-
const _hoisted_1$
|
|
4677
|
-
const _hoisted_2$
|
|
4678
|
-
const _hoisted_3$
|
|
4679
|
+
const _hoisted_1$o = { class: "f-checkbox__wrapper" };
|
|
4680
|
+
const _hoisted_2$n = ["checked", "disabled"];
|
|
4681
|
+
const _hoisted_3$n = {
|
|
4679
4682
|
key: 0,
|
|
4680
4683
|
class: "f-checkbox__label"
|
|
4681
4684
|
};
|
|
@@ -4701,16 +4704,16 @@ const _hoisted_3$h = {
|
|
|
4701
4704
|
return openBlock(), createElementBlock("label", {
|
|
4702
4705
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4703
4706
|
}, [
|
|
4704
|
-
createElementVNode("span", _hoisted_1$
|
|
4707
|
+
createElementVNode("span", _hoisted_1$o, [
|
|
4705
4708
|
createElementVNode("input", {
|
|
4706
4709
|
type: "checkbox",
|
|
4707
4710
|
checked: modelValue.value,
|
|
4708
4711
|
disabled: _ctx.disabled,
|
|
4709
4712
|
onChange: handleChange
|
|
4710
|
-
}, null, 40, _hoisted_2$
|
|
4713
|
+
}, null, 40, _hoisted_2$n),
|
|
4711
4714
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4712
4715
|
]),
|
|
4713
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4716
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4714
4717
|
], 2);
|
|
4715
4718
|
};
|
|
4716
4719
|
}
|
|
@@ -4786,9 +4789,9 @@ var __spreadValues222222222 = (a, b) => {
|
|
|
4786
4789
|
}
|
|
4787
4790
|
return a;
|
|
4788
4791
|
};
|
|
4789
|
-
const _hoisted_1$
|
|
4790
|
-
const _hoisted_2$
|
|
4791
|
-
const _hoisted_3$
|
|
4792
|
+
const _hoisted_1$n = { class: "f-checkbox__wrapper" };
|
|
4793
|
+
const _hoisted_2$m = ["checked", "disabled"];
|
|
4794
|
+
const _hoisted_3$m = {
|
|
4792
4795
|
key: 0,
|
|
4793
4796
|
class: "f-checkbox__label"
|
|
4794
4797
|
};
|
|
@@ -4814,16 +4817,16 @@ const _hoisted_3$g = {
|
|
|
4814
4817
|
return openBlock(), createElementBlock("label", {
|
|
4815
4818
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4816
4819
|
}, [
|
|
4817
|
-
createElementVNode("span", _hoisted_1$
|
|
4820
|
+
createElementVNode("span", _hoisted_1$n, [
|
|
4818
4821
|
createElementVNode("input", {
|
|
4819
4822
|
type: "checkbox",
|
|
4820
4823
|
checked: modelValue.value,
|
|
4821
4824
|
disabled: _ctx.disabled,
|
|
4822
4825
|
onChange: handleChange
|
|
4823
|
-
}, null, 40, _hoisted_2$
|
|
4826
|
+
}, null, 40, _hoisted_2$m),
|
|
4824
4827
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4825
4828
|
]),
|
|
4826
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4829
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4827
4830
|
], 2);
|
|
4828
4831
|
};
|
|
4829
4832
|
}
|
|
@@ -4899,9 +4902,9 @@ var __spreadValues2222222222 = (a, b) => {
|
|
|
4899
4902
|
}
|
|
4900
4903
|
return a;
|
|
4901
4904
|
};
|
|
4902
|
-
const _hoisted_1$
|
|
4903
|
-
const _hoisted_2$
|
|
4904
|
-
const _hoisted_3$
|
|
4905
|
+
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
4906
|
+
const _hoisted_2$l = ["checked", "disabled"];
|
|
4907
|
+
const _hoisted_3$l = {
|
|
4905
4908
|
key: 0,
|
|
4906
4909
|
class: "f-checkbox__label"
|
|
4907
4910
|
};
|
|
@@ -4927,16 +4930,16 @@ const _hoisted_3$f = {
|
|
|
4927
4930
|
return openBlock(), createElementBlock("label", {
|
|
4928
4931
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4929
4932
|
}, [
|
|
4930
|
-
createElementVNode("span", _hoisted_1$
|
|
4933
|
+
createElementVNode("span", _hoisted_1$m, [
|
|
4931
4934
|
createElementVNode("input", {
|
|
4932
4935
|
type: "checkbox",
|
|
4933
4936
|
checked: modelValue.value,
|
|
4934
4937
|
disabled: _ctx.disabled,
|
|
4935
4938
|
onChange: handleChange
|
|
4936
|
-
}, null, 40, _hoisted_2$
|
|
4939
|
+
}, null, 40, _hoisted_2$l),
|
|
4937
4940
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4938
4941
|
]),
|
|
4939
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4942
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4940
4943
|
], 2);
|
|
4941
4944
|
};
|
|
4942
4945
|
}
|
|
@@ -5012,9 +5015,9 @@ var __spreadValues22222222222 = (a, b) => {
|
|
|
5012
5015
|
}
|
|
5013
5016
|
return a;
|
|
5014
5017
|
};
|
|
5015
|
-
const _hoisted_1$
|
|
5016
|
-
const _hoisted_2$
|
|
5017
|
-
const _hoisted_3$
|
|
5018
|
+
const _hoisted_1$l = { class: "f-checkbox__wrapper" };
|
|
5019
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
5020
|
+
const _hoisted_3$k = {
|
|
5018
5021
|
key: 0,
|
|
5019
5022
|
class: "f-checkbox__label"
|
|
5020
5023
|
};
|
|
@@ -5040,16 +5043,16 @@ const _hoisted_3$e = {
|
|
|
5040
5043
|
return openBlock(), createElementBlock("label", {
|
|
5041
5044
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5042
5045
|
}, [
|
|
5043
|
-
createElementVNode("span", _hoisted_1$
|
|
5046
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
5044
5047
|
createElementVNode("input", {
|
|
5045
5048
|
type: "checkbox",
|
|
5046
5049
|
checked: modelValue.value,
|
|
5047
5050
|
disabled: _ctx.disabled,
|
|
5048
5051
|
onChange: handleChange
|
|
5049
|
-
}, null, 40, _hoisted_2$
|
|
5052
|
+
}, null, 40, _hoisted_2$k),
|
|
5050
5053
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5051
5054
|
]),
|
|
5052
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5055
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5053
5056
|
], 2);
|
|
5054
5057
|
};
|
|
5055
5058
|
}
|
|
@@ -5125,9 +5128,9 @@ var __spreadValues222222222222 = (a, b) => {
|
|
|
5125
5128
|
}
|
|
5126
5129
|
return a;
|
|
5127
5130
|
};
|
|
5128
|
-
const _hoisted_1$
|
|
5129
|
-
const _hoisted_2$
|
|
5130
|
-
const _hoisted_3$
|
|
5131
|
+
const _hoisted_1$k = { class: "f-checkbox__wrapper" };
|
|
5132
|
+
const _hoisted_2$j = ["checked", "disabled"];
|
|
5133
|
+
const _hoisted_3$j = {
|
|
5131
5134
|
key: 0,
|
|
5132
5135
|
class: "f-checkbox__label"
|
|
5133
5136
|
};
|
|
@@ -5153,16 +5156,16 @@ const _hoisted_3$d = {
|
|
|
5153
5156
|
return openBlock(), createElementBlock("label", {
|
|
5154
5157
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5155
5158
|
}, [
|
|
5156
|
-
createElementVNode("span", _hoisted_1$
|
|
5159
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
5157
5160
|
createElementVNode("input", {
|
|
5158
5161
|
type: "checkbox",
|
|
5159
5162
|
checked: modelValue.value,
|
|
5160
5163
|
disabled: _ctx.disabled,
|
|
5161
5164
|
onChange: handleChange
|
|
5162
|
-
}, null, 40, _hoisted_2$
|
|
5165
|
+
}, null, 40, _hoisted_2$j),
|
|
5163
5166
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5164
5167
|
]),
|
|
5165
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5168
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5166
5169
|
], 2);
|
|
5167
5170
|
};
|
|
5168
5171
|
}
|
|
@@ -5238,9 +5241,9 @@ var __spreadValues2222222222222 = (a, b) => {
|
|
|
5238
5241
|
}
|
|
5239
5242
|
return a;
|
|
5240
5243
|
};
|
|
5241
|
-
const _hoisted_1$
|
|
5242
|
-
const _hoisted_2$
|
|
5243
|
-
const _hoisted_3$
|
|
5244
|
+
const _hoisted_1$j = { class: "f-checkbox__wrapper" };
|
|
5245
|
+
const _hoisted_2$i = ["checked", "disabled"];
|
|
5246
|
+
const _hoisted_3$i = {
|
|
5244
5247
|
key: 0,
|
|
5245
5248
|
class: "f-checkbox__label"
|
|
5246
5249
|
};
|
|
@@ -5266,16 +5269,16 @@ const _hoisted_3$c = {
|
|
|
5266
5269
|
return openBlock(), createElementBlock("label", {
|
|
5267
5270
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5268
5271
|
}, [
|
|
5269
|
-
createElementVNode("span", _hoisted_1$
|
|
5272
|
+
createElementVNode("span", _hoisted_1$j, [
|
|
5270
5273
|
createElementVNode("input", {
|
|
5271
5274
|
type: "checkbox",
|
|
5272
5275
|
checked: modelValue.value,
|
|
5273
5276
|
disabled: _ctx.disabled,
|
|
5274
5277
|
onChange: handleChange
|
|
5275
|
-
}, null, 40, _hoisted_2$
|
|
5278
|
+
}, null, 40, _hoisted_2$i),
|
|
5276
5279
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5277
5280
|
]),
|
|
5278
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5281
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5279
5282
|
], 2);
|
|
5280
5283
|
};
|
|
5281
5284
|
}
|
|
@@ -5351,9 +5354,9 @@ var __spreadValues22222222222222 = (a, b) => {
|
|
|
5351
5354
|
}
|
|
5352
5355
|
return a;
|
|
5353
5356
|
};
|
|
5354
|
-
const _hoisted_1$
|
|
5355
|
-
const _hoisted_2$
|
|
5356
|
-
const _hoisted_3$
|
|
5357
|
+
const _hoisted_1$i = { class: "f-checkbox__wrapper" };
|
|
5358
|
+
const _hoisted_2$h = ["checked", "disabled"];
|
|
5359
|
+
const _hoisted_3$h = {
|
|
5357
5360
|
key: 0,
|
|
5358
5361
|
class: "f-checkbox__label"
|
|
5359
5362
|
};
|
|
@@ -5379,16 +5382,16 @@ const _hoisted_3$b = {
|
|
|
5379
5382
|
return openBlock(), createElementBlock("label", {
|
|
5380
5383
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5381
5384
|
}, [
|
|
5382
|
-
createElementVNode("span", _hoisted_1$
|
|
5385
|
+
createElementVNode("span", _hoisted_1$i, [
|
|
5383
5386
|
createElementVNode("input", {
|
|
5384
5387
|
type: "checkbox",
|
|
5385
5388
|
checked: modelValue.value,
|
|
5386
5389
|
disabled: _ctx.disabled,
|
|
5387
5390
|
onChange: handleChange
|
|
5388
|
-
}, null, 40, _hoisted_2$
|
|
5391
|
+
}, null, 40, _hoisted_2$h),
|
|
5389
5392
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5390
5393
|
]),
|
|
5391
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5394
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5392
5395
|
], 2);
|
|
5393
5396
|
};
|
|
5394
5397
|
}
|
|
@@ -5464,9 +5467,9 @@ var __spreadValues222222222222222 = (a, b) => {
|
|
|
5464
5467
|
}
|
|
5465
5468
|
return a;
|
|
5466
5469
|
};
|
|
5467
|
-
const _hoisted_1$
|
|
5468
|
-
const _hoisted_2$
|
|
5469
|
-
const _hoisted_3$
|
|
5470
|
+
const _hoisted_1$h = { class: "f-checkbox__wrapper" };
|
|
5471
|
+
const _hoisted_2$g = ["checked", "disabled"];
|
|
5472
|
+
const _hoisted_3$g = {
|
|
5470
5473
|
key: 0,
|
|
5471
5474
|
class: "f-checkbox__label"
|
|
5472
5475
|
};
|
|
@@ -5492,16 +5495,16 @@ const _hoisted_3$9 = {
|
|
|
5492
5495
|
return openBlock(), createElementBlock("label", {
|
|
5493
5496
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5494
5497
|
}, [
|
|
5495
|
-
createElementVNode("span", _hoisted_1$
|
|
5498
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
5496
5499
|
createElementVNode("input", {
|
|
5497
5500
|
type: "checkbox",
|
|
5498
5501
|
checked: modelValue.value,
|
|
5499
5502
|
disabled: _ctx.disabled,
|
|
5500
5503
|
onChange: handleChange
|
|
5501
|
-
}, null, 40, _hoisted_2$
|
|
5504
|
+
}, null, 40, _hoisted_2$g),
|
|
5502
5505
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5503
5506
|
]),
|
|
5504
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
5507
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5505
5508
|
], 2);
|
|
5506
5509
|
};
|
|
5507
5510
|
}
|
|
@@ -5561,12 +5564,1067 @@ const _hoisted_3$9 = {
|
|
|
5561
5564
|
};
|
|
5562
5565
|
}
|
|
5563
5566
|
});
|
|
5564
|
-
|
|
5565
|
-
|
|
5567
|
+
var __defProp2222222222222222 = Object.defineProperty;
|
|
5568
|
+
var __getOwnPropSymbols2222222222222222 = Object.getOwnPropertySymbols;
|
|
5569
|
+
var __hasOwnProp2222222222222222 = Object.prototype.hasOwnProperty;
|
|
5570
|
+
var __propIsEnum2222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5571
|
+
var __defNormalProp2222222222222222 = (obj, key, value) => key in obj ? __defProp2222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5572
|
+
var __spreadValues2222222222222222 = (a, b) => {
|
|
5573
|
+
for (var prop in b || (b = {}))
|
|
5574
|
+
if (__hasOwnProp2222222222222222.call(b, prop))
|
|
5575
|
+
__defNormalProp2222222222222222(a, prop, b[prop]);
|
|
5576
|
+
if (__getOwnPropSymbols2222222222222222)
|
|
5577
|
+
for (var prop of __getOwnPropSymbols2222222222222222(b)) {
|
|
5578
|
+
if (__propIsEnum2222222222222222.call(b, prop))
|
|
5579
|
+
__defNormalProp2222222222222222(a, prop, b[prop]);
|
|
5580
|
+
}
|
|
5581
|
+
return a;
|
|
5582
|
+
};
|
|
5583
|
+
const _hoisted_1$g = { class: "f-checkbox__wrapper" };
|
|
5584
|
+
const _hoisted_2$f = ["checked", "disabled"];
|
|
5585
|
+
const _hoisted_3$f = {
|
|
5586
|
+
key: 0,
|
|
5587
|
+
class: "f-checkbox__label"
|
|
5588
|
+
};
|
|
5589
|
+
/* @__PURE__ */ defineComponent({
|
|
5590
|
+
__name: "FCheckbox",
|
|
5591
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5592
|
+
label: {},
|
|
5593
|
+
disabled: { type: Boolean }
|
|
5594
|
+
}, {
|
|
5595
|
+
"modelValue": __spreadValues2222222222222222({ type: Boolean }, { default: false }),
|
|
5596
|
+
"modelModifiers": {}
|
|
5597
|
+
}),
|
|
5598
|
+
emits: ["update:modelValue"],
|
|
5599
|
+
setup(__props) {
|
|
5600
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5601
|
+
const props = __props;
|
|
5602
|
+
const handleChange = (e) => {
|
|
5603
|
+
if (props.disabled) return;
|
|
5604
|
+
const target = e.target;
|
|
5605
|
+
modelValue.value = target.checked;
|
|
5606
|
+
};
|
|
5607
|
+
return (_ctx, _cache) => {
|
|
5608
|
+
return openBlock(), createElementBlock("label", {
|
|
5609
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5610
|
+
}, [
|
|
5611
|
+
createElementVNode("span", _hoisted_1$g, [
|
|
5612
|
+
createElementVNode("input", {
|
|
5613
|
+
type: "checkbox",
|
|
5614
|
+
checked: modelValue.value,
|
|
5615
|
+
disabled: _ctx.disabled,
|
|
5616
|
+
onChange: handleChange
|
|
5617
|
+
}, null, 40, _hoisted_2$f),
|
|
5618
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5619
|
+
]),
|
|
5620
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5621
|
+
], 2);
|
|
5622
|
+
};
|
|
5623
|
+
}
|
|
5624
|
+
});
|
|
5625
|
+
/* @__PURE__ */ defineComponent({
|
|
5626
|
+
__name: "FDialog",
|
|
5627
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5628
|
+
maskClosable: { type: Boolean, default: true },
|
|
5629
|
+
maskColor: { default: "black" },
|
|
5630
|
+
showMask: { type: Boolean, default: true }
|
|
5631
|
+
}, {
|
|
5632
|
+
"modelValue": __spreadValues2222222222222222({ type: Boolean }, { default: false }),
|
|
5633
|
+
"modelModifiers": {}
|
|
5634
|
+
}),
|
|
5635
|
+
emits: ["update:modelValue"],
|
|
5636
|
+
setup(__props) {
|
|
5637
|
+
const props = __props;
|
|
5638
|
+
const visible = useModel(__props, "modelValue");
|
|
5639
|
+
const handleMaskClick = () => {
|
|
5640
|
+
if (props.maskClosable) visible.value = false;
|
|
5641
|
+
};
|
|
5642
|
+
const maskBackgroundColor = computed(() => {
|
|
5643
|
+
if (!props.showMask) return "transparent";
|
|
5644
|
+
switch (props.maskColor) {
|
|
5645
|
+
case "white":
|
|
5646
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5647
|
+
case "black":
|
|
5648
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5649
|
+
case "transparent":
|
|
5650
|
+
return "transparent";
|
|
5651
|
+
default:
|
|
5652
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5653
|
+
}
|
|
5654
|
+
});
|
|
5655
|
+
return (_ctx, _cache) => {
|
|
5656
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5657
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5658
|
+
default: withCtx(() => [
|
|
5659
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5660
|
+
key: 0,
|
|
5661
|
+
class: "f-dialog-mask",
|
|
5662
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5663
|
+
onClick: handleMaskClick
|
|
5664
|
+
}, [
|
|
5665
|
+
createElementVNode("div", {
|
|
5666
|
+
class: "f-dialog-container",
|
|
5667
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5668
|
+
}, ["stop"]))
|
|
5669
|
+
}, [
|
|
5670
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5671
|
+
])
|
|
5672
|
+
], 4)) : createCommentVNode("", true)
|
|
5673
|
+
]),
|
|
5674
|
+
_: 3
|
|
5675
|
+
})
|
|
5676
|
+
]);
|
|
5677
|
+
};
|
|
5678
|
+
}
|
|
5679
|
+
});
|
|
5680
|
+
var __defProp22222222222222222 = Object.defineProperty;
|
|
5681
|
+
var __getOwnPropSymbols22222222222222222 = Object.getOwnPropertySymbols;
|
|
5682
|
+
var __hasOwnProp22222222222222222 = Object.prototype.hasOwnProperty;
|
|
5683
|
+
var __propIsEnum22222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5684
|
+
var __defNormalProp22222222222222222 = (obj, key, value) => key in obj ? __defProp22222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5685
|
+
var __spreadValues22222222222222222 = (a, b) => {
|
|
5686
|
+
for (var prop in b || (b = {}))
|
|
5687
|
+
if (__hasOwnProp22222222222222222.call(b, prop))
|
|
5688
|
+
__defNormalProp22222222222222222(a, prop, b[prop]);
|
|
5689
|
+
if (__getOwnPropSymbols22222222222222222)
|
|
5690
|
+
for (var prop of __getOwnPropSymbols22222222222222222(b)) {
|
|
5691
|
+
if (__propIsEnum22222222222222222.call(b, prop))
|
|
5692
|
+
__defNormalProp22222222222222222(a, prop, b[prop]);
|
|
5693
|
+
}
|
|
5694
|
+
return a;
|
|
5695
|
+
};
|
|
5696
|
+
const _hoisted_1$f = { class: "f-checkbox__wrapper" };
|
|
5697
|
+
const _hoisted_2$e = ["checked", "disabled"];
|
|
5698
|
+
const _hoisted_3$e = {
|
|
5699
|
+
key: 0,
|
|
5700
|
+
class: "f-checkbox__label"
|
|
5701
|
+
};
|
|
5702
|
+
/* @__PURE__ */ defineComponent({
|
|
5703
|
+
__name: "FCheckbox",
|
|
5704
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5705
|
+
label: {},
|
|
5706
|
+
disabled: { type: Boolean }
|
|
5707
|
+
}, {
|
|
5708
|
+
"modelValue": __spreadValues22222222222222222({ type: Boolean }, { default: false }),
|
|
5709
|
+
"modelModifiers": {}
|
|
5710
|
+
}),
|
|
5711
|
+
emits: ["update:modelValue"],
|
|
5712
|
+
setup(__props) {
|
|
5713
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5714
|
+
const props = __props;
|
|
5715
|
+
const handleChange = (e) => {
|
|
5716
|
+
if (props.disabled) return;
|
|
5717
|
+
const target = e.target;
|
|
5718
|
+
modelValue.value = target.checked;
|
|
5719
|
+
};
|
|
5720
|
+
return (_ctx, _cache) => {
|
|
5721
|
+
return openBlock(), createElementBlock("label", {
|
|
5722
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5723
|
+
}, [
|
|
5724
|
+
createElementVNode("span", _hoisted_1$f, [
|
|
5725
|
+
createElementVNode("input", {
|
|
5726
|
+
type: "checkbox",
|
|
5727
|
+
checked: modelValue.value,
|
|
5728
|
+
disabled: _ctx.disabled,
|
|
5729
|
+
onChange: handleChange
|
|
5730
|
+
}, null, 40, _hoisted_2$e),
|
|
5731
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5732
|
+
]),
|
|
5733
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5734
|
+
], 2);
|
|
5735
|
+
};
|
|
5736
|
+
}
|
|
5737
|
+
});
|
|
5738
|
+
/* @__PURE__ */ defineComponent({
|
|
5739
|
+
__name: "FDialog",
|
|
5740
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5741
|
+
maskClosable: { type: Boolean, default: true },
|
|
5742
|
+
maskColor: { default: "black" },
|
|
5743
|
+
showMask: { type: Boolean, default: true }
|
|
5744
|
+
}, {
|
|
5745
|
+
"modelValue": __spreadValues22222222222222222({ type: Boolean }, { default: false }),
|
|
5746
|
+
"modelModifiers": {}
|
|
5747
|
+
}),
|
|
5748
|
+
emits: ["update:modelValue"],
|
|
5749
|
+
setup(__props) {
|
|
5750
|
+
const props = __props;
|
|
5751
|
+
const visible = useModel(__props, "modelValue");
|
|
5752
|
+
const handleMaskClick = () => {
|
|
5753
|
+
if (props.maskClosable) visible.value = false;
|
|
5754
|
+
};
|
|
5755
|
+
const maskBackgroundColor = computed(() => {
|
|
5756
|
+
if (!props.showMask) return "transparent";
|
|
5757
|
+
switch (props.maskColor) {
|
|
5758
|
+
case "white":
|
|
5759
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5760
|
+
case "black":
|
|
5761
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5762
|
+
case "transparent":
|
|
5763
|
+
return "transparent";
|
|
5764
|
+
default:
|
|
5765
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5766
|
+
}
|
|
5767
|
+
});
|
|
5768
|
+
return (_ctx, _cache) => {
|
|
5769
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5770
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5771
|
+
default: withCtx(() => [
|
|
5772
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5773
|
+
key: 0,
|
|
5774
|
+
class: "f-dialog-mask",
|
|
5775
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5776
|
+
onClick: handleMaskClick
|
|
5777
|
+
}, [
|
|
5778
|
+
createElementVNode("div", {
|
|
5779
|
+
class: "f-dialog-container",
|
|
5780
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5781
|
+
}, ["stop"]))
|
|
5782
|
+
}, [
|
|
5783
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5784
|
+
])
|
|
5785
|
+
], 4)) : createCommentVNode("", true)
|
|
5786
|
+
]),
|
|
5787
|
+
_: 3
|
|
5788
|
+
})
|
|
5789
|
+
]);
|
|
5790
|
+
};
|
|
5791
|
+
}
|
|
5792
|
+
});
|
|
5793
|
+
var __defProp222222222222222222 = Object.defineProperty;
|
|
5794
|
+
var __getOwnPropSymbols222222222222222222 = Object.getOwnPropertySymbols;
|
|
5795
|
+
var __hasOwnProp222222222222222222 = Object.prototype.hasOwnProperty;
|
|
5796
|
+
var __propIsEnum222222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5797
|
+
var __defNormalProp222222222222222222 = (obj, key, value) => key in obj ? __defProp222222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5798
|
+
var __spreadValues222222222222222222 = (a, b) => {
|
|
5799
|
+
for (var prop in b || (b = {}))
|
|
5800
|
+
if (__hasOwnProp222222222222222222.call(b, prop))
|
|
5801
|
+
__defNormalProp222222222222222222(a, prop, b[prop]);
|
|
5802
|
+
if (__getOwnPropSymbols222222222222222222)
|
|
5803
|
+
for (var prop of __getOwnPropSymbols222222222222222222(b)) {
|
|
5804
|
+
if (__propIsEnum222222222222222222.call(b, prop))
|
|
5805
|
+
__defNormalProp222222222222222222(a, prop, b[prop]);
|
|
5806
|
+
}
|
|
5807
|
+
return a;
|
|
5808
|
+
};
|
|
5809
|
+
const _hoisted_1$e = { class: "f-checkbox__wrapper" };
|
|
5810
|
+
const _hoisted_2$d = ["checked", "disabled"];
|
|
5811
|
+
const _hoisted_3$d = {
|
|
5812
|
+
key: 0,
|
|
5813
|
+
class: "f-checkbox__label"
|
|
5814
|
+
};
|
|
5815
|
+
/* @__PURE__ */ defineComponent({
|
|
5816
|
+
__name: "FCheckbox",
|
|
5817
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5818
|
+
label: {},
|
|
5819
|
+
disabled: { type: Boolean }
|
|
5820
|
+
}, {
|
|
5821
|
+
"modelValue": __spreadValues222222222222222222({ type: Boolean }, { default: false }),
|
|
5822
|
+
"modelModifiers": {}
|
|
5823
|
+
}),
|
|
5824
|
+
emits: ["update:modelValue"],
|
|
5825
|
+
setup(__props) {
|
|
5826
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5827
|
+
const props = __props;
|
|
5828
|
+
const handleChange = (e) => {
|
|
5829
|
+
if (props.disabled) return;
|
|
5830
|
+
const target = e.target;
|
|
5831
|
+
modelValue.value = target.checked;
|
|
5832
|
+
};
|
|
5833
|
+
return (_ctx, _cache) => {
|
|
5834
|
+
return openBlock(), createElementBlock("label", {
|
|
5835
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5836
|
+
}, [
|
|
5837
|
+
createElementVNode("span", _hoisted_1$e, [
|
|
5838
|
+
createElementVNode("input", {
|
|
5839
|
+
type: "checkbox",
|
|
5840
|
+
checked: modelValue.value,
|
|
5841
|
+
disabled: _ctx.disabled,
|
|
5842
|
+
onChange: handleChange
|
|
5843
|
+
}, null, 40, _hoisted_2$d),
|
|
5844
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5845
|
+
]),
|
|
5846
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5847
|
+
], 2);
|
|
5848
|
+
};
|
|
5849
|
+
}
|
|
5850
|
+
});
|
|
5851
|
+
/* @__PURE__ */ defineComponent({
|
|
5852
|
+
__name: "FDialog",
|
|
5853
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5854
|
+
maskClosable: { type: Boolean, default: true },
|
|
5855
|
+
maskColor: { default: "black" },
|
|
5856
|
+
showMask: { type: Boolean, default: true }
|
|
5857
|
+
}, {
|
|
5858
|
+
"modelValue": __spreadValues222222222222222222({ type: Boolean }, { default: false }),
|
|
5859
|
+
"modelModifiers": {}
|
|
5860
|
+
}),
|
|
5861
|
+
emits: ["update:modelValue"],
|
|
5862
|
+
setup(__props) {
|
|
5863
|
+
const props = __props;
|
|
5864
|
+
const visible = useModel(__props, "modelValue");
|
|
5865
|
+
const handleMaskClick = () => {
|
|
5866
|
+
if (props.maskClosable) visible.value = false;
|
|
5867
|
+
};
|
|
5868
|
+
const maskBackgroundColor = computed(() => {
|
|
5869
|
+
if (!props.showMask) return "transparent";
|
|
5870
|
+
switch (props.maskColor) {
|
|
5871
|
+
case "white":
|
|
5872
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5873
|
+
case "black":
|
|
5874
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5875
|
+
case "transparent":
|
|
5876
|
+
return "transparent";
|
|
5877
|
+
default:
|
|
5878
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5879
|
+
}
|
|
5880
|
+
});
|
|
5881
|
+
return (_ctx, _cache) => {
|
|
5882
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5883
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5884
|
+
default: withCtx(() => [
|
|
5885
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5886
|
+
key: 0,
|
|
5887
|
+
class: "f-dialog-mask",
|
|
5888
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5889
|
+
onClick: handleMaskClick
|
|
5890
|
+
}, [
|
|
5891
|
+
createElementVNode("div", {
|
|
5892
|
+
class: "f-dialog-container",
|
|
5893
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5894
|
+
}, ["stop"]))
|
|
5895
|
+
}, [
|
|
5896
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5897
|
+
])
|
|
5898
|
+
], 4)) : createCommentVNode("", true)
|
|
5899
|
+
]),
|
|
5900
|
+
_: 3
|
|
5901
|
+
})
|
|
5902
|
+
]);
|
|
5903
|
+
};
|
|
5904
|
+
}
|
|
5905
|
+
});
|
|
5906
|
+
var __defProp2222222222222222222 = Object.defineProperty;
|
|
5907
|
+
var __getOwnPropSymbols2222222222222222222 = Object.getOwnPropertySymbols;
|
|
5908
|
+
var __hasOwnProp2222222222222222222 = Object.prototype.hasOwnProperty;
|
|
5909
|
+
var __propIsEnum2222222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5910
|
+
var __defNormalProp2222222222222222222 = (obj, key, value) => key in obj ? __defProp2222222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5911
|
+
var __spreadValues2222222222222222222 = (a, b) => {
|
|
5912
|
+
for (var prop in b || (b = {}))
|
|
5913
|
+
if (__hasOwnProp2222222222222222222.call(b, prop))
|
|
5914
|
+
__defNormalProp2222222222222222222(a, prop, b[prop]);
|
|
5915
|
+
if (__getOwnPropSymbols2222222222222222222)
|
|
5916
|
+
for (var prop of __getOwnPropSymbols2222222222222222222(b)) {
|
|
5917
|
+
if (__propIsEnum2222222222222222222.call(b, prop))
|
|
5918
|
+
__defNormalProp2222222222222222222(a, prop, b[prop]);
|
|
5919
|
+
}
|
|
5920
|
+
return a;
|
|
5921
|
+
};
|
|
5922
|
+
const _hoisted_1$d = { class: "f-checkbox__wrapper" };
|
|
5923
|
+
const _hoisted_2$c = ["checked", "disabled"];
|
|
5924
|
+
const _hoisted_3$c = {
|
|
5925
|
+
key: 0,
|
|
5926
|
+
class: "f-checkbox__label"
|
|
5927
|
+
};
|
|
5928
|
+
/* @__PURE__ */ defineComponent({
|
|
5929
|
+
__name: "FCheckbox",
|
|
5930
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5931
|
+
label: {},
|
|
5932
|
+
disabled: { type: Boolean }
|
|
5933
|
+
}, {
|
|
5934
|
+
"modelValue": __spreadValues2222222222222222222({ type: Boolean }, { default: false }),
|
|
5935
|
+
"modelModifiers": {}
|
|
5936
|
+
}),
|
|
5937
|
+
emits: ["update:modelValue"],
|
|
5938
|
+
setup(__props) {
|
|
5939
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5940
|
+
const props = __props;
|
|
5941
|
+
const handleChange = (e) => {
|
|
5942
|
+
if (props.disabled) return;
|
|
5943
|
+
const target = e.target;
|
|
5944
|
+
modelValue.value = target.checked;
|
|
5945
|
+
};
|
|
5946
|
+
return (_ctx, _cache) => {
|
|
5947
|
+
return openBlock(), createElementBlock("label", {
|
|
5948
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5949
|
+
}, [
|
|
5950
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
5951
|
+
createElementVNode("input", {
|
|
5952
|
+
type: "checkbox",
|
|
5953
|
+
checked: modelValue.value,
|
|
5954
|
+
disabled: _ctx.disabled,
|
|
5955
|
+
onChange: handleChange
|
|
5956
|
+
}, null, 40, _hoisted_2$c),
|
|
5957
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5958
|
+
]),
|
|
5959
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5960
|
+
], 2);
|
|
5961
|
+
};
|
|
5962
|
+
}
|
|
5963
|
+
});
|
|
5964
|
+
/* @__PURE__ */ defineComponent({
|
|
5965
|
+
__name: "FDialog",
|
|
5966
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5967
|
+
maskClosable: { type: Boolean, default: true },
|
|
5968
|
+
maskColor: { default: "black" },
|
|
5969
|
+
showMask: { type: Boolean, default: true }
|
|
5970
|
+
}, {
|
|
5971
|
+
"modelValue": __spreadValues2222222222222222222({ type: Boolean }, { default: false }),
|
|
5972
|
+
"modelModifiers": {}
|
|
5973
|
+
}),
|
|
5974
|
+
emits: ["update:modelValue"],
|
|
5975
|
+
setup(__props) {
|
|
5976
|
+
const props = __props;
|
|
5977
|
+
const visible = useModel(__props, "modelValue");
|
|
5978
|
+
const handleMaskClick = () => {
|
|
5979
|
+
if (props.maskClosable) visible.value = false;
|
|
5980
|
+
};
|
|
5981
|
+
const maskBackgroundColor = computed(() => {
|
|
5982
|
+
if (!props.showMask) return "transparent";
|
|
5983
|
+
switch (props.maskColor) {
|
|
5984
|
+
case "white":
|
|
5985
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5986
|
+
case "black":
|
|
5987
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5988
|
+
case "transparent":
|
|
5989
|
+
return "transparent";
|
|
5990
|
+
default:
|
|
5991
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5992
|
+
}
|
|
5993
|
+
});
|
|
5994
|
+
return (_ctx, _cache) => {
|
|
5995
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5996
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5997
|
+
default: withCtx(() => [
|
|
5998
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5999
|
+
key: 0,
|
|
6000
|
+
class: "f-dialog-mask",
|
|
6001
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
6002
|
+
onClick: handleMaskClick
|
|
6003
|
+
}, [
|
|
6004
|
+
createElementVNode("div", {
|
|
6005
|
+
class: "f-dialog-container",
|
|
6006
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
6007
|
+
}, ["stop"]))
|
|
6008
|
+
}, [
|
|
6009
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6010
|
+
])
|
|
6011
|
+
], 4)) : createCommentVNode("", true)
|
|
6012
|
+
]),
|
|
6013
|
+
_: 3
|
|
6014
|
+
})
|
|
6015
|
+
]);
|
|
6016
|
+
};
|
|
6017
|
+
}
|
|
6018
|
+
});
|
|
6019
|
+
var __defProp22222222222222222222 = Object.defineProperty;
|
|
6020
|
+
var __getOwnPropSymbols22222222222222222222 = Object.getOwnPropertySymbols;
|
|
6021
|
+
var __hasOwnProp22222222222222222222 = Object.prototype.hasOwnProperty;
|
|
6022
|
+
var __propIsEnum22222222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
6023
|
+
var __defNormalProp22222222222222222222 = (obj, key, value) => key in obj ? __defProp22222222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6024
|
+
var __spreadValues22222222222222222222 = (a, b) => {
|
|
6025
|
+
for (var prop in b || (b = {}))
|
|
6026
|
+
if (__hasOwnProp22222222222222222222.call(b, prop))
|
|
6027
|
+
__defNormalProp22222222222222222222(a, prop, b[prop]);
|
|
6028
|
+
if (__getOwnPropSymbols22222222222222222222)
|
|
6029
|
+
for (var prop of __getOwnPropSymbols22222222222222222222(b)) {
|
|
6030
|
+
if (__propIsEnum22222222222222222222.call(b, prop))
|
|
6031
|
+
__defNormalProp22222222222222222222(a, prop, b[prop]);
|
|
6032
|
+
}
|
|
6033
|
+
return a;
|
|
6034
|
+
};
|
|
6035
|
+
const _hoisted_1$c = { class: "f-checkbox__wrapper" };
|
|
6036
|
+
const _hoisted_2$b = ["checked", "disabled"];
|
|
6037
|
+
const _hoisted_3$b = {
|
|
6038
|
+
key: 0,
|
|
6039
|
+
class: "f-checkbox__label"
|
|
6040
|
+
};
|
|
6041
|
+
/* @__PURE__ */ defineComponent({
|
|
6042
|
+
__name: "FCheckbox",
|
|
6043
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6044
|
+
label: {},
|
|
6045
|
+
disabled: { type: Boolean }
|
|
6046
|
+
}, {
|
|
6047
|
+
"modelValue": __spreadValues22222222222222222222({ type: Boolean }, { default: false }),
|
|
6048
|
+
"modelModifiers": {}
|
|
6049
|
+
}),
|
|
6050
|
+
emits: ["update:modelValue"],
|
|
6051
|
+
setup(__props) {
|
|
6052
|
+
const modelValue = useModel(__props, "modelValue");
|
|
6053
|
+
const props = __props;
|
|
6054
|
+
const handleChange = (e) => {
|
|
6055
|
+
if (props.disabled) return;
|
|
6056
|
+
const target = e.target;
|
|
6057
|
+
modelValue.value = target.checked;
|
|
6058
|
+
};
|
|
6059
|
+
return (_ctx, _cache) => {
|
|
6060
|
+
return openBlock(), createElementBlock("label", {
|
|
6061
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
6062
|
+
}, [
|
|
6063
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
6064
|
+
createElementVNode("input", {
|
|
6065
|
+
type: "checkbox",
|
|
6066
|
+
checked: modelValue.value,
|
|
6067
|
+
disabled: _ctx.disabled,
|
|
6068
|
+
onChange: handleChange
|
|
6069
|
+
}, null, 40, _hoisted_2$b),
|
|
6070
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
6071
|
+
]),
|
|
6072
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
6073
|
+
], 2);
|
|
6074
|
+
};
|
|
6075
|
+
}
|
|
6076
|
+
});
|
|
6077
|
+
/* @__PURE__ */ defineComponent({
|
|
6078
|
+
__name: "FDialog",
|
|
6079
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6080
|
+
maskClosable: { type: Boolean, default: true },
|
|
6081
|
+
maskColor: { default: "black" },
|
|
6082
|
+
showMask: { type: Boolean, default: true }
|
|
6083
|
+
}, {
|
|
6084
|
+
"modelValue": __spreadValues22222222222222222222({ type: Boolean }, { default: false }),
|
|
6085
|
+
"modelModifiers": {}
|
|
6086
|
+
}),
|
|
6087
|
+
emits: ["update:modelValue"],
|
|
6088
|
+
setup(__props) {
|
|
6089
|
+
const props = __props;
|
|
6090
|
+
const visible = useModel(__props, "modelValue");
|
|
6091
|
+
const handleMaskClick = () => {
|
|
6092
|
+
if (props.maskClosable) visible.value = false;
|
|
6093
|
+
};
|
|
6094
|
+
const maskBackgroundColor = computed(() => {
|
|
6095
|
+
if (!props.showMask) return "transparent";
|
|
6096
|
+
switch (props.maskColor) {
|
|
6097
|
+
case "white":
|
|
6098
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
6099
|
+
case "black":
|
|
6100
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
6101
|
+
case "transparent":
|
|
6102
|
+
return "transparent";
|
|
6103
|
+
default:
|
|
6104
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
6105
|
+
}
|
|
6106
|
+
});
|
|
6107
|
+
return (_ctx, _cache) => {
|
|
6108
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
6109
|
+
createVNode(Transition, { name: "fade" }, {
|
|
6110
|
+
default: withCtx(() => [
|
|
6111
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
6112
|
+
key: 0,
|
|
6113
|
+
class: "f-dialog-mask",
|
|
6114
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
6115
|
+
onClick: handleMaskClick
|
|
6116
|
+
}, [
|
|
6117
|
+
createElementVNode("div", {
|
|
6118
|
+
class: "f-dialog-container",
|
|
6119
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
6120
|
+
}, ["stop"]))
|
|
6121
|
+
}, [
|
|
6122
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6123
|
+
])
|
|
6124
|
+
], 4)) : createCommentVNode("", true)
|
|
6125
|
+
]),
|
|
6126
|
+
_: 3
|
|
6127
|
+
})
|
|
6128
|
+
]);
|
|
6129
|
+
};
|
|
6130
|
+
}
|
|
6131
|
+
});
|
|
6132
|
+
var __defProp222222222222222222222 = Object.defineProperty;
|
|
6133
|
+
var __getOwnPropSymbols222222222222222222222 = Object.getOwnPropertySymbols;
|
|
6134
|
+
var __hasOwnProp222222222222222222222 = Object.prototype.hasOwnProperty;
|
|
6135
|
+
var __propIsEnum222222222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
6136
|
+
var __defNormalProp222222222222222222222 = (obj, key, value) => key in obj ? __defProp222222222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6137
|
+
var __spreadValues222222222222222222222 = (a, b) => {
|
|
6138
|
+
for (var prop in b || (b = {}))
|
|
6139
|
+
if (__hasOwnProp222222222222222222222.call(b, prop))
|
|
6140
|
+
__defNormalProp222222222222222222222(a, prop, b[prop]);
|
|
6141
|
+
if (__getOwnPropSymbols222222222222222222222)
|
|
6142
|
+
for (var prop of __getOwnPropSymbols222222222222222222222(b)) {
|
|
6143
|
+
if (__propIsEnum222222222222222222222.call(b, prop))
|
|
6144
|
+
__defNormalProp222222222222222222222(a, prop, b[prop]);
|
|
6145
|
+
}
|
|
6146
|
+
return a;
|
|
6147
|
+
};
|
|
6148
|
+
const _hoisted_1$a = { class: "f-checkbox__wrapper" };
|
|
6149
|
+
const _hoisted_2$9 = ["checked", "disabled"];
|
|
6150
|
+
const _hoisted_3$9 = {
|
|
6151
|
+
key: 0,
|
|
6152
|
+
class: "f-checkbox__label"
|
|
6153
|
+
};
|
|
6154
|
+
/* @__PURE__ */ defineComponent({
|
|
6155
|
+
__name: "FCheckbox",
|
|
6156
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6157
|
+
label: {},
|
|
6158
|
+
disabled: { type: Boolean }
|
|
6159
|
+
}, {
|
|
6160
|
+
"modelValue": __spreadValues222222222222222222222({ type: Boolean }, { default: false }),
|
|
6161
|
+
"modelModifiers": {}
|
|
6162
|
+
}),
|
|
6163
|
+
emits: ["update:modelValue"],
|
|
6164
|
+
setup(__props) {
|
|
6165
|
+
const modelValue = useModel(__props, "modelValue");
|
|
6166
|
+
const props = __props;
|
|
6167
|
+
const handleChange = (e) => {
|
|
6168
|
+
if (props.disabled) return;
|
|
6169
|
+
const target = e.target;
|
|
6170
|
+
modelValue.value = target.checked;
|
|
6171
|
+
};
|
|
6172
|
+
return (_ctx, _cache) => {
|
|
6173
|
+
return openBlock(), createElementBlock("label", {
|
|
6174
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
6175
|
+
}, [
|
|
6176
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
6177
|
+
createElementVNode("input", {
|
|
6178
|
+
type: "checkbox",
|
|
6179
|
+
checked: modelValue.value,
|
|
6180
|
+
disabled: _ctx.disabled,
|
|
6181
|
+
onChange: handleChange
|
|
6182
|
+
}, null, 40, _hoisted_2$9),
|
|
6183
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
6184
|
+
]),
|
|
6185
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
6186
|
+
], 2);
|
|
6187
|
+
};
|
|
6188
|
+
}
|
|
6189
|
+
});
|
|
6190
|
+
/* @__PURE__ */ defineComponent({
|
|
6191
|
+
__name: "FDialog",
|
|
6192
|
+
props: /* @__PURE__ */ mergeModels({
|
|
6193
|
+
maskClosable: { type: Boolean, default: true },
|
|
6194
|
+
maskColor: { default: "black" },
|
|
6195
|
+
showMask: { type: Boolean, default: true }
|
|
6196
|
+
}, {
|
|
6197
|
+
"modelValue": __spreadValues222222222222222222222({ type: Boolean }, { default: false }),
|
|
6198
|
+
"modelModifiers": {}
|
|
6199
|
+
}),
|
|
6200
|
+
emits: ["update:modelValue"],
|
|
6201
|
+
setup(__props) {
|
|
6202
|
+
const props = __props;
|
|
6203
|
+
const visible = useModel(__props, "modelValue");
|
|
6204
|
+
const handleMaskClick = () => {
|
|
6205
|
+
if (props.maskClosable) visible.value = false;
|
|
6206
|
+
};
|
|
6207
|
+
const maskBackgroundColor = computed(() => {
|
|
6208
|
+
if (!props.showMask) return "transparent";
|
|
6209
|
+
switch (props.maskColor) {
|
|
6210
|
+
case "white":
|
|
6211
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
6212
|
+
case "black":
|
|
6213
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
6214
|
+
case "transparent":
|
|
6215
|
+
return "transparent";
|
|
6216
|
+
default:
|
|
6217
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
6218
|
+
}
|
|
6219
|
+
});
|
|
6220
|
+
return (_ctx, _cache) => {
|
|
6221
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
6222
|
+
createVNode(Transition, { name: "fade" }, {
|
|
6223
|
+
default: withCtx(() => [
|
|
6224
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
6225
|
+
key: 0,
|
|
6226
|
+
class: "f-dialog-mask",
|
|
6227
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
6228
|
+
onClick: handleMaskClick
|
|
6229
|
+
}, [
|
|
6230
|
+
createElementVNode("div", {
|
|
6231
|
+
class: "f-dialog-container",
|
|
6232
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
6233
|
+
}, ["stop"]))
|
|
6234
|
+
}, [
|
|
6235
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6236
|
+
])
|
|
6237
|
+
], 4)) : createCommentVNode("", true)
|
|
6238
|
+
]),
|
|
6239
|
+
_: 3
|
|
6240
|
+
})
|
|
6241
|
+
]);
|
|
6242
|
+
};
|
|
6243
|
+
}
|
|
6244
|
+
});
|
|
6245
|
+
const _hoisted_1$1$1 = { class: "f-message__content" };
|
|
6246
|
+
const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
6247
|
+
__name: "FMessage",
|
|
6248
|
+
props: {
|
|
6249
|
+
type: { default: "info" },
|
|
6250
|
+
message: {},
|
|
6251
|
+
duration: { default: 3e3 },
|
|
6252
|
+
closable: { type: Boolean, default: false },
|
|
6253
|
+
showIcon: { type: Boolean, default: true },
|
|
6254
|
+
offset: { default: 20 }
|
|
6255
|
+
},
|
|
6256
|
+
emits: ["close", "destroy"],
|
|
6257
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6258
|
+
const props = __props;
|
|
6259
|
+
const emit = __emit;
|
|
6260
|
+
const visible = ref(false);
|
|
6261
|
+
let timer = null;
|
|
6262
|
+
const iconName = computed(() => {
|
|
6263
|
+
const map = {
|
|
6264
|
+
info: InformationCircle,
|
|
6265
|
+
success: CheckmarkCircle,
|
|
6266
|
+
warning: Warning,
|
|
6267
|
+
failed: CloseCircle
|
|
6268
|
+
};
|
|
6269
|
+
return map[props.type];
|
|
6270
|
+
});
|
|
6271
|
+
const rootStyle = computed(() => ({
|
|
6272
|
+
top: `${props.offset}px`
|
|
6273
|
+
}));
|
|
6274
|
+
const startTimer = () => {
|
|
6275
|
+
if (props.duration <= 0) return;
|
|
6276
|
+
timer = setTimeout(() => {
|
|
6277
|
+
close();
|
|
6278
|
+
}, props.duration);
|
|
6279
|
+
};
|
|
6280
|
+
const clearTimer = () => {
|
|
6281
|
+
if (timer) {
|
|
6282
|
+
clearTimeout(timer);
|
|
6283
|
+
timer = null;
|
|
6284
|
+
}
|
|
6285
|
+
};
|
|
6286
|
+
const close = () => {
|
|
6287
|
+
clearTimer();
|
|
6288
|
+
visible.value = false;
|
|
6289
|
+
emit("close");
|
|
6290
|
+
};
|
|
6291
|
+
const handleAfterLeave = () => emit("destroy");
|
|
6292
|
+
onMounted(() => {
|
|
6293
|
+
visible.value = true;
|
|
6294
|
+
startTimer();
|
|
6295
|
+
});
|
|
6296
|
+
onBeforeUnmount(() => {
|
|
6297
|
+
clearTimer();
|
|
6298
|
+
});
|
|
6299
|
+
__expose({ close });
|
|
6300
|
+
return (_ctx, _cache) => {
|
|
6301
|
+
return openBlock(), createBlock(Transition, {
|
|
6302
|
+
name: "f-message-fade",
|
|
6303
|
+
onAfterLeave: handleAfterLeave
|
|
6304
|
+
}, {
|
|
6305
|
+
default: withCtx(() => [
|
|
6306
|
+
unref(visible) ? (openBlock(), createElementBlock("div", {
|
|
6307
|
+
key: 0,
|
|
6308
|
+
class: normalizeClass(["f-message", [`f-message--${_ctx.type}`]]),
|
|
6309
|
+
style: normalizeStyle(unref(rootStyle)),
|
|
6310
|
+
role: "alert",
|
|
6311
|
+
onMouseenter: clearTimer,
|
|
6312
|
+
onMouseleave: startTimer
|
|
6313
|
+
}, [
|
|
6314
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon, {
|
|
6315
|
+
key: 0,
|
|
6316
|
+
class: "f-message__icon"
|
|
6317
|
+
}, {
|
|
6318
|
+
default: withCtx(() => [
|
|
6319
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(iconName))))
|
|
6320
|
+
]),
|
|
6321
|
+
_: 1
|
|
6322
|
+
})) : createCommentVNode("", true),
|
|
6323
|
+
createElementVNode("span", _hoisted_1$1$1, toDisplayString(_ctx.message), 1),
|
|
6324
|
+
_ctx.closable ? (openBlock(), createElementBlock("button", {
|
|
6325
|
+
key: 1,
|
|
6326
|
+
type: "button",
|
|
6327
|
+
class: "f-message__close",
|
|
6328
|
+
"aria-label": "close",
|
|
6329
|
+
onClick: close
|
|
6330
|
+
}, [
|
|
6331
|
+
createVNode(FIcon, null, {
|
|
6332
|
+
default: withCtx(() => [
|
|
6333
|
+
createVNode(unref(Close))
|
|
6334
|
+
]),
|
|
6335
|
+
_: 1
|
|
6336
|
+
})
|
|
6337
|
+
])) : createCommentVNode("", true)
|
|
6338
|
+
], 38)) : createCommentVNode("", true)
|
|
6339
|
+
]),
|
|
6340
|
+
_: 1
|
|
6341
|
+
});
|
|
6342
|
+
};
|
|
6343
|
+
}
|
|
6344
|
+
});
|
|
6345
|
+
const FMessageComp$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1$1, [["__scopeId", "data-v-3aba692f"]]);
|
|
6346
|
+
const GAP$1$1 = 16;
|
|
6347
|
+
const BASE_OFFSET$1$1 = 20;
|
|
6348
|
+
let seed$1$1 = 0;
|
|
6349
|
+
const instances$1 = [];
|
|
6350
|
+
const normalizeOptions$1$1 = (options) => {
|
|
6351
|
+
return typeof options === "string" ? { message: options } : options;
|
|
6352
|
+
};
|
|
6353
|
+
const repositionAll$1 = () => {
|
|
6354
|
+
let offset = BASE_OFFSET$1$1;
|
|
6355
|
+
instances$1.forEach((item) => {
|
|
6356
|
+
const vm = item.vnode.component;
|
|
6357
|
+
if (vm) {
|
|
6358
|
+
vm.props.offset = offset;
|
|
6359
|
+
}
|
|
6360
|
+
offset += item.height + GAP$1$1;
|
|
6361
|
+
});
|
|
6362
|
+
};
|
|
6363
|
+
const removeInstance$1$1 = (id) => {
|
|
6364
|
+
const index = instances$1.findIndex((item) => item.id === id);
|
|
6365
|
+
if (index === -1) return;
|
|
6366
|
+
const { container } = instances$1[index];
|
|
6367
|
+
render(null, container);
|
|
6368
|
+
container.remove();
|
|
6369
|
+
instances$1.splice(index, 1);
|
|
6370
|
+
repositionAll$1();
|
|
6371
|
+
};
|
|
6372
|
+
const createInstance$1$1 = (options) => {
|
|
6373
|
+
var _a;
|
|
6374
|
+
const id = seed$1$1++;
|
|
6375
|
+
const container = document.createElement("div");
|
|
6376
|
+
const offset = instances$1.length === 0 ? BASE_OFFSET$1$1 : (() => {
|
|
6377
|
+
var _a2;
|
|
6378
|
+
const last = instances$1[instances$1.length - 1];
|
|
6379
|
+
return ((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + last.height + GAP$1$1;
|
|
6380
|
+
})();
|
|
6381
|
+
const vnode = createVNode(FMessageComp$1, __spreadProps2(__spreadValues2({}, options), {
|
|
6382
|
+
offset,
|
|
6383
|
+
onClose: () => {
|
|
6384
|
+
var _a2;
|
|
6385
|
+
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
6386
|
+
},
|
|
6387
|
+
onDestroy: () => {
|
|
6388
|
+
removeInstance$1$1(id);
|
|
6389
|
+
}
|
|
6390
|
+
}));
|
|
6391
|
+
render(vnode, container);
|
|
6392
|
+
document.body.appendChild(container);
|
|
6393
|
+
const el = vnode.el;
|
|
6394
|
+
const height = (_a = el == null ? void 0 : el.offsetHeight) != null ? _a : 44;
|
|
6395
|
+
instances$1.push({ id, vnode, container, height });
|
|
6396
|
+
return {
|
|
6397
|
+
id,
|
|
6398
|
+
close: () => {
|
|
6399
|
+
var _a2, _b, _c;
|
|
6400
|
+
(_c = (_b = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
6401
|
+
}
|
|
6402
|
+
};
|
|
6403
|
+
};
|
|
6404
|
+
const FMessage$1 = (options) => {
|
|
6405
|
+
return createInstance$1$1(normalizeOptions$1$1(options));
|
|
6406
|
+
};
|
|
6407
|
+
const withType$1$1 = (type) => (options) => createInstance$1$1(__spreadProps2(__spreadValues2({}, normalizeOptions$1$1(options)), { type }));
|
|
6408
|
+
FMessage$1.info = withType$1$1("info");
|
|
6409
|
+
FMessage$1.success = withType$1$1("success");
|
|
6410
|
+
FMessage$1.warning = withType$1$1("warning");
|
|
6411
|
+
FMessage$1.failed = withType$1$1("failed");
|
|
6412
|
+
FMessage$1.closeAll = () => {
|
|
6413
|
+
[...instances$1].forEach((item) => {
|
|
6414
|
+
var _a, _b, _c;
|
|
6415
|
+
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
6416
|
+
});
|
|
6417
|
+
};
|
|
6418
|
+
const _hoisted_1$3 = { class: "f-notification__body" };
|
|
6419
|
+
const _hoisted_2$2 = {
|
|
6420
|
+
key: 0,
|
|
6421
|
+
class: "f-notification__title"
|
|
6422
|
+
};
|
|
6423
|
+
const _hoisted_3$2 = { class: "f-notification__content" };
|
|
6424
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
6425
|
+
__name: "FNotification",
|
|
6426
|
+
props: {
|
|
6427
|
+
type: { default: "info" },
|
|
6428
|
+
title: {},
|
|
6429
|
+
message: {},
|
|
6430
|
+
duration: { default: 4500 },
|
|
6431
|
+
closable: { type: Boolean, default: true },
|
|
6432
|
+
showIcon: { type: Boolean, default: true },
|
|
6433
|
+
position: { default: "top-right" },
|
|
6434
|
+
offset: { default: 20 }
|
|
6435
|
+
},
|
|
6436
|
+
emits: ["close", "destroy", "click"],
|
|
6437
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6438
|
+
const props = __props;
|
|
6439
|
+
const emit = __emit;
|
|
6440
|
+
const visible = ref(false);
|
|
6441
|
+
let timer = null;
|
|
6442
|
+
const iconName = computed(() => {
|
|
6443
|
+
const map = {
|
|
6444
|
+
info: InformationCircle,
|
|
6445
|
+
success: CheckmarkCircle,
|
|
6446
|
+
warning: Warning,
|
|
6447
|
+
failed: CloseCircle
|
|
6448
|
+
};
|
|
6449
|
+
return map[props.type];
|
|
6450
|
+
});
|
|
6451
|
+
const isTop = computed(() => props.position.startsWith("top"));
|
|
6452
|
+
const isRight = computed(() => props.position.endsWith("right"));
|
|
6453
|
+
const rootStyle = computed(() => ({
|
|
6454
|
+
[isTop.value ? "top" : "bottom"]: `${props.offset}px`,
|
|
6455
|
+
[isRight.value ? "right" : "left"]: "20px"
|
|
6456
|
+
}));
|
|
6457
|
+
const startTimer = () => {
|
|
6458
|
+
if (props.duration <= 0) return;
|
|
6459
|
+
timer = setTimeout(() => {
|
|
6460
|
+
close();
|
|
6461
|
+
}, props.duration);
|
|
6462
|
+
};
|
|
6463
|
+
const clearTimer = () => {
|
|
6464
|
+
if (timer) {
|
|
6465
|
+
clearTimeout(timer);
|
|
6466
|
+
timer = null;
|
|
6467
|
+
}
|
|
6468
|
+
};
|
|
6469
|
+
const close = () => {
|
|
6470
|
+
clearTimer();
|
|
6471
|
+
visible.value = false;
|
|
6472
|
+
emit("close");
|
|
6473
|
+
};
|
|
6474
|
+
const handleAfterLeave = () => emit("destroy");
|
|
6475
|
+
const handleClick = () => emit("click");
|
|
6476
|
+
onMounted(() => {
|
|
6477
|
+
visible.value = true;
|
|
6478
|
+
startTimer();
|
|
6479
|
+
});
|
|
6480
|
+
onBeforeUnmount(() => {
|
|
6481
|
+
clearTimer();
|
|
6482
|
+
});
|
|
6483
|
+
__expose({ close });
|
|
6484
|
+
return (_ctx, _cache) => {
|
|
6485
|
+
return openBlock(), createBlock(Transition, {
|
|
6486
|
+
name: `f-notification-${_ctx.position}`,
|
|
6487
|
+
onAfterLeave: handleAfterLeave
|
|
6488
|
+
}, {
|
|
6489
|
+
default: withCtx(() => [
|
|
6490
|
+
unref(visible) ? (openBlock(), createElementBlock("div", {
|
|
6491
|
+
key: 0,
|
|
6492
|
+
class: normalizeClass(["f-notification", [`f-notification--${_ctx.type}`]]),
|
|
6493
|
+
style: normalizeStyle(unref(rootStyle)),
|
|
6494
|
+
role: "alert",
|
|
6495
|
+
onMouseenter: clearTimer,
|
|
6496
|
+
onMouseleave: startTimer,
|
|
6497
|
+
onClick: handleClick
|
|
6498
|
+
}, [
|
|
6499
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon, {
|
|
6500
|
+
key: 0,
|
|
6501
|
+
class: "f-notification__icon"
|
|
6502
|
+
}, {
|
|
6503
|
+
default: withCtx(() => [
|
|
6504
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(iconName))))
|
|
6505
|
+
]),
|
|
6506
|
+
_: 1
|
|
6507
|
+
})) : createCommentVNode("", true),
|
|
6508
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
6509
|
+
_ctx.title ? (openBlock(), createElementBlock("p", _hoisted_2$2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
6510
|
+
createElementVNode("p", _hoisted_3$2, toDisplayString(_ctx.message), 1)
|
|
6511
|
+
]),
|
|
6512
|
+
_ctx.closable ? (openBlock(), createElementBlock("button", {
|
|
6513
|
+
key: 1,
|
|
6514
|
+
type: "button",
|
|
6515
|
+
class: "f-notification__close",
|
|
6516
|
+
"aria-label": "close",
|
|
6517
|
+
onClick: withModifiers(close, ["stop"])
|
|
6518
|
+
}, [
|
|
6519
|
+
createVNode(FIcon, null, {
|
|
6520
|
+
default: withCtx(() => [
|
|
6521
|
+
createVNode(unref(Close))
|
|
6522
|
+
]),
|
|
6523
|
+
_: 1
|
|
6524
|
+
})
|
|
6525
|
+
])) : createCommentVNode("", true)
|
|
6526
|
+
], 38)) : createCommentVNode("", true)
|
|
6527
|
+
]),
|
|
6528
|
+
_: 1
|
|
6529
|
+
}, 8, ["name"]);
|
|
6530
|
+
};
|
|
6531
|
+
}
|
|
6532
|
+
});
|
|
6533
|
+
const FNotificationComp$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7600a501"]]);
|
|
6534
|
+
const GAP$2 = 16;
|
|
6535
|
+
const BASE_OFFSET$2 = 20;
|
|
6536
|
+
let seed$2 = 0;
|
|
6537
|
+
const groups$1 = {
|
|
6538
|
+
"top-right": [],
|
|
6539
|
+
"top-left": [],
|
|
6540
|
+
"bottom-right": [],
|
|
6541
|
+
"bottom-left": []
|
|
6542
|
+
};
|
|
6543
|
+
const normalizeOptions$2 = (options) => {
|
|
6544
|
+
return typeof options === "string" ? { message: options } : options;
|
|
6545
|
+
};
|
|
6546
|
+
const repositionGroup$1 = (position) => {
|
|
6547
|
+
let offset = BASE_OFFSET$2;
|
|
6548
|
+
groups$1[position].forEach((item) => {
|
|
6549
|
+
const vm = item.vnode.component;
|
|
6550
|
+
if (vm) {
|
|
6551
|
+
vm.props.offset = offset;
|
|
6552
|
+
}
|
|
6553
|
+
offset += Number(item.size) + GAP$2;
|
|
6554
|
+
});
|
|
6555
|
+
};
|
|
6556
|
+
const removeInstance$2 = (position, id) => {
|
|
6557
|
+
const list = groups$1[position];
|
|
6558
|
+
const index = list.findIndex((item) => item.id === id);
|
|
6559
|
+
if (index === -1) return;
|
|
6560
|
+
const { container } = list[index];
|
|
6561
|
+
render(null, container);
|
|
6562
|
+
container.remove();
|
|
6563
|
+
list.splice(index, 1);
|
|
6564
|
+
repositionGroup$1(position);
|
|
6565
|
+
};
|
|
6566
|
+
const createInstance$2 = (options) => {
|
|
6567
|
+
var _a, _b;
|
|
6568
|
+
const id = seed$2++;
|
|
6569
|
+
const position = (_a = options.position) != null ? _a : "top-right";
|
|
6570
|
+
const list = groups$1[position];
|
|
6571
|
+
const container = document.createElement("div");
|
|
6572
|
+
const offset = list.length === 0 ? BASE_OFFSET$2 : (() => {
|
|
6573
|
+
var _a2;
|
|
6574
|
+
const last = list[list.length - 1];
|
|
6575
|
+
return Number((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + Number(last.size) + GAP$2;
|
|
6576
|
+
})();
|
|
6577
|
+
const vnode = createVNode(FNotificationComp$1, __spreadProps2(__spreadValues2({}, options), {
|
|
6578
|
+
position,
|
|
6579
|
+
offset,
|
|
6580
|
+
onClose: () => {
|
|
6581
|
+
var _a2;
|
|
6582
|
+
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
6583
|
+
},
|
|
6584
|
+
onDestroy: () => {
|
|
6585
|
+
removeInstance$2(position, id);
|
|
6586
|
+
},
|
|
6587
|
+
onClick: () => {
|
|
6588
|
+
var _a2;
|
|
6589
|
+
(_a2 = options.onClick) == null ? void 0 : _a2.call(options);
|
|
6590
|
+
}
|
|
6591
|
+
}));
|
|
6592
|
+
render(vnode, container);
|
|
6593
|
+
document.body.appendChild(container);
|
|
6594
|
+
const el = vnode.el;
|
|
6595
|
+
const size = (_b = el == null ? void 0 : el.offsetHeight) != null ? _b : 72;
|
|
6596
|
+
list.push({ id, position, vnode, container, size });
|
|
6597
|
+
return {
|
|
6598
|
+
id,
|
|
6599
|
+
close: () => {
|
|
6600
|
+
var _a2, _b2, _c;
|
|
6601
|
+
(_c = (_b2 = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b2.close) == null ? void 0 : _c.call(_b2);
|
|
6602
|
+
}
|
|
6603
|
+
};
|
|
6604
|
+
};
|
|
6605
|
+
const FNotification$1 = (options) => {
|
|
6606
|
+
return createInstance$2(normalizeOptions$2(options));
|
|
6607
|
+
};
|
|
6608
|
+
const withType$2 = (type) => (options) => createInstance$2(__spreadProps2(__spreadValues2({}, normalizeOptions$2(options)), { type }));
|
|
6609
|
+
FNotification$1.info = withType$2("info");
|
|
6610
|
+
FNotification$1.success = withType$2("success");
|
|
6611
|
+
FNotification$1.warning = withType$2("warning");
|
|
6612
|
+
FNotification$1.failed = withType$2("failed");
|
|
6613
|
+
FNotification$1.closeAll = (position) => {
|
|
6614
|
+
const positions = position ? [position] : Object.keys(groups$1);
|
|
6615
|
+
positions.forEach((pos) => {
|
|
6616
|
+
[...groups$1[pos]].forEach((item) => {
|
|
6617
|
+
var _a, _b, _c;
|
|
6618
|
+
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
6619
|
+
});
|
|
6620
|
+
});
|
|
6621
|
+
};
|
|
6622
|
+
const _hoisted_1$2 = { class: "f-result__icon" };
|
|
6623
|
+
const _hoisted_2$1 = {
|
|
5566
6624
|
key: 0,
|
|
5567
6625
|
class: "f-result__code"
|
|
5568
6626
|
};
|
|
5569
|
-
const _hoisted_3 = {
|
|
6627
|
+
const _hoisted_3$1 = {
|
|
5570
6628
|
key: 0,
|
|
5571
6629
|
class: "f-result__title"
|
|
5572
6630
|
};
|
|
@@ -5582,7 +6640,7 @@ const _hoisted_6 = {
|
|
|
5582
6640
|
key: 3,
|
|
5583
6641
|
class: "f-result__content"
|
|
5584
6642
|
};
|
|
5585
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6643
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5586
6644
|
__name: "FResult",
|
|
5587
6645
|
props: {
|
|
5588
6646
|
status: { default: "info" },
|
|
@@ -5608,9 +6666,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5608
6666
|
return openBlock(), createElementBlock("div", {
|
|
5609
6667
|
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
5610
6668
|
}, [
|
|
5611
|
-
createElementVNode("div", _hoisted_1, [
|
|
6669
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
5612
6670
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
5613
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(unref(FIcon), {
|
|
6671
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(unref(FIcon), {
|
|
5614
6672
|
key: 1,
|
|
5615
6673
|
size: 72
|
|
5616
6674
|
}, {
|
|
@@ -5621,7 +6679,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5621
6679
|
}))
|
|
5622
6680
|
], true)
|
|
5623
6681
|
]),
|
|
5624
|
-
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
6682
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
5625
6683
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
5626
6684
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
5627
6685
|
], true)
|
|
@@ -5641,7 +6699,384 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5641
6699
|
};
|
|
5642
6700
|
}
|
|
5643
6701
|
});
|
|
5644
|
-
const FResult = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-c8f97d09"]]);
|
|
6702
|
+
const FResult = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-c8f97d09"]]);
|
|
6703
|
+
const _hoisted_1$1 = { class: "f-message__content" };
|
|
6704
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6705
|
+
__name: "FMessage",
|
|
6706
|
+
props: {
|
|
6707
|
+
type: { default: "info" },
|
|
6708
|
+
message: {},
|
|
6709
|
+
duration: { default: 3e3 },
|
|
6710
|
+
closable: { type: Boolean, default: false },
|
|
6711
|
+
showIcon: { type: Boolean, default: true },
|
|
6712
|
+
offset: { default: 20 }
|
|
6713
|
+
},
|
|
6714
|
+
emits: ["close", "destroy"],
|
|
6715
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6716
|
+
const props = __props;
|
|
6717
|
+
const emit = __emit;
|
|
6718
|
+
const visible = ref(false);
|
|
6719
|
+
let timer = null;
|
|
6720
|
+
const iconName = computed(() => {
|
|
6721
|
+
const map = {
|
|
6722
|
+
info: InformationCircle,
|
|
6723
|
+
success: CheckmarkCircle,
|
|
6724
|
+
warning: Warning,
|
|
6725
|
+
failed: CloseCircle
|
|
6726
|
+
};
|
|
6727
|
+
return map[props.type];
|
|
6728
|
+
});
|
|
6729
|
+
const rootStyle = computed(() => ({
|
|
6730
|
+
top: `${props.offset}px`
|
|
6731
|
+
}));
|
|
6732
|
+
const startTimer = () => {
|
|
6733
|
+
if (props.duration <= 0) return;
|
|
6734
|
+
timer = setTimeout(() => {
|
|
6735
|
+
close();
|
|
6736
|
+
}, props.duration);
|
|
6737
|
+
};
|
|
6738
|
+
const clearTimer = () => {
|
|
6739
|
+
if (timer) {
|
|
6740
|
+
clearTimeout(timer);
|
|
6741
|
+
timer = null;
|
|
6742
|
+
}
|
|
6743
|
+
};
|
|
6744
|
+
const close = () => {
|
|
6745
|
+
clearTimer();
|
|
6746
|
+
visible.value = false;
|
|
6747
|
+
emit("close");
|
|
6748
|
+
};
|
|
6749
|
+
const handleAfterLeave = () => emit("destroy");
|
|
6750
|
+
onMounted(() => {
|
|
6751
|
+
visible.value = true;
|
|
6752
|
+
startTimer();
|
|
6753
|
+
});
|
|
6754
|
+
onBeforeUnmount(() => {
|
|
6755
|
+
clearTimer();
|
|
6756
|
+
});
|
|
6757
|
+
__expose({ close });
|
|
6758
|
+
return (_ctx, _cache) => {
|
|
6759
|
+
return openBlock(), createBlock(Transition, {
|
|
6760
|
+
name: "f-message-fade",
|
|
6761
|
+
onAfterLeave: handleAfterLeave
|
|
6762
|
+
}, {
|
|
6763
|
+
default: withCtx(() => [
|
|
6764
|
+
unref(visible) ? (openBlock(), createElementBlock("div", {
|
|
6765
|
+
key: 0,
|
|
6766
|
+
class: normalizeClass(["f-message", [`f-message--${_ctx.type}`]]),
|
|
6767
|
+
style: normalizeStyle(unref(rootStyle)),
|
|
6768
|
+
role: "alert",
|
|
6769
|
+
onMouseenter: clearTimer,
|
|
6770
|
+
onMouseleave: startTimer
|
|
6771
|
+
}, [
|
|
6772
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$1, {
|
|
6773
|
+
key: 0,
|
|
6774
|
+
class: "f-message__icon"
|
|
6775
|
+
}, {
|
|
6776
|
+
default: withCtx(() => [
|
|
6777
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(iconName))))
|
|
6778
|
+
]),
|
|
6779
|
+
_: 1
|
|
6780
|
+
})) : createCommentVNode("", true),
|
|
6781
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(_ctx.message), 1),
|
|
6782
|
+
_ctx.closable ? (openBlock(), createElementBlock("button", {
|
|
6783
|
+
key: 1,
|
|
6784
|
+
type: "button",
|
|
6785
|
+
class: "f-message__close",
|
|
6786
|
+
"aria-label": "close",
|
|
6787
|
+
onClick: close
|
|
6788
|
+
}, [
|
|
6789
|
+
createVNode(FIcon$1, null, {
|
|
6790
|
+
default: withCtx(() => [
|
|
6791
|
+
createVNode(unref(Close))
|
|
6792
|
+
]),
|
|
6793
|
+
_: 1
|
|
6794
|
+
})
|
|
6795
|
+
])) : createCommentVNode("", true)
|
|
6796
|
+
], 38)) : createCommentVNode("", true)
|
|
6797
|
+
]),
|
|
6798
|
+
_: 1
|
|
6799
|
+
});
|
|
6800
|
+
};
|
|
6801
|
+
}
|
|
6802
|
+
});
|
|
6803
|
+
const FMessageComp = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-3aba692f"]]);
|
|
6804
|
+
const GAP$1 = 16;
|
|
6805
|
+
const BASE_OFFSET$1 = 20;
|
|
6806
|
+
let seed$1 = 0;
|
|
6807
|
+
const instances = [];
|
|
6808
|
+
const normalizeOptions$1 = (options) => {
|
|
6809
|
+
return typeof options === "string" ? { message: options } : options;
|
|
6810
|
+
};
|
|
6811
|
+
const repositionAll = () => {
|
|
6812
|
+
let offset = BASE_OFFSET$1;
|
|
6813
|
+
instances.forEach((item) => {
|
|
6814
|
+
const vm = item.vnode.component;
|
|
6815
|
+
if (vm) {
|
|
6816
|
+
vm.props.offset = offset;
|
|
6817
|
+
}
|
|
6818
|
+
offset += item.height + GAP$1;
|
|
6819
|
+
});
|
|
6820
|
+
};
|
|
6821
|
+
const removeInstance$1 = (id) => {
|
|
6822
|
+
const index = instances.findIndex((item) => item.id === id);
|
|
6823
|
+
if (index === -1) return;
|
|
6824
|
+
const { container } = instances[index];
|
|
6825
|
+
render(null, container);
|
|
6826
|
+
container.remove();
|
|
6827
|
+
instances.splice(index, 1);
|
|
6828
|
+
repositionAll();
|
|
6829
|
+
};
|
|
6830
|
+
const createInstance$1 = (options) => {
|
|
6831
|
+
var _a;
|
|
6832
|
+
const id = seed$1++;
|
|
6833
|
+
const container = document.createElement("div");
|
|
6834
|
+
const offset = instances.length === 0 ? BASE_OFFSET$1 : (() => {
|
|
6835
|
+
var _a2;
|
|
6836
|
+
const last = instances[instances.length - 1];
|
|
6837
|
+
return ((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + last.height + GAP$1;
|
|
6838
|
+
})();
|
|
6839
|
+
const vnode = createVNode(FMessageComp, __spreadProps(__spreadValues({}, options), {
|
|
6840
|
+
offset,
|
|
6841
|
+
onClose: () => {
|
|
6842
|
+
var _a2;
|
|
6843
|
+
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
6844
|
+
},
|
|
6845
|
+
onDestroy: () => {
|
|
6846
|
+
removeInstance$1(id);
|
|
6847
|
+
}
|
|
6848
|
+
}));
|
|
6849
|
+
render(vnode, container);
|
|
6850
|
+
document.body.appendChild(container);
|
|
6851
|
+
const el = vnode.el;
|
|
6852
|
+
const height = (_a = el == null ? void 0 : el.offsetHeight) != null ? _a : 44;
|
|
6853
|
+
instances.push({ id, vnode, container, height });
|
|
6854
|
+
return {
|
|
6855
|
+
id,
|
|
6856
|
+
close: () => {
|
|
6857
|
+
var _a2, _b, _c;
|
|
6858
|
+
(_c = (_b = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
6859
|
+
}
|
|
6860
|
+
};
|
|
6861
|
+
};
|
|
6862
|
+
const FMessage = (options) => {
|
|
6863
|
+
return createInstance$1(normalizeOptions$1(options));
|
|
6864
|
+
};
|
|
6865
|
+
const withType$1 = (type) => (options) => createInstance$1(__spreadProps(__spreadValues({}, normalizeOptions$1(options)), { type }));
|
|
6866
|
+
FMessage.info = withType$1("info");
|
|
6867
|
+
FMessage.success = withType$1("success");
|
|
6868
|
+
FMessage.warning = withType$1("warning");
|
|
6869
|
+
FMessage.failed = withType$1("failed");
|
|
6870
|
+
FMessage.closeAll = () => {
|
|
6871
|
+
[...instances].forEach((item) => {
|
|
6872
|
+
var _a, _b, _c;
|
|
6873
|
+
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
6874
|
+
});
|
|
6875
|
+
};
|
|
6876
|
+
const _hoisted_1 = { class: "f-notification__body" };
|
|
6877
|
+
const _hoisted_2 = {
|
|
6878
|
+
key: 0,
|
|
6879
|
+
class: "f-notification__title"
|
|
6880
|
+
};
|
|
6881
|
+
const _hoisted_3 = { class: "f-notification__content" };
|
|
6882
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6883
|
+
__name: "FNotification",
|
|
6884
|
+
props: {
|
|
6885
|
+
type: { default: "info" },
|
|
6886
|
+
title: {},
|
|
6887
|
+
message: {},
|
|
6888
|
+
duration: { default: 4500 },
|
|
6889
|
+
closable: { type: Boolean, default: true },
|
|
6890
|
+
showIcon: { type: Boolean, default: true },
|
|
6891
|
+
position: { default: "top-right" },
|
|
6892
|
+
offset: { default: 20 }
|
|
6893
|
+
},
|
|
6894
|
+
emits: ["close", "destroy", "click"],
|
|
6895
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6896
|
+
const props = __props;
|
|
6897
|
+
const emit = __emit;
|
|
6898
|
+
const visible = ref(false);
|
|
6899
|
+
let timer = null;
|
|
6900
|
+
const iconName = computed(() => {
|
|
6901
|
+
const map = {
|
|
6902
|
+
info: InformationCircle,
|
|
6903
|
+
success: CheckmarkCircle,
|
|
6904
|
+
warning: Warning,
|
|
6905
|
+
failed: CloseCircle
|
|
6906
|
+
};
|
|
6907
|
+
return map[props.type];
|
|
6908
|
+
});
|
|
6909
|
+
const isTop = computed(() => props.position.startsWith("top"));
|
|
6910
|
+
const isRight = computed(() => props.position.endsWith("right"));
|
|
6911
|
+
const rootStyle = computed(() => ({
|
|
6912
|
+
[isTop.value ? "top" : "bottom"]: `${props.offset}px`,
|
|
6913
|
+
[isRight.value ? "right" : "left"]: "20px"
|
|
6914
|
+
}));
|
|
6915
|
+
const startTimer = () => {
|
|
6916
|
+
if (props.duration <= 0) return;
|
|
6917
|
+
timer = setTimeout(() => {
|
|
6918
|
+
close();
|
|
6919
|
+
}, props.duration);
|
|
6920
|
+
};
|
|
6921
|
+
const clearTimer = () => {
|
|
6922
|
+
if (timer) {
|
|
6923
|
+
clearTimeout(timer);
|
|
6924
|
+
timer = null;
|
|
6925
|
+
}
|
|
6926
|
+
};
|
|
6927
|
+
const close = () => {
|
|
6928
|
+
clearTimer();
|
|
6929
|
+
visible.value = false;
|
|
6930
|
+
emit("close");
|
|
6931
|
+
};
|
|
6932
|
+
const handleAfterLeave = () => emit("destroy");
|
|
6933
|
+
const handleClick = () => emit("click");
|
|
6934
|
+
onMounted(() => {
|
|
6935
|
+
visible.value = true;
|
|
6936
|
+
startTimer();
|
|
6937
|
+
});
|
|
6938
|
+
onBeforeUnmount(() => {
|
|
6939
|
+
clearTimer();
|
|
6940
|
+
});
|
|
6941
|
+
__expose({ close });
|
|
6942
|
+
return (_ctx, _cache) => {
|
|
6943
|
+
return openBlock(), createBlock(Transition, {
|
|
6944
|
+
name: `f-notification-${_ctx.position}`,
|
|
6945
|
+
onAfterLeave: handleAfterLeave
|
|
6946
|
+
}, {
|
|
6947
|
+
default: withCtx(() => [
|
|
6948
|
+
unref(visible) ? (openBlock(), createElementBlock("div", {
|
|
6949
|
+
key: 0,
|
|
6950
|
+
class: normalizeClass(["f-notification", [`f-notification--${_ctx.type}`]]),
|
|
6951
|
+
style: normalizeStyle(unref(rootStyle)),
|
|
6952
|
+
role: "alert",
|
|
6953
|
+
onMouseenter: clearTimer,
|
|
6954
|
+
onMouseleave: startTimer,
|
|
6955
|
+
onClick: handleClick
|
|
6956
|
+
}, [
|
|
6957
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$1, {
|
|
6958
|
+
key: 0,
|
|
6959
|
+
class: "f-notification__icon"
|
|
6960
|
+
}, {
|
|
6961
|
+
default: withCtx(() => [
|
|
6962
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(iconName))))
|
|
6963
|
+
]),
|
|
6964
|
+
_: 1
|
|
6965
|
+
})) : createCommentVNode("", true),
|
|
6966
|
+
createElementVNode("div", _hoisted_1, [
|
|
6967
|
+
_ctx.title ? (openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
6968
|
+
createElementVNode("p", _hoisted_3, toDisplayString(_ctx.message), 1)
|
|
6969
|
+
]),
|
|
6970
|
+
_ctx.closable ? (openBlock(), createElementBlock("button", {
|
|
6971
|
+
key: 1,
|
|
6972
|
+
type: "button",
|
|
6973
|
+
class: "f-notification__close",
|
|
6974
|
+
"aria-label": "close",
|
|
6975
|
+
onClick: withModifiers(close, ["stop"])
|
|
6976
|
+
}, [
|
|
6977
|
+
createVNode(FIcon$1, null, {
|
|
6978
|
+
default: withCtx(() => [
|
|
6979
|
+
createVNode(unref(Close))
|
|
6980
|
+
]),
|
|
6981
|
+
_: 1
|
|
6982
|
+
})
|
|
6983
|
+
])) : createCommentVNode("", true)
|
|
6984
|
+
], 38)) : createCommentVNode("", true)
|
|
6985
|
+
]),
|
|
6986
|
+
_: 1
|
|
6987
|
+
}, 8, ["name"]);
|
|
6988
|
+
};
|
|
6989
|
+
}
|
|
6990
|
+
});
|
|
6991
|
+
const FNotificationComp = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-7600a501"]]);
|
|
6992
|
+
const GAP = 16;
|
|
6993
|
+
const BASE_OFFSET = 20;
|
|
6994
|
+
let seed = 0;
|
|
6995
|
+
const groups = {
|
|
6996
|
+
"top-right": [],
|
|
6997
|
+
"top-left": [],
|
|
6998
|
+
"bottom-right": [],
|
|
6999
|
+
"bottom-left": []
|
|
7000
|
+
};
|
|
7001
|
+
const normalizeOptions = (options) => {
|
|
7002
|
+
return typeof options === "string" ? { message: options } : options;
|
|
7003
|
+
};
|
|
7004
|
+
const repositionGroup = (position) => {
|
|
7005
|
+
let offset = BASE_OFFSET;
|
|
7006
|
+
groups[position].forEach((item) => {
|
|
7007
|
+
const vm = item.vnode.component;
|
|
7008
|
+
if (vm) {
|
|
7009
|
+
vm.props.offset = offset;
|
|
7010
|
+
}
|
|
7011
|
+
offset += Number(item.size) + GAP;
|
|
7012
|
+
});
|
|
7013
|
+
};
|
|
7014
|
+
const removeInstance = (position, id) => {
|
|
7015
|
+
const list = groups[position];
|
|
7016
|
+
const index = list.findIndex((item) => item.id === id);
|
|
7017
|
+
if (index === -1) return;
|
|
7018
|
+
const { container } = list[index];
|
|
7019
|
+
render(null, container);
|
|
7020
|
+
container.remove();
|
|
7021
|
+
list.splice(index, 1);
|
|
7022
|
+
repositionGroup(position);
|
|
7023
|
+
};
|
|
7024
|
+
const createInstance = (options) => {
|
|
7025
|
+
var _a, _b;
|
|
7026
|
+
const id = seed++;
|
|
7027
|
+
const position = (_a = options.position) != null ? _a : "top-right";
|
|
7028
|
+
const list = groups[position];
|
|
7029
|
+
const container = document.createElement("div");
|
|
7030
|
+
const offset = list.length === 0 ? BASE_OFFSET : (() => {
|
|
7031
|
+
var _a2;
|
|
7032
|
+
const last = list[list.length - 1];
|
|
7033
|
+
return Number((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + Number(last.size) + GAP;
|
|
7034
|
+
})();
|
|
7035
|
+
const vnode = createVNode(FNotificationComp, __spreadProps(__spreadValues({}, options), {
|
|
7036
|
+
position,
|
|
7037
|
+
offset,
|
|
7038
|
+
onClose: () => {
|
|
7039
|
+
var _a2;
|
|
7040
|
+
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
7041
|
+
},
|
|
7042
|
+
onDestroy: () => {
|
|
7043
|
+
removeInstance(position, id);
|
|
7044
|
+
},
|
|
7045
|
+
onClick: () => {
|
|
7046
|
+
var _a2;
|
|
7047
|
+
(_a2 = options.onClick) == null ? void 0 : _a2.call(options);
|
|
7048
|
+
}
|
|
7049
|
+
}));
|
|
7050
|
+
render(vnode, container);
|
|
7051
|
+
document.body.appendChild(container);
|
|
7052
|
+
const el = vnode.el;
|
|
7053
|
+
const size = (_b = el == null ? void 0 : el.offsetHeight) != null ? _b : 72;
|
|
7054
|
+
list.push({ id, position, vnode, container, size });
|
|
7055
|
+
return {
|
|
7056
|
+
id,
|
|
7057
|
+
close: () => {
|
|
7058
|
+
var _a2, _b2, _c;
|
|
7059
|
+
(_c = (_b2 = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b2.close) == null ? void 0 : _c.call(_b2);
|
|
7060
|
+
}
|
|
7061
|
+
};
|
|
7062
|
+
};
|
|
7063
|
+
const FNotification = (options) => {
|
|
7064
|
+
return createInstance(normalizeOptions(options));
|
|
7065
|
+
};
|
|
7066
|
+
const withType = (type) => (options) => createInstance(__spreadProps(__spreadValues({}, normalizeOptions(options)), { type }));
|
|
7067
|
+
FNotification.info = withType("info");
|
|
7068
|
+
FNotification.success = withType("success");
|
|
7069
|
+
FNotification.warning = withType("warning");
|
|
7070
|
+
FNotification.failed = withType("failed");
|
|
7071
|
+
FNotification.closeAll = (position) => {
|
|
7072
|
+
const positions = position ? [position] : Object.keys(groups);
|
|
7073
|
+
positions.forEach((pos) => {
|
|
7074
|
+
[...groups[pos]].forEach((item) => {
|
|
7075
|
+
var _a, _b, _c;
|
|
7076
|
+
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
7077
|
+
});
|
|
7078
|
+
});
|
|
7079
|
+
};
|
|
5645
7080
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5646
7081
|
__proto__: null,
|
|
5647
7082
|
FAffix,
|
|
@@ -5654,31 +7089,33 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
5654
7089
|
FCard,
|
|
5655
7090
|
FCheckbox,
|
|
5656
7091
|
FCol,
|
|
5657
|
-
FCollapse: _sfc_main$
|
|
5658
|
-
FCollapseItem: _sfc_main$
|
|
5659
|
-
FColorPicker: _sfc_main$
|
|
7092
|
+
FCollapse: _sfc_main$a,
|
|
7093
|
+
FCollapseItem: _sfc_main$9,
|
|
7094
|
+
FColorPicker: _sfc_main$8,
|
|
5660
7095
|
FContainer,
|
|
5661
7096
|
FDialog,
|
|
5662
7097
|
FDivider,
|
|
5663
7098
|
FDropdown,
|
|
5664
7099
|
FEditor,
|
|
5665
|
-
FEmpty: _sfc_main$
|
|
7100
|
+
FEmpty: _sfc_main$7,
|
|
5666
7101
|
FForm,
|
|
5667
7102
|
FFormItem,
|
|
5668
7103
|
FIcon: FIcon$1,
|
|
5669
7104
|
FImage,
|
|
5670
7105
|
FInput,
|
|
5671
|
-
FInputNumber: _sfc_main$
|
|
7106
|
+
FInputNumber: _sfc_main$4,
|
|
5672
7107
|
FLink,
|
|
5673
7108
|
FLoading,
|
|
7109
|
+
FMessage,
|
|
7110
|
+
FNotification,
|
|
5674
7111
|
FPagination,
|
|
5675
7112
|
FProgress,
|
|
5676
7113
|
FRate,
|
|
5677
7114
|
FResult,
|
|
5678
7115
|
FRow,
|
|
5679
|
-
FScrollbar: _sfc_main$
|
|
7116
|
+
FScrollbar: _sfc_main$5,
|
|
5680
7117
|
FSelect,
|
|
5681
|
-
FSlider: _sfc_main$
|
|
7118
|
+
FSlider: _sfc_main$6,
|
|
5682
7119
|
FSpace,
|
|
5683
7120
|
FTable,
|
|
5684
7121
|
FTabs,
|
|
@@ -5704,31 +7141,33 @@ export {
|
|
|
5704
7141
|
FCard,
|
|
5705
7142
|
FCheckbox,
|
|
5706
7143
|
FCol,
|
|
5707
|
-
_sfc_main$
|
|
5708
|
-
_sfc_main$
|
|
5709
|
-
_sfc_main$
|
|
7144
|
+
_sfc_main$a as FCollapse,
|
|
7145
|
+
_sfc_main$9 as FCollapseItem,
|
|
7146
|
+
_sfc_main$8 as FColorPicker,
|
|
5710
7147
|
FContainer,
|
|
5711
7148
|
FDialog,
|
|
5712
7149
|
FDivider,
|
|
5713
7150
|
FDropdown,
|
|
5714
7151
|
FEditor,
|
|
5715
|
-
_sfc_main$
|
|
7152
|
+
_sfc_main$7 as FEmpty,
|
|
5716
7153
|
FForm,
|
|
5717
7154
|
FFormItem,
|
|
5718
7155
|
FIcon$1 as FIcon,
|
|
5719
7156
|
FImage,
|
|
5720
7157
|
FInput,
|
|
5721
|
-
_sfc_main$
|
|
7158
|
+
_sfc_main$4 as FInputNumber,
|
|
5722
7159
|
FLink,
|
|
5723
7160
|
FLoading,
|
|
7161
|
+
FMessage,
|
|
7162
|
+
FNotification,
|
|
5724
7163
|
FPagination,
|
|
5725
7164
|
FProgress,
|
|
5726
7165
|
FRate,
|
|
5727
7166
|
FResult,
|
|
5728
7167
|
FRow,
|
|
5729
|
-
_sfc_main$
|
|
7168
|
+
_sfc_main$5 as FScrollbar,
|
|
5730
7169
|
FSelect,
|
|
5731
|
-
_sfc_main$
|
|
7170
|
+
_sfc_main$6 as FSlider,
|
|
5732
7171
|
FSpace,
|
|
5733
7172
|
FTable,
|
|
5734
7173
|
FTabs,
|