fantasia-ui 0.2.26 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -73,11 +73,11 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
73
73
|
};
|
|
74
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$F = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$z = {
|
|
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$F, [
|
|
98
98
|
(openBlock(), createElementBlock(Fragment, null, renderList(6, (i) => {
|
|
99
99
|
return createElementVNode("div", {
|
|
100
100
|
class: "item cubes",
|
|
@@ -105,18 +105,18 @@ 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$z, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
const FLoading = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
114
|
+
const _hoisted_1$E = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$y = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$v = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
@@ -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$E, [
|
|
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$y, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,7 +149,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
}),
|
|
150
150
|
createVNode(Transition, { name: "fade" }, {
|
|
151
151
|
default: withCtx(() => [
|
|
152
|
-
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
152
|
+
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
154
|
createVNode(FIcon$1, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
@@ -177,7 +177,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
const FImage = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
-
const _hoisted_1$
|
|
180
|
+
const _hoisted_1$D = ["type", "placeholder", "disabled", "readonly", "name", "id"];
|
|
181
181
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
182
182
|
__name: "FInput",
|
|
183
183
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -232,7 +232,7 @@ 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$D), [
|
|
236
236
|
[vModelDynamic, model.value]
|
|
237
237
|
])
|
|
238
238
|
], 2);
|
|
@@ -240,8 +240,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
const FInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
-
const _hoisted_1$
|
|
244
|
-
const _hoisted_2$
|
|
243
|
+
const _hoisted_1$C = ["onMousemove"];
|
|
244
|
+
const _hoisted_2$x = {
|
|
245
245
|
key: 0,
|
|
246
246
|
class: "f-rate__score"
|
|
247
247
|
};
|
|
@@ -328,17 +328,17 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
]),
|
|
329
329
|
_: 2
|
|
330
330
|
}, 1032, ["color", "size"])
|
|
331
|
-
], 40, _hoisted_1$
|
|
331
|
+
], 40, _hoisted_1$C);
|
|
332
332
|
}), 128)),
|
|
333
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
333
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$x, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
334
334
|
], 34);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
const FRate = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-3b5c4f14"]]);
|
|
339
|
-
const _hoisted_1$
|
|
340
|
-
const _hoisted_2$
|
|
341
|
-
const _hoisted_3$
|
|
339
|
+
const _hoisted_1$B = { class: "f-dropdown-wrapper" };
|
|
340
|
+
const _hoisted_2$w = { class: "f-dropdown-content" };
|
|
341
|
+
const _hoisted_3$u = ["onClick"];
|
|
342
342
|
const _hoisted_4$b = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "opt-icon"
|
|
@@ -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$B, [
|
|
517
517
|
createElementVNode("div", {
|
|
518
518
|
ref_key: "triggerRef",
|
|
519
519
|
ref: triggerRef,
|
|
@@ -543,7 +543,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
543
543
|
class: "f-dropdown-bridge",
|
|
544
544
|
style: normalizeStyle(unref(bridgeStyle))
|
|
545
545
|
}, null, 4)) : createCommentVNode("", true),
|
|
546
|
-
createElementVNode("div", _hoisted_2$
|
|
546
|
+
createElementVNode("div", _hoisted_2$w, [
|
|
547
547
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
548
548
|
return openBlock(), createElementBlock("div", {
|
|
549
549
|
key: opt.key,
|
|
@@ -554,7 +554,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
554
554
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
555
555
|
])) : createCommentVNode("", true),
|
|
556
556
|
createElementVNode("span", _hoisted_5$a, toDisplayString(opt.label), 1)
|
|
557
|
-
], 10, _hoisted_3$
|
|
557
|
+
], 10, _hoisted_3$u);
|
|
558
558
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
559
559
|
])
|
|
560
560
|
], 36)) : createCommentVNode("", true)
|
|
@@ -628,15 +628,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
const FSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
-
const _hoisted_1$
|
|
631
|
+
const _hoisted_1$A = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "f-pagination"
|
|
634
634
|
};
|
|
635
|
-
const _hoisted_2$
|
|
635
|
+
const _hoisted_2$v = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "f-pagination__total"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_3$
|
|
639
|
+
const _hoisted_3$t = {
|
|
640
640
|
key: 1,
|
|
641
641
|
class: "f-pagination__size"
|
|
642
642
|
};
|
|
@@ -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$A, [
|
|
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$v, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
712
712
|
createElementVNode("select", {
|
|
713
713
|
class: "size-select",
|
|
714
714
|
value: _ctx.pageSize,
|
|
@@ -782,15 +782,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
const FPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
-
const _hoisted_1$
|
|
785
|
+
const _hoisted_1$z = {
|
|
786
786
|
key: 0,
|
|
787
787
|
class: "f-card__header"
|
|
788
788
|
};
|
|
789
|
-
const _hoisted_2$
|
|
789
|
+
const _hoisted_2$u = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "f-card__header-extra"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$s = {
|
|
794
794
|
key: 1,
|
|
795
795
|
class: "f-card__cover"
|
|
796
796
|
};
|
|
@@ -835,13 +835,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
835
835
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
836
836
|
}, [
|
|
837
837
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
838
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
838
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
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$u, [
|
|
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$s, [
|
|
845
845
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
846
846
|
])) : createCommentVNode("", true),
|
|
847
847
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
@@ -874,7 +874,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
876
|
const FCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
-
const _hoisted_1$
|
|
877
|
+
const _hoisted_1$y = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "f-tag__dot"
|
|
880
880
|
};
|
|
@@ -902,7 +902,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
902
902
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
903
903
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
904
904
|
}, [
|
|
905
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
905
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$y)) : createCommentVNode("", true),
|
|
906
906
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
907
907
|
_ctx.closable ? (openBlock(), createBlock(FIcon$1, {
|
|
908
908
|
key: 1,
|
|
@@ -1024,8 +1024,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
const FTooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
-
const _hoisted_1$
|
|
1028
|
-
const _hoisted_2$
|
|
1027
|
+
const _hoisted_1$x = { class: "f-progress" };
|
|
1028
|
+
const _hoisted_2$t = {
|
|
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$x, [
|
|
1045
1045
|
createElementVNode("div", {
|
|
1046
1046
|
class: "f-progress__track",
|
|
1047
1047
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -1054,15 +1054,15 @@ 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$t, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1058
1058
|
]);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
1062
|
const FProgress = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-c2164d6e"]]);
|
|
1063
|
-
const _hoisted_1$
|
|
1064
|
-
const _hoisted_2$
|
|
1065
|
-
const _hoisted_3$
|
|
1063
|
+
const _hoisted_1$w = { class: "f-tabs__nav-container" };
|
|
1064
|
+
const _hoisted_2$s = { class: "f-tabs__nav" };
|
|
1065
|
+
const _hoisted_3$r = ["onClick"];
|
|
1066
1066
|
const _hoisted_4$8 = { class: "f-tabs__label" };
|
|
1067
1067
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1068
1068
|
__name: "FTabs",
|
|
@@ -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$w, [
|
|
1101
|
+
createElementVNode("div", _hoisted_2$s, [
|
|
1102
1102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1103
1103
|
return openBlock(), createElementBlock("div", {
|
|
1104
1104
|
key: tab.name,
|
|
@@ -1109,7 +1109,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1109
1109
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1110
1110
|
}, [
|
|
1111
1111
|
createElementVNode("span", _hoisted_4$8, toDisplayString(tab.label), 1)
|
|
1112
|
-
], 10, _hoisted_3$
|
|
1112
|
+
], 10, _hoisted_3$r);
|
|
1113
1113
|
}), 128))
|
|
1114
1114
|
])
|
|
1115
1115
|
]),
|
|
@@ -1128,12 +1128,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
1130
|
const FTabs = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
-
const _hoisted_1$
|
|
1131
|
+
const _hoisted_1$v = {
|
|
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$r = ["href"];
|
|
1136
|
+
const _hoisted_3$q = {
|
|
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$v, 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$r)) : (openBlock(), createElementBlock("span", _hoisted_3$q, toDisplayString(item.label), 1))
|
|
1174
1174
|
], 64);
|
|
1175
1175
|
}), 128))
|
|
1176
1176
|
]),
|
|
@@ -1277,8 +1277,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
1279
|
const FRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
-
const _hoisted_1$
|
|
1281
|
-
const _hoisted_2$
|
|
1280
|
+
const _hoisted_1$u = { class: "f-space__item" };
|
|
1281
|
+
const _hoisted_2$q = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
class: "f-space__split",
|
|
1284
1284
|
"aria-hidden": "true"
|
|
@@ -1337,10 +1337,10 @@ 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$u, [
|
|
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$q, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
1344
1344
|
], 64);
|
|
1345
1345
|
}), 128))
|
|
1346
1346
|
], 4);
|
|
@@ -1397,7 +1397,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
1399
|
const FDivider = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
-
const _hoisted_1$
|
|
1400
|
+
const _hoisted_1$t = ["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$t)) : (openBlock(), createBlock(FIcon$1, {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
size: 24
|
|
1436
1436
|
}, {
|
|
@@ -1444,9 +1444,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
1446
|
const FAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
-
const _hoisted_1$
|
|
1448
|
-
const _hoisted_2$
|
|
1449
|
-
const _hoisted_3$
|
|
1447
|
+
const _hoisted_1$s = ["type", "disabled"];
|
|
1448
|
+
const _hoisted_2$p = { class: "f-button__inner" };
|
|
1449
|
+
const _hoisted_3$p = {
|
|
1450
1450
|
key: 0,
|
|
1451
1451
|
class: "f-loader"
|
|
1452
1452
|
};
|
|
@@ -1471,7 +1471,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1471
1471
|
plain: { type: Boolean },
|
|
1472
1472
|
block: { type: Boolean },
|
|
1473
1473
|
icon: {},
|
|
1474
|
-
active: { type: Boolean
|
|
1474
|
+
active: { type: Boolean },
|
|
1475
1475
|
bgColor: {},
|
|
1476
1476
|
color: {}
|
|
1477
1477
|
},
|
|
@@ -1503,11 +1503,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1503
1503
|
color: props.color
|
|
1504
1504
|
};
|
|
1505
1505
|
if (props.circle) {
|
|
1506
|
-
style.width = s.h;
|
|
1507
1506
|
style.borderRadius = "50%";
|
|
1507
|
+
style.width = s.h;
|
|
1508
1508
|
} else if (typeof props.round === "number") {
|
|
1509
1509
|
style.borderRadius = `${props.round}px`;
|
|
1510
|
-
} else if (props.round) {
|
|
1510
|
+
} else if (props.round === true) {
|
|
1511
1511
|
style.borderRadius = "999px";
|
|
1512
1512
|
}
|
|
1513
1513
|
return style;
|
|
@@ -1529,8 +1529,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1529
1529
|
disabled: unref(isDisabled),
|
|
1530
1530
|
style: normalizeStyle(unref(buttonStyle))
|
|
1531
1531
|
}, [
|
|
1532
|
-
createElementVNode("span", _hoisted_2$
|
|
1533
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1532
|
+
createElementVNode("span", _hoisted_2$p, [
|
|
1533
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$p)) : _ctx.icon ? (openBlock(), createElementBlock("i", {
|
|
1534
1534
|
key: 1,
|
|
1535
1535
|
class: normalizeClass(["f-icon", _ctx.icon])
|
|
1536
1536
|
}, null, 2)) : _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
|
|
@@ -1540,11 +1540,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1540
1540
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1541
1541
|
])) : createCommentVNode("", true)
|
|
1542
1542
|
])
|
|
1543
|
-
], 14, _hoisted_1$
|
|
1543
|
+
], 14, _hoisted_1$s);
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
1546
|
});
|
|
1547
|
-
const FButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__scopeId", "data-v-
|
|
1547
|
+
const FButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__scopeId", "data-v-90c6b608"]]);
|
|
1548
1548
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1549
1549
|
__name: "FTypography",
|
|
1550
1550
|
props: {
|
|
@@ -1627,7 +1627,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1627
1627
|
}
|
|
1628
1628
|
});
|
|
1629
1629
|
const FText = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1630
|
-
const _hoisted_1$
|
|
1630
|
+
const _hoisted_1$r = ["href", "target", "rel"];
|
|
1631
1631
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1632
1632
|
__name: "FLink",
|
|
1633
1633
|
props: {
|
|
@@ -1651,12 +1651,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1651
1651
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1652
1652
|
}, [
|
|
1653
1653
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1654
|
-
], 10, _hoisted_1$
|
|
1654
|
+
], 10, _hoisted_1$r);
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
1657
|
});
|
|
1658
1658
|
const FLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1659
|
-
const _hoisted_1$
|
|
1659
|
+
const _hoisted_1$q = { class: "f-badge" };
|
|
1660
1660
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1661
1661
|
__name: "FBadge",
|
|
1662
1662
|
props: {
|
|
@@ -1686,7 +1686,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1686
1686
|
return map[props.placement];
|
|
1687
1687
|
});
|
|
1688
1688
|
return (_ctx, _cache) => {
|
|
1689
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1689
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
1690
1690
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1691
1691
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1692
1692
|
key: 0,
|
|
@@ -1866,12 +1866,12 @@ const checkRange = (value, rule) => {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
return void 0;
|
|
1868
1868
|
};
|
|
1869
|
-
const _hoisted_1$
|
|
1869
|
+
const _hoisted_1$p = {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
class: "star"
|
|
1872
1872
|
};
|
|
1873
|
-
const _hoisted_2$
|
|
1874
|
-
const _hoisted_3$
|
|
1873
|
+
const _hoisted_2$o = { class: "f-form-item__content" };
|
|
1874
|
+
const _hoisted_3$o = {
|
|
1875
1875
|
key: 0,
|
|
1876
1876
|
class: "f-form-item__error"
|
|
1877
1877
|
};
|
|
@@ -1941,14 +1941,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1941
1941
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
1942
1942
|
})
|
|
1943
1943
|
}, [
|
|
1944
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1944
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$p, "*")) : createCommentVNode("", true),
|
|
1945
1945
|
createTextVNode(" " + toDisplayString(_ctx.label) + ": ", 1)
|
|
1946
1946
|
], 4)) : createCommentVNode("", true),
|
|
1947
|
-
createElementVNode("div", _hoisted_2$
|
|
1947
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
1948
1948
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1949
1949
|
createVNode(Transition, { name: "err-slide" }, {
|
|
1950
1950
|
default: withCtx(() => [
|
|
1951
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1951
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$o, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
1952
1952
|
]),
|
|
1953
1953
|
_: 1
|
|
1954
1954
|
})
|
|
@@ -1958,9 +1958,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1958
1958
|
}
|
|
1959
1959
|
});
|
|
1960
1960
|
const FFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-c3d6ec01"]]);
|
|
1961
|
-
const _hoisted_1$
|
|
1962
|
-
const _hoisted_2$
|
|
1963
|
-
const _hoisted_3$
|
|
1961
|
+
const _hoisted_1$o = { class: "f-checkbox__wrapper" };
|
|
1962
|
+
const _hoisted_2$n = ["checked", "disabled"];
|
|
1963
|
+
const _hoisted_3$n = {
|
|
1964
1964
|
key: 0,
|
|
1965
1965
|
class: "f-checkbox__label"
|
|
1966
1966
|
};
|
|
@@ -1986,16 +1986,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1986
1986
|
return openBlock(), createElementBlock("label", {
|
|
1987
1987
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
1988
1988
|
}, [
|
|
1989
|
-
createElementVNode("span", _hoisted_1$
|
|
1989
|
+
createElementVNode("span", _hoisted_1$o, [
|
|
1990
1990
|
createElementVNode("input", {
|
|
1991
1991
|
type: "checkbox",
|
|
1992
1992
|
checked: modelValue.value,
|
|
1993
1993
|
disabled: _ctx.disabled,
|
|
1994
1994
|
onChange: handleChange
|
|
1995
|
-
}, null, 40, _hoisted_2$
|
|
1995
|
+
}, null, 40, _hoisted_2$n),
|
|
1996
1996
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
1997
1997
|
]),
|
|
1998
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1998
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
1999
1999
|
], 2);
|
|
2000
2000
|
};
|
|
2001
2001
|
}
|
|
@@ -2690,7 +2690,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2690
2690
|
size: { default: "normal" },
|
|
2691
2691
|
type: { default: "default" },
|
|
2692
2692
|
disabled: { type: Boolean },
|
|
2693
|
-
vertical: { type: Boolean
|
|
2693
|
+
vertical: { type: Boolean }
|
|
2694
2694
|
},
|
|
2695
2695
|
setup(__props) {
|
|
2696
2696
|
const props = __props;
|
|
@@ -2700,11 +2700,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2700
2700
|
class: normalizeClass(["f-button-group", { "f-button-group--vertical": _ctx.vertical }]),
|
|
2701
2701
|
role: "group"
|
|
2702
2702
|
}, [
|
|
2703
|
-
renderSlot(_ctx.$slots, "default")
|
|
2703
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2704
2704
|
], 2);
|
|
2705
2705
|
};
|
|
2706
2706
|
}
|
|
2707
2707
|
});
|
|
2708
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-7c8148f9"]]);
|
|
2708
2709
|
const _hoisted_1$6 = { class: "f-collapse" };
|
|
2709
2710
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2710
2711
|
__name: "FCollapse",
|
|
@@ -3902,9 +3903,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
3902
3903
|
return target;
|
|
3903
3904
|
};
|
|
3904
3905
|
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-baf7de0c"]]);
|
|
3905
|
-
const _hoisted_1$
|
|
3906
|
-
const _hoisted_2$
|
|
3907
|
-
const _hoisted_3$
|
|
3906
|
+
const _hoisted_1$n = { class: "f-checkbox__wrapper" };
|
|
3907
|
+
const _hoisted_2$m = ["checked", "disabled"];
|
|
3908
|
+
const _hoisted_3$m = {
|
|
3908
3909
|
key: 0,
|
|
3909
3910
|
class: "f-checkbox__label"
|
|
3910
3911
|
};
|
|
@@ -3930,16 +3931,16 @@ const _hoisted_3$k = {
|
|
|
3930
3931
|
return openBlock(), createElementBlock("label", {
|
|
3931
3932
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
3932
3933
|
}, [
|
|
3933
|
-
createElementVNode("span", _hoisted_1$
|
|
3934
|
+
createElementVNode("span", _hoisted_1$n, [
|
|
3934
3935
|
createElementVNode("input", {
|
|
3935
3936
|
type: "checkbox",
|
|
3936
3937
|
checked: modelValue.value,
|
|
3937
3938
|
disabled: _ctx.disabled,
|
|
3938
3939
|
onChange: handleChange
|
|
3939
|
-
}, null, 40, _hoisted_2$
|
|
3940
|
+
}, null, 40, _hoisted_2$m),
|
|
3940
3941
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
3941
3942
|
]),
|
|
3942
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3943
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3943
3944
|
], 2);
|
|
3944
3945
|
};
|
|
3945
3946
|
}
|
|
@@ -4015,9 +4016,9 @@ var __spreadValues22 = (a, b) => {
|
|
|
4015
4016
|
}
|
|
4016
4017
|
return a;
|
|
4017
4018
|
};
|
|
4018
|
-
const _hoisted_1$
|
|
4019
|
-
const _hoisted_2$
|
|
4020
|
-
const _hoisted_3$
|
|
4019
|
+
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
4020
|
+
const _hoisted_2$l = ["checked", "disabled"];
|
|
4021
|
+
const _hoisted_3$l = {
|
|
4021
4022
|
key: 0,
|
|
4022
4023
|
class: "f-checkbox__label"
|
|
4023
4024
|
};
|
|
@@ -4043,16 +4044,16 @@ const _hoisted_3$j = {
|
|
|
4043
4044
|
return openBlock(), createElementBlock("label", {
|
|
4044
4045
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4045
4046
|
}, [
|
|
4046
|
-
createElementVNode("span", _hoisted_1$
|
|
4047
|
+
createElementVNode("span", _hoisted_1$m, [
|
|
4047
4048
|
createElementVNode("input", {
|
|
4048
4049
|
type: "checkbox",
|
|
4049
4050
|
checked: modelValue.value,
|
|
4050
4051
|
disabled: _ctx.disabled,
|
|
4051
4052
|
onChange: handleChange
|
|
4052
|
-
}, null, 40, _hoisted_2$
|
|
4053
|
+
}, null, 40, _hoisted_2$l),
|
|
4053
4054
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4054
4055
|
]),
|
|
4055
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4056
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4056
4057
|
], 2);
|
|
4057
4058
|
};
|
|
4058
4059
|
}
|
|
@@ -4128,9 +4129,9 @@ var __spreadValues222 = (a, b) => {
|
|
|
4128
4129
|
}
|
|
4129
4130
|
return a;
|
|
4130
4131
|
};
|
|
4131
|
-
const _hoisted_1$
|
|
4132
|
-
const _hoisted_2$
|
|
4133
|
-
const _hoisted_3$
|
|
4132
|
+
const _hoisted_1$l = { class: "f-checkbox__wrapper" };
|
|
4133
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
4134
|
+
const _hoisted_3$k = {
|
|
4134
4135
|
key: 0,
|
|
4135
4136
|
class: "f-checkbox__label"
|
|
4136
4137
|
};
|
|
@@ -4156,16 +4157,16 @@ const _hoisted_3$i = {
|
|
|
4156
4157
|
return openBlock(), createElementBlock("label", {
|
|
4157
4158
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4158
4159
|
}, [
|
|
4159
|
-
createElementVNode("span", _hoisted_1$
|
|
4160
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
4160
4161
|
createElementVNode("input", {
|
|
4161
4162
|
type: "checkbox",
|
|
4162
4163
|
checked: modelValue.value,
|
|
4163
4164
|
disabled: _ctx.disabled,
|
|
4164
4165
|
onChange: handleChange
|
|
4165
|
-
}, null, 40, _hoisted_2$
|
|
4166
|
+
}, null, 40, _hoisted_2$k),
|
|
4166
4167
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4167
4168
|
]),
|
|
4168
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4169
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4169
4170
|
], 2);
|
|
4170
4171
|
};
|
|
4171
4172
|
}
|
|
@@ -4241,9 +4242,9 @@ var __spreadValues2222 = (a, b) => {
|
|
|
4241
4242
|
}
|
|
4242
4243
|
return a;
|
|
4243
4244
|
};
|
|
4244
|
-
const _hoisted_1$
|
|
4245
|
-
const _hoisted_2$
|
|
4246
|
-
const _hoisted_3$
|
|
4245
|
+
const _hoisted_1$k = { class: "f-checkbox__wrapper" };
|
|
4246
|
+
const _hoisted_2$j = ["checked", "disabled"];
|
|
4247
|
+
const _hoisted_3$j = {
|
|
4247
4248
|
key: 0,
|
|
4248
4249
|
class: "f-checkbox__label"
|
|
4249
4250
|
};
|
|
@@ -4269,16 +4270,16 @@ const _hoisted_3$h = {
|
|
|
4269
4270
|
return openBlock(), createElementBlock("label", {
|
|
4270
4271
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4271
4272
|
}, [
|
|
4272
|
-
createElementVNode("span", _hoisted_1$
|
|
4273
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
4273
4274
|
createElementVNode("input", {
|
|
4274
4275
|
type: "checkbox",
|
|
4275
4276
|
checked: modelValue.value,
|
|
4276
4277
|
disabled: _ctx.disabled,
|
|
4277
4278
|
onChange: handleChange
|
|
4278
|
-
}, null, 40, _hoisted_2$
|
|
4279
|
+
}, null, 40, _hoisted_2$j),
|
|
4279
4280
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4280
4281
|
]),
|
|
4281
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4282
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4282
4283
|
], 2);
|
|
4283
4284
|
};
|
|
4284
4285
|
}
|
|
@@ -4354,9 +4355,9 @@ var __spreadValues22222 = (a, b) => {
|
|
|
4354
4355
|
}
|
|
4355
4356
|
return a;
|
|
4356
4357
|
};
|
|
4357
|
-
const _hoisted_1$
|
|
4358
|
-
const _hoisted_2$
|
|
4359
|
-
const _hoisted_3$
|
|
4358
|
+
const _hoisted_1$j = { class: "f-checkbox__wrapper" };
|
|
4359
|
+
const _hoisted_2$i = ["checked", "disabled"];
|
|
4360
|
+
const _hoisted_3$i = {
|
|
4360
4361
|
key: 0,
|
|
4361
4362
|
class: "f-checkbox__label"
|
|
4362
4363
|
};
|
|
@@ -4382,16 +4383,16 @@ const _hoisted_3$g = {
|
|
|
4382
4383
|
return openBlock(), createElementBlock("label", {
|
|
4383
4384
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4384
4385
|
}, [
|
|
4385
|
-
createElementVNode("span", _hoisted_1$
|
|
4386
|
+
createElementVNode("span", _hoisted_1$j, [
|
|
4386
4387
|
createElementVNode("input", {
|
|
4387
4388
|
type: "checkbox",
|
|
4388
4389
|
checked: modelValue.value,
|
|
4389
4390
|
disabled: _ctx.disabled,
|
|
4390
4391
|
onChange: handleChange
|
|
4391
|
-
}, null, 40, _hoisted_2$
|
|
4392
|
+
}, null, 40, _hoisted_2$i),
|
|
4392
4393
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4393
4394
|
]),
|
|
4394
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4395
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4395
4396
|
], 2);
|
|
4396
4397
|
};
|
|
4397
4398
|
}
|
|
@@ -4467,9 +4468,9 @@ var __spreadValues222222 = (a, b) => {
|
|
|
4467
4468
|
}
|
|
4468
4469
|
return a;
|
|
4469
4470
|
};
|
|
4470
|
-
const _hoisted_1$
|
|
4471
|
-
const _hoisted_2$
|
|
4472
|
-
const _hoisted_3$
|
|
4471
|
+
const _hoisted_1$i = { class: "f-checkbox__wrapper" };
|
|
4472
|
+
const _hoisted_2$h = ["checked", "disabled"];
|
|
4473
|
+
const _hoisted_3$h = {
|
|
4473
4474
|
key: 0,
|
|
4474
4475
|
class: "f-checkbox__label"
|
|
4475
4476
|
};
|
|
@@ -4495,16 +4496,16 @@ const _hoisted_3$f = {
|
|
|
4495
4496
|
return openBlock(), createElementBlock("label", {
|
|
4496
4497
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4497
4498
|
}, [
|
|
4498
|
-
createElementVNode("span", _hoisted_1$
|
|
4499
|
+
createElementVNode("span", _hoisted_1$i, [
|
|
4499
4500
|
createElementVNode("input", {
|
|
4500
4501
|
type: "checkbox",
|
|
4501
4502
|
checked: modelValue.value,
|
|
4502
4503
|
disabled: _ctx.disabled,
|
|
4503
4504
|
onChange: handleChange
|
|
4504
|
-
}, null, 40, _hoisted_2$
|
|
4505
|
+
}, null, 40, _hoisted_2$h),
|
|
4505
4506
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4506
4507
|
]),
|
|
4507
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4508
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4508
4509
|
], 2);
|
|
4509
4510
|
};
|
|
4510
4511
|
}
|
|
@@ -4580,9 +4581,9 @@ var __spreadValues2222222 = (a, b) => {
|
|
|
4580
4581
|
}
|
|
4581
4582
|
return a;
|
|
4582
4583
|
};
|
|
4583
|
-
const _hoisted_1$
|
|
4584
|
-
const _hoisted_2$
|
|
4585
|
-
const _hoisted_3$
|
|
4584
|
+
const _hoisted_1$h = { class: "f-checkbox__wrapper" };
|
|
4585
|
+
const _hoisted_2$g = ["checked", "disabled"];
|
|
4586
|
+
const _hoisted_3$g = {
|
|
4586
4587
|
key: 0,
|
|
4587
4588
|
class: "f-checkbox__label"
|
|
4588
4589
|
};
|
|
@@ -4608,16 +4609,16 @@ const _hoisted_3$e = {
|
|
|
4608
4609
|
return openBlock(), createElementBlock("label", {
|
|
4609
4610
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4610
4611
|
}, [
|
|
4611
|
-
createElementVNode("span", _hoisted_1$
|
|
4612
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
4612
4613
|
createElementVNode("input", {
|
|
4613
4614
|
type: "checkbox",
|
|
4614
4615
|
checked: modelValue.value,
|
|
4615
4616
|
disabled: _ctx.disabled,
|
|
4616
4617
|
onChange: handleChange
|
|
4617
|
-
}, null, 40, _hoisted_2$
|
|
4618
|
+
}, null, 40, _hoisted_2$g),
|
|
4618
4619
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4619
4620
|
]),
|
|
4620
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4621
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4621
4622
|
], 2);
|
|
4622
4623
|
};
|
|
4623
4624
|
}
|
|
@@ -4693,9 +4694,9 @@ var __spreadValues22222222 = (a, b) => {
|
|
|
4693
4694
|
}
|
|
4694
4695
|
return a;
|
|
4695
4696
|
};
|
|
4696
|
-
const _hoisted_1$
|
|
4697
|
-
const _hoisted_2$
|
|
4698
|
-
const _hoisted_3$
|
|
4697
|
+
const _hoisted_1$g = { class: "f-checkbox__wrapper" };
|
|
4698
|
+
const _hoisted_2$f = ["checked", "disabled"];
|
|
4699
|
+
const _hoisted_3$f = {
|
|
4699
4700
|
key: 0,
|
|
4700
4701
|
class: "f-checkbox__label"
|
|
4701
4702
|
};
|
|
@@ -4721,16 +4722,16 @@ const _hoisted_3$d = {
|
|
|
4721
4722
|
return openBlock(), createElementBlock("label", {
|
|
4722
4723
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4723
4724
|
}, [
|
|
4724
|
-
createElementVNode("span", _hoisted_1$
|
|
4725
|
+
createElementVNode("span", _hoisted_1$g, [
|
|
4725
4726
|
createElementVNode("input", {
|
|
4726
4727
|
type: "checkbox",
|
|
4727
4728
|
checked: modelValue.value,
|
|
4728
4729
|
disabled: _ctx.disabled,
|
|
4729
4730
|
onChange: handleChange
|
|
4730
|
-
}, null, 40, _hoisted_2$
|
|
4731
|
+
}, null, 40, _hoisted_2$f),
|
|
4731
4732
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4732
4733
|
]),
|
|
4733
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4734
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4734
4735
|
], 2);
|
|
4735
4736
|
};
|
|
4736
4737
|
}
|
|
@@ -4806,9 +4807,9 @@ var __spreadValues222222222 = (a, b) => {
|
|
|
4806
4807
|
}
|
|
4807
4808
|
return a;
|
|
4808
4809
|
};
|
|
4809
|
-
const _hoisted_1$
|
|
4810
|
-
const _hoisted_2$
|
|
4811
|
-
const _hoisted_3$
|
|
4810
|
+
const _hoisted_1$f = { class: "f-checkbox__wrapper" };
|
|
4811
|
+
const _hoisted_2$e = ["checked", "disabled"];
|
|
4812
|
+
const _hoisted_3$e = {
|
|
4812
4813
|
key: 0,
|
|
4813
4814
|
class: "f-checkbox__label"
|
|
4814
4815
|
};
|
|
@@ -4834,16 +4835,16 @@ const _hoisted_3$c = {
|
|
|
4834
4835
|
return openBlock(), createElementBlock("label", {
|
|
4835
4836
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4836
4837
|
}, [
|
|
4837
|
-
createElementVNode("span", _hoisted_1$
|
|
4838
|
+
createElementVNode("span", _hoisted_1$f, [
|
|
4838
4839
|
createElementVNode("input", {
|
|
4839
4840
|
type: "checkbox",
|
|
4840
4841
|
checked: modelValue.value,
|
|
4841
4842
|
disabled: _ctx.disabled,
|
|
4842
4843
|
onChange: handleChange
|
|
4843
|
-
}, null, 40, _hoisted_2$
|
|
4844
|
+
}, null, 40, _hoisted_2$e),
|
|
4844
4845
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4845
4846
|
]),
|
|
4846
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4847
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4847
4848
|
], 2);
|
|
4848
4849
|
};
|
|
4849
4850
|
}
|
|
@@ -4919,9 +4920,9 @@ var __spreadValues2222222222 = (a, b) => {
|
|
|
4919
4920
|
}
|
|
4920
4921
|
return a;
|
|
4921
4922
|
};
|
|
4922
|
-
const _hoisted_1$
|
|
4923
|
-
const _hoisted_2$
|
|
4924
|
-
const _hoisted_3$
|
|
4923
|
+
const _hoisted_1$e = { class: "f-checkbox__wrapper" };
|
|
4924
|
+
const _hoisted_2$d = ["checked", "disabled"];
|
|
4925
|
+
const _hoisted_3$d = {
|
|
4925
4926
|
key: 0,
|
|
4926
4927
|
class: "f-checkbox__label"
|
|
4927
4928
|
};
|
|
@@ -4947,16 +4948,16 @@ const _hoisted_3$b = {
|
|
|
4947
4948
|
return openBlock(), createElementBlock("label", {
|
|
4948
4949
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4949
4950
|
}, [
|
|
4950
|
-
createElementVNode("span", _hoisted_1$
|
|
4951
|
+
createElementVNode("span", _hoisted_1$e, [
|
|
4951
4952
|
createElementVNode("input", {
|
|
4952
4953
|
type: "checkbox",
|
|
4953
4954
|
checked: modelValue.value,
|
|
4954
4955
|
disabled: _ctx.disabled,
|
|
4955
4956
|
onChange: handleChange
|
|
4956
|
-
}, null, 40, _hoisted_2$
|
|
4957
|
+
}, null, 40, _hoisted_2$d),
|
|
4957
4958
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4958
4959
|
]),
|
|
4959
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4960
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4960
4961
|
], 2);
|
|
4961
4962
|
};
|
|
4962
4963
|
}
|
|
@@ -5032,6 +5033,232 @@ var __spreadValues22222222222 = (a, b) => {
|
|
|
5032
5033
|
}
|
|
5033
5034
|
return a;
|
|
5034
5035
|
};
|
|
5036
|
+
const _hoisted_1$d = { class: "f-checkbox__wrapper" };
|
|
5037
|
+
const _hoisted_2$c = ["checked", "disabled"];
|
|
5038
|
+
const _hoisted_3$c = {
|
|
5039
|
+
key: 0,
|
|
5040
|
+
class: "f-checkbox__label"
|
|
5041
|
+
};
|
|
5042
|
+
/* @__PURE__ */ defineComponent({
|
|
5043
|
+
__name: "FCheckbox",
|
|
5044
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5045
|
+
label: {},
|
|
5046
|
+
disabled: { type: Boolean }
|
|
5047
|
+
}, {
|
|
5048
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5049
|
+
"modelModifiers": {}
|
|
5050
|
+
}),
|
|
5051
|
+
emits: ["update:modelValue"],
|
|
5052
|
+
setup(__props) {
|
|
5053
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5054
|
+
const props = __props;
|
|
5055
|
+
const handleChange = (e) => {
|
|
5056
|
+
if (props.disabled) return;
|
|
5057
|
+
const target = e.target;
|
|
5058
|
+
modelValue.value = target.checked;
|
|
5059
|
+
};
|
|
5060
|
+
return (_ctx, _cache) => {
|
|
5061
|
+
return openBlock(), createElementBlock("label", {
|
|
5062
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5063
|
+
}, [
|
|
5064
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
5065
|
+
createElementVNode("input", {
|
|
5066
|
+
type: "checkbox",
|
|
5067
|
+
checked: modelValue.value,
|
|
5068
|
+
disabled: _ctx.disabled,
|
|
5069
|
+
onChange: handleChange
|
|
5070
|
+
}, null, 40, _hoisted_2$c),
|
|
5071
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5072
|
+
]),
|
|
5073
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5074
|
+
], 2);
|
|
5075
|
+
};
|
|
5076
|
+
}
|
|
5077
|
+
});
|
|
5078
|
+
/* @__PURE__ */ defineComponent({
|
|
5079
|
+
__name: "FDialog",
|
|
5080
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5081
|
+
maskClosable: { type: Boolean, default: true },
|
|
5082
|
+
maskColor: { default: "black" },
|
|
5083
|
+
showMask: { type: Boolean, default: true }
|
|
5084
|
+
}, {
|
|
5085
|
+
"modelValue": __spreadValues22222222222({ type: Boolean }, { default: false }),
|
|
5086
|
+
"modelModifiers": {}
|
|
5087
|
+
}),
|
|
5088
|
+
emits: ["update:modelValue"],
|
|
5089
|
+
setup(__props) {
|
|
5090
|
+
const props = __props;
|
|
5091
|
+
const visible = useModel(__props, "modelValue");
|
|
5092
|
+
const handleMaskClick = () => {
|
|
5093
|
+
if (props.maskClosable) visible.value = false;
|
|
5094
|
+
};
|
|
5095
|
+
const maskBackgroundColor = computed(() => {
|
|
5096
|
+
if (!props.showMask) return "transparent";
|
|
5097
|
+
switch (props.maskColor) {
|
|
5098
|
+
case "white":
|
|
5099
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5100
|
+
case "black":
|
|
5101
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5102
|
+
case "transparent":
|
|
5103
|
+
return "transparent";
|
|
5104
|
+
default:
|
|
5105
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5106
|
+
}
|
|
5107
|
+
});
|
|
5108
|
+
return (_ctx, _cache) => {
|
|
5109
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5110
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5111
|
+
default: withCtx(() => [
|
|
5112
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5113
|
+
key: 0,
|
|
5114
|
+
class: "f-dialog-mask",
|
|
5115
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5116
|
+
onClick: handleMaskClick
|
|
5117
|
+
}, [
|
|
5118
|
+
createElementVNode("div", {
|
|
5119
|
+
class: "f-dialog-container",
|
|
5120
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5121
|
+
}, ["stop"]))
|
|
5122
|
+
}, [
|
|
5123
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5124
|
+
])
|
|
5125
|
+
], 4)) : createCommentVNode("", true)
|
|
5126
|
+
]),
|
|
5127
|
+
_: 3
|
|
5128
|
+
})
|
|
5129
|
+
]);
|
|
5130
|
+
};
|
|
5131
|
+
}
|
|
5132
|
+
});
|
|
5133
|
+
var __defProp222222222222 = Object.defineProperty;
|
|
5134
|
+
var __getOwnPropSymbols222222222222 = Object.getOwnPropertySymbols;
|
|
5135
|
+
var __hasOwnProp222222222222 = Object.prototype.hasOwnProperty;
|
|
5136
|
+
var __propIsEnum222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5137
|
+
var __defNormalProp222222222222 = (obj, key, value) => key in obj ? __defProp222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5138
|
+
var __spreadValues222222222222 = (a, b) => {
|
|
5139
|
+
for (var prop in b || (b = {}))
|
|
5140
|
+
if (__hasOwnProp222222222222.call(b, prop))
|
|
5141
|
+
__defNormalProp222222222222(a, prop, b[prop]);
|
|
5142
|
+
if (__getOwnPropSymbols222222222222)
|
|
5143
|
+
for (var prop of __getOwnPropSymbols222222222222(b)) {
|
|
5144
|
+
if (__propIsEnum222222222222.call(b, prop))
|
|
5145
|
+
__defNormalProp222222222222(a, prop, b[prop]);
|
|
5146
|
+
}
|
|
5147
|
+
return a;
|
|
5148
|
+
};
|
|
5149
|
+
const _hoisted_1$c = { class: "f-checkbox__wrapper" };
|
|
5150
|
+
const _hoisted_2$b = ["checked", "disabled"];
|
|
5151
|
+
const _hoisted_3$b = {
|
|
5152
|
+
key: 0,
|
|
5153
|
+
class: "f-checkbox__label"
|
|
5154
|
+
};
|
|
5155
|
+
/* @__PURE__ */ defineComponent({
|
|
5156
|
+
__name: "FCheckbox",
|
|
5157
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5158
|
+
label: {},
|
|
5159
|
+
disabled: { type: Boolean }
|
|
5160
|
+
}, {
|
|
5161
|
+
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
5162
|
+
"modelModifiers": {}
|
|
5163
|
+
}),
|
|
5164
|
+
emits: ["update:modelValue"],
|
|
5165
|
+
setup(__props) {
|
|
5166
|
+
const modelValue = useModel(__props, "modelValue");
|
|
5167
|
+
const props = __props;
|
|
5168
|
+
const handleChange = (e) => {
|
|
5169
|
+
if (props.disabled) return;
|
|
5170
|
+
const target = e.target;
|
|
5171
|
+
modelValue.value = target.checked;
|
|
5172
|
+
};
|
|
5173
|
+
return (_ctx, _cache) => {
|
|
5174
|
+
return openBlock(), createElementBlock("label", {
|
|
5175
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
5176
|
+
}, [
|
|
5177
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
5178
|
+
createElementVNode("input", {
|
|
5179
|
+
type: "checkbox",
|
|
5180
|
+
checked: modelValue.value,
|
|
5181
|
+
disabled: _ctx.disabled,
|
|
5182
|
+
onChange: handleChange
|
|
5183
|
+
}, null, 40, _hoisted_2$b),
|
|
5184
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
5185
|
+
]),
|
|
5186
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
5187
|
+
], 2);
|
|
5188
|
+
};
|
|
5189
|
+
}
|
|
5190
|
+
});
|
|
5191
|
+
/* @__PURE__ */ defineComponent({
|
|
5192
|
+
__name: "FDialog",
|
|
5193
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5194
|
+
maskClosable: { type: Boolean, default: true },
|
|
5195
|
+
maskColor: { default: "black" },
|
|
5196
|
+
showMask: { type: Boolean, default: true }
|
|
5197
|
+
}, {
|
|
5198
|
+
"modelValue": __spreadValues222222222222({ type: Boolean }, { default: false }),
|
|
5199
|
+
"modelModifiers": {}
|
|
5200
|
+
}),
|
|
5201
|
+
emits: ["update:modelValue"],
|
|
5202
|
+
setup(__props) {
|
|
5203
|
+
const props = __props;
|
|
5204
|
+
const visible = useModel(__props, "modelValue");
|
|
5205
|
+
const handleMaskClick = () => {
|
|
5206
|
+
if (props.maskClosable) visible.value = false;
|
|
5207
|
+
};
|
|
5208
|
+
const maskBackgroundColor = computed(() => {
|
|
5209
|
+
if (!props.showMask) return "transparent";
|
|
5210
|
+
switch (props.maskColor) {
|
|
5211
|
+
case "white":
|
|
5212
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
5213
|
+
case "black":
|
|
5214
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5215
|
+
case "transparent":
|
|
5216
|
+
return "transparent";
|
|
5217
|
+
default:
|
|
5218
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
5219
|
+
}
|
|
5220
|
+
});
|
|
5221
|
+
return (_ctx, _cache) => {
|
|
5222
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
5223
|
+
createVNode(Transition, { name: "fade" }, {
|
|
5224
|
+
default: withCtx(() => [
|
|
5225
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
5226
|
+
key: 0,
|
|
5227
|
+
class: "f-dialog-mask",
|
|
5228
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
5229
|
+
onClick: handleMaskClick
|
|
5230
|
+
}, [
|
|
5231
|
+
createElementVNode("div", {
|
|
5232
|
+
class: "f-dialog-container",
|
|
5233
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5234
|
+
}, ["stop"]))
|
|
5235
|
+
}, [
|
|
5236
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5237
|
+
])
|
|
5238
|
+
], 4)) : createCommentVNode("", true)
|
|
5239
|
+
]),
|
|
5240
|
+
_: 3
|
|
5241
|
+
})
|
|
5242
|
+
]);
|
|
5243
|
+
};
|
|
5244
|
+
}
|
|
5245
|
+
});
|
|
5246
|
+
var __defProp2222222222222 = Object.defineProperty;
|
|
5247
|
+
var __getOwnPropSymbols2222222222222 = Object.getOwnPropertySymbols;
|
|
5248
|
+
var __hasOwnProp2222222222222 = Object.prototype.hasOwnProperty;
|
|
5249
|
+
var __propIsEnum2222222222222 = Object.prototype.propertyIsEnumerable;
|
|
5250
|
+
var __defNormalProp2222222222222 = (obj, key, value) => key in obj ? __defProp2222222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5251
|
+
var __spreadValues2222222222222 = (a, b) => {
|
|
5252
|
+
for (var prop in b || (b = {}))
|
|
5253
|
+
if (__hasOwnProp2222222222222.call(b, prop))
|
|
5254
|
+
__defNormalProp2222222222222(a, prop, b[prop]);
|
|
5255
|
+
if (__getOwnPropSymbols2222222222222)
|
|
5256
|
+
for (var prop of __getOwnPropSymbols2222222222222(b)) {
|
|
5257
|
+
if (__propIsEnum2222222222222.call(b, prop))
|
|
5258
|
+
__defNormalProp2222222222222(a, prop, b[prop]);
|
|
5259
|
+
}
|
|
5260
|
+
return a;
|
|
5261
|
+
};
|
|
5035
5262
|
const _hoisted_1$a = { class: "f-checkbox__wrapper" };
|
|
5036
5263
|
const _hoisted_2$9 = ["checked", "disabled"];
|
|
5037
5264
|
const _hoisted_3$9 = {
|
|
@@ -5044,7 +5271,7 @@ const _hoisted_3$9 = {
|
|
|
5044
5271
|
label: {},
|
|
5045
5272
|
disabled: { type: Boolean }
|
|
5046
5273
|
}, {
|
|
5047
|
-
"modelValue":
|
|
5274
|
+
"modelValue": __spreadValues2222222222222({ type: Boolean }, { default: false }),
|
|
5048
5275
|
"modelModifiers": {}
|
|
5049
5276
|
}),
|
|
5050
5277
|
emits: ["update:modelValue"],
|
|
@@ -5081,7 +5308,7 @@ const _hoisted_3$9 = {
|
|
|
5081
5308
|
maskColor: { default: "black" },
|
|
5082
5309
|
showMask: { type: Boolean, default: true }
|
|
5083
5310
|
}, {
|
|
5084
|
-
"modelValue":
|
|
5311
|
+
"modelValue": __spreadValues2222222222222({ type: Boolean }, { default: false }),
|
|
5085
5312
|
"modelModifiers": {}
|
|
5086
5313
|
}),
|
|
5087
5314
|
emits: ["update:modelValue"],
|
|
@@ -5218,7 +5445,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
5218
5445
|
FBadge,
|
|
5219
5446
|
FBreadcrumb,
|
|
5220
5447
|
FButton,
|
|
5221
|
-
FButtonGroup
|
|
5448
|
+
FButtonGroup,
|
|
5222
5449
|
FCard,
|
|
5223
5450
|
FCheckbox,
|
|
5224
5451
|
FCol,
|
|
@@ -5268,7 +5495,7 @@ export {
|
|
|
5268
5495
|
FBadge,
|
|
5269
5496
|
FBreadcrumb,
|
|
5270
5497
|
FButton,
|
|
5271
|
-
|
|
5498
|
+
FButtonGroup,
|
|
5272
5499
|
FCard,
|
|
5273
5500
|
FCheckbox,
|
|
5274
5501
|
FCol,
|