fantasia-ui 0.2.32 → 0.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +50 -4
- package/README.md +48 -2
- package/dist/fantasia-ui.css +11 -11
- package/dist/fantasia-ui.es.js +327 -3112
- package/dist/fantasia-ui.umd.js +326 -3111
- package/dist/types/components/index.d.ts +6 -2
- package/package.json +3 -3
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -38,9 +38,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, 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,
|
|
41
|
+
import { Search, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, DocumentOutline, InformationCircle, AlertCircle, CheckmarkCircle, Warning } from "@vicons/ionicons5";
|
|
42
42
|
import { useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -64,24 +64,24 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
const _export_sfc
|
|
67
|
+
const _export_sfc = (sfc, props) => {
|
|
68
68
|
const target = sfc.__vccOpts || sfc;
|
|
69
69
|
for (const [key, val] of props) {
|
|
70
70
|
target[key] = val;
|
|
71
71
|
}
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
|
-
const FIcon
|
|
74
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__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$u = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$n = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
84
|
-
const _sfc_main$
|
|
84
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
85
85
|
__name: "FLoading",
|
|
86
86
|
props: {
|
|
87
87
|
type: { default: "dots" },
|
|
@@ -94,7 +94,7 @@ const _sfc_main$I = /* @__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$u, [
|
|
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$I = /* @__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$n, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const FLoading = /* @__PURE__ */ _export_sfc
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
113
|
+
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
+
const _hoisted_1$t = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$m = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$j = {
|
|
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$G = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
127
127
|
src: {},
|
|
@@ -138,10 +138,10 @@ const _sfc_main$H = /* @__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$t, [
|
|
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$m, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,9 +149,9 @@ const _sfc_main$H = /* @__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$j, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
|
-
createVNode(FIcon
|
|
154
|
+
createVNode(FIcon, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
156
156
|
createVNode(unref(PictureError))
|
|
157
157
|
]),
|
|
@@ -176,9 +176,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _sfc_main$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
+
const _hoisted_1$s = ["type", "placeholder", "disabled", "readonly", "name", "id"];
|
|
181
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
182
182
|
__name: "FInput",
|
|
183
183
|
props: /* @__PURE__ */ mergeModels({
|
|
184
184
|
placeholder: { default: "输入..." },
|
|
@@ -213,7 +213,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
213
213
|
return openBlock(), createElementBlock("div", {
|
|
214
214
|
class: normalizeClass(["f-input", { "is-disabled": _ctx.disabled, "is-readonly": "readonly" in _ctx ? _ctx.readonly : unref(readonly) }])
|
|
215
215
|
}, [
|
|
216
|
-
createVNode(FIcon
|
|
216
|
+
createVNode(FIcon, { class: "f-input__icon" }, {
|
|
217
217
|
default: withCtx(() => [
|
|
218
218
|
createVNode(unref(Search))
|
|
219
219
|
]),
|
|
@@ -232,20 +232,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
onChange: handleChange,
|
|
233
233
|
onFocus: handleFocus,
|
|
234
234
|
onBlur: handleBlur
|
|
235
|
-
}, null, 40, _hoisted_1$
|
|
235
|
+
}, null, 40, _hoisted_1$s), [
|
|
236
236
|
[vModelDynamic, model.value]
|
|
237
237
|
])
|
|
238
238
|
], 2);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
|
-
const FInput = /* @__PURE__ */ _export_sfc
|
|
243
|
-
const _hoisted_1$
|
|
244
|
-
const _hoisted_2$
|
|
242
|
+
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
+
const _hoisted_1$r = ["onMousemove"];
|
|
244
|
+
const _hoisted_2$l = {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: "f-rate__score"
|
|
247
247
|
};
|
|
248
|
-
const _sfc_main$
|
|
248
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
249
249
|
__name: "FRate",
|
|
250
250
|
props: /* @__PURE__ */ mergeModels({
|
|
251
251
|
modelValue: {},
|
|
@@ -319,7 +319,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
319
319
|
onMousemove: ($event) => onMouseMove($event, index),
|
|
320
320
|
onClick
|
|
321
321
|
}, [
|
|
322
|
-
createVNode(FIcon
|
|
322
|
+
createVNode(FIcon, {
|
|
323
323
|
color: getStarColor(index),
|
|
324
324
|
size: unref(starSize)
|
|
325
325
|
}, {
|
|
@@ -328,23 +328,23 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
]),
|
|
329
329
|
_: 2
|
|
330
330
|
}, 1032, ["color", "size"])
|
|
331
|
-
], 40, _hoisted_1$
|
|
331
|
+
], 40, _hoisted_1$r);
|
|
332
332
|
}), 128)),
|
|
333
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
333
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$l, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
334
334
|
], 34);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
const FRate = /* @__PURE__ */ _export_sfc
|
|
339
|
-
const _hoisted_1$
|
|
340
|
-
const _hoisted_2$
|
|
341
|
-
const _hoisted_3$
|
|
338
|
+
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
339
|
+
const _hoisted_1$q = { class: "f-dropdown-wrapper" };
|
|
340
|
+
const _hoisted_2$k = { class: "f-dropdown-content" };
|
|
341
|
+
const _hoisted_3$i = ["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$D = /* @__PURE__ */ defineComponent({
|
|
348
348
|
__name: "FDropdown",
|
|
349
349
|
props: {
|
|
350
350
|
placement: { default: "right-start" },
|
|
@@ -513,7 +513,7 @@ const _sfc_main$E = /* @__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$q, [
|
|
517
517
|
createElementVNode("div", {
|
|
518
518
|
ref_key: "triggerRef",
|
|
519
519
|
ref: triggerRef,
|
|
@@ -543,7 +543,7 @@ const _sfc_main$E = /* @__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$k, [
|
|
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$E = /* @__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$i);
|
|
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$E = /* @__PURE__ */ defineComponent({
|
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
|
-
const FDropdown = /* @__PURE__ */ _export_sfc
|
|
570
|
-
const _sfc_main$
|
|
569
|
+
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-addb3a3b"]]);
|
|
570
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
571
571
|
__name: "FSelect",
|
|
572
572
|
props: /* @__PURE__ */ mergeModels({
|
|
573
573
|
options: {},
|
|
@@ -614,7 +614,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
614
614
|
createElementVNode("span", {
|
|
615
615
|
class: normalizeClass(["f-select__label", { "is-placeholder": !unref(hasValue) }])
|
|
616
616
|
}, toDisplayString(unref(selectedLabel)), 3),
|
|
617
|
-
createVNode(FIcon
|
|
617
|
+
createVNode(FIcon, { class: "f-select__arrow" }, {
|
|
618
618
|
default: withCtx(() => [
|
|
619
619
|
createVNode(unref(ChevronDownOutline))
|
|
620
620
|
]),
|
|
@@ -627,16 +627,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
const FSelect = /* @__PURE__ */ _export_sfc
|
|
631
|
-
const _hoisted_1$
|
|
630
|
+
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
+
const _hoisted_1$p = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "f-pagination"
|
|
634
634
|
};
|
|
635
|
-
const _hoisted_2$
|
|
635
|
+
const _hoisted_2$j = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "f-pagination__total"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_3$
|
|
639
|
+
const _hoisted_3$h = {
|
|
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$B = /* @__PURE__ */ defineComponent({
|
|
660
660
|
__name: "FPagination",
|
|
661
661
|
props: /* @__PURE__ */ mergeModels({
|
|
662
662
|
total: {},
|
|
@@ -705,10 +705,10 @@ const _sfc_main$C = /* @__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$p, [
|
|
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$j, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
712
712
|
createElementVNode("select", {
|
|
713
713
|
class: "size-select",
|
|
714
714
|
value: _ctx.pageSize,
|
|
@@ -726,7 +726,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
726
726
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === 1 }]),
|
|
727
727
|
onClick: _cache[0] || (_cache[0] = ($event) => go(currentPage.value - 1))
|
|
728
728
|
}, [
|
|
729
|
-
createVNode(FIcon
|
|
729
|
+
createVNode(FIcon, null, {
|
|
730
730
|
default: withCtx(() => [
|
|
731
731
|
createVNode(unref(ChevronBackOutline))
|
|
732
732
|
]),
|
|
@@ -736,7 +736,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
736
736
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pages), (page, index) => {
|
|
737
737
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
738
738
|
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
|
|
739
|
-
createVNode(FIcon
|
|
739
|
+
createVNode(FIcon, null, {
|
|
740
740
|
default: withCtx(() => [
|
|
741
741
|
createVNode(unref(EllipsisHorizontal))
|
|
742
742
|
]),
|
|
@@ -754,7 +754,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
754
754
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === unref(pageCount) }]),
|
|
755
755
|
onClick: _cache[1] || (_cache[1] = ($event) => go(currentPage.value + 1))
|
|
756
756
|
}, [
|
|
757
|
-
createVNode(FIcon
|
|
757
|
+
createVNode(FIcon, null, {
|
|
758
758
|
default: withCtx(() => [
|
|
759
759
|
createVNode(unref(ChevronForwardOutline))
|
|
760
760
|
]),
|
|
@@ -781,16 +781,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
|
-
const FPagination = /* @__PURE__ */ _export_sfc
|
|
785
|
-
const _hoisted_1$
|
|
784
|
+
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
+
const _hoisted_1$o = {
|
|
786
786
|
key: 0,
|
|
787
787
|
class: "f-card__header"
|
|
788
788
|
};
|
|
789
|
-
const _hoisted_2$
|
|
789
|
+
const _hoisted_2$i = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "f-card__header-extra"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$g = {
|
|
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$A = /* @__PURE__ */ defineComponent({
|
|
827
827
|
__name: "FCard",
|
|
828
828
|
props: {
|
|
829
829
|
hoverable: { type: Boolean, default: true },
|
|
@@ -835,13 +835,13 @@ const _sfc_main$B = /* @__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$o, [
|
|
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$i, [
|
|
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$g, [
|
|
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$B = /* @__PURE__ */ defineComponent({
|
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
-
const FCard = /* @__PURE__ */ _export_sfc
|
|
877
|
-
const _hoisted_1$
|
|
876
|
+
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
+
const _hoisted_1$n = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "f-tag__dot"
|
|
880
880
|
};
|
|
881
|
-
const _sfc_main$
|
|
881
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
882
882
|
__name: "FTag",
|
|
883
883
|
props: {
|
|
884
884
|
color: {},
|
|
@@ -902,9 +902,9 @@ const _sfc_main$A = /* @__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$n)) : createCommentVNode("", true),
|
|
906
906
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
907
|
-
_ctx.closable ? (openBlock(), createBlock(FIcon
|
|
907
|
+
_ctx.closable ? (openBlock(), createBlock(FIcon, {
|
|
908
908
|
key: 1,
|
|
909
909
|
class: "f-tag__close",
|
|
910
910
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emit("close"), ["stop"]))
|
|
@@ -918,8 +918,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
|
-
const FTag = /* @__PURE__ */ _export_sfc
|
|
922
|
-
const _sfc_main$
|
|
921
|
+
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-02bd5aa6"]]);
|
|
922
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
923
923
|
__name: "FTooltip",
|
|
924
924
|
props: {
|
|
925
925
|
content: {},
|
|
@@ -1023,13 +1023,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
|
-
const FTooltip = /* @__PURE__ */ _export_sfc
|
|
1027
|
-
const _hoisted_1$
|
|
1028
|
-
const _hoisted_2$
|
|
1026
|
+
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
+
const _hoisted_1$m = { class: "f-progress" };
|
|
1028
|
+
const _hoisted_2$h = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
class: "f-progress__text"
|
|
1031
1031
|
};
|
|
1032
|
-
const _sfc_main$
|
|
1032
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1033
1033
|
__name: "FProgress",
|
|
1034
1034
|
props: {
|
|
1035
1035
|
percent: {},
|
|
@@ -1041,7 +1041,7 @@ const _sfc_main$y = /* @__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$m, [
|
|
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$y = /* @__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$h, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1058
1058
|
]);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
const FProgress = /* @__PURE__ */ _export_sfc
|
|
1063
|
-
const _hoisted_1$
|
|
1064
|
-
const _hoisted_2$
|
|
1065
|
-
const _hoisted_3$
|
|
1062
|
+
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1063
|
+
const _hoisted_1$l = { class: "f-tabs__nav-container" };
|
|
1064
|
+
const _hoisted_2$g = { class: "f-tabs__nav" };
|
|
1065
|
+
const _hoisted_3$f = ["onClick"];
|
|
1066
1066
|
const _hoisted_4$7 = { class: "f-tabs__label" };
|
|
1067
|
-
const _sfc_main$
|
|
1067
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1068
1068
|
__name: "FTabs",
|
|
1069
1069
|
props: {
|
|
1070
1070
|
tabs: {},
|
|
@@ -1097,8 +1097,8 @@ const _sfc_main$x = /* @__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$l, [
|
|
1101
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
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$x = /* @__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$f);
|
|
1113
1113
|
}), 128))
|
|
1114
1114
|
])
|
|
1115
1115
|
]),
|
|
@@ -1127,17 +1127,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
|
-
const FTabs = /* @__PURE__ */ _export_sfc
|
|
1131
|
-
const _hoisted_1$
|
|
1130
|
+
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
+
const _hoisted_1$k = {
|
|
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$f = ["href"];
|
|
1136
|
+
const _hoisted_3$e = {
|
|
1137
1137
|
key: 3,
|
|
1138
1138
|
class: "f-breadcrumb__text"
|
|
1139
1139
|
};
|
|
1140
|
-
const _sfc_main$
|
|
1140
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1141
1141
|
__name: "FBreadcrumb",
|
|
1142
1142
|
props: {
|
|
1143
1143
|
items: { default: () => [] },
|
|
@@ -1165,12 +1165,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
item
|
|
1167
1167
|
}, () => [
|
|
1168
|
-
createElementVNode("span", _hoisted_1$
|
|
1168
|
+
createElementVNode("span", _hoisted_1$k, 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$f)) : (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(item.label), 1))
|
|
1174
1174
|
], 64);
|
|
1175
1175
|
}), 128))
|
|
1176
1176
|
]),
|
|
@@ -1180,8 +1180,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc
|
|
1184
|
-
const _sfc_main$
|
|
1183
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-55b15358"]]);
|
|
1184
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1185
1185
|
__name: "FCol",
|
|
1186
1186
|
props: {
|
|
1187
1187
|
span: { default: 24 },
|
|
@@ -1222,8 +1222,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
|
-
const FCol = /* @__PURE__ */ _export_sfc
|
|
1226
|
-
const _sfc_main$
|
|
1225
|
+
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5a8b0cb4"]]);
|
|
1226
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1227
1227
|
__name: "FRow",
|
|
1228
1228
|
props: {
|
|
1229
1229
|
gutter: { default: 0 },
|
|
@@ -1276,14 +1276,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
|
-
const FRow = /* @__PURE__ */ _export_sfc
|
|
1280
|
-
const _hoisted_1$
|
|
1281
|
-
const _hoisted_2$
|
|
1279
|
+
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
+
const _hoisted_1$j = { class: "f-space__item" };
|
|
1281
|
+
const _hoisted_2$e = {
|
|
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$s = /* @__PURE__ */ defineComponent({
|
|
1287
1287
|
__name: "FSpace",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
direction: { default: "horizontal" },
|
|
@@ -1337,18 +1337,18 @@ const _sfc_main$t = /* @__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$j, [
|
|
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$e, 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
|
|
1351
|
-
const _sfc_main$
|
|
1350
|
+
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-5fb3b1a0"]]);
|
|
1351
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1352
1352
|
__name: "FContainer",
|
|
1353
1353
|
props: {
|
|
1354
1354
|
gap: { default: 12 }
|
|
@@ -1368,8 +1368,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
|
-
const FContainer = /* @__PURE__ */ _export_sfc
|
|
1372
|
-
const _sfc_main$
|
|
1371
|
+
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-08450ddf"]]);
|
|
1372
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1373
1373
|
__name: "FDivider",
|
|
1374
1374
|
props: {
|
|
1375
1375
|
color: {},
|
|
@@ -1396,9 +1396,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
|
-
const FDivider = /* @__PURE__ */ _export_sfc
|
|
1400
|
-
const _hoisted_1$
|
|
1401
|
-
const _sfc_main$
|
|
1399
|
+
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
+
const _hoisted_1$i = ["src", "alt"];
|
|
1401
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1402
1402
|
__name: "FAvatar",
|
|
1403
1403
|
props: {
|
|
1404
1404
|
src: {},
|
|
@@ -1430,7 +1430,7 @@ const _sfc_main$q = /* @__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$i)) : (openBlock(), createBlock(FIcon, {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
size: 24
|
|
1436
1436
|
}, {
|
|
@@ -1443,14 +1443,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const FAvatar = /* @__PURE__ */ _export_sfc
|
|
1447
|
-
const _hoisted_1$
|
|
1448
|
-
const _hoisted_2$
|
|
1449
|
-
const _hoisted_3$
|
|
1446
|
+
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
+
const _hoisted_1$h = ["type", "disabled"];
|
|
1448
|
+
const _hoisted_2$d = { class: "f-button__inner" };
|
|
1449
|
+
const _hoisted_3$d = {
|
|
1450
1450
|
key: 0,
|
|
1451
1451
|
class: "f-loader"
|
|
1452
1452
|
};
|
|
1453
|
-
const _sfc_main$
|
|
1453
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1454
1454
|
__name: "FButton",
|
|
1455
1455
|
props: {
|
|
1456
1456
|
type: {},
|
|
@@ -1515,16 +1515,16 @@ const _sfc_main$p = /* @__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$d, [
|
|
1519
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$d)) : createCommentVNode("", true),
|
|
1520
1520
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1521
1521
|
])
|
|
1522
|
-
], 14, _hoisted_1$
|
|
1522
|
+
], 14, _hoisted_1$h);
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
|
-
const FButton = /* @__PURE__ */ _export_sfc
|
|
1527
|
-
const _sfc_main$
|
|
1526
|
+
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-8ec1ff5a"]]);
|
|
1527
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1528
1528
|
__name: "FTypography",
|
|
1529
1529
|
props: {
|
|
1530
1530
|
color: { default: "" }
|
|
@@ -1546,8 +1546,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1546
1546
|
};
|
|
1547
1547
|
}
|
|
1548
1548
|
});
|
|
1549
|
-
const FTypography = /* @__PURE__ */ _export_sfc
|
|
1550
|
-
const _sfc_main$
|
|
1549
|
+
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-50e044db"]]);
|
|
1550
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1551
1551
|
__name: "FText",
|
|
1552
1552
|
props: {
|
|
1553
1553
|
tag: { default: "span" },
|
|
@@ -1605,9 +1605,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
1607
|
});
|
|
1608
|
-
const FText = /* @__PURE__ */ _export_sfc
|
|
1609
|
-
const _hoisted_1$
|
|
1610
|
-
const _sfc_main$
|
|
1608
|
+
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1609
|
+
const _hoisted_1$g = ["href", "target", "rel"];
|
|
1610
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1611
1611
|
__name: "FLink",
|
|
1612
1612
|
props: {
|
|
1613
1613
|
href: {},
|
|
@@ -1630,13 +1630,13 @@ const _sfc_main$m = /* @__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$g);
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
});
|
|
1637
|
-
const FLink = /* @__PURE__ */ _export_sfc
|
|
1638
|
-
const _hoisted_1$
|
|
1639
|
-
const _sfc_main$
|
|
1637
|
+
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1638
|
+
const _hoisted_1$f = { class: "f-badge" };
|
|
1639
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1640
1640
|
__name: "FBadge",
|
|
1641
1641
|
props: {
|
|
1642
1642
|
value: {},
|
|
@@ -1665,7 +1665,7 @@ const _sfc_main$l = /* @__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$f, [
|
|
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$l = /* @__PURE__ */ defineComponent({
|
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
});
|
|
1679
|
-
const FBadge = /* @__PURE__ */ _export_sfc
|
|
1680
|
-
const _sfc_main$
|
|
1679
|
+
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-be6947ff"]]);
|
|
1680
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1681
1681
|
__name: "FAffix",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
placement: { default: "top-right" },
|
|
@@ -1705,8 +1705,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
1707
|
});
|
|
1708
|
-
const FAffix = /* @__PURE__ */ _export_sfc
|
|
1709
|
-
const _sfc_main$
|
|
1708
|
+
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8506d679"]]);
|
|
1709
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1710
1710
|
__name: "FForm",
|
|
1711
1711
|
props: {
|
|
1712
1712
|
model: {},
|
|
@@ -1763,7 +1763,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
1765
|
});
|
|
1766
|
-
const FForm = /* @__PURE__ */ _export_sfc
|
|
1766
|
+
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__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$e = {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
class: "star"
|
|
1851
1851
|
};
|
|
1852
|
-
const _hoisted_2$
|
|
1853
|
-
const _hoisted_3$
|
|
1852
|
+
const _hoisted_2$c = { class: "f-form-item__content" };
|
|
1853
|
+
const _hoisted_3$c = {
|
|
1854
1854
|
key: 0,
|
|
1855
1855
|
class: "f-form-item__error"
|
|
1856
1856
|
};
|
|
1857
|
-
const _sfc_main$
|
|
1857
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1858
1858
|
__name: "FFormItem",
|
|
1859
1859
|
props: {
|
|
1860
1860
|
label: {},
|
|
@@ -1920,14 +1920,14 @@ const _sfc_main$i = /* @__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$e, "*")) : createCommentVNode("", true),
|
|
1924
1924
|
createTextVNode(" " + toDisplayString(_ctx.label) + ": ", 1)
|
|
1925
1925
|
], 4)) : createCommentVNode("", true),
|
|
1926
|
-
createElementVNode("div", _hoisted_2$
|
|
1926
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
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$c, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
1931
1931
|
]),
|
|
1932
1932
|
_: 1
|
|
1933
1933
|
})
|
|
@@ -1936,14 +1936,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
1938
|
});
|
|
1939
|
-
const FFormItem = /* @__PURE__ */ _export_sfc
|
|
1940
|
-
const _hoisted_1$
|
|
1941
|
-
const _hoisted_2$
|
|
1942
|
-
const _hoisted_3$
|
|
1939
|
+
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
1940
|
+
const _hoisted_1$d = { class: "f-checkbox__wrapper" };
|
|
1941
|
+
const _hoisted_2$b = ["checked", "disabled"];
|
|
1942
|
+
const _hoisted_3$b = {
|
|
1943
1943
|
key: 0,
|
|
1944
1944
|
class: "f-checkbox__label"
|
|
1945
1945
|
};
|
|
1946
|
-
const _sfc_main$
|
|
1946
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1947
1947
|
__name: "FCheckbox",
|
|
1948
1948
|
props: /* @__PURE__ */ mergeModels({
|
|
1949
1949
|
label: {},
|
|
@@ -1965,25 +1965,25 @@ const _sfc_main$h = /* @__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$d, [
|
|
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$b),
|
|
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$b, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
1978
1978
|
], 2);
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
});
|
|
1982
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc
|
|
1983
|
-
const _hoisted_1$
|
|
1984
|
-
const _hoisted_2$
|
|
1985
|
-
const _hoisted_3$
|
|
1986
|
-
const _sfc_main$
|
|
1982
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-633b283a"]]);
|
|
1983
|
+
const _hoisted_1$c = { class: "alert__body" };
|
|
1984
|
+
const _hoisted_2$a = { class: "alert__title" };
|
|
1985
|
+
const _hoisted_3$a = { class: "alert__content" };
|
|
1986
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1987
1987
|
__name: "FAlert",
|
|
1988
1988
|
props: {
|
|
1989
1989
|
type: { default: "info" },
|
|
@@ -2003,15 +2003,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2003
2003
|
return openBlock(), createElementBlock("div", {
|
|
2004
2004
|
class: normalizeClass(["alert", `alert--${_ctx.type}`])
|
|
2005
2005
|
}, [
|
|
2006
|
-
createVNode(FIcon
|
|
2006
|
+
createVNode(FIcon, { class: "alert__icon" }, {
|
|
2007
2007
|
default: withCtx(() => [
|
|
2008
2008
|
(openBlock(), createBlock(resolveDynamicComponent(unref(config).icon)))
|
|
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$c, [
|
|
2013
|
+
createElementVNode("h4", _hoisted_2$a, toDisplayString((_a = _ctx.title) != null ? _a : unref(config).label), 1),
|
|
2014
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
2015
2015
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2016
2016
|
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
2017
2017
|
], true)
|
|
@@ -2021,10 +2021,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
|
-
const FAlert = /* @__PURE__ */ _export_sfc
|
|
2025
|
-
const _hoisted_1$
|
|
2026
|
-
const _hoisted_2$
|
|
2027
|
-
const _hoisted_3$
|
|
2024
|
+
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f16678ef"]]);
|
|
2025
|
+
const _hoisted_1$b = { class: "f-editor__toolbar" };
|
|
2026
|
+
const _hoisted_2$9 = { class: "f-editor__status" };
|
|
2027
|
+
const _hoisted_3$9 = { 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$e = /* @__PURE__ */ defineComponent({
|
|
2036
2036
|
__name: "FEditor",
|
|
2037
2037
|
props: /* @__PURE__ */ mergeModels({
|
|
2038
2038
|
placeholder: {},
|
|
@@ -2198,9 +2198,9 @@ const _sfc_main$f = /* @__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$b, [
|
|
2202
|
+
createElementVNode("span", _hoisted_2$9, [
|
|
2203
|
+
createElementVNode("span", _hoisted_3$9, 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$f = /* @__PURE__ */ defineComponent({
|
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
|
-
const FEditor = /* @__PURE__ */ _export_sfc
|
|
2287
|
-
const _hoisted_1$
|
|
2288
|
-
const _hoisted_2$
|
|
2286
|
+
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6d590649"]]);
|
|
2287
|
+
const _hoisted_1$a = { class: "f-table" };
|
|
2288
|
+
const _hoisted_2$8 = {
|
|
2289
2289
|
key: 0,
|
|
2290
2290
|
class: "f-table__loading"
|
|
2291
2291
|
};
|
|
2292
|
-
const _hoisted_3$
|
|
2292
|
+
const _hoisted_3$8 = { 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$d = /* @__PURE__ */ defineComponent({
|
|
2321
2321
|
__name: "FTable",
|
|
2322
2322
|
props: {
|
|
2323
2323
|
data: {},
|
|
@@ -2381,8 +2381,8 @@ const _sfc_main$e = /* @__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$a, [
|
|
2385
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
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$e = /* @__PURE__ */ defineComponent({
|
|
|
2392
2392
|
ref: scrollEl,
|
|
2393
2393
|
onScroll
|
|
2394
2394
|
}, [
|
|
2395
|
-
createElementVNode("table", _hoisted_3$
|
|
2395
|
+
createElementVNode("table", _hoisted_3$8, [
|
|
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$e = /* @__PURE__ */ defineComponent({
|
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
2490
|
});
|
|
2491
|
-
const FTable = /* @__PURE__ */ _export_sfc
|
|
2492
|
-
const _sfc_main$
|
|
2491
|
+
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-01724962"]]);
|
|
2492
|
+
const _sfc_main$c = /* @__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$d = /* @__PURE__ */ defineComponent({
|
|
|
2544
2544
|
};
|
|
2545
2545
|
}
|
|
2546
2546
|
});
|
|
2547
|
-
const FDialog = /* @__PURE__ */ _export_sfc
|
|
2548
|
-
const _hoisted_1$
|
|
2549
|
-
const _hoisted_2$
|
|
2550
|
-
const _hoisted_3$
|
|
2547
|
+
const FDialog = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31496822"]]);
|
|
2548
|
+
const _hoisted_1$9 = { class: "f-upload" };
|
|
2549
|
+
const _hoisted_2$7 = { class: "f-upload__label" };
|
|
2550
|
+
const _hoisted_3$7 = ["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$b = /* @__PURE__ */ defineComponent({
|
|
2558
2558
|
__name: "FUpload",
|
|
2559
2559
|
props: /* @__PURE__ */ mergeModels({
|
|
2560
2560
|
accept: {},
|
|
@@ -2605,22 +2605,22 @@ const _sfc_main$c = /* @__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$9, [
|
|
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$7, [
|
|
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$7),
|
|
2622
2622
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2623
|
-
createVNode(FIcon
|
|
2623
|
+
createVNode(FIcon, { size: 40 }, {
|
|
2624
2624
|
default: withCtx(() => [
|
|
2625
2625
|
createVNode(unref(CloudUpload))
|
|
2626
2626
|
]),
|
|
@@ -2632,7 +2632,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2632
2632
|
])
|
|
2633
2633
|
], 34),
|
|
2634
2634
|
file.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
2635
|
-
createVNode(FIcon
|
|
2635
|
+
createVNode(FIcon, null, {
|
|
2636
2636
|
default: withCtx(() => [
|
|
2637
2637
|
createVNode(unref(DocumentOutline))
|
|
2638
2638
|
]),
|
|
@@ -2646,7 +2646,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2646
2646
|
"show-text": ""
|
|
2647
2647
|
}, null, 8, ["percent"])) : createCommentVNode("", true)
|
|
2648
2648
|
]),
|
|
2649
|
-
createVNode(FIcon
|
|
2649
|
+
createVNode(FIcon, {
|
|
2650
2650
|
onClick: withModifiers(clearFile, ["stop"]),
|
|
2651
2651
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => isCloseHover.value = true),
|
|
2652
2652
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => isCloseHover.value = false),
|
|
@@ -2662,8 +2662,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
|
-
const FUpload = /* @__PURE__ */ _export_sfc
|
|
2666
|
-
const _sfc_main$
|
|
2665
|
+
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-07b95a32"]]);
|
|
2666
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2667
2667
|
__name: "FButtonGroup",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
size: { default: "normal" },
|
|
@@ -2684,9 +2684,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc
|
|
2688
|
-
const _hoisted_1$
|
|
2689
|
-
const _sfc_main$
|
|
2687
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-62561657"]]);
|
|
2688
|
+
const _hoisted_1$8 = { class: "f-collapse" };
|
|
2689
|
+
const _sfc_main$9 = /* @__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$a = /* @__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$8, [
|
|
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$7 = { class: "f-collapse-item__header-title" };
|
|
2736
|
+
const _hoisted_2$6 = { class: "f-collapse-item__wrapper" };
|
|
2737
|
+
const _hoisted_3$6 = { class: "f-collapse-item__content" };
|
|
2738
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2739
2739
|
__name: "FCollapseItem",
|
|
2740
2740
|
props: {
|
|
2741
2741
|
name: {},
|
|
@@ -2779,7 +2779,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2779
2779
|
onClick: handleHeaderClick
|
|
2780
2780
|
}, [
|
|
2781
2781
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2782
|
-
createElementVNode("span", _hoisted_1$
|
|
2782
|
+
createElementVNode("span", _hoisted_1$7, 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$9 = /* @__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$6, [
|
|
2807
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
2808
2808
|
renderSlot(_ctx.$slots, "default")
|
|
2809
2809
|
])
|
|
2810
2810
|
], 512), [
|
|
@@ -2817,12 +2817,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2817
2817
|
};
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
|
-
const _hoisted_1$
|
|
2821
|
-
const _hoisted_2$
|
|
2820
|
+
const _hoisted_1$6 = { class: "f-color-picker__swatch" };
|
|
2821
|
+
const _hoisted_2$5 = {
|
|
2822
2822
|
key: 0,
|
|
2823
2823
|
class: "f-color-picker__panel"
|
|
2824
2824
|
};
|
|
2825
|
-
const _hoisted_3$
|
|
2825
|
+
const _hoisted_3$5 = { 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$7 = /* @__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$8 = /* @__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$6, [
|
|
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$8 = /* @__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$5, [
|
|
3070
3070
|
createElementVNode("div", {
|
|
3071
3071
|
ref_key: "panelRef",
|
|
3072
3072
|
ref: panelRef,
|
|
@@ -3079,7 +3079,7 @@ const _sfc_main$8 = /* @__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$5, [
|
|
3083
3083
|
createElementVNode("div", _hoisted_4$3, [
|
|
3084
3084
|
createElementVNode("div", {
|
|
3085
3085
|
ref_key: "hueRef",
|
|
@@ -3140,9 +3140,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
3142
|
});
|
|
3143
|
-
const _hoisted_1$
|
|
3144
|
-
const _hoisted_2$
|
|
3145
|
-
const _hoisted_3$
|
|
3143
|
+
const _hoisted_1$5 = { class: "f-empty" };
|
|
3144
|
+
const _hoisted_2$4 = ["src"];
|
|
3145
|
+
const _hoisted_3$4 = {
|
|
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$6 = /* @__PURE__ */ defineComponent({
|
|
3156
3156
|
__name: "FEmpty",
|
|
3157
3157
|
props: {
|
|
3158
3158
|
description: { default: "暂无数据" },
|
|
@@ -3161,7 +3161,7 @@ const _sfc_main$7 = /* @__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$5, [
|
|
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$7 = /* @__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$4)) : (openBlock(), createElementBlock("svg", _hoisted_3$4, _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$7 = /* @__PURE__ */ defineComponent({
|
|
|
3189
3189
|
};
|
|
3190
3190
|
}
|
|
3191
3191
|
});
|
|
3192
|
-
const _hoisted_1$
|
|
3193
|
-
const _hoisted_2$
|
|
3194
|
-
const _hoisted_3$
|
|
3192
|
+
const _hoisted_1$4 = { class: "f-slider__mark-label" };
|
|
3193
|
+
const _hoisted_2$3 = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"];
|
|
3194
|
+
const _hoisted_3$3 = {
|
|
3195
3195
|
key: 0,
|
|
3196
3196
|
class: "f-slider__tooltip"
|
|
3197
3197
|
};
|
|
3198
|
-
const _sfc_main$
|
|
3198
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3199
3199
|
__name: "FSlider",
|
|
3200
3200
|
props: /* @__PURE__ */ mergeModels({
|
|
3201
3201
|
min: { default: 0 },
|
|
@@ -3369,7 +3369,7 @@ const _sfc_main$6 = /* @__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$4, 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$6 = /* @__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$3, toDisplayString(value), 1)) : createCommentVNode("", true)
|
|
3393
3393
|
]),
|
|
3394
3394
|
_: 2
|
|
3395
3395
|
}, 1024)
|
|
3396
|
-
], 46, _hoisted_2$
|
|
3396
|
+
], 46, _hoisted_2$3);
|
|
3397
3397
|
}), 128))
|
|
3398
3398
|
], 544)
|
|
3399
3399
|
], 2);
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
3402
|
});
|
|
3403
|
-
const _sfc_main$
|
|
3403
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3404
3404
|
__name: "FScrollbar",
|
|
3405
3405
|
props: {
|
|
3406
3406
|
height: { default: "" },
|
|
@@ -3588,16 +3588,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
3590
|
});
|
|
3591
|
-
const _hoisted_1$
|
|
3592
|
-
const _hoisted_2$
|
|
3593
|
-
const _hoisted_3$
|
|
3591
|
+
const _hoisted_1$3 = ["disabled"];
|
|
3592
|
+
const _hoisted_2$2 = ["value", "disabled", "placeholder"];
|
|
3593
|
+
const _hoisted_3$2 = ["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$3 = /* @__PURE__ */ defineComponent({
|
|
3601
3601
|
__name: "FInputNumber",
|
|
3602
3602
|
props: /* @__PURE__ */ mergeModels({
|
|
3603
3603
|
min: { default: -Infinity },
|
|
@@ -3741,7 +3741,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3741
3741
|
"stroke-linecap": "round"
|
|
3742
3742
|
})
|
|
3743
3743
|
], -1)
|
|
3744
|
-
]), 40, _hoisted_1$
|
|
3744
|
+
]), 40, _hoisted_1$3)) : createCommentVNode("", true),
|
|
3745
3745
|
createElementVNode("input", {
|
|
3746
3746
|
ref_key: "inputRef",
|
|
3747
3747
|
ref: inputRef,
|
|
@@ -3756,7 +3756,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3756
3756
|
onBlur: handleBlur,
|
|
3757
3757
|
onKeydown: handleKeydown,
|
|
3758
3758
|
onWheel: handleWheel
|
|
3759
|
-
}, null, 40, _hoisted_2$
|
|
3759
|
+
}, null, 40, _hoisted_2$2),
|
|
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$4 = /* @__PURE__ */ defineComponent({
|
|
|
3779
3779
|
"stroke-linecap": "round"
|
|
3780
3780
|
})
|
|
3781
3781
|
], -1)
|
|
3782
|
-
]), 40, _hoisted_3$
|
|
3782
|
+
]), 40, _hoisted_3$2)) : createCommentVNode("", true),
|
|
3783
3783
|
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
3784
3784
|
createElementVNode("button", {
|
|
3785
3785
|
type: "button",
|
|
@@ -3834,2885 +3834,100 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3834
3834
|
};
|
|
3835
3835
|
}
|
|
3836
3836
|
});
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
3842
|
-
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
3843
|
-
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3844
|
-
var __spreadValues2 = (a, b) => {
|
|
3845
|
-
for (var prop in b || (b = {}))
|
|
3846
|
-
if (__hasOwnProp2.call(b, prop))
|
|
3847
|
-
__defNormalProp2(a, prop, b[prop]);
|
|
3848
|
-
if (__getOwnPropSymbols2)
|
|
3849
|
-
for (var prop of __getOwnPropSymbols2(b)) {
|
|
3850
|
-
if (__propIsEnum2.call(b, prop))
|
|
3851
|
-
__defNormalProp2(a, prop, b[prop]);
|
|
3852
|
-
}
|
|
3853
|
-
return a;
|
|
3854
|
-
};
|
|
3855
|
-
var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
|
|
3856
|
-
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
3857
|
-
__name: "FIcon",
|
|
3858
|
-
props: {
|
|
3859
|
-
color: {},
|
|
3860
|
-
size: { default: "1em" }
|
|
3861
|
-
},
|
|
3862
|
-
setup(__props) {
|
|
3863
|
-
const props = __props;
|
|
3864
|
-
const style = computed(() => ({
|
|
3865
|
-
width: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
3866
|
-
height: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
3867
|
-
color: props.color
|
|
3868
|
-
}));
|
|
3869
|
-
return (_ctx, _cache) => {
|
|
3870
|
-
return openBlock(), createElementBlock("span", {
|
|
3871
|
-
role: "img",
|
|
3872
|
-
class: "f-icon",
|
|
3873
|
-
style: normalizeStyle(unref(style))
|
|
3874
|
-
}, [
|
|
3875
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3876
|
-
], 4);
|
|
3877
|
-
};
|
|
3878
|
-
}
|
|
3879
|
-
});
|
|
3880
|
-
const _export_sfc = (sfc, props) => {
|
|
3881
|
-
const target = sfc.__vccOpts || sfc;
|
|
3882
|
-
for (const [key, val] of props) {
|
|
3883
|
-
target[key] = val;
|
|
3884
|
-
}
|
|
3885
|
-
return target;
|
|
3837
|
+
const _hoisted_1$2 = { class: "f-result__icon" };
|
|
3838
|
+
const _hoisted_2$1 = {
|
|
3839
|
+
key: 0,
|
|
3840
|
+
class: "f-result__code"
|
|
3886
3841
|
};
|
|
3887
|
-
const
|
|
3888
|
-
const _hoisted_1$y = { class: "f-checkbox__wrapper" };
|
|
3889
|
-
const _hoisted_2$w = ["checked", "disabled"];
|
|
3890
|
-
const _hoisted_3$w = {
|
|
3842
|
+
const _hoisted_3$1 = {
|
|
3891
3843
|
key: 0,
|
|
3892
|
-
class: "f-
|
|
3844
|
+
class: "f-result__title"
|
|
3893
3845
|
};
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3846
|
+
const _hoisted_4 = {
|
|
3847
|
+
key: 1,
|
|
3848
|
+
class: "f-result__subtitle"
|
|
3849
|
+
};
|
|
3850
|
+
const _hoisted_5 = {
|
|
3851
|
+
key: 2,
|
|
3852
|
+
class: "f-result__extra"
|
|
3853
|
+
};
|
|
3854
|
+
const _hoisted_6 = {
|
|
3855
|
+
key: 3,
|
|
3856
|
+
class: "f-result__content"
|
|
3857
|
+
};
|
|
3858
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3859
|
+
__name: "FResult",
|
|
3860
|
+
props: {
|
|
3861
|
+
status: { default: "info" },
|
|
3862
|
+
title: {},
|
|
3863
|
+
subTitle: {},
|
|
3864
|
+
icon: {}
|
|
3865
|
+
},
|
|
3904
3866
|
setup(__props) {
|
|
3905
|
-
const modelValue = useModel(__props, "modelValue");
|
|
3906
3867
|
const props = __props;
|
|
3907
|
-
const
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3868
|
+
const statusIconMap = {
|
|
3869
|
+
success: CheckmarkCircle,
|
|
3870
|
+
error: CloseCircle,
|
|
3871
|
+
warning: AlertCircle,
|
|
3872
|
+
info: InformationCircle
|
|
3911
3873
|
};
|
|
3874
|
+
const isCodeStatus = computed(() => ["403", "404", "500"].includes(props.status));
|
|
3875
|
+
const showCode = computed(() => !props.icon && isCodeStatus.value);
|
|
3876
|
+
const resolvedIcon = computed(() => {
|
|
3877
|
+
var _a;
|
|
3878
|
+
return (_a = props.icon) != null ? _a : statusIconMap[props.status];
|
|
3879
|
+
});
|
|
3912
3880
|
return (_ctx, _cache) => {
|
|
3913
|
-
return openBlock(), createElementBlock("
|
|
3914
|
-
class: normalizeClass(["f-
|
|
3881
|
+
return openBlock(), createElementBlock("div", {
|
|
3882
|
+
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
3915
3883
|
}, [
|
|
3916
|
-
createElementVNode("
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3884
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
3885
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3886
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon, {
|
|
3887
|
+
key: 1,
|
|
3888
|
+
size: 72
|
|
3889
|
+
}, {
|
|
3890
|
+
default: withCtx(() => [
|
|
3891
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(resolvedIcon))))
|
|
3892
|
+
]),
|
|
3893
|
+
_: 1
|
|
3894
|
+
}))
|
|
3895
|
+
], true)
|
|
3924
3896
|
]),
|
|
3925
|
-
_ctx.
|
|
3897
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
3898
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3899
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
3900
|
+
], true)
|
|
3901
|
+
])) : createCommentVNode("", true),
|
|
3902
|
+
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
3903
|
+
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
3904
|
+
createTextVNode(toDisplayString(_ctx.subTitle), 1)
|
|
3905
|
+
], true)
|
|
3906
|
+
])) : createCommentVNode("", true),
|
|
3907
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
3908
|
+
renderSlot(_ctx.$slots, "extra", {}, void 0, true)
|
|
3909
|
+
])) : createCommentVNode("", true),
|
|
3910
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
3911
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3912
|
+
])) : createCommentVNode("", true)
|
|
3926
3913
|
], 2);
|
|
3927
3914
|
};
|
|
3928
3915
|
}
|
|
3929
3916
|
});
|
|
3930
|
-
/* @__PURE__ */
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
const handleMaskClick = () => {
|
|
3945
|
-
if (props.maskClosable) visible.value = false;
|
|
3946
|
-
};
|
|
3947
|
-
const maskBackgroundColor = computed(() => {
|
|
3948
|
-
if (!props.showMask) return "transparent";
|
|
3949
|
-
switch (props.maskColor) {
|
|
3950
|
-
case "white":
|
|
3951
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
3952
|
-
case "black":
|
|
3953
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
3954
|
-
case "transparent":
|
|
3955
|
-
return "transparent";
|
|
3956
|
-
default:
|
|
3957
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
3958
|
-
}
|
|
3959
|
-
});
|
|
3960
|
-
return (_ctx, _cache) => {
|
|
3961
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3962
|
-
createVNode(Transition, { name: "fade" }, {
|
|
3963
|
-
default: withCtx(() => [
|
|
3964
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
3965
|
-
key: 0,
|
|
3966
|
-
class: "f-dialog-mask",
|
|
3967
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
3968
|
-
onClick: handleMaskClick
|
|
3969
|
-
}, [
|
|
3970
|
-
createElementVNode("div", {
|
|
3971
|
-
class: "f-dialog-container",
|
|
3972
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
3973
|
-
}, ["stop"]))
|
|
3974
|
-
}, [
|
|
3975
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3976
|
-
])
|
|
3977
|
-
], 4)) : createCommentVNode("", true)
|
|
3978
|
-
]),
|
|
3979
|
-
_: 3
|
|
3980
|
-
})
|
|
3981
|
-
]);
|
|
3982
|
-
};
|
|
3983
|
-
}
|
|
3984
|
-
});
|
|
3985
|
-
var __defProp22 = Object.defineProperty;
|
|
3986
|
-
var __getOwnPropSymbols22 = Object.getOwnPropertySymbols;
|
|
3987
|
-
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
3988
|
-
var __propIsEnum22 = Object.prototype.propertyIsEnumerable;
|
|
3989
|
-
var __defNormalProp22 = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3990
|
-
var __spreadValues22 = (a, b) => {
|
|
3991
|
-
for (var prop in b || (b = {}))
|
|
3992
|
-
if (__hasOwnProp22.call(b, prop))
|
|
3993
|
-
__defNormalProp22(a, prop, b[prop]);
|
|
3994
|
-
if (__getOwnPropSymbols22)
|
|
3995
|
-
for (var prop of __getOwnPropSymbols22(b)) {
|
|
3996
|
-
if (__propIsEnum22.call(b, prop))
|
|
3997
|
-
__defNormalProp22(a, prop, b[prop]);
|
|
3998
|
-
}
|
|
3999
|
-
return a;
|
|
4000
|
-
};
|
|
4001
|
-
const _hoisted_1$w = { class: "f-checkbox__wrapper" };
|
|
4002
|
-
const _hoisted_2$u = ["checked", "disabled"];
|
|
4003
|
-
const _hoisted_3$u = {
|
|
4004
|
-
key: 0,
|
|
4005
|
-
class: "f-checkbox__label"
|
|
4006
|
-
};
|
|
4007
|
-
/* @__PURE__ */ defineComponent({
|
|
4008
|
-
__name: "FCheckbox",
|
|
4009
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4010
|
-
label: {},
|
|
4011
|
-
disabled: { type: Boolean }
|
|
4012
|
-
}, {
|
|
4013
|
-
"modelValue": __spreadValues22({ type: Boolean }, { default: false }),
|
|
4014
|
-
"modelModifiers": {}
|
|
4015
|
-
}),
|
|
4016
|
-
emits: ["update:modelValue"],
|
|
4017
|
-
setup(__props) {
|
|
4018
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4019
|
-
const props = __props;
|
|
4020
|
-
const handleChange = (e) => {
|
|
4021
|
-
if (props.disabled) return;
|
|
4022
|
-
const target = e.target;
|
|
4023
|
-
modelValue.value = target.checked;
|
|
4024
|
-
};
|
|
4025
|
-
return (_ctx, _cache) => {
|
|
4026
|
-
return openBlock(), createElementBlock("label", {
|
|
4027
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4028
|
-
}, [
|
|
4029
|
-
createElementVNode("span", _hoisted_1$w, [
|
|
4030
|
-
createElementVNode("input", {
|
|
4031
|
-
type: "checkbox",
|
|
4032
|
-
checked: modelValue.value,
|
|
4033
|
-
disabled: _ctx.disabled,
|
|
4034
|
-
onChange: handleChange
|
|
4035
|
-
}, null, 40, _hoisted_2$u),
|
|
4036
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4037
|
-
]),
|
|
4038
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$u, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4039
|
-
], 2);
|
|
4040
|
-
};
|
|
4041
|
-
}
|
|
4042
|
-
});
|
|
4043
|
-
/* @__PURE__ */ defineComponent({
|
|
4044
|
-
__name: "FDialog",
|
|
4045
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4046
|
-
maskClosable: { type: Boolean, default: true },
|
|
4047
|
-
maskColor: { default: "black" },
|
|
4048
|
-
showMask: { type: Boolean, default: true }
|
|
4049
|
-
}, {
|
|
4050
|
-
"modelValue": __spreadValues22({ type: Boolean }, { default: false }),
|
|
4051
|
-
"modelModifiers": {}
|
|
4052
|
-
}),
|
|
4053
|
-
emits: ["update:modelValue"],
|
|
4054
|
-
setup(__props) {
|
|
4055
|
-
const props = __props;
|
|
4056
|
-
const visible = useModel(__props, "modelValue");
|
|
4057
|
-
const handleMaskClick = () => {
|
|
4058
|
-
if (props.maskClosable) visible.value = false;
|
|
4059
|
-
};
|
|
4060
|
-
const maskBackgroundColor = computed(() => {
|
|
4061
|
-
if (!props.showMask) return "transparent";
|
|
4062
|
-
switch (props.maskColor) {
|
|
4063
|
-
case "white":
|
|
4064
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4065
|
-
case "black":
|
|
4066
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4067
|
-
case "transparent":
|
|
4068
|
-
return "transparent";
|
|
4069
|
-
default:
|
|
4070
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4071
|
-
}
|
|
4072
|
-
});
|
|
4073
|
-
return (_ctx, _cache) => {
|
|
4074
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4075
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4076
|
-
default: withCtx(() => [
|
|
4077
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4078
|
-
key: 0,
|
|
4079
|
-
class: "f-dialog-mask",
|
|
4080
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4081
|
-
onClick: handleMaskClick
|
|
4082
|
-
}, [
|
|
4083
|
-
createElementVNode("div", {
|
|
4084
|
-
class: "f-dialog-container",
|
|
4085
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4086
|
-
}, ["stop"]))
|
|
4087
|
-
}, [
|
|
4088
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4089
|
-
])
|
|
4090
|
-
], 4)) : createCommentVNode("", true)
|
|
4091
|
-
]),
|
|
4092
|
-
_: 3
|
|
4093
|
-
})
|
|
4094
|
-
]);
|
|
4095
|
-
};
|
|
4096
|
-
}
|
|
4097
|
-
});
|
|
4098
|
-
var __defProp222 = Object.defineProperty;
|
|
4099
|
-
var __getOwnPropSymbols222 = Object.getOwnPropertySymbols;
|
|
4100
|
-
var __hasOwnProp222 = Object.prototype.hasOwnProperty;
|
|
4101
|
-
var __propIsEnum222 = Object.prototype.propertyIsEnumerable;
|
|
4102
|
-
var __defNormalProp222 = (obj, key, value) => key in obj ? __defProp222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4103
|
-
var __spreadValues222 = (a, b) => {
|
|
4104
|
-
for (var prop in b || (b = {}))
|
|
4105
|
-
if (__hasOwnProp222.call(b, prop))
|
|
4106
|
-
__defNormalProp222(a, prop, b[prop]);
|
|
4107
|
-
if (__getOwnPropSymbols222)
|
|
4108
|
-
for (var prop of __getOwnPropSymbols222(b)) {
|
|
4109
|
-
if (__propIsEnum222.call(b, prop))
|
|
4110
|
-
__defNormalProp222(a, prop, b[prop]);
|
|
4111
|
-
}
|
|
4112
|
-
return a;
|
|
4113
|
-
};
|
|
4114
|
-
const _hoisted_1$v = { class: "f-checkbox__wrapper" };
|
|
4115
|
-
const _hoisted_2$t = ["checked", "disabled"];
|
|
4116
|
-
const _hoisted_3$t = {
|
|
4117
|
-
key: 0,
|
|
4118
|
-
class: "f-checkbox__label"
|
|
4119
|
-
};
|
|
4120
|
-
/* @__PURE__ */ defineComponent({
|
|
4121
|
-
__name: "FCheckbox",
|
|
4122
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4123
|
-
label: {},
|
|
4124
|
-
disabled: { type: Boolean }
|
|
4125
|
-
}, {
|
|
4126
|
-
"modelValue": __spreadValues222({ type: Boolean }, { default: false }),
|
|
4127
|
-
"modelModifiers": {}
|
|
4128
|
-
}),
|
|
4129
|
-
emits: ["update:modelValue"],
|
|
4130
|
-
setup(__props) {
|
|
4131
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4132
|
-
const props = __props;
|
|
4133
|
-
const handleChange = (e) => {
|
|
4134
|
-
if (props.disabled) return;
|
|
4135
|
-
const target = e.target;
|
|
4136
|
-
modelValue.value = target.checked;
|
|
4137
|
-
};
|
|
4138
|
-
return (_ctx, _cache) => {
|
|
4139
|
-
return openBlock(), createElementBlock("label", {
|
|
4140
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4141
|
-
}, [
|
|
4142
|
-
createElementVNode("span", _hoisted_1$v, [
|
|
4143
|
-
createElementVNode("input", {
|
|
4144
|
-
type: "checkbox",
|
|
4145
|
-
checked: modelValue.value,
|
|
4146
|
-
disabled: _ctx.disabled,
|
|
4147
|
-
onChange: handleChange
|
|
4148
|
-
}, null, 40, _hoisted_2$t),
|
|
4149
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4150
|
-
]),
|
|
4151
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$t, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4152
|
-
], 2);
|
|
4153
|
-
};
|
|
4154
|
-
}
|
|
4155
|
-
});
|
|
4156
|
-
/* @__PURE__ */ defineComponent({
|
|
4157
|
-
__name: "FDialog",
|
|
4158
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4159
|
-
maskClosable: { type: Boolean, default: true },
|
|
4160
|
-
maskColor: { default: "black" },
|
|
4161
|
-
showMask: { type: Boolean, default: true }
|
|
4162
|
-
}, {
|
|
4163
|
-
"modelValue": __spreadValues222({ type: Boolean }, { default: false }),
|
|
4164
|
-
"modelModifiers": {}
|
|
4165
|
-
}),
|
|
4166
|
-
emits: ["update:modelValue"],
|
|
4167
|
-
setup(__props) {
|
|
4168
|
-
const props = __props;
|
|
4169
|
-
const visible = useModel(__props, "modelValue");
|
|
4170
|
-
const handleMaskClick = () => {
|
|
4171
|
-
if (props.maskClosable) visible.value = false;
|
|
4172
|
-
};
|
|
4173
|
-
const maskBackgroundColor = computed(() => {
|
|
4174
|
-
if (!props.showMask) return "transparent";
|
|
4175
|
-
switch (props.maskColor) {
|
|
4176
|
-
case "white":
|
|
4177
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4178
|
-
case "black":
|
|
4179
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4180
|
-
case "transparent":
|
|
4181
|
-
return "transparent";
|
|
4182
|
-
default:
|
|
4183
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4184
|
-
}
|
|
4185
|
-
});
|
|
4186
|
-
return (_ctx, _cache) => {
|
|
4187
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4188
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4189
|
-
default: withCtx(() => [
|
|
4190
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4191
|
-
key: 0,
|
|
4192
|
-
class: "f-dialog-mask",
|
|
4193
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4194
|
-
onClick: handleMaskClick
|
|
4195
|
-
}, [
|
|
4196
|
-
createElementVNode("div", {
|
|
4197
|
-
class: "f-dialog-container",
|
|
4198
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4199
|
-
}, ["stop"]))
|
|
4200
|
-
}, [
|
|
4201
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4202
|
-
])
|
|
4203
|
-
], 4)) : createCommentVNode("", true)
|
|
4204
|
-
]),
|
|
4205
|
-
_: 3
|
|
4206
|
-
})
|
|
4207
|
-
]);
|
|
4208
|
-
};
|
|
4209
|
-
}
|
|
4210
|
-
});
|
|
4211
|
-
var __defProp2222 = Object.defineProperty;
|
|
4212
|
-
var __getOwnPropSymbols2222 = Object.getOwnPropertySymbols;
|
|
4213
|
-
var __hasOwnProp2222 = Object.prototype.hasOwnProperty;
|
|
4214
|
-
var __propIsEnum2222 = Object.prototype.propertyIsEnumerable;
|
|
4215
|
-
var __defNormalProp2222 = (obj, key, value) => key in obj ? __defProp2222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4216
|
-
var __spreadValues2222 = (a, b) => {
|
|
4217
|
-
for (var prop in b || (b = {}))
|
|
4218
|
-
if (__hasOwnProp2222.call(b, prop))
|
|
4219
|
-
__defNormalProp2222(a, prop, b[prop]);
|
|
4220
|
-
if (__getOwnPropSymbols2222)
|
|
4221
|
-
for (var prop of __getOwnPropSymbols2222(b)) {
|
|
4222
|
-
if (__propIsEnum2222.call(b, prop))
|
|
4223
|
-
__defNormalProp2222(a, prop, b[prop]);
|
|
4224
|
-
}
|
|
4225
|
-
return a;
|
|
4226
|
-
};
|
|
4227
|
-
const _hoisted_1$u = { class: "f-checkbox__wrapper" };
|
|
4228
|
-
const _hoisted_2$s = ["checked", "disabled"];
|
|
4229
|
-
const _hoisted_3$s = {
|
|
4230
|
-
key: 0,
|
|
4231
|
-
class: "f-checkbox__label"
|
|
4232
|
-
};
|
|
4233
|
-
/* @__PURE__ */ defineComponent({
|
|
4234
|
-
__name: "FCheckbox",
|
|
4235
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4236
|
-
label: {},
|
|
4237
|
-
disabled: { type: Boolean }
|
|
4238
|
-
}, {
|
|
4239
|
-
"modelValue": __spreadValues2222({ type: Boolean }, { default: false }),
|
|
4240
|
-
"modelModifiers": {}
|
|
4241
|
-
}),
|
|
4242
|
-
emits: ["update:modelValue"],
|
|
4243
|
-
setup(__props) {
|
|
4244
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4245
|
-
const props = __props;
|
|
4246
|
-
const handleChange = (e) => {
|
|
4247
|
-
if (props.disabled) return;
|
|
4248
|
-
const target = e.target;
|
|
4249
|
-
modelValue.value = target.checked;
|
|
4250
|
-
};
|
|
4251
|
-
return (_ctx, _cache) => {
|
|
4252
|
-
return openBlock(), createElementBlock("label", {
|
|
4253
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4254
|
-
}, [
|
|
4255
|
-
createElementVNode("span", _hoisted_1$u, [
|
|
4256
|
-
createElementVNode("input", {
|
|
4257
|
-
type: "checkbox",
|
|
4258
|
-
checked: modelValue.value,
|
|
4259
|
-
disabled: _ctx.disabled,
|
|
4260
|
-
onChange: handleChange
|
|
4261
|
-
}, null, 40, _hoisted_2$s),
|
|
4262
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4263
|
-
]),
|
|
4264
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$s, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4265
|
-
], 2);
|
|
4266
|
-
};
|
|
4267
|
-
}
|
|
4268
|
-
});
|
|
4269
|
-
/* @__PURE__ */ defineComponent({
|
|
4270
|
-
__name: "FDialog",
|
|
4271
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4272
|
-
maskClosable: { type: Boolean, default: true },
|
|
4273
|
-
maskColor: { default: "black" },
|
|
4274
|
-
showMask: { type: Boolean, default: true }
|
|
4275
|
-
}, {
|
|
4276
|
-
"modelValue": __spreadValues2222({ type: Boolean }, { default: false }),
|
|
4277
|
-
"modelModifiers": {}
|
|
4278
|
-
}),
|
|
4279
|
-
emits: ["update:modelValue"],
|
|
4280
|
-
setup(__props) {
|
|
4281
|
-
const props = __props;
|
|
4282
|
-
const visible = useModel(__props, "modelValue");
|
|
4283
|
-
const handleMaskClick = () => {
|
|
4284
|
-
if (props.maskClosable) visible.value = false;
|
|
4285
|
-
};
|
|
4286
|
-
const maskBackgroundColor = computed(() => {
|
|
4287
|
-
if (!props.showMask) return "transparent";
|
|
4288
|
-
switch (props.maskColor) {
|
|
4289
|
-
case "white":
|
|
4290
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4291
|
-
case "black":
|
|
4292
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4293
|
-
case "transparent":
|
|
4294
|
-
return "transparent";
|
|
4295
|
-
default:
|
|
4296
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4297
|
-
}
|
|
4298
|
-
});
|
|
4299
|
-
return (_ctx, _cache) => {
|
|
4300
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4301
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4302
|
-
default: withCtx(() => [
|
|
4303
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4304
|
-
key: 0,
|
|
4305
|
-
class: "f-dialog-mask",
|
|
4306
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4307
|
-
onClick: handleMaskClick
|
|
4308
|
-
}, [
|
|
4309
|
-
createElementVNode("div", {
|
|
4310
|
-
class: "f-dialog-container",
|
|
4311
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4312
|
-
}, ["stop"]))
|
|
4313
|
-
}, [
|
|
4314
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4315
|
-
])
|
|
4316
|
-
], 4)) : createCommentVNode("", true)
|
|
4317
|
-
]),
|
|
4318
|
-
_: 3
|
|
4319
|
-
})
|
|
4320
|
-
]);
|
|
4321
|
-
};
|
|
4322
|
-
}
|
|
4323
|
-
});
|
|
4324
|
-
var __defProp22222 = Object.defineProperty;
|
|
4325
|
-
var __getOwnPropSymbols22222 = Object.getOwnPropertySymbols;
|
|
4326
|
-
var __hasOwnProp22222 = Object.prototype.hasOwnProperty;
|
|
4327
|
-
var __propIsEnum22222 = Object.prototype.propertyIsEnumerable;
|
|
4328
|
-
var __defNormalProp22222 = (obj, key, value) => key in obj ? __defProp22222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4329
|
-
var __spreadValues22222 = (a, b) => {
|
|
4330
|
-
for (var prop in b || (b = {}))
|
|
4331
|
-
if (__hasOwnProp22222.call(b, prop))
|
|
4332
|
-
__defNormalProp22222(a, prop, b[prop]);
|
|
4333
|
-
if (__getOwnPropSymbols22222)
|
|
4334
|
-
for (var prop of __getOwnPropSymbols22222(b)) {
|
|
4335
|
-
if (__propIsEnum22222.call(b, prop))
|
|
4336
|
-
__defNormalProp22222(a, prop, b[prop]);
|
|
4337
|
-
}
|
|
4338
|
-
return a;
|
|
4339
|
-
};
|
|
4340
|
-
const _hoisted_1$r = { class: "f-checkbox__wrapper" };
|
|
4341
|
-
const _hoisted_2$q = ["checked", "disabled"];
|
|
4342
|
-
const _hoisted_3$q = {
|
|
4343
|
-
key: 0,
|
|
4344
|
-
class: "f-checkbox__label"
|
|
4345
|
-
};
|
|
4346
|
-
/* @__PURE__ */ defineComponent({
|
|
4347
|
-
__name: "FCheckbox",
|
|
4348
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4349
|
-
label: {},
|
|
4350
|
-
disabled: { type: Boolean }
|
|
4351
|
-
}, {
|
|
4352
|
-
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4353
|
-
"modelModifiers": {}
|
|
4354
|
-
}),
|
|
4355
|
-
emits: ["update:modelValue"],
|
|
4356
|
-
setup(__props) {
|
|
4357
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4358
|
-
const props = __props;
|
|
4359
|
-
const handleChange = (e) => {
|
|
4360
|
-
if (props.disabled) return;
|
|
4361
|
-
const target = e.target;
|
|
4362
|
-
modelValue.value = target.checked;
|
|
4363
|
-
};
|
|
4364
|
-
return (_ctx, _cache) => {
|
|
4365
|
-
return openBlock(), createElementBlock("label", {
|
|
4366
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4367
|
-
}, [
|
|
4368
|
-
createElementVNode("span", _hoisted_1$r, [
|
|
4369
|
-
createElementVNode("input", {
|
|
4370
|
-
type: "checkbox",
|
|
4371
|
-
checked: modelValue.value,
|
|
4372
|
-
disabled: _ctx.disabled,
|
|
4373
|
-
onChange: handleChange
|
|
4374
|
-
}, null, 40, _hoisted_2$q),
|
|
4375
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4376
|
-
]),
|
|
4377
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4378
|
-
], 2);
|
|
4379
|
-
};
|
|
4380
|
-
}
|
|
4381
|
-
});
|
|
4382
|
-
/* @__PURE__ */ defineComponent({
|
|
4383
|
-
__name: "FDialog",
|
|
4384
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4385
|
-
maskClosable: { type: Boolean, default: true },
|
|
4386
|
-
maskColor: { default: "black" },
|
|
4387
|
-
showMask: { type: Boolean, default: true }
|
|
4388
|
-
}, {
|
|
4389
|
-
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4390
|
-
"modelModifiers": {}
|
|
4391
|
-
}),
|
|
4392
|
-
emits: ["update:modelValue"],
|
|
4393
|
-
setup(__props) {
|
|
4394
|
-
const props = __props;
|
|
4395
|
-
const visible = useModel(__props, "modelValue");
|
|
4396
|
-
const handleMaskClick = () => {
|
|
4397
|
-
if (props.maskClosable) visible.value = false;
|
|
4398
|
-
};
|
|
4399
|
-
const maskBackgroundColor = computed(() => {
|
|
4400
|
-
if (!props.showMask) return "transparent";
|
|
4401
|
-
switch (props.maskColor) {
|
|
4402
|
-
case "white":
|
|
4403
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4404
|
-
case "black":
|
|
4405
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4406
|
-
case "transparent":
|
|
4407
|
-
return "transparent";
|
|
4408
|
-
default:
|
|
4409
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4410
|
-
}
|
|
4411
|
-
});
|
|
4412
|
-
return (_ctx, _cache) => {
|
|
4413
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4414
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4415
|
-
default: withCtx(() => [
|
|
4416
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4417
|
-
key: 0,
|
|
4418
|
-
class: "f-dialog-mask",
|
|
4419
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4420
|
-
onClick: handleMaskClick
|
|
4421
|
-
}, [
|
|
4422
|
-
createElementVNode("div", {
|
|
4423
|
-
class: "f-dialog-container",
|
|
4424
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4425
|
-
}, ["stop"]))
|
|
4426
|
-
}, [
|
|
4427
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4428
|
-
])
|
|
4429
|
-
], 4)) : createCommentVNode("", true)
|
|
4430
|
-
]),
|
|
4431
|
-
_: 3
|
|
4432
|
-
})
|
|
4433
|
-
]);
|
|
4434
|
-
};
|
|
4435
|
-
}
|
|
4436
|
-
});
|
|
4437
|
-
var __defProp222222 = Object.defineProperty;
|
|
4438
|
-
var __getOwnPropSymbols222222 = Object.getOwnPropertySymbols;
|
|
4439
|
-
var __hasOwnProp222222 = Object.prototype.hasOwnProperty;
|
|
4440
|
-
var __propIsEnum222222 = Object.prototype.propertyIsEnumerable;
|
|
4441
|
-
var __defNormalProp222222 = (obj, key, value) => key in obj ? __defProp222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4442
|
-
var __spreadValues222222 = (a, b) => {
|
|
4443
|
-
for (var prop in b || (b = {}))
|
|
4444
|
-
if (__hasOwnProp222222.call(b, prop))
|
|
4445
|
-
__defNormalProp222222(a, prop, b[prop]);
|
|
4446
|
-
if (__getOwnPropSymbols222222)
|
|
4447
|
-
for (var prop of __getOwnPropSymbols222222(b)) {
|
|
4448
|
-
if (__propIsEnum222222.call(b, prop))
|
|
4449
|
-
__defNormalProp222222(a, prop, b[prop]);
|
|
4450
|
-
}
|
|
4451
|
-
return a;
|
|
4452
|
-
};
|
|
4453
|
-
const _hoisted_1$q = { class: "f-checkbox__wrapper" };
|
|
4454
|
-
const _hoisted_2$p = ["checked", "disabled"];
|
|
4455
|
-
const _hoisted_3$p = {
|
|
4456
|
-
key: 0,
|
|
4457
|
-
class: "f-checkbox__label"
|
|
4458
|
-
};
|
|
4459
|
-
/* @__PURE__ */ defineComponent({
|
|
4460
|
-
__name: "FCheckbox",
|
|
4461
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4462
|
-
label: {},
|
|
4463
|
-
disabled: { type: Boolean }
|
|
4464
|
-
}, {
|
|
4465
|
-
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4466
|
-
"modelModifiers": {}
|
|
4467
|
-
}),
|
|
4468
|
-
emits: ["update:modelValue"],
|
|
4469
|
-
setup(__props) {
|
|
4470
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4471
|
-
const props = __props;
|
|
4472
|
-
const handleChange = (e) => {
|
|
4473
|
-
if (props.disabled) return;
|
|
4474
|
-
const target = e.target;
|
|
4475
|
-
modelValue.value = target.checked;
|
|
4476
|
-
};
|
|
4477
|
-
return (_ctx, _cache) => {
|
|
4478
|
-
return openBlock(), createElementBlock("label", {
|
|
4479
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4480
|
-
}, [
|
|
4481
|
-
createElementVNode("span", _hoisted_1$q, [
|
|
4482
|
-
createElementVNode("input", {
|
|
4483
|
-
type: "checkbox",
|
|
4484
|
-
checked: modelValue.value,
|
|
4485
|
-
disabled: _ctx.disabled,
|
|
4486
|
-
onChange: handleChange
|
|
4487
|
-
}, null, 40, _hoisted_2$p),
|
|
4488
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4489
|
-
]),
|
|
4490
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$p, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4491
|
-
], 2);
|
|
4492
|
-
};
|
|
4493
|
-
}
|
|
4494
|
-
});
|
|
4495
|
-
/* @__PURE__ */ defineComponent({
|
|
4496
|
-
__name: "FDialog",
|
|
4497
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4498
|
-
maskClosable: { type: Boolean, default: true },
|
|
4499
|
-
maskColor: { default: "black" },
|
|
4500
|
-
showMask: { type: Boolean, default: true }
|
|
4501
|
-
}, {
|
|
4502
|
-
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4503
|
-
"modelModifiers": {}
|
|
4504
|
-
}),
|
|
4505
|
-
emits: ["update:modelValue"],
|
|
4506
|
-
setup(__props) {
|
|
4507
|
-
const props = __props;
|
|
4508
|
-
const visible = useModel(__props, "modelValue");
|
|
4509
|
-
const handleMaskClick = () => {
|
|
4510
|
-
if (props.maskClosable) visible.value = false;
|
|
4511
|
-
};
|
|
4512
|
-
const maskBackgroundColor = computed(() => {
|
|
4513
|
-
if (!props.showMask) return "transparent";
|
|
4514
|
-
switch (props.maskColor) {
|
|
4515
|
-
case "white":
|
|
4516
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4517
|
-
case "black":
|
|
4518
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4519
|
-
case "transparent":
|
|
4520
|
-
return "transparent";
|
|
4521
|
-
default:
|
|
4522
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4523
|
-
}
|
|
4524
|
-
});
|
|
4525
|
-
return (_ctx, _cache) => {
|
|
4526
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4527
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4528
|
-
default: withCtx(() => [
|
|
4529
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4530
|
-
key: 0,
|
|
4531
|
-
class: "f-dialog-mask",
|
|
4532
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4533
|
-
onClick: handleMaskClick
|
|
4534
|
-
}, [
|
|
4535
|
-
createElementVNode("div", {
|
|
4536
|
-
class: "f-dialog-container",
|
|
4537
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4538
|
-
}, ["stop"]))
|
|
4539
|
-
}, [
|
|
4540
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4541
|
-
])
|
|
4542
|
-
], 4)) : createCommentVNode("", true)
|
|
4543
|
-
]),
|
|
4544
|
-
_: 3
|
|
4545
|
-
})
|
|
4546
|
-
]);
|
|
4547
|
-
};
|
|
4548
|
-
}
|
|
4549
|
-
});
|
|
4550
|
-
var __defProp2222222 = Object.defineProperty;
|
|
4551
|
-
var __getOwnPropSymbols2222222 = Object.getOwnPropertySymbols;
|
|
4552
|
-
var __hasOwnProp2222222 = Object.prototype.hasOwnProperty;
|
|
4553
|
-
var __propIsEnum2222222 = Object.prototype.propertyIsEnumerable;
|
|
4554
|
-
var __defNormalProp2222222 = (obj, key, value) => key in obj ? __defProp2222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4555
|
-
var __spreadValues2222222 = (a, b) => {
|
|
4556
|
-
for (var prop in b || (b = {}))
|
|
4557
|
-
if (__hasOwnProp2222222.call(b, prop))
|
|
4558
|
-
__defNormalProp2222222(a, prop, b[prop]);
|
|
4559
|
-
if (__getOwnPropSymbols2222222)
|
|
4560
|
-
for (var prop of __getOwnPropSymbols2222222(b)) {
|
|
4561
|
-
if (__propIsEnum2222222.call(b, prop))
|
|
4562
|
-
__defNormalProp2222222(a, prop, b[prop]);
|
|
4563
|
-
}
|
|
4564
|
-
return a;
|
|
4565
|
-
};
|
|
4566
|
-
const _hoisted_1$p = { class: "f-checkbox__wrapper" };
|
|
4567
|
-
const _hoisted_2$o = ["checked", "disabled"];
|
|
4568
|
-
const _hoisted_3$o = {
|
|
4569
|
-
key: 0,
|
|
4570
|
-
class: "f-checkbox__label"
|
|
4571
|
-
};
|
|
4572
|
-
/* @__PURE__ */ defineComponent({
|
|
4573
|
-
__name: "FCheckbox",
|
|
4574
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4575
|
-
label: {},
|
|
4576
|
-
disabled: { type: Boolean }
|
|
4577
|
-
}, {
|
|
4578
|
-
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4579
|
-
"modelModifiers": {}
|
|
4580
|
-
}),
|
|
4581
|
-
emits: ["update:modelValue"],
|
|
4582
|
-
setup(__props) {
|
|
4583
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4584
|
-
const props = __props;
|
|
4585
|
-
const handleChange = (e) => {
|
|
4586
|
-
if (props.disabled) return;
|
|
4587
|
-
const target = e.target;
|
|
4588
|
-
modelValue.value = target.checked;
|
|
4589
|
-
};
|
|
4590
|
-
return (_ctx, _cache) => {
|
|
4591
|
-
return openBlock(), createElementBlock("label", {
|
|
4592
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4593
|
-
}, [
|
|
4594
|
-
createElementVNode("span", _hoisted_1$p, [
|
|
4595
|
-
createElementVNode("input", {
|
|
4596
|
-
type: "checkbox",
|
|
4597
|
-
checked: modelValue.value,
|
|
4598
|
-
disabled: _ctx.disabled,
|
|
4599
|
-
onChange: handleChange
|
|
4600
|
-
}, null, 40, _hoisted_2$o),
|
|
4601
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4602
|
-
]),
|
|
4603
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4604
|
-
], 2);
|
|
4605
|
-
};
|
|
4606
|
-
}
|
|
4607
|
-
});
|
|
4608
|
-
/* @__PURE__ */ defineComponent({
|
|
4609
|
-
__name: "FDialog",
|
|
4610
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4611
|
-
maskClosable: { type: Boolean, default: true },
|
|
4612
|
-
maskColor: { default: "black" },
|
|
4613
|
-
showMask: { type: Boolean, default: true }
|
|
4614
|
-
}, {
|
|
4615
|
-
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4616
|
-
"modelModifiers": {}
|
|
4617
|
-
}),
|
|
4618
|
-
emits: ["update:modelValue"],
|
|
4619
|
-
setup(__props) {
|
|
4620
|
-
const props = __props;
|
|
4621
|
-
const visible = useModel(__props, "modelValue");
|
|
4622
|
-
const handleMaskClick = () => {
|
|
4623
|
-
if (props.maskClosable) visible.value = false;
|
|
4624
|
-
};
|
|
4625
|
-
const maskBackgroundColor = computed(() => {
|
|
4626
|
-
if (!props.showMask) return "transparent";
|
|
4627
|
-
switch (props.maskColor) {
|
|
4628
|
-
case "white":
|
|
4629
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4630
|
-
case "black":
|
|
4631
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4632
|
-
case "transparent":
|
|
4633
|
-
return "transparent";
|
|
4634
|
-
default:
|
|
4635
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4636
|
-
}
|
|
4637
|
-
});
|
|
4638
|
-
return (_ctx, _cache) => {
|
|
4639
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4640
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4641
|
-
default: withCtx(() => [
|
|
4642
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4643
|
-
key: 0,
|
|
4644
|
-
class: "f-dialog-mask",
|
|
4645
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4646
|
-
onClick: handleMaskClick
|
|
4647
|
-
}, [
|
|
4648
|
-
createElementVNode("div", {
|
|
4649
|
-
class: "f-dialog-container",
|
|
4650
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4651
|
-
}, ["stop"]))
|
|
4652
|
-
}, [
|
|
4653
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4654
|
-
])
|
|
4655
|
-
], 4)) : createCommentVNode("", true)
|
|
4656
|
-
]),
|
|
4657
|
-
_: 3
|
|
4658
|
-
})
|
|
4659
|
-
]);
|
|
4660
|
-
};
|
|
4661
|
-
}
|
|
4662
|
-
});
|
|
4663
|
-
var __defProp22222222 = Object.defineProperty;
|
|
4664
|
-
var __getOwnPropSymbols22222222 = Object.getOwnPropertySymbols;
|
|
4665
|
-
var __hasOwnProp22222222 = Object.prototype.hasOwnProperty;
|
|
4666
|
-
var __propIsEnum22222222 = Object.prototype.propertyIsEnumerable;
|
|
4667
|
-
var __defNormalProp22222222 = (obj, key, value) => key in obj ? __defProp22222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4668
|
-
var __spreadValues22222222 = (a, b) => {
|
|
4669
|
-
for (var prop in b || (b = {}))
|
|
4670
|
-
if (__hasOwnProp22222222.call(b, prop))
|
|
4671
|
-
__defNormalProp22222222(a, prop, b[prop]);
|
|
4672
|
-
if (__getOwnPropSymbols22222222)
|
|
4673
|
-
for (var prop of __getOwnPropSymbols22222222(b)) {
|
|
4674
|
-
if (__propIsEnum22222222.call(b, prop))
|
|
4675
|
-
__defNormalProp22222222(a, prop, b[prop]);
|
|
4676
|
-
}
|
|
4677
|
-
return a;
|
|
4678
|
-
};
|
|
4679
|
-
const _hoisted_1$o = { class: "f-checkbox__wrapper" };
|
|
4680
|
-
const _hoisted_2$n = ["checked", "disabled"];
|
|
4681
|
-
const _hoisted_3$n = {
|
|
4682
|
-
key: 0,
|
|
4683
|
-
class: "f-checkbox__label"
|
|
4684
|
-
};
|
|
4685
|
-
/* @__PURE__ */ defineComponent({
|
|
4686
|
-
__name: "FCheckbox",
|
|
4687
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4688
|
-
label: {},
|
|
4689
|
-
disabled: { type: Boolean }
|
|
4690
|
-
}, {
|
|
4691
|
-
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4692
|
-
"modelModifiers": {}
|
|
4693
|
-
}),
|
|
4694
|
-
emits: ["update:modelValue"],
|
|
4695
|
-
setup(__props) {
|
|
4696
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4697
|
-
const props = __props;
|
|
4698
|
-
const handleChange = (e) => {
|
|
4699
|
-
if (props.disabled) return;
|
|
4700
|
-
const target = e.target;
|
|
4701
|
-
modelValue.value = target.checked;
|
|
4702
|
-
};
|
|
4703
|
-
return (_ctx, _cache) => {
|
|
4704
|
-
return openBlock(), createElementBlock("label", {
|
|
4705
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4706
|
-
}, [
|
|
4707
|
-
createElementVNode("span", _hoisted_1$o, [
|
|
4708
|
-
createElementVNode("input", {
|
|
4709
|
-
type: "checkbox",
|
|
4710
|
-
checked: modelValue.value,
|
|
4711
|
-
disabled: _ctx.disabled,
|
|
4712
|
-
onChange: handleChange
|
|
4713
|
-
}, null, 40, _hoisted_2$n),
|
|
4714
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4715
|
-
]),
|
|
4716
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4717
|
-
], 2);
|
|
4718
|
-
};
|
|
4719
|
-
}
|
|
4720
|
-
});
|
|
4721
|
-
/* @__PURE__ */ defineComponent({
|
|
4722
|
-
__name: "FDialog",
|
|
4723
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4724
|
-
maskClosable: { type: Boolean, default: true },
|
|
4725
|
-
maskColor: { default: "black" },
|
|
4726
|
-
showMask: { type: Boolean, default: true }
|
|
4727
|
-
}, {
|
|
4728
|
-
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4729
|
-
"modelModifiers": {}
|
|
4730
|
-
}),
|
|
4731
|
-
emits: ["update:modelValue"],
|
|
4732
|
-
setup(__props) {
|
|
4733
|
-
const props = __props;
|
|
4734
|
-
const visible = useModel(__props, "modelValue");
|
|
4735
|
-
const handleMaskClick = () => {
|
|
4736
|
-
if (props.maskClosable) visible.value = false;
|
|
4737
|
-
};
|
|
4738
|
-
const maskBackgroundColor = computed(() => {
|
|
4739
|
-
if (!props.showMask) return "transparent";
|
|
4740
|
-
switch (props.maskColor) {
|
|
4741
|
-
case "white":
|
|
4742
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4743
|
-
case "black":
|
|
4744
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4745
|
-
case "transparent":
|
|
4746
|
-
return "transparent";
|
|
4747
|
-
default:
|
|
4748
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4749
|
-
}
|
|
4750
|
-
});
|
|
4751
|
-
return (_ctx, _cache) => {
|
|
4752
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4753
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4754
|
-
default: withCtx(() => [
|
|
4755
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4756
|
-
key: 0,
|
|
4757
|
-
class: "f-dialog-mask",
|
|
4758
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4759
|
-
onClick: handleMaskClick
|
|
4760
|
-
}, [
|
|
4761
|
-
createElementVNode("div", {
|
|
4762
|
-
class: "f-dialog-container",
|
|
4763
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4764
|
-
}, ["stop"]))
|
|
4765
|
-
}, [
|
|
4766
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4767
|
-
])
|
|
4768
|
-
], 4)) : createCommentVNode("", true)
|
|
4769
|
-
]),
|
|
4770
|
-
_: 3
|
|
4771
|
-
})
|
|
4772
|
-
]);
|
|
4773
|
-
};
|
|
4774
|
-
}
|
|
4775
|
-
});
|
|
4776
|
-
var __defProp222222222 = Object.defineProperty;
|
|
4777
|
-
var __getOwnPropSymbols222222222 = Object.getOwnPropertySymbols;
|
|
4778
|
-
var __hasOwnProp222222222 = Object.prototype.hasOwnProperty;
|
|
4779
|
-
var __propIsEnum222222222 = Object.prototype.propertyIsEnumerable;
|
|
4780
|
-
var __defNormalProp222222222 = (obj, key, value) => key in obj ? __defProp222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4781
|
-
var __spreadValues222222222 = (a, b) => {
|
|
4782
|
-
for (var prop in b || (b = {}))
|
|
4783
|
-
if (__hasOwnProp222222222.call(b, prop))
|
|
4784
|
-
__defNormalProp222222222(a, prop, b[prop]);
|
|
4785
|
-
if (__getOwnPropSymbols222222222)
|
|
4786
|
-
for (var prop of __getOwnPropSymbols222222222(b)) {
|
|
4787
|
-
if (__propIsEnum222222222.call(b, prop))
|
|
4788
|
-
__defNormalProp222222222(a, prop, b[prop]);
|
|
4789
|
-
}
|
|
4790
|
-
return a;
|
|
4791
|
-
};
|
|
4792
|
-
const _hoisted_1$n = { class: "f-checkbox__wrapper" };
|
|
4793
|
-
const _hoisted_2$m = ["checked", "disabled"];
|
|
4794
|
-
const _hoisted_3$m = {
|
|
4795
|
-
key: 0,
|
|
4796
|
-
class: "f-checkbox__label"
|
|
4797
|
-
};
|
|
4798
|
-
/* @__PURE__ */ defineComponent({
|
|
4799
|
-
__name: "FCheckbox",
|
|
4800
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4801
|
-
label: {},
|
|
4802
|
-
disabled: { type: Boolean }
|
|
4803
|
-
}, {
|
|
4804
|
-
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4805
|
-
"modelModifiers": {}
|
|
4806
|
-
}),
|
|
4807
|
-
emits: ["update:modelValue"],
|
|
4808
|
-
setup(__props) {
|
|
4809
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4810
|
-
const props = __props;
|
|
4811
|
-
const handleChange = (e) => {
|
|
4812
|
-
if (props.disabled) return;
|
|
4813
|
-
const target = e.target;
|
|
4814
|
-
modelValue.value = target.checked;
|
|
4815
|
-
};
|
|
4816
|
-
return (_ctx, _cache) => {
|
|
4817
|
-
return openBlock(), createElementBlock("label", {
|
|
4818
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4819
|
-
}, [
|
|
4820
|
-
createElementVNode("span", _hoisted_1$n, [
|
|
4821
|
-
createElementVNode("input", {
|
|
4822
|
-
type: "checkbox",
|
|
4823
|
-
checked: modelValue.value,
|
|
4824
|
-
disabled: _ctx.disabled,
|
|
4825
|
-
onChange: handleChange
|
|
4826
|
-
}, null, 40, _hoisted_2$m),
|
|
4827
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4828
|
-
]),
|
|
4829
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4830
|
-
], 2);
|
|
4831
|
-
};
|
|
4832
|
-
}
|
|
4833
|
-
});
|
|
4834
|
-
/* @__PURE__ */ defineComponent({
|
|
4835
|
-
__name: "FDialog",
|
|
4836
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4837
|
-
maskClosable: { type: Boolean, default: true },
|
|
4838
|
-
maskColor: { default: "black" },
|
|
4839
|
-
showMask: { type: Boolean, default: true }
|
|
4840
|
-
}, {
|
|
4841
|
-
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4842
|
-
"modelModifiers": {}
|
|
4843
|
-
}),
|
|
4844
|
-
emits: ["update:modelValue"],
|
|
4845
|
-
setup(__props) {
|
|
4846
|
-
const props = __props;
|
|
4847
|
-
const visible = useModel(__props, "modelValue");
|
|
4848
|
-
const handleMaskClick = () => {
|
|
4849
|
-
if (props.maskClosable) visible.value = false;
|
|
4850
|
-
};
|
|
4851
|
-
const maskBackgroundColor = computed(() => {
|
|
4852
|
-
if (!props.showMask) return "transparent";
|
|
4853
|
-
switch (props.maskColor) {
|
|
4854
|
-
case "white":
|
|
4855
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4856
|
-
case "black":
|
|
4857
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4858
|
-
case "transparent":
|
|
4859
|
-
return "transparent";
|
|
4860
|
-
default:
|
|
4861
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4862
|
-
}
|
|
4863
|
-
});
|
|
4864
|
-
return (_ctx, _cache) => {
|
|
4865
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4866
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4867
|
-
default: withCtx(() => [
|
|
4868
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4869
|
-
key: 0,
|
|
4870
|
-
class: "f-dialog-mask",
|
|
4871
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4872
|
-
onClick: handleMaskClick
|
|
4873
|
-
}, [
|
|
4874
|
-
createElementVNode("div", {
|
|
4875
|
-
class: "f-dialog-container",
|
|
4876
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4877
|
-
}, ["stop"]))
|
|
4878
|
-
}, [
|
|
4879
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4880
|
-
])
|
|
4881
|
-
], 4)) : createCommentVNode("", true)
|
|
4882
|
-
]),
|
|
4883
|
-
_: 3
|
|
4884
|
-
})
|
|
4885
|
-
]);
|
|
4886
|
-
};
|
|
4887
|
-
}
|
|
4888
|
-
});
|
|
4889
|
-
var __defProp2222222222 = Object.defineProperty;
|
|
4890
|
-
var __getOwnPropSymbols2222222222 = Object.getOwnPropertySymbols;
|
|
4891
|
-
var __hasOwnProp2222222222 = Object.prototype.hasOwnProperty;
|
|
4892
|
-
var __propIsEnum2222222222 = Object.prototype.propertyIsEnumerable;
|
|
4893
|
-
var __defNormalProp2222222222 = (obj, key, value) => key in obj ? __defProp2222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4894
|
-
var __spreadValues2222222222 = (a, b) => {
|
|
4895
|
-
for (var prop in b || (b = {}))
|
|
4896
|
-
if (__hasOwnProp2222222222.call(b, prop))
|
|
4897
|
-
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4898
|
-
if (__getOwnPropSymbols2222222222)
|
|
4899
|
-
for (var prop of __getOwnPropSymbols2222222222(b)) {
|
|
4900
|
-
if (__propIsEnum2222222222.call(b, prop))
|
|
4901
|
-
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4902
|
-
}
|
|
4903
|
-
return a;
|
|
4904
|
-
};
|
|
4905
|
-
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
4906
|
-
const _hoisted_2$l = ["checked", "disabled"];
|
|
4907
|
-
const _hoisted_3$l = {
|
|
4908
|
-
key: 0,
|
|
4909
|
-
class: "f-checkbox__label"
|
|
4910
|
-
};
|
|
4911
|
-
/* @__PURE__ */ defineComponent({
|
|
4912
|
-
__name: "FCheckbox",
|
|
4913
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4914
|
-
label: {},
|
|
4915
|
-
disabled: { type: Boolean }
|
|
4916
|
-
}, {
|
|
4917
|
-
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4918
|
-
"modelModifiers": {}
|
|
4919
|
-
}),
|
|
4920
|
-
emits: ["update:modelValue"],
|
|
4921
|
-
setup(__props) {
|
|
4922
|
-
const modelValue = useModel(__props, "modelValue");
|
|
4923
|
-
const props = __props;
|
|
4924
|
-
const handleChange = (e) => {
|
|
4925
|
-
if (props.disabled) return;
|
|
4926
|
-
const target = e.target;
|
|
4927
|
-
modelValue.value = target.checked;
|
|
4928
|
-
};
|
|
4929
|
-
return (_ctx, _cache) => {
|
|
4930
|
-
return openBlock(), createElementBlock("label", {
|
|
4931
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4932
|
-
}, [
|
|
4933
|
-
createElementVNode("span", _hoisted_1$m, [
|
|
4934
|
-
createElementVNode("input", {
|
|
4935
|
-
type: "checkbox",
|
|
4936
|
-
checked: modelValue.value,
|
|
4937
|
-
disabled: _ctx.disabled,
|
|
4938
|
-
onChange: handleChange
|
|
4939
|
-
}, null, 40, _hoisted_2$l),
|
|
4940
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4941
|
-
]),
|
|
4942
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4943
|
-
], 2);
|
|
4944
|
-
};
|
|
4945
|
-
}
|
|
4946
|
-
});
|
|
4947
|
-
/* @__PURE__ */ defineComponent({
|
|
4948
|
-
__name: "FDialog",
|
|
4949
|
-
props: /* @__PURE__ */ mergeModels({
|
|
4950
|
-
maskClosable: { type: Boolean, default: true },
|
|
4951
|
-
maskColor: { default: "black" },
|
|
4952
|
-
showMask: { type: Boolean, default: true }
|
|
4953
|
-
}, {
|
|
4954
|
-
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4955
|
-
"modelModifiers": {}
|
|
4956
|
-
}),
|
|
4957
|
-
emits: ["update:modelValue"],
|
|
4958
|
-
setup(__props) {
|
|
4959
|
-
const props = __props;
|
|
4960
|
-
const visible = useModel(__props, "modelValue");
|
|
4961
|
-
const handleMaskClick = () => {
|
|
4962
|
-
if (props.maskClosable) visible.value = false;
|
|
4963
|
-
};
|
|
4964
|
-
const maskBackgroundColor = computed(() => {
|
|
4965
|
-
if (!props.showMask) return "transparent";
|
|
4966
|
-
switch (props.maskColor) {
|
|
4967
|
-
case "white":
|
|
4968
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
4969
|
-
case "black":
|
|
4970
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4971
|
-
case "transparent":
|
|
4972
|
-
return "transparent";
|
|
4973
|
-
default:
|
|
4974
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
4975
|
-
}
|
|
4976
|
-
});
|
|
4977
|
-
return (_ctx, _cache) => {
|
|
4978
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4979
|
-
createVNode(Transition, { name: "fade" }, {
|
|
4980
|
-
default: withCtx(() => [
|
|
4981
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4982
|
-
key: 0,
|
|
4983
|
-
class: "f-dialog-mask",
|
|
4984
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4985
|
-
onClick: handleMaskClick
|
|
4986
|
-
}, [
|
|
4987
|
-
createElementVNode("div", {
|
|
4988
|
-
class: "f-dialog-container",
|
|
4989
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4990
|
-
}, ["stop"]))
|
|
4991
|
-
}, [
|
|
4992
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4993
|
-
])
|
|
4994
|
-
], 4)) : createCommentVNode("", true)
|
|
4995
|
-
]),
|
|
4996
|
-
_: 3
|
|
4997
|
-
})
|
|
4998
|
-
]);
|
|
4999
|
-
};
|
|
5000
|
-
}
|
|
5001
|
-
});
|
|
5002
|
-
var __defProp22222222222 = Object.defineProperty;
|
|
5003
|
-
var __getOwnPropSymbols22222222222 = Object.getOwnPropertySymbols;
|
|
5004
|
-
var __hasOwnProp22222222222 = Object.prototype.hasOwnProperty;
|
|
5005
|
-
var __propIsEnum22222222222 = Object.prototype.propertyIsEnumerable;
|
|
5006
|
-
var __defNormalProp22222222222 = (obj, key, value) => key in obj ? __defProp22222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5007
|
-
var __spreadValues22222222222 = (a, b) => {
|
|
5008
|
-
for (var prop in b || (b = {}))
|
|
5009
|
-
if (__hasOwnProp22222222222.call(b, prop))
|
|
5010
|
-
__defNormalProp22222222222(a, prop, b[prop]);
|
|
5011
|
-
if (__getOwnPropSymbols22222222222)
|
|
5012
|
-
for (var prop of __getOwnPropSymbols22222222222(b)) {
|
|
5013
|
-
if (__propIsEnum22222222222.call(b, prop))
|
|
5014
|
-
__defNormalProp22222222222(a, prop, b[prop]);
|
|
5015
|
-
}
|
|
5016
|
-
return a;
|
|
5017
|
-
};
|
|
5018
|
-
const _hoisted_1$l = { class: "f-checkbox__wrapper" };
|
|
5019
|
-
const _hoisted_2$k = ["checked", "disabled"];
|
|
5020
|
-
const _hoisted_3$k = {
|
|
5021
|
-
key: 0,
|
|
5022
|
-
class: "f-checkbox__label"
|
|
5023
|
-
};
|
|
5024
|
-
/* @__PURE__ */ defineComponent({
|
|
5025
|
-
__name: "FCheckbox",
|
|
5026
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5027
|
-
label: {},
|
|
5028
|
-
disabled: { type: Boolean }
|
|
5029
|
-
}, {
|
|
5030
|
-
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5031
|
-
"modelModifiers": {}
|
|
5032
|
-
}),
|
|
5033
|
-
emits: ["update:modelValue"],
|
|
5034
|
-
setup(__props) {
|
|
5035
|
-
const modelValue = useModel(__props, "modelValue");
|
|
5036
|
-
const props = __props;
|
|
5037
|
-
const handleChange = (e) => {
|
|
5038
|
-
if (props.disabled) return;
|
|
5039
|
-
const target = e.target;
|
|
5040
|
-
modelValue.value = target.checked;
|
|
5041
|
-
};
|
|
5042
|
-
return (_ctx, _cache) => {
|
|
5043
|
-
return openBlock(), createElementBlock("label", {
|
|
5044
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5045
|
-
}, [
|
|
5046
|
-
createElementVNode("span", _hoisted_1$l, [
|
|
5047
|
-
createElementVNode("input", {
|
|
5048
|
-
type: "checkbox",
|
|
5049
|
-
checked: modelValue.value,
|
|
5050
|
-
disabled: _ctx.disabled,
|
|
5051
|
-
onChange: handleChange
|
|
5052
|
-
}, null, 40, _hoisted_2$k),
|
|
5053
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5054
|
-
]),
|
|
5055
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5056
|
-
], 2);
|
|
5057
|
-
};
|
|
5058
|
-
}
|
|
5059
|
-
});
|
|
5060
|
-
/* @__PURE__ */ defineComponent({
|
|
5061
|
-
__name: "FDialog",
|
|
5062
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5063
|
-
maskClosable: { type: Boolean, default: true },
|
|
5064
|
-
maskColor: { default: "black" },
|
|
5065
|
-
showMask: { type: Boolean, default: true }
|
|
5066
|
-
}, {
|
|
5067
|
-
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5068
|
-
"modelModifiers": {}
|
|
5069
|
-
}),
|
|
5070
|
-
emits: ["update:modelValue"],
|
|
5071
|
-
setup(__props) {
|
|
5072
|
-
const props = __props;
|
|
5073
|
-
const visible = useModel(__props, "modelValue");
|
|
5074
|
-
const handleMaskClick = () => {
|
|
5075
|
-
if (props.maskClosable) visible.value = false;
|
|
5076
|
-
};
|
|
5077
|
-
const maskBackgroundColor = computed(() => {
|
|
5078
|
-
if (!props.showMask) return "transparent";
|
|
5079
|
-
switch (props.maskColor) {
|
|
5080
|
-
case "white":
|
|
5081
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
5082
|
-
case "black":
|
|
5083
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5084
|
-
case "transparent":
|
|
5085
|
-
return "transparent";
|
|
5086
|
-
default:
|
|
5087
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5088
|
-
}
|
|
5089
|
-
});
|
|
5090
|
-
return (_ctx, _cache) => {
|
|
5091
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5092
|
-
createVNode(Transition, { name: "fade" }, {
|
|
5093
|
-
default: withCtx(() => [
|
|
5094
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5095
|
-
key: 0,
|
|
5096
|
-
class: "f-dialog-mask",
|
|
5097
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5098
|
-
onClick: handleMaskClick
|
|
5099
|
-
}, [
|
|
5100
|
-
createElementVNode("div", {
|
|
5101
|
-
class: "f-dialog-container",
|
|
5102
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5103
|
-
}, ["stop"]))
|
|
5104
|
-
}, [
|
|
5105
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5106
|
-
])
|
|
5107
|
-
], 4)) : createCommentVNode("", true)
|
|
5108
|
-
]),
|
|
5109
|
-
_: 3
|
|
5110
|
-
})
|
|
5111
|
-
]);
|
|
5112
|
-
};
|
|
5113
|
-
}
|
|
5114
|
-
});
|
|
5115
|
-
var __defProp222222222222 = Object.defineProperty;
|
|
5116
|
-
var __getOwnPropSymbols222222222222 = Object.getOwnPropertySymbols;
|
|
5117
|
-
var __hasOwnProp222222222222 = Object.prototype.hasOwnProperty;
|
|
5118
|
-
var __propIsEnum222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5119
|
-
var __defNormalProp222222222222 = (obj, key, value) => key in obj ? __defProp222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5120
|
-
var __spreadValues222222222222 = (a, b) => {
|
|
5121
|
-
for (var prop in b || (b = {}))
|
|
5122
|
-
if (__hasOwnProp222222222222.call(b, prop))
|
|
5123
|
-
__defNormalProp222222222222(a, prop, b[prop]);
|
|
5124
|
-
if (__getOwnPropSymbols222222222222)
|
|
5125
|
-
for (var prop of __getOwnPropSymbols222222222222(b)) {
|
|
5126
|
-
if (__propIsEnum222222222222.call(b, prop))
|
|
5127
|
-
__defNormalProp222222222222(a, prop, b[prop]);
|
|
5128
|
-
}
|
|
5129
|
-
return a;
|
|
5130
|
-
};
|
|
5131
|
-
const _hoisted_1$k = { class: "f-checkbox__wrapper" };
|
|
5132
|
-
const _hoisted_2$j = ["checked", "disabled"];
|
|
5133
|
-
const _hoisted_3$j = {
|
|
5134
|
-
key: 0,
|
|
5135
|
-
class: "f-checkbox__label"
|
|
5136
|
-
};
|
|
5137
|
-
/* @__PURE__ */ defineComponent({
|
|
5138
|
-
__name: "FCheckbox",
|
|
5139
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5140
|
-
label: {},
|
|
5141
|
-
disabled: { type: Boolean }
|
|
5142
|
-
}, {
|
|
5143
|
-
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
5144
|
-
"modelModifiers": {}
|
|
5145
|
-
}),
|
|
5146
|
-
emits: ["update:modelValue"],
|
|
5147
|
-
setup(__props) {
|
|
5148
|
-
const modelValue = useModel(__props, "modelValue");
|
|
5149
|
-
const props = __props;
|
|
5150
|
-
const handleChange = (e) => {
|
|
5151
|
-
if (props.disabled) return;
|
|
5152
|
-
const target = e.target;
|
|
5153
|
-
modelValue.value = target.checked;
|
|
5154
|
-
};
|
|
5155
|
-
return (_ctx, _cache) => {
|
|
5156
|
-
return openBlock(), createElementBlock("label", {
|
|
5157
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5158
|
-
}, [
|
|
5159
|
-
createElementVNode("span", _hoisted_1$k, [
|
|
5160
|
-
createElementVNode("input", {
|
|
5161
|
-
type: "checkbox",
|
|
5162
|
-
checked: modelValue.value,
|
|
5163
|
-
disabled: _ctx.disabled,
|
|
5164
|
-
onChange: handleChange
|
|
5165
|
-
}, null, 40, _hoisted_2$j),
|
|
5166
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5167
|
-
]),
|
|
5168
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5169
|
-
], 2);
|
|
5170
|
-
};
|
|
5171
|
-
}
|
|
5172
|
-
});
|
|
5173
|
-
/* @__PURE__ */ defineComponent({
|
|
5174
|
-
__name: "FDialog",
|
|
5175
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5176
|
-
maskClosable: { type: Boolean, default: true },
|
|
5177
|
-
maskColor: { default: "black" },
|
|
5178
|
-
showMask: { type: Boolean, default: true }
|
|
5179
|
-
}, {
|
|
5180
|
-
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
5181
|
-
"modelModifiers": {}
|
|
5182
|
-
}),
|
|
5183
|
-
emits: ["update:modelValue"],
|
|
5184
|
-
setup(__props) {
|
|
5185
|
-
const props = __props;
|
|
5186
|
-
const visible = useModel(__props, "modelValue");
|
|
5187
|
-
const handleMaskClick = () => {
|
|
5188
|
-
if (props.maskClosable) visible.value = false;
|
|
5189
|
-
};
|
|
5190
|
-
const maskBackgroundColor = computed(() => {
|
|
5191
|
-
if (!props.showMask) return "transparent";
|
|
5192
|
-
switch (props.maskColor) {
|
|
5193
|
-
case "white":
|
|
5194
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
5195
|
-
case "black":
|
|
5196
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5197
|
-
case "transparent":
|
|
5198
|
-
return "transparent";
|
|
5199
|
-
default:
|
|
5200
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5201
|
-
}
|
|
5202
|
-
});
|
|
5203
|
-
return (_ctx, _cache) => {
|
|
5204
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5205
|
-
createVNode(Transition, { name: "fade" }, {
|
|
5206
|
-
default: withCtx(() => [
|
|
5207
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5208
|
-
key: 0,
|
|
5209
|
-
class: "f-dialog-mask",
|
|
5210
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5211
|
-
onClick: handleMaskClick
|
|
5212
|
-
}, [
|
|
5213
|
-
createElementVNode("div", {
|
|
5214
|
-
class: "f-dialog-container",
|
|
5215
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5216
|
-
}, ["stop"]))
|
|
5217
|
-
}, [
|
|
5218
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5219
|
-
])
|
|
5220
|
-
], 4)) : createCommentVNode("", true)
|
|
5221
|
-
]),
|
|
5222
|
-
_: 3
|
|
5223
|
-
})
|
|
5224
|
-
]);
|
|
5225
|
-
};
|
|
5226
|
-
}
|
|
5227
|
-
});
|
|
5228
|
-
var __defProp2222222222222 = Object.defineProperty;
|
|
5229
|
-
var __getOwnPropSymbols2222222222222 = Object.getOwnPropertySymbols;
|
|
5230
|
-
var __hasOwnProp2222222222222 = Object.prototype.hasOwnProperty;
|
|
5231
|
-
var __propIsEnum2222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5232
|
-
var __defNormalProp2222222222222 = (obj, key, value) => key in obj ? __defProp2222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5233
|
-
var __spreadValues2222222222222 = (a, b) => {
|
|
5234
|
-
for (var prop in b || (b = {}))
|
|
5235
|
-
if (__hasOwnProp2222222222222.call(b, prop))
|
|
5236
|
-
__defNormalProp2222222222222(a, prop, b[prop]);
|
|
5237
|
-
if (__getOwnPropSymbols2222222222222)
|
|
5238
|
-
for (var prop of __getOwnPropSymbols2222222222222(b)) {
|
|
5239
|
-
if (__propIsEnum2222222222222.call(b, prop))
|
|
5240
|
-
__defNormalProp2222222222222(a, prop, b[prop]);
|
|
5241
|
-
}
|
|
5242
|
-
return a;
|
|
5243
|
-
};
|
|
5244
|
-
const _hoisted_1$j = { class: "f-checkbox__wrapper" };
|
|
5245
|
-
const _hoisted_2$i = ["checked", "disabled"];
|
|
5246
|
-
const _hoisted_3$i = {
|
|
5247
|
-
key: 0,
|
|
5248
|
-
class: "f-checkbox__label"
|
|
5249
|
-
};
|
|
5250
|
-
/* @__PURE__ */ defineComponent({
|
|
5251
|
-
__name: "FCheckbox",
|
|
5252
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5253
|
-
label: {},
|
|
5254
|
-
disabled: { type: Boolean }
|
|
5255
|
-
}, {
|
|
5256
|
-
"modelValue": __spreadValues2222222222222({ type: Boolean }, { default: false }),
|
|
5257
|
-
"modelModifiers": {}
|
|
5258
|
-
}),
|
|
5259
|
-
emits: ["update:modelValue"],
|
|
5260
|
-
setup(__props) {
|
|
5261
|
-
const modelValue = useModel(__props, "modelValue");
|
|
5262
|
-
const props = __props;
|
|
5263
|
-
const handleChange = (e) => {
|
|
5264
|
-
if (props.disabled) return;
|
|
5265
|
-
const target = e.target;
|
|
5266
|
-
modelValue.value = target.checked;
|
|
5267
|
-
};
|
|
5268
|
-
return (_ctx, _cache) => {
|
|
5269
|
-
return openBlock(), createElementBlock("label", {
|
|
5270
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5271
|
-
}, [
|
|
5272
|
-
createElementVNode("span", _hoisted_1$j, [
|
|
5273
|
-
createElementVNode("input", {
|
|
5274
|
-
type: "checkbox",
|
|
5275
|
-
checked: modelValue.value,
|
|
5276
|
-
disabled: _ctx.disabled,
|
|
5277
|
-
onChange: handleChange
|
|
5278
|
-
}, null, 40, _hoisted_2$i),
|
|
5279
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5280
|
-
]),
|
|
5281
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5282
|
-
], 2);
|
|
5283
|
-
};
|
|
5284
|
-
}
|
|
5285
|
-
});
|
|
5286
|
-
/* @__PURE__ */ defineComponent({
|
|
5287
|
-
__name: "FDialog",
|
|
5288
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5289
|
-
maskClosable: { type: Boolean, default: true },
|
|
5290
|
-
maskColor: { default: "black" },
|
|
5291
|
-
showMask: { type: Boolean, default: true }
|
|
5292
|
-
}, {
|
|
5293
|
-
"modelValue": __spreadValues2222222222222({ type: Boolean }, { default: false }),
|
|
5294
|
-
"modelModifiers": {}
|
|
5295
|
-
}),
|
|
5296
|
-
emits: ["update:modelValue"],
|
|
5297
|
-
setup(__props) {
|
|
5298
|
-
const props = __props;
|
|
5299
|
-
const visible = useModel(__props, "modelValue");
|
|
5300
|
-
const handleMaskClick = () => {
|
|
5301
|
-
if (props.maskClosable) visible.value = false;
|
|
5302
|
-
};
|
|
5303
|
-
const maskBackgroundColor = computed(() => {
|
|
5304
|
-
if (!props.showMask) return "transparent";
|
|
5305
|
-
switch (props.maskColor) {
|
|
5306
|
-
case "white":
|
|
5307
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
5308
|
-
case "black":
|
|
5309
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5310
|
-
case "transparent":
|
|
5311
|
-
return "transparent";
|
|
5312
|
-
default:
|
|
5313
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5314
|
-
}
|
|
5315
|
-
});
|
|
5316
|
-
return (_ctx, _cache) => {
|
|
5317
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5318
|
-
createVNode(Transition, { name: "fade" }, {
|
|
5319
|
-
default: withCtx(() => [
|
|
5320
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5321
|
-
key: 0,
|
|
5322
|
-
class: "f-dialog-mask",
|
|
5323
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5324
|
-
onClick: handleMaskClick
|
|
5325
|
-
}, [
|
|
5326
|
-
createElementVNode("div", {
|
|
5327
|
-
class: "f-dialog-container",
|
|
5328
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5329
|
-
}, ["stop"]))
|
|
5330
|
-
}, [
|
|
5331
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5332
|
-
])
|
|
5333
|
-
], 4)) : createCommentVNode("", true)
|
|
5334
|
-
]),
|
|
5335
|
-
_: 3
|
|
5336
|
-
})
|
|
5337
|
-
]);
|
|
5338
|
-
};
|
|
5339
|
-
}
|
|
5340
|
-
});
|
|
5341
|
-
var __defProp22222222222222 = Object.defineProperty;
|
|
5342
|
-
var __getOwnPropSymbols22222222222222 = Object.getOwnPropertySymbols;
|
|
5343
|
-
var __hasOwnProp22222222222222 = Object.prototype.hasOwnProperty;
|
|
5344
|
-
var __propIsEnum22222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5345
|
-
var __defNormalProp22222222222222 = (obj, key, value) => key in obj ? __defProp22222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5346
|
-
var __spreadValues22222222222222 = (a, b) => {
|
|
5347
|
-
for (var prop in b || (b = {}))
|
|
5348
|
-
if (__hasOwnProp22222222222222.call(b, prop))
|
|
5349
|
-
__defNormalProp22222222222222(a, prop, b[prop]);
|
|
5350
|
-
if (__getOwnPropSymbols22222222222222)
|
|
5351
|
-
for (var prop of __getOwnPropSymbols22222222222222(b)) {
|
|
5352
|
-
if (__propIsEnum22222222222222.call(b, prop))
|
|
5353
|
-
__defNormalProp22222222222222(a, prop, b[prop]);
|
|
5354
|
-
}
|
|
5355
|
-
return a;
|
|
5356
|
-
};
|
|
5357
|
-
const _hoisted_1$i = { class: "f-checkbox__wrapper" };
|
|
5358
|
-
const _hoisted_2$h = ["checked", "disabled"];
|
|
5359
|
-
const _hoisted_3$h = {
|
|
5360
|
-
key: 0,
|
|
5361
|
-
class: "f-checkbox__label"
|
|
5362
|
-
};
|
|
5363
|
-
/* @__PURE__ */ defineComponent({
|
|
5364
|
-
__name: "FCheckbox",
|
|
5365
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5366
|
-
label: {},
|
|
5367
|
-
disabled: { type: Boolean }
|
|
5368
|
-
}, {
|
|
5369
|
-
"modelValue": __spreadValues22222222222222({ type: Boolean }, { default: false }),
|
|
5370
|
-
"modelModifiers": {}
|
|
5371
|
-
}),
|
|
5372
|
-
emits: ["update:modelValue"],
|
|
5373
|
-
setup(__props) {
|
|
5374
|
-
const modelValue = useModel(__props, "modelValue");
|
|
5375
|
-
const props = __props;
|
|
5376
|
-
const handleChange = (e) => {
|
|
5377
|
-
if (props.disabled) return;
|
|
5378
|
-
const target = e.target;
|
|
5379
|
-
modelValue.value = target.checked;
|
|
5380
|
-
};
|
|
5381
|
-
return (_ctx, _cache) => {
|
|
5382
|
-
return openBlock(), createElementBlock("label", {
|
|
5383
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5384
|
-
}, [
|
|
5385
|
-
createElementVNode("span", _hoisted_1$i, [
|
|
5386
|
-
createElementVNode("input", {
|
|
5387
|
-
type: "checkbox",
|
|
5388
|
-
checked: modelValue.value,
|
|
5389
|
-
disabled: _ctx.disabled,
|
|
5390
|
-
onChange: handleChange
|
|
5391
|
-
}, null, 40, _hoisted_2$h),
|
|
5392
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5393
|
-
]),
|
|
5394
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5395
|
-
], 2);
|
|
5396
|
-
};
|
|
5397
|
-
}
|
|
5398
|
-
});
|
|
5399
|
-
/* @__PURE__ */ defineComponent({
|
|
5400
|
-
__name: "FDialog",
|
|
5401
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5402
|
-
maskClosable: { type: Boolean, default: true },
|
|
5403
|
-
maskColor: { default: "black" },
|
|
5404
|
-
showMask: { type: Boolean, default: true }
|
|
5405
|
-
}, {
|
|
5406
|
-
"modelValue": __spreadValues22222222222222({ type: Boolean }, { default: false }),
|
|
5407
|
-
"modelModifiers": {}
|
|
5408
|
-
}),
|
|
5409
|
-
emits: ["update:modelValue"],
|
|
5410
|
-
setup(__props) {
|
|
5411
|
-
const props = __props;
|
|
5412
|
-
const visible = useModel(__props, "modelValue");
|
|
5413
|
-
const handleMaskClick = () => {
|
|
5414
|
-
if (props.maskClosable) visible.value = false;
|
|
5415
|
-
};
|
|
5416
|
-
const maskBackgroundColor = computed(() => {
|
|
5417
|
-
if (!props.showMask) return "transparent";
|
|
5418
|
-
switch (props.maskColor) {
|
|
5419
|
-
case "white":
|
|
5420
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
5421
|
-
case "black":
|
|
5422
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5423
|
-
case "transparent":
|
|
5424
|
-
return "transparent";
|
|
5425
|
-
default:
|
|
5426
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5427
|
-
}
|
|
5428
|
-
});
|
|
5429
|
-
return (_ctx, _cache) => {
|
|
5430
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5431
|
-
createVNode(Transition, { name: "fade" }, {
|
|
5432
|
-
default: withCtx(() => [
|
|
5433
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5434
|
-
key: 0,
|
|
5435
|
-
class: "f-dialog-mask",
|
|
5436
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5437
|
-
onClick: handleMaskClick
|
|
5438
|
-
}, [
|
|
5439
|
-
createElementVNode("div", {
|
|
5440
|
-
class: "f-dialog-container",
|
|
5441
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5442
|
-
}, ["stop"]))
|
|
5443
|
-
}, [
|
|
5444
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5445
|
-
])
|
|
5446
|
-
], 4)) : createCommentVNode("", true)
|
|
5447
|
-
]),
|
|
5448
|
-
_: 3
|
|
5449
|
-
})
|
|
5450
|
-
]);
|
|
5451
|
-
};
|
|
5452
|
-
}
|
|
5453
|
-
});
|
|
5454
|
-
var __defProp222222222222222 = Object.defineProperty;
|
|
5455
|
-
var __getOwnPropSymbols222222222222222 = Object.getOwnPropertySymbols;
|
|
5456
|
-
var __hasOwnProp222222222222222 = Object.prototype.hasOwnProperty;
|
|
5457
|
-
var __propIsEnum222222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5458
|
-
var __defNormalProp222222222222222 = (obj, key, value) => key in obj ? __defProp222222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5459
|
-
var __spreadValues222222222222222 = (a, b) => {
|
|
5460
|
-
for (var prop in b || (b = {}))
|
|
5461
|
-
if (__hasOwnProp222222222222222.call(b, prop))
|
|
5462
|
-
__defNormalProp222222222222222(a, prop, b[prop]);
|
|
5463
|
-
if (__getOwnPropSymbols222222222222222)
|
|
5464
|
-
for (var prop of __getOwnPropSymbols222222222222222(b)) {
|
|
5465
|
-
if (__propIsEnum222222222222222.call(b, prop))
|
|
5466
|
-
__defNormalProp222222222222222(a, prop, b[prop]);
|
|
5467
|
-
}
|
|
5468
|
-
return a;
|
|
5469
|
-
};
|
|
5470
|
-
const _hoisted_1$h = { class: "f-checkbox__wrapper" };
|
|
5471
|
-
const _hoisted_2$g = ["checked", "disabled"];
|
|
5472
|
-
const _hoisted_3$g = {
|
|
5473
|
-
key: 0,
|
|
5474
|
-
class: "f-checkbox__label"
|
|
5475
|
-
};
|
|
5476
|
-
/* @__PURE__ */ defineComponent({
|
|
5477
|
-
__name: "FCheckbox",
|
|
5478
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5479
|
-
label: {},
|
|
5480
|
-
disabled: { type: Boolean }
|
|
5481
|
-
}, {
|
|
5482
|
-
"modelValue": __spreadValues222222222222222({ type: Boolean }, { default: false }),
|
|
5483
|
-
"modelModifiers": {}
|
|
5484
|
-
}),
|
|
5485
|
-
emits: ["update:modelValue"],
|
|
5486
|
-
setup(__props) {
|
|
5487
|
-
const modelValue = useModel(__props, "modelValue");
|
|
5488
|
-
const props = __props;
|
|
5489
|
-
const handleChange = (e) => {
|
|
5490
|
-
if (props.disabled) return;
|
|
5491
|
-
const target = e.target;
|
|
5492
|
-
modelValue.value = target.checked;
|
|
5493
|
-
};
|
|
5494
|
-
return (_ctx, _cache) => {
|
|
5495
|
-
return openBlock(), createElementBlock("label", {
|
|
5496
|
-
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5497
|
-
}, [
|
|
5498
|
-
createElementVNode("span", _hoisted_1$h, [
|
|
5499
|
-
createElementVNode("input", {
|
|
5500
|
-
type: "checkbox",
|
|
5501
|
-
checked: modelValue.value,
|
|
5502
|
-
disabled: _ctx.disabled,
|
|
5503
|
-
onChange: handleChange
|
|
5504
|
-
}, null, 40, _hoisted_2$g),
|
|
5505
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5506
|
-
]),
|
|
5507
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5508
|
-
], 2);
|
|
5509
|
-
};
|
|
5510
|
-
}
|
|
5511
|
-
});
|
|
5512
|
-
/* @__PURE__ */ defineComponent({
|
|
5513
|
-
__name: "FDialog",
|
|
5514
|
-
props: /* @__PURE__ */ mergeModels({
|
|
5515
|
-
maskClosable: { type: Boolean, default: true },
|
|
5516
|
-
maskColor: { default: "black" },
|
|
5517
|
-
showMask: { type: Boolean, default: true }
|
|
5518
|
-
}, {
|
|
5519
|
-
"modelValue": __spreadValues222222222222222({ type: Boolean }, { default: false }),
|
|
5520
|
-
"modelModifiers": {}
|
|
5521
|
-
}),
|
|
5522
|
-
emits: ["update:modelValue"],
|
|
5523
|
-
setup(__props) {
|
|
5524
|
-
const props = __props;
|
|
5525
|
-
const visible = useModel(__props, "modelValue");
|
|
5526
|
-
const handleMaskClick = () => {
|
|
5527
|
-
if (props.maskClosable) visible.value = false;
|
|
5528
|
-
};
|
|
5529
|
-
const maskBackgroundColor = computed(() => {
|
|
5530
|
-
if (!props.showMask) return "transparent";
|
|
5531
|
-
switch (props.maskColor) {
|
|
5532
|
-
case "white":
|
|
5533
|
-
return "rgba(255, 255, 255, 0.5)";
|
|
5534
|
-
case "black":
|
|
5535
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5536
|
-
case "transparent":
|
|
5537
|
-
return "transparent";
|
|
5538
|
-
default:
|
|
5539
|
-
return "rgba(0, 0, 0, 0.5)";
|
|
5540
|
-
}
|
|
5541
|
-
});
|
|
5542
|
-
return (_ctx, _cache) => {
|
|
5543
|
-
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5544
|
-
createVNode(Transition, { name: "fade" }, {
|
|
5545
|
-
default: withCtx(() => [
|
|
5546
|
-
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5547
|
-
key: 0,
|
|
5548
|
-
class: "f-dialog-mask",
|
|
5549
|
-
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5550
|
-
onClick: handleMaskClick
|
|
5551
|
-
}, [
|
|
5552
|
-
createElementVNode("div", {
|
|
5553
|
-
class: "f-dialog-container",
|
|
5554
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5555
|
-
}, ["stop"]))
|
|
5556
|
-
}, [
|
|
5557
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5558
|
-
])
|
|
5559
|
-
], 4)) : createCommentVNode("", true)
|
|
5560
|
-
]),
|
|
5561
|
-
_: 3
|
|
5562
|
-
})
|
|
5563
|
-
]);
|
|
5564
|
-
};
|
|
5565
|
-
}
|
|
5566
|
-
});
|
|
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 = {
|
|
6624
|
-
key: 0,
|
|
6625
|
-
class: "f-result__code"
|
|
6626
|
-
};
|
|
6627
|
-
const _hoisted_3$1 = {
|
|
6628
|
-
key: 0,
|
|
6629
|
-
class: "f-result__title"
|
|
6630
|
-
};
|
|
6631
|
-
const _hoisted_4 = {
|
|
6632
|
-
key: 1,
|
|
6633
|
-
class: "f-result__subtitle"
|
|
6634
|
-
};
|
|
6635
|
-
const _hoisted_5 = {
|
|
6636
|
-
key: 2,
|
|
6637
|
-
class: "f-result__extra"
|
|
6638
|
-
};
|
|
6639
|
-
const _hoisted_6 = {
|
|
6640
|
-
key: 3,
|
|
6641
|
-
class: "f-result__content"
|
|
6642
|
-
};
|
|
6643
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
6644
|
-
__name: "FResult",
|
|
6645
|
-
props: {
|
|
6646
|
-
status: { default: "info" },
|
|
6647
|
-
title: {},
|
|
6648
|
-
subTitle: {},
|
|
6649
|
-
icon: {}
|
|
6650
|
-
},
|
|
6651
|
-
setup(__props) {
|
|
6652
|
-
const props = __props;
|
|
6653
|
-
const statusIconMap = {
|
|
6654
|
-
success: CheckmarkCircle,
|
|
6655
|
-
error: CloseCircle,
|
|
6656
|
-
warning: AlertCircle,
|
|
6657
|
-
info: InformationCircle
|
|
6658
|
-
};
|
|
6659
|
-
const isCodeStatus = computed(() => ["403", "404", "500"].includes(props.status));
|
|
6660
|
-
const showCode = computed(() => !props.icon && isCodeStatus.value);
|
|
6661
|
-
const resolvedIcon = computed(() => {
|
|
6662
|
-
var _a;
|
|
6663
|
-
return (_a = props.icon) != null ? _a : statusIconMap[props.status];
|
|
6664
|
-
});
|
|
6665
|
-
return (_ctx, _cache) => {
|
|
6666
|
-
return openBlock(), createElementBlock("div", {
|
|
6667
|
-
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
6668
|
-
}, [
|
|
6669
|
-
createElementVNode("div", _hoisted_1$2, [
|
|
6670
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6671
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(unref(FIcon), {
|
|
6672
|
-
key: 1,
|
|
6673
|
-
size: 72
|
|
6674
|
-
}, {
|
|
6675
|
-
default: withCtx(() => [
|
|
6676
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(resolvedIcon))))
|
|
6677
|
-
]),
|
|
6678
|
-
_: 1
|
|
6679
|
-
}))
|
|
6680
|
-
], true)
|
|
6681
|
-
]),
|
|
6682
|
-
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
6683
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
6684
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
6685
|
-
], true)
|
|
6686
|
-
])) : createCommentVNode("", true),
|
|
6687
|
-
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
6688
|
-
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
6689
|
-
createTextVNode(toDisplayString(_ctx.subTitle), 1)
|
|
6690
|
-
], true)
|
|
6691
|
-
])) : createCommentVNode("", true),
|
|
6692
|
-
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
6693
|
-
renderSlot(_ctx.$slots, "extra", {}, void 0, true)
|
|
6694
|
-
])) : createCommentVNode("", true),
|
|
6695
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
6696
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6697
|
-
])) : createCommentVNode("", true)
|
|
6698
|
-
], 2);
|
|
6699
|
-
};
|
|
6700
|
-
}
|
|
6701
|
-
});
|
|
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 }) {
|
|
3917
|
+
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-1667a865"]]);
|
|
3918
|
+
const _hoisted_1$1 = { class: "f-message__content" };
|
|
3919
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3920
|
+
__name: "FMessage",
|
|
3921
|
+
props: {
|
|
3922
|
+
type: { default: "info" },
|
|
3923
|
+
message: {},
|
|
3924
|
+
duration: { default: 3e3 },
|
|
3925
|
+
closable: { type: Boolean, default: false },
|
|
3926
|
+
showIcon: { type: Boolean, default: true },
|
|
3927
|
+
offset: { default: 20 }
|
|
3928
|
+
},
|
|
3929
|
+
emits: ["close", "destroy"],
|
|
3930
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6716
3931
|
const props = __props;
|
|
6717
3932
|
const emit = __emit;
|
|
6718
3933
|
const visible = ref(false);
|
|
@@ -6769,7 +3984,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6769
3984
|
onMouseenter: clearTimer,
|
|
6770
3985
|
onMouseleave: startTimer
|
|
6771
3986
|
}, [
|
|
6772
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon
|
|
3987
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon, {
|
|
6773
3988
|
key: 0,
|
|
6774
3989
|
class: "f-message__icon"
|
|
6775
3990
|
}, {
|
|
@@ -6786,7 +4001,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6786
4001
|
"aria-label": "close",
|
|
6787
4002
|
onClick: close
|
|
6788
4003
|
}, [
|
|
6789
|
-
createVNode(FIcon
|
|
4004
|
+
createVNode(FIcon, null, {
|
|
6790
4005
|
default: withCtx(() => [
|
|
6791
4006
|
createVNode(unref(Close))
|
|
6792
4007
|
]),
|
|
@@ -6800,7 +4015,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6800
4015
|
};
|
|
6801
4016
|
}
|
|
6802
4017
|
});
|
|
6803
|
-
const FMessageComp = /* @__PURE__ */ _export_sfc
|
|
4018
|
+
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3aba692f"]]);
|
|
6804
4019
|
const GAP$1 = 16;
|
|
6805
4020
|
const BASE_OFFSET$1 = 20;
|
|
6806
4021
|
let seed$1 = 0;
|
|
@@ -6954,7 +4169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6954
4169
|
onMouseleave: startTimer,
|
|
6955
4170
|
onClick: handleClick
|
|
6956
4171
|
}, [
|
|
6957
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon
|
|
4172
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon, {
|
|
6958
4173
|
key: 0,
|
|
6959
4174
|
class: "f-notification__icon"
|
|
6960
4175
|
}, {
|
|
@@ -6974,7 +4189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6974
4189
|
"aria-label": "close",
|
|
6975
4190
|
onClick: withModifiers(close, ["stop"])
|
|
6976
4191
|
}, [
|
|
6977
|
-
createVNode(FIcon
|
|
4192
|
+
createVNode(FIcon, null, {
|
|
6978
4193
|
default: withCtx(() => [
|
|
6979
4194
|
createVNode(unref(Close))
|
|
6980
4195
|
]),
|
|
@@ -6988,7 +4203,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6988
4203
|
};
|
|
6989
4204
|
}
|
|
6990
4205
|
});
|
|
6991
|
-
const FNotificationComp = /* @__PURE__ */ _export_sfc
|
|
4206
|
+
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7600a501"]]);
|
|
6992
4207
|
const GAP = 16;
|
|
6993
4208
|
const BASE_OFFSET = 20;
|
|
6994
4209
|
let seed = 0;
|
|
@@ -7089,21 +4304,21 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
7089
4304
|
FCard,
|
|
7090
4305
|
FCheckbox,
|
|
7091
4306
|
FCol,
|
|
7092
|
-
FCollapse: _sfc_main$
|
|
7093
|
-
FCollapseItem: _sfc_main$
|
|
7094
|
-
FColorPicker: _sfc_main$
|
|
4307
|
+
FCollapse: _sfc_main$9,
|
|
4308
|
+
FCollapseItem: _sfc_main$8,
|
|
4309
|
+
FColorPicker: _sfc_main$7,
|
|
7095
4310
|
FContainer,
|
|
7096
4311
|
FDialog,
|
|
7097
4312
|
FDivider,
|
|
7098
4313
|
FDropdown,
|
|
7099
4314
|
FEditor,
|
|
7100
|
-
FEmpty: _sfc_main$
|
|
4315
|
+
FEmpty: _sfc_main$6,
|
|
7101
4316
|
FForm,
|
|
7102
4317
|
FFormItem,
|
|
7103
|
-
FIcon
|
|
4318
|
+
FIcon,
|
|
7104
4319
|
FImage,
|
|
7105
4320
|
FInput,
|
|
7106
|
-
FInputNumber: _sfc_main$
|
|
4321
|
+
FInputNumber: _sfc_main$3,
|
|
7107
4322
|
FLink,
|
|
7108
4323
|
FLoading,
|
|
7109
4324
|
FMessage,
|
|
@@ -7113,9 +4328,9 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
7113
4328
|
FRate,
|
|
7114
4329
|
FResult,
|
|
7115
4330
|
FRow,
|
|
7116
|
-
FScrollbar: _sfc_main$
|
|
4331
|
+
FScrollbar: _sfc_main$4,
|
|
7117
4332
|
FSelect,
|
|
7118
|
-
FSlider: _sfc_main$
|
|
4333
|
+
FSlider: _sfc_main$5,
|
|
7119
4334
|
FSpace,
|
|
7120
4335
|
FTable,
|
|
7121
4336
|
FTabs,
|
|
@@ -7141,21 +4356,21 @@ export {
|
|
|
7141
4356
|
FCard,
|
|
7142
4357
|
FCheckbox,
|
|
7143
4358
|
FCol,
|
|
7144
|
-
_sfc_main$
|
|
7145
|
-
_sfc_main$
|
|
7146
|
-
_sfc_main$
|
|
4359
|
+
_sfc_main$9 as FCollapse,
|
|
4360
|
+
_sfc_main$8 as FCollapseItem,
|
|
4361
|
+
_sfc_main$7 as FColorPicker,
|
|
7147
4362
|
FContainer,
|
|
7148
4363
|
FDialog,
|
|
7149
4364
|
FDivider,
|
|
7150
4365
|
FDropdown,
|
|
7151
4366
|
FEditor,
|
|
7152
|
-
_sfc_main$
|
|
4367
|
+
_sfc_main$6 as FEmpty,
|
|
7153
4368
|
FForm,
|
|
7154
4369
|
FFormItem,
|
|
7155
|
-
FIcon
|
|
4370
|
+
FIcon,
|
|
7156
4371
|
FImage,
|
|
7157
4372
|
FInput,
|
|
7158
|
-
_sfc_main$
|
|
4373
|
+
_sfc_main$3 as FInputNumber,
|
|
7159
4374
|
FLink,
|
|
7160
4375
|
FLoading,
|
|
7161
4376
|
FMessage,
|
|
@@ -7165,9 +4380,9 @@ export {
|
|
|
7165
4380
|
FRate,
|
|
7166
4381
|
FResult,
|
|
7167
4382
|
FRow,
|
|
7168
|
-
_sfc_main$
|
|
4383
|
+
_sfc_main$4 as FScrollbar,
|
|
7169
4384
|
FSelect,
|
|
7170
|
-
_sfc_main$
|
|
4385
|
+
_sfc_main$5 as FSlider,
|
|
7171
4386
|
FSpace,
|
|
7172
4387
|
FTable,
|
|
7173
4388
|
FTabs,
|