fantasia-ui 0.2.43 → 0.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fantasia-ui.es.js +1048 -292
- package/dist/fantasia-ui.umd.js +1048 -292
- package/package.json +1 -1
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -40,7 +40,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
40
40
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, inject, createBlock, resolveDynamicComponent, nextTick, onUnmounted, Teleport, withModifiers, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, onMounted, onBeforeUnmount, render, h, provide, readonly, reactive, toRefs, createStaticVNode } from "vue";
|
|
41
41
|
import { CloseCircleOutline, EyeOutline, EyeOffOutline, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, CloseOutline, InformationCircleOutline, AlertCircleOutline, WarningOutline, CheckmarkCircleOutline, InformationCircle, Warning, CheckmarkCircle, CloudUpload, DocumentOutline, RemoveOutline, AddOutline, ChevronUpOutline, AlertCircle } from "@vicons/ionicons5";
|
|
42
42
|
import { useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -64,20 +64,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
const _export_sfc$
|
|
67
|
+
const _export_sfc$5 = (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$5 = /* @__PURE__ */ _export_sfc$5(_sfc_main$O, [["__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$z = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$t = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
@@ -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$z, [
|
|
98
98
|
(openBlock(), createElementBlock(Fragment, null, renderList(6, (i) => {
|
|
99
99
|
return createElementVNode("div", {
|
|
100
100
|
class: "item cubes",
|
|
@@ -105,22 +105,22 @@ 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$t, 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$5(_sfc_main$I, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
+
const _hoisted_1$y = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$s = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$o = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
123
|
-
const _hoisted_4$
|
|
123
|
+
const _hoisted_4$h = ["src", "loading"];
|
|
124
124
|
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
@@ -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$y, [
|
|
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$s, [
|
|
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$o, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
|
-
createVNode(FIcon$
|
|
154
|
+
createVNode(FIcon$5, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
156
156
|
createVNode(unref(PictureError))
|
|
157
157
|
]),
|
|
@@ -169,16 +169,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
class: "f-image__img",
|
|
170
170
|
onLoad,
|
|
171
171
|
onError
|
|
172
|
-
}, null, 44, _hoisted_4$
|
|
172
|
+
}, null, 44, _hoisted_4$h), [
|
|
173
173
|
[vShow, unref(status) === "loaded"]
|
|
174
174
|
])
|
|
175
175
|
]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc$
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _hoisted_2$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc$5(_sfc_main$H, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
+
const _hoisted_1$x = ["type", "value", "placeholder"];
|
|
181
|
+
const _hoisted_2$r = { class: "f-input__suffix" };
|
|
182
182
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
183
183
|
__name: "FInput",
|
|
184
184
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -244,9 +244,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
244
244
|
onBlur,
|
|
245
245
|
onFocus,
|
|
246
246
|
class: "f-input__inner"
|
|
247
|
-
}, null, 40, _hoisted_1$
|
|
248
|
-
createElementVNode("div", _hoisted_2$
|
|
249
|
-
unref(showClearIcon) ? (openBlock(), createBlock(FIcon$
|
|
247
|
+
}, null, 40, _hoisted_1$x),
|
|
248
|
+
createElementVNode("div", _hoisted_2$r, [
|
|
249
|
+
unref(showClearIcon) ? (openBlock(), createBlock(FIcon$5, {
|
|
250
250
|
key: 0,
|
|
251
251
|
onClick: clearValue,
|
|
252
252
|
class: "icon-btn"
|
|
@@ -256,7 +256,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
256
256
|
]),
|
|
257
257
|
_: 1
|
|
258
258
|
})) : createCommentVNode("", true),
|
|
259
|
-
unref(showPasswordIcon) ? (openBlock(), createBlock(FIcon$
|
|
259
|
+
unref(showPasswordIcon) ? (openBlock(), createBlock(FIcon$5, {
|
|
260
260
|
key: 1,
|
|
261
261
|
onClick: togglePassword,
|
|
262
262
|
class: "icon-btn"
|
|
@@ -272,9 +272,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const FInput = /* @__PURE__ */ _export_sfc$
|
|
276
|
-
const _hoisted_1$
|
|
277
|
-
const _hoisted_2$
|
|
275
|
+
const FInput = /* @__PURE__ */ _export_sfc$5(_sfc_main$G, [["__scopeId", "data-v-68f468e1"]]);
|
|
276
|
+
const _hoisted_1$w = ["onMousemove"];
|
|
277
|
+
const _hoisted_2$q = {
|
|
278
278
|
key: 0,
|
|
279
279
|
class: "f-rate__score"
|
|
280
280
|
};
|
|
@@ -352,7 +352,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
352
352
|
onMousemove: ($event) => onMouseMove($event, index),
|
|
353
353
|
onClick
|
|
354
354
|
}, [
|
|
355
|
-
createVNode(FIcon$
|
|
355
|
+
createVNode(FIcon$5, {
|
|
356
356
|
color: getStarColor(index),
|
|
357
357
|
size: unref(starSize)
|
|
358
358
|
}, {
|
|
@@ -361,22 +361,22 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
361
361
|
]),
|
|
362
362
|
_: 2
|
|
363
363
|
}, 1032, ["color", "size"])
|
|
364
|
-
], 40, _hoisted_1$
|
|
364
|
+
], 40, _hoisted_1$w);
|
|
365
365
|
}), 128)),
|
|
366
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
366
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$q, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
367
367
|
], 34);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
-
const FRate = /* @__PURE__ */ _export_sfc$
|
|
372
|
-
const _hoisted_1$
|
|
373
|
-
const _hoisted_2$
|
|
374
|
-
const _hoisted_3$
|
|
375
|
-
const _hoisted_4$
|
|
371
|
+
const FRate = /* @__PURE__ */ _export_sfc$5(_sfc_main$F, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
372
|
+
const _hoisted_1$v = { class: "f-dropdown-wrapper" };
|
|
373
|
+
const _hoisted_2$p = { class: "f-dropdown-content" };
|
|
374
|
+
const _hoisted_3$n = ["onClick"];
|
|
375
|
+
const _hoisted_4$g = {
|
|
376
376
|
key: 0,
|
|
377
377
|
class: "opt-icon"
|
|
378
378
|
};
|
|
379
|
-
const _hoisted_5$
|
|
379
|
+
const _hoisted_5$e = { class: "opt-label" };
|
|
380
380
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
381
381
|
__name: "FDropdown",
|
|
382
382
|
props: {
|
|
@@ -549,7 +549,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
549
549
|
});
|
|
550
550
|
useEventListener(window, "click", handleWindowClick);
|
|
551
551
|
return (_ctx, _cache) => {
|
|
552
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
552
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
553
553
|
createElementVNode("div", {
|
|
554
554
|
ref_key: "triggerRef",
|
|
555
555
|
ref: triggerRef,
|
|
@@ -579,18 +579,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
579
579
|
class: "f-dropdown-bridge",
|
|
580
580
|
style: normalizeStyle(unref(bridgeStyle))
|
|
581
581
|
}, null, 4)) : createCommentVNode("", true),
|
|
582
|
-
createElementVNode("div", _hoisted_2$
|
|
582
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
583
583
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
584
584
|
return openBlock(), createElementBlock("div", {
|
|
585
585
|
key: opt.key,
|
|
586
586
|
class: normalizeClass(["f-dropdown-option", { "is-disabled": opt.disabled }]),
|
|
587
587
|
onClick: ($event) => handleOptionClick(opt)
|
|
588
588
|
}, [
|
|
589
|
-
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
589
|
+
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_4$g, [
|
|
590
590
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
591
591
|
])) : createCommentVNode("", true),
|
|
592
|
-
createElementVNode("span", _hoisted_5$
|
|
593
|
-
], 10, _hoisted_3$
|
|
592
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(opt.label), 1)
|
|
593
|
+
], 10, _hoisted_3$n);
|
|
594
594
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
595
595
|
])
|
|
596
596
|
], 36)) : createCommentVNode("", true)
|
|
@@ -602,7 +602,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
|
-
const FDropdown = /* @__PURE__ */ _export_sfc$
|
|
605
|
+
const FDropdown = /* @__PURE__ */ _export_sfc$5(_sfc_main$E, [["__scopeId", "data-v-834f9929"]]);
|
|
606
606
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
607
607
|
__name: "FSelect",
|
|
608
608
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -661,7 +661,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
661
661
|
createElementVNode("span", {
|
|
662
662
|
class: normalizeClass(["f-select__label", { "is-placeholder": !unref(hasValue) }])
|
|
663
663
|
}, toDisplayString(unref(selectedLabel)), 3),
|
|
664
|
-
createVNode(FIcon$
|
|
664
|
+
createVNode(FIcon$5, { class: "f-select__arrow" }, {
|
|
665
665
|
default: withCtx(() => [
|
|
666
666
|
createVNode(unref(ChevronDownOutline))
|
|
667
667
|
]),
|
|
@@ -674,21 +674,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
|
-
const FSelect = /* @__PURE__ */ _export_sfc$
|
|
678
|
-
const _hoisted_1$
|
|
677
|
+
const FSelect = /* @__PURE__ */ _export_sfc$5(_sfc_main$D, [["__scopeId", "data-v-fc1ceb39"]]);
|
|
678
|
+
const _hoisted_1$u = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "f-pagination"
|
|
681
681
|
};
|
|
682
|
-
const _hoisted_2$
|
|
682
|
+
const _hoisted_2$o = {
|
|
683
683
|
key: 0,
|
|
684
684
|
class: "f-pagination__total"
|
|
685
685
|
};
|
|
686
|
-
const _hoisted_3$
|
|
686
|
+
const _hoisted_3$m = {
|
|
687
687
|
key: 1,
|
|
688
688
|
class: "f-pagination__size"
|
|
689
689
|
};
|
|
690
|
-
const _hoisted_4$
|
|
691
|
-
const _hoisted_5$
|
|
690
|
+
const _hoisted_4$f = ["value"];
|
|
691
|
+
const _hoisted_5$d = ["value"];
|
|
692
692
|
const _hoisted_6$7 = {
|
|
693
693
|
key: 3,
|
|
694
694
|
class: "f-pagination__list"
|
|
@@ -752,10 +752,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
752
752
|
jumpInput.value = "";
|
|
753
753
|
};
|
|
754
754
|
return (_ctx, _cache) => {
|
|
755
|
-
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
755
|
+
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
756
756
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
|
|
757
757
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
758
|
-
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
758
|
+
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$o, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
759
759
|
createElementVNode("select", {
|
|
760
760
|
class: "size-select",
|
|
761
761
|
value: _ctx.pageSize,
|
|
@@ -765,15 +765,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
765
765
|
return openBlock(), createElementBlock("option", {
|
|
766
766
|
key: s,
|
|
767
767
|
value: s
|
|
768
|
-
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$
|
|
768
|
+
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$d);
|
|
769
769
|
}), 128))
|
|
770
|
-
], 40, _hoisted_4$
|
|
770
|
+
], 40, _hoisted_4$f)
|
|
771
771
|
])) : item === "prev" ? (openBlock(), createElementBlock("button", {
|
|
772
772
|
key: 2,
|
|
773
773
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === 1 }]),
|
|
774
774
|
onClick: _cache[0] || (_cache[0] = ($event) => go(currentPage.value - 1))
|
|
775
775
|
}, [
|
|
776
|
-
createVNode(FIcon$
|
|
776
|
+
createVNode(FIcon$5, null, {
|
|
777
777
|
default: withCtx(() => [
|
|
778
778
|
createVNode(unref(ChevronBackOutline))
|
|
779
779
|
]),
|
|
@@ -783,7 +783,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
783
783
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pages), (page, index) => {
|
|
784
784
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
785
785
|
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
|
|
786
|
-
createVNode(FIcon$
|
|
786
|
+
createVNode(FIcon$5, null, {
|
|
787
787
|
default: withCtx(() => [
|
|
788
788
|
createVNode(unref(EllipsisHorizontal))
|
|
789
789
|
]),
|
|
@@ -801,7 +801,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
801
801
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === unref(pageCount) }]),
|
|
802
802
|
onClick: _cache[1] || (_cache[1] = ($event) => go(currentPage.value + 1))
|
|
803
803
|
}, [
|
|
804
|
-
createVNode(FIcon$
|
|
804
|
+
createVNode(FIcon$5, null, {
|
|
805
805
|
default: withCtx(() => [
|
|
806
806
|
createVNode(unref(ChevronForwardOutline))
|
|
807
807
|
]),
|
|
@@ -828,24 +828,24 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
|
-
const FPagination = /* @__PURE__ */ _export_sfc$
|
|
832
|
-
const _hoisted_1$
|
|
831
|
+
const FPagination = /* @__PURE__ */ _export_sfc$5(_sfc_main$C, [["__scopeId", "data-v-930f8b20"]]);
|
|
832
|
+
const _hoisted_1$t = {
|
|
833
833
|
key: 0,
|
|
834
834
|
class: "f-card__header"
|
|
835
835
|
};
|
|
836
|
-
const _hoisted_2$
|
|
836
|
+
const _hoisted_2$n = {
|
|
837
837
|
key: 0,
|
|
838
838
|
class: "f-card__header-extra"
|
|
839
839
|
};
|
|
840
|
-
const _hoisted_3$
|
|
840
|
+
const _hoisted_3$l = {
|
|
841
841
|
key: 1,
|
|
842
842
|
class: "f-card__cover"
|
|
843
843
|
};
|
|
844
|
-
const _hoisted_4$
|
|
844
|
+
const _hoisted_4$e = {
|
|
845
845
|
key: 2,
|
|
846
846
|
class: "f-card__body"
|
|
847
847
|
};
|
|
848
|
-
const _hoisted_5$
|
|
848
|
+
const _hoisted_5$c = {
|
|
849
849
|
key: 3,
|
|
850
850
|
class: "f-card__footer"
|
|
851
851
|
};
|
|
@@ -882,19 +882,19 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
882
882
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
883
883
|
}, [
|
|
884
884
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
885
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
885
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
886
886
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
887
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
887
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
|
|
888
888
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
889
889
|
])) : createCommentVNode("", true)
|
|
890
890
|
])) : createCommentVNode("", true),
|
|
891
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
891
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
|
|
892
892
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
893
893
|
])) : createCommentVNode("", true),
|
|
894
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
894
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
895
895
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
896
896
|
])) : createCommentVNode("", true),
|
|
897
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
897
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
898
898
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
899
899
|
])) : createCommentVNode("", true)
|
|
900
900
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -920,8 +920,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
|
-
const FCard = /* @__PURE__ */ _export_sfc$
|
|
924
|
-
const _hoisted_1$
|
|
923
|
+
const FCard = /* @__PURE__ */ _export_sfc$5(_sfc_main$B, [["__scopeId", "data-v-a66fa373"]]);
|
|
924
|
+
const _hoisted_1$s = {
|
|
925
925
|
key: 0,
|
|
926
926
|
class: "f-tag__dot"
|
|
927
927
|
};
|
|
@@ -949,9 +949,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
949
949
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
950
950
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
951
951
|
}, [
|
|
952
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
952
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$s)) : createCommentVNode("", true),
|
|
953
953
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
954
|
-
_ctx.closable ? (openBlock(), createBlock(FIcon$
|
|
954
|
+
_ctx.closable ? (openBlock(), createBlock(FIcon$5, {
|
|
955
955
|
key: 1,
|
|
956
956
|
class: "f-tag__close",
|
|
957
957
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emit("close"), ["stop"]))
|
|
@@ -965,7 +965,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
965
965
|
};
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
|
-
const FTag = /* @__PURE__ */ _export_sfc$
|
|
968
|
+
const FTag = /* @__PURE__ */ _export_sfc$5(_sfc_main$A, [["__scopeId", "data-v-02bd5aa6"]]);
|
|
969
969
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
970
970
|
__name: "FTooltip",
|
|
971
971
|
props: {
|
|
@@ -1070,9 +1070,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
1072
|
});
|
|
1073
|
-
const FTooltip = /* @__PURE__ */ _export_sfc$
|
|
1074
|
-
const _hoisted_1$
|
|
1075
|
-
const _hoisted_2$
|
|
1073
|
+
const FTooltip = /* @__PURE__ */ _export_sfc$5(_sfc_main$z, [["__scopeId", "data-v-be9acca7"]]);
|
|
1074
|
+
const _hoisted_1$r = { class: "f-progress" };
|
|
1075
|
+
const _hoisted_2$m = {
|
|
1076
1076
|
key: 0,
|
|
1077
1077
|
class: "f-progress__text"
|
|
1078
1078
|
};
|
|
@@ -1088,7 +1088,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1088
1088
|
const props = __props;
|
|
1089
1089
|
const clampedPercent = computed(() => Math.min(100, Math.max(0, props.percent)));
|
|
1090
1090
|
return (_ctx, _cache) => {
|
|
1091
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1091
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
1092
1092
|
createElementVNode("div", {
|
|
1093
1093
|
class: "f-progress__track",
|
|
1094
1094
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -1101,16 +1101,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1101
1101
|
})
|
|
1102
1102
|
}, null, 4)
|
|
1103
1103
|
], 4),
|
|
1104
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1104
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$m, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1105
1105
|
]);
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
1108
|
});
|
|
1109
|
-
const FProgress = /* @__PURE__ */ _export_sfc$
|
|
1110
|
-
const _hoisted_1$
|
|
1111
|
-
const _hoisted_2$
|
|
1112
|
-
const _hoisted_3$
|
|
1113
|
-
const _hoisted_4$
|
|
1109
|
+
const FProgress = /* @__PURE__ */ _export_sfc$5(_sfc_main$y, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1110
|
+
const _hoisted_1$q = { class: "f-tabs__nav-container" };
|
|
1111
|
+
const _hoisted_2$l = { class: "f-tabs__nav" };
|
|
1112
|
+
const _hoisted_3$k = ["onClick"];
|
|
1113
|
+
const _hoisted_4$d = { class: "f-tabs__label" };
|
|
1114
1114
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1115
1115
|
__name: "FTabs",
|
|
1116
1116
|
props: {
|
|
@@ -1144,8 +1144,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1144
1144
|
return openBlock(), createElementBlock("div", {
|
|
1145
1145
|
class: normalizeClass(["f-tabs", [`f-tabs--${_ctx.type}`]])
|
|
1146
1146
|
}, [
|
|
1147
|
-
createElementVNode("div", _hoisted_1$
|
|
1148
|
-
createElementVNode("div", _hoisted_2$
|
|
1147
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
1148
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
1149
1149
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1150
1150
|
return openBlock(), createElementBlock("div", {
|
|
1151
1151
|
key: tab.name,
|
|
@@ -1155,8 +1155,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1155
1155
|
}]),
|
|
1156
1156
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1157
1157
|
}, [
|
|
1158
|
-
createElementVNode("span", _hoisted_4$
|
|
1159
|
-
], 10, _hoisted_3$
|
|
1158
|
+
createElementVNode("span", _hoisted_4$d, toDisplayString(tab.label), 1)
|
|
1159
|
+
], 10, _hoisted_3$k);
|
|
1160
1160
|
}), 128))
|
|
1161
1161
|
])
|
|
1162
1162
|
]),
|
|
@@ -1174,13 +1174,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
});
|
|
1177
|
-
const FTabs = /* @__PURE__ */ _export_sfc$
|
|
1178
|
-
const _hoisted_1$
|
|
1177
|
+
const FTabs = /* @__PURE__ */ _export_sfc$5(_sfc_main$x, [["__scopeId", "data-v-268fc654"]]);
|
|
1178
|
+
const _hoisted_1$p = {
|
|
1179
1179
|
class: "f-breadcrumb__current",
|
|
1180
1180
|
"aria-current": "page"
|
|
1181
1181
|
};
|
|
1182
|
-
const _hoisted_2$
|
|
1183
|
-
const _hoisted_3$
|
|
1182
|
+
const _hoisted_2$k = ["href"];
|
|
1183
|
+
const _hoisted_3$j = {
|
|
1184
1184
|
key: 3,
|
|
1185
1185
|
class: "f-breadcrumb__text"
|
|
1186
1186
|
};
|
|
@@ -1212,12 +1212,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1212
1212
|
key: 1,
|
|
1213
1213
|
item
|
|
1214
1214
|
}, () => [
|
|
1215
|
-
createElementVNode("span", _hoisted_1$
|
|
1215
|
+
createElementVNode("span", _hoisted_1$p, toDisplayString(item.label), 1)
|
|
1216
1216
|
], true) : item.href ? (openBlock(), createElementBlock("a", {
|
|
1217
1217
|
key: 2,
|
|
1218
1218
|
href: item.href,
|
|
1219
1219
|
class: "f-breadcrumb__link"
|
|
1220
|
-
}, toDisplayString(item.label), 9, _hoisted_2$
|
|
1220
|
+
}, toDisplayString(item.label), 9, _hoisted_2$k)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(item.label), 1))
|
|
1221
1221
|
], 64);
|
|
1222
1222
|
}), 128))
|
|
1223
1223
|
]),
|
|
@@ -1227,7 +1227,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc$
|
|
1230
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc$5(_sfc_main$w, [["__scopeId", "data-v-55b15358"]]);
|
|
1231
1231
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1232
1232
|
__name: "FCol",
|
|
1233
1233
|
props: {
|
|
@@ -1269,7 +1269,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
1271
|
});
|
|
1272
|
-
const FCol = /* @__PURE__ */ _export_sfc$
|
|
1272
|
+
const FCol = /* @__PURE__ */ _export_sfc$5(_sfc_main$v, [["__scopeId", "data-v-5a8b0cb4"]]);
|
|
1273
1273
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1274
1274
|
__name: "FRow",
|
|
1275
1275
|
props: {
|
|
@@ -1323,9 +1323,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
|
-
const FRow = /* @__PURE__ */ _export_sfc$
|
|
1327
|
-
const _hoisted_1$
|
|
1328
|
-
const _hoisted_2$
|
|
1326
|
+
const FRow = /* @__PURE__ */ _export_sfc$5(_sfc_main$u, [["__scopeId", "data-v-72f62339"]]);
|
|
1327
|
+
const _hoisted_1$o = { class: "f-space__item" };
|
|
1328
|
+
const _hoisted_2$j = {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
class: "f-space__split",
|
|
1331
1331
|
"aria-hidden": "true"
|
|
@@ -1384,17 +1384,17 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1384
1384
|
}, [
|
|
1385
1385
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (child, index) => {
|
|
1386
1386
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
1387
|
-
createElementVNode("div", _hoisted_1$
|
|
1387
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
1388
1388
|
(openBlock(), createBlock(resolveDynamicComponent(child)))
|
|
1389
1389
|
]),
|
|
1390
|
-
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1390
|
+
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$j, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
1391
1391
|
], 64);
|
|
1392
1392
|
}), 128))
|
|
1393
1393
|
], 4);
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
|
-
const FSpace = /* @__PURE__ */ _export_sfc$
|
|
1397
|
+
const FSpace = /* @__PURE__ */ _export_sfc$5(_sfc_main$t, [["__scopeId", "data-v-5fb3b1a0"]]);
|
|
1398
1398
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1399
1399
|
__name: "FContainer",
|
|
1400
1400
|
props: {
|
|
@@ -1415,7 +1415,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
|
-
const FContainer = /* @__PURE__ */ _export_sfc$
|
|
1418
|
+
const FContainer = /* @__PURE__ */ _export_sfc$5(_sfc_main$s, [["__scopeId", "data-v-08450ddf"]]);
|
|
1419
1419
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1420
1420
|
__name: "FDivider",
|
|
1421
1421
|
props: {
|
|
@@ -1443,8 +1443,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const FDivider = /* @__PURE__ */ _export_sfc$
|
|
1447
|
-
const _hoisted_1$
|
|
1446
|
+
const FDivider = /* @__PURE__ */ _export_sfc$5(_sfc_main$r, [["__scopeId", "data-v-512ee743"]]);
|
|
1447
|
+
const _hoisted_1$n = ["src", "alt"];
|
|
1448
1448
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1449
1449
|
__name: "FAvatar",
|
|
1450
1450
|
props: {
|
|
@@ -1477,7 +1477,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1477
1477
|
key: 0,
|
|
1478
1478
|
src: _ctx.src,
|
|
1479
1479
|
alt: _ctx.alt
|
|
1480
|
-
}, null, 8, _hoisted_1$
|
|
1480
|
+
}, null, 8, _hoisted_1$n)) : (openBlock(), createBlock(FIcon$5, {
|
|
1481
1481
|
key: 1,
|
|
1482
1482
|
size: 24
|
|
1483
1483
|
}, {
|
|
@@ -1490,7 +1490,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
1492
|
});
|
|
1493
|
-
const FAvatar = /* @__PURE__ */ _export_sfc$
|
|
1493
|
+
const FAvatar = /* @__PURE__ */ _export_sfc$5(_sfc_main$q, [["__scopeId", "data-v-b3665268"]]);
|
|
1494
1494
|
var __defProp2 = Object.defineProperty;
|
|
1495
1495
|
var __defProps2 = Object.defineProperties;
|
|
1496
1496
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -1510,7 +1510,7 @@ var __spreadValues2 = (a, b) => {
|
|
|
1510
1510
|
return a;
|
|
1511
1511
|
};
|
|
1512
1512
|
var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
|
|
1513
|
-
const _sfc_main$
|
|
1513
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
1514
1514
|
__name: "FIcon",
|
|
1515
1515
|
props: {
|
|
1516
1516
|
color: {},
|
|
@@ -1534,14 +1534,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
|
-
const _export_sfc$
|
|
1537
|
+
const _export_sfc$4 = (sfc, props) => {
|
|
1538
1538
|
const target = sfc.__vccOpts || sfc;
|
|
1539
1539
|
for (const [key, val] of props) {
|
|
1540
1540
|
target[key] = val;
|
|
1541
1541
|
}
|
|
1542
1542
|
return target;
|
|
1543
1543
|
};
|
|
1544
|
-
const FIcon$
|
|
1544
|
+
const FIcon$4 = /* @__PURE__ */ _export_sfc$4(_sfc_main$N, [["__scopeId", "data-v-baf7de0c"]]);
|
|
1545
1545
|
var __defProp22 = Object.defineProperty;
|
|
1546
1546
|
var __getOwnPropSymbols22 = Object.getOwnPropertySymbols;
|
|
1547
1547
|
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
@@ -1558,7 +1558,7 @@ var __spreadValues22 = (a, b) => {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
return a;
|
|
1560
1560
|
};
|
|
1561
|
-
const _sfc_main$
|
|
1561
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1562
1562
|
__name: "FIcon",
|
|
1563
1563
|
props: {
|
|
1564
1564
|
color: {},
|
|
@@ -1582,14 +1582,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1582
1582
|
};
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
|
-
const _export_sfc = (sfc, props) => {
|
|
1585
|
+
const _export_sfc$3 = (sfc, props) => {
|
|
1586
1586
|
const target = sfc.__vccOpts || sfc;
|
|
1587
1587
|
for (const [key, val] of props) {
|
|
1588
1588
|
target[key] = val;
|
|
1589
1589
|
}
|
|
1590
1590
|
return target;
|
|
1591
1591
|
};
|
|
1592
|
-
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1592
|
+
const FIcon$3 = /* @__PURE__ */ _export_sfc$3(_sfc_main$M, [["__scopeId", "data-v-baf7de0c"]]);
|
|
1593
1593
|
var __defProp222 = Object.defineProperty;
|
|
1594
1594
|
var __getOwnPropSymbols222 = Object.getOwnPropertySymbols;
|
|
1595
1595
|
var __hasOwnProp222 = Object.prototype.hasOwnProperty;
|
|
@@ -1606,7 +1606,7 @@ var __spreadValues222 = (a, b) => {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
return a;
|
|
1608
1608
|
};
|
|
1609
|
-
const _sfc_main$
|
|
1609
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1610
1610
|
__name: "FIcon",
|
|
1611
1611
|
props: {
|
|
1612
1612
|
color: {},
|
|
@@ -1630,14 +1630,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
|
-
const _export_sfc$
|
|
1633
|
+
const _export_sfc$2 = (sfc, props) => {
|
|
1634
1634
|
const target = sfc.__vccOpts || sfc;
|
|
1635
1635
|
for (const [key, val] of props) {
|
|
1636
1636
|
target[key] = val;
|
|
1637
1637
|
}
|
|
1638
1638
|
return target;
|
|
1639
1639
|
};
|
|
1640
|
-
const FIcon$
|
|
1640
|
+
const FIcon$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$L, [["__scopeId", "data-v-baf7de0c"]]);
|
|
1641
1641
|
var __defProp2222 = Object.defineProperty;
|
|
1642
1642
|
var __getOwnPropSymbols2222 = Object.getOwnPropertySymbols;
|
|
1643
1643
|
var __hasOwnProp2222 = Object.prototype.hasOwnProperty;
|
|
@@ -1654,6 +1654,38 @@ var __spreadValues2222 = (a, b) => {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
return a;
|
|
1656
1656
|
};
|
|
1657
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1658
|
+
__name: "FIcon",
|
|
1659
|
+
props: {
|
|
1660
|
+
color: {},
|
|
1661
|
+
size: { default: "1em" }
|
|
1662
|
+
},
|
|
1663
|
+
setup(__props) {
|
|
1664
|
+
const props = __props;
|
|
1665
|
+
const style = computed(() => ({
|
|
1666
|
+
width: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
1667
|
+
height: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
1668
|
+
color: props.color
|
|
1669
|
+
}));
|
|
1670
|
+
return (_ctx, _cache) => {
|
|
1671
|
+
return openBlock(), createElementBlock("span", {
|
|
1672
|
+
role: "img",
|
|
1673
|
+
class: "f-icon",
|
|
1674
|
+
style: normalizeStyle(unref(style))
|
|
1675
|
+
}, [
|
|
1676
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1677
|
+
], 4);
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
});
|
|
1681
|
+
const _export_sfc = (sfc, props) => {
|
|
1682
|
+
const target = sfc.__vccOpts || sfc;
|
|
1683
|
+
for (const [key, val] of props) {
|
|
1684
|
+
target[key] = val;
|
|
1685
|
+
}
|
|
1686
|
+
return target;
|
|
1687
|
+
};
|
|
1688
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-baf7de0c"]]);
|
|
1657
1689
|
var __defProp22222 = Object.defineProperty;
|
|
1658
1690
|
var __getOwnPropSymbols22222 = Object.getOwnPropertySymbols;
|
|
1659
1691
|
var __hasOwnProp22222 = Object.prototype.hasOwnProperty;
|
|
@@ -1670,6 +1702,38 @@ var __spreadValues22222 = (a, b) => {
|
|
|
1670
1702
|
}
|
|
1671
1703
|
return a;
|
|
1672
1704
|
};
|
|
1705
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1706
|
+
__name: "FIcon",
|
|
1707
|
+
props: {
|
|
1708
|
+
color: {},
|
|
1709
|
+
size: { default: "1em" }
|
|
1710
|
+
},
|
|
1711
|
+
setup(__props) {
|
|
1712
|
+
const props = __props;
|
|
1713
|
+
const style = computed(() => ({
|
|
1714
|
+
width: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
1715
|
+
height: typeof props.size === "number" ? `${props.size}px` : props.size,
|
|
1716
|
+
color: props.color
|
|
1717
|
+
}));
|
|
1718
|
+
return (_ctx, _cache) => {
|
|
1719
|
+
return openBlock(), createElementBlock("span", {
|
|
1720
|
+
role: "img",
|
|
1721
|
+
class: "f-icon",
|
|
1722
|
+
style: normalizeStyle(unref(style))
|
|
1723
|
+
}, [
|
|
1724
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1725
|
+
], 4);
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
const _export_sfc$1 = (sfc, props) => {
|
|
1730
|
+
const target = sfc.__vccOpts || sfc;
|
|
1731
|
+
for (const [key, val] of props) {
|
|
1732
|
+
target[key] = val;
|
|
1733
|
+
}
|
|
1734
|
+
return target;
|
|
1735
|
+
};
|
|
1736
|
+
const FIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-baf7de0c"]]);
|
|
1673
1737
|
var __defProp222222 = Object.defineProperty;
|
|
1674
1738
|
var __getOwnPropSymbols222222 = Object.getOwnPropertySymbols;
|
|
1675
1739
|
var __hasOwnProp222222 = Object.prototype.hasOwnProperty;
|
|
@@ -1718,6 +1782,38 @@ var __spreadValues22222222 = (a, b) => {
|
|
|
1718
1782
|
}
|
|
1719
1783
|
return a;
|
|
1720
1784
|
};
|
|
1785
|
+
var __defProp222222222 = Object.defineProperty;
|
|
1786
|
+
var __getOwnPropSymbols222222222 = Object.getOwnPropertySymbols;
|
|
1787
|
+
var __hasOwnProp222222222 = Object.prototype.hasOwnProperty;
|
|
1788
|
+
var __propIsEnum222222222 = Object.prototype.propertyIsEnumerable;
|
|
1789
|
+
var __defNormalProp222222222 = (obj, key, value) => key in obj ? __defProp222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1790
|
+
var __spreadValues222222222 = (a, b) => {
|
|
1791
|
+
for (var prop in b || (b = {}))
|
|
1792
|
+
if (__hasOwnProp222222222.call(b, prop))
|
|
1793
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
1794
|
+
if (__getOwnPropSymbols222222222)
|
|
1795
|
+
for (var prop of __getOwnPropSymbols222222222(b)) {
|
|
1796
|
+
if (__propIsEnum222222222.call(b, prop))
|
|
1797
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
1798
|
+
}
|
|
1799
|
+
return a;
|
|
1800
|
+
};
|
|
1801
|
+
var __defProp2222222222 = Object.defineProperty;
|
|
1802
|
+
var __getOwnPropSymbols2222222222 = Object.getOwnPropertySymbols;
|
|
1803
|
+
var __hasOwnProp2222222222 = Object.prototype.hasOwnProperty;
|
|
1804
|
+
var __propIsEnum2222222222 = Object.prototype.propertyIsEnumerable;
|
|
1805
|
+
var __defNormalProp2222222222 = (obj, key, value) => key in obj ? __defProp2222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1806
|
+
var __spreadValues2222222222 = (a, b) => {
|
|
1807
|
+
for (var prop in b || (b = {}))
|
|
1808
|
+
if (__hasOwnProp2222222222.call(b, prop))
|
|
1809
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
1810
|
+
if (__getOwnPropSymbols2222222222)
|
|
1811
|
+
for (var prop of __getOwnPropSymbols2222222222(b)) {
|
|
1812
|
+
if (__propIsEnum2222222222.call(b, prop))
|
|
1813
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
1814
|
+
}
|
|
1815
|
+
return a;
|
|
1816
|
+
};
|
|
1721
1817
|
const _hoisted_1$f$1 = { class: "f-checkbox__wrapper" };
|
|
1722
1818
|
const _hoisted_2$d$1 = ["checked", "disabled"];
|
|
1723
1819
|
const _hoisted_3$d$1 = {
|
|
@@ -1730,7 +1826,7 @@ const _hoisted_3$d$1 = {
|
|
|
1730
1826
|
label: {},
|
|
1731
1827
|
disabled: { type: Boolean }
|
|
1732
1828
|
}, {
|
|
1733
|
-
"modelValue":
|
|
1829
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
1734
1830
|
"modelModifiers": {}
|
|
1735
1831
|
}),
|
|
1736
1832
|
emits: ["update:modelValue"],
|
|
@@ -1767,7 +1863,7 @@ const _hoisted_3$d$1 = {
|
|
|
1767
1863
|
maskColor: { default: "black" },
|
|
1768
1864
|
showMask: { type: Boolean, default: true }
|
|
1769
1865
|
}, {
|
|
1770
|
-
"modelValue":
|
|
1866
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
1771
1867
|
"modelModifiers": {}
|
|
1772
1868
|
}),
|
|
1773
1869
|
emits: ["update:modelValue"],
|
|
@@ -1815,35 +1911,35 @@ const _hoisted_3$d$1 = {
|
|
|
1815
1911
|
};
|
|
1816
1912
|
}
|
|
1817
1913
|
});
|
|
1818
|
-
var
|
|
1819
|
-
var
|
|
1820
|
-
var
|
|
1821
|
-
var
|
|
1822
|
-
var
|
|
1823
|
-
var
|
|
1914
|
+
var __defProp22222222222 = Object.defineProperty;
|
|
1915
|
+
var __getOwnPropSymbols22222222222 = Object.getOwnPropertySymbols;
|
|
1916
|
+
var __hasOwnProp22222222222 = Object.prototype.hasOwnProperty;
|
|
1917
|
+
var __propIsEnum22222222222 = Object.prototype.propertyIsEnumerable;
|
|
1918
|
+
var __defNormalProp22222222222 = (obj, key, value) => key in obj ? __defProp22222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1919
|
+
var __spreadValues22222222222 = (a, b) => {
|
|
1824
1920
|
for (var prop in b || (b = {}))
|
|
1825
|
-
if (
|
|
1826
|
-
|
|
1827
|
-
if (
|
|
1828
|
-
for (var prop of
|
|
1829
|
-
if (
|
|
1830
|
-
|
|
1921
|
+
if (__hasOwnProp22222222222.call(b, prop))
|
|
1922
|
+
__defNormalProp22222222222(a, prop, b[prop]);
|
|
1923
|
+
if (__getOwnPropSymbols22222222222)
|
|
1924
|
+
for (var prop of __getOwnPropSymbols22222222222(b)) {
|
|
1925
|
+
if (__propIsEnum22222222222.call(b, prop))
|
|
1926
|
+
__defNormalProp22222222222(a, prop, b[prop]);
|
|
1831
1927
|
}
|
|
1832
1928
|
return a;
|
|
1833
1929
|
};
|
|
1834
|
-
var
|
|
1835
|
-
var
|
|
1836
|
-
var
|
|
1837
|
-
var
|
|
1838
|
-
var
|
|
1839
|
-
var
|
|
1930
|
+
var __defProp222222222222 = Object.defineProperty;
|
|
1931
|
+
var __getOwnPropSymbols222222222222 = Object.getOwnPropertySymbols;
|
|
1932
|
+
var __hasOwnProp222222222222 = Object.prototype.hasOwnProperty;
|
|
1933
|
+
var __propIsEnum222222222222 = Object.prototype.propertyIsEnumerable;
|
|
1934
|
+
var __defNormalProp222222222222 = (obj, key, value) => key in obj ? __defProp222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1935
|
+
var __spreadValues222222222222 = (a, b) => {
|
|
1840
1936
|
for (var prop in b || (b = {}))
|
|
1841
|
-
if (
|
|
1842
|
-
|
|
1843
|
-
if (
|
|
1844
|
-
for (var prop of
|
|
1845
|
-
if (
|
|
1846
|
-
|
|
1937
|
+
if (__hasOwnProp222222222222.call(b, prop))
|
|
1938
|
+
__defNormalProp222222222222(a, prop, b[prop]);
|
|
1939
|
+
if (__getOwnPropSymbols222222222222)
|
|
1940
|
+
for (var prop of __getOwnPropSymbols222222222222(b)) {
|
|
1941
|
+
if (__propIsEnum222222222222.call(b, prop))
|
|
1942
|
+
__defNormalProp222222222222(a, prop, b[prop]);
|
|
1847
1943
|
}
|
|
1848
1944
|
return a;
|
|
1849
1945
|
};
|
|
@@ -1859,7 +1955,7 @@ const _hoisted_3$b$1 = {
|
|
|
1859
1955
|
label: {},
|
|
1860
1956
|
disabled: { type: Boolean }
|
|
1861
1957
|
}, {
|
|
1862
|
-
"modelValue":
|
|
1958
|
+
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
1863
1959
|
"modelModifiers": {}
|
|
1864
1960
|
}),
|
|
1865
1961
|
emits: ["update:modelValue"],
|
|
@@ -1896,7 +1992,7 @@ const _hoisted_3$b$1 = {
|
|
|
1896
1992
|
maskColor: { default: "black" },
|
|
1897
1993
|
showMask: { type: Boolean, default: true }
|
|
1898
1994
|
}, {
|
|
1899
|
-
"modelValue":
|
|
1995
|
+
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
1900
1996
|
"modelModifiers": {}
|
|
1901
1997
|
}),
|
|
1902
1998
|
emits: ["update:modelValue"],
|
|
@@ -1956,7 +2052,7 @@ const _hoisted_3$b$2 = {
|
|
|
1956
2052
|
label: {},
|
|
1957
2053
|
disabled: { type: Boolean }
|
|
1958
2054
|
}, {
|
|
1959
|
-
"modelValue":
|
|
2055
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
1960
2056
|
"modelModifiers": {}
|
|
1961
2057
|
}),
|
|
1962
2058
|
emits: ["update:modelValue"],
|
|
@@ -1993,7 +2089,7 @@ const _hoisted_3$b$2 = {
|
|
|
1993
2089
|
maskColor: { default: "black" },
|
|
1994
2090
|
showMask: { type: Boolean, default: true }
|
|
1995
2091
|
}, {
|
|
1996
|
-
"modelValue":
|
|
2092
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
1997
2093
|
"modelModifiers": {}
|
|
1998
2094
|
}),
|
|
1999
2095
|
emits: ["update:modelValue"],
|
|
@@ -2053,7 +2149,7 @@ const _hoisted_3$b$3 = {
|
|
|
2053
2149
|
label: {},
|
|
2054
2150
|
disabled: { type: Boolean }
|
|
2055
2151
|
}, {
|
|
2056
|
-
"modelValue":
|
|
2152
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
2057
2153
|
"modelModifiers": {}
|
|
2058
2154
|
}),
|
|
2059
2155
|
emits: ["update:modelValue"],
|
|
@@ -2090,7 +2186,7 @@ const _hoisted_3$b$3 = {
|
|
|
2090
2186
|
maskColor: { default: "black" },
|
|
2091
2187
|
showMask: { type: Boolean, default: true }
|
|
2092
2188
|
}, {
|
|
2093
|
-
"modelValue":
|
|
2189
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
2094
2190
|
"modelModifiers": {}
|
|
2095
2191
|
}),
|
|
2096
2192
|
emits: ["update:modelValue"],
|
|
@@ -2150,7 +2246,7 @@ const _hoisted_3$b$4 = {
|
|
|
2150
2246
|
label: {},
|
|
2151
2247
|
disabled: { type: Boolean }
|
|
2152
2248
|
}, {
|
|
2153
|
-
"modelValue":
|
|
2249
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
2154
2250
|
"modelModifiers": {}
|
|
2155
2251
|
}),
|
|
2156
2252
|
emits: ["update:modelValue"],
|
|
@@ -2187,7 +2283,7 @@ const _hoisted_3$b$4 = {
|
|
|
2187
2283
|
maskColor: { default: "black" },
|
|
2188
2284
|
showMask: { type: Boolean, default: true }
|
|
2189
2285
|
}, {
|
|
2190
|
-
"modelValue":
|
|
2286
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
2191
2287
|
"modelModifiers": {}
|
|
2192
2288
|
}),
|
|
2193
2289
|
emits: ["update:modelValue"],
|
|
@@ -2247,7 +2343,7 @@ const _hoisted_3$b$5 = {
|
|
|
2247
2343
|
label: {},
|
|
2248
2344
|
disabled: { type: Boolean }
|
|
2249
2345
|
}, {
|
|
2250
|
-
"modelValue":
|
|
2346
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
2251
2347
|
"modelModifiers": {}
|
|
2252
2348
|
}),
|
|
2253
2349
|
emits: ["update:modelValue"],
|
|
@@ -2284,7 +2380,7 @@ const _hoisted_3$b$5 = {
|
|
|
2284
2380
|
maskColor: { default: "black" },
|
|
2285
2381
|
showMask: { type: Boolean, default: true }
|
|
2286
2382
|
}, {
|
|
2287
|
-
"modelValue":
|
|
2383
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
2288
2384
|
"modelModifiers": {}
|
|
2289
2385
|
}),
|
|
2290
2386
|
emits: ["update:modelValue"],
|
|
@@ -2344,7 +2440,7 @@ const _hoisted_3$b$6 = {
|
|
|
2344
2440
|
label: {},
|
|
2345
2441
|
disabled: { type: Boolean }
|
|
2346
2442
|
}, {
|
|
2347
|
-
"modelValue":
|
|
2443
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
2348
2444
|
"modelModifiers": {}
|
|
2349
2445
|
}),
|
|
2350
2446
|
emits: ["update:modelValue"],
|
|
@@ -2381,7 +2477,7 @@ const _hoisted_3$b$6 = {
|
|
|
2381
2477
|
maskColor: { default: "black" },
|
|
2382
2478
|
showMask: { type: Boolean, default: true }
|
|
2383
2479
|
}, {
|
|
2384
|
-
"modelValue":
|
|
2480
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
2385
2481
|
"modelModifiers": {}
|
|
2386
2482
|
}),
|
|
2387
2483
|
emits: ["update:modelValue"],
|
|
@@ -2435,6 +2531,546 @@ const _hoisted_3$b$7 = {
|
|
|
2435
2531
|
key: 0,
|
|
2436
2532
|
class: "f-checkbox__label"
|
|
2437
2533
|
};
|
|
2534
|
+
/* @__PURE__ */ defineComponent({
|
|
2535
|
+
__name: "FCheckbox",
|
|
2536
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2537
|
+
label: {},
|
|
2538
|
+
disabled: { type: Boolean }
|
|
2539
|
+
}, {
|
|
2540
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
2541
|
+
"modelModifiers": {}
|
|
2542
|
+
}),
|
|
2543
|
+
emits: ["update:modelValue"],
|
|
2544
|
+
setup(__props) {
|
|
2545
|
+
const modelValue = useModel(__props, "modelValue");
|
|
2546
|
+
const props = __props;
|
|
2547
|
+
const handleChange = (e) => {
|
|
2548
|
+
if (props.disabled) return;
|
|
2549
|
+
const target = e.target;
|
|
2550
|
+
modelValue.value = target.checked;
|
|
2551
|
+
};
|
|
2552
|
+
return (_ctx, _cache) => {
|
|
2553
|
+
return openBlock(), createElementBlock("label", {
|
|
2554
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2555
|
+
}, [
|
|
2556
|
+
createElementVNode("span", _hoisted_1$d$7, [
|
|
2557
|
+
createElementVNode("input", {
|
|
2558
|
+
type: "checkbox",
|
|
2559
|
+
checked: modelValue.value,
|
|
2560
|
+
disabled: _ctx.disabled,
|
|
2561
|
+
onChange: handleChange
|
|
2562
|
+
}, null, 40, _hoisted_2$b$7),
|
|
2563
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2564
|
+
]),
|
|
2565
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$b$7, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2566
|
+
], 2);
|
|
2567
|
+
};
|
|
2568
|
+
}
|
|
2569
|
+
});
|
|
2570
|
+
/* @__PURE__ */ defineComponent({
|
|
2571
|
+
__name: "FDialog",
|
|
2572
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2573
|
+
maskClosable: { type: Boolean, default: true },
|
|
2574
|
+
maskColor: { default: "black" },
|
|
2575
|
+
showMask: { type: Boolean, default: true }
|
|
2576
|
+
}, {
|
|
2577
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
2578
|
+
"modelModifiers": {}
|
|
2579
|
+
}),
|
|
2580
|
+
emits: ["update:modelValue"],
|
|
2581
|
+
setup(__props) {
|
|
2582
|
+
const props = __props;
|
|
2583
|
+
const visible = useModel(__props, "modelValue");
|
|
2584
|
+
const handleMaskClick = () => {
|
|
2585
|
+
if (props.maskClosable) visible.value = false;
|
|
2586
|
+
};
|
|
2587
|
+
const maskBackgroundColor = computed(() => {
|
|
2588
|
+
if (!props.showMask) return "transparent";
|
|
2589
|
+
switch (props.maskColor) {
|
|
2590
|
+
case "white":
|
|
2591
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
2592
|
+
case "black":
|
|
2593
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
2594
|
+
case "transparent":
|
|
2595
|
+
return "transparent";
|
|
2596
|
+
default:
|
|
2597
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
2598
|
+
}
|
|
2599
|
+
});
|
|
2600
|
+
return (_ctx, _cache) => {
|
|
2601
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
2602
|
+
createVNode(Transition, { name: "fade" }, {
|
|
2603
|
+
default: withCtx(() => [
|
|
2604
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
2605
|
+
key: 0,
|
|
2606
|
+
class: "f-dialog-mask",
|
|
2607
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
2608
|
+
onClick: handleMaskClick
|
|
2609
|
+
}, [
|
|
2610
|
+
createElementVNode("div", {
|
|
2611
|
+
class: "f-dialog-container",
|
|
2612
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2613
|
+
}, ["stop"]))
|
|
2614
|
+
}, [
|
|
2615
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2616
|
+
])
|
|
2617
|
+
], 4)) : createCommentVNode("", true)
|
|
2618
|
+
]),
|
|
2619
|
+
_: 3
|
|
2620
|
+
})
|
|
2621
|
+
]);
|
|
2622
|
+
};
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
const _hoisted_1$i$1 = ["type", "disabled"];
|
|
2626
|
+
const _hoisted_2$e$1 = { class: "f-button__inner" };
|
|
2627
|
+
const _hoisted_3$e$1 = {
|
|
2628
|
+
key: 0,
|
|
2629
|
+
class: "f-loader"
|
|
2630
|
+
};
|
|
2631
|
+
const _hoisted_4$8$1 = {
|
|
2632
|
+
key: 2,
|
|
2633
|
+
class: "f-button__text"
|
|
2634
|
+
};
|
|
2635
|
+
const _sfc_main$o$1 = /* @__PURE__ */ defineComponent({
|
|
2636
|
+
__name: "FButton",
|
|
2637
|
+
props: {
|
|
2638
|
+
type: {},
|
|
2639
|
+
size: {},
|
|
2640
|
+
nativeType: { default: "button" },
|
|
2641
|
+
loading: { type: Boolean },
|
|
2642
|
+
disabled: { type: Boolean },
|
|
2643
|
+
round: { type: [Boolean, Number] },
|
|
2644
|
+
circle: { type: Boolean },
|
|
2645
|
+
plain: { type: Boolean },
|
|
2646
|
+
text: { type: Boolean },
|
|
2647
|
+
block: { type: Boolean },
|
|
2648
|
+
icon: {},
|
|
2649
|
+
active: { type: Boolean },
|
|
2650
|
+
bgColor: {},
|
|
2651
|
+
color: {}
|
|
2652
|
+
},
|
|
2653
|
+
setup(__props) {
|
|
2654
|
+
const SIZE_MAP = {
|
|
2655
|
+
small: { h: "24px", p: "0 8px", f: "12px", i: "14px" },
|
|
2656
|
+
normal: { h: "32px", p: "0 12px", f: "13px", i: "16px" },
|
|
2657
|
+
large: { h: "40px", p: "0 16px", f: "14px", i: "18px" }
|
|
2658
|
+
};
|
|
2659
|
+
const props = __props;
|
|
2660
|
+
const slots = useSlots();
|
|
2661
|
+
const groupContext = inject("FButtonGroupContext", null);
|
|
2662
|
+
const mergedSize = computed(() => {
|
|
2663
|
+
var _a, _b;
|
|
2664
|
+
return (_b = (_a = props.size) != null ? _a : groupContext == null ? void 0 : groupContext.size) != null ? _b : "normal";
|
|
2665
|
+
});
|
|
2666
|
+
const mergedType = computed(() => {
|
|
2667
|
+
var _a, _b;
|
|
2668
|
+
return (_b = (_a = props.type) != null ? _a : groupContext == null ? void 0 : groupContext.type) != null ? _b : "default";
|
|
2669
|
+
});
|
|
2670
|
+
const isDisabled = computed(() => props.disabled || props.loading || (groupContext == null ? void 0 : groupContext.disabled));
|
|
2671
|
+
const hasText = computed(() => !!slots.default);
|
|
2672
|
+
const buttonStyle = computed(() => {
|
|
2673
|
+
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
2674
|
+
const style = {
|
|
2675
|
+
height: s.h,
|
|
2676
|
+
padding: props.circle ? "0" : s.p,
|
|
2677
|
+
fontSize: s.f,
|
|
2678
|
+
minWidth: props.circle ? s.h : "auto",
|
|
2679
|
+
backgroundColor: props.bgColor,
|
|
2680
|
+
color: props.color
|
|
2681
|
+
};
|
|
2682
|
+
if (props.circle) {
|
|
2683
|
+
style.borderRadius = "50%";
|
|
2684
|
+
style.width = s.h;
|
|
2685
|
+
} else if (typeof props.round === "number") {
|
|
2686
|
+
style.borderRadius = `${props.round}px`;
|
|
2687
|
+
} else if (props.round === true) {
|
|
2688
|
+
style.borderRadius = "999px";
|
|
2689
|
+
}
|
|
2690
|
+
return style;
|
|
2691
|
+
});
|
|
2692
|
+
const iconSize = computed(() => {
|
|
2693
|
+
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
2694
|
+
return s.i;
|
|
2695
|
+
});
|
|
2696
|
+
return (_ctx, _cache) => {
|
|
2697
|
+
return openBlock(), createElementBlock("button", {
|
|
2698
|
+
type: _ctx.nativeType,
|
|
2699
|
+
class: normalizeClass(["f-button", [
|
|
2700
|
+
`f-button--${unref(mergedType)}`,
|
|
2701
|
+
`f-button--${unref(mergedSize)}`,
|
|
2702
|
+
{
|
|
2703
|
+
"is-disabled": unref(isDisabled),
|
|
2704
|
+
"is-loading": _ctx.loading,
|
|
2705
|
+
"is-active": _ctx.active,
|
|
2706
|
+
"is-text": _ctx.text,
|
|
2707
|
+
"is-icon-only": !unref(hasText) && (_ctx.icon || _ctx.$slots.icon)
|
|
2708
|
+
}
|
|
2709
|
+
]]),
|
|
2710
|
+
disabled: unref(isDisabled),
|
|
2711
|
+
style: normalizeStyle(unref(buttonStyle))
|
|
2712
|
+
}, [
|
|
2713
|
+
createElementVNode("span", _hoisted_2$e$1, [
|
|
2714
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$1)) : createCommentVNode("", true),
|
|
2715
|
+
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2716
|
+
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$1), {
|
|
2717
|
+
key: 0,
|
|
2718
|
+
class: "f-button__icon",
|
|
2719
|
+
style: normalizeStyle({ fontSize: unref(iconSize) })
|
|
2720
|
+
}, {
|
|
2721
|
+
default: withCtx(() => [
|
|
2722
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2723
|
+
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : createCommentVNode("", true)
|
|
2724
|
+
], true)
|
|
2725
|
+
]),
|
|
2726
|
+
_: 3
|
|
2727
|
+
}, 8, ["style"])) : createCommentVNode("", true)
|
|
2728
|
+
], 64)) : createCommentVNode("", true),
|
|
2729
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$1, [
|
|
2730
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2731
|
+
])) : createCommentVNode("", true)
|
|
2732
|
+
])
|
|
2733
|
+
], 14, _hoisted_1$i$1);
|
|
2734
|
+
};
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
const FButton$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o$1, [["__scopeId", "data-v-41be5001"]]);
|
|
2738
|
+
const _hoisted_1$e$1 = { class: "f-checkbox__wrapper" };
|
|
2739
|
+
const _hoisted_2$c$1 = ["checked", "disabled"];
|
|
2740
|
+
const _hoisted_3$c$1 = {
|
|
2741
|
+
key: 0,
|
|
2742
|
+
class: "f-checkbox__label"
|
|
2743
|
+
};
|
|
2744
|
+
/* @__PURE__ */ defineComponent({
|
|
2745
|
+
__name: "FCheckbox",
|
|
2746
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2747
|
+
label: {},
|
|
2748
|
+
disabled: { type: Boolean }
|
|
2749
|
+
}, {
|
|
2750
|
+
"modelValue": __spreadValues2222({ type: Boolean }, { default: false }),
|
|
2751
|
+
"modelModifiers": {}
|
|
2752
|
+
}),
|
|
2753
|
+
emits: ["update:modelValue"],
|
|
2754
|
+
setup(__props) {
|
|
2755
|
+
const modelValue = useModel(__props, "modelValue");
|
|
2756
|
+
const props = __props;
|
|
2757
|
+
const handleChange = (e) => {
|
|
2758
|
+
if (props.disabled) return;
|
|
2759
|
+
const target = e.target;
|
|
2760
|
+
modelValue.value = target.checked;
|
|
2761
|
+
};
|
|
2762
|
+
return (_ctx, _cache) => {
|
|
2763
|
+
return openBlock(), createElementBlock("label", {
|
|
2764
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2765
|
+
}, [
|
|
2766
|
+
createElementVNode("span", _hoisted_1$e$1, [
|
|
2767
|
+
createElementVNode("input", {
|
|
2768
|
+
type: "checkbox",
|
|
2769
|
+
checked: modelValue.value,
|
|
2770
|
+
disabled: _ctx.disabled,
|
|
2771
|
+
onChange: handleChange
|
|
2772
|
+
}, null, 40, _hoisted_2$c$1),
|
|
2773
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2774
|
+
]),
|
|
2775
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$1, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2776
|
+
], 2);
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2779
|
+
});
|
|
2780
|
+
const _hoisted_1$j = {
|
|
2781
|
+
key: 0,
|
|
2782
|
+
class: "f-dialog__icon"
|
|
2783
|
+
};
|
|
2784
|
+
const _hoisted_2$f = { class: "f-dialog__title" };
|
|
2785
|
+
const _hoisted_3$f = { class: "f-dialog__body" };
|
|
2786
|
+
const _hoisted_4$9 = { key: 0 };
|
|
2787
|
+
const _hoisted_5$8 = {
|
|
2788
|
+
key: 2,
|
|
2789
|
+
class: "f-dialog__footer"
|
|
2790
|
+
};
|
|
2791
|
+
/* @__PURE__ */ defineComponent({
|
|
2792
|
+
__name: "FDialog",
|
|
2793
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2794
|
+
title: { default: "提示" },
|
|
2795
|
+
content: {},
|
|
2796
|
+
width: { default: "500px" },
|
|
2797
|
+
type: { default: "default" },
|
|
2798
|
+
confirmText: { default: "确定" },
|
|
2799
|
+
cancelText: { default: "取消" },
|
|
2800
|
+
showCancel: { type: Boolean, default: true },
|
|
2801
|
+
showClose: { type: Boolean, default: true },
|
|
2802
|
+
closeOnClickModal: { type: Boolean, default: true },
|
|
2803
|
+
closeOnEsc: { type: Boolean, default: true },
|
|
2804
|
+
center: { type: Boolean, default: false },
|
|
2805
|
+
fullscreen: { type: Boolean, default: false },
|
|
2806
|
+
destroyOnClose: { type: Boolean, default: false },
|
|
2807
|
+
beforeClose: {}
|
|
2808
|
+
}, {
|
|
2809
|
+
"modelValue": __spreadValues2222({ type: Boolean }, { required: true }),
|
|
2810
|
+
"modelModifiers": {}
|
|
2811
|
+
}),
|
|
2812
|
+
emits: /* @__PURE__ */ mergeModels(["open", "close", "confirm", "cancel"], ["update:modelValue"]),
|
|
2813
|
+
setup(__props, { emit: __emit }) {
|
|
2814
|
+
const props = __props;
|
|
2815
|
+
const emit = __emit;
|
|
2816
|
+
const visible = useModel(__props, "modelValue");
|
|
2817
|
+
const handleClose = () => {
|
|
2818
|
+
visible.value = false;
|
|
2819
|
+
emit("close");
|
|
2820
|
+
};
|
|
2821
|
+
const handleConfirm = () => {
|
|
2822
|
+
emit("confirm");
|
|
2823
|
+
if (props.beforeClose) {
|
|
2824
|
+
props.beforeClose(() => {
|
|
2825
|
+
visible.value = false;
|
|
2826
|
+
});
|
|
2827
|
+
} else {
|
|
2828
|
+
visible.value = false;
|
|
2829
|
+
}
|
|
2830
|
+
};
|
|
2831
|
+
const handleCancel = () => {
|
|
2832
|
+
emit("cancel");
|
|
2833
|
+
handleClose();
|
|
2834
|
+
};
|
|
2835
|
+
const handleOverlayClick = (e) => {
|
|
2836
|
+
if (props.closeOnClickModal && e.target === e.currentTarget) {
|
|
2837
|
+
handleClose();
|
|
2838
|
+
}
|
|
2839
|
+
};
|
|
2840
|
+
const handleKeydown = (e) => {
|
|
2841
|
+
if (props.closeOnEsc && e.key === "Escape") {
|
|
2842
|
+
handleClose();
|
|
2843
|
+
}
|
|
2844
|
+
};
|
|
2845
|
+
onMounted(() => {
|
|
2846
|
+
if (props.closeOnEsc) {
|
|
2847
|
+
window.addEventListener("keydown", handleKeydown);
|
|
2848
|
+
}
|
|
2849
|
+
emit("open");
|
|
2850
|
+
});
|
|
2851
|
+
onBeforeUnmount(() => {
|
|
2852
|
+
if (props.closeOnEsc) {
|
|
2853
|
+
window.removeEventListener("keydown", handleKeydown);
|
|
2854
|
+
}
|
|
2855
|
+
});
|
|
2856
|
+
const iconMap = {
|
|
2857
|
+
info: InformationCircleOutline,
|
|
2858
|
+
success: CheckmarkCircleOutline,
|
|
2859
|
+
warning: WarningOutline,
|
|
2860
|
+
failed: AlertCircleOutline,
|
|
2861
|
+
primary: InformationCircleOutline,
|
|
2862
|
+
default: InformationCircleOutline
|
|
2863
|
+
};
|
|
2864
|
+
const hasIcon = computed(() => props.type && props.type !== "default");
|
|
2865
|
+
return (_ctx, _cache) => {
|
|
2866
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
2867
|
+
createVNode(Transition, { name: "f-dialog-fade" }, {
|
|
2868
|
+
default: withCtx(() => [
|
|
2869
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
2870
|
+
key: 0,
|
|
2871
|
+
class: "f-dialog-overlay",
|
|
2872
|
+
onClick: handleOverlayClick
|
|
2873
|
+
}, [
|
|
2874
|
+
createVNode(Transition, { name: "f-dialog-zoom" }, {
|
|
2875
|
+
default: withCtx(() => [
|
|
2876
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
2877
|
+
key: 0,
|
|
2878
|
+
class: normalizeClass(["f-dialog", [
|
|
2879
|
+
`f-dialog--${_ctx.type}`,
|
|
2880
|
+
{
|
|
2881
|
+
"is-center": _ctx.center,
|
|
2882
|
+
"is-fullscreen": _ctx.fullscreen
|
|
2883
|
+
}
|
|
2884
|
+
]]),
|
|
2885
|
+
style: normalizeStyle({ width: _ctx.fullscreen ? "100%" : _ctx.width })
|
|
2886
|
+
}, [
|
|
2887
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
2888
|
+
key: 0,
|
|
2889
|
+
type: "button",
|
|
2890
|
+
class: "f-dialog__close",
|
|
2891
|
+
onClick: handleClose
|
|
2892
|
+
}, [
|
|
2893
|
+
createVNode(FIcon, null, {
|
|
2894
|
+
default: withCtx(() => [
|
|
2895
|
+
createVNode(unref(CloseOutline))
|
|
2896
|
+
]),
|
|
2897
|
+
_: 1
|
|
2898
|
+
})
|
|
2899
|
+
])) : createCommentVNode("", true),
|
|
2900
|
+
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("div", {
|
|
2901
|
+
key: 1,
|
|
2902
|
+
class: normalizeClass(["f-dialog__header", { "has-icon": unref(hasIcon) }])
|
|
2903
|
+
}, [
|
|
2904
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
2905
|
+
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
2906
|
+
createVNode(FIcon, null, {
|
|
2907
|
+
default: withCtx(() => [
|
|
2908
|
+
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
2909
|
+
]),
|
|
2910
|
+
_: 1
|
|
2911
|
+
})
|
|
2912
|
+
])) : createCommentVNode("", true),
|
|
2913
|
+
createElementVNode("h3", _hoisted_2$f, toDisplayString(_ctx.title), 1)
|
|
2914
|
+
], true)
|
|
2915
|
+
], 2)) : createCommentVNode("", true),
|
|
2916
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
2917
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2918
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$9, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
2919
|
+
], true)
|
|
2920
|
+
]),
|
|
2921
|
+
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
2922
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
2923
|
+
_ctx.showCancel ? (openBlock(), createBlock(FButton$1, {
|
|
2924
|
+
key: 0,
|
|
2925
|
+
onClick: handleCancel
|
|
2926
|
+
}, {
|
|
2927
|
+
default: withCtx(() => [
|
|
2928
|
+
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
2929
|
+
]),
|
|
2930
|
+
_: 1
|
|
2931
|
+
})) : createCommentVNode("", true),
|
|
2932
|
+
createVNode(FButton$1, {
|
|
2933
|
+
type: "primary",
|
|
2934
|
+
onClick: handleConfirm
|
|
2935
|
+
}, {
|
|
2936
|
+
default: withCtx(() => [
|
|
2937
|
+
createTextVNode(toDisplayString(_ctx.confirmText), 1)
|
|
2938
|
+
]),
|
|
2939
|
+
_: 1
|
|
2940
|
+
})
|
|
2941
|
+
], true)
|
|
2942
|
+
])) : createCommentVNode("", true)
|
|
2943
|
+
], 6)) : createCommentVNode("", true)
|
|
2944
|
+
]),
|
|
2945
|
+
_: 3
|
|
2946
|
+
})
|
|
2947
|
+
])) : createCommentVNode("", true)
|
|
2948
|
+
]),
|
|
2949
|
+
_: 3
|
|
2950
|
+
})
|
|
2951
|
+
]);
|
|
2952
|
+
};
|
|
2953
|
+
}
|
|
2954
|
+
});
|
|
2955
|
+
const _hoisted_1$i$2 = ["type", "disabled"];
|
|
2956
|
+
const _hoisted_2$e$2 = { class: "f-button__inner" };
|
|
2957
|
+
const _hoisted_3$e$2 = {
|
|
2958
|
+
key: 0,
|
|
2959
|
+
class: "f-loader"
|
|
2960
|
+
};
|
|
2961
|
+
const _hoisted_4$8$2 = {
|
|
2962
|
+
key: 2,
|
|
2963
|
+
class: "f-button__text"
|
|
2964
|
+
};
|
|
2965
|
+
const _sfc_main$o$2 = /* @__PURE__ */ defineComponent({
|
|
2966
|
+
__name: "FButton",
|
|
2967
|
+
props: {
|
|
2968
|
+
type: {},
|
|
2969
|
+
size: {},
|
|
2970
|
+
nativeType: { default: "button" },
|
|
2971
|
+
loading: { type: Boolean },
|
|
2972
|
+
disabled: { type: Boolean },
|
|
2973
|
+
round: { type: [Boolean, Number] },
|
|
2974
|
+
circle: { type: Boolean },
|
|
2975
|
+
plain: { type: Boolean },
|
|
2976
|
+
text: { type: Boolean },
|
|
2977
|
+
block: { type: Boolean },
|
|
2978
|
+
icon: {},
|
|
2979
|
+
active: { type: Boolean },
|
|
2980
|
+
bgColor: {},
|
|
2981
|
+
color: {}
|
|
2982
|
+
},
|
|
2983
|
+
setup(__props) {
|
|
2984
|
+
const SIZE_MAP = {
|
|
2985
|
+
small: { h: "24px", p: "0 8px", f: "12px", i: "14px" },
|
|
2986
|
+
normal: { h: "32px", p: "0 12px", f: "13px", i: "16px" },
|
|
2987
|
+
large: { h: "40px", p: "0 16px", f: "14px", i: "18px" }
|
|
2988
|
+
};
|
|
2989
|
+
const props = __props;
|
|
2990
|
+
const slots = useSlots();
|
|
2991
|
+
const groupContext = inject("FButtonGroupContext", null);
|
|
2992
|
+
const mergedSize = computed(() => {
|
|
2993
|
+
var _a, _b;
|
|
2994
|
+
return (_b = (_a = props.size) != null ? _a : groupContext == null ? void 0 : groupContext.size) != null ? _b : "normal";
|
|
2995
|
+
});
|
|
2996
|
+
const mergedType = computed(() => {
|
|
2997
|
+
var _a, _b;
|
|
2998
|
+
return (_b = (_a = props.type) != null ? _a : groupContext == null ? void 0 : groupContext.type) != null ? _b : "default";
|
|
2999
|
+
});
|
|
3000
|
+
const isDisabled = computed(() => props.disabled || props.loading || (groupContext == null ? void 0 : groupContext.disabled));
|
|
3001
|
+
const hasText = computed(() => !!slots.default);
|
|
3002
|
+
const buttonStyle = computed(() => {
|
|
3003
|
+
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
3004
|
+
const style = {
|
|
3005
|
+
height: s.h,
|
|
3006
|
+
padding: props.circle ? "0" : s.p,
|
|
3007
|
+
fontSize: s.f,
|
|
3008
|
+
minWidth: props.circle ? s.h : "auto",
|
|
3009
|
+
backgroundColor: props.bgColor,
|
|
3010
|
+
color: props.color
|
|
3011
|
+
};
|
|
3012
|
+
if (props.circle) {
|
|
3013
|
+
style.borderRadius = "50%";
|
|
3014
|
+
style.width = s.h;
|
|
3015
|
+
} else if (typeof props.round === "number") {
|
|
3016
|
+
style.borderRadius = `${props.round}px`;
|
|
3017
|
+
} else if (props.round === true) {
|
|
3018
|
+
style.borderRadius = "999px";
|
|
3019
|
+
}
|
|
3020
|
+
return style;
|
|
3021
|
+
});
|
|
3022
|
+
const iconSize = computed(() => {
|
|
3023
|
+
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
3024
|
+
return s.i;
|
|
3025
|
+
});
|
|
3026
|
+
return (_ctx, _cache) => {
|
|
3027
|
+
return openBlock(), createElementBlock("button", {
|
|
3028
|
+
type: _ctx.nativeType,
|
|
3029
|
+
class: normalizeClass(["f-button", [
|
|
3030
|
+
`f-button--${unref(mergedType)}`,
|
|
3031
|
+
`f-button--${unref(mergedSize)}`,
|
|
3032
|
+
{
|
|
3033
|
+
"is-disabled": unref(isDisabled),
|
|
3034
|
+
"is-loading": _ctx.loading,
|
|
3035
|
+
"is-active": _ctx.active,
|
|
3036
|
+
"is-text": _ctx.text,
|
|
3037
|
+
"is-icon-only": !unref(hasText) && (_ctx.icon || _ctx.$slots.icon)
|
|
3038
|
+
}
|
|
3039
|
+
]]),
|
|
3040
|
+
disabled: unref(isDisabled),
|
|
3041
|
+
style: normalizeStyle(unref(buttonStyle))
|
|
3042
|
+
}, [
|
|
3043
|
+
createElementVNode("span", _hoisted_2$e$2, [
|
|
3044
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$2)) : createCommentVNode("", true),
|
|
3045
|
+
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3046
|
+
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon), {
|
|
3047
|
+
key: 0,
|
|
3048
|
+
class: "f-button__icon",
|
|
3049
|
+
style: normalizeStyle({ fontSize: unref(iconSize) })
|
|
3050
|
+
}, {
|
|
3051
|
+
default: withCtx(() => [
|
|
3052
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3053
|
+
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : createCommentVNode("", true)
|
|
3054
|
+
], true)
|
|
3055
|
+
]),
|
|
3056
|
+
_: 3
|
|
3057
|
+
}, 8, ["style"])) : createCommentVNode("", true)
|
|
3058
|
+
], 64)) : createCommentVNode("", true),
|
|
3059
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$2, [
|
|
3060
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3061
|
+
])) : createCommentVNode("", true)
|
|
3062
|
+
])
|
|
3063
|
+
], 14, _hoisted_1$i$2);
|
|
3064
|
+
};
|
|
3065
|
+
}
|
|
3066
|
+
});
|
|
3067
|
+
const FButton$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$o$2, [["__scopeId", "data-v-41be5001"]]);
|
|
3068
|
+
const _hoisted_1$e$2 = { class: "f-checkbox__wrapper" };
|
|
3069
|
+
const _hoisted_2$c$2 = ["checked", "disabled"];
|
|
3070
|
+
const _hoisted_3$c$2 = {
|
|
3071
|
+
key: 0,
|
|
3072
|
+
class: "f-checkbox__label"
|
|
3073
|
+
};
|
|
2438
3074
|
/* @__PURE__ */ defineComponent({
|
|
2439
3075
|
__name: "FCheckbox",
|
|
2440
3076
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2457,68 +3093,188 @@ const _hoisted_3$b$7 = {
|
|
|
2457
3093
|
return openBlock(), createElementBlock("label", {
|
|
2458
3094
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2459
3095
|
}, [
|
|
2460
|
-
createElementVNode("span", _hoisted_1$
|
|
3096
|
+
createElementVNode("span", _hoisted_1$e$2, [
|
|
2461
3097
|
createElementVNode("input", {
|
|
2462
3098
|
type: "checkbox",
|
|
2463
3099
|
checked: modelValue.value,
|
|
2464
3100
|
disabled: _ctx.disabled,
|
|
2465
3101
|
onChange: handleChange
|
|
2466
|
-
}, null, 40, _hoisted_2$
|
|
3102
|
+
}, null, 40, _hoisted_2$c$2),
|
|
2467
3103
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2468
3104
|
]),
|
|
2469
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3105
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$2, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2470
3106
|
], 2);
|
|
2471
3107
|
};
|
|
2472
3108
|
}
|
|
2473
3109
|
});
|
|
3110
|
+
const _hoisted_1$k = {
|
|
3111
|
+
key: 0,
|
|
3112
|
+
class: "f-dialog__icon"
|
|
3113
|
+
};
|
|
3114
|
+
const _hoisted_2$g = { class: "f-dialog__title" };
|
|
3115
|
+
const _hoisted_3$g = { class: "f-dialog__body" };
|
|
3116
|
+
const _hoisted_4$a = { key: 0 };
|
|
3117
|
+
const _hoisted_5$9 = {
|
|
3118
|
+
key: 2,
|
|
3119
|
+
class: "f-dialog__footer"
|
|
3120
|
+
};
|
|
2474
3121
|
/* @__PURE__ */ defineComponent({
|
|
2475
3122
|
__name: "FDialog",
|
|
2476
3123
|
props: /* @__PURE__ */ mergeModels({
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
3124
|
+
title: { default: "提示" },
|
|
3125
|
+
content: {},
|
|
3126
|
+
width: { default: "500px" },
|
|
3127
|
+
type: { default: "default" },
|
|
3128
|
+
confirmText: { default: "确定" },
|
|
3129
|
+
cancelText: { default: "取消" },
|
|
3130
|
+
showCancel: { type: Boolean, default: true },
|
|
3131
|
+
showClose: { type: Boolean, default: true },
|
|
3132
|
+
closeOnClickModal: { type: Boolean, default: true },
|
|
3133
|
+
closeOnEsc: { type: Boolean, default: true },
|
|
3134
|
+
center: { type: Boolean, default: false },
|
|
3135
|
+
fullscreen: { type: Boolean, default: false },
|
|
3136
|
+
destroyOnClose: { type: Boolean, default: false },
|
|
3137
|
+
beforeClose: {}
|
|
2480
3138
|
}, {
|
|
2481
|
-
"modelValue": __spreadValues222({ type: Boolean }, {
|
|
3139
|
+
"modelValue": __spreadValues222({ type: Boolean }, { required: true }),
|
|
2482
3140
|
"modelModifiers": {}
|
|
2483
3141
|
}),
|
|
2484
|
-
emits: ["update:modelValue"],
|
|
2485
|
-
setup(__props) {
|
|
3142
|
+
emits: /* @__PURE__ */ mergeModels(["open", "close", "confirm", "cancel"], ["update:modelValue"]),
|
|
3143
|
+
setup(__props, { emit: __emit }) {
|
|
2486
3144
|
const props = __props;
|
|
3145
|
+
const emit = __emit;
|
|
2487
3146
|
const visible = useModel(__props, "modelValue");
|
|
2488
|
-
const
|
|
2489
|
-
|
|
3147
|
+
const handleClose = () => {
|
|
3148
|
+
visible.value = false;
|
|
3149
|
+
emit("close");
|
|
2490
3150
|
};
|
|
2491
|
-
const
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
3151
|
+
const handleConfirm = () => {
|
|
3152
|
+
emit("confirm");
|
|
3153
|
+
if (props.beforeClose) {
|
|
3154
|
+
props.beforeClose(() => {
|
|
3155
|
+
visible.value = false;
|
|
3156
|
+
});
|
|
3157
|
+
} else {
|
|
3158
|
+
visible.value = false;
|
|
3159
|
+
}
|
|
3160
|
+
};
|
|
3161
|
+
const handleCancel = () => {
|
|
3162
|
+
emit("cancel");
|
|
3163
|
+
handleClose();
|
|
3164
|
+
};
|
|
3165
|
+
const handleOverlayClick = (e) => {
|
|
3166
|
+
if (props.closeOnClickModal && e.target === e.currentTarget) {
|
|
3167
|
+
handleClose();
|
|
3168
|
+
}
|
|
3169
|
+
};
|
|
3170
|
+
const handleKeydown = (e) => {
|
|
3171
|
+
if (props.closeOnEsc && e.key === "Escape") {
|
|
3172
|
+
handleClose();
|
|
3173
|
+
}
|
|
3174
|
+
};
|
|
3175
|
+
onMounted(() => {
|
|
3176
|
+
if (props.closeOnEsc) {
|
|
3177
|
+
window.addEventListener("keydown", handleKeydown);
|
|
3178
|
+
}
|
|
3179
|
+
emit("open");
|
|
3180
|
+
});
|
|
3181
|
+
onBeforeUnmount(() => {
|
|
3182
|
+
if (props.closeOnEsc) {
|
|
3183
|
+
window.removeEventListener("keydown", handleKeydown);
|
|
2502
3184
|
}
|
|
2503
3185
|
});
|
|
3186
|
+
const iconMap = {
|
|
3187
|
+
info: InformationCircleOutline,
|
|
3188
|
+
success: CheckmarkCircleOutline,
|
|
3189
|
+
warning: WarningOutline,
|
|
3190
|
+
failed: AlertCircleOutline,
|
|
3191
|
+
primary: InformationCircleOutline,
|
|
3192
|
+
default: InformationCircleOutline
|
|
3193
|
+
};
|
|
3194
|
+
const hasIcon = computed(() => props.type && props.type !== "default");
|
|
2504
3195
|
return (_ctx, _cache) => {
|
|
2505
3196
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
2506
|
-
createVNode(Transition, { name: "fade" }, {
|
|
3197
|
+
createVNode(Transition, { name: "f-dialog-fade" }, {
|
|
2507
3198
|
default: withCtx(() => [
|
|
2508
3199
|
visible.value ? (openBlock(), createElementBlock("div", {
|
|
2509
3200
|
key: 0,
|
|
2510
|
-
class: "f-dialog-
|
|
2511
|
-
|
|
2512
|
-
onClick: handleMaskClick
|
|
3201
|
+
class: "f-dialog-overlay",
|
|
3202
|
+
onClick: handleOverlayClick
|
|
2513
3203
|
}, [
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
3204
|
+
createVNode(Transition, { name: "f-dialog-zoom" }, {
|
|
3205
|
+
default: withCtx(() => [
|
|
3206
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
3207
|
+
key: 0,
|
|
3208
|
+
class: normalizeClass(["f-dialog", [
|
|
3209
|
+
`f-dialog--${_ctx.type}`,
|
|
3210
|
+
{
|
|
3211
|
+
"is-center": _ctx.center,
|
|
3212
|
+
"is-fullscreen": _ctx.fullscreen
|
|
3213
|
+
}
|
|
3214
|
+
]]),
|
|
3215
|
+
style: normalizeStyle({ width: _ctx.fullscreen ? "100%" : _ctx.width })
|
|
3216
|
+
}, [
|
|
3217
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
3218
|
+
key: 0,
|
|
3219
|
+
type: "button",
|
|
3220
|
+
class: "f-dialog__close",
|
|
3221
|
+
onClick: handleClose
|
|
3222
|
+
}, [
|
|
3223
|
+
createVNode(FIcon$2, null, {
|
|
3224
|
+
default: withCtx(() => [
|
|
3225
|
+
createVNode(unref(CloseOutline))
|
|
3226
|
+
]),
|
|
3227
|
+
_: 1
|
|
3228
|
+
})
|
|
3229
|
+
])) : createCommentVNode("", true),
|
|
3230
|
+
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("div", {
|
|
3231
|
+
key: 1,
|
|
3232
|
+
class: normalizeClass(["f-dialog__header", { "has-icon": unref(hasIcon) }])
|
|
3233
|
+
}, [
|
|
3234
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3235
|
+
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
3236
|
+
createVNode(FIcon$2, null, {
|
|
3237
|
+
default: withCtx(() => [
|
|
3238
|
+
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
3239
|
+
]),
|
|
3240
|
+
_: 1
|
|
3241
|
+
})
|
|
3242
|
+
])) : createCommentVNode("", true),
|
|
3243
|
+
createElementVNode("h3", _hoisted_2$g, toDisplayString(_ctx.title), 1)
|
|
3244
|
+
], true)
|
|
3245
|
+
], 2)) : createCommentVNode("", true),
|
|
3246
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
3247
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3248
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$a, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
3249
|
+
], true)
|
|
3250
|
+
]),
|
|
3251
|
+
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
3252
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
3253
|
+
_ctx.showCancel ? (openBlock(), createBlock(FButton$2, {
|
|
3254
|
+
key: 0,
|
|
3255
|
+
onClick: handleCancel
|
|
3256
|
+
}, {
|
|
3257
|
+
default: withCtx(() => [
|
|
3258
|
+
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
3259
|
+
]),
|
|
3260
|
+
_: 1
|
|
3261
|
+
})) : createCommentVNode("", true),
|
|
3262
|
+
createVNode(FButton$2, {
|
|
3263
|
+
type: "primary",
|
|
3264
|
+
onClick: handleConfirm
|
|
3265
|
+
}, {
|
|
3266
|
+
default: withCtx(() => [
|
|
3267
|
+
createTextVNode(toDisplayString(_ctx.confirmText), 1)
|
|
3268
|
+
]),
|
|
3269
|
+
_: 1
|
|
3270
|
+
})
|
|
3271
|
+
], true)
|
|
3272
|
+
])) : createCommentVNode("", true)
|
|
3273
|
+
], 6)) : createCommentVNode("", true)
|
|
3274
|
+
]),
|
|
3275
|
+
_: 3
|
|
3276
|
+
})
|
|
3277
|
+
])) : createCommentVNode("", true)
|
|
2522
3278
|
]),
|
|
2523
3279
|
_: 3
|
|
2524
3280
|
})
|
|
@@ -2526,17 +3282,17 @@ const _hoisted_3$b$7 = {
|
|
|
2526
3282
|
};
|
|
2527
3283
|
}
|
|
2528
3284
|
});
|
|
2529
|
-
const _hoisted_1$i$
|
|
2530
|
-
const _hoisted_2$e$
|
|
2531
|
-
const _hoisted_3$e$
|
|
3285
|
+
const _hoisted_1$i$3 = ["type", "disabled"];
|
|
3286
|
+
const _hoisted_2$e$3 = { class: "f-button__inner" };
|
|
3287
|
+
const _hoisted_3$e$3 = {
|
|
2532
3288
|
key: 0,
|
|
2533
3289
|
class: "f-loader"
|
|
2534
3290
|
};
|
|
2535
|
-
const _hoisted_4$8$
|
|
3291
|
+
const _hoisted_4$8$3 = {
|
|
2536
3292
|
key: 2,
|
|
2537
3293
|
class: "f-button__text"
|
|
2538
3294
|
};
|
|
2539
|
-
const _sfc_main$o$
|
|
3295
|
+
const _sfc_main$o$3 = /* @__PURE__ */ defineComponent({
|
|
2540
3296
|
__name: "FButton",
|
|
2541
3297
|
props: {
|
|
2542
3298
|
type: {},
|
|
@@ -2614,10 +3370,10 @@ const _sfc_main$o$1 = /* @__PURE__ */ defineComponent({
|
|
|
2614
3370
|
disabled: unref(isDisabled),
|
|
2615
3371
|
style: normalizeStyle(unref(buttonStyle))
|
|
2616
3372
|
}, [
|
|
2617
|
-
createElementVNode("span", _hoisted_2$e$
|
|
2618
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$
|
|
3373
|
+
createElementVNode("span", _hoisted_2$e$3, [
|
|
3374
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$3)) : createCommentVNode("", true),
|
|
2619
3375
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2620
|
-
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$
|
|
3376
|
+
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$2), {
|
|
2621
3377
|
key: 0,
|
|
2622
3378
|
class: "f-button__icon",
|
|
2623
3379
|
style: normalizeStyle({ fontSize: unref(iconSize) })
|
|
@@ -2630,18 +3386,18 @@ const _sfc_main$o$1 = /* @__PURE__ */ defineComponent({
|
|
|
2630
3386
|
_: 3
|
|
2631
3387
|
}, 8, ["style"])) : createCommentVNode("", true)
|
|
2632
3388
|
], 64)) : createCommentVNode("", true),
|
|
2633
|
-
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$
|
|
3389
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$3, [
|
|
2634
3390
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2635
3391
|
])) : createCommentVNode("", true)
|
|
2636
3392
|
])
|
|
2637
|
-
], 14, _hoisted_1$i$
|
|
3393
|
+
], 14, _hoisted_1$i$3);
|
|
2638
3394
|
};
|
|
2639
3395
|
}
|
|
2640
3396
|
});
|
|
2641
|
-
const FButton$
|
|
2642
|
-
const _hoisted_1$e$
|
|
2643
|
-
const _hoisted_2$c$
|
|
2644
|
-
const _hoisted_3$c$
|
|
3397
|
+
const FButton$3 = /* @__PURE__ */ _export_sfc$3(_sfc_main$o$3, [["__scopeId", "data-v-41be5001"]]);
|
|
3398
|
+
const _hoisted_1$e$3 = { class: "f-checkbox__wrapper" };
|
|
3399
|
+
const _hoisted_2$c$3 = ["checked", "disabled"];
|
|
3400
|
+
const _hoisted_3$c$3 = {
|
|
2645
3401
|
key: 0,
|
|
2646
3402
|
class: "f-checkbox__label"
|
|
2647
3403
|
};
|
|
@@ -2667,28 +3423,28 @@ const _hoisted_3$c$1 = {
|
|
|
2667
3423
|
return openBlock(), createElementBlock("label", {
|
|
2668
3424
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2669
3425
|
}, [
|
|
2670
|
-
createElementVNode("span", _hoisted_1$e$
|
|
3426
|
+
createElementVNode("span", _hoisted_1$e$3, [
|
|
2671
3427
|
createElementVNode("input", {
|
|
2672
3428
|
type: "checkbox",
|
|
2673
3429
|
checked: modelValue.value,
|
|
2674
3430
|
disabled: _ctx.disabled,
|
|
2675
3431
|
onChange: handleChange
|
|
2676
|
-
}, null, 40, _hoisted_2$c$
|
|
3432
|
+
}, null, 40, _hoisted_2$c$3),
|
|
2677
3433
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2678
3434
|
]),
|
|
2679
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$
|
|
3435
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$3, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2680
3436
|
], 2);
|
|
2681
3437
|
};
|
|
2682
3438
|
}
|
|
2683
3439
|
});
|
|
2684
|
-
const _hoisted_1$
|
|
3440
|
+
const _hoisted_1$l = {
|
|
2685
3441
|
key: 0,
|
|
2686
3442
|
class: "f-dialog__icon"
|
|
2687
3443
|
};
|
|
2688
|
-
const _hoisted_2$
|
|
2689
|
-
const _hoisted_3$
|
|
2690
|
-
const _hoisted_4$
|
|
2691
|
-
const _hoisted_5$
|
|
3444
|
+
const _hoisted_2$h = { class: "f-dialog__title" };
|
|
3445
|
+
const _hoisted_3$h = { class: "f-dialog__body" };
|
|
3446
|
+
const _hoisted_4$b = { key: 0 };
|
|
3447
|
+
const _hoisted_5$a = {
|
|
2692
3448
|
key: 2,
|
|
2693
3449
|
class: "f-dialog__footer"
|
|
2694
3450
|
};
|
|
@@ -2794,7 +3550,7 @@ const _hoisted_5$8 = {
|
|
|
2794
3550
|
class: "f-dialog__close",
|
|
2795
3551
|
onClick: handleClose
|
|
2796
3552
|
}, [
|
|
2797
|
-
createVNode(FIcon, null, {
|
|
3553
|
+
createVNode(FIcon$3, null, {
|
|
2798
3554
|
default: withCtx(() => [
|
|
2799
3555
|
createVNode(unref(CloseOutline))
|
|
2800
3556
|
]),
|
|
@@ -2806,25 +3562,25 @@ const _hoisted_5$8 = {
|
|
|
2806
3562
|
class: normalizeClass(["f-dialog__header", { "has-icon": unref(hasIcon) }])
|
|
2807
3563
|
}, [
|
|
2808
3564
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
2809
|
-
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2810
|
-
createVNode(FIcon, null, {
|
|
3565
|
+
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
3566
|
+
createVNode(FIcon$3, null, {
|
|
2811
3567
|
default: withCtx(() => [
|
|
2812
3568
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
2813
3569
|
]),
|
|
2814
3570
|
_: 1
|
|
2815
3571
|
})
|
|
2816
3572
|
])) : createCommentVNode("", true),
|
|
2817
|
-
createElementVNode("h3", _hoisted_2$
|
|
3573
|
+
createElementVNode("h3", _hoisted_2$h, toDisplayString(_ctx.title), 1)
|
|
2818
3574
|
], true)
|
|
2819
3575
|
], 2)) : createCommentVNode("", true),
|
|
2820
|
-
createElementVNode("div", _hoisted_3$
|
|
3576
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
2821
3577
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2822
|
-
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
3578
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$b, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
2823
3579
|
], true)
|
|
2824
3580
|
]),
|
|
2825
|
-
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3581
|
+
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
2826
3582
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
2827
|
-
_ctx.showCancel ? (openBlock(), createBlock(FButton$
|
|
3583
|
+
_ctx.showCancel ? (openBlock(), createBlock(FButton$3, {
|
|
2828
3584
|
key: 0,
|
|
2829
3585
|
onClick: handleCancel
|
|
2830
3586
|
}, {
|
|
@@ -2833,7 +3589,7 @@ const _hoisted_5$8 = {
|
|
|
2833
3589
|
]),
|
|
2834
3590
|
_: 1
|
|
2835
3591
|
})) : createCommentVNode("", true),
|
|
2836
|
-
createVNode(FButton$
|
|
3592
|
+
createVNode(FButton$3, {
|
|
2837
3593
|
type: "primary",
|
|
2838
3594
|
onClick: handleConfirm
|
|
2839
3595
|
}, {
|
|
@@ -2856,17 +3612,17 @@ const _hoisted_5$8 = {
|
|
|
2856
3612
|
};
|
|
2857
3613
|
}
|
|
2858
3614
|
});
|
|
2859
|
-
const _hoisted_1$i$
|
|
2860
|
-
const _hoisted_2$e$
|
|
2861
|
-
const _hoisted_3$e$
|
|
3615
|
+
const _hoisted_1$i$4 = ["type", "disabled"];
|
|
3616
|
+
const _hoisted_2$e$4 = { class: "f-button__inner" };
|
|
3617
|
+
const _hoisted_3$e$4 = {
|
|
2862
3618
|
key: 0,
|
|
2863
3619
|
class: "f-loader"
|
|
2864
3620
|
};
|
|
2865
|
-
const _hoisted_4$8$
|
|
3621
|
+
const _hoisted_4$8$4 = {
|
|
2866
3622
|
key: 2,
|
|
2867
3623
|
class: "f-button__text"
|
|
2868
3624
|
};
|
|
2869
|
-
const _sfc_main$o$
|
|
3625
|
+
const _sfc_main$o$4 = /* @__PURE__ */ defineComponent({
|
|
2870
3626
|
__name: "FButton",
|
|
2871
3627
|
props: {
|
|
2872
3628
|
type: {},
|
|
@@ -2944,10 +3700,10 @@ const _sfc_main$o$2 = /* @__PURE__ */ defineComponent({
|
|
|
2944
3700
|
disabled: unref(isDisabled),
|
|
2945
3701
|
style: normalizeStyle(unref(buttonStyle))
|
|
2946
3702
|
}, [
|
|
2947
|
-
createElementVNode("span", _hoisted_2$e$
|
|
2948
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$
|
|
3703
|
+
createElementVNode("span", _hoisted_2$e$4, [
|
|
3704
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e$4)) : createCommentVNode("", true),
|
|
2949
3705
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2950
|
-
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon), {
|
|
3706
|
+
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$3), {
|
|
2951
3707
|
key: 0,
|
|
2952
3708
|
class: "f-button__icon",
|
|
2953
3709
|
style: normalizeStyle({ fontSize: unref(iconSize) })
|
|
@@ -2960,18 +3716,18 @@ const _sfc_main$o$2 = /* @__PURE__ */ defineComponent({
|
|
|
2960
3716
|
_: 3
|
|
2961
3717
|
}, 8, ["style"])) : createCommentVNode("", true)
|
|
2962
3718
|
], 64)) : createCommentVNode("", true),
|
|
2963
|
-
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$
|
|
3719
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$8$4, [
|
|
2964
3720
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2965
3721
|
])) : createCommentVNode("", true)
|
|
2966
3722
|
])
|
|
2967
|
-
], 14, _hoisted_1$i$
|
|
3723
|
+
], 14, _hoisted_1$i$4);
|
|
2968
3724
|
};
|
|
2969
3725
|
}
|
|
2970
3726
|
});
|
|
2971
|
-
const FButton$
|
|
2972
|
-
const _hoisted_1$e$
|
|
2973
|
-
const _hoisted_2$c$
|
|
2974
|
-
const _hoisted_3$c$
|
|
3727
|
+
const FButton$4 = /* @__PURE__ */ _export_sfc$4(_sfc_main$o$4, [["__scopeId", "data-v-41be5001"]]);
|
|
3728
|
+
const _hoisted_1$e$4 = { class: "f-checkbox__wrapper" };
|
|
3729
|
+
const _hoisted_2$c$4 = ["checked", "disabled"];
|
|
3730
|
+
const _hoisted_3$c$4 = {
|
|
2975
3731
|
key: 0,
|
|
2976
3732
|
class: "f-checkbox__label"
|
|
2977
3733
|
};
|
|
@@ -2997,16 +3753,16 @@ const _hoisted_3$c$2 = {
|
|
|
2997
3753
|
return openBlock(), createElementBlock("label", {
|
|
2998
3754
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2999
3755
|
}, [
|
|
3000
|
-
createElementVNode("span", _hoisted_1$e$
|
|
3756
|
+
createElementVNode("span", _hoisted_1$e$4, [
|
|
3001
3757
|
createElementVNode("input", {
|
|
3002
3758
|
type: "checkbox",
|
|
3003
3759
|
checked: modelValue.value,
|
|
3004
3760
|
disabled: _ctx.disabled,
|
|
3005
3761
|
onChange: handleChange
|
|
3006
|
-
}, null, 40, _hoisted_2$c$
|
|
3762
|
+
}, null, 40, _hoisted_2$c$4),
|
|
3007
3763
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
3008
3764
|
]),
|
|
3009
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$
|
|
3765
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c$4, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3010
3766
|
], 2);
|
|
3011
3767
|
};
|
|
3012
3768
|
}
|
|
@@ -3082,7 +3838,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
3082
3838
|
onMouseenter: clearTimer,
|
|
3083
3839
|
onMouseleave: startTimer
|
|
3084
3840
|
}, [
|
|
3085
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon$
|
|
3841
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$4, {
|
|
3086
3842
|
key: 0,
|
|
3087
3843
|
class: "f-message__icon"
|
|
3088
3844
|
}, {
|
|
@@ -3099,7 +3855,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
3099
3855
|
"aria-label": "close",
|
|
3100
3856
|
onClick: close
|
|
3101
3857
|
}, [
|
|
3102
|
-
createVNode(FIcon$
|
|
3858
|
+
createVNode(FIcon$4, null, {
|
|
3103
3859
|
default: withCtx(() => [
|
|
3104
3860
|
createVNode(unref(Close))
|
|
3105
3861
|
]),
|
|
@@ -3113,7 +3869,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
3113
3869
|
};
|
|
3114
3870
|
}
|
|
3115
3871
|
});
|
|
3116
|
-
const FMessageComp$1 = /* @__PURE__ */ _export_sfc$
|
|
3872
|
+
const FMessageComp$1 = /* @__PURE__ */ _export_sfc$4(_sfc_main$2$1, [["__scopeId", "data-v-97556afa"]]);
|
|
3117
3873
|
const GAP$1$1 = 16;
|
|
3118
3874
|
const BASE_OFFSET$1$1 = 20;
|
|
3119
3875
|
let seed$1$1 = 0;
|
|
@@ -3269,7 +4025,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
3269
4025
|
onMouseleave: startTimer,
|
|
3270
4026
|
onClick: handleClick
|
|
3271
4027
|
}, [
|
|
3272
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon$
|
|
4028
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$4, {
|
|
3273
4029
|
key: 0,
|
|
3274
4030
|
class: "f-notification__icon"
|
|
3275
4031
|
}, {
|
|
@@ -3289,7 +4045,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
3289
4045
|
"aria-label": "close",
|
|
3290
4046
|
onClick: withModifiers(close, ["stop"])
|
|
3291
4047
|
}, [
|
|
3292
|
-
createVNode(FIcon$
|
|
4048
|
+
createVNode(FIcon$4, null, {
|
|
3293
4049
|
default: withCtx(() => [
|
|
3294
4050
|
createVNode(unref(Close))
|
|
3295
4051
|
]),
|
|
@@ -3303,7 +4059,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
3303
4059
|
};
|
|
3304
4060
|
}
|
|
3305
4061
|
});
|
|
3306
|
-
const FNotificationComp$1 = /* @__PURE__ */ _export_sfc$
|
|
4062
|
+
const FNotificationComp$1 = /* @__PURE__ */ _export_sfc$4(_sfc_main$1$1, [["__scopeId", "data-v-0a7315d6"]]);
|
|
3307
4063
|
const GAP$2 = 16;
|
|
3308
4064
|
const BASE_OFFSET$2 = 20;
|
|
3309
4065
|
let seed$2 = 0;
|
|
@@ -3392,14 +4148,14 @@ FNotification$1.closeAll = (position) => {
|
|
|
3392
4148
|
});
|
|
3393
4149
|
});
|
|
3394
4150
|
};
|
|
3395
|
-
const _hoisted_1$
|
|
4151
|
+
const _hoisted_1$m = {
|
|
3396
4152
|
key: 0,
|
|
3397
4153
|
class: "f-dialog__icon"
|
|
3398
4154
|
};
|
|
3399
|
-
const _hoisted_2$
|
|
3400
|
-
const _hoisted_3$
|
|
3401
|
-
const _hoisted_4$
|
|
3402
|
-
const _hoisted_5$
|
|
4155
|
+
const _hoisted_2$i = { class: "f-dialog__title" };
|
|
4156
|
+
const _hoisted_3$i = { class: "f-dialog__body" };
|
|
4157
|
+
const _hoisted_4$c = { key: 0 };
|
|
4158
|
+
const _hoisted_5$b = {
|
|
3403
4159
|
key: 2,
|
|
3404
4160
|
class: "f-dialog__footer"
|
|
3405
4161
|
};
|
|
@@ -3505,7 +4261,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3505
4261
|
class: "f-dialog__close",
|
|
3506
4262
|
onClick: handleClose
|
|
3507
4263
|
}, [
|
|
3508
|
-
createVNode(FIcon$
|
|
4264
|
+
createVNode(FIcon$4, null, {
|
|
3509
4265
|
default: withCtx(() => [
|
|
3510
4266
|
createVNode(unref(CloseOutline))
|
|
3511
4267
|
]),
|
|
@@ -3517,25 +4273,25 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3517
4273
|
class: normalizeClass(["f-dialog__header", { "has-icon": unref(hasIcon) }])
|
|
3518
4274
|
}, [
|
|
3519
4275
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3520
|
-
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3521
|
-
createVNode(FIcon$
|
|
4276
|
+
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
4277
|
+
createVNode(FIcon$4, null, {
|
|
3522
4278
|
default: withCtx(() => [
|
|
3523
4279
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
3524
4280
|
]),
|
|
3525
4281
|
_: 1
|
|
3526
4282
|
})
|
|
3527
4283
|
])) : createCommentVNode("", true),
|
|
3528
|
-
createElementVNode("h3", _hoisted_2$
|
|
4284
|
+
createElementVNode("h3", _hoisted_2$i, toDisplayString(_ctx.title), 1)
|
|
3529
4285
|
], true)
|
|
3530
4286
|
], 2)) : createCommentVNode("", true),
|
|
3531
|
-
createElementVNode("div", _hoisted_3$
|
|
4287
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
3532
4288
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3533
|
-
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
4289
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$c, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
3534
4290
|
], true)
|
|
3535
4291
|
]),
|
|
3536
|
-
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4292
|
+
_ctx.$slots.footer || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
3537
4293
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
3538
|
-
_ctx.showCancel ? (openBlock(), createBlock(FButton$
|
|
4294
|
+
_ctx.showCancel ? (openBlock(), createBlock(FButton$4, {
|
|
3539
4295
|
key: 0,
|
|
3540
4296
|
onClick: handleCancel
|
|
3541
4297
|
}, {
|
|
@@ -3544,7 +4300,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3544
4300
|
]),
|
|
3545
4301
|
_: 1
|
|
3546
4302
|
})) : createCommentVNode("", true),
|
|
3547
|
-
createVNode(FButton$
|
|
4303
|
+
createVNode(FButton$4, {
|
|
3548
4304
|
type: "primary",
|
|
3549
4305
|
onClick: handleConfirm
|
|
3550
4306
|
}, {
|
|
@@ -3567,7 +4323,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3567
4323
|
};
|
|
3568
4324
|
}
|
|
3569
4325
|
});
|
|
3570
|
-
const FDialogComp$1 = /* @__PURE__ */ _export_sfc$
|
|
4326
|
+
const FDialogComp$1 = /* @__PURE__ */ _export_sfc$4(_sfc_main$p, [["__scopeId", "data-v-991352de"]]);
|
|
3571
4327
|
const showDialog$1 = (options) => {
|
|
3572
4328
|
return new Promise((resolve) => {
|
|
3573
4329
|
const container = document.createElement("div");
|
|
@@ -3739,7 +4495,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3739
4495
|
createElementVNode("span", _hoisted_2$e, [
|
|
3740
4496
|
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$e)) : createCommentVNode("", true),
|
|
3741
4497
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3742
|
-
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$
|
|
4498
|
+
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(unref(FIcon$4), {
|
|
3743
4499
|
key: 0,
|
|
3744
4500
|
class: "f-button__icon",
|
|
3745
4501
|
style: normalizeStyle({ fontSize: unref(iconSize) })
|
|
@@ -3760,7 +4516,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3760
4516
|
};
|
|
3761
4517
|
}
|
|
3762
4518
|
});
|
|
3763
|
-
const FButton = /* @__PURE__ */ _export_sfc$
|
|
4519
|
+
const FButton = /* @__PURE__ */ _export_sfc$5(_sfc_main$o, [["__scopeId", "data-v-41be5001"]]);
|
|
3764
4520
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3765
4521
|
__name: "FTypography",
|
|
3766
4522
|
props: {
|
|
@@ -3783,7 +4539,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3783
4539
|
};
|
|
3784
4540
|
}
|
|
3785
4541
|
});
|
|
3786
|
-
const FTypography = /* @__PURE__ */ _export_sfc$
|
|
4542
|
+
const FTypography = /* @__PURE__ */ _export_sfc$5(_sfc_main$n, [["__scopeId", "data-v-50e044db"]]);
|
|
3787
4543
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
3788
4544
|
__name: "FText",
|
|
3789
4545
|
props: {
|
|
@@ -3842,7 +4598,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3842
4598
|
};
|
|
3843
4599
|
}
|
|
3844
4600
|
});
|
|
3845
|
-
const FText = /* @__PURE__ */ _export_sfc$
|
|
4601
|
+
const FText = /* @__PURE__ */ _export_sfc$5(_sfc_main$m, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
3846
4602
|
const _hoisted_1$h = ["href", "target", "rel"];
|
|
3847
4603
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
3848
4604
|
__name: "FLink",
|
|
@@ -3871,7 +4627,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
3871
4627
|
};
|
|
3872
4628
|
}
|
|
3873
4629
|
});
|
|
3874
|
-
const FLink = /* @__PURE__ */ _export_sfc$
|
|
4630
|
+
const FLink = /* @__PURE__ */ _export_sfc$5(_sfc_main$l, [["__scopeId", "data-v-daaa3e25"]]);
|
|
3875
4631
|
const _hoisted_1$g = { class: "f-badge" };
|
|
3876
4632
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
3877
4633
|
__name: "FBadge",
|
|
@@ -3913,7 +4669,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
3913
4669
|
};
|
|
3914
4670
|
}
|
|
3915
4671
|
});
|
|
3916
|
-
const FBadge = /* @__PURE__ */ _export_sfc$
|
|
4672
|
+
const FBadge = /* @__PURE__ */ _export_sfc$5(_sfc_main$k, [["__scopeId", "data-v-be6947ff"]]);
|
|
3917
4673
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
3918
4674
|
__name: "FAffix",
|
|
3919
4675
|
props: {
|
|
@@ -3942,7 +4698,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
3942
4698
|
};
|
|
3943
4699
|
}
|
|
3944
4700
|
});
|
|
3945
|
-
const FAffix = /* @__PURE__ */ _export_sfc$
|
|
4701
|
+
const FAffix = /* @__PURE__ */ _export_sfc$5(_sfc_main$j, [["__scopeId", "data-v-8506d679"]]);
|
|
3946
4702
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
3947
4703
|
__name: "FForm",
|
|
3948
4704
|
props: {
|
|
@@ -4000,7 +4756,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
4000
4756
|
};
|
|
4001
4757
|
}
|
|
4002
4758
|
});
|
|
4003
|
-
const FForm = /* @__PURE__ */ _export_sfc$
|
|
4759
|
+
const FForm = /* @__PURE__ */ _export_sfc$5(_sfc_main$i, [["__scopeId", "data-v-21f7de9b"]]);
|
|
4004
4760
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
4005
4761
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
4006
4762
|
for (let rule of ruleArray) {
|
|
@@ -4173,7 +4929,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
4173
4929
|
};
|
|
4174
4930
|
}
|
|
4175
4931
|
});
|
|
4176
|
-
const FFormItem = /* @__PURE__ */ _export_sfc$
|
|
4932
|
+
const FFormItem = /* @__PURE__ */ _export_sfc$5(_sfc_main$h, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
4177
4933
|
const _hoisted_1$e = { class: "f-checkbox__wrapper" };
|
|
4178
4934
|
const _hoisted_2$c = ["checked", "disabled"];
|
|
4179
4935
|
const _hoisted_3$c = {
|
|
@@ -4216,7 +4972,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
4216
4972
|
};
|
|
4217
4973
|
}
|
|
4218
4974
|
});
|
|
4219
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc$
|
|
4975
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc$5(_sfc_main$g, [["__scopeId", "data-v-633b283a"]]);
|
|
4220
4976
|
const _hoisted_1$d = { class: "alert__body" };
|
|
4221
4977
|
const _hoisted_2$b = { class: "alert__title" };
|
|
4222
4978
|
const _hoisted_3$b = { class: "alert__content" };
|
|
@@ -4240,7 +4996,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4240
4996
|
return openBlock(), createElementBlock("div", {
|
|
4241
4997
|
class: normalizeClass(["alert", `alert--${_ctx.type}`])
|
|
4242
4998
|
}, [
|
|
4243
|
-
createVNode(FIcon$
|
|
4999
|
+
createVNode(FIcon$5, { class: "alert__icon" }, {
|
|
4244
5000
|
default: withCtx(() => [
|
|
4245
5001
|
(openBlock(), createBlock(resolveDynamicComponent(unref(config).icon)))
|
|
4246
5002
|
]),
|
|
@@ -4258,7 +5014,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
4258
5014
|
};
|
|
4259
5015
|
}
|
|
4260
5016
|
});
|
|
4261
|
-
const FAlert = /* @__PURE__ */ _export_sfc$
|
|
5017
|
+
const FAlert = /* @__PURE__ */ _export_sfc$5(_sfc_main$f, [["__scopeId", "data-v-f16678ef"]]);
|
|
4262
5018
|
const _hoisted_1$c = { class: "f-editor__toolbar" };
|
|
4263
5019
|
const _hoisted_2$a = { class: "f-editor__status" };
|
|
4264
5020
|
const _hoisted_3$a = { class: "f-editor__lines" };
|
|
@@ -4520,7 +5276,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
4520
5276
|
};
|
|
4521
5277
|
}
|
|
4522
5278
|
});
|
|
4523
|
-
const FEditor = /* @__PURE__ */ _export_sfc$
|
|
5279
|
+
const FEditor = /* @__PURE__ */ _export_sfc$5(_sfc_main$e, [["__scopeId", "data-v-6d590649"]]);
|
|
4524
5280
|
const _hoisted_1$b = { class: "f-table" };
|
|
4525
5281
|
const _hoisted_2$9 = {
|
|
4526
5282
|
key: 0,
|
|
@@ -4725,7 +5481,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
4725
5481
|
};
|
|
4726
5482
|
}
|
|
4727
5483
|
});
|
|
4728
|
-
const FTable = /* @__PURE__ */ _export_sfc$
|
|
5484
|
+
const FTable = /* @__PURE__ */ _export_sfc$5(_sfc_main$d, [["__scopeId", "data-v-01724962"]]);
|
|
4729
5485
|
const _hoisted_1$a = { class: "f-upload" };
|
|
4730
5486
|
const _hoisted_2$8 = { class: "f-upload__label" };
|
|
4731
5487
|
const _hoisted_3$8 = ["accept"];
|
|
@@ -4801,7 +5557,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4801
5557
|
onChange: onFileChange
|
|
4802
5558
|
}, null, 40, _hoisted_3$8),
|
|
4803
5559
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4804
|
-
createVNode(FIcon$
|
|
5560
|
+
createVNode(FIcon$5, { size: 40 }, {
|
|
4805
5561
|
default: withCtx(() => [
|
|
4806
5562
|
createVNode(unref(CloudUpload))
|
|
4807
5563
|
]),
|
|
@@ -4813,7 +5569,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4813
5569
|
])
|
|
4814
5570
|
], 34),
|
|
4815
5571
|
file.value ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
4816
|
-
createVNode(FIcon$
|
|
5572
|
+
createVNode(FIcon$5, null, {
|
|
4817
5573
|
default: withCtx(() => [
|
|
4818
5574
|
createVNode(unref(DocumentOutline))
|
|
4819
5575
|
]),
|
|
@@ -4827,7 +5583,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4827
5583
|
"show-text": ""
|
|
4828
5584
|
}, null, 8, ["percent"])) : createCommentVNode("", true)
|
|
4829
5585
|
]),
|
|
4830
|
-
createVNode(FIcon$
|
|
5586
|
+
createVNode(FIcon$5, {
|
|
4831
5587
|
onClick: withModifiers(clearFile, ["stop"]),
|
|
4832
5588
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => isCloseHover.value = true),
|
|
4833
5589
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => isCloseHover.value = false),
|
|
@@ -4843,7 +5599,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
4843
5599
|
};
|
|
4844
5600
|
}
|
|
4845
5601
|
});
|
|
4846
|
-
const FUpload = /* @__PURE__ */ _export_sfc$
|
|
5602
|
+
const FUpload = /* @__PURE__ */ _export_sfc$5(_sfc_main$c, [["__scopeId", "data-v-07b95a32"]]);
|
|
4847
5603
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4848
5604
|
__name: "FButtonGroup",
|
|
4849
5605
|
props: {
|
|
@@ -4865,7 +5621,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
4865
5621
|
};
|
|
4866
5622
|
}
|
|
4867
5623
|
});
|
|
4868
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc$
|
|
5624
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc$5(_sfc_main$b, [["__scopeId", "data-v-62561657"]]);
|
|
4869
5625
|
const _hoisted_1$9 = { class: "f-collapse" };
|
|
4870
5626
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4871
5627
|
__name: "FCollapse",
|
|
@@ -5917,7 +6673,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5917
6673
|
onMouseup: stopRepeat,
|
|
5918
6674
|
onMouseleave: stopRepeat
|
|
5919
6675
|
}, [
|
|
5920
|
-
createVNode(unref(FIcon$
|
|
6676
|
+
createVNode(unref(FIcon$4), null, {
|
|
5921
6677
|
default: withCtx(() => [
|
|
5922
6678
|
createVNode(unref(RemoveOutline))
|
|
5923
6679
|
]),
|
|
@@ -5949,7 +6705,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5949
6705
|
onMouseup: stopRepeat,
|
|
5950
6706
|
onMouseleave: stopRepeat
|
|
5951
6707
|
}, [
|
|
5952
|
-
createVNode(unref(FIcon$
|
|
6708
|
+
createVNode(unref(FIcon$4), null, {
|
|
5953
6709
|
default: withCtx(() => [
|
|
5954
6710
|
createVNode(unref(AddOutline))
|
|
5955
6711
|
]),
|
|
@@ -5966,7 +6722,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5966
6722
|
onMouseup: stopRepeat,
|
|
5967
6723
|
onMouseleave: stopRepeat
|
|
5968
6724
|
}, [
|
|
5969
|
-
createVNode(unref(FIcon$
|
|
6725
|
+
createVNode(unref(FIcon$4), null, {
|
|
5970
6726
|
default: withCtx(() => [
|
|
5971
6727
|
createVNode(unref(ChevronUpOutline))
|
|
5972
6728
|
]),
|
|
@@ -5982,7 +6738,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5982
6738
|
onMouseup: stopRepeat,
|
|
5983
6739
|
onMouseleave: stopRepeat
|
|
5984
6740
|
}, [
|
|
5985
|
-
createVNode(unref(FIcon$
|
|
6741
|
+
createVNode(unref(FIcon$4), null, {
|
|
5986
6742
|
default: withCtx(() => [
|
|
5987
6743
|
createVNode(unref(ChevronDownOutline))
|
|
5988
6744
|
]),
|
|
@@ -5994,7 +6750,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
5994
6750
|
};
|
|
5995
6751
|
}
|
|
5996
6752
|
});
|
|
5997
|
-
const FInputNumber = /* @__PURE__ */ _export_sfc$
|
|
6753
|
+
const FInputNumber = /* @__PURE__ */ _export_sfc$5(_sfc_main$4, [["__scopeId", "data-v-292cd24f"]]);
|
|
5998
6754
|
const _hoisted_1$3 = { class: "f-result__icon" };
|
|
5999
6755
|
const _hoisted_2$2 = {
|
|
6000
6756
|
key: 0,
|
|
@@ -6044,7 +6800,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6044
6800
|
}, [
|
|
6045
6801
|
createElementVNode("div", _hoisted_1$3, [
|
|
6046
6802
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6047
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon$
|
|
6803
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon$5, {
|
|
6048
6804
|
key: 1,
|
|
6049
6805
|
size: 72
|
|
6050
6806
|
}, {
|
|
@@ -6075,7 +6831,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6075
6831
|
};
|
|
6076
6832
|
}
|
|
6077
6833
|
});
|
|
6078
|
-
const FResult = /* @__PURE__ */ _export_sfc$
|
|
6834
|
+
const FResult = /* @__PURE__ */ _export_sfc$5(_sfc_main$3, [["__scopeId", "data-v-1667a865"]]);
|
|
6079
6835
|
const _hoisted_1$2 = { class: "f-message__content" };
|
|
6080
6836
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
6081
6837
|
__name: "FMessage",
|
|
@@ -6147,7 +6903,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6147
6903
|
onMouseenter: clearTimer,
|
|
6148
6904
|
onMouseleave: startTimer
|
|
6149
6905
|
}, [
|
|
6150
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon$
|
|
6906
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$5, {
|
|
6151
6907
|
key: 0,
|
|
6152
6908
|
class: "f-message__icon"
|
|
6153
6909
|
}, {
|
|
@@ -6164,7 +6920,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6164
6920
|
"aria-label": "close",
|
|
6165
6921
|
onClick: close
|
|
6166
6922
|
}, [
|
|
6167
|
-
createVNode(FIcon$
|
|
6923
|
+
createVNode(FIcon$5, null, {
|
|
6168
6924
|
default: withCtx(() => [
|
|
6169
6925
|
createVNode(unref(Close))
|
|
6170
6926
|
]),
|
|
@@ -6178,7 +6934,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6178
6934
|
};
|
|
6179
6935
|
}
|
|
6180
6936
|
});
|
|
6181
|
-
const FMessageComp = /* @__PURE__ */ _export_sfc$
|
|
6937
|
+
const FMessageComp = /* @__PURE__ */ _export_sfc$5(_sfc_main$2, [["__scopeId", "data-v-97556afa"]]);
|
|
6182
6938
|
const GAP$1 = 16;
|
|
6183
6939
|
const BASE_OFFSET$1 = 20;
|
|
6184
6940
|
let seed$1 = 0;
|
|
@@ -6334,7 +7090,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6334
7090
|
onMouseleave: startTimer,
|
|
6335
7091
|
onClick: handleClick
|
|
6336
7092
|
}, [
|
|
6337
|
-
_ctx.showIcon ? (openBlock(), createBlock(FIcon$
|
|
7093
|
+
_ctx.showIcon ? (openBlock(), createBlock(FIcon$5, {
|
|
6338
7094
|
key: 0,
|
|
6339
7095
|
class: "f-notification__icon"
|
|
6340
7096
|
}, {
|
|
@@ -6354,7 +7110,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6354
7110
|
"aria-label": "close",
|
|
6355
7111
|
onClick: withModifiers(close, ["stop"])
|
|
6356
7112
|
}, [
|
|
6357
|
-
createVNode(FIcon$
|
|
7113
|
+
createVNode(FIcon$5, null, {
|
|
6358
7114
|
default: withCtx(() => [
|
|
6359
7115
|
createVNode(unref(Close))
|
|
6360
7116
|
]),
|
|
@@ -6368,7 +7124,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
6368
7124
|
};
|
|
6369
7125
|
}
|
|
6370
7126
|
});
|
|
6371
|
-
const FNotificationComp = /* @__PURE__ */ _export_sfc$
|
|
7127
|
+
const FNotificationComp = /* @__PURE__ */ _export_sfc$5(_sfc_main$1, [["__scopeId", "data-v-0a7315d6"]]);
|
|
6372
7128
|
const GAP = 16;
|
|
6373
7129
|
const BASE_OFFSET = 20;
|
|
6374
7130
|
let seed = 0;
|
|
@@ -6570,7 +7326,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6570
7326
|
class: "f-dialog__close",
|
|
6571
7327
|
onClick: handleClose
|
|
6572
7328
|
}, [
|
|
6573
|
-
createVNode(FIcon$
|
|
7329
|
+
createVNode(FIcon$5, null, {
|
|
6574
7330
|
default: withCtx(() => [
|
|
6575
7331
|
createVNode(unref(CloseOutline))
|
|
6576
7332
|
]),
|
|
@@ -6583,7 +7339,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6583
7339
|
}, [
|
|
6584
7340
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
6585
7341
|
unref(hasIcon) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
6586
|
-
createVNode(FIcon$
|
|
7342
|
+
createVNode(FIcon$5, null, {
|
|
6587
7343
|
default: withCtx(() => [
|
|
6588
7344
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
6589
7345
|
]),
|
|
@@ -6632,7 +7388,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
6632
7388
|
};
|
|
6633
7389
|
}
|
|
6634
7390
|
});
|
|
6635
|
-
const FDialogComp = /* @__PURE__ */ _export_sfc$
|
|
7391
|
+
const FDialogComp = /* @__PURE__ */ _export_sfc$5(_sfc_main, [["__scopeId", "data-v-991352de"]]);
|
|
6636
7392
|
const showDialog = (options) => {
|
|
6637
7393
|
return new Promise((resolve) => {
|
|
6638
7394
|
const container = document.createElement("div");
|
|
@@ -6736,7 +7492,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
6736
7492
|
FEmpty: _sfc_main$7,
|
|
6737
7493
|
FForm,
|
|
6738
7494
|
FFormItem,
|
|
6739
|
-
FIcon: FIcon$
|
|
7495
|
+
FIcon: FIcon$5,
|
|
6740
7496
|
FImage,
|
|
6741
7497
|
FInput,
|
|
6742
7498
|
FInputNumber,
|
|
@@ -6788,7 +7544,7 @@ export {
|
|
|
6788
7544
|
_sfc_main$7 as FEmpty,
|
|
6789
7545
|
FForm,
|
|
6790
7546
|
FFormItem,
|
|
6791
|
-
FIcon$
|
|
7547
|
+
FIcon$5 as FIcon,
|
|
6792
7548
|
FImage,
|
|
6793
7549
|
FInput,
|
|
6794
7550
|
FInputNumber,
|