fantasia-ui 0.2.21 → 0.2.25
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 +780 -102
- package/dist/fantasia-ui.umd.js +780 -102
- package/dist/index.d.ts +8 -0
- package/package.json +2 -2
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -73,11 +73,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
73
73
|
};
|
|
74
74
|
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__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$C = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$w = {
|
|
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$C, [
|
|
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$w, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-20f58a50"]]);
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
114
|
+
const _hoisted_1$B = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$v = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$s = {
|
|
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$B, [
|
|
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$v, [
|
|
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$s, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
154
|
createVNode(FIcon, { 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(_sfc_main$E, [["__scopeId", "data-v-e959ab10"]]);
|
|
180
|
-
const _hoisted_1$
|
|
180
|
+
const _hoisted_1$A = ["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$A), [
|
|
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(_sfc_main$D, [["__scopeId", "data-v-9af0fbbe"]]);
|
|
243
|
-
const _hoisted_1$
|
|
244
|
-
const _hoisted_2$
|
|
243
|
+
const _hoisted_1$z = ["onMousemove"];
|
|
244
|
+
const _hoisted_2$u = {
|
|
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$z);
|
|
332
332
|
}), 128)),
|
|
333
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
333
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$u, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
334
334
|
], 34);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
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$
|
|
339
|
+
const _hoisted_1$y = { class: "f-dropdown-wrapper" };
|
|
340
|
+
const _hoisted_2$t = { class: "f-dropdown-content" };
|
|
341
|
+
const _hoisted_3$r = ["onClick"];
|
|
342
342
|
const _hoisted_4$a = {
|
|
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$y, [
|
|
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$t, [
|
|
547
547
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
548
548
|
return openBlock(), createElementBlock("div", {
|
|
549
549
|
key: opt.key,
|
|
@@ -554,7 +554,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
554
554
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
555
555
|
])) : createCommentVNode("", true),
|
|
556
556
|
createElementVNode("span", _hoisted_5$9, toDisplayString(opt.label), 1)
|
|
557
|
-
], 10, _hoisted_3$
|
|
557
|
+
], 10, _hoisted_3$r);
|
|
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(_sfc_main$A, [["__scopeId", "data-v-61444561"]]);
|
|
631
|
-
const _hoisted_1$
|
|
631
|
+
const _hoisted_1$x = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "f-pagination"
|
|
634
634
|
};
|
|
635
|
-
const _hoisted_2$
|
|
635
|
+
const _hoisted_2$s = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "f-pagination__total"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_3$
|
|
639
|
+
const _hoisted_3$q = {
|
|
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$x, [
|
|
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$s, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
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(_sfc_main$z, [["__scopeId", "data-v-930f8b20"]]);
|
|
785
|
-
const _hoisted_1$
|
|
785
|
+
const _hoisted_1$w = {
|
|
786
786
|
key: 0,
|
|
787
787
|
class: "f-card__header"
|
|
788
788
|
};
|
|
789
|
-
const _hoisted_2$
|
|
789
|
+
const _hoisted_2$r = {
|
|
790
790
|
key: 0,
|
|
791
791
|
class: "f-card__header-extra"
|
|
792
792
|
};
|
|
793
|
-
const _hoisted_3$
|
|
793
|
+
const _hoisted_3$p = {
|
|
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$w, [
|
|
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$r, [
|
|
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$p, [
|
|
845
845
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
846
846
|
])) : createCommentVNode("", true),
|
|
847
847
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
@@ -874,7 +874,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
876
|
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-a66fa373"]]);
|
|
877
|
-
const _hoisted_1$
|
|
877
|
+
const _hoisted_1$v = {
|
|
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$v)) : createCommentVNode("", true),
|
|
906
906
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
907
907
|
_ctx.closable ? (openBlock(), createBlock(FIcon, {
|
|
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(_sfc_main$w, [["__scopeId", "data-v-be9acca7"]]);
|
|
1027
|
-
const _hoisted_1$
|
|
1028
|
-
const _hoisted_2$
|
|
1027
|
+
const _hoisted_1$u = { class: "f-progress" };
|
|
1028
|
+
const _hoisted_2$q = {
|
|
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$u, [
|
|
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$q, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1058
1058
|
]);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
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$
|
|
1063
|
+
const _hoisted_1$t = { class: "f-tabs__nav-container" };
|
|
1064
|
+
const _hoisted_2$p = { class: "f-tabs__nav" };
|
|
1065
|
+
const _hoisted_3$o = ["onClick"];
|
|
1066
1066
|
const _hoisted_4$7 = { 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$t, [
|
|
1101
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
1102
1102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1103
1103
|
return openBlock(), createElementBlock("div", {
|
|
1104
1104
|
key: tab.name,
|
|
@@ -1109,7 +1109,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1109
1109
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1110
1110
|
}, [
|
|
1111
1111
|
createElementVNode("span", _hoisted_4$7, toDisplayString(tab.label), 1)
|
|
1112
|
-
], 10, _hoisted_3$
|
|
1112
|
+
], 10, _hoisted_3$o);
|
|
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(_sfc_main$u, [["__scopeId", "data-v-268fc654"]]);
|
|
1131
|
-
const _hoisted_1$
|
|
1131
|
+
const _hoisted_1$s = {
|
|
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$o = ["href"];
|
|
1136
|
+
const _hoisted_3$n = {
|
|
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$s, 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$o)) : (openBlock(), createElementBlock("span", _hoisted_3$n, 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(_sfc_main$r, [["__scopeId", "data-v-72f62339"]]);
|
|
1280
|
-
const _hoisted_1$
|
|
1281
|
-
const _hoisted_2$
|
|
1280
|
+
const _hoisted_1$r = { class: "f-space__item" };
|
|
1281
|
+
const _hoisted_2$n = {
|
|
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$r, [
|
|
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$n, 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(_sfc_main$o, [["__scopeId", "data-v-512ee743"]]);
|
|
1400
|
-
const _hoisted_1$
|
|
1400
|
+
const _hoisted_1$q = ["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$q)) : (openBlock(), createBlock(FIcon, {
|
|
1434
1434
|
key: 1,
|
|
1435
1435
|
size: 24
|
|
1436
1436
|
}, {
|
|
@@ -1444,12 +1444,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
1446
|
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-b3665268"]]);
|
|
1447
|
-
const _hoisted_1$
|
|
1448
|
-
const _hoisted_2$
|
|
1447
|
+
const _hoisted_1$p = ["type", "disabled"];
|
|
1448
|
+
const _hoisted_2$m = {
|
|
1449
1449
|
key: 0,
|
|
1450
1450
|
class: "f-loader"
|
|
1451
1451
|
};
|
|
1452
|
-
const _hoisted_3$
|
|
1452
|
+
const _hoisted_3$m = {
|
|
1453
1453
|
key: 2,
|
|
1454
1454
|
class: "f-button__content"
|
|
1455
1455
|
};
|
|
@@ -1522,14 +1522,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1522
1522
|
disabled: unref(isDisabled),
|
|
1523
1523
|
style: normalizeStyle(unref(buttonStyle))
|
|
1524
1524
|
}, [
|
|
1525
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1525
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_2$m)) : _ctx.icon ? (openBlock(), createElementBlock("i", {
|
|
1526
1526
|
key: 1,
|
|
1527
1527
|
class: normalizeClass(["f-icon", _ctx.icon])
|
|
1528
1528
|
}, null, 2)) : createCommentVNode("", true),
|
|
1529
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1529
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$m, [
|
|
1530
1530
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1531
1531
|
])) : createCommentVNode("", true)
|
|
1532
|
-
], 14, _hoisted_1$
|
|
1532
|
+
], 14, _hoisted_1$p);
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
@@ -1616,7 +1616,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1616
1616
|
}
|
|
1617
1617
|
});
|
|
1618
1618
|
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-8bcfc6b3"]]);
|
|
1619
|
-
const _hoisted_1$
|
|
1619
|
+
const _hoisted_1$o = ["href", "target", "rel"];
|
|
1620
1620
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1621
1621
|
__name: "FLink",
|
|
1622
1622
|
props: {
|
|
@@ -1640,12 +1640,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1640
1640
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1641
1641
|
}, [
|
|
1642
1642
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1643
|
-
], 10, _hoisted_1$
|
|
1643
|
+
], 10, _hoisted_1$o);
|
|
1644
1644
|
};
|
|
1645
1645
|
}
|
|
1646
1646
|
});
|
|
1647
1647
|
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-daaa3e25"]]);
|
|
1648
|
-
const _hoisted_1$
|
|
1648
|
+
const _hoisted_1$n = { class: "f-badge" };
|
|
1649
1649
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1650
1650
|
__name: "FBadge",
|
|
1651
1651
|
props: {
|
|
@@ -1675,7 +1675,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1675
1675
|
return map[props.placement];
|
|
1676
1676
|
});
|
|
1677
1677
|
return (_ctx, _cache) => {
|
|
1678
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1678
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
1679
1679
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1680
1680
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1681
1681
|
key: 0,
|
|
@@ -1855,12 +1855,12 @@ const checkRange = (value, rule) => {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
return void 0;
|
|
1857
1857
|
};
|
|
1858
|
-
const _hoisted_1$
|
|
1858
|
+
const _hoisted_1$m = {
|
|
1859
1859
|
key: 0,
|
|
1860
1860
|
class: "star"
|
|
1861
1861
|
};
|
|
1862
|
-
const _hoisted_2$
|
|
1863
|
-
const _hoisted_3$
|
|
1862
|
+
const _hoisted_2$l = { class: "f-form-item__content" };
|
|
1863
|
+
const _hoisted_3$l = {
|
|
1864
1864
|
key: 0,
|
|
1865
1865
|
class: "f-form-item__error"
|
|
1866
1866
|
};
|
|
@@ -1930,14 +1930,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1930
1930
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
1931
1931
|
})
|
|
1932
1932
|
}, [
|
|
1933
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1933
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$m, "*")) : createCommentVNode("", true),
|
|
1934
1934
|
createTextVNode(" " + toDisplayString(_ctx.label) + ": ", 1)
|
|
1935
1935
|
], 4)) : createCommentVNode("", true),
|
|
1936
|
-
createElementVNode("div", _hoisted_2$
|
|
1936
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
1937
1937
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1938
1938
|
createVNode(Transition, { name: "err-slide" }, {
|
|
1939
1939
|
default: withCtx(() => [
|
|
1940
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1940
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$l, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
1941
1941
|
]),
|
|
1942
1942
|
_: 1
|
|
1943
1943
|
})
|
|
@@ -1947,9 +1947,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
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$
|
|
1950
|
+
const _hoisted_1$l = { class: "f-checkbox__wrapper" };
|
|
1951
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
1952
|
+
const _hoisted_3$k = {
|
|
1953
1953
|
key: 0,
|
|
1954
1954
|
class: "f-checkbox__label"
|
|
1955
1955
|
};
|
|
@@ -1975,16 +1975,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1975
1975
|
return openBlock(), createElementBlock("label", {
|
|
1976
1976
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
1977
1977
|
}, [
|
|
1978
|
-
createElementVNode("span", _hoisted_1$
|
|
1978
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
1979
1979
|
createElementVNode("input", {
|
|
1980
1980
|
type: "checkbox",
|
|
1981
1981
|
checked: modelValue.value,
|
|
1982
1982
|
disabled: _ctx.disabled,
|
|
1983
1983
|
onChange: handleChange
|
|
1984
|
-
}, null, 40, _hoisted_2$
|
|
1984
|
+
}, null, 40, _hoisted_2$k),
|
|
1985
1985
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
1986
1986
|
]),
|
|
1987
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1987
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
1988
1988
|
], 2);
|
|
1989
1989
|
};
|
|
1990
1990
|
}
|
|
@@ -3899,9 +3899,9 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
3899
3899
|
return target;
|
|
3900
3900
|
};
|
|
3901
3901
|
const FIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__scopeId", "data-v-baf7de0c"]]);
|
|
3902
|
-
const _hoisted_1$
|
|
3903
|
-
const _hoisted_2$
|
|
3904
|
-
const _hoisted_3$
|
|
3902
|
+
const _hoisted_1$k = { class: "f-checkbox__wrapper" };
|
|
3903
|
+
const _hoisted_2$j = ["checked", "disabled"];
|
|
3904
|
+
const _hoisted_3$j = {
|
|
3905
3905
|
key: 0,
|
|
3906
3906
|
class: "f-checkbox__label"
|
|
3907
3907
|
};
|
|
@@ -3927,16 +3927,16 @@ const _hoisted_3$d = {
|
|
|
3927
3927
|
return openBlock(), createElementBlock("label", {
|
|
3928
3928
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
3929
3929
|
}, [
|
|
3930
|
-
createElementVNode("span", _hoisted_1$
|
|
3930
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
3931
3931
|
createElementVNode("input", {
|
|
3932
3932
|
type: "checkbox",
|
|
3933
3933
|
checked: modelValue.value,
|
|
3934
3934
|
disabled: _ctx.disabled,
|
|
3935
3935
|
onChange: handleChange
|
|
3936
|
-
}, null, 40, _hoisted_2$
|
|
3936
|
+
}, null, 40, _hoisted_2$j),
|
|
3937
3937
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
3938
3938
|
]),
|
|
3939
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3939
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
3940
3940
|
], 2);
|
|
3941
3941
|
};
|
|
3942
3942
|
}
|
|
@@ -4012,9 +4012,9 @@ var __spreadValues22 = (a, b) => {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
return a;
|
|
4014
4014
|
};
|
|
4015
|
-
const _hoisted_1$
|
|
4016
|
-
const _hoisted_2$
|
|
4017
|
-
const _hoisted_3$
|
|
4015
|
+
const _hoisted_1$j = { class: "f-checkbox__wrapper" };
|
|
4016
|
+
const _hoisted_2$i = ["checked", "disabled"];
|
|
4017
|
+
const _hoisted_3$i = {
|
|
4018
4018
|
key: 0,
|
|
4019
4019
|
class: "f-checkbox__label"
|
|
4020
4020
|
};
|
|
@@ -4040,16 +4040,16 @@ const _hoisted_3$c = {
|
|
|
4040
4040
|
return openBlock(), createElementBlock("label", {
|
|
4041
4041
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4042
4042
|
}, [
|
|
4043
|
-
createElementVNode("span", _hoisted_1$
|
|
4043
|
+
createElementVNode("span", _hoisted_1$j, [
|
|
4044
4044
|
createElementVNode("input", {
|
|
4045
4045
|
type: "checkbox",
|
|
4046
4046
|
checked: modelValue.value,
|
|
4047
4047
|
disabled: _ctx.disabled,
|
|
4048
4048
|
onChange: handleChange
|
|
4049
|
-
}, null, 40, _hoisted_2$
|
|
4049
|
+
}, null, 40, _hoisted_2$i),
|
|
4050
4050
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4051
4051
|
]),
|
|
4052
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4052
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4053
4053
|
], 2);
|
|
4054
4054
|
};
|
|
4055
4055
|
}
|
|
@@ -4125,9 +4125,9 @@ var __spreadValues222 = (a, b) => {
|
|
|
4125
4125
|
}
|
|
4126
4126
|
return a;
|
|
4127
4127
|
};
|
|
4128
|
-
const _hoisted_1$
|
|
4129
|
-
const _hoisted_2$
|
|
4130
|
-
const _hoisted_3$
|
|
4128
|
+
const _hoisted_1$i = { class: "f-checkbox__wrapper" };
|
|
4129
|
+
const _hoisted_2$h = ["checked", "disabled"];
|
|
4130
|
+
const _hoisted_3$h = {
|
|
4131
4131
|
key: 0,
|
|
4132
4132
|
class: "f-checkbox__label"
|
|
4133
4133
|
};
|
|
@@ -4153,16 +4153,16 @@ const _hoisted_3$b = {
|
|
|
4153
4153
|
return openBlock(), createElementBlock("label", {
|
|
4154
4154
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4155
4155
|
}, [
|
|
4156
|
-
createElementVNode("span", _hoisted_1$
|
|
4156
|
+
createElementVNode("span", _hoisted_1$i, [
|
|
4157
4157
|
createElementVNode("input", {
|
|
4158
4158
|
type: "checkbox",
|
|
4159
4159
|
checked: modelValue.value,
|
|
4160
4160
|
disabled: _ctx.disabled,
|
|
4161
4161
|
onChange: handleChange
|
|
4162
|
-
}, null, 40, _hoisted_2$
|
|
4162
|
+
}, null, 40, _hoisted_2$h),
|
|
4163
4163
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4164
4164
|
]),
|
|
4165
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4165
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4166
4166
|
], 2);
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
@@ -4238,9 +4238,9 @@ var __spreadValues2222 = (a, b) => {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
return a;
|
|
4240
4240
|
};
|
|
4241
|
-
const _hoisted_1$
|
|
4242
|
-
const _hoisted_2$
|
|
4243
|
-
const _hoisted_3$
|
|
4241
|
+
const _hoisted_1$h = { class: "f-checkbox__wrapper" };
|
|
4242
|
+
const _hoisted_2$g = ["checked", "disabled"];
|
|
4243
|
+
const _hoisted_3$g = {
|
|
4244
4244
|
key: 0,
|
|
4245
4245
|
class: "f-checkbox__label"
|
|
4246
4246
|
};
|
|
@@ -4266,16 +4266,16 @@ const _hoisted_3$9 = {
|
|
|
4266
4266
|
return openBlock(), createElementBlock("label", {
|
|
4267
4267
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4268
4268
|
}, [
|
|
4269
|
-
createElementVNode("span", _hoisted_1$
|
|
4269
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
4270
4270
|
createElementVNode("input", {
|
|
4271
4271
|
type: "checkbox",
|
|
4272
4272
|
checked: modelValue.value,
|
|
4273
4273
|
disabled: _ctx.disabled,
|
|
4274
4274
|
onChange: handleChange
|
|
4275
|
-
}, null, 40, _hoisted_2$
|
|
4275
|
+
}, null, 40, _hoisted_2$g),
|
|
4276
4276
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4277
4277
|
]),
|
|
4278
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
4278
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$g, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4279
4279
|
], 2);
|
|
4280
4280
|
};
|
|
4281
4281
|
}
|
|
@@ -4335,6 +4335,684 @@ const _hoisted_3$9 = {
|
|
|
4335
4335
|
};
|
|
4336
4336
|
}
|
|
4337
4337
|
});
|
|
4338
|
+
var __defProp22222 = Object.defineProperty;
|
|
4339
|
+
var __getOwnPropSymbols22222 = Object.getOwnPropertySymbols;
|
|
4340
|
+
var __hasOwnProp22222 = Object.prototype.hasOwnProperty;
|
|
4341
|
+
var __propIsEnum22222 = Object.prototype.propertyIsEnumerable;
|
|
4342
|
+
var __defNormalProp22222 = (obj, key, value) => key in obj ? __defProp22222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4343
|
+
var __spreadValues22222 = (a, b) => {
|
|
4344
|
+
for (var prop in b || (b = {}))
|
|
4345
|
+
if (__hasOwnProp22222.call(b, prop))
|
|
4346
|
+
__defNormalProp22222(a, prop, b[prop]);
|
|
4347
|
+
if (__getOwnPropSymbols22222)
|
|
4348
|
+
for (var prop of __getOwnPropSymbols22222(b)) {
|
|
4349
|
+
if (__propIsEnum22222.call(b, prop))
|
|
4350
|
+
__defNormalProp22222(a, prop, b[prop]);
|
|
4351
|
+
}
|
|
4352
|
+
return a;
|
|
4353
|
+
};
|
|
4354
|
+
const _hoisted_1$g = { class: "f-checkbox__wrapper" };
|
|
4355
|
+
const _hoisted_2$f = ["checked", "disabled"];
|
|
4356
|
+
const _hoisted_3$f = {
|
|
4357
|
+
key: 0,
|
|
4358
|
+
class: "f-checkbox__label"
|
|
4359
|
+
};
|
|
4360
|
+
/* @__PURE__ */ defineComponent({
|
|
4361
|
+
__name: "FCheckbox",
|
|
4362
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4363
|
+
label: {},
|
|
4364
|
+
disabled: { type: Boolean }
|
|
4365
|
+
}, {
|
|
4366
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4367
|
+
"modelModifiers": {}
|
|
4368
|
+
}),
|
|
4369
|
+
emits: ["update:modelValue"],
|
|
4370
|
+
setup(__props) {
|
|
4371
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4372
|
+
const props = __props;
|
|
4373
|
+
const handleChange = (e) => {
|
|
4374
|
+
if (props.disabled) return;
|
|
4375
|
+
const target = e.target;
|
|
4376
|
+
modelValue.value = target.checked;
|
|
4377
|
+
};
|
|
4378
|
+
return (_ctx, _cache) => {
|
|
4379
|
+
return openBlock(), createElementBlock("label", {
|
|
4380
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4381
|
+
}, [
|
|
4382
|
+
createElementVNode("span", _hoisted_1$g, [
|
|
4383
|
+
createElementVNode("input", {
|
|
4384
|
+
type: "checkbox",
|
|
4385
|
+
checked: modelValue.value,
|
|
4386
|
+
disabled: _ctx.disabled,
|
|
4387
|
+
onChange: handleChange
|
|
4388
|
+
}, null, 40, _hoisted_2$f),
|
|
4389
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4390
|
+
]),
|
|
4391
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4392
|
+
], 2);
|
|
4393
|
+
};
|
|
4394
|
+
}
|
|
4395
|
+
});
|
|
4396
|
+
/* @__PURE__ */ defineComponent({
|
|
4397
|
+
__name: "FDialog",
|
|
4398
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4399
|
+
maskClosable: { type: Boolean, default: true },
|
|
4400
|
+
maskColor: { default: "black" },
|
|
4401
|
+
showMask: { type: Boolean, default: true }
|
|
4402
|
+
}, {
|
|
4403
|
+
"modelValue": __spreadValues22222({ type: Boolean }, { default: false }),
|
|
4404
|
+
"modelModifiers": {}
|
|
4405
|
+
}),
|
|
4406
|
+
emits: ["update:modelValue"],
|
|
4407
|
+
setup(__props) {
|
|
4408
|
+
const props = __props;
|
|
4409
|
+
const visible = useModel(__props, "modelValue");
|
|
4410
|
+
const handleMaskClick = () => {
|
|
4411
|
+
if (props.maskClosable) visible.value = false;
|
|
4412
|
+
};
|
|
4413
|
+
const maskBackgroundColor = computed(() => {
|
|
4414
|
+
if (!props.showMask) return "transparent";
|
|
4415
|
+
switch (props.maskColor) {
|
|
4416
|
+
case "white":
|
|
4417
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4418
|
+
case "black":
|
|
4419
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4420
|
+
case "transparent":
|
|
4421
|
+
return "transparent";
|
|
4422
|
+
default:
|
|
4423
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4424
|
+
}
|
|
4425
|
+
});
|
|
4426
|
+
return (_ctx, _cache) => {
|
|
4427
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4428
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4429
|
+
default: withCtx(() => [
|
|
4430
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4431
|
+
key: 0,
|
|
4432
|
+
class: "f-dialog-mask",
|
|
4433
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4434
|
+
onClick: handleMaskClick
|
|
4435
|
+
}, [
|
|
4436
|
+
createElementVNode("div", {
|
|
4437
|
+
class: "f-dialog-container",
|
|
4438
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4439
|
+
}, ["stop"]))
|
|
4440
|
+
}, [
|
|
4441
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4442
|
+
])
|
|
4443
|
+
], 4)) : createCommentVNode("", true)
|
|
4444
|
+
]),
|
|
4445
|
+
_: 3
|
|
4446
|
+
})
|
|
4447
|
+
]);
|
|
4448
|
+
};
|
|
4449
|
+
}
|
|
4450
|
+
});
|
|
4451
|
+
var __defProp222222 = Object.defineProperty;
|
|
4452
|
+
var __getOwnPropSymbols222222 = Object.getOwnPropertySymbols;
|
|
4453
|
+
var __hasOwnProp222222 = Object.prototype.hasOwnProperty;
|
|
4454
|
+
var __propIsEnum222222 = Object.prototype.propertyIsEnumerable;
|
|
4455
|
+
var __defNormalProp222222 = (obj, key, value) => key in obj ? __defProp222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4456
|
+
var __spreadValues222222 = (a, b) => {
|
|
4457
|
+
for (var prop in b || (b = {}))
|
|
4458
|
+
if (__hasOwnProp222222.call(b, prop))
|
|
4459
|
+
__defNormalProp222222(a, prop, b[prop]);
|
|
4460
|
+
if (__getOwnPropSymbols222222)
|
|
4461
|
+
for (var prop of __getOwnPropSymbols222222(b)) {
|
|
4462
|
+
if (__propIsEnum222222.call(b, prop))
|
|
4463
|
+
__defNormalProp222222(a, prop, b[prop]);
|
|
4464
|
+
}
|
|
4465
|
+
return a;
|
|
4466
|
+
};
|
|
4467
|
+
const _hoisted_1$f = { class: "f-checkbox__wrapper" };
|
|
4468
|
+
const _hoisted_2$e = ["checked", "disabled"];
|
|
4469
|
+
const _hoisted_3$e = {
|
|
4470
|
+
key: 0,
|
|
4471
|
+
class: "f-checkbox__label"
|
|
4472
|
+
};
|
|
4473
|
+
/* @__PURE__ */ defineComponent({
|
|
4474
|
+
__name: "FCheckbox",
|
|
4475
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4476
|
+
label: {},
|
|
4477
|
+
disabled: { type: Boolean }
|
|
4478
|
+
}, {
|
|
4479
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4480
|
+
"modelModifiers": {}
|
|
4481
|
+
}),
|
|
4482
|
+
emits: ["update:modelValue"],
|
|
4483
|
+
setup(__props) {
|
|
4484
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4485
|
+
const props = __props;
|
|
4486
|
+
const handleChange = (e) => {
|
|
4487
|
+
if (props.disabled) return;
|
|
4488
|
+
const target = e.target;
|
|
4489
|
+
modelValue.value = target.checked;
|
|
4490
|
+
};
|
|
4491
|
+
return (_ctx, _cache) => {
|
|
4492
|
+
return openBlock(), createElementBlock("label", {
|
|
4493
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4494
|
+
}, [
|
|
4495
|
+
createElementVNode("span", _hoisted_1$f, [
|
|
4496
|
+
createElementVNode("input", {
|
|
4497
|
+
type: "checkbox",
|
|
4498
|
+
checked: modelValue.value,
|
|
4499
|
+
disabled: _ctx.disabled,
|
|
4500
|
+
onChange: handleChange
|
|
4501
|
+
}, null, 40, _hoisted_2$e),
|
|
4502
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4503
|
+
]),
|
|
4504
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4505
|
+
], 2);
|
|
4506
|
+
};
|
|
4507
|
+
}
|
|
4508
|
+
});
|
|
4509
|
+
/* @__PURE__ */ defineComponent({
|
|
4510
|
+
__name: "FDialog",
|
|
4511
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4512
|
+
maskClosable: { type: Boolean, default: true },
|
|
4513
|
+
maskColor: { default: "black" },
|
|
4514
|
+
showMask: { type: Boolean, default: true }
|
|
4515
|
+
}, {
|
|
4516
|
+
"modelValue": __spreadValues222222({ type: Boolean }, { default: false }),
|
|
4517
|
+
"modelModifiers": {}
|
|
4518
|
+
}),
|
|
4519
|
+
emits: ["update:modelValue"],
|
|
4520
|
+
setup(__props) {
|
|
4521
|
+
const props = __props;
|
|
4522
|
+
const visible = useModel(__props, "modelValue");
|
|
4523
|
+
const handleMaskClick = () => {
|
|
4524
|
+
if (props.maskClosable) visible.value = false;
|
|
4525
|
+
};
|
|
4526
|
+
const maskBackgroundColor = computed(() => {
|
|
4527
|
+
if (!props.showMask) return "transparent";
|
|
4528
|
+
switch (props.maskColor) {
|
|
4529
|
+
case "white":
|
|
4530
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4531
|
+
case "black":
|
|
4532
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4533
|
+
case "transparent":
|
|
4534
|
+
return "transparent";
|
|
4535
|
+
default:
|
|
4536
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4537
|
+
}
|
|
4538
|
+
});
|
|
4539
|
+
return (_ctx, _cache) => {
|
|
4540
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4541
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4542
|
+
default: withCtx(() => [
|
|
4543
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4544
|
+
key: 0,
|
|
4545
|
+
class: "f-dialog-mask",
|
|
4546
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4547
|
+
onClick: handleMaskClick
|
|
4548
|
+
}, [
|
|
4549
|
+
createElementVNode("div", {
|
|
4550
|
+
class: "f-dialog-container",
|
|
4551
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4552
|
+
}, ["stop"]))
|
|
4553
|
+
}, [
|
|
4554
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4555
|
+
])
|
|
4556
|
+
], 4)) : createCommentVNode("", true)
|
|
4557
|
+
]),
|
|
4558
|
+
_: 3
|
|
4559
|
+
})
|
|
4560
|
+
]);
|
|
4561
|
+
};
|
|
4562
|
+
}
|
|
4563
|
+
});
|
|
4564
|
+
var __defProp2222222 = Object.defineProperty;
|
|
4565
|
+
var __getOwnPropSymbols2222222 = Object.getOwnPropertySymbols;
|
|
4566
|
+
var __hasOwnProp2222222 = Object.prototype.hasOwnProperty;
|
|
4567
|
+
var __propIsEnum2222222 = Object.prototype.propertyIsEnumerable;
|
|
4568
|
+
var __defNormalProp2222222 = (obj, key, value) => key in obj ? __defProp2222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4569
|
+
var __spreadValues2222222 = (a, b) => {
|
|
4570
|
+
for (var prop in b || (b = {}))
|
|
4571
|
+
if (__hasOwnProp2222222.call(b, prop))
|
|
4572
|
+
__defNormalProp2222222(a, prop, b[prop]);
|
|
4573
|
+
if (__getOwnPropSymbols2222222)
|
|
4574
|
+
for (var prop of __getOwnPropSymbols2222222(b)) {
|
|
4575
|
+
if (__propIsEnum2222222.call(b, prop))
|
|
4576
|
+
__defNormalProp2222222(a, prop, b[prop]);
|
|
4577
|
+
}
|
|
4578
|
+
return a;
|
|
4579
|
+
};
|
|
4580
|
+
const _hoisted_1$e = { class: "f-checkbox__wrapper" };
|
|
4581
|
+
const _hoisted_2$d = ["checked", "disabled"];
|
|
4582
|
+
const _hoisted_3$d = {
|
|
4583
|
+
key: 0,
|
|
4584
|
+
class: "f-checkbox__label"
|
|
4585
|
+
};
|
|
4586
|
+
/* @__PURE__ */ defineComponent({
|
|
4587
|
+
__name: "FCheckbox",
|
|
4588
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4589
|
+
label: {},
|
|
4590
|
+
disabled: { type: Boolean }
|
|
4591
|
+
}, {
|
|
4592
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4593
|
+
"modelModifiers": {}
|
|
4594
|
+
}),
|
|
4595
|
+
emits: ["update:modelValue"],
|
|
4596
|
+
setup(__props) {
|
|
4597
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4598
|
+
const props = __props;
|
|
4599
|
+
const handleChange = (e) => {
|
|
4600
|
+
if (props.disabled) return;
|
|
4601
|
+
const target = e.target;
|
|
4602
|
+
modelValue.value = target.checked;
|
|
4603
|
+
};
|
|
4604
|
+
return (_ctx, _cache) => {
|
|
4605
|
+
return openBlock(), createElementBlock("label", {
|
|
4606
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4607
|
+
}, [
|
|
4608
|
+
createElementVNode("span", _hoisted_1$e, [
|
|
4609
|
+
createElementVNode("input", {
|
|
4610
|
+
type: "checkbox",
|
|
4611
|
+
checked: modelValue.value,
|
|
4612
|
+
disabled: _ctx.disabled,
|
|
4613
|
+
onChange: handleChange
|
|
4614
|
+
}, null, 40, _hoisted_2$d),
|
|
4615
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4616
|
+
]),
|
|
4617
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4618
|
+
], 2);
|
|
4619
|
+
};
|
|
4620
|
+
}
|
|
4621
|
+
});
|
|
4622
|
+
/* @__PURE__ */ defineComponent({
|
|
4623
|
+
__name: "FDialog",
|
|
4624
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4625
|
+
maskClosable: { type: Boolean, default: true },
|
|
4626
|
+
maskColor: { default: "black" },
|
|
4627
|
+
showMask: { type: Boolean, default: true }
|
|
4628
|
+
}, {
|
|
4629
|
+
"modelValue": __spreadValues2222222({ type: Boolean }, { default: false }),
|
|
4630
|
+
"modelModifiers": {}
|
|
4631
|
+
}),
|
|
4632
|
+
emits: ["update:modelValue"],
|
|
4633
|
+
setup(__props) {
|
|
4634
|
+
const props = __props;
|
|
4635
|
+
const visible = useModel(__props, "modelValue");
|
|
4636
|
+
const handleMaskClick = () => {
|
|
4637
|
+
if (props.maskClosable) visible.value = false;
|
|
4638
|
+
};
|
|
4639
|
+
const maskBackgroundColor = computed(() => {
|
|
4640
|
+
if (!props.showMask) return "transparent";
|
|
4641
|
+
switch (props.maskColor) {
|
|
4642
|
+
case "white":
|
|
4643
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4644
|
+
case "black":
|
|
4645
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4646
|
+
case "transparent":
|
|
4647
|
+
return "transparent";
|
|
4648
|
+
default:
|
|
4649
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4650
|
+
}
|
|
4651
|
+
});
|
|
4652
|
+
return (_ctx, _cache) => {
|
|
4653
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4654
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4655
|
+
default: withCtx(() => [
|
|
4656
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4657
|
+
key: 0,
|
|
4658
|
+
class: "f-dialog-mask",
|
|
4659
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4660
|
+
onClick: handleMaskClick
|
|
4661
|
+
}, [
|
|
4662
|
+
createElementVNode("div", {
|
|
4663
|
+
class: "f-dialog-container",
|
|
4664
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4665
|
+
}, ["stop"]))
|
|
4666
|
+
}, [
|
|
4667
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4668
|
+
])
|
|
4669
|
+
], 4)) : createCommentVNode("", true)
|
|
4670
|
+
]),
|
|
4671
|
+
_: 3
|
|
4672
|
+
})
|
|
4673
|
+
]);
|
|
4674
|
+
};
|
|
4675
|
+
}
|
|
4676
|
+
});
|
|
4677
|
+
var __defProp22222222 = Object.defineProperty;
|
|
4678
|
+
var __getOwnPropSymbols22222222 = Object.getOwnPropertySymbols;
|
|
4679
|
+
var __hasOwnProp22222222 = Object.prototype.hasOwnProperty;
|
|
4680
|
+
var __propIsEnum22222222 = Object.prototype.propertyIsEnumerable;
|
|
4681
|
+
var __defNormalProp22222222 = (obj, key, value) => key in obj ? __defProp22222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4682
|
+
var __spreadValues22222222 = (a, b) => {
|
|
4683
|
+
for (var prop in b || (b = {}))
|
|
4684
|
+
if (__hasOwnProp22222222.call(b, prop))
|
|
4685
|
+
__defNormalProp22222222(a, prop, b[prop]);
|
|
4686
|
+
if (__getOwnPropSymbols22222222)
|
|
4687
|
+
for (var prop of __getOwnPropSymbols22222222(b)) {
|
|
4688
|
+
if (__propIsEnum22222222.call(b, prop))
|
|
4689
|
+
__defNormalProp22222222(a, prop, b[prop]);
|
|
4690
|
+
}
|
|
4691
|
+
return a;
|
|
4692
|
+
};
|
|
4693
|
+
const _hoisted_1$d = { class: "f-checkbox__wrapper" };
|
|
4694
|
+
const _hoisted_2$c = ["checked", "disabled"];
|
|
4695
|
+
const _hoisted_3$c = {
|
|
4696
|
+
key: 0,
|
|
4697
|
+
class: "f-checkbox__label"
|
|
4698
|
+
};
|
|
4699
|
+
/* @__PURE__ */ defineComponent({
|
|
4700
|
+
__name: "FCheckbox",
|
|
4701
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4702
|
+
label: {},
|
|
4703
|
+
disabled: { type: Boolean }
|
|
4704
|
+
}, {
|
|
4705
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4706
|
+
"modelModifiers": {}
|
|
4707
|
+
}),
|
|
4708
|
+
emits: ["update:modelValue"],
|
|
4709
|
+
setup(__props) {
|
|
4710
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4711
|
+
const props = __props;
|
|
4712
|
+
const handleChange = (e) => {
|
|
4713
|
+
if (props.disabled) return;
|
|
4714
|
+
const target = e.target;
|
|
4715
|
+
modelValue.value = target.checked;
|
|
4716
|
+
};
|
|
4717
|
+
return (_ctx, _cache) => {
|
|
4718
|
+
return openBlock(), createElementBlock("label", {
|
|
4719
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4720
|
+
}, [
|
|
4721
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
4722
|
+
createElementVNode("input", {
|
|
4723
|
+
type: "checkbox",
|
|
4724
|
+
checked: modelValue.value,
|
|
4725
|
+
disabled: _ctx.disabled,
|
|
4726
|
+
onChange: handleChange
|
|
4727
|
+
}, null, 40, _hoisted_2$c),
|
|
4728
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4729
|
+
]),
|
|
4730
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4731
|
+
], 2);
|
|
4732
|
+
};
|
|
4733
|
+
}
|
|
4734
|
+
});
|
|
4735
|
+
/* @__PURE__ */ defineComponent({
|
|
4736
|
+
__name: "FDialog",
|
|
4737
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4738
|
+
maskClosable: { type: Boolean, default: true },
|
|
4739
|
+
maskColor: { default: "black" },
|
|
4740
|
+
showMask: { type: Boolean, default: true }
|
|
4741
|
+
}, {
|
|
4742
|
+
"modelValue": __spreadValues22222222({ type: Boolean }, { default: false }),
|
|
4743
|
+
"modelModifiers": {}
|
|
4744
|
+
}),
|
|
4745
|
+
emits: ["update:modelValue"],
|
|
4746
|
+
setup(__props) {
|
|
4747
|
+
const props = __props;
|
|
4748
|
+
const visible = useModel(__props, "modelValue");
|
|
4749
|
+
const handleMaskClick = () => {
|
|
4750
|
+
if (props.maskClosable) visible.value = false;
|
|
4751
|
+
};
|
|
4752
|
+
const maskBackgroundColor = computed(() => {
|
|
4753
|
+
if (!props.showMask) return "transparent";
|
|
4754
|
+
switch (props.maskColor) {
|
|
4755
|
+
case "white":
|
|
4756
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4757
|
+
case "black":
|
|
4758
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4759
|
+
case "transparent":
|
|
4760
|
+
return "transparent";
|
|
4761
|
+
default:
|
|
4762
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4763
|
+
}
|
|
4764
|
+
});
|
|
4765
|
+
return (_ctx, _cache) => {
|
|
4766
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4767
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4768
|
+
default: withCtx(() => [
|
|
4769
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4770
|
+
key: 0,
|
|
4771
|
+
class: "f-dialog-mask",
|
|
4772
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4773
|
+
onClick: handleMaskClick
|
|
4774
|
+
}, [
|
|
4775
|
+
createElementVNode("div", {
|
|
4776
|
+
class: "f-dialog-container",
|
|
4777
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4778
|
+
}, ["stop"]))
|
|
4779
|
+
}, [
|
|
4780
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4781
|
+
])
|
|
4782
|
+
], 4)) : createCommentVNode("", true)
|
|
4783
|
+
]),
|
|
4784
|
+
_: 3
|
|
4785
|
+
})
|
|
4786
|
+
]);
|
|
4787
|
+
};
|
|
4788
|
+
}
|
|
4789
|
+
});
|
|
4790
|
+
var __defProp222222222 = Object.defineProperty;
|
|
4791
|
+
var __getOwnPropSymbols222222222 = Object.getOwnPropertySymbols;
|
|
4792
|
+
var __hasOwnProp222222222 = Object.prototype.hasOwnProperty;
|
|
4793
|
+
var __propIsEnum222222222 = Object.prototype.propertyIsEnumerable;
|
|
4794
|
+
var __defNormalProp222222222 = (obj, key, value) => key in obj ? __defProp222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4795
|
+
var __spreadValues222222222 = (a, b) => {
|
|
4796
|
+
for (var prop in b || (b = {}))
|
|
4797
|
+
if (__hasOwnProp222222222.call(b, prop))
|
|
4798
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
4799
|
+
if (__getOwnPropSymbols222222222)
|
|
4800
|
+
for (var prop of __getOwnPropSymbols222222222(b)) {
|
|
4801
|
+
if (__propIsEnum222222222.call(b, prop))
|
|
4802
|
+
__defNormalProp222222222(a, prop, b[prop]);
|
|
4803
|
+
}
|
|
4804
|
+
return a;
|
|
4805
|
+
};
|
|
4806
|
+
const _hoisted_1$c = { class: "f-checkbox__wrapper" };
|
|
4807
|
+
const _hoisted_2$b = ["checked", "disabled"];
|
|
4808
|
+
const _hoisted_3$b = {
|
|
4809
|
+
key: 0,
|
|
4810
|
+
class: "f-checkbox__label"
|
|
4811
|
+
};
|
|
4812
|
+
/* @__PURE__ */ defineComponent({
|
|
4813
|
+
__name: "FCheckbox",
|
|
4814
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4815
|
+
label: {},
|
|
4816
|
+
disabled: { type: Boolean }
|
|
4817
|
+
}, {
|
|
4818
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4819
|
+
"modelModifiers": {}
|
|
4820
|
+
}),
|
|
4821
|
+
emits: ["update:modelValue"],
|
|
4822
|
+
setup(__props) {
|
|
4823
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4824
|
+
const props = __props;
|
|
4825
|
+
const handleChange = (e) => {
|
|
4826
|
+
if (props.disabled) return;
|
|
4827
|
+
const target = e.target;
|
|
4828
|
+
modelValue.value = target.checked;
|
|
4829
|
+
};
|
|
4830
|
+
return (_ctx, _cache) => {
|
|
4831
|
+
return openBlock(), createElementBlock("label", {
|
|
4832
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4833
|
+
}, [
|
|
4834
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
4835
|
+
createElementVNode("input", {
|
|
4836
|
+
type: "checkbox",
|
|
4837
|
+
checked: modelValue.value,
|
|
4838
|
+
disabled: _ctx.disabled,
|
|
4839
|
+
onChange: handleChange
|
|
4840
|
+
}, null, 40, _hoisted_2$b),
|
|
4841
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4842
|
+
]),
|
|
4843
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4844
|
+
], 2);
|
|
4845
|
+
};
|
|
4846
|
+
}
|
|
4847
|
+
});
|
|
4848
|
+
/* @__PURE__ */ defineComponent({
|
|
4849
|
+
__name: "FDialog",
|
|
4850
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4851
|
+
maskClosable: { type: Boolean, default: true },
|
|
4852
|
+
maskColor: { default: "black" },
|
|
4853
|
+
showMask: { type: Boolean, default: true }
|
|
4854
|
+
}, {
|
|
4855
|
+
"modelValue": __spreadValues222222222({ type: Boolean }, { default: false }),
|
|
4856
|
+
"modelModifiers": {}
|
|
4857
|
+
}),
|
|
4858
|
+
emits: ["update:modelValue"],
|
|
4859
|
+
setup(__props) {
|
|
4860
|
+
const props = __props;
|
|
4861
|
+
const visible = useModel(__props, "modelValue");
|
|
4862
|
+
const handleMaskClick = () => {
|
|
4863
|
+
if (props.maskClosable) visible.value = false;
|
|
4864
|
+
};
|
|
4865
|
+
const maskBackgroundColor = computed(() => {
|
|
4866
|
+
if (!props.showMask) return "transparent";
|
|
4867
|
+
switch (props.maskColor) {
|
|
4868
|
+
case "white":
|
|
4869
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4870
|
+
case "black":
|
|
4871
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4872
|
+
case "transparent":
|
|
4873
|
+
return "transparent";
|
|
4874
|
+
default:
|
|
4875
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4876
|
+
}
|
|
4877
|
+
});
|
|
4878
|
+
return (_ctx, _cache) => {
|
|
4879
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4880
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4881
|
+
default: withCtx(() => [
|
|
4882
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4883
|
+
key: 0,
|
|
4884
|
+
class: "f-dialog-mask",
|
|
4885
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4886
|
+
onClick: handleMaskClick
|
|
4887
|
+
}, [
|
|
4888
|
+
createElementVNode("div", {
|
|
4889
|
+
class: "f-dialog-container",
|
|
4890
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
4891
|
+
}, ["stop"]))
|
|
4892
|
+
}, [
|
|
4893
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4894
|
+
])
|
|
4895
|
+
], 4)) : createCommentVNode("", true)
|
|
4896
|
+
]),
|
|
4897
|
+
_: 3
|
|
4898
|
+
})
|
|
4899
|
+
]);
|
|
4900
|
+
};
|
|
4901
|
+
}
|
|
4902
|
+
});
|
|
4903
|
+
var __defProp2222222222 = Object.defineProperty;
|
|
4904
|
+
var __getOwnPropSymbols2222222222 = Object.getOwnPropertySymbols;
|
|
4905
|
+
var __hasOwnProp2222222222 = Object.prototype.hasOwnProperty;
|
|
4906
|
+
var __propIsEnum2222222222 = Object.prototype.propertyIsEnumerable;
|
|
4907
|
+
var __defNormalProp2222222222 = (obj, key, value) => key in obj ? __defProp2222222222(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4908
|
+
var __spreadValues2222222222 = (a, b) => {
|
|
4909
|
+
for (var prop in b || (b = {}))
|
|
4910
|
+
if (__hasOwnProp2222222222.call(b, prop))
|
|
4911
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4912
|
+
if (__getOwnPropSymbols2222222222)
|
|
4913
|
+
for (var prop of __getOwnPropSymbols2222222222(b)) {
|
|
4914
|
+
if (__propIsEnum2222222222.call(b, prop))
|
|
4915
|
+
__defNormalProp2222222222(a, prop, b[prop]);
|
|
4916
|
+
}
|
|
4917
|
+
return a;
|
|
4918
|
+
};
|
|
4919
|
+
const _hoisted_1$a = { class: "f-checkbox__wrapper" };
|
|
4920
|
+
const _hoisted_2$9 = ["checked", "disabled"];
|
|
4921
|
+
const _hoisted_3$9 = {
|
|
4922
|
+
key: 0,
|
|
4923
|
+
class: "f-checkbox__label"
|
|
4924
|
+
};
|
|
4925
|
+
/* @__PURE__ */ defineComponent({
|
|
4926
|
+
__name: "FCheckbox",
|
|
4927
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4928
|
+
label: {},
|
|
4929
|
+
disabled: { type: Boolean }
|
|
4930
|
+
}, {
|
|
4931
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4932
|
+
"modelModifiers": {}
|
|
4933
|
+
}),
|
|
4934
|
+
emits: ["update:modelValue"],
|
|
4935
|
+
setup(__props) {
|
|
4936
|
+
const modelValue = useModel(__props, "modelValue");
|
|
4937
|
+
const props = __props;
|
|
4938
|
+
const handleChange = (e) => {
|
|
4939
|
+
if (props.disabled) return;
|
|
4940
|
+
const target = e.target;
|
|
4941
|
+
modelValue.value = target.checked;
|
|
4942
|
+
};
|
|
4943
|
+
return (_ctx, _cache) => {
|
|
4944
|
+
return openBlock(), createElementBlock("label", {
|
|
4945
|
+
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
4946
|
+
}, [
|
|
4947
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
4948
|
+
createElementVNode("input", {
|
|
4949
|
+
type: "checkbox",
|
|
4950
|
+
checked: modelValue.value,
|
|
4951
|
+
disabled: _ctx.disabled,
|
|
4952
|
+
onChange: handleChange
|
|
4953
|
+
}, null, 40, _hoisted_2$9),
|
|
4954
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
4955
|
+
]),
|
|
4956
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
4957
|
+
], 2);
|
|
4958
|
+
};
|
|
4959
|
+
}
|
|
4960
|
+
});
|
|
4961
|
+
/* @__PURE__ */ defineComponent({
|
|
4962
|
+
__name: "FDialog",
|
|
4963
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4964
|
+
maskClosable: { type: Boolean, default: true },
|
|
4965
|
+
maskColor: { default: "black" },
|
|
4966
|
+
showMask: { type: Boolean, default: true }
|
|
4967
|
+
}, {
|
|
4968
|
+
"modelValue": __spreadValues2222222222({ type: Boolean }, { default: false }),
|
|
4969
|
+
"modelModifiers": {}
|
|
4970
|
+
}),
|
|
4971
|
+
emits: ["update:modelValue"],
|
|
4972
|
+
setup(__props) {
|
|
4973
|
+
const props = __props;
|
|
4974
|
+
const visible = useModel(__props, "modelValue");
|
|
4975
|
+
const handleMaskClick = () => {
|
|
4976
|
+
if (props.maskClosable) visible.value = false;
|
|
4977
|
+
};
|
|
4978
|
+
const maskBackgroundColor = computed(() => {
|
|
4979
|
+
if (!props.showMask) return "transparent";
|
|
4980
|
+
switch (props.maskColor) {
|
|
4981
|
+
case "white":
|
|
4982
|
+
return "rgba(255, 255, 255, 0.5)";
|
|
4983
|
+
case "black":
|
|
4984
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4985
|
+
case "transparent":
|
|
4986
|
+
return "transparent";
|
|
4987
|
+
default:
|
|
4988
|
+
return "rgba(0, 0, 0, 0.5)";
|
|
4989
|
+
}
|
|
4990
|
+
});
|
|
4991
|
+
return (_ctx, _cache) => {
|
|
4992
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
4993
|
+
createVNode(Transition, { name: "fade" }, {
|
|
4994
|
+
default: withCtx(() => [
|
|
4995
|
+
visible.value ? (openBlock(), createElementBlock("div", {
|
|
4996
|
+
key: 0,
|
|
4997
|
+
class: "f-dialog-mask",
|
|
4998
|
+
style: normalizeStyle({ backgroundColor: unref(maskBackgroundColor) }),
|
|
4999
|
+
onClick: handleMaskClick
|
|
5000
|
+
}, [
|
|
5001
|
+
createElementVNode("div", {
|
|
5002
|
+
class: "f-dialog-container",
|
|
5003
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5004
|
+
}, ["stop"]))
|
|
5005
|
+
}, [
|
|
5006
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5007
|
+
])
|
|
5008
|
+
], 4)) : createCommentVNode("", true)
|
|
5009
|
+
]),
|
|
5010
|
+
_: 3
|
|
5011
|
+
})
|
|
5012
|
+
]);
|
|
5013
|
+
};
|
|
5014
|
+
}
|
|
5015
|
+
});
|
|
4338
5016
|
const _hoisted_1 = { class: "f-result__icon" };
|
|
4339
5017
|
const _hoisted_2 = {
|
|
4340
5018
|
key: 0,
|