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