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