fantasia-ui 0.2.21 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fantasia-ui.css +82 -64
- package/dist/fantasia-ui.es.js +987 -193
- package/dist/fantasia-ui.umd.js +986 -192
- package/dist/index.d.ts +8 -0
- package/dist/types/components/modules/FButton.vue.d.ts +5 -2
- package/dist/types/components/modules/FButtonGroup.vue.d.ts +0 -1
- package/dist/types/types/components/modules/f-button.d.ts +1 -0
- package/package.json +2 -2
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -37,10 +37,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, readonly, vModelDynamic, createBlock, nextTick, onUnmounted, Teleport, withModifiers, resolveDynamicComponent, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, inject, provide, onMounted, onBeforeUnmount,
|
|
40
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, readonly, vModelDynamic, createBlock, nextTick, onUnmounted, Teleport, withModifiers, resolveDynamicComponent, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, inject, provide, onMounted, onBeforeUnmount, reactive, toRefs, createStaticVNode } from "vue";
|
|
41
41
|
import { Search, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, DocumentOutline, InformationCircle, AlertCircle, CheckmarkCircle } from "@vicons/ionicons5";
|
|
42
42
|
import { useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -64,20 +64,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
const _export_sfc = (sfc, props) => {
|
|
67
|
+
const _export_sfc$1 = (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 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
+
const FIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__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$D = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$x = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
@@ -94,7 +94,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
return openBlock(), createElementBlock("div", {
|
|
95
95
|
class: normalizeClass(["flex-center-col size-full loading-container", { "global-mask": _ctx.mask }])
|
|
96
96
|
}, [
|
|
97
|
-
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
97
|
+
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
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$F = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
key: 1,
|
|
106
106
|
class: normalizeClass(["loader", _ctx.type])
|
|
107
107
|
}, null, 2)),
|
|
108
|
-
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
108
|
+
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$x, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
113
|
+
const FLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
+
const _hoisted_1$C = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$w = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$t = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
123
|
-
const _hoisted_4$
|
|
123
|
+
const _hoisted_4$c = ["src", "loading"];
|
|
124
124
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
@@ -138,10 +138,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
const onLoad = () => status.value = "loaded";
|
|
139
139
|
const onError = () => status.value = "error";
|
|
140
140
|
return (_ctx, _cache) => {
|
|
141
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
141
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
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$w, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,9 +149,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
}),
|
|
150
150
|
createVNode(Transition, { name: "fade" }, {
|
|
151
151
|
default: withCtx(() => [
|
|
152
|
-
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
152
|
+
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
|
-
createVNode(FIcon, { size: "48px" }, {
|
|
154
|
+
createVNode(FIcon$1, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
156
156
|
createVNode(unref(PictureError))
|
|
157
157
|
]),
|
|
@@ -169,15 +169,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
class: "f-image__img",
|
|
170
170
|
onLoad,
|
|
171
171
|
onError
|
|
172
|
-
}, null, 44, _hoisted_4$
|
|
172
|
+
}, null, 44, _hoisted_4$c), [
|
|
173
173
|
[vShow, unref(status) === "loaded"]
|
|
174
174
|
])
|
|
175
175
|
]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
-
const _hoisted_1$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
+
const _hoisted_1$B = ["type", "placeholder", "disabled", "readonly", "name", "id"];
|
|
181
181
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
182
182
|
__name: "FInput",
|
|
183
183
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -213,7 +213,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
213
213
|
return openBlock(), createElementBlock("div", {
|
|
214
214
|
class: normalizeClass(["f-input", { "is-disabled": _ctx.disabled, "is-readonly": "readonly" in _ctx ? _ctx.readonly : unref(readonly) }])
|
|
215
215
|
}, [
|
|
216
|
-
createVNode(FIcon, { class: "f-input__icon" }, {
|
|
216
|
+
createVNode(FIcon$1, { class: "f-input__icon" }, {
|
|
217
217
|
default: withCtx(() => [
|
|
218
218
|
createVNode(unref(Search))
|
|
219
219
|
]),
|
|
@@ -232,16 +232,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
onChange: handleChange,
|
|
233
233
|
onFocus: handleFocus,
|
|
234
234
|
onBlur: handleBlur
|
|
235
|
-
}, null, 40, _hoisted_1$
|
|
235
|
+
}, null, 40, _hoisted_1$B), [
|
|
236
236
|
[vModelDynamic, model.value]
|
|
237
237
|
])
|
|
238
238
|
], 2);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
|
-
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
-
const _hoisted_1$
|
|
244
|
-
const _hoisted_2$
|
|
242
|
+
const FInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
+
const _hoisted_1$A = ["onMousemove"];
|
|
244
|
+
const _hoisted_2$v = {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: "f-rate__score"
|
|
247
247
|
};
|
|
@@ -319,7 +319,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
319
319
|
onMousemove: ($event) => onMouseMove($event, index),
|
|
320
320
|
onClick
|
|
321
321
|
}, [
|
|
322
|
-
createVNode(FIcon, {
|
|
322
|
+
createVNode(FIcon$1, {
|
|
323
323
|
color: getStarColor(index),
|
|
324
324
|
size: unref(starSize)
|
|
325
325
|
}, {
|
|
@@ -328,22 +328,22 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
]),
|
|
329
329
|
_: 2
|
|
330
330
|
}, 1032, ["color", "size"])
|
|
331
|
-
], 40, _hoisted_1$
|
|
331
|
+
], 40, _hoisted_1$A);
|
|
332
332
|
}), 128)),
|
|
333
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
333
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$v, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
334
334
|
], 34);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
339
|
-
const _hoisted_1$
|
|
340
|
-
const _hoisted_2$
|
|
341
|
-
const _hoisted_3$
|
|
342
|
-
const _hoisted_4$
|
|
338
|
+
const FRate = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
339
|
+
const _hoisted_1$z = { class: "f-dropdown-wrapper" };
|
|
340
|
+
const _hoisted_2$u = { class: "f-dropdown-content" };
|
|
341
|
+
const _hoisted_3$s = ["onClick"];
|
|
342
|
+
const _hoisted_4$b = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "opt-icon"
|
|
345
345
|
};
|
|
346
|
-
const _hoisted_5$
|
|
346
|
+
const _hoisted_5$a = { class: "opt-label" };
|
|
347
347
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
348
348
|
__name: "FDropdown",
|
|
349
349
|
props: {
|
|
@@ -513,7 +513,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
513
513
|
});
|
|
514
514
|
useEventListener(window, "click", handleWindowClick);
|
|
515
515
|
return (_ctx, _cache) => {
|
|
516
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
517
517
|
createElementVNode("div", {
|
|
518
518
|
ref_key: "triggerRef",
|
|
519
519
|
ref: triggerRef,
|
|
@@ -543,18 +543,18 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
543
543
|
class: "f-dropdown-bridge",
|
|
544
544
|
style: normalizeStyle(unref(bridgeStyle))
|
|
545
545
|
}, null, 4)) : createCommentVNode("", true),
|
|
546
|
-
createElementVNode("div", _hoisted_2$
|
|
546
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
547
547
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
548
548
|
return openBlock(), createElementBlock("div", {
|
|
549
549
|
key: opt.key,
|
|
550
550
|
class: normalizeClass(["f-dropdown-option", { "is-disabled": opt.disabled }]),
|
|
551
551
|
onClick: ($event) => handleOptionClick(opt)
|
|
552
552
|
}, [
|
|
553
|
-
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
553
|
+
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_4$b, [
|
|
554
554
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
555
555
|
])) : createCommentVNode("", true),
|
|
556
|
-
createElementVNode("span", _hoisted_5$
|
|
557
|
-
], 10, _hoisted_3$
|
|
556
|
+
createElementVNode("span", _hoisted_5$a, toDisplayString(opt.label), 1)
|
|
557
|
+
], 10, _hoisted_3$s);
|
|
558
558
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
559
559
|
])
|
|
560
560
|
], 36)) : createCommentVNode("", true)
|
|
@@ -566,7 +566,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
|
-
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-addb3a3b"]]);
|
|
569
|
+
const FDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-addb3a3b"]]);
|
|
570
570
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
571
571
|
__name: "FSelect",
|
|
572
572
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -614,7 +614,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
614
614
|
createElementVNode("span", {
|
|
615
615
|
class: normalizeClass(["f-select__label", { "is-placeholder": !unref(hasValue) }])
|
|
616
616
|
}, toDisplayString(unref(selectedLabel)), 3),
|
|
617
|
-
createVNode(FIcon, { class: "f-select__arrow" }, {
|
|
617
|
+
createVNode(FIcon$1, { class: "f-select__arrow" }, {
|
|
618
618
|
default: withCtx(() => [
|
|
619
619
|
createVNode(unref(ChevronDownOutline))
|
|
620
620
|
]),
|
|
@@ -627,21 +627,21 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
-
const _hoisted_1$
|
|
630
|
+
const FSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
+
const _hoisted_1$y = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "f-pagination"
|
|
634
634
|
};
|
|
635
|
-
const _hoisted_2$
|
|
635
|
+
const _hoisted_2$t = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "f-pagination__total"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_3$
|
|
639
|
+
const _hoisted_3$r = {
|
|
640
640
|
key: 1,
|
|
641
641
|
class: "f-pagination__size"
|
|
642
642
|
};
|
|
643
|
-
const _hoisted_4$
|
|
644
|
-
const _hoisted_5$
|
|
643
|
+
const _hoisted_4$a = ["value"];
|
|
644
|
+
const _hoisted_5$9 = ["value"];
|
|
645
645
|
const _hoisted_6$7 = {
|
|
646
646
|
key: 3,
|
|
647
647
|
class: "f-pagination__list"
|
|
@@ -705,10 +705,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
705
705
|
jumpInput.value = "";
|
|
706
706
|
};
|
|
707
707
|
return (_ctx, _cache) => {
|
|
708
|
-
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
708
|
+
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
709
709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
|
|
710
710
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
711
|
-
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
711
|
+
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$t, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
712
712
|
createElementVNode("select", {
|
|
713
713
|
class: "size-select",
|
|
714
714
|
value: _ctx.pageSize,
|
|
@@ -718,15 +718,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
718
718
|
return openBlock(), createElementBlock("option", {
|
|
719
719
|
key: s,
|
|
720
720
|
value: s
|
|
721
|
-
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$
|
|
721
|
+
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$9);
|
|
722
722
|
}), 128))
|
|
723
|
-
], 40, _hoisted_4$
|
|
723
|
+
], 40, _hoisted_4$a)
|
|
724
724
|
])) : item === "prev" ? (openBlock(), createElementBlock("button", {
|
|
725
725
|
key: 2,
|
|
726
726
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === 1 }]),
|
|
727
727
|
onClick: _cache[0] || (_cache[0] = ($event) => go(currentPage.value - 1))
|
|
728
728
|
}, [
|
|
729
|
-
createVNode(FIcon, null, {
|
|
729
|
+
createVNode(FIcon$1, null, {
|
|
730
730
|
default: withCtx(() => [
|
|
731
731
|
createVNode(unref(ChevronBackOutline))
|
|
732
732
|
]),
|
|
@@ -736,7 +736,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
736
736
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pages), (page, index) => {
|
|
737
737
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
738
738
|
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
|
|
739
|
-
createVNode(FIcon, null, {
|
|
739
|
+
createVNode(FIcon$1, null, {
|
|
740
740
|
default: withCtx(() => [
|
|
741
741
|
createVNode(unref(EllipsisHorizontal))
|
|
742
742
|
]),
|
|
@@ -754,7 +754,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
754
754
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === unref(pageCount) }]),
|
|
755
755
|
onClick: _cache[1] || (_cache[1] = ($event) => go(currentPage.value + 1))
|
|
756
756
|
}, [
|
|
757
|
-
createVNode(FIcon, null, {
|
|
757
|
+
createVNode(FIcon$1, null, {
|
|
758
758
|
default: withCtx(() => [
|
|
759
759
|
createVNode(unref(ChevronForwardOutline))
|
|
760
760
|
]),
|
|
@@ -781,24 +781,24 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
|
-
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
-
const _hoisted_1$
|
|
784
|
+
const FPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
+
const _hoisted_1$x = {
|
|
786
786
|
key: 0,
|
|
787
787
|
class: "f-card__header"
|
|
788
788
|
};
|
|
789
|
-
const _hoisted_2$
|
|
789
|
+
const _hoisted_2$s = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "f-card__header-extra"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$q = {
|
|
794
794
|
key: 1,
|
|
795
795
|
class: "f-card__cover"
|
|
796
796
|
};
|
|
797
|
-
const _hoisted_4$
|
|
797
|
+
const _hoisted_4$9 = {
|
|
798
798
|
key: 2,
|
|
799
799
|
class: "f-card__body"
|
|
800
800
|
};
|
|
801
|
-
const _hoisted_5$
|
|
801
|
+
const _hoisted_5$8 = {
|
|
802
802
|
key: 3,
|
|
803
803
|
class: "f-card__footer"
|
|
804
804
|
};
|
|
@@ -835,19 +835,19 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
835
835
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
836
836
|
}, [
|
|
837
837
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
838
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
838
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
839
839
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
840
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
840
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
|
|
841
841
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
842
842
|
])) : createCommentVNode("", true)
|
|
843
843
|
])) : createCommentVNode("", true),
|
|
844
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
844
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
845
845
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
846
846
|
])) : createCommentVNode("", true),
|
|
847
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
847
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
848
848
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
849
849
|
])) : createCommentVNode("", true),
|
|
850
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
850
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
851
851
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
852
852
|
])) : createCommentVNode("", true)
|
|
853
853
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -873,8 +873,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
-
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
-
const _hoisted_1$
|
|
876
|
+
const FCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
+
const _hoisted_1$w = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "f-tag__dot"
|
|
880
880
|
};
|
|
@@ -902,9 +902,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
902
902
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
903
903
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
904
904
|
}, [
|
|
905
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
905
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$w)) : createCommentVNode("", true),
|
|
906
906
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
907
|
-
_ctx.closable ? (openBlock(), createBlock(FIcon, {
|
|
907
|
+
_ctx.closable ? (openBlock(), createBlock(FIcon$1, {
|
|
908
908
|
key: 1,
|
|
909
909
|
class: "f-tag__close",
|
|
910
910
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emit("close"), ["stop"]))
|
|
@@ -918,7 +918,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
|
-
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-02bd5aa6"]]);
|
|
921
|
+
const FTag = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-02bd5aa6"]]);
|
|
922
922
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
923
923
|
__name: "FTooltip",
|
|
924
924
|
props: {
|
|
@@ -1023,9 +1023,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
|
-
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
-
const _hoisted_1$
|
|
1028
|
-
const _hoisted_2$
|
|
1026
|
+
const FTooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
+
const _hoisted_1$v = { class: "f-progress" };
|
|
1028
|
+
const _hoisted_2$r = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
class: "f-progress__text"
|
|
1031
1031
|
};
|
|
@@ -1041,7 +1041,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1041
1041
|
const props = __props;
|
|
1042
1042
|
const clampedPercent = computed(() => Math.min(100, Math.max(0, props.percent)));
|
|
1043
1043
|
return (_ctx, _cache) => {
|
|
1044
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1044
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
1045
1045
|
createElementVNode("div", {
|
|
1046
1046
|
class: "f-progress__track",
|
|
1047
1047
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -1054,16 +1054,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1054
1054
|
})
|
|
1055
1055
|
}, null, 4)
|
|
1056
1056
|
], 4),
|
|
1057
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1057
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$r, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1058
1058
|
]);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1063
|
-
const _hoisted_1$
|
|
1064
|
-
const _hoisted_2$
|
|
1065
|
-
const _hoisted_3$
|
|
1066
|
-
const _hoisted_4$
|
|
1062
|
+
const FProgress = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1063
|
+
const _hoisted_1$u = { class: "f-tabs__nav-container" };
|
|
1064
|
+
const _hoisted_2$q = { class: "f-tabs__nav" };
|
|
1065
|
+
const _hoisted_3$p = ["onClick"];
|
|
1066
|
+
const _hoisted_4$8 = { class: "f-tabs__label" };
|
|
1067
1067
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1068
1068
|
__name: "FTabs",
|
|
1069
1069
|
props: {
|
|
@@ -1097,8 +1097,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1097
1097
|
return openBlock(), createElementBlock("div", {
|
|
1098
1098
|
class: normalizeClass(["f-tabs", [`f-tabs--${_ctx.type}`]])
|
|
1099
1099
|
}, [
|
|
1100
|
-
createElementVNode("div", _hoisted_1$
|
|
1101
|
-
createElementVNode("div", _hoisted_2$
|
|
1100
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
1101
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
1102
1102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1103
1103
|
return openBlock(), createElementBlock("div", {
|
|
1104
1104
|
key: tab.name,
|
|
@@ -1108,8 +1108,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1108
1108
|
}]),
|
|
1109
1109
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1110
1110
|
}, [
|
|
1111
|
-
createElementVNode("span", _hoisted_4$
|
|
1112
|
-
], 10, _hoisted_3$
|
|
1111
|
+
createElementVNode("span", _hoisted_4$8, toDisplayString(tab.label), 1)
|
|
1112
|
+
], 10, _hoisted_3$p);
|
|
1113
1113
|
}), 128))
|
|
1114
1114
|
])
|
|
1115
1115
|
]),
|
|
@@ -1127,13 +1127,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
|
-
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
-
const _hoisted_1$
|
|
1130
|
+
const FTabs = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
+
const _hoisted_1$t = {
|
|
1132
1132
|
class: "f-breadcrumb__current",
|
|
1133
1133
|
"aria-current": "page"
|
|
1134
1134
|
};
|
|
1135
|
-
const _hoisted_2$
|
|
1136
|
-
const _hoisted_3$
|
|
1135
|
+
const _hoisted_2$p = ["href"];
|
|
1136
|
+
const _hoisted_3$o = {
|
|
1137
1137
|
key: 3,
|
|
1138
1138
|
class: "f-breadcrumb__text"
|
|
1139
1139
|
};
|
|
@@ -1165,12 +1165,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
item
|
|
1167
1167
|
}, () => [
|
|
1168
|
-
createElementVNode("span", _hoisted_1$
|
|
1168
|
+
createElementVNode("span", _hoisted_1$t, toDisplayString(item.label), 1)
|
|
1169
1169
|
], true) : item.href ? (openBlock(), createElementBlock("a", {
|
|
1170
1170
|
key: 2,
|
|
1171
1171
|
href: item.href,
|
|
1172
1172
|
class: "f-breadcrumb__link"
|
|
1173
|
-
}, toDisplayString(item.label), 9, _hoisted_2$
|
|
1173
|
+
}, toDisplayString(item.label), 9, _hoisted_2$p)) : (openBlock(), createElementBlock("span", _hoisted_3$o, toDisplayString(item.label), 1))
|
|
1174
1174
|
], 64);
|
|
1175
1175
|
}), 128))
|
|
1176
1176
|
]),
|
|
@@ -1180,7 +1180,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-bb787dcc"]]);
|
|
1183
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-bb787dcc"]]);
|
|
1184
1184
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1185
1185
|
__name: "FCol",
|
|
1186
1186
|
props: {
|
|
@@ -1222,7 +1222,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
|
-
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-5a8b0cb4"]]);
|
|
1225
|
+
const FCol = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["__scopeId", "data-v-5a8b0cb4"]]);
|
|
1226
1226
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1227
1227
|
__name: "FRow",
|
|
1228
1228
|
props: {
|
|
@@ -1276,9 +1276,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
|
-
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
-
const _hoisted_1$
|
|
1281
|
-
const _hoisted_2$
|
|
1279
|
+
const FRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
+
const _hoisted_1$s = { class: "f-space__item" };
|
|
1281
|
+
const _hoisted_2$o = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
class: "f-space__split",
|
|
1284
1284
|
"aria-hidden": "true"
|
|
@@ -1337,17 +1337,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1337
1337
|
}, [
|
|
1338
1338
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (child, index) => {
|
|
1339
1339
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
1340
|
-
createElementVNode("div", _hoisted_1$
|
|
1340
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
1341
1341
|
(openBlock(), createBlock(resolveDynamicComponent(child)))
|
|
1342
1342
|
]),
|
|
1343
|
-
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1343
|
+
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$o, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
1344
1344
|
], 64);
|
|
1345
1345
|
}), 128))
|
|
1346
1346
|
], 4);
|
|
1347
1347
|
};
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
1350
|
-
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-5fb3b1a0"]]);
|
|
1350
|
+
const FSpace = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-5fb3b1a0"]]);
|
|
1351
1351
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1352
1352
|
__name: "FContainer",
|
|
1353
1353
|
props: {
|
|
@@ -1368,7 +1368,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
|
-
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-08450ddf"]]);
|
|
1371
|
+
const FContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["__scopeId", "data-v-08450ddf"]]);
|
|
1372
1372
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1373
1373
|
__name: "FDivider",
|
|
1374
1374
|
props: {
|
|
@@ -1396,8 +1396,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
|
-
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
-
const _hoisted_1$
|
|
1399
|
+
const FDivider = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
+
const _hoisted_1$r = ["src", "alt"];
|
|
1401
1401
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1402
1402
|
__name: "FAvatar",
|
|
1403
1403
|
props: {
|
|
@@ -1430,7 +1430,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1430
1430
|
key: 0,
|
|
1431
1431
|
src: _ctx.src,
|
|
1432
1432
|
alt: _ctx.alt
|
|
1433
|
-
}, null, 8, _hoisted_1$
|
|
1433
|
+
}, null, 8, _hoisted_1$r)) : (openBlock(), createBlock(FIcon$1, {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
size: 24
|
|
1436
1436
|
}, {
|
|
@@ -1443,14 +1443,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
-
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
-
const _hoisted_1$
|
|
1448
|
-
const _hoisted_2$
|
|
1446
|
+
const FAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
+
const _hoisted_1$q = ["type", "disabled"];
|
|
1448
|
+
const _hoisted_2$n = { class: "f-button__inner" };
|
|
1449
|
+
const _hoisted_3$n = {
|
|
1449
1450
|
key: 0,
|
|
1450
1451
|
class: "f-loader"
|
|
1451
1452
|
};
|
|
1452
|
-
const
|
|
1453
|
+
const _hoisted_4$7 = {
|
|
1453
1454
|
key: 2,
|
|
1455
|
+
class: "f-icon"
|
|
1456
|
+
};
|
|
1457
|
+
const _hoisted_5$7 = {
|
|
1458
|
+
key: 3,
|
|
1454
1459
|
class: "f-button__content"
|
|
1455
1460
|
};
|
|
1456
1461
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
@@ -1466,14 +1471,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1466
1471
|
plain: { type: Boolean },
|
|
1467
1472
|
block: { type: Boolean },
|
|
1468
1473
|
icon: {},
|
|
1474
|
+
active: { type: Boolean, default: false },
|
|
1469
1475
|
bgColor: {},
|
|
1470
1476
|
color: {}
|
|
1471
1477
|
},
|
|
1472
1478
|
setup(__props) {
|
|
1473
1479
|
const SIZE_MAP = {
|
|
1474
1480
|
small: { h: "24px", p: "0 8px", f: "12px" },
|
|
1475
|
-
normal: { h: "32px", p: "0
|
|
1476
|
-
large: { h: "40px", p: "0 20px", f: "
|
|
1481
|
+
normal: { h: "32px", p: "0 12px", f: "13px" },
|
|
1482
|
+
large: { h: "40px", p: "0 20px", f: "14px" }
|
|
1477
1483
|
};
|
|
1478
1484
|
const props = __props;
|
|
1479
1485
|
const groupContext = inject("FButtonGroupContext", null);
|
|
@@ -1492,7 +1498,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1492
1498
|
height: s.h,
|
|
1493
1499
|
padding: props.circle ? "0" : s.p,
|
|
1494
1500
|
fontSize: s.f,
|
|
1495
|
-
minWidth: s.h,
|
|
1501
|
+
minWidth: props.circle ? s.h : "auto",
|
|
1496
1502
|
backgroundColor: props.bgColor,
|
|
1497
1503
|
color: props.color
|
|
1498
1504
|
};
|
|
@@ -1516,24 +1522,29 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1516
1522
|
"is-disabled": unref(isDisabled),
|
|
1517
1523
|
"is-loading": _ctx.loading,
|
|
1518
1524
|
"is-plain": _ctx.plain,
|
|
1519
|
-
"is-block": _ctx.block
|
|
1525
|
+
"is-block": _ctx.block,
|
|
1526
|
+
"is-active": _ctx.active
|
|
1520
1527
|
}
|
|
1521
1528
|
]]),
|
|
1522
1529
|
disabled: unref(isDisabled),
|
|
1523
1530
|
style: normalizeStyle(unref(buttonStyle))
|
|
1524
1531
|
}, [
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1532
|
+
createElementVNode("span", _hoisted_2$n, [
|
|
1533
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$n)) : _ctx.icon ? (openBlock(), createElementBlock("i", {
|
|
1534
|
+
key: 1,
|
|
1535
|
+
class: normalizeClass(["f-icon", _ctx.icon])
|
|
1536
|
+
}, null, 2)) : _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
|
|
1537
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
1538
|
+
])) : createCommentVNode("", true),
|
|
1539
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_5$7, [
|
|
1540
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1541
|
+
])) : createCommentVNode("", true)
|
|
1542
|
+
])
|
|
1543
|
+
], 14, _hoisted_1$q);
|
|
1533
1544
|
};
|
|
1534
1545
|
}
|
|
1535
1546
|
});
|
|
1536
|
-
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
1547
|
+
const FButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__scopeId", "data-v-17d0ecc9"]]);
|
|
1537
1548
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1538
1549
|
__name: "FTypography",
|
|
1539
1550
|
props: {
|
|
@@ -1556,7 +1567,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1556
1567
|
};
|
|
1557
1568
|
}
|
|
1558
1569
|
});
|
|
1559
|
-
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-50e044db"]]);
|
|
1570
|
+
const FTypography = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__scopeId", "data-v-50e044db"]]);
|
|
1560
1571
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1561
1572
|
__name: "FText",
|
|
1562
1573
|
props: {
|
|
@@ -1615,8 +1626,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1615
1626
|
};
|
|
1616
1627
|
}
|
|
1617
1628
|
});
|
|
1618
|
-
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1619
|
-
const _hoisted_1$
|
|
1629
|
+
const FText = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1630
|
+
const _hoisted_1$p = ["href", "target", "rel"];
|
|
1620
1631
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1621
1632
|
__name: "FLink",
|
|
1622
1633
|
props: {
|
|
@@ -1640,12 +1651,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1640
1651
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1641
1652
|
}, [
|
|
1642
1653
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1643
|
-
], 10, _hoisted_1$
|
|
1654
|
+
], 10, _hoisted_1$p);
|
|
1644
1655
|
};
|
|
1645
1656
|
}
|
|
1646
1657
|
});
|
|
1647
|
-
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1648
|
-
const _hoisted_1$
|
|
1658
|
+
const FLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1659
|
+
const _hoisted_1$o = { class: "f-badge" };
|
|
1649
1660
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1650
1661
|
__name: "FBadge",
|
|
1651
1662
|
props: {
|
|
@@ -1675,7 +1686,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1675
1686
|
return map[props.placement];
|
|
1676
1687
|
});
|
|
1677
1688
|
return (_ctx, _cache) => {
|
|
1678
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1689
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1679
1690
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1680
1691
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1681
1692
|
key: 0,
|
|
@@ -1686,7 +1697,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1686
1697
|
};
|
|
1687
1698
|
}
|
|
1688
1699
|
});
|
|
1689
|
-
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-be6947ff"]]);
|
|
1700
|
+
const FBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-be6947ff"]]);
|
|
1690
1701
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1691
1702
|
__name: "FAffix",
|
|
1692
1703
|
props: {
|
|
@@ -1715,7 +1726,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1715
1726
|
};
|
|
1716
1727
|
}
|
|
1717
1728
|
});
|
|
1718
|
-
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8506d679"]]);
|
|
1729
|
+
const FAffix = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__scopeId", "data-v-8506d679"]]);
|
|
1719
1730
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1720
1731
|
__name: "FForm",
|
|
1721
1732
|
props: {
|
|
@@ -1773,7 +1784,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1773
1784
|
};
|
|
1774
1785
|
}
|
|
1775
1786
|
});
|
|
1776
|
-
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-21f7de9b"]]);
|
|
1787
|
+
const FForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-21f7de9b"]]);
|
|
1777
1788
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
1778
1789
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
1779
1790
|
for (let rule of ruleArray) {
|
|
@@ -1855,12 +1866,12 @@ const checkRange = (value, rule) => {
|
|
|
1855
1866
|
}
|
|
1856
1867
|
return void 0;
|
|
1857
1868
|
};
|
|
1858
|
-
const _hoisted_1$
|
|
1869
|
+
const _hoisted_1$n = {
|
|
1859
1870
|
key: 0,
|
|
1860
1871
|
class: "star"
|
|
1861
1872
|
};
|
|
1862
|
-
const _hoisted_2$
|
|
1863
|
-
const _hoisted_3$
|
|
1873
|
+
const _hoisted_2$m = { class: "f-form-item__content" };
|
|
1874
|
+
const _hoisted_3$m = {
|
|
1864
1875
|
key: 0,
|
|
1865
1876
|
class: "f-form-item__error"
|
|
1866
1877
|
};
|
|
@@ -1930,14 +1941,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1930
1941
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
1931
1942
|
})
|
|
1932
1943
|
}, [
|
|
1933
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1944
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$n, "*")) : createCommentVNode("", true),
|
|
1934
1945
|
createTextVNode(" " + toDisplayString(_ctx.label) + ": ", 1)
|
|
1935
1946
|
], 4)) : createCommentVNode("", true),
|
|
1936
|
-
createElementVNode("div", _hoisted_2$
|
|
1947
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
1937
1948
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1938
1949
|
createVNode(Transition, { name: "err-slide" }, {
|
|
1939
1950
|
default: withCtx(() => [
|
|
1940
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1951
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$m, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
1941
1952
|
]),
|
|
1942
1953
|
_: 1
|
|
1943
1954
|
})
|
|
@@ -1946,10 +1957,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1946
1957
|
};
|
|
1947
1958
|
}
|
|
1948
1959
|
});
|
|
1949
|
-
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
1950
|
-
const _hoisted_1$
|
|
1951
|
-
const _hoisted_2$
|
|
1952
|
-
const _hoisted_3$
|
|
1960
|
+
const FFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
1961
|
+
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
1962
|
+
const _hoisted_2$l = ["checked", "disabled"];
|
|
1963
|
+
const _hoisted_3$l = {
|
|
1953
1964
|
key: 0,
|
|
1954
1965
|
class: "f-checkbox__label"
|
|
1955
1966
|
};
|
|
@@ -1975,21 +1986,21 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1975
1986
|
return openBlock(), createElementBlock("label", {
|
|
1976
1987
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
1977
1988
|
}, [
|
|
1978
|
-
createElementVNode("span", _hoisted_1$
|
|
1989
|
+
createElementVNode("span", _hoisted_1$m, [
|
|
1979
1990
|
createElementVNode("input", {
|
|
1980
1991
|
type: "checkbox",
|
|
1981
1992
|
checked: modelValue.value,
|
|
1982
1993
|
disabled: _ctx.disabled,
|
|
1983
1994
|
onChange: handleChange
|
|
1984
|
-
}, null, 40, _hoisted_2$
|
|
1995
|
+
}, null, 40, _hoisted_2$l),
|
|
1985
1996
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
1986
1997
|
]),
|
|
1987
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1998
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
1988
1999
|
], 2);
|
|
1989
2000
|
};
|
|
1990
2001
|
}
|
|
1991
2002
|
});
|
|
1992
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-633b283a"]]);
|
|
2003
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-633b283a"]]);
|
|
1993
2004
|
const _hoisted_1$b = { class: "alert__body" };
|
|
1994
2005
|
const _hoisted_2$a = { class: "alert__title" };
|
|
1995
2006
|
const _hoisted_3$a = { class: "alert__content" };
|
|
@@ -2013,7 +2024,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2013
2024
|
return openBlock(), createElementBlock("div", {
|
|
2014
2025
|
class: normalizeClass(["alert", `alert--${_ctx.type}`])
|
|
2015
2026
|
}, [
|
|
2016
|
-
createVNode(FIcon, { class: "alert__icon" }, {
|
|
2027
|
+
createVNode(FIcon$1, { class: "alert__icon" }, {
|
|
2017
2028
|
default: withCtx(() => [
|
|
2018
2029
|
(openBlock(), createBlock(resolveDynamicComponent(unref(config).icon)))
|
|
2019
2030
|
]),
|
|
@@ -2031,7 +2042,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2031
2042
|
};
|
|
2032
2043
|
}
|
|
2033
2044
|
});
|
|
2034
|
-
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f16678ef"]]);
|
|
2045
|
+
const FAlert = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-f16678ef"]]);
|
|
2035
2046
|
const _hoisted_1$9 = { class: "f-editor__toolbar" };
|
|
2036
2047
|
const _hoisted_2$8 = { class: "f-editor__status" };
|
|
2037
2048
|
const _hoisted_3$8 = { class: "f-editor__lines" };
|
|
@@ -2293,7 +2304,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2293
2304
|
};
|
|
2294
2305
|
}
|
|
2295
2306
|
});
|
|
2296
|
-
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-6d590649"]]);
|
|
2307
|
+
const FEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-6d590649"]]);
|
|
2297
2308
|
const _hoisted_1$8 = { class: "f-table" };
|
|
2298
2309
|
const _hoisted_2$7 = {
|
|
2299
2310
|
key: 0,
|
|
@@ -2498,7 +2509,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2498
2509
|
};
|
|
2499
2510
|
}
|
|
2500
2511
|
});
|
|
2501
|
-
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-22daf8be"]]);
|
|
2512
|
+
const FTable = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-22daf8be"]]);
|
|
2502
2513
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2503
2514
|
__name: "FDialog",
|
|
2504
2515
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2554,7 +2565,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2554
2565
|
};
|
|
2555
2566
|
}
|
|
2556
2567
|
});
|
|
2557
|
-
const FDialog = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-31496822"]]);
|
|
2568
|
+
const FDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["__scopeId", "data-v-31496822"]]);
|
|
2558
2569
|
const _hoisted_1$7 = { class: "f-upload" };
|
|
2559
2570
|
const _hoisted_2$6 = { class: "f-upload__label" };
|
|
2560
2571
|
const _hoisted_3$6 = ["accept"];
|
|
@@ -2630,7 +2641,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2630
2641
|
onChange: onFileChange
|
|
2631
2642
|
}, null, 40, _hoisted_3$6),
|
|
2632
2643
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2633
|
-
createVNode(FIcon, { size: 40 }, {
|
|
2644
|
+
createVNode(FIcon$1, { size: 40 }, {
|
|
2634
2645
|
default: withCtx(() => [
|
|
2635
2646
|
createVNode(unref(CloudUpload))
|
|
2636
2647
|
]),
|
|
@@ -2642,7 +2653,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2642
2653
|
])
|
|
2643
2654
|
], 34),
|
|
2644
2655
|
file.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
2645
|
-
createVNode(FIcon, null, {
|
|
2656
|
+
createVNode(FIcon$1, null, {
|
|
2646
2657
|
default: withCtx(() => [
|
|
2647
2658
|
createVNode(unref(DocumentOutline))
|
|
2648
2659
|
]),
|
|
@@ -2656,7 +2667,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2656
2667
|
"show-text": ""
|
|
2657
2668
|
}, null, 8, ["percent"])) : createCommentVNode("", true)
|
|
2658
2669
|
]),
|
|
2659
|
-
createVNode(FIcon, {
|
|
2670
|
+
createVNode(FIcon$1, {
|
|
2660
2671
|
onClick: withModifiers(clearFile, ["stop"]),
|
|
2661
2672
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => isCloseHover.value = true),
|
|
2662
2673
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => isCloseHover.value = false),
|
|
@@ -2672,26 +2683,18 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2672
2683
|
};
|
|
2673
2684
|
}
|
|
2674
2685
|
});
|
|
2675
|
-
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-07b95a32"]]);
|
|
2686
|
+
const FUpload = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["__scopeId", "data-v-07b95a32"]]);
|
|
2676
2687
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2677
2688
|
__name: "FButtonGroup",
|
|
2678
2689
|
props: {
|
|
2679
2690
|
size: { default: "normal" },
|
|
2680
2691
|
type: { default: "default" },
|
|
2681
|
-
disabled: { type: Boolean
|
|
2692
|
+
disabled: { type: Boolean },
|
|
2682
2693
|
vertical: { type: Boolean, default: false }
|
|
2683
2694
|
},
|
|
2684
2695
|
setup(__props) {
|
|
2685
2696
|
const props = __props;
|
|
2686
|
-
|
|
2687
|
-
provide(
|
|
2688
|
-
"FButtonGroupContext",
|
|
2689
|
-
reactive({
|
|
2690
|
-
size,
|
|
2691
|
-
type,
|
|
2692
|
-
disabled
|
|
2693
|
-
})
|
|
2694
|
-
);
|
|
2697
|
+
provide("FButtonGroupContext", reactive(__spreadValues({}, toRefs(props))));
|
|
2695
2698
|
return (_ctx, _cache) => {
|
|
2696
2699
|
return openBlock(), createElementBlock("div", {
|
|
2697
2700
|
class: normalizeClass(["f-button-group", { "f-button-group--vertical": _ctx.vertical }]),
|
|
@@ -3867,7 +3870,7 @@ var __spreadValues2 = (a, b) => {
|
|
|
3867
3870
|
}
|
|
3868
3871
|
return a;
|
|
3869
3872
|
};
|
|
3870
|
-
const _sfc_main$
|
|
3873
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
3871
3874
|
__name: "FIcon",
|
|
3872
3875
|
props: {
|
|
3873
3876
|
color: {},
|
|
@@ -3891,17 +3894,17 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
3891
3894
|
};
|
|
3892
3895
|
}
|
|
3893
3896
|
});
|
|
3894
|
-
const _export_sfc
|
|
3897
|
+
const _export_sfc = (sfc, props) => {
|
|
3895
3898
|
const target = sfc.__vccOpts || sfc;
|
|
3896
3899
|
for (const [key, val] of props) {
|
|
3897
3900
|
target[key] = val;
|
|
3898
3901
|
}
|
|
3899
3902
|
return target;
|
|
3900
3903
|
};
|
|
3901
|
-
const FIcon
|
|
3902
|
-
const _hoisted_1$
|
|
3903
|
-
const _hoisted_2$
|
|
3904
|
-
const _hoisted_3$
|
|
3904
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-baf7de0c"]]);
|
|
3905
|
+
const _hoisted_1$l = { class: "f-checkbox__wrapper" };
|
|
3906
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
3907
|
+
const _hoisted_3$k = {
|
|
3905
3908
|
key: 0,
|
|
3906
3909
|
class: "f-checkbox__label"
|
|
3907
3910
|
};
|
|
@@ -3927,16 +3930,16 @@ const _hoisted_3$d = {
|
|
|
3927
3930
|
return openBlock(), createElementBlock("label", {
|
|
3928
3931
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
3929
3932
|
}, [
|
|
3930
|
-
createElementVNode("span", _hoisted_1$
|
|
3933
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
3931
3934
|
createElementVNode("input", {
|
|
3932
3935
|
type: "checkbox",
|
|
3933
3936
|
checked: modelValue.value,
|
|
3934
3937
|
disabled: _ctx.disabled,
|
|
3935
3938
|
onChange: handleChange
|
|
3936
|
-
}, null, 40, _hoisted_2$
|
|
3939
|
+
}, null, 40, _hoisted_2$k),
|
|
3937
3940
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
3938
3941
|
]),
|
|
3939
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3942
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3940
3943
|
], 2);
|
|
3941
3944
|
};
|
|
3942
3945
|
}
|
|
@@ -4012,9 +4015,9 @@ var __spreadValues22 = (a, b) => {
|
|
|
4012
4015
|
}
|
|
4013
4016
|
return a;
|
|
4014
4017
|
};
|
|
4015
|
-
const _hoisted_1$
|
|
4016
|
-
const _hoisted_2$
|
|
4017
|
-
const _hoisted_3$
|
|
4018
|
+
const _hoisted_1$k = { class: "f-checkbox__wrapper" };
|
|
4019
|
+
const _hoisted_2$j = ["checked", "disabled"];
|
|
4020
|
+
const _hoisted_3$j = {
|
|
4018
4021
|
key: 0,
|
|
4019
4022
|
class: "f-checkbox__label"
|
|
4020
4023
|
};
|
|
@@ -4040,16 +4043,16 @@ const _hoisted_3$c = {
|
|
|
4040
4043
|
return openBlock(), createElementBlock("label", {
|
|
4041
4044
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4042
4045
|
}, [
|
|
4043
|
-
createElementVNode("span", _hoisted_1$
|
|
4046
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
4044
4047
|
createElementVNode("input", {
|
|
4045
4048
|
type: "checkbox",
|
|
4046
4049
|
checked: modelValue.value,
|
|
4047
4050
|
disabled: _ctx.disabled,
|
|
4048
4051
|
onChange: handleChange
|
|
4049
|
-
}, null, 40, _hoisted_2$
|
|
4052
|
+
}, null, 40, _hoisted_2$j),
|
|
4050
4053
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4051
4054
|
]),
|
|
4052
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4055
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4053
4056
|
], 2);
|
|
4054
4057
|
};
|
|
4055
4058
|
}
|
|
@@ -4125,9 +4128,9 @@ var __spreadValues222 = (a, b) => {
|
|
|
4125
4128
|
}
|
|
4126
4129
|
return a;
|
|
4127
4130
|
};
|
|
4128
|
-
const _hoisted_1$
|
|
4129
|
-
const _hoisted_2$
|
|
4130
|
-
const _hoisted_3$
|
|
4131
|
+
const _hoisted_1$j = { class: "f-checkbox__wrapper" };
|
|
4132
|
+
const _hoisted_2$i = ["checked", "disabled"];
|
|
4133
|
+
const _hoisted_3$i = {
|
|
4131
4134
|
key: 0,
|
|
4132
4135
|
class: "f-checkbox__label"
|
|
4133
4136
|
};
|
|
@@ -4153,16 +4156,16 @@ const _hoisted_3$b = {
|
|
|
4153
4156
|
return openBlock(), createElementBlock("label", {
|
|
4154
4157
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4155
4158
|
}, [
|
|
4156
|
-
createElementVNode("span", _hoisted_1$
|
|
4159
|
+
createElementVNode("span", _hoisted_1$j, [
|
|
4157
4160
|
createElementVNode("input", {
|
|
4158
4161
|
type: "checkbox",
|
|
4159
4162
|
checked: modelValue.value,
|
|
4160
4163
|
disabled: _ctx.disabled,
|
|
4161
4164
|
onChange: handleChange
|
|
4162
|
-
}, null, 40, _hoisted_2$
|
|
4165
|
+
}, null, 40, _hoisted_2$i),
|
|
4163
4166
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4164
4167
|
]),
|
|
4165
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4168
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4166
4169
|
], 2);
|
|
4167
4170
|
};
|
|
4168
4171
|
}
|
|
@@ -4238,9 +4241,9 @@ var __spreadValues2222 = (a, b) => {
|
|
|
4238
4241
|
}
|
|
4239
4242
|
return a;
|
|
4240
4243
|
};
|
|
4241
|
-
const _hoisted_1$
|
|
4242
|
-
const _hoisted_2$
|
|
4243
|
-
const _hoisted_3$
|
|
4244
|
+
const _hoisted_1$i = { class: "f-checkbox__wrapper" };
|
|
4245
|
+
const _hoisted_2$h = ["checked", "disabled"];
|
|
4246
|
+
const _hoisted_3$h = {
|
|
4244
4247
|
key: 0,
|
|
4245
4248
|
class: "f-checkbox__label"
|
|
4246
4249
|
};
|
|
@@ -4266,16 +4269,16 @@ const _hoisted_3$9 = {
|
|
|
4266
4269
|
return openBlock(), createElementBlock("label", {
|
|
4267
4270
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4268
4271
|
}, [
|
|
4269
|
-
createElementVNode("span", _hoisted_1$
|
|
4272
|
+
createElementVNode("span", _hoisted_1$i, [
|
|
4270
4273
|
createElementVNode("input", {
|
|
4271
4274
|
type: "checkbox",
|
|
4272
4275
|
checked: modelValue.value,
|
|
4273
4276
|
disabled: _ctx.disabled,
|
|
4274
4277
|
onChange: handleChange
|
|
4275
|
-
}, null, 40, _hoisted_2$
|
|
4278
|
+
}, null, 40, _hoisted_2$h),
|
|
4276
4279
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4277
4280
|
]),
|
|
4278
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4281
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4279
4282
|
], 2);
|
|
4280
4283
|
};
|
|
4281
4284
|
}
|
|
@@ -4335,6 +4338,797 @@ const _hoisted_3$9 = {
|
|
|
4335
4338
|
};
|
|
4336
4339
|
}
|
|
4337
4340
|
});
|
|
4341
|
+
var __defProp22222 = Object.defineProperty;
|
|
4342
|
+
var __getOwnPropSymbols22222 = Object.getOwnPropertySymbols;
|
|
4343
|
+
var __hasOwnProp22222 = Object.prototype.hasOwnProperty;
|
|
4344
|
+
var __propIsEnum22222 = Object.prototype.propertyIsEnumerable;
|
|
4345
|
+
var __defNormalProp22222 = (obj, key, value) => key in obj ? __defProp22222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4346
|
+
var __spreadValues22222 = (a, b) => {
|
|
4347
|
+
for (var prop in b || (b = {}))
|
|
4348
|
+
if (__hasOwnProp22222.call(b, prop))
|
|
4349
|
+
__defNormalProp22222(a, prop, b[prop]);
|
|
4350
|
+
if (__getOwnPropSymbols22222)
|
|
4351
|
+
for (var prop of __getOwnPropSymbols22222(b)) {
|
|
4352
|
+
if (__propIsEnum22222.call(b, prop))
|
|
4353
|
+
__defNormalProp22222(a, prop, b[prop]);
|
|
4354
|
+
}
|
|
4355
|
+
return a;
|
|
4356
|
+
};
|
|
4357
|
+
const _hoisted_1$h = { class: "f-checkbox__wrapper" };
|
|
4358
|
+
const _hoisted_2$g = ["checked", "disabled"];
|
|
4359
|
+
const _hoisted_3$g = {
|
|
4360
|
+
key: 0,
|
|
4361
|
+
class: "f-checkbox__label"
|
|
4362
|
+
};
|
|
4363
|
+
/* @__PURE__ */ defineComponent({
|
|
4364
|
+
__name: "FCheckbox",
|
|
4365
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4366
|
+
label: {},
|
|
4367
|
+
disabled: { type: Boolean }
|
|
4368
|
+
}, {
|
|
4369
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4370
|
+
"modelModifiers": {}
|
|
4371
|
+
}),
|
|
4372
|
+
emits: ["update:modelValue"],
|
|
4373
|
+
setup(__props) {
|
|
4374
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4375
|
+
const props = __props;
|
|
4376
|
+
const handleChange = (e) => {
|
|
4377
|
+
if (props.disabled) return;
|
|
4378
|
+
const target = e.target;
|
|
4379
|
+
modelValue.value = target.checked;
|
|
4380
|
+
};
|
|
4381
|
+
return (_ctx, _cache) => {
|
|
4382
|
+
return openBlock(), createElementBlock("label", {
|
|
4383
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4384
|
+
}, [
|
|
4385
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
4386
|
+
createElementVNode("input", {
|
|
4387
|
+
type: "checkbox",
|
|
4388
|
+
checked: modelValue.value,
|
|
4389
|
+
disabled: _ctx.disabled,
|
|
4390
|
+
onChange: handleChange
|
|
4391
|
+
}, null, 40, _hoisted_2$g),
|
|
4392
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4393
|
+
]),
|
|
4394
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4395
|
+
], 2);
|
|
4396
|
+
};
|
|
4397
|
+
}
|
|
4398
|
+
});
|
|
4399
|
+
/* @__PURE__ */ defineComponent({
|
|
4400
|
+
__name: "FDialog",
|
|
4401
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4402
|
+
maskClosable: { type: Boolean, default: true },
|
|
4403
|
+
maskColor: { default: "black" },
|
|
4404
|
+
showMask: { type: Boolean, default: true }
|
|
4405
|
+
}, {
|
|
4406
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4407
|
+
"modelModifiers": {}
|
|
4408
|
+
}),
|
|
4409
|
+
emits: ["update:modelValue"],
|
|
4410
|
+
setup(__props) {
|
|
4411
|
+
const props = __props;
|
|
4412
|
+
const visible = useModel(__props, "modelValue");
|
|
4413
|
+
const handleMaskClick = () => {
|
|
4414
|
+
if (props.maskClosable) visible.value = false;
|
|
4415
|
+
};
|
|
4416
|
+
const maskBackgroundColor = computed(() => {
|
|
4417
|
+
if (!props.showMask) return "transparent";
|
|
4418
|
+
switch (props.maskColor) {
|
|
4419
|
+
case "white":
|
|
4420
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4421
|
+
case "black":
|
|
4422
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4423
|
+
case "transparent":
|
|
4424
|
+
return "transparent";
|
|
4425
|
+
default:
|
|
4426
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4427
|
+
}
|
|
4428
|
+
});
|
|
4429
|
+
return (_ctx, _cache) => {
|
|
4430
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4431
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4432
|
+
default: withCtx(() => [
|
|
4433
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4434
|
+
key: 0,
|
|
4435
|
+
class: "f-dialog-mask",
|
|
4436
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4437
|
+
onClick: handleMaskClick
|
|
4438
|
+
}, [
|
|
4439
|
+
createElementVNode("div", {
|
|
4440
|
+
class: "f-dialog-container",
|
|
4441
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4442
|
+
}, ["stop"]))
|
|
4443
|
+
}, [
|
|
4444
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4445
|
+
])
|
|
4446
|
+
], 4)) : createCommentVNode("", true)
|
|
4447
|
+
]),
|
|
4448
|
+
_: 3
|
|
4449
|
+
})
|
|
4450
|
+
]);
|
|
4451
|
+
};
|
|
4452
|
+
}
|
|
4453
|
+
});
|
|
4454
|
+
var __defProp222222 = Object.defineProperty;
|
|
4455
|
+
var __getOwnPropSymbols222222 = Object.getOwnPropertySymbols;
|
|
4456
|
+
var __hasOwnProp222222 = Object.prototype.hasOwnProperty;
|
|
4457
|
+
var __propIsEnum222222 = Object.prototype.propertyIsEnumerable;
|
|
4458
|
+
var __defNormalProp222222 = (obj, key, value) => key in obj ? __defProp222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4459
|
+
var __spreadValues222222 = (a, b) => {
|
|
4460
|
+
for (var prop in b || (b = {}))
|
|
4461
|
+
if (__hasOwnProp222222.call(b, prop))
|
|
4462
|
+
__defNormalProp222222(a, prop, b[prop]);
|
|
4463
|
+
if (__getOwnPropSymbols222222)
|
|
4464
|
+
for (var prop of __getOwnPropSymbols222222(b)) {
|
|
4465
|
+
if (__propIsEnum222222.call(b, prop))
|
|
4466
|
+
__defNormalProp222222(a, prop, b[prop]);
|
|
4467
|
+
}
|
|
4468
|
+
return a;
|
|
4469
|
+
};
|
|
4470
|
+
const _hoisted_1$g = { class: "f-checkbox__wrapper" };
|
|
4471
|
+
const _hoisted_2$f = ["checked", "disabled"];
|
|
4472
|
+
const _hoisted_3$f = {
|
|
4473
|
+
key: 0,
|
|
4474
|
+
class: "f-checkbox__label"
|
|
4475
|
+
};
|
|
4476
|
+
/* @__PURE__ */ defineComponent({
|
|
4477
|
+
__name: "FCheckbox",
|
|
4478
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4479
|
+
label: {},
|
|
4480
|
+
disabled: { type: Boolean }
|
|
4481
|
+
}, {
|
|
4482
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4483
|
+
"modelModifiers": {}
|
|
4484
|
+
}),
|
|
4485
|
+
emits: ["update:modelValue"],
|
|
4486
|
+
setup(__props) {
|
|
4487
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4488
|
+
const props = __props;
|
|
4489
|
+
const handleChange = (e) => {
|
|
4490
|
+
if (props.disabled) return;
|
|
4491
|
+
const target = e.target;
|
|
4492
|
+
modelValue.value = target.checked;
|
|
4493
|
+
};
|
|
4494
|
+
return (_ctx, _cache) => {
|
|
4495
|
+
return openBlock(), createElementBlock("label", {
|
|
4496
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4497
|
+
}, [
|
|
4498
|
+
createElementVNode("span", _hoisted_1$g, [
|
|
4499
|
+
createElementVNode("input", {
|
|
4500
|
+
type: "checkbox",
|
|
4501
|
+
checked: modelValue.value,
|
|
4502
|
+
disabled: _ctx.disabled,
|
|
4503
|
+
onChange: handleChange
|
|
4504
|
+
}, null, 40, _hoisted_2$f),
|
|
4505
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4506
|
+
]),
|
|
4507
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4508
|
+
], 2);
|
|
4509
|
+
};
|
|
4510
|
+
}
|
|
4511
|
+
});
|
|
4512
|
+
/* @__PURE__ */ defineComponent({
|
|
4513
|
+
__name: "FDialog",
|
|
4514
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4515
|
+
maskClosable: { type: Boolean, default: true },
|
|
4516
|
+
maskColor: { default: "black" },
|
|
4517
|
+
showMask: { type: Boolean, default: true }
|
|
4518
|
+
}, {
|
|
4519
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4520
|
+
"modelModifiers": {}
|
|
4521
|
+
}),
|
|
4522
|
+
emits: ["update:modelValue"],
|
|
4523
|
+
setup(__props) {
|
|
4524
|
+
const props = __props;
|
|
4525
|
+
const visible = useModel(__props, "modelValue");
|
|
4526
|
+
const handleMaskClick = () => {
|
|
4527
|
+
if (props.maskClosable) visible.value = false;
|
|
4528
|
+
};
|
|
4529
|
+
const maskBackgroundColor = computed(() => {
|
|
4530
|
+
if (!props.showMask) return "transparent";
|
|
4531
|
+
switch (props.maskColor) {
|
|
4532
|
+
case "white":
|
|
4533
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4534
|
+
case "black":
|
|
4535
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4536
|
+
case "transparent":
|
|
4537
|
+
return "transparent";
|
|
4538
|
+
default:
|
|
4539
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4540
|
+
}
|
|
4541
|
+
});
|
|
4542
|
+
return (_ctx, _cache) => {
|
|
4543
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4544
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4545
|
+
default: withCtx(() => [
|
|
4546
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4547
|
+
key: 0,
|
|
4548
|
+
class: "f-dialog-mask",
|
|
4549
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4550
|
+
onClick: handleMaskClick
|
|
4551
|
+
}, [
|
|
4552
|
+
createElementVNode("div", {
|
|
4553
|
+
class: "f-dialog-container",
|
|
4554
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4555
|
+
}, ["stop"]))
|
|
4556
|
+
}, [
|
|
4557
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4558
|
+
])
|
|
4559
|
+
], 4)) : createCommentVNode("", true)
|
|
4560
|
+
]),
|
|
4561
|
+
_: 3
|
|
4562
|
+
})
|
|
4563
|
+
]);
|
|
4564
|
+
};
|
|
4565
|
+
}
|
|
4566
|
+
});
|
|
4567
|
+
var __defProp2222222 = Object.defineProperty;
|
|
4568
|
+
var __getOwnPropSymbols2222222 = Object.getOwnPropertySymbols;
|
|
4569
|
+
var __hasOwnProp2222222 = Object.prototype.hasOwnProperty;
|
|
4570
|
+
var __propIsEnum2222222 = Object.prototype.propertyIsEnumerable;
|
|
4571
|
+
var __defNormalProp2222222 = (obj, key, value) => key in obj ? __defProp2222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4572
|
+
var __spreadValues2222222 = (a, b) => {
|
|
4573
|
+
for (var prop in b || (b = {}))
|
|
4574
|
+
if (__hasOwnProp2222222.call(b, prop))
|
|
4575
|
+
__defNormalProp2222222(a, prop, b[prop]);
|
|
4576
|
+
if (__getOwnPropSymbols2222222)
|
|
4577
|
+
for (var prop of __getOwnPropSymbols2222222(b)) {
|
|
4578
|
+
if (__propIsEnum2222222.call(b, prop))
|
|
4579
|
+
__defNormalProp2222222(a, prop, b[prop]);
|
|
4580
|
+
}
|
|
4581
|
+
return a;
|
|
4582
|
+
};
|
|
4583
|
+
const _hoisted_1$f = { class: "f-checkbox__wrapper" };
|
|
4584
|
+
const _hoisted_2$e = ["checked", "disabled"];
|
|
4585
|
+
const _hoisted_3$e = {
|
|
4586
|
+
key: 0,
|
|
4587
|
+
class: "f-checkbox__label"
|
|
4588
|
+
};
|
|
4589
|
+
/* @__PURE__ */ defineComponent({
|
|
4590
|
+
__name: "FCheckbox",
|
|
4591
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4592
|
+
label: {},
|
|
4593
|
+
disabled: { type: Boolean }
|
|
4594
|
+
}, {
|
|
4595
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4596
|
+
"modelModifiers": {}
|
|
4597
|
+
}),
|
|
4598
|
+
emits: ["update:modelValue"],
|
|
4599
|
+
setup(__props) {
|
|
4600
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4601
|
+
const props = __props;
|
|
4602
|
+
const handleChange = (e) => {
|
|
4603
|
+
if (props.disabled) return;
|
|
4604
|
+
const target = e.target;
|
|
4605
|
+
modelValue.value = target.checked;
|
|
4606
|
+
};
|
|
4607
|
+
return (_ctx, _cache) => {
|
|
4608
|
+
return openBlock(), createElementBlock("label", {
|
|
4609
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4610
|
+
}, [
|
|
4611
|
+
createElementVNode("span", _hoisted_1$f, [
|
|
4612
|
+
createElementVNode("input", {
|
|
4613
|
+
type: "checkbox",
|
|
4614
|
+
checked: modelValue.value,
|
|
4615
|
+
disabled: _ctx.disabled,
|
|
4616
|
+
onChange: handleChange
|
|
4617
|
+
}, null, 40, _hoisted_2$e),
|
|
4618
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4619
|
+
]),
|
|
4620
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4621
|
+
], 2);
|
|
4622
|
+
};
|
|
4623
|
+
}
|
|
4624
|
+
});
|
|
4625
|
+
/* @__PURE__ */ defineComponent({
|
|
4626
|
+
__name: "FDialog",
|
|
4627
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4628
|
+
maskClosable: { type: Boolean, default: true },
|
|
4629
|
+
maskColor: { default: "black" },
|
|
4630
|
+
showMask: { type: Boolean, default: true }
|
|
4631
|
+
}, {
|
|
4632
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4633
|
+
"modelModifiers": {}
|
|
4634
|
+
}),
|
|
4635
|
+
emits: ["update:modelValue"],
|
|
4636
|
+
setup(__props) {
|
|
4637
|
+
const props = __props;
|
|
4638
|
+
const visible = useModel(__props, "modelValue");
|
|
4639
|
+
const handleMaskClick = () => {
|
|
4640
|
+
if (props.maskClosable) visible.value = false;
|
|
4641
|
+
};
|
|
4642
|
+
const maskBackgroundColor = computed(() => {
|
|
4643
|
+
if (!props.showMask) return "transparent";
|
|
4644
|
+
switch (props.maskColor) {
|
|
4645
|
+
case "white":
|
|
4646
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4647
|
+
case "black":
|
|
4648
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4649
|
+
case "transparent":
|
|
4650
|
+
return "transparent";
|
|
4651
|
+
default:
|
|
4652
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4653
|
+
}
|
|
4654
|
+
});
|
|
4655
|
+
return (_ctx, _cache) => {
|
|
4656
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4657
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4658
|
+
default: withCtx(() => [
|
|
4659
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4660
|
+
key: 0,
|
|
4661
|
+
class: "f-dialog-mask",
|
|
4662
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4663
|
+
onClick: handleMaskClick
|
|
4664
|
+
}, [
|
|
4665
|
+
createElementVNode("div", {
|
|
4666
|
+
class: "f-dialog-container",
|
|
4667
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4668
|
+
}, ["stop"]))
|
|
4669
|
+
}, [
|
|
4670
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4671
|
+
])
|
|
4672
|
+
], 4)) : createCommentVNode("", true)
|
|
4673
|
+
]),
|
|
4674
|
+
_: 3
|
|
4675
|
+
})
|
|
4676
|
+
]);
|
|
4677
|
+
};
|
|
4678
|
+
}
|
|
4679
|
+
});
|
|
4680
|
+
var __defProp22222222 = Object.defineProperty;
|
|
4681
|
+
var __getOwnPropSymbols22222222 = Object.getOwnPropertySymbols;
|
|
4682
|
+
var __hasOwnProp22222222 = Object.prototype.hasOwnProperty;
|
|
4683
|
+
var __propIsEnum22222222 = Object.prototype.propertyIsEnumerable;
|
|
4684
|
+
var __defNormalProp22222222 = (obj, key, value) => key in obj ? __defProp22222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4685
|
+
var __spreadValues22222222 = (a, b) => {
|
|
4686
|
+
for (var prop in b || (b = {}))
|
|
4687
|
+
if (__hasOwnProp22222222.call(b, prop))
|
|
4688
|
+
__defNormalProp22222222(a, prop, b[prop]);
|
|
4689
|
+
if (__getOwnPropSymbols22222222)
|
|
4690
|
+
for (var prop of __getOwnPropSymbols22222222(b)) {
|
|
4691
|
+
if (__propIsEnum22222222.call(b, prop))
|
|
4692
|
+
__defNormalProp22222222(a, prop, b[prop]);
|
|
4693
|
+
}
|
|
4694
|
+
return a;
|
|
4695
|
+
};
|
|
4696
|
+
const _hoisted_1$e = { class: "f-checkbox__wrapper" };
|
|
4697
|
+
const _hoisted_2$d = ["checked", "disabled"];
|
|
4698
|
+
const _hoisted_3$d = {
|
|
4699
|
+
key: 0,
|
|
4700
|
+
class: "f-checkbox__label"
|
|
4701
|
+
};
|
|
4702
|
+
/* @__PURE__ */ defineComponent({
|
|
4703
|
+
__name: "FCheckbox",
|
|
4704
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4705
|
+
label: {},
|
|
4706
|
+
disabled: { type: Boolean }
|
|
4707
|
+
}, {
|
|
4708
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4709
|
+
"modelModifiers": {}
|
|
4710
|
+
}),
|
|
4711
|
+
emits: ["update:modelValue"],
|
|
4712
|
+
setup(__props) {
|
|
4713
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4714
|
+
const props = __props;
|
|
4715
|
+
const handleChange = (e) => {
|
|
4716
|
+
if (props.disabled) return;
|
|
4717
|
+
const target = e.target;
|
|
4718
|
+
modelValue.value = target.checked;
|
|
4719
|
+
};
|
|
4720
|
+
return (_ctx, _cache) => {
|
|
4721
|
+
return openBlock(), createElementBlock("label", {
|
|
4722
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4723
|
+
}, [
|
|
4724
|
+
createElementVNode("span", _hoisted_1$e, [
|
|
4725
|
+
createElementVNode("input", {
|
|
4726
|
+
type: "checkbox",
|
|
4727
|
+
checked: modelValue.value,
|
|
4728
|
+
disabled: _ctx.disabled,
|
|
4729
|
+
onChange: handleChange
|
|
4730
|
+
}, null, 40, _hoisted_2$d),
|
|
4731
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4732
|
+
]),
|
|
4733
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4734
|
+
], 2);
|
|
4735
|
+
};
|
|
4736
|
+
}
|
|
4737
|
+
});
|
|
4738
|
+
/* @__PURE__ */ defineComponent({
|
|
4739
|
+
__name: "FDialog",
|
|
4740
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4741
|
+
maskClosable: { type: Boolean, default: true },
|
|
4742
|
+
maskColor: { default: "black" },
|
|
4743
|
+
showMask: { type: Boolean, default: true }
|
|
4744
|
+
}, {
|
|
4745
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4746
|
+
"modelModifiers": {}
|
|
4747
|
+
}),
|
|
4748
|
+
emits: ["update:modelValue"],
|
|
4749
|
+
setup(__props) {
|
|
4750
|
+
const props = __props;
|
|
4751
|
+
const visible = useModel(__props, "modelValue");
|
|
4752
|
+
const handleMaskClick = () => {
|
|
4753
|
+
if (props.maskClosable) visible.value = false;
|
|
4754
|
+
};
|
|
4755
|
+
const maskBackgroundColor = computed(() => {
|
|
4756
|
+
if (!props.showMask) return "transparent";
|
|
4757
|
+
switch (props.maskColor) {
|
|
4758
|
+
case "white":
|
|
4759
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4760
|
+
case "black":
|
|
4761
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4762
|
+
case "transparent":
|
|
4763
|
+
return "transparent";
|
|
4764
|
+
default:
|
|
4765
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4766
|
+
}
|
|
4767
|
+
});
|
|
4768
|
+
return (_ctx, _cache) => {
|
|
4769
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4770
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4771
|
+
default: withCtx(() => [
|
|
4772
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4773
|
+
key: 0,
|
|
4774
|
+
class: "f-dialog-mask",
|
|
4775
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4776
|
+
onClick: handleMaskClick
|
|
4777
|
+
}, [
|
|
4778
|
+
createElementVNode("div", {
|
|
4779
|
+
class: "f-dialog-container",
|
|
4780
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4781
|
+
}, ["stop"]))
|
|
4782
|
+
}, [
|
|
4783
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4784
|
+
])
|
|
4785
|
+
], 4)) : createCommentVNode("", true)
|
|
4786
|
+
]),
|
|
4787
|
+
_: 3
|
|
4788
|
+
})
|
|
4789
|
+
]);
|
|
4790
|
+
};
|
|
4791
|
+
}
|
|
4792
|
+
});
|
|
4793
|
+
var __defProp222222222 = Object.defineProperty;
|
|
4794
|
+
var __getOwnPropSymbols222222222 = Object.getOwnPropertySymbols;
|
|
4795
|
+
var __hasOwnProp222222222 = Object.prototype.hasOwnProperty;
|
|
4796
|
+
var __propIsEnum222222222 = Object.prototype.propertyIsEnumerable;
|
|
4797
|
+
var __defNormalProp222222222 = (obj, key, value) => key in obj ? __defProp222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4798
|
+
var __spreadValues222222222 = (a, b) => {
|
|
4799
|
+
for (var prop in b || (b = {}))
|
|
4800
|
+
if (__hasOwnProp222222222.call(b, prop))
|
|
4801
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
4802
|
+
if (__getOwnPropSymbols222222222)
|
|
4803
|
+
for (var prop of __getOwnPropSymbols222222222(b)) {
|
|
4804
|
+
if (__propIsEnum222222222.call(b, prop))
|
|
4805
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
4806
|
+
}
|
|
4807
|
+
return a;
|
|
4808
|
+
};
|
|
4809
|
+
const _hoisted_1$d = { class: "f-checkbox__wrapper" };
|
|
4810
|
+
const _hoisted_2$c = ["checked", "disabled"];
|
|
4811
|
+
const _hoisted_3$c = {
|
|
4812
|
+
key: 0,
|
|
4813
|
+
class: "f-checkbox__label"
|
|
4814
|
+
};
|
|
4815
|
+
/* @__PURE__ */ defineComponent({
|
|
4816
|
+
__name: "FCheckbox",
|
|
4817
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4818
|
+
label: {},
|
|
4819
|
+
disabled: { type: Boolean }
|
|
4820
|
+
}, {
|
|
4821
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4822
|
+
"modelModifiers": {}
|
|
4823
|
+
}),
|
|
4824
|
+
emits: ["update:modelValue"],
|
|
4825
|
+
setup(__props) {
|
|
4826
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4827
|
+
const props = __props;
|
|
4828
|
+
const handleChange = (e) => {
|
|
4829
|
+
if (props.disabled) return;
|
|
4830
|
+
const target = e.target;
|
|
4831
|
+
modelValue.value = target.checked;
|
|
4832
|
+
};
|
|
4833
|
+
return (_ctx, _cache) => {
|
|
4834
|
+
return openBlock(), createElementBlock("label", {
|
|
4835
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4836
|
+
}, [
|
|
4837
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
4838
|
+
createElementVNode("input", {
|
|
4839
|
+
type: "checkbox",
|
|
4840
|
+
checked: modelValue.value,
|
|
4841
|
+
disabled: _ctx.disabled,
|
|
4842
|
+
onChange: handleChange
|
|
4843
|
+
}, null, 40, _hoisted_2$c),
|
|
4844
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4845
|
+
]),
|
|
4846
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4847
|
+
], 2);
|
|
4848
|
+
};
|
|
4849
|
+
}
|
|
4850
|
+
});
|
|
4851
|
+
/* @__PURE__ */ defineComponent({
|
|
4852
|
+
__name: "FDialog",
|
|
4853
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4854
|
+
maskClosable: { type: Boolean, default: true },
|
|
4855
|
+
maskColor: { default: "black" },
|
|
4856
|
+
showMask: { type: Boolean, default: true }
|
|
4857
|
+
}, {
|
|
4858
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4859
|
+
"modelModifiers": {}
|
|
4860
|
+
}),
|
|
4861
|
+
emits: ["update:modelValue"],
|
|
4862
|
+
setup(__props) {
|
|
4863
|
+
const props = __props;
|
|
4864
|
+
const visible = useModel(__props, "modelValue");
|
|
4865
|
+
const handleMaskClick = () => {
|
|
4866
|
+
if (props.maskClosable) visible.value = false;
|
|
4867
|
+
};
|
|
4868
|
+
const maskBackgroundColor = computed(() => {
|
|
4869
|
+
if (!props.showMask) return "transparent";
|
|
4870
|
+
switch (props.maskColor) {
|
|
4871
|
+
case "white":
|
|
4872
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4873
|
+
case "black":
|
|
4874
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4875
|
+
case "transparent":
|
|
4876
|
+
return "transparent";
|
|
4877
|
+
default:
|
|
4878
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4879
|
+
}
|
|
4880
|
+
});
|
|
4881
|
+
return (_ctx, _cache) => {
|
|
4882
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4883
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4884
|
+
default: withCtx(() => [
|
|
4885
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4886
|
+
key: 0,
|
|
4887
|
+
class: "f-dialog-mask",
|
|
4888
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4889
|
+
onClick: handleMaskClick
|
|
4890
|
+
}, [
|
|
4891
|
+
createElementVNode("div", {
|
|
4892
|
+
class: "f-dialog-container",
|
|
4893
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4894
|
+
}, ["stop"]))
|
|
4895
|
+
}, [
|
|
4896
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4897
|
+
])
|
|
4898
|
+
], 4)) : createCommentVNode("", true)
|
|
4899
|
+
]),
|
|
4900
|
+
_: 3
|
|
4901
|
+
})
|
|
4902
|
+
]);
|
|
4903
|
+
};
|
|
4904
|
+
}
|
|
4905
|
+
});
|
|
4906
|
+
var __defProp2222222222 = Object.defineProperty;
|
|
4907
|
+
var __getOwnPropSymbols2222222222 = Object.getOwnPropertySymbols;
|
|
4908
|
+
var __hasOwnProp2222222222 = Object.prototype.hasOwnProperty;
|
|
4909
|
+
var __propIsEnum2222222222 = Object.prototype.propertyIsEnumerable;
|
|
4910
|
+
var __defNormalProp2222222222 = (obj, key, value) => key in obj ? __defProp2222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4911
|
+
var __spreadValues2222222222 = (a, b) => {
|
|
4912
|
+
for (var prop in b || (b = {}))
|
|
4913
|
+
if (__hasOwnProp2222222222.call(b, prop))
|
|
4914
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4915
|
+
if (__getOwnPropSymbols2222222222)
|
|
4916
|
+
for (var prop of __getOwnPropSymbols2222222222(b)) {
|
|
4917
|
+
if (__propIsEnum2222222222.call(b, prop))
|
|
4918
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4919
|
+
}
|
|
4920
|
+
return a;
|
|
4921
|
+
};
|
|
4922
|
+
const _hoisted_1$c = { class: "f-checkbox__wrapper" };
|
|
4923
|
+
const _hoisted_2$b = ["checked", "disabled"];
|
|
4924
|
+
const _hoisted_3$b = {
|
|
4925
|
+
key: 0,
|
|
4926
|
+
class: "f-checkbox__label"
|
|
4927
|
+
};
|
|
4928
|
+
/* @__PURE__ */ defineComponent({
|
|
4929
|
+
__name: "FCheckbox",
|
|
4930
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4931
|
+
label: {},
|
|
4932
|
+
disabled: { type: Boolean }
|
|
4933
|
+
}, {
|
|
4934
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4935
|
+
"modelModifiers": {}
|
|
4936
|
+
}),
|
|
4937
|
+
emits: ["update:modelValue"],
|
|
4938
|
+
setup(__props) {
|
|
4939
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4940
|
+
const props = __props;
|
|
4941
|
+
const handleChange = (e) => {
|
|
4942
|
+
if (props.disabled) return;
|
|
4943
|
+
const target = e.target;
|
|
4944
|
+
modelValue.value = target.checked;
|
|
4945
|
+
};
|
|
4946
|
+
return (_ctx, _cache) => {
|
|
4947
|
+
return openBlock(), createElementBlock("label", {
|
|
4948
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4949
|
+
}, [
|
|
4950
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
4951
|
+
createElementVNode("input", {
|
|
4952
|
+
type: "checkbox",
|
|
4953
|
+
checked: modelValue.value,
|
|
4954
|
+
disabled: _ctx.disabled,
|
|
4955
|
+
onChange: handleChange
|
|
4956
|
+
}, null, 40, _hoisted_2$b),
|
|
4957
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4958
|
+
]),
|
|
4959
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4960
|
+
], 2);
|
|
4961
|
+
};
|
|
4962
|
+
}
|
|
4963
|
+
});
|
|
4964
|
+
/* @__PURE__ */ defineComponent({
|
|
4965
|
+
__name: "FDialog",
|
|
4966
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4967
|
+
maskClosable: { type: Boolean, default: true },
|
|
4968
|
+
maskColor: { default: "black" },
|
|
4969
|
+
showMask: { type: Boolean, default: true }
|
|
4970
|
+
}, {
|
|
4971
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4972
|
+
"modelModifiers": {}
|
|
4973
|
+
}),
|
|
4974
|
+
emits: ["update:modelValue"],
|
|
4975
|
+
setup(__props) {
|
|
4976
|
+
const props = __props;
|
|
4977
|
+
const visible = useModel(__props, "modelValue");
|
|
4978
|
+
const handleMaskClick = () => {
|
|
4979
|
+
if (props.maskClosable) visible.value = false;
|
|
4980
|
+
};
|
|
4981
|
+
const maskBackgroundColor = computed(() => {
|
|
4982
|
+
if (!props.showMask) return "transparent";
|
|
4983
|
+
switch (props.maskColor) {
|
|
4984
|
+
case "white":
|
|
4985
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4986
|
+
case "black":
|
|
4987
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4988
|
+
case "transparent":
|
|
4989
|
+
return "transparent";
|
|
4990
|
+
default:
|
|
4991
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4992
|
+
}
|
|
4993
|
+
});
|
|
4994
|
+
return (_ctx, _cache) => {
|
|
4995
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4996
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4997
|
+
default: withCtx(() => [
|
|
4998
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4999
|
+
key: 0,
|
|
5000
|
+
class: "f-dialog-mask",
|
|
5001
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5002
|
+
onClick: handleMaskClick
|
|
5003
|
+
}, [
|
|
5004
|
+
createElementVNode("div", {
|
|
5005
|
+
class: "f-dialog-container",
|
|
5006
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5007
|
+
}, ["stop"]))
|
|
5008
|
+
}, [
|
|
5009
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5010
|
+
])
|
|
5011
|
+
], 4)) : createCommentVNode("", true)
|
|
5012
|
+
]),
|
|
5013
|
+
_: 3
|
|
5014
|
+
})
|
|
5015
|
+
]);
|
|
5016
|
+
};
|
|
5017
|
+
}
|
|
5018
|
+
});
|
|
5019
|
+
var __defProp22222222222 = Object.defineProperty;
|
|
5020
|
+
var __getOwnPropSymbols22222222222 = Object.getOwnPropertySymbols;
|
|
5021
|
+
var __hasOwnProp22222222222 = Object.prototype.hasOwnProperty;
|
|
5022
|
+
var __propIsEnum22222222222 = Object.prototype.propertyIsEnumerable;
|
|
5023
|
+
var __defNormalProp22222222222 = (obj, key, value) => key in obj ? __defProp22222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5024
|
+
var __spreadValues22222222222 = (a, b) => {
|
|
5025
|
+
for (var prop in b || (b = {}))
|
|
5026
|
+
if (__hasOwnProp22222222222.call(b, prop))
|
|
5027
|
+
__defNormalProp22222222222(a, prop, b[prop]);
|
|
5028
|
+
if (__getOwnPropSymbols22222222222)
|
|
5029
|
+
for (var prop of __getOwnPropSymbols22222222222(b)) {
|
|
5030
|
+
if (__propIsEnum22222222222.call(b, prop))
|
|
5031
|
+
__defNormalProp22222222222(a, prop, b[prop]);
|
|
5032
|
+
}
|
|
5033
|
+
return a;
|
|
5034
|
+
};
|
|
5035
|
+
const _hoisted_1$a = { class: "f-checkbox__wrapper" };
|
|
5036
|
+
const _hoisted_2$9 = ["checked", "disabled"];
|
|
5037
|
+
const _hoisted_3$9 = {
|
|
5038
|
+
key: 0,
|
|
5039
|
+
class: "f-checkbox__label"
|
|
5040
|
+
};
|
|
5041
|
+
/* @__PURE__ */ defineComponent({
|
|
5042
|
+
__name: "FCheckbox",
|
|
5043
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5044
|
+
label: {},
|
|
5045
|
+
disabled: { type: Boolean }
|
|
5046
|
+
}, {
|
|
5047
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5048
|
+
"modelModifiers": {}
|
|
5049
|
+
}),
|
|
5050
|
+
emits: ["update:modelValue"],
|
|
5051
|
+
setup(__props) {
|
|
5052
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5053
|
+
const props = __props;
|
|
5054
|
+
const handleChange = (e) => {
|
|
5055
|
+
if (props.disabled) return;
|
|
5056
|
+
const target = e.target;
|
|
5057
|
+
modelValue.value = target.checked;
|
|
5058
|
+
};
|
|
5059
|
+
return (_ctx, _cache) => {
|
|
5060
|
+
return openBlock(), createElementBlock("label", {
|
|
5061
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5062
|
+
}, [
|
|
5063
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
5064
|
+
createElementVNode("input", {
|
|
5065
|
+
type: "checkbox",
|
|
5066
|
+
checked: modelValue.value,
|
|
5067
|
+
disabled: _ctx.disabled,
|
|
5068
|
+
onChange: handleChange
|
|
5069
|
+
}, null, 40, _hoisted_2$9),
|
|
5070
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5071
|
+
]),
|
|
5072
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5073
|
+
], 2);
|
|
5074
|
+
};
|
|
5075
|
+
}
|
|
5076
|
+
});
|
|
5077
|
+
/* @__PURE__ */ defineComponent({
|
|
5078
|
+
__name: "FDialog",
|
|
5079
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5080
|
+
maskClosable: { type: Boolean, default: true },
|
|
5081
|
+
maskColor: { default: "black" },
|
|
5082
|
+
showMask: { type: Boolean, default: true }
|
|
5083
|
+
}, {
|
|
5084
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5085
|
+
"modelModifiers": {}
|
|
5086
|
+
}),
|
|
5087
|
+
emits: ["update:modelValue"],
|
|
5088
|
+
setup(__props) {
|
|
5089
|
+
const props = __props;
|
|
5090
|
+
const visible = useModel(__props, "modelValue");
|
|
5091
|
+
const handleMaskClick = () => {
|
|
5092
|
+
if (props.maskClosable) visible.value = false;
|
|
5093
|
+
};
|
|
5094
|
+
const maskBackgroundColor = computed(() => {
|
|
5095
|
+
if (!props.showMask) return "transparent";
|
|
5096
|
+
switch (props.maskColor) {
|
|
5097
|
+
case "white":
|
|
5098
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5099
|
+
case "black":
|
|
5100
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5101
|
+
case "transparent":
|
|
5102
|
+
return "transparent";
|
|
5103
|
+
default:
|
|
5104
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5105
|
+
}
|
|
5106
|
+
});
|
|
5107
|
+
return (_ctx, _cache) => {
|
|
5108
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5109
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5110
|
+
default: withCtx(() => [
|
|
5111
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5112
|
+
key: 0,
|
|
5113
|
+
class: "f-dialog-mask",
|
|
5114
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5115
|
+
onClick: handleMaskClick
|
|
5116
|
+
}, [
|
|
5117
|
+
createElementVNode("div", {
|
|
5118
|
+
class: "f-dialog-container",
|
|
5119
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5120
|
+
}, ["stop"]))
|
|
5121
|
+
}, [
|
|
5122
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5123
|
+
])
|
|
5124
|
+
], 4)) : createCommentVNode("", true)
|
|
5125
|
+
]),
|
|
5126
|
+
_: 3
|
|
5127
|
+
})
|
|
5128
|
+
]);
|
|
5129
|
+
};
|
|
5130
|
+
}
|
|
5131
|
+
});
|
|
4338
5132
|
const _hoisted_1 = { class: "f-result__icon" };
|
|
4339
5133
|
const _hoisted_2 = {
|
|
4340
5134
|
key: 0,
|
|
@@ -4384,7 +5178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4384
5178
|
}, [
|
|
4385
5179
|
createElementVNode("div", _hoisted_1, [
|
|
4386
5180
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4387
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(unref(FIcon
|
|
5181
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(unref(FIcon), {
|
|
4388
5182
|
key: 1,
|
|
4389
5183
|
size: 72
|
|
4390
5184
|
}, {
|
|
@@ -4415,7 +5209,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4415
5209
|
};
|
|
4416
5210
|
}
|
|
4417
5211
|
});
|
|
4418
|
-
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8f97d09"]]);
|
|
5212
|
+
const FResult = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-c8f97d09"]]);
|
|
4419
5213
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4420
5214
|
__proto__: null,
|
|
4421
5215
|
FAffix,
|
|
@@ -4439,7 +5233,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4439
5233
|
FEmpty: _sfc_main$4,
|
|
4440
5234
|
FForm,
|
|
4441
5235
|
FFormItem,
|
|
4442
|
-
FIcon,
|
|
5236
|
+
FIcon: FIcon$1,
|
|
4443
5237
|
FImage,
|
|
4444
5238
|
FInput,
|
|
4445
5239
|
FInputNumber: _sfc_main$1,
|
|
@@ -4489,7 +5283,7 @@ export {
|
|
|
4489
5283
|
_sfc_main$4 as FEmpty,
|
|
4490
5284
|
FForm,
|
|
4491
5285
|
FFormItem,
|
|
4492
|
-
FIcon,
|
|
5286
|
+
FIcon$1 as FIcon,
|
|
4493
5287
|
FImage,
|
|
4494
5288
|
FInput,
|
|
4495
5289
|
_sfc_main$1 as FInputNumber,
|