fantasia-ui 0.2.63 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fantasia-ui.css +8334 -1531
- package/dist/fantasia-ui.es.js +887 -414
- package/dist/fantasia-ui.umd.js +886 -413
- package/dist/types/packages/components/index.d.ts +1 -0
- package/dist/types/packages/components/modules/FButton.vue.d.ts +3 -2
- package/dist/types/packages/components/modules/FCollapse.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FCrop.vue.d.ts +33 -0
- package/dist/types/packages/components/modules/FDialog.vue.d.ts +0 -1
- package/dist/types/packages/components/modules/FUpload.vue.d.ts +2 -2
- package/dist/types/packages/index.d.ts +2 -2
- package/dist/types/packages/types/components/index.d.ts +1 -0
- package/dist/types/packages/types/components/modules/f-crop.d.ts +85 -0
- package/dist/types/packages/types/models/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -37,10 +37,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, inject, createBlock, resolveDynamicComponent, nextTick, onUnmounted, Teleport, withModifiers, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, provide, onMounted, readonly, onBeforeUnmount, reactive, toRefs, createStaticVNode, h, render } from "vue";
|
|
40
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, normalizeClass, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, ref, watch, createVNode, withDirectives, Transition, withCtx, vShow, mergeModels, useModel, inject, createBlock, resolveDynamicComponent, nextTick, onUnmounted, Teleport, withModifiers, withKeys, isRef, vModelText, createTextVNode, TransitionGroup, useSlots, Comment as Comment$1, Text, provide, onMounted, readonly, onBeforeUnmount, reactive, toRefs, createStaticVNode, h, render } from "vue";
|
|
41
41
|
import { CloseCircleOutline, EyeOutline, EyeOffOutline, StarOutline, StarHalf, Star, ChevronDownOutline, ChevronBackOutline, EllipsisHorizontal, ChevronForwardOutline, CloseCircle, Close, Person, InformationCircleOutline, WarningOutline, AlertCircleOutline, CheckmarkCircleOutline, CloudUpload, CheckmarkCircle, AlertCircle, DocumentOutline, Reload, RemoveOutline, AddOutline, ChevronUpOutline, InformationCircle, CloseOutline, Warning } from "@vicons/ionicons5";
|
|
42
42
|
import { useEventListener } from "@vueuse/core";
|
|
43
|
-
const _sfc_main$
|
|
43
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
44
44
|
__name: "FIcon",
|
|
45
45
|
props: {
|
|
46
46
|
color: {},
|
|
@@ -71,17 +71,17 @@ const _export_sfc = (sfc, props) => {
|
|
|
71
71
|
}
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
|
-
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
+
const FIcon = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-50cd082e"]]);
|
|
75
75
|
const PictureError = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1780285609860'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12961'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M894.4%20281.504a39.36%2039.36%200%200%200-27.104-11.808l-293.888-10.976-22.016%2046.88%2030.592%2087.2-55.2%2099.008%2022.4%2079.904%2056%2068.48%2081.024-70.496c7.808-6.88%2020.288-6.496%2027.104%201.216l103.904%20106.4c7.296%207.296%206.88%2019.2-0.928%2026.112a18.944%2018.944%200%200%201-13.76%204.896l-284.8-10.624-14.24%2038.72%2015.52%2034.592%20327.488%2011.808c21.504%200.8%2039.616-15.104%2040.096-35.52l18.208-439.296a34.368%2034.368%200%200%200-10.4-26.496zM684.096%20483.2c-32.32-1.184-57.28-26.88-56-57.088%201.28-30.592%2028.416-54.208%2060.288-52.992%2031.904%201.184%2057.312%2026.88%2056%2057.088-1.184%2030.208-28.384%2054.304-60.288%2052.992z%20m-211.104%20253.6l9.92-40.8-231.424%2015.104c-10.784%200.8-19.776-6.496-20.672-16.704a17.856%2017.856%200%200%201%204.672-13.504l171.52-186.272a18.048%2018.048%200%200%201%2014.208-6.112c5.184%200%2010.272%201.984%2014.176%205.696l57.28%2056.704-24.576-60.32%2044-104.288L472%20302.72l16.384-48.096-315.392%2020.8c-21.504%201.184-37.504%2018.784-36.192%2039.072l31.904%20439.424c0.384%209.792%205.184%2018.688%2013.408%2024.896%207.776%206.496%2017.696%209.792%2028%208.992l281.792-18.304-18.88-32.704z'%20p-id='12962'%3e%3c/path%3e%3c/svg%3e";
|
|
76
|
-
const _hoisted_1$
|
|
76
|
+
const _hoisted_1$F = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "loop cubes"
|
|
79
79
|
};
|
|
80
|
-
const _hoisted_2$
|
|
80
|
+
const _hoisted_2$x = {
|
|
81
81
|
key: 2,
|
|
82
82
|
class: "msg"
|
|
83
83
|
};
|
|
84
|
-
const _sfc_main$
|
|
84
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
85
85
|
__name: "FLoading",
|
|
86
86
|
props: {
|
|
87
87
|
type: { default: "dots" },
|
|
@@ -94,7 +94,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
return openBlock(), createElementBlock("div", {
|
|
95
95
|
class: normalizeClass(["flex-center-col size-full loading-container", { "global-mask": _ctx.mask }])
|
|
96
96
|
}, [
|
|
97
|
-
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
97
|
+
_ctx.type === "cubes" ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
98
98
|
(openBlock(), createElementBlock(Fragment, null, renderList(6, (i) => {
|
|
99
99
|
return createElementVNode("div", {
|
|
100
100
|
class: "item cubes",
|
|
@@ -105,23 +105,23 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
key: 1,
|
|
106
106
|
class: normalizeClass(["loader", _ctx.type])
|
|
107
107
|
}, null, 2)),
|
|
108
|
-
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
108
|
+
props.text ? (openBlock(), createElementBlock("p", _hoisted_2$x, toDisplayString(props.text), 1)) : createCommentVNode("", true)
|
|
109
109
|
], 2);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
114
|
-
const _hoisted_1$
|
|
115
|
-
const _hoisted_2$
|
|
113
|
+
const FLoading = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-b0bde403"]]);
|
|
114
|
+
const _hoisted_1$E = { class: "f-image" };
|
|
115
|
+
const _hoisted_2$w = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "f-image__placeholder"
|
|
118
118
|
};
|
|
119
|
-
const _hoisted_3$
|
|
119
|
+
const _hoisted_3$r = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "f-image__error"
|
|
122
122
|
};
|
|
123
|
-
const _hoisted_4$
|
|
124
|
-
const _sfc_main$
|
|
123
|
+
const _hoisted_4$i = ["src", "loading"];
|
|
124
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
125
125
|
__name: "FImage",
|
|
126
126
|
props: {
|
|
127
127
|
src: {},
|
|
@@ -138,10 +138,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
const onLoad = () => status.value = "loaded";
|
|
139
139
|
const onError = () => status.value = "error";
|
|
140
140
|
return (_ctx, _cache) => {
|
|
141
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
141
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
142
142
|
createVNode(Transition, { name: "fade" }, {
|
|
143
143
|
default: withCtx(() => [
|
|
144
|
-
unref(status) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
144
|
+
unref(status) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
145
145
|
createVNode(FLoading, { type: "classic first" })
|
|
146
146
|
])) : createCommentVNode("", true)
|
|
147
147
|
]),
|
|
@@ -149,7 +149,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
}),
|
|
150
150
|
createVNode(Transition, { name: "fade" }, {
|
|
151
151
|
default: withCtx(() => [
|
|
152
|
-
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
152
|
+
unref(status) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
153
153
|
renderSlot(_ctx.$slots, "error", {}, () => [
|
|
154
154
|
createVNode(FIcon, { size: "48px" }, {
|
|
155
155
|
default: withCtx(() => [
|
|
@@ -169,17 +169,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
class: "f-image__img",
|
|
170
170
|
onLoad,
|
|
171
171
|
onError
|
|
172
|
-
}, null, 44, _hoisted_4$
|
|
172
|
+
}, null, 44, _hoisted_4$i), [
|
|
173
173
|
[vShow, unref(status) === "loaded"]
|
|
174
174
|
])
|
|
175
175
|
]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _hoisted_2$
|
|
182
|
-
const _sfc_main$
|
|
179
|
+
const FImage = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-3057ceb9"]]);
|
|
180
|
+
const _hoisted_1$D = ["type", "value", "placeholder"];
|
|
181
|
+
const _hoisted_2$v = { class: "f-input__suffix" };
|
|
182
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
183
183
|
__name: "FInput",
|
|
184
184
|
props: /* @__PURE__ */ mergeModels({
|
|
185
185
|
type: {},
|
|
@@ -244,8 +244,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
244
244
|
onBlur,
|
|
245
245
|
onFocus,
|
|
246
246
|
class: "f-input__inner"
|
|
247
|
-
}, null, 40, _hoisted_1$
|
|
248
|
-
createElementVNode("div", _hoisted_2$
|
|
247
|
+
}, null, 40, _hoisted_1$D),
|
|
248
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
249
249
|
unref(showClearIcon) ? (openBlock(), createBlock(FIcon, {
|
|
250
250
|
key: 0,
|
|
251
251
|
onClick: clearValue,
|
|
@@ -272,13 +272,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
276
|
-
const _hoisted_1$
|
|
277
|
-
const _hoisted_2$
|
|
275
|
+
const FInput = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-e5e139ea"]]);
|
|
276
|
+
const _hoisted_1$C = ["onMousemove"];
|
|
277
|
+
const _hoisted_2$u = {
|
|
278
278
|
key: 0,
|
|
279
279
|
class: "f-rate__score"
|
|
280
280
|
};
|
|
281
|
-
const _sfc_main$
|
|
281
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
282
282
|
__name: "FRate",
|
|
283
283
|
props: /* @__PURE__ */ mergeModels({
|
|
284
284
|
modelValue: {},
|
|
@@ -361,22 +361,22 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
361
361
|
]),
|
|
362
362
|
_: 2
|
|
363
363
|
}, 1032, ["color", "size"])
|
|
364
|
-
], 40, _hoisted_1$
|
|
364
|
+
], 40, _hoisted_1$C);
|
|
365
365
|
}), 128)),
|
|
366
|
-
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
366
|
+
props.showText ? (openBlock(), createElementBlock("span", _hoisted_2$u, toDisplayString(unref(scoreText)), 1)) : createCommentVNode("", true)
|
|
367
367
|
], 34);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
-
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
372
|
-
const _hoisted_1$
|
|
373
|
-
const _hoisted_2$
|
|
374
|
-
const _hoisted_3$
|
|
371
|
+
const FRate = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-b6e077c9"]]);
|
|
372
|
+
const _hoisted_1$B = { class: "f-dropdown-content" };
|
|
373
|
+
const _hoisted_2$t = ["onClick"];
|
|
374
|
+
const _hoisted_3$q = {
|
|
375
375
|
key: 0,
|
|
376
376
|
class: "opt-icon"
|
|
377
377
|
};
|
|
378
|
-
const _hoisted_4$
|
|
379
|
-
const _sfc_main$
|
|
378
|
+
const _hoisted_4$h = { class: "opt-label" };
|
|
379
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
380
380
|
__name: "FDropdown",
|
|
381
381
|
props: {
|
|
382
382
|
placement: { default: "right-start" },
|
|
@@ -581,18 +581,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
581
581
|
class: "f-dropdown-bridge",
|
|
582
582
|
style: normalizeStyle(unref(bridgeStyle))
|
|
583
583
|
}, null, 4)) : createCommentVNode("", true),
|
|
584
|
-
createElementVNode("div", _hoisted_1$
|
|
584
|
+
createElementVNode("div", _hoisted_1$B, [
|
|
585
585
|
_ctx.options && _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (opt) => {
|
|
586
586
|
return openBlock(), createElementBlock("div", {
|
|
587
587
|
key: opt.key,
|
|
588
588
|
class: normalizeClass(["f-dropdown-option", { "is-disabled": opt.disabled }]),
|
|
589
589
|
onClick: ($event) => handleOptionClick(opt)
|
|
590
590
|
}, [
|
|
591
|
-
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
591
|
+
opt.icon ? (openBlock(), createElementBlock("span", _hoisted_3$q, [
|
|
592
592
|
(openBlock(), createBlock(resolveDynamicComponent(opt.icon)))
|
|
593
593
|
])) : createCommentVNode("", true),
|
|
594
|
-
createElementVNode("span", _hoisted_4$
|
|
595
|
-
], 10, _hoisted_2$
|
|
594
|
+
createElementVNode("span", _hoisted_4$h, toDisplayString(opt.label), 1)
|
|
595
|
+
], 10, _hoisted_2$t);
|
|
596
596
|
}), 128)) : renderSlot(_ctx.$slots, "content", { key: 1 }, void 0, true)
|
|
597
597
|
])
|
|
598
598
|
], 36)) : createCommentVNode("", true)
|
|
@@ -604,9 +604,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
|
-
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
608
|
-
const _hoisted_1$
|
|
609
|
-
const _sfc_main$
|
|
607
|
+
const FDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-9ba0c959"]]);
|
|
608
|
+
const _hoisted_1$A = { class: "f-select__suffix" };
|
|
609
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
610
610
|
__name: "FSelect",
|
|
611
611
|
props: /* @__PURE__ */ mergeModels({
|
|
612
612
|
options: {},
|
|
@@ -675,7 +675,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
675
675
|
createElementVNode("span", {
|
|
676
676
|
class: normalizeClass(["f-select__label", { "is-placeholder": !unref(hasValue) }])
|
|
677
677
|
}, toDisplayString(unref(selectedLabel)), 3),
|
|
678
|
-
createElementVNode("div", _hoisted_1$
|
|
678
|
+
createElementVNode("div", _hoisted_1$A, [
|
|
679
679
|
unref(showClear) ? (openBlock(), createBlock(FIcon, {
|
|
680
680
|
key: 0,
|
|
681
681
|
class: "f-select__clear",
|
|
@@ -700,22 +700,22 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
});
|
|
703
|
-
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
704
|
-
const _hoisted_1$
|
|
703
|
+
const FSelect = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-2b219c49"]]);
|
|
704
|
+
const _hoisted_1$z = {
|
|
705
705
|
key: 0,
|
|
706
706
|
class: "f-pagination"
|
|
707
707
|
};
|
|
708
|
-
const _hoisted_2$
|
|
708
|
+
const _hoisted_2$s = {
|
|
709
709
|
key: 0,
|
|
710
710
|
class: "f-pagination__total"
|
|
711
711
|
};
|
|
712
|
-
const _hoisted_3$
|
|
712
|
+
const _hoisted_3$p = {
|
|
713
713
|
key: 1,
|
|
714
714
|
class: "f-pagination__size"
|
|
715
715
|
};
|
|
716
|
-
const _hoisted_4$
|
|
717
|
-
const _hoisted_5$
|
|
718
|
-
const _hoisted_6$
|
|
716
|
+
const _hoisted_4$g = ["value"];
|
|
717
|
+
const _hoisted_5$b = ["value"];
|
|
718
|
+
const _hoisted_6$9 = {
|
|
719
719
|
key: 3,
|
|
720
720
|
class: "f-pagination__list"
|
|
721
721
|
};
|
|
@@ -729,7 +729,7 @@ const _hoisted_9$3 = {
|
|
|
729
729
|
class: "f-pagination__jump"
|
|
730
730
|
};
|
|
731
731
|
const _hoisted_10$3 = ["max"];
|
|
732
|
-
const _sfc_main$
|
|
732
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
733
733
|
__name: "FPagination",
|
|
734
734
|
props: /* @__PURE__ */ mergeModels({
|
|
735
735
|
total: {},
|
|
@@ -778,10 +778,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
778
778
|
jumpInput.value = "";
|
|
779
779
|
};
|
|
780
780
|
return (_ctx, _cache) => {
|
|
781
|
-
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
781
|
+
return !_ctx.hideOnSingle || unref(pageCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
782
782
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
|
|
783
783
|
return openBlock(), createElementBlock(Fragment, { key: item }, [
|
|
784
|
-
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
784
|
+
item === "total" ? (openBlock(), createElementBlock("span", _hoisted_2$s, " 共 " + toDisplayString(_ctx.total) + " 条 ", 1)) : item === "sizes" ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
785
785
|
createElementVNode("select", {
|
|
786
786
|
class: "size-select",
|
|
787
787
|
value: _ctx.pageSize,
|
|
@@ -791,9 +791,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
791
791
|
return openBlock(), createElementBlock("option", {
|
|
792
792
|
key: s,
|
|
793
793
|
value: s
|
|
794
|
-
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$
|
|
794
|
+
}, toDisplayString(s) + " 条/页", 9, _hoisted_5$b);
|
|
795
795
|
}), 128))
|
|
796
|
-
], 40, _hoisted_4$
|
|
796
|
+
], 40, _hoisted_4$g)
|
|
797
797
|
])) : item === "prev" ? (openBlock(), createElementBlock("button", {
|
|
798
798
|
key: 2,
|
|
799
799
|
class: normalizeClass(["page-btn", { disabled: currentPage.value === 1 }]),
|
|
@@ -805,7 +805,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
805
805
|
]),
|
|
806
806
|
_: 1
|
|
807
807
|
})
|
|
808
|
-
], 2)) : item === "pager" ? (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
808
|
+
], 2)) : item === "pager" ? (openBlock(), createElementBlock("ul", _hoisted_6$9, [
|
|
809
809
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pages), (page, index) => {
|
|
810
810
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
811
811
|
page === "..." ? (openBlock(), createElementBlock("li", _hoisted_7$5, [
|
|
@@ -854,28 +854,28 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
});
|
|
857
|
-
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
858
|
-
const _hoisted_1$
|
|
857
|
+
const FPagination = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-a9438fb8"]]);
|
|
858
|
+
const _hoisted_1$y = {
|
|
859
859
|
key: 0,
|
|
860
860
|
class: "f-card__header"
|
|
861
861
|
};
|
|
862
|
-
const _hoisted_2$
|
|
862
|
+
const _hoisted_2$r = {
|
|
863
863
|
key: 0,
|
|
864
864
|
class: "f-card__header-extra"
|
|
865
865
|
};
|
|
866
|
-
const _hoisted_3$
|
|
866
|
+
const _hoisted_3$o = {
|
|
867
867
|
key: 1,
|
|
868
868
|
class: "f-card__cover"
|
|
869
869
|
};
|
|
870
|
-
const _hoisted_4$
|
|
870
|
+
const _hoisted_4$f = {
|
|
871
871
|
key: 2,
|
|
872
872
|
class: "f-card__body"
|
|
873
873
|
};
|
|
874
|
-
const _hoisted_5$
|
|
874
|
+
const _hoisted_5$a = {
|
|
875
875
|
key: 3,
|
|
876
876
|
class: "f-card__footer"
|
|
877
877
|
};
|
|
878
|
-
const _hoisted_6$
|
|
878
|
+
const _hoisted_6$8 = {
|
|
879
879
|
key: 0,
|
|
880
880
|
class: "f-card__header"
|
|
881
881
|
};
|
|
@@ -896,7 +896,7 @@ const _hoisted_11$2 = {
|
|
|
896
896
|
key: 1,
|
|
897
897
|
class: "f-card__footer"
|
|
898
898
|
};
|
|
899
|
-
const _sfc_main$
|
|
899
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
900
900
|
__name: "FCard",
|
|
901
901
|
props: {
|
|
902
902
|
hoverable: { type: Boolean, default: true },
|
|
@@ -908,23 +908,23 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
908
908
|
class: normalizeClass(["f-card", [`f-card--${_ctx.direction}`, { "is-hoverable": _ctx.hoverable }]])
|
|
909
909
|
}, [
|
|
910
910
|
_ctx.direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
911
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
911
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
912
912
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
913
|
-
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
913
|
+
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
|
|
914
914
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
915
915
|
])) : createCommentVNode("", true)
|
|
916
916
|
])) : createCommentVNode("", true),
|
|
917
|
-
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
917
|
+
_ctx.$slots.cover ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
918
918
|
renderSlot(_ctx.$slots, "cover", {}, void 0, true)
|
|
919
919
|
])) : createCommentVNode("", true),
|
|
920
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
920
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$f, [
|
|
921
921
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
922
922
|
])) : createCommentVNode("", true),
|
|
923
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
923
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
924
924
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
925
925
|
])) : createCommentVNode("", true)
|
|
926
926
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
927
|
-
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
927
|
+
_ctx.$slots.header || _ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
928
928
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
929
929
|
_ctx.$slots["header-extra"] ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
930
930
|
renderSlot(_ctx.$slots, "header-extra", {}, void 0, true)
|
|
@@ -946,12 +946,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
948
|
});
|
|
949
|
-
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
950
|
-
const _hoisted_1$
|
|
949
|
+
const FCard = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-59b9e149"]]);
|
|
950
|
+
const _hoisted_1$x = {
|
|
951
951
|
key: 0,
|
|
952
952
|
class: "f-tag__dot"
|
|
953
953
|
};
|
|
954
|
-
const _sfc_main$
|
|
954
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
955
955
|
__name: "FTag",
|
|
956
956
|
props: {
|
|
957
957
|
color: {},
|
|
@@ -975,7 +975,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
975
975
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHover.value = true),
|
|
976
976
|
onMouseleave: _cache[2] || (_cache[2] = ($event) => isHover.value = false)
|
|
977
977
|
}, [
|
|
978
|
-
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
978
|
+
_ctx.type === "dot" ? (openBlock(), createElementBlock("span", _hoisted_1$x)) : createCommentVNode("", true),
|
|
979
979
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
980
980
|
_ctx.closable ? (openBlock(), createBlock(FIcon, {
|
|
981
981
|
key: 1,
|
|
@@ -991,8 +991,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
995
|
-
const _sfc_main$
|
|
994
|
+
const FTag = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-19e20dd3"]]);
|
|
995
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
996
996
|
__name: "FTooltip",
|
|
997
997
|
props: {
|
|
998
998
|
content: {},
|
|
@@ -1096,13 +1096,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
1098
|
});
|
|
1099
|
-
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1100
|
-
const _hoisted_1$
|
|
1101
|
-
const _hoisted_2$
|
|
1099
|
+
const FTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-37ae9256"]]);
|
|
1100
|
+
const _hoisted_1$w = { class: "f-progress" };
|
|
1101
|
+
const _hoisted_2$q = {
|
|
1102
1102
|
key: 0,
|
|
1103
1103
|
class: "f-progress__text"
|
|
1104
1104
|
};
|
|
1105
|
-
const _sfc_main$
|
|
1105
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1106
1106
|
__name: "FProgress",
|
|
1107
1107
|
props: {
|
|
1108
1108
|
percent: {},
|
|
@@ -1114,7 +1114,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1114
1114
|
const props = __props;
|
|
1115
1115
|
const clampedPercent = computed(() => Math.min(100, Math.max(0, props.percent)));
|
|
1116
1116
|
return (_ctx, _cache) => {
|
|
1117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1117
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
1118
1118
|
createElementVNode("div", {
|
|
1119
1119
|
class: "f-progress__track",
|
|
1120
1120
|
style: normalizeStyle({ height: `${_ctx.height}px` })
|
|
@@ -1127,17 +1127,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1127
1127
|
})
|
|
1128
1128
|
}, null, 4)
|
|
1129
1129
|
], 4),
|
|
1130
|
-
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1130
|
+
_ctx.showText ? (openBlock(), createElementBlock("span", _hoisted_2$q, toDisplayString(unref(clampedPercent)) + "%", 1)) : createCommentVNode("", true)
|
|
1131
1131
|
]);
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
1134
|
});
|
|
1135
|
-
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1136
|
-
const _hoisted_1$
|
|
1137
|
-
const _hoisted_2$
|
|
1138
|
-
const _hoisted_3$
|
|
1139
|
-
const _hoisted_4$
|
|
1140
|
-
const _sfc_main$
|
|
1135
|
+
const FProgress = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-95060470"]]);
|
|
1136
|
+
const _hoisted_1$v = { class: "f-tabs__nav-container" };
|
|
1137
|
+
const _hoisted_2$p = { class: "f-tabs__nav" };
|
|
1138
|
+
const _hoisted_3$n = ["onClick"];
|
|
1139
|
+
const _hoisted_4$e = { class: "f-tabs__label" };
|
|
1140
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1141
1141
|
__name: "FTabs",
|
|
1142
1142
|
props: {
|
|
1143
1143
|
tabs: {},
|
|
@@ -1170,8 +1170,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1170
1170
|
return openBlock(), createElementBlock("div", {
|
|
1171
1171
|
class: normalizeClass(["f-tabs", [`f-tabs--${_ctx.type}`]])
|
|
1172
1172
|
}, [
|
|
1173
|
-
createElementVNode("div", _hoisted_1$
|
|
1174
|
-
createElementVNode("div", _hoisted_2$
|
|
1173
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
1174
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
1175
1175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
1176
1176
|
return openBlock(), createElementBlock("div", {
|
|
1177
1177
|
key: tab.name,
|
|
@@ -1181,8 +1181,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1181
1181
|
}]),
|
|
1182
1182
|
onClick: ($event) => setActiveTab(tab.name, tab.disabled)
|
|
1183
1183
|
}, [
|
|
1184
|
-
createElementVNode("span", _hoisted_4$
|
|
1185
|
-
], 10, _hoisted_3$
|
|
1184
|
+
createElementVNode("span", _hoisted_4$e, toDisplayString(tab.label), 1)
|
|
1185
|
+
], 10, _hoisted_3$n);
|
|
1186
1186
|
}), 128))
|
|
1187
1187
|
])
|
|
1188
1188
|
]),
|
|
@@ -1200,17 +1200,17 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
1202
|
});
|
|
1203
|
-
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1204
|
-
const _hoisted_1$
|
|
1203
|
+
const FTabs = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-9a632cb1"]]);
|
|
1204
|
+
const _hoisted_1$u = {
|
|
1205
1205
|
class: "f-breadcrumb__current",
|
|
1206
1206
|
"aria-current": "page"
|
|
1207
1207
|
};
|
|
1208
|
-
const _hoisted_2$
|
|
1209
|
-
const _hoisted_3$
|
|
1208
|
+
const _hoisted_2$o = ["href"];
|
|
1209
|
+
const _hoisted_3$m = {
|
|
1210
1210
|
key: 3,
|
|
1211
1211
|
class: "f-breadcrumb__text"
|
|
1212
1212
|
};
|
|
1213
|
-
const _sfc_main$
|
|
1213
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1214
1214
|
__name: "FBreadcrumb",
|
|
1215
1215
|
props: {
|
|
1216
1216
|
items: { default: () => [] },
|
|
@@ -1238,12 +1238,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1238
1238
|
key: 1,
|
|
1239
1239
|
item
|
|
1240
1240
|
}, () => [
|
|
1241
|
-
createElementVNode("span", _hoisted_1$
|
|
1241
|
+
createElementVNode("span", _hoisted_1$u, toDisplayString(item.label), 1)
|
|
1242
1242
|
], true) : item.href ? (openBlock(), createElementBlock("a", {
|
|
1243
1243
|
key: 2,
|
|
1244
1244
|
href: item.href,
|
|
1245
1245
|
class: "f-breadcrumb__link"
|
|
1246
|
-
}, toDisplayString(item.label), 9, _hoisted_2$
|
|
1246
|
+
}, toDisplayString(item.label), 9, _hoisted_2$o)) : (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(item.label), 1))
|
|
1247
1247
|
], 64);
|
|
1248
1248
|
}), 128))
|
|
1249
1249
|
]),
|
|
@@ -1253,8 +1253,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
1255
|
});
|
|
1256
|
-
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1257
|
-
const _sfc_main$
|
|
1256
|
+
const FBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-8ed14ce1"]]);
|
|
1257
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1258
1258
|
__name: "FCol",
|
|
1259
1259
|
props: {
|
|
1260
1260
|
span: { default: 24 },
|
|
@@ -1295,8 +1295,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
|
-
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1299
|
-
const _sfc_main$
|
|
1298
|
+
const FCol = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fc17aac0"]]);
|
|
1299
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1300
1300
|
__name: "FRow",
|
|
1301
1301
|
props: {
|
|
1302
1302
|
gutter: { default: 0 },
|
|
@@ -1349,14 +1349,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
1351
|
});
|
|
1352
|
-
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1353
|
-
const _hoisted_1$
|
|
1354
|
-
const _hoisted_2$
|
|
1352
|
+
const FRow = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-f662e24f"]]);
|
|
1353
|
+
const _hoisted_1$t = { class: "f-space__item" };
|
|
1354
|
+
const _hoisted_2$n = {
|
|
1355
1355
|
key: 0,
|
|
1356
1356
|
class: "f-space__split",
|
|
1357
1357
|
"aria-hidden": "true"
|
|
1358
1358
|
};
|
|
1359
|
-
const _sfc_main$
|
|
1359
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1360
1360
|
__name: "FSpace",
|
|
1361
1361
|
props: {
|
|
1362
1362
|
direction: { default: "horizontal" },
|
|
@@ -1410,18 +1410,18 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1410
1410
|
}, [
|
|
1411
1411
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (child, index) => {
|
|
1412
1412
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
1413
|
-
createElementVNode("div", _hoisted_1$
|
|
1413
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
1414
1414
|
(openBlock(), createBlock(resolveDynamicComponent(child)))
|
|
1415
1415
|
]),
|
|
1416
|
-
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1416
|
+
_ctx.split && index < unref(children).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_2$n, toDisplayString(_ctx.split), 1)) : createCommentVNode("", true)
|
|
1417
1417
|
], 64);
|
|
1418
1418
|
}), 128))
|
|
1419
1419
|
], 4);
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
1422
|
});
|
|
1423
|
-
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1424
|
-
const _sfc_main$
|
|
1423
|
+
const FSpace = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-4e9e662d"]]);
|
|
1424
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1425
1425
|
__name: "FContainer",
|
|
1426
1426
|
props: {
|
|
1427
1427
|
gap: { default: 12 }
|
|
@@ -1441,9 +1441,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
1443
|
});
|
|
1444
|
-
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1445
|
-
const _hoisted_1$
|
|
1446
|
-
const _sfc_main$
|
|
1444
|
+
const FContainer = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-096e60e4"]]);
|
|
1445
|
+
const _hoisted_1$s = { class: "f-divider__text" };
|
|
1446
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1447
1447
|
__name: "FDivider",
|
|
1448
1448
|
props: {
|
|
1449
1449
|
color: { default: "#dcdfe6" },
|
|
@@ -1492,7 +1492,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1492
1492
|
class: "f-divider__line",
|
|
1493
1493
|
style: normalizeStyle(unref(lineStyle))
|
|
1494
1494
|
}, null, 4),
|
|
1495
|
-
createElementVNode("div", _hoisted_1$
|
|
1495
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
1496
1496
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1497
1497
|
]),
|
|
1498
1498
|
createElementVNode("div", {
|
|
@@ -1503,9 +1503,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
1505
|
});
|
|
1506
|
-
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1507
|
-
const _hoisted_1$
|
|
1508
|
-
const _sfc_main$
|
|
1506
|
+
const FDivider = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-ad0389c4"]]);
|
|
1507
|
+
const _hoisted_1$r = ["src", "alt"];
|
|
1508
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1509
1509
|
__name: "FAvatar",
|
|
1510
1510
|
props: {
|
|
1511
1511
|
src: {},
|
|
@@ -1537,7 +1537,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1537
1537
|
key: 0,
|
|
1538
1538
|
src: _ctx.src,
|
|
1539
1539
|
alt: _ctx.alt
|
|
1540
|
-
}, null, 8, _hoisted_1$
|
|
1540
|
+
}, null, 8, _hoisted_1$r)) : (openBlock(), createBlock(FIcon, {
|
|
1541
1541
|
key: 1,
|
|
1542
1542
|
size: 24
|
|
1543
1543
|
}, {
|
|
@@ -1550,18 +1550,18 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
|
-
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1554
|
-
const _hoisted_1$
|
|
1555
|
-
const _hoisted_2$
|
|
1556
|
-
const _hoisted_3$
|
|
1553
|
+
const FAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-937a848f"]]);
|
|
1554
|
+
const _hoisted_1$q = ["type", "disabled"];
|
|
1555
|
+
const _hoisted_2$m = { class: "f-button__inner" };
|
|
1556
|
+
const _hoisted_3$l = {
|
|
1557
1557
|
key: 0,
|
|
1558
1558
|
class: "f-loader"
|
|
1559
1559
|
};
|
|
1560
|
-
const _hoisted_4$
|
|
1560
|
+
const _hoisted_4$d = {
|
|
1561
1561
|
key: 2,
|
|
1562
1562
|
class: "f-button__text"
|
|
1563
1563
|
};
|
|
1564
|
-
const _sfc_main$
|
|
1564
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1565
1565
|
__name: "FButton",
|
|
1566
1566
|
props: {
|
|
1567
1567
|
type: {},
|
|
@@ -1581,9 +1581,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1581
1581
|
},
|
|
1582
1582
|
setup(__props) {
|
|
1583
1583
|
const SIZE_MAP = {
|
|
1584
|
-
small: { h: "24px", p: "0 8px", f: "12px", i: "14px" },
|
|
1585
|
-
normal: { h: "32px", p: "0 12px", f: "13px", i: "16px" },
|
|
1586
|
-
large: { h: "40px", p: "0 16px", f: "14px", i: "18px" }
|
|
1584
|
+
small: { h: "24px", p: "0 8px", f: "12px", i: "14px", g: "6px" },
|
|
1585
|
+
normal: { h: "32px", p: "0 12px", f: "13px", i: "16px", g: "8px" },
|
|
1586
|
+
large: { h: "40px", p: "0 16px", f: "14px", i: "18px", g: "10px" }
|
|
1587
1587
|
};
|
|
1588
1588
|
const props = __props;
|
|
1589
1589
|
const slots = useSlots();
|
|
@@ -1597,20 +1597,33 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1597
1597
|
return (_b = (_a = props.type) != null ? _a : groupContext == null ? void 0 : groupContext.type) != null ? _b : "default";
|
|
1598
1598
|
});
|
|
1599
1599
|
const isDisabled = computed(() => props.disabled || props.loading || (groupContext == null ? void 0 : groupContext.disabled));
|
|
1600
|
-
const
|
|
1600
|
+
const hasContent = (nodes) => nodes.some((n) => {
|
|
1601
|
+
var _a;
|
|
1602
|
+
if (n.type === Comment$1) return false;
|
|
1603
|
+
if (n.type === Text) return String(n.children).trim() !== "";
|
|
1604
|
+
if (n.type === Fragment) return hasContent((_a = n.children) != null ? _a : []);
|
|
1605
|
+
return true;
|
|
1606
|
+
});
|
|
1607
|
+
const hasText = computed(() => {
|
|
1608
|
+
var _a, _b;
|
|
1609
|
+
return hasContent((_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : []);
|
|
1610
|
+
});
|
|
1601
1611
|
const buttonStyle = computed(() => {
|
|
1602
|
-
const
|
|
1612
|
+
const sizeKey = typeof mergedSize.value === "number" ? "normal" : mergedSize.value;
|
|
1613
|
+
const s = SIZE_MAP[sizeKey] || SIZE_MAP.normal;
|
|
1603
1614
|
const style = {
|
|
1604
|
-
height: s.h,
|
|
1615
|
+
height: typeof mergedSize.value === "number" ? `${mergedSize.value}px` : s.h,
|
|
1605
1616
|
padding: props.circle ? "0" : s.p,
|
|
1606
1617
|
fontSize: s.f,
|
|
1607
|
-
minWidth: props.circle ? s.h : "auto",
|
|
1618
|
+
minWidth: props.circle ? typeof mergedSize.value === "number" ? `${mergedSize.value}px` : s.h : "auto",
|
|
1608
1619
|
backgroundColor: props.bgColor,
|
|
1609
|
-
color: props.color
|
|
1620
|
+
color: props.color,
|
|
1621
|
+
"--f-button-gap": s.g,
|
|
1622
|
+
"--f-button-h": typeof mergedSize.value === "number" ? `${mergedSize.value}px` : s.h
|
|
1610
1623
|
};
|
|
1611
1624
|
if (props.circle) {
|
|
1612
1625
|
style.borderRadius = "50%";
|
|
1613
|
-
style.width = s.h;
|
|
1626
|
+
style.width = typeof mergedSize.value === "number" ? `${mergedSize.value}px` : s.h;
|
|
1614
1627
|
} else if (typeof props.round === "number") {
|
|
1615
1628
|
style.borderRadius = `${props.round}px`;
|
|
1616
1629
|
} else if (props.round === true) {
|
|
@@ -1619,6 +1632,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1619
1632
|
return style;
|
|
1620
1633
|
});
|
|
1621
1634
|
const iconSize = computed(() => {
|
|
1635
|
+
if (typeof mergedSize.value === "number") {
|
|
1636
|
+
return Math.round(mergedSize.value * 0.6);
|
|
1637
|
+
}
|
|
1622
1638
|
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
1623
1639
|
return s.i;
|
|
1624
1640
|
});
|
|
@@ -1639,8 +1655,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1639
1655
|
disabled: unref(isDisabled),
|
|
1640
1656
|
style: normalizeStyle(unref(buttonStyle))
|
|
1641
1657
|
}, [
|
|
1642
|
-
createElementVNode("span", _hoisted_2$
|
|
1643
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1658
|
+
createElementVNode("span", _hoisted_2$m, [
|
|
1659
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$l)) : createCommentVNode("", true),
|
|
1644
1660
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1645
1661
|
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(FIcon, {
|
|
1646
1662
|
key: 0,
|
|
@@ -1655,16 +1671,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1655
1671
|
_: 3
|
|
1656
1672
|
}, 8, ["style"])) : createCommentVNode("", true)
|
|
1657
1673
|
], 64)) : createCommentVNode("", true),
|
|
1658
|
-
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1674
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
1659
1675
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1660
1676
|
])) : createCommentVNode("", true)
|
|
1661
1677
|
])
|
|
1662
|
-
], 14, _hoisted_1$
|
|
1678
|
+
], 14, _hoisted_1$q);
|
|
1663
1679
|
};
|
|
1664
1680
|
}
|
|
1665
1681
|
});
|
|
1666
|
-
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1667
|
-
const _sfc_main$
|
|
1682
|
+
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-84f420be"]]);
|
|
1683
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1668
1684
|
__name: "FTypography",
|
|
1669
1685
|
props: {
|
|
1670
1686
|
color: { default: "" }
|
|
@@ -1686,8 +1702,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1686
1702
|
};
|
|
1687
1703
|
}
|
|
1688
1704
|
});
|
|
1689
|
-
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1690
|
-
const _sfc_main$
|
|
1705
|
+
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-1ba2afd3"]]);
|
|
1706
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1691
1707
|
__name: "FText",
|
|
1692
1708
|
props: {
|
|
1693
1709
|
tag: { default: "span" },
|
|
@@ -1745,9 +1761,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1745
1761
|
};
|
|
1746
1762
|
}
|
|
1747
1763
|
});
|
|
1748
|
-
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1749
|
-
const _hoisted_1$
|
|
1750
|
-
const _sfc_main$
|
|
1764
|
+
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-489c8a06"]]);
|
|
1765
|
+
const _hoisted_1$p = ["href", "target", "rel"];
|
|
1766
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1751
1767
|
__name: "FLink",
|
|
1752
1768
|
props: {
|
|
1753
1769
|
href: {},
|
|
@@ -1770,13 +1786,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1770
1786
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1771
1787
|
}, [
|
|
1772
1788
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1773
|
-
], 10, _hoisted_1$
|
|
1789
|
+
], 10, _hoisted_1$p);
|
|
1774
1790
|
};
|
|
1775
1791
|
}
|
|
1776
1792
|
});
|
|
1777
|
-
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1778
|
-
const _hoisted_1$
|
|
1779
|
-
const _sfc_main$
|
|
1793
|
+
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-8bb4d33f"]]);
|
|
1794
|
+
const _hoisted_1$o = { class: "f-badge" };
|
|
1795
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1780
1796
|
__name: "FBadge",
|
|
1781
1797
|
props: {
|
|
1782
1798
|
value: {},
|
|
@@ -1805,7 +1821,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1805
1821
|
return map[props.placement];
|
|
1806
1822
|
});
|
|
1807
1823
|
return (_ctx, _cache) => {
|
|
1808
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1824
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1809
1825
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1810
1826
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1811
1827
|
key: 0,
|
|
@@ -1816,8 +1832,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1816
1832
|
};
|
|
1817
1833
|
}
|
|
1818
1834
|
});
|
|
1819
|
-
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1820
|
-
const _sfc_main$
|
|
1835
|
+
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-4d8a46e5"]]);
|
|
1836
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1821
1837
|
__name: "FAffix",
|
|
1822
1838
|
props: {
|
|
1823
1839
|
placement: { default: "top-right" },
|
|
@@ -1845,8 +1861,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1845
1861
|
};
|
|
1846
1862
|
}
|
|
1847
1863
|
});
|
|
1848
|
-
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1849
|
-
const _sfc_main$
|
|
1864
|
+
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5e3108b5"]]);
|
|
1865
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1850
1866
|
__name: "FForm",
|
|
1851
1867
|
props: {
|
|
1852
1868
|
model: {},
|
|
@@ -1903,7 +1919,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1903
1919
|
};
|
|
1904
1920
|
}
|
|
1905
1921
|
});
|
|
1906
|
-
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1922
|
+
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7e90ebac"]]);
|
|
1907
1923
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
1908
1924
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
1909
1925
|
for (let rule of ruleArray) {
|
|
@@ -1985,16 +2001,16 @@ const checkRange = (value, rule) => {
|
|
|
1985
2001
|
}
|
|
1986
2002
|
return void 0;
|
|
1987
2003
|
};
|
|
1988
|
-
const _hoisted_1$
|
|
2004
|
+
const _hoisted_1$n = {
|
|
1989
2005
|
key: 0,
|
|
1990
2006
|
class: "star"
|
|
1991
2007
|
};
|
|
1992
|
-
const _hoisted_2$
|
|
1993
|
-
const _hoisted_3$
|
|
2008
|
+
const _hoisted_2$l = { class: "f-form-item__content" };
|
|
2009
|
+
const _hoisted_3$k = {
|
|
1994
2010
|
key: 0,
|
|
1995
2011
|
class: "f-form-item__error"
|
|
1996
2012
|
};
|
|
1997
|
-
const _sfc_main$
|
|
2013
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1998
2014
|
__name: "FFormItem",
|
|
1999
2015
|
props: {
|
|
2000
2016
|
label: {},
|
|
@@ -2060,14 +2076,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2060
2076
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
2061
2077
|
})
|
|
2062
2078
|
}, [
|
|
2063
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2064
|
-
createTextVNode(" " + toDisplayString(_ctx.label) + "
|
|
2079
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$n, "*")) : createCommentVNode("", true),
|
|
2080
|
+
createTextVNode(" " + toDisplayString(_ctx.label) + "锛? ", 1)
|
|
2065
2081
|
], 4)) : createCommentVNode("", true),
|
|
2066
|
-
createElementVNode("div", _hoisted_2$
|
|
2082
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
2067
2083
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
2068
2084
|
createVNode(Transition, { name: "err-slide" }, {
|
|
2069
2085
|
default: withCtx(() => [
|
|
2070
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2086
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$k, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
2071
2087
|
]),
|
|
2072
2088
|
_: 1
|
|
2073
2089
|
})
|
|
@@ -2076,14 +2092,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2076
2092
|
};
|
|
2077
2093
|
}
|
|
2078
2094
|
});
|
|
2079
|
-
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2080
|
-
const _hoisted_1$
|
|
2081
|
-
const _hoisted_2$
|
|
2082
|
-
const _hoisted_3$
|
|
2095
|
+
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-42312371"]]);
|
|
2096
|
+
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
2097
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
2098
|
+
const _hoisted_3$j = {
|
|
2083
2099
|
key: 0,
|
|
2084
2100
|
class: "f-checkbox__label"
|
|
2085
2101
|
};
|
|
2086
|
-
const _sfc_main$
|
|
2102
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2087
2103
|
__name: "FCheckbox",
|
|
2088
2104
|
props: /* @__PURE__ */ mergeModels({
|
|
2089
2105
|
label: {},
|
|
@@ -2105,28 +2121,28 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2105
2121
|
return openBlock(), createElementBlock("label", {
|
|
2106
2122
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2107
2123
|
}, [
|
|
2108
|
-
createElementVNode("span", _hoisted_1$
|
|
2124
|
+
createElementVNode("span", _hoisted_1$m, [
|
|
2109
2125
|
createElementVNode("input", {
|
|
2110
2126
|
type: "checkbox",
|
|
2111
2127
|
checked: modelValue.value,
|
|
2112
2128
|
disabled: _ctx.disabled,
|
|
2113
2129
|
onChange: handleChange
|
|
2114
|
-
}, null, 40, _hoisted_2$
|
|
2130
|
+
}, null, 40, _hoisted_2$k),
|
|
2115
2131
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2116
2132
|
]),
|
|
2117
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2133
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2118
2134
|
], 2);
|
|
2119
2135
|
};
|
|
2120
2136
|
}
|
|
2121
2137
|
});
|
|
2122
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2123
|
-
const _hoisted_1$
|
|
2124
|
-
const _hoisted_2$
|
|
2125
|
-
const _hoisted_3$
|
|
2138
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-eeeb70b5"]]);
|
|
2139
|
+
const _hoisted_1$l = { class: "f-radio__wrapper" };
|
|
2140
|
+
const _hoisted_2$j = ["name", "checked", "disabled"];
|
|
2141
|
+
const _hoisted_3$i = {
|
|
2126
2142
|
key: 0,
|
|
2127
2143
|
class: "f-radio__label"
|
|
2128
2144
|
};
|
|
2129
|
-
const _sfc_main$
|
|
2145
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2130
2146
|
__name: "FRadio",
|
|
2131
2147
|
props: /* @__PURE__ */ mergeModels({
|
|
2132
2148
|
label: {},
|
|
@@ -2153,29 +2169,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
2153
2169
|
return openBlock(), createElementBlock("label", {
|
|
2154
2170
|
class: normalizeClass(["f-radio", { "is-disabled": _ctx.disabled }])
|
|
2155
2171
|
}, [
|
|
2156
|
-
createElementVNode("span", _hoisted_1$
|
|
2172
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
2157
2173
|
createElementVNode("input", {
|
|
2158
2174
|
type: "radio",
|
|
2159
2175
|
name: _ctx.name,
|
|
2160
2176
|
checked: modelValue.value === _ctx.value,
|
|
2161
2177
|
disabled: _ctx.disabled,
|
|
2162
2178
|
onChange: handleChange
|
|
2163
|
-
}, null, 40, _hoisted_2$
|
|
2179
|
+
}, null, 40, _hoisted_2$j),
|
|
2164
2180
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
2165
2181
|
]),
|
|
2166
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2182
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2167
2183
|
], 2);
|
|
2168
2184
|
};
|
|
2169
2185
|
}
|
|
2170
2186
|
});
|
|
2171
|
-
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2172
|
-
const _hoisted_1$
|
|
2173
|
-
const _hoisted_2$
|
|
2174
|
-
const _hoisted_3$
|
|
2187
|
+
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-b06cba07"]]);
|
|
2188
|
+
const _hoisted_1$k = { class: "f-radio__wrapper" };
|
|
2189
|
+
const _hoisted_2$i = ["name", "checked", "disabled", "onChange"];
|
|
2190
|
+
const _hoisted_3$h = {
|
|
2175
2191
|
key: 0,
|
|
2176
2192
|
class: "f-radio__label"
|
|
2177
2193
|
};
|
|
2178
|
-
const _sfc_main$
|
|
2194
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2179
2195
|
__name: "FRadioGroup",
|
|
2180
2196
|
props: /* @__PURE__ */ mergeModels({
|
|
2181
2197
|
options: {},
|
|
@@ -2204,30 +2220,30 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2204
2220
|
key: String(option.value),
|
|
2205
2221
|
class: normalizeClass(["f-radio", { "is-disabled": option.disabled || _ctx.disabled }])
|
|
2206
2222
|
}, [
|
|
2207
|
-
createElementVNode("span", _hoisted_1$
|
|
2223
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
2208
2224
|
createElementVNode("input", {
|
|
2209
2225
|
type: "radio",
|
|
2210
2226
|
name: (_a = _ctx.name) != null ? _a : "f-radio-group",
|
|
2211
2227
|
checked: modelValue.value === option.value,
|
|
2212
2228
|
disabled: option.disabled || _ctx.disabled,
|
|
2213
2229
|
onChange: ($event) => handleChange(option)
|
|
2214
|
-
}, null, 40, _hoisted_2$
|
|
2230
|
+
}, null, 40, _hoisted_2$i),
|
|
2215
2231
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
2216
2232
|
]),
|
|
2217
|
-
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2233
|
+
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(option.label), 1)) : createCommentVNode("", true)
|
|
2218
2234
|
], 2);
|
|
2219
2235
|
}), 128))
|
|
2220
2236
|
], 2);
|
|
2221
2237
|
};
|
|
2222
2238
|
}
|
|
2223
2239
|
});
|
|
2224
|
-
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2225
|
-
const _hoisted_1$
|
|
2226
|
-
const _hoisted_2$
|
|
2240
|
+
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-f1bf3aae"]]);
|
|
2241
|
+
const _hoisted_1$j = ["disabled", "aria-checked"];
|
|
2242
|
+
const _hoisted_2$h = {
|
|
2227
2243
|
key: 0,
|
|
2228
2244
|
class: "f-switch__text"
|
|
2229
2245
|
};
|
|
2230
|
-
const _sfc_main$
|
|
2246
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
2231
2247
|
__name: "FSwitch",
|
|
2232
2248
|
props: /* @__PURE__ */ mergeModels({
|
|
2233
2249
|
label: {},
|
|
@@ -2259,24 +2275,24 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2259
2275
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-switch__track" }, [
|
|
2260
2276
|
createElementVNode("span", { class: "f-switch__thumb" })
|
|
2261
2277
|
], -1)),
|
|
2262
|
-
_ctx.label || _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2263
|
-
], 10, _hoisted_1$
|
|
2278
|
+
_ctx.label || _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", _hoisted_2$h, toDisplayString(modelValue.value ? (_a = _ctx.activeText) != null ? _a : _ctx.label : (_b = _ctx.inactiveText) != null ? _b : _ctx.label), 1)) : createCommentVNode("", true)
|
|
2279
|
+
], 10, _hoisted_1$j);
|
|
2264
2280
|
};
|
|
2265
2281
|
}
|
|
2266
2282
|
});
|
|
2267
|
-
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2268
|
-
const _hoisted_1$
|
|
2269
|
-
const _hoisted_2$
|
|
2283
|
+
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dd66bb33"]]);
|
|
2284
|
+
const _hoisted_1$i = { class: "f-tree-select__label" };
|
|
2285
|
+
const _hoisted_2$g = {
|
|
2270
2286
|
key: 0,
|
|
2271
2287
|
class: "f-tree-select__panel"
|
|
2272
2288
|
};
|
|
2273
|
-
const _hoisted_3$
|
|
2274
|
-
const _hoisted_4$
|
|
2289
|
+
const _hoisted_3$g = ["onClick"];
|
|
2290
|
+
const _hoisted_4$c = {
|
|
2275
2291
|
key: 0,
|
|
2276
2292
|
class: "f-tree-select__expand"
|
|
2277
2293
|
};
|
|
2278
|
-
const _hoisted_5$
|
|
2279
|
-
const _sfc_main$
|
|
2294
|
+
const _hoisted_5$9 = { class: "f-tree-select__text" };
|
|
2295
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2280
2296
|
__name: "FTreeSelect",
|
|
2281
2297
|
props: /* @__PURE__ */ mergeModels({
|
|
2282
2298
|
options: {},
|
|
@@ -2308,7 +2324,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2308
2324
|
var _a;
|
|
2309
2325
|
const current = props.multiple ? Array.isArray(modelValue.value) ? modelValue.value : [] : modelValue.value;
|
|
2310
2326
|
if (props.multiple && Array.isArray(current)) {
|
|
2311
|
-
return current.length > 0 ? current.length + "
|
|
2327
|
+
return current.length > 0 ? current.length + " 项" : props.placeholder;
|
|
2312
2328
|
}
|
|
2313
2329
|
const target = props.options.flatMap((item) => flattenTree([item]));
|
|
2314
2330
|
const node = target.find((item) => item.key === current);
|
|
@@ -2351,7 +2367,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2351
2367
|
class: "f-tree-select__trigger",
|
|
2352
2368
|
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && (isOpen.value = !unref(isOpen)))
|
|
2353
2369
|
}, [
|
|
2354
|
-
createElementVNode("span", _hoisted_1$
|
|
2370
|
+
createElementVNode("span", _hoisted_1$i, toDisplayString(unref(selectedLabel)), 1),
|
|
2355
2371
|
createVNode(FIcon, { class: "f-tree-select__arrow" }, {
|
|
2356
2372
|
default: withCtx(() => [
|
|
2357
2373
|
createVNode(unref(ChevronDownOutline))
|
|
@@ -2359,7 +2375,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2359
2375
|
_: 1
|
|
2360
2376
|
})
|
|
2361
2377
|
]),
|
|
2362
|
-
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2378
|
+
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
2363
2379
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(visibleNodes), (node) => {
|
|
2364
2380
|
return openBlock(), createElementBlock("div", {
|
|
2365
2381
|
key: String(node.key),
|
|
@@ -2367,33 +2383,33 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2367
2383
|
style: normalizeStyle({ paddingLeft: `${(node.level + 1) * 16 + 8}px` }),
|
|
2368
2384
|
onClick: ($event) => node.children && node.children.length ? toggleExpand(node.key) : handleSelect(node)
|
|
2369
2385
|
}, [
|
|
2370
|
-
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2371
|
-
createElementVNode("span", _hoisted_5$
|
|
2372
|
-
], 14, _hoisted_3$
|
|
2386
|
+
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$c, toDisplayString(unref(expandedKeys).includes(node.key) ? "-" : "+"), 1)) : createCommentVNode("", true),
|
|
2387
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(node.label), 1)
|
|
2388
|
+
], 14, _hoisted_3$g);
|
|
2373
2389
|
}), 128))
|
|
2374
2390
|
])) : createCommentVNode("", true)
|
|
2375
2391
|
], 2);
|
|
2376
2392
|
};
|
|
2377
2393
|
}
|
|
2378
2394
|
});
|
|
2379
|
-
const FTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2380
|
-
const _hoisted_1$
|
|
2381
|
-
const _hoisted_2$
|
|
2382
|
-
const _hoisted_3$
|
|
2383
|
-
const _hoisted_4$
|
|
2384
|
-
const _hoisted_5$
|
|
2385
|
-
const _hoisted_6$
|
|
2395
|
+
const FTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3e78b510"]]);
|
|
2396
|
+
const _hoisted_1$h = { class: "f-transfer__panel" };
|
|
2397
|
+
const _hoisted_2$f = { class: "f-transfer__header" };
|
|
2398
|
+
const _hoisted_3$f = { class: "f-transfer__list" };
|
|
2399
|
+
const _hoisted_4$b = ["onClick"];
|
|
2400
|
+
const _hoisted_5$8 = { class: "f-transfer__actions" };
|
|
2401
|
+
const _hoisted_6$7 = ["disabled"];
|
|
2386
2402
|
const _hoisted_7$3 = ["disabled"];
|
|
2387
2403
|
const _hoisted_8$2 = { class: "f-transfer__panel" };
|
|
2388
2404
|
const _hoisted_9$1 = { class: "f-transfer__header" };
|
|
2389
2405
|
const _hoisted_10$1 = { class: "f-transfer__list" };
|
|
2390
2406
|
const _hoisted_11$1 = ["onClick"];
|
|
2391
|
-
const _sfc_main$
|
|
2407
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2392
2408
|
__name: "FTransfer",
|
|
2393
2409
|
props: /* @__PURE__ */ mergeModels({
|
|
2394
2410
|
data: {},
|
|
2395
|
-
leftTitle: { default: "
|
|
2396
|
-
rightTitle: { default: "
|
|
2411
|
+
leftTitle: { default: "鍙€夐」" },
|
|
2412
|
+
rightTitle: { default: "宸查€夐」" },
|
|
2397
2413
|
disabled: { type: Boolean, default: false }
|
|
2398
2414
|
}, {
|
|
2399
2415
|
"modelValue": { default: () => [] },
|
|
@@ -2444,31 +2460,31 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2444
2460
|
return openBlock(), createElementBlock("div", {
|
|
2445
2461
|
class: normalizeClass(["f-transfer", { "is-disabled": _ctx.disabled }])
|
|
2446
2462
|
}, [
|
|
2447
|
-
createElementVNode("div", _hoisted_1$
|
|
2448
|
-
createElementVNode("div", _hoisted_2$
|
|
2449
|
-
createElementVNode("ul", _hoisted_3$
|
|
2463
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
2464
|
+
createElementVNode("div", _hoisted_2$f, toDisplayString(_ctx.leftTitle), 1),
|
|
2465
|
+
createElementVNode("ul", _hoisted_3$f, [
|
|
2450
2466
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(leftList), (item) => {
|
|
2451
2467
|
return openBlock(), createElementBlock("li", {
|
|
2452
2468
|
key: String(item.key),
|
|
2453
2469
|
class: normalizeClass(["f-transfer__item", { "is-selected": unref(leftSelected).includes(item.key), "is-disabled": item.disabled }]),
|
|
2454
2470
|
onClick: ($event) => toggle(unref(leftSelected), item.key)
|
|
2455
|
-
}, toDisplayString(item.label), 11, _hoisted_4$
|
|
2471
|
+
}, toDisplayString(item.label), 11, _hoisted_4$b);
|
|
2456
2472
|
}), 128))
|
|
2457
2473
|
])
|
|
2458
2474
|
]),
|
|
2459
|
-
createElementVNode("div", _hoisted_5$
|
|
2475
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
2460
2476
|
createElementVNode("button", {
|
|
2461
2477
|
type: "button",
|
|
2462
2478
|
class: "f-transfer__btn",
|
|
2463
2479
|
disabled: _ctx.disabled || unref(leftList).length === 0,
|
|
2464
2480
|
onClick: _cache[0] || (_cache[0] = ($event) => moveSelected("right"))
|
|
2465
|
-
}, "
|
|
2481
|
+
}, " 鈫? ", 8, _hoisted_6$7),
|
|
2466
2482
|
createElementVNode("button", {
|
|
2467
2483
|
type: "button",
|
|
2468
2484
|
class: "f-transfer__btn",
|
|
2469
2485
|
disabled: _ctx.disabled || unref(rightList).length === 0,
|
|
2470
2486
|
onClick: _cache[1] || (_cache[1] = ($event) => moveSelected("left"))
|
|
2471
|
-
}, "
|
|
2487
|
+
}, " 鈫? ", 8, _hoisted_7$3)
|
|
2472
2488
|
]),
|
|
2473
2489
|
createElementVNode("div", _hoisted_8$2, [
|
|
2474
2490
|
createElementVNode("div", _hoisted_9$1, toDisplayString(_ctx.rightTitle), 1),
|
|
@@ -2486,11 +2502,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2486
2502
|
};
|
|
2487
2503
|
}
|
|
2488
2504
|
});
|
|
2489
|
-
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2490
|
-
const _hoisted_1$
|
|
2491
|
-
const _hoisted_2$
|
|
2492
|
-
const _hoisted_3$
|
|
2493
|
-
const _sfc_main$
|
|
2505
|
+
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-32dbd066"]]);
|
|
2506
|
+
const _hoisted_1$g = { class: "alert__body" };
|
|
2507
|
+
const _hoisted_2$e = { class: "alert__title" };
|
|
2508
|
+
const _hoisted_3$e = { class: "alert__content" };
|
|
2509
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2494
2510
|
__name: "FAlert",
|
|
2495
2511
|
props: {
|
|
2496
2512
|
type: { default: "info" },
|
|
@@ -2516,9 +2532,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2516
2532
|
]),
|
|
2517
2533
|
_: 1
|
|
2518
2534
|
}),
|
|
2519
|
-
createElementVNode("div", _hoisted_1$
|
|
2520
|
-
createElementVNode("h4", _hoisted_2$
|
|
2521
|
-
createElementVNode("div", _hoisted_3$
|
|
2535
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
2536
|
+
createElementVNode("h4", _hoisted_2$e, toDisplayString((_a = _ctx.title) != null ? _a : unref(config).label), 1),
|
|
2537
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
2522
2538
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2523
2539
|
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
2524
2540
|
], true)
|
|
@@ -2528,18 +2544,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2528
2544
|
};
|
|
2529
2545
|
}
|
|
2530
2546
|
});
|
|
2531
|
-
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2532
|
-
const _hoisted_1$
|
|
2533
|
-
const _hoisted_2$
|
|
2534
|
-
const _hoisted_3$
|
|
2535
|
-
const _hoisted_4$
|
|
2536
|
-
const _hoisted_5$
|
|
2537
|
-
const _hoisted_6$
|
|
2547
|
+
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-7e66ccc2"]]);
|
|
2548
|
+
const _hoisted_1$f = { class: "f-editor__toolbar" };
|
|
2549
|
+
const _hoisted_2$d = { class: "f-editor__status" };
|
|
2550
|
+
const _hoisted_3$d = { class: "f-editor__lines" };
|
|
2551
|
+
const _hoisted_4$a = { class: "f-editor__code-wrapper" };
|
|
2552
|
+
const _hoisted_5$7 = ["innerHTML"];
|
|
2553
|
+
const _hoisted_6$6 = ["rows", "readonly", "placeholder"];
|
|
2538
2554
|
const LINE_HEIGHT_PX = 17.6;
|
|
2539
2555
|
const PADDING_TOP_PX = 12;
|
|
2540
2556
|
const MIN_BODY_HEIGHT = 180;
|
|
2541
2557
|
const HEAVY_LINE_THRESHOLD = 1500;
|
|
2542
|
-
const _sfc_main$
|
|
2558
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2543
2559
|
__name: "FEditor",
|
|
2544
2560
|
props: /* @__PURE__ */ mergeModels({
|
|
2545
2561
|
placeholder: {},
|
|
@@ -2705,9 +2721,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2705
2721
|
return openBlock(), createElementBlock("div", {
|
|
2706
2722
|
class: normalizeClass(["f-editor", { "f-editor--invalid": !unref(isJsonValid) }])
|
|
2707
2723
|
}, [
|
|
2708
|
-
createElementVNode("div", _hoisted_1$
|
|
2709
|
-
createElementVNode("span", _hoisted_2$
|
|
2710
|
-
createElementVNode("span", _hoisted_3$
|
|
2724
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
2725
|
+
createElementVNode("span", _hoisted_2$d, [
|
|
2726
|
+
createElementVNode("span", _hoisted_3$d, toDisplayString(unref(lineCount)) + " 行", 1),
|
|
2711
2727
|
unref(isHeavy) ? (openBlock(), createBlock(FTag, {
|
|
2712
2728
|
key: 0,
|
|
2713
2729
|
color: "orange",
|
|
@@ -2715,7 +2731,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2715
2731
|
effect: "plain"
|
|
2716
2732
|
}, {
|
|
2717
2733
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
2718
|
-
createTextVNode("
|
|
2734
|
+
createTextVNode("大文件已关闭高亮")
|
|
2719
2735
|
])),
|
|
2720
2736
|
_: 1,
|
|
2721
2737
|
__: [2]
|
|
@@ -2745,7 +2761,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2745
2761
|
}, toDisplayString(ln), 3);
|
|
2746
2762
|
}), 128))
|
|
2747
2763
|
], 512)) : createCommentVNode("", true),
|
|
2748
|
-
createElementVNode("div", _hoisted_4$
|
|
2764
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
2749
2765
|
createElementVNode("div", {
|
|
2750
2766
|
class: "f-editor__active-line",
|
|
2751
2767
|
style: normalizeStyle({
|
|
@@ -2763,7 +2779,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2763
2779
|
key: line.lineNo,
|
|
2764
2780
|
class: "f-editor__line",
|
|
2765
2781
|
innerHTML: line.html + "\n"
|
|
2766
|
-
}, null, 8, _hoisted_5$
|
|
2782
|
+
}, null, 8, _hoisted_5$7);
|
|
2767
2783
|
}), 128))
|
|
2768
2784
|
], 512),
|
|
2769
2785
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -2781,7 +2797,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2781
2797
|
onClick: updateCursorInfo,
|
|
2782
2798
|
onKeyup: updateCursorInfo,
|
|
2783
2799
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur"))
|
|
2784
|
-
}, null, 40, _hoisted_6$
|
|
2800
|
+
}, null, 40, _hoisted_6$6), [
|
|
2785
2801
|
[vModelText, model.value]
|
|
2786
2802
|
])
|
|
2787
2803
|
])
|
|
@@ -2790,19 +2806,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2790
2806
|
};
|
|
2791
2807
|
}
|
|
2792
2808
|
});
|
|
2793
|
-
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2794
|
-
const _hoisted_1$
|
|
2795
|
-
const _hoisted_2$
|
|
2809
|
+
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-48883044"]]);
|
|
2810
|
+
const _hoisted_1$e = { class: "f-table" };
|
|
2811
|
+
const _hoisted_2$c = {
|
|
2796
2812
|
key: 0,
|
|
2797
2813
|
class: "f-table__loading"
|
|
2798
2814
|
};
|
|
2799
|
-
const _hoisted_3$
|
|
2800
|
-
const _hoisted_4$
|
|
2815
|
+
const _hoisted_3$c = { class: "f-table__inner" };
|
|
2816
|
+
const _hoisted_4$9 = {
|
|
2801
2817
|
key: 0,
|
|
2802
2818
|
class: "f-table__col--index"
|
|
2803
2819
|
};
|
|
2804
|
-
const _hoisted_5$
|
|
2805
|
-
const _hoisted_6$
|
|
2820
|
+
const _hoisted_5$6 = { class: "f-table__head" };
|
|
2821
|
+
const _hoisted_6$5 = {
|
|
2806
2822
|
key: 0,
|
|
2807
2823
|
class: "f-table__th f-table__th--index"
|
|
2808
2824
|
};
|
|
@@ -2824,7 +2840,7 @@ const _hoisted_14 = {
|
|
|
2824
2840
|
class: "f-table__spacer"
|
|
2825
2841
|
};
|
|
2826
2842
|
const _hoisted_15 = ["colspan"];
|
|
2827
|
-
const _sfc_main$
|
|
2843
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2828
2844
|
__name: "FTable",
|
|
2829
2845
|
props: {
|
|
2830
2846
|
data: {},
|
|
@@ -2833,8 +2849,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2833
2849
|
overscan: { default: 5 },
|
|
2834
2850
|
showIndex: { type: Boolean, default: true },
|
|
2835
2851
|
loading: { type: Boolean, default: false },
|
|
2836
|
-
loadingText: { default: "
|
|
2837
|
-
emptyText: { default: "
|
|
2852
|
+
loadingText: { default: "鍔犺浇涓?.." },
|
|
2853
|
+
emptyText: { default: "鏆傛棤鏁版嵁" }
|
|
2838
2854
|
},
|
|
2839
2855
|
setup(__props) {
|
|
2840
2856
|
const props = __props;
|
|
@@ -2888,8 +2904,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2888
2904
|
scrollTop.value = 0;
|
|
2889
2905
|
});
|
|
2890
2906
|
return (_ctx, _cache) => {
|
|
2891
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2892
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2907
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2908
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
2893
2909
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "spinner" }, null, -1)),
|
|
2894
2910
|
createElementVNode("span", null, toDisplayString(_ctx.loadingText), 1)
|
|
2895
2911
|
])) : createCommentVNode("", true),
|
|
@@ -2899,9 +2915,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2899
2915
|
ref: scrollEl,
|
|
2900
2916
|
onScroll
|
|
2901
2917
|
}, [
|
|
2902
|
-
createElementVNode("table", _hoisted_3$
|
|
2918
|
+
createElementVNode("table", _hoisted_3$c, [
|
|
2903
2919
|
createElementVNode("colgroup", null, [
|
|
2904
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_4$
|
|
2920
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_4$9)) : createCommentVNode("", true),
|
|
2905
2921
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
2906
2922
|
var _a, _b;
|
|
2907
2923
|
return openBlock(), createElementBlock("col", {
|
|
@@ -2913,9 +2929,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2913
2929
|
}, null, 4);
|
|
2914
2930
|
}), 128))
|
|
2915
2931
|
]),
|
|
2916
|
-
createElementVNode("thead", _hoisted_5$
|
|
2932
|
+
createElementVNode("thead", _hoisted_5$6, [
|
|
2917
2933
|
createElementVNode("tr", null, [
|
|
2918
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_6$
|
|
2934
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_6$5, "#")) : createCommentVNode("", true),
|
|
2919
2935
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
2920
2936
|
return openBlock(), createElementBlock("th", {
|
|
2921
2937
|
key: col.key,
|
|
@@ -2995,22 +3011,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2995
3011
|
};
|
|
2996
3012
|
}
|
|
2997
3013
|
});
|
|
2998
|
-
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2999
|
-
const _hoisted_1$
|
|
3000
|
-
const _hoisted_2$
|
|
3001
|
-
const _hoisted_3$
|
|
3002
|
-
const _hoisted_4$
|
|
3003
|
-
const _hoisted_5$
|
|
3014
|
+
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce2c2d93"]]);
|
|
3015
|
+
const _hoisted_1$d = { class: "f-upload" };
|
|
3016
|
+
const _hoisted_2$b = ["accept", "multiple"];
|
|
3017
|
+
const _hoisted_3$b = { class: "f-upload__zone" };
|
|
3018
|
+
const _hoisted_4$8 = { class: "f-upload__hint" };
|
|
3019
|
+
const _hoisted_5$5 = {
|
|
3004
3020
|
key: 0,
|
|
3005
3021
|
class: "f-upload__list"
|
|
3006
3022
|
};
|
|
3007
|
-
const _hoisted_6$
|
|
3023
|
+
const _hoisted_6$4 = { class: "f-upload__file-info" };
|
|
3008
3024
|
const _hoisted_7$1 = { class: "f-upload__file-name" };
|
|
3009
3025
|
const _hoisted_8 = {
|
|
3010
3026
|
key: 1,
|
|
3011
3027
|
class: "f-upload__file-error"
|
|
3012
3028
|
};
|
|
3013
|
-
const _sfc_main$
|
|
3029
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3014
3030
|
__name: "FUpload",
|
|
3015
3031
|
props: /* @__PURE__ */ mergeModels({
|
|
3016
3032
|
accept: {},
|
|
@@ -3113,15 +3129,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3113
3129
|
__expose({
|
|
3114
3130
|
/** 重试上传单个失败的文件 */
|
|
3115
3131
|
retryUpload,
|
|
3116
|
-
/**
|
|
3132
|
+
/** 删除文件 */
|
|
3117
3133
|
removeFile,
|
|
3118
|
-
/**
|
|
3134
|
+
/** 批量上传所有状态为 ready 的文件 */
|
|
3119
3135
|
submitAll: () => {
|
|
3120
3136
|
fileList.value.filter((f) => f.status === "ready").forEach((item) => submitUpload(item));
|
|
3121
3137
|
}
|
|
3122
3138
|
});
|
|
3123
3139
|
return (_ctx, _cache) => {
|
|
3124
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3140
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
3125
3141
|
createElementVNode("label", {
|
|
3126
3142
|
class: normalizeClass(["f-upload__trigger", { "f-upload--drag": unref(dragActive) }]),
|
|
3127
3143
|
onDragover: onDragOver,
|
|
@@ -3134,21 +3150,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3134
3150
|
multiple: _ctx.limit == null || _ctx.limit > 1,
|
|
3135
3151
|
class: "f-upload__input",
|
|
3136
3152
|
onChange: onFileChange
|
|
3137
|
-
}, null, 40, _hoisted_2$
|
|
3153
|
+
}, null, 40, _hoisted_2$b),
|
|
3138
3154
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3139
|
-
createElementVNode("div", _hoisted_3$
|
|
3155
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
3140
3156
|
createVNode(FIcon, { size: 40 }, {
|
|
3141
3157
|
default: withCtx(() => [
|
|
3142
3158
|
createVNode(unref(CloudUpload))
|
|
3143
3159
|
]),
|
|
3144
3160
|
_: 1
|
|
3145
3161
|
}),
|
|
3146
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-upload__title" }, "
|
|
3147
|
-
createElementVNode("span", _hoisted_4$
|
|
3162
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-upload__title" }, "点击或拖拽文件到此处", -1)),
|
|
3163
|
+
createElementVNode("span", _hoisted_4$8, toDisplayString(_ctx.hint), 1)
|
|
3148
3164
|
])
|
|
3149
3165
|
], true)
|
|
3150
3166
|
], 34),
|
|
3151
|
-
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3167
|
+
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
3152
3168
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item) => {
|
|
3153
3169
|
return openBlock(), createElementBlock("div", {
|
|
3154
3170
|
key: item.uid,
|
|
@@ -3160,7 +3176,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3160
3176
|
]),
|
|
3161
3177
|
_: 2
|
|
3162
3178
|
}, 1024),
|
|
3163
|
-
createElementVNode("div", _hoisted_6$
|
|
3179
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
3164
3180
|
createElementVNode("span", _hoisted_7$1, toDisplayString(item.name), 1),
|
|
3165
3181
|
item.status === "uploading" ? (openBlock(), createBlock(FProgress, {
|
|
3166
3182
|
key: 0,
|
|
@@ -3196,8 +3212,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3196
3212
|
};
|
|
3197
3213
|
}
|
|
3198
3214
|
});
|
|
3199
|
-
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3200
|
-
const _sfc_main$
|
|
3215
|
+
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-45a5af2d"]]);
|
|
3216
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3201
3217
|
__name: "FButtonGroup",
|
|
3202
3218
|
props: {
|
|
3203
3219
|
size: { default: "normal" },
|
|
@@ -3218,9 +3234,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3218
3234
|
};
|
|
3219
3235
|
}
|
|
3220
3236
|
});
|
|
3221
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3222
|
-
const _hoisted_1$
|
|
3223
|
-
const _sfc_main$
|
|
3237
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a1a51140"]]);
|
|
3238
|
+
const _hoisted_1$c = { class: "f-collapse" };
|
|
3239
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3224
3240
|
__name: "FCollapse",
|
|
3225
3241
|
props: /* @__PURE__ */ mergeModels({
|
|
3226
3242
|
accordion: { type: Boolean, default: false }
|
|
@@ -3260,16 +3276,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3260
3276
|
})
|
|
3261
3277
|
);
|
|
3262
3278
|
return (_ctx, _cache) => {
|
|
3263
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3264
|
-
renderSlot(_ctx.$slots, "default")
|
|
3279
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
3280
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3265
3281
|
]);
|
|
3266
3282
|
};
|
|
3267
3283
|
}
|
|
3268
3284
|
});
|
|
3269
|
-
const
|
|
3270
|
-
const
|
|
3271
|
-
const
|
|
3272
|
-
const
|
|
3285
|
+
const FCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4ec8bde6"]]);
|
|
3286
|
+
const _hoisted_1$b = { class: "f-collapse-item__header-title" };
|
|
3287
|
+
const _hoisted_2$a = { class: "f-collapse-item__wrapper" };
|
|
3288
|
+
const _hoisted_3$a = { class: "f-collapse-item__content" };
|
|
3289
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3273
3290
|
__name: "FCollapseItem",
|
|
3274
3291
|
props: {
|
|
3275
3292
|
name: {},
|
|
@@ -3313,8 +3330,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3313
3330
|
onClick: handleHeaderClick
|
|
3314
3331
|
}, [
|
|
3315
3332
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3316
|
-
createElementVNode("span", _hoisted_1$
|
|
3317
|
-
]),
|
|
3333
|
+
createElementVNode("span", _hoisted_1$b, toDisplayString(_ctx.title), 1)
|
|
3334
|
+
], true),
|
|
3318
3335
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
3319
3336
|
class: "f-collapse-item__icon",
|
|
3320
3337
|
viewBox: "0 0 12 12",
|
|
@@ -3337,9 +3354,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3337
3354
|
onLeave
|
|
3338
3355
|
}, {
|
|
3339
3356
|
default: withCtx(() => [
|
|
3340
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
3341
|
-
createElementVNode("div", _hoisted_3$
|
|
3342
|
-
renderSlot(_ctx.$slots, "default")
|
|
3357
|
+
withDirectives(createElementVNode("div", _hoisted_2$a, [
|
|
3358
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
3359
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3343
3360
|
])
|
|
3344
3361
|
], 512), [
|
|
3345
3362
|
[vShow, unref(isActive)]
|
|
@@ -3351,21 +3368,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3351
3368
|
};
|
|
3352
3369
|
}
|
|
3353
3370
|
});
|
|
3354
|
-
const
|
|
3355
|
-
const
|
|
3371
|
+
const FCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d69a6c2b"]]);
|
|
3372
|
+
const _hoisted_1$a = { class: "f-color-picker__swatch" };
|
|
3373
|
+
const _hoisted_2$9 = {
|
|
3356
3374
|
key: 0,
|
|
3357
3375
|
class: "f-color-picker__panel"
|
|
3358
3376
|
};
|
|
3359
|
-
const _hoisted_3$
|
|
3360
|
-
const _hoisted_4$
|
|
3361
|
-
const _hoisted_5$
|
|
3362
|
-
const _hoisted_6$
|
|
3377
|
+
const _hoisted_3$9 = { class: "f-color-picker__sliders" };
|
|
3378
|
+
const _hoisted_4$7 = { class: "f-color-picker__slider-group" };
|
|
3379
|
+
const _hoisted_5$4 = ["value"];
|
|
3380
|
+
const _hoisted_6$3 = {
|
|
3363
3381
|
key: 0,
|
|
3364
3382
|
class: "f-color-picker__predefine"
|
|
3365
3383
|
};
|
|
3366
3384
|
const _hoisted_7 = ["onClick"];
|
|
3367
3385
|
const hueBackground = "linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)";
|
|
3368
|
-
const _sfc_main$
|
|
3386
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3369
3387
|
__name: "FColorPicker",
|
|
3370
3388
|
props: /* @__PURE__ */ mergeModels({
|
|
3371
3389
|
showAlpha: { type: Boolean, default: false },
|
|
@@ -3591,7 +3609,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3591
3609
|
class: "f-color-picker__trigger",
|
|
3592
3610
|
onClick: togglePanel
|
|
3593
3611
|
}, [
|
|
3594
|
-
createElementVNode("div", _hoisted_1$
|
|
3612
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
3595
3613
|
createElementVNode("span", {
|
|
3596
3614
|
class: "f-color-picker__swatch-color",
|
|
3597
3615
|
style: normalizeStyle({ background: `rgba(${unref(previewRgb).r}, ${unref(previewRgb).g}, ${unref(previewRgb).b}, ${unref(hsva).a})` })
|
|
@@ -3600,7 +3618,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3600
3618
|
]),
|
|
3601
3619
|
createVNode(Transition, { name: "f-color-picker-fade" }, {
|
|
3602
3620
|
default: withCtx(() => [
|
|
3603
|
-
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3621
|
+
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
3604
3622
|
createElementVNode("div", {
|
|
3605
3623
|
ref_key: "panelRef",
|
|
3606
3624
|
ref: panelRef,
|
|
@@ -3613,8 +3631,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3613
3631
|
style: normalizeStyle({ left: `${unref(hsva).s}%`, top: `${100 - unref(hsva).v}%` })
|
|
3614
3632
|
}, null, 4)
|
|
3615
3633
|
], 36),
|
|
3616
|
-
createElementVNode("div", _hoisted_3$
|
|
3617
|
-
createElementVNode("div", _hoisted_4$
|
|
3634
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3635
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
3618
3636
|
createElementVNode("div", {
|
|
3619
3637
|
ref_key: "hueRef",
|
|
3620
3638
|
ref: hueRef,
|
|
@@ -3655,8 +3673,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3655
3673
|
value: toColorString(),
|
|
3656
3674
|
onChange: handleInputChange,
|
|
3657
3675
|
onKeydown: _cache[0] || (_cache[0] = withKeys(($event) => $event.target.blur(), ["enter"]))
|
|
3658
|
-
}, null, 40, _hoisted_5$
|
|
3659
|
-
_ctx.predefine.length ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
3676
|
+
}, null, 40, _hoisted_5$4),
|
|
3677
|
+
_ctx.predefine.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
3660
3678
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.predefine, (color) => {
|
|
3661
3679
|
return openBlock(), createElementBlock("span", {
|
|
3662
3680
|
key: color,
|
|
@@ -3674,28 +3692,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3674
3692
|
};
|
|
3675
3693
|
}
|
|
3676
3694
|
});
|
|
3677
|
-
const
|
|
3678
|
-
const
|
|
3679
|
-
const
|
|
3695
|
+
const FColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2cc1dd01"]]);
|
|
3696
|
+
const _hoisted_1$9 = { class: "f-empty" };
|
|
3697
|
+
const _hoisted_2$8 = ["src"];
|
|
3698
|
+
const _hoisted_3$8 = {
|
|
3680
3699
|
key: 1,
|
|
3681
3700
|
viewBox: "0 0 160 160",
|
|
3682
3701
|
class: "f-empty__image-default"
|
|
3683
3702
|
};
|
|
3684
|
-
const _hoisted_4$
|
|
3685
|
-
const _hoisted_5$
|
|
3703
|
+
const _hoisted_4$6 = { class: "f-empty__description" };
|
|
3704
|
+
const _hoisted_5$3 = {
|
|
3686
3705
|
key: 0,
|
|
3687
3706
|
class: "f-empty__extra"
|
|
3688
3707
|
};
|
|
3689
|
-
const _sfc_main$
|
|
3708
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3690
3709
|
__name: "FEmpty",
|
|
3691
3710
|
props: {
|
|
3692
|
-
description: { default: "
|
|
3711
|
+
description: { default: "鏆傛棤鏁版嵁" },
|
|
3693
3712
|
image: { default: "" },
|
|
3694
3713
|
imageSize: { default: 120 }
|
|
3695
3714
|
},
|
|
3696
3715
|
setup(__props) {
|
|
3697
3716
|
return (_ctx, _cache) => {
|
|
3698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3717
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
3699
3718
|
createElementVNode("div", {
|
|
3700
3719
|
class: "f-empty__image",
|
|
3701
3720
|
style: normalizeStyle({ width: `${_ctx.imageSize}px`, height: `${_ctx.imageSize}px` })
|
|
@@ -3706,30 +3725,31 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3706
3725
|
src: _ctx.image,
|
|
3707
3726
|
class: "f-empty__image-img",
|
|
3708
3727
|
alt: ""
|
|
3709
|
-
}, null, 8, _hoisted_2$
|
|
3710
|
-
createStaticVNode('<ellipse cx="80" cy="132" rx="46" ry="8" fill="currentColor" opacity="0.08"></ellipse><path d="M40 60 L120 60 L128 128 L32 128 Z" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><path d="M40 60 L58 32 L102 32 L120 60" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35"></path><line x1="32" y1="88" x2="128" y2="88" stroke="currentColor" stroke-width="3" opacity="0.35"></line><path d="M64 88 Q80 106 96 88" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" opacity="0.5"></path>', 5)
|
|
3728
|
+
}, null, 8, _hoisted_2$8)) : (openBlock(), createElementBlock("svg", _hoisted_3$8, _cache[0] || (_cache[0] = [
|
|
3729
|
+
createStaticVNode('<ellipse cx="80" cy="132" rx="46" ry="8" fill="currentColor" opacity="0.08" data-v-4df701ef></ellipse><path d="M40 60 L120 60 L128 128 L32 128 Z" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35" data-v-4df701ef></path><path d="M40 60 L58 32 L102 32 L120 60" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" opacity="0.35" data-v-4df701ef></path><line x1="32" y1="88" x2="128" y2="88" stroke="currentColor" stroke-width="3" opacity="0.35" data-v-4df701ef></line><path d="M64 88 Q80 106 96 88" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" opacity="0.5" data-v-4df701ef></path>', 5)
|
|
3711
3730
|
])))
|
|
3712
|
-
])
|
|
3731
|
+
], true)
|
|
3713
3732
|
], 4),
|
|
3714
|
-
createElementVNode("div", _hoisted_4$
|
|
3733
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
3715
3734
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
3716
3735
|
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
3717
|
-
])
|
|
3736
|
+
], true)
|
|
3718
3737
|
]),
|
|
3719
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3720
|
-
renderSlot(_ctx.$slots, "default")
|
|
3738
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
3739
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3721
3740
|
])) : createCommentVNode("", true)
|
|
3722
3741
|
]);
|
|
3723
3742
|
};
|
|
3724
3743
|
}
|
|
3725
3744
|
});
|
|
3726
|
-
const
|
|
3727
|
-
const
|
|
3728
|
-
const
|
|
3745
|
+
const FEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4df701ef"]]);
|
|
3746
|
+
const _hoisted_1$8 = { class: "f-slider__mark-label" };
|
|
3747
|
+
const _hoisted_2$7 = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"];
|
|
3748
|
+
const _hoisted_3$7 = {
|
|
3729
3749
|
key: 0,
|
|
3730
3750
|
class: "f-slider__tooltip"
|
|
3731
3751
|
};
|
|
3732
|
-
const _sfc_main$
|
|
3752
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3733
3753
|
__name: "FSlider",
|
|
3734
3754
|
props: /* @__PURE__ */ mergeModels({
|
|
3735
3755
|
min: { default: 0 },
|
|
@@ -3903,7 +3923,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3903
3923
|
style: normalizeStyle(_ctx.vertical ? { bottom: `${mark.percent}%` } : { left: `${mark.percent}%` })
|
|
3904
3924
|
}, [
|
|
3905
3925
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-slider__mark-dot" }, null, -1)),
|
|
3906
|
-
createElementVNode("span", _hoisted_1$
|
|
3926
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(mark.label), 1)
|
|
3907
3927
|
], 4);
|
|
3908
3928
|
}), 128)),
|
|
3909
3929
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
@@ -3923,18 +3943,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3923
3943
|
}, [
|
|
3924
3944
|
createVNode(Transition, { name: "f-slider-tooltip-fade" }, {
|
|
3925
3945
|
default: withCtx(() => [
|
|
3926
|
-
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3946
|
+
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(value), 1)) : createCommentVNode("", true)
|
|
3927
3947
|
]),
|
|
3928
3948
|
_: 2
|
|
3929
3949
|
}, 1024)
|
|
3930
|
-
], 46, _hoisted_2$
|
|
3950
|
+
], 46, _hoisted_2$7);
|
|
3931
3951
|
}), 128))
|
|
3932
3952
|
], 544)
|
|
3933
3953
|
], 2);
|
|
3934
3954
|
};
|
|
3935
3955
|
}
|
|
3936
3956
|
});
|
|
3937
|
-
const
|
|
3957
|
+
const FSlider = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-ac11d4e9"]]);
|
|
3958
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3938
3959
|
__name: "FScrollbar",
|
|
3939
3960
|
props: {
|
|
3940
3961
|
height: { default: "" },
|
|
@@ -4089,7 +4110,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4089
4110
|
ref: resizeRef,
|
|
4090
4111
|
class: "f-scrollbar__view"
|
|
4091
4112
|
}, [
|
|
4092
|
-
renderSlot(_ctx.$slots, "default")
|
|
4113
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4093
4114
|
], 512)
|
|
4094
4115
|
], 38),
|
|
4095
4116
|
!_ctx.native ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -4122,16 +4143,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4122
4143
|
};
|
|
4123
4144
|
}
|
|
4124
4145
|
});
|
|
4125
|
-
const
|
|
4126
|
-
const
|
|
4127
|
-
const
|
|
4128
|
-
const
|
|
4146
|
+
const FScrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b0e3c8ea"]]);
|
|
4147
|
+
const _hoisted_1$7 = ["disabled"];
|
|
4148
|
+
const _hoisted_2$6 = ["value", "disabled", "placeholder"];
|
|
4149
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4150
|
+
const _hoisted_4$5 = {
|
|
4129
4151
|
key: 2,
|
|
4130
4152
|
class: "f-input-number__stack"
|
|
4131
4153
|
};
|
|
4132
|
-
const _hoisted_5$
|
|
4133
|
-
const _hoisted_6$
|
|
4134
|
-
const _sfc_main$
|
|
4154
|
+
const _hoisted_5$2 = ["disabled"];
|
|
4155
|
+
const _hoisted_6$2 = ["disabled"];
|
|
4156
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4135
4157
|
__name: "FInputNumber",
|
|
4136
4158
|
props: /* @__PURE__ */ mergeModels({
|
|
4137
4159
|
min: { default: -Infinity },
|
|
@@ -4276,7 +4298,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4276
4298
|
]),
|
|
4277
4299
|
_: 1
|
|
4278
4300
|
})
|
|
4279
|
-
], 40, _hoisted_1$
|
|
4301
|
+
], 40, _hoisted_1$7)) : createCommentVNode("", true),
|
|
4280
4302
|
createElementVNode("input", {
|
|
4281
4303
|
ref_key: "inputRef",
|
|
4282
4304
|
ref: inputRef,
|
|
@@ -4291,7 +4313,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4291
4313
|
onBlur: handleBlur,
|
|
4292
4314
|
onKeydown: handleKeydown,
|
|
4293
4315
|
onWheel: handleWheel
|
|
4294
|
-
}, null, 40, _hoisted_2$
|
|
4316
|
+
}, null, 40, _hoisted_2$6),
|
|
4295
4317
|
_ctx.controls && _ctx.controlsPosition === "both" ? (openBlock(), createElementBlock("button", {
|
|
4296
4318
|
key: 1,
|
|
4297
4319
|
type: "button",
|
|
@@ -4308,8 +4330,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4308
4330
|
]),
|
|
4309
4331
|
_: 1
|
|
4310
4332
|
})
|
|
4311
|
-
], 40, _hoisted_3$
|
|
4312
|
-
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4333
|
+
], 40, _hoisted_3$6)) : createCommentVNode("", true),
|
|
4334
|
+
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
4313
4335
|
createElementVNode("button", {
|
|
4314
4336
|
type: "button",
|
|
4315
4337
|
class: "f-input-number__stack-btn",
|
|
@@ -4325,7 +4347,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4325
4347
|
]),
|
|
4326
4348
|
_: 1
|
|
4327
4349
|
})
|
|
4328
|
-
], 40, _hoisted_5$
|
|
4350
|
+
], 40, _hoisted_5$2),
|
|
4329
4351
|
createElementVNode("button", {
|
|
4330
4352
|
type: "button",
|
|
4331
4353
|
class: "f-input-number__stack-btn",
|
|
@@ -4341,35 +4363,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4341
4363
|
]),
|
|
4342
4364
|
_: 1
|
|
4343
4365
|
})
|
|
4344
|
-
], 40, _hoisted_6$
|
|
4366
|
+
], 40, _hoisted_6$2)
|
|
4345
4367
|
])) : createCommentVNode("", true)
|
|
4346
4368
|
], 2);
|
|
4347
4369
|
};
|
|
4348
4370
|
}
|
|
4349
4371
|
});
|
|
4350
|
-
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4351
|
-
const _hoisted_1$
|
|
4352
|
-
const _hoisted_2$
|
|
4372
|
+
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3a928408"]]);
|
|
4373
|
+
const _hoisted_1$6 = { class: "f-result__icon" };
|
|
4374
|
+
const _hoisted_2$5 = {
|
|
4353
4375
|
key: 0,
|
|
4354
4376
|
class: "f-result__code"
|
|
4355
4377
|
};
|
|
4356
|
-
const _hoisted_3$
|
|
4378
|
+
const _hoisted_3$5 = {
|
|
4357
4379
|
key: 0,
|
|
4358
4380
|
class: "f-result__title"
|
|
4359
4381
|
};
|
|
4360
|
-
const _hoisted_4$
|
|
4382
|
+
const _hoisted_4$4 = {
|
|
4361
4383
|
key: 1,
|
|
4362
4384
|
class: "f-result__subtitle"
|
|
4363
4385
|
};
|
|
4364
|
-
const _hoisted_5 = {
|
|
4386
|
+
const _hoisted_5$1 = {
|
|
4365
4387
|
key: 2,
|
|
4366
4388
|
class: "f-result__extra"
|
|
4367
4389
|
};
|
|
4368
|
-
const _hoisted_6 = {
|
|
4390
|
+
const _hoisted_6$1 = {
|
|
4369
4391
|
key: 3,
|
|
4370
4392
|
class: "f-result__content"
|
|
4371
4393
|
};
|
|
4372
|
-
const _sfc_main$
|
|
4394
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4373
4395
|
__name: "FResult",
|
|
4374
4396
|
props: {
|
|
4375
4397
|
status: { default: "info" },
|
|
@@ -4395,9 +4417,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4395
4417
|
return openBlock(), createElementBlock("div", {
|
|
4396
4418
|
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
4397
4419
|
}, [
|
|
4398
|
-
createElementVNode("div", _hoisted_1$
|
|
4420
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
4399
4421
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4400
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4422
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$5, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon, {
|
|
4401
4423
|
key: 1,
|
|
4402
4424
|
size: 72
|
|
4403
4425
|
}, {
|
|
@@ -4408,28 +4430,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4408
4430
|
}))
|
|
4409
4431
|
], true)
|
|
4410
4432
|
]),
|
|
4411
|
-
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4433
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
4412
4434
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4413
4435
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
4414
4436
|
], true)
|
|
4415
4437
|
])) : createCommentVNode("", true),
|
|
4416
|
-
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4438
|
+
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
4417
4439
|
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
4418
4440
|
createTextVNode(toDisplayString(_ctx.subTitle), 1)
|
|
4419
4441
|
], true)
|
|
4420
4442
|
])) : createCommentVNode("", true),
|
|
4421
|
-
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
4443
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
4422
4444
|
renderSlot(_ctx.$slots, "extra", {}, void 0, true)
|
|
4423
4445
|
])) : createCommentVNode("", true),
|
|
4424
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
4446
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
4425
4447
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4426
4448
|
])) : createCommentVNode("", true)
|
|
4427
4449
|
], 2);
|
|
4428
4450
|
};
|
|
4429
4451
|
}
|
|
4430
4452
|
});
|
|
4431
|
-
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4432
|
-
const _sfc_main$
|
|
4453
|
+
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-f0bf955f"]]);
|
|
4454
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4433
4455
|
__name: "FMask",
|
|
4434
4456
|
props: /* @__PURE__ */ mergeModels({
|
|
4435
4457
|
maskClosable: { type: Boolean, default: true },
|
|
@@ -4484,8 +4506,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
4484
4506
|
};
|
|
4485
4507
|
}
|
|
4486
4508
|
});
|
|
4487
|
-
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4488
|
-
const _sfc_main$
|
|
4509
|
+
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a2989c99"]]);
|
|
4510
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4489
4511
|
__name: "FMarquee",
|
|
4490
4512
|
props: {
|
|
4491
4513
|
text: { default: "Fantasia UI" },
|
|
@@ -4513,15 +4535,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4513
4535
|
};
|
|
4514
4536
|
}
|
|
4515
4537
|
});
|
|
4516
|
-
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4517
|
-
const _hoisted_1$
|
|
4518
|
-
const _hoisted_2$
|
|
4519
|
-
const _hoisted_3$
|
|
4520
|
-
const _hoisted_4$
|
|
4538
|
+
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-83eeea3d"]]);
|
|
4539
|
+
const _hoisted_1$5 = { class: "f-step__icon" };
|
|
4540
|
+
const _hoisted_2$4 = { class: "f-step__content" };
|
|
4541
|
+
const _hoisted_3$4 = { class: "f-step__title" };
|
|
4542
|
+
const _hoisted_4$3 = {
|
|
4521
4543
|
key: 0,
|
|
4522
4544
|
class: "f-step__description"
|
|
4523
4545
|
};
|
|
4524
|
-
const _sfc_main$
|
|
4546
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4525
4547
|
__name: "FSteps",
|
|
4526
4548
|
props: {
|
|
4527
4549
|
items: {},
|
|
@@ -4546,10 +4568,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4546
4568
|
key: `${index}-step`,
|
|
4547
4569
|
class: normalizeClass(["f-step", [`is-${resolvedStatus(index, item.status)}`]])
|
|
4548
4570
|
}, [
|
|
4549
|
-
createElementVNode("div", _hoisted_1$
|
|
4550
|
-
createElementVNode("div", _hoisted_2$
|
|
4551
|
-
createElementVNode("div", _hoisted_3$
|
|
4552
|
-
item.description || _ctx.statusText ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4571
|
+
createElementVNode("div", _hoisted_1$5, toDisplayString(index + 1), 1),
|
|
4572
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
4573
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(item.title || `Step ${index + 1}`), 1),
|
|
4574
|
+
item.description || _ctx.statusText ? (openBlock(), createElementBlock("div", _hoisted_4$3, toDisplayString(item.description || "Processing"), 1)) : createCommentVNode("", true)
|
|
4553
4575
|
])
|
|
4554
4576
|
], 2);
|
|
4555
4577
|
}), 128))
|
|
@@ -4557,12 +4579,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4557
4579
|
};
|
|
4558
4580
|
}
|
|
4559
4581
|
});
|
|
4560
|
-
const FSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4561
|
-
const _hoisted_1$
|
|
4562
|
-
const _hoisted_2$
|
|
4563
|
-
const _hoisted_3$
|
|
4564
|
-
const _hoisted_4$
|
|
4565
|
-
const _sfc_main$
|
|
4582
|
+
const FSteps = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-39ce5b1c"]]);
|
|
4583
|
+
const _hoisted_1$4 = { class: "f-dialog__icon" };
|
|
4584
|
+
const _hoisted_2$3 = { class: "f-dialog__title" };
|
|
4585
|
+
const _hoisted_3$3 = { class: "f-dialog__body" };
|
|
4586
|
+
const _hoisted_4$2 = { key: 0 };
|
|
4587
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4566
4588
|
__name: "FDialog",
|
|
4567
4589
|
props: /* @__PURE__ */ mergeModels({
|
|
4568
4590
|
title: { default: "提示" },
|
|
@@ -4655,7 +4677,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4655
4677
|
class: normalizeClass(["f-dialog__header", { "has-divider": _ctx.divider }])
|
|
4656
4678
|
}, [
|
|
4657
4679
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4658
|
-
createElementVNode("div", _hoisted_1$
|
|
4680
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
4659
4681
|
createVNode(FIcon, null, {
|
|
4660
4682
|
default: withCtx(() => [
|
|
4661
4683
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
@@ -4663,13 +4685,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4663
4685
|
_: 1
|
|
4664
4686
|
})
|
|
4665
4687
|
]),
|
|
4666
|
-
createElementVNode("h3", _hoisted_2$
|
|
4667
|
-
])
|
|
4688
|
+
createElementVNode("h3", _hoisted_2$3, toDisplayString(_ctx.title), 1)
|
|
4689
|
+
], true)
|
|
4668
4690
|
], 2)) : createCommentVNode("", true),
|
|
4669
|
-
createElementVNode("div", _hoisted_3$
|
|
4691
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
4670
4692
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4671
|
-
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
4672
|
-
])
|
|
4693
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$2, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
4694
|
+
], true)
|
|
4673
4695
|
]),
|
|
4674
4696
|
createElementVNode("div", {
|
|
4675
4697
|
class: normalizeClass(["f-dialog__footer", { "has-divider": _ctx.divider }])
|
|
@@ -4693,7 +4715,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4693
4715
|
]),
|
|
4694
4716
|
_: 1
|
|
4695
4717
|
})
|
|
4696
|
-
])
|
|
4718
|
+
], true)
|
|
4697
4719
|
], 2)
|
|
4698
4720
|
], 2)) : createCommentVNode("", true)
|
|
4699
4721
|
]),
|
|
@@ -4707,17 +4729,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4707
4729
|
};
|
|
4708
4730
|
}
|
|
4709
4731
|
});
|
|
4710
|
-
const
|
|
4732
|
+
const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-32296f2f"]]);
|
|
4733
|
+
const _hoisted_1$3 = {
|
|
4711
4734
|
key: 0,
|
|
4712
4735
|
class: "f-drawer__header"
|
|
4713
4736
|
};
|
|
4714
|
-
const _hoisted_2$
|
|
4715
|
-
const _hoisted_3$
|
|
4716
|
-
const _hoisted_4 = {
|
|
4737
|
+
const _hoisted_2$2 = { class: "f-drawer__title" };
|
|
4738
|
+
const _hoisted_3$2 = { class: "f-drawer__body" };
|
|
4739
|
+
const _hoisted_4$1 = {
|
|
4717
4740
|
key: 1,
|
|
4718
4741
|
class: "f-drawer__footer"
|
|
4719
4742
|
};
|
|
4720
|
-
const _sfc_main$
|
|
4743
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4721
4744
|
__name: "FDrawer",
|
|
4722
4745
|
props: /* @__PURE__ */ mergeModels({
|
|
4723
4746
|
title: {},
|
|
@@ -4777,9 +4800,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4777
4800
|
[_ctx.placement === "left" || _ctx.placement === "right" ? "width" : "height"]: _ctx.size
|
|
4778
4801
|
})
|
|
4779
4802
|
}, [
|
|
4780
|
-
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4803
|
+
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
4781
4804
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4782
|
-
createElementVNode("h3", _hoisted_2$
|
|
4805
|
+
createElementVNode("h3", _hoisted_2$2, toDisplayString(_ctx.title), 1)
|
|
4783
4806
|
], true),
|
|
4784
4807
|
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
4785
4808
|
key: 0,
|
|
@@ -4796,10 +4819,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4796
4819
|
})
|
|
4797
4820
|
])) : createCommentVNode("", true)
|
|
4798
4821
|
])) : createCommentVNode("", true),
|
|
4799
|
-
createElementVNode("div", _hoisted_3$
|
|
4822
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
4800
4823
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4801
4824
|
]),
|
|
4802
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4825
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
4803
4826
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
4804
4827
|
])) : createCommentVNode("", true)
|
|
4805
4828
|
], 6)) : createCommentVNode("", true)
|
|
@@ -4810,7 +4833,455 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4810
4833
|
};
|
|
4811
4834
|
}
|
|
4812
4835
|
});
|
|
4813
|
-
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4836
|
+
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8f7155b9"]]);
|
|
4837
|
+
const _hoisted_1$2 = { class: "crop-box" };
|
|
4838
|
+
const _hoisted_2$1 = {
|
|
4839
|
+
key: 0,
|
|
4840
|
+
class: "crop-container"
|
|
4841
|
+
};
|
|
4842
|
+
const _hoisted_3$1 = ["src"];
|
|
4843
|
+
const _hoisted_4 = ["draggable"];
|
|
4844
|
+
const _hoisted_5 = ["id", "data-direction", "onMousedown", "onTouchstart"];
|
|
4845
|
+
const _hoisted_6 = {
|
|
4846
|
+
key: 1,
|
|
4847
|
+
class: "empty-state"
|
|
4848
|
+
};
|
|
4849
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4850
|
+
__name: "FCrop",
|
|
4851
|
+
props: {
|
|
4852
|
+
src: {},
|
|
4853
|
+
resizeDir: { default: () => ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"] },
|
|
4854
|
+
size: { default: 200 },
|
|
4855
|
+
minResizeSize: { default: 50 },
|
|
4856
|
+
outputFileType: { default: "image/png" },
|
|
4857
|
+
outputType: { default: "file" },
|
|
4858
|
+
quality: { default: 0.92 },
|
|
4859
|
+
scale: { default: 2 },
|
|
4860
|
+
mosaic: { type: Boolean, default: false },
|
|
4861
|
+
backgroundColor: { default: "" },
|
|
4862
|
+
cutClass: { default: "" },
|
|
4863
|
+
resizeClass: { default: "" }
|
|
4864
|
+
},
|
|
4865
|
+
emits: ["crop", "change", "cancel"],
|
|
4866
|
+
setup(__props, { emit: __emit }) {
|
|
4867
|
+
const resizeDirArray = ["top", "right", "bottom", "left", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
4868
|
+
const props = __props;
|
|
4869
|
+
const emit = __emit;
|
|
4870
|
+
const imageUrl = ref("");
|
|
4871
|
+
const cutPosition = ref({ x: 0, y: 0 });
|
|
4872
|
+
const isDragging = ref(false);
|
|
4873
|
+
const startPos = ref({ x: 0, y: 0 });
|
|
4874
|
+
const size = ref(props.size);
|
|
4875
|
+
const width = ref(props.size);
|
|
4876
|
+
const height = ref(props.size);
|
|
4877
|
+
const isResizing = ref(false);
|
|
4878
|
+
const resizeStartPos = ref({ x: 0, y: 0 });
|
|
4879
|
+
const maskStyle = computed(() => {
|
|
4880
|
+
const x = cutPosition.value.x;
|
|
4881
|
+
const y = cutPosition.value.y;
|
|
4882
|
+
return {
|
|
4883
|
+
clipPath: `polygon(
|
|
4884
|
+
0 0,
|
|
4885
|
+
100% 0,
|
|
4886
|
+
100% 100%,
|
|
4887
|
+
0 100%,
|
|
4888
|
+
0 ${y}px,
|
|
4889
|
+
${x}px ${y}px,
|
|
4890
|
+
${x}px ${y + height.value}px,
|
|
4891
|
+
${x + width.value}px ${y + height.value}px,
|
|
4892
|
+
${x + width.value}px ${y}px,
|
|
4893
|
+
${x}px ${y}px,
|
|
4894
|
+
0 ${y}px
|
|
4895
|
+
)`
|
|
4896
|
+
};
|
|
4897
|
+
});
|
|
4898
|
+
watch(() => props.src, (newSrc) => {
|
|
4899
|
+
if (!newSrc) {
|
|
4900
|
+
imageUrl.value = "";
|
|
4901
|
+
return;
|
|
4902
|
+
}
|
|
4903
|
+
if (typeof newSrc === "string") {
|
|
4904
|
+
imageUrl.value = newSrc;
|
|
4905
|
+
} else if (newSrc instanceof File) {
|
|
4906
|
+
imageUrl.value = URL.createObjectURL(newSrc);
|
|
4907
|
+
}
|
|
4908
|
+
nextTick(() => {
|
|
4909
|
+
const img2 = new Image();
|
|
4910
|
+
img2.src = imageUrl.value;
|
|
4911
|
+
img2.onload = () => {
|
|
4912
|
+
preCalculate();
|
|
4913
|
+
requestAnimationFrame(() => throttledHandleCut());
|
|
4914
|
+
};
|
|
4915
|
+
});
|
|
4916
|
+
}, { immediate: true });
|
|
4917
|
+
let container = null;
|
|
4918
|
+
let img = null;
|
|
4919
|
+
let containerWidth;
|
|
4920
|
+
let containerHeight;
|
|
4921
|
+
let imgRatio;
|
|
4922
|
+
let containerRatio;
|
|
4923
|
+
let renderedWidth;
|
|
4924
|
+
let renderedHeight;
|
|
4925
|
+
let offsetX;
|
|
4926
|
+
let offsetY;
|
|
4927
|
+
const rafThrottle = (func) => {
|
|
4928
|
+
let isRunning = false;
|
|
4929
|
+
return (...args) => {
|
|
4930
|
+
if (!isRunning) {
|
|
4931
|
+
isRunning = true;
|
|
4932
|
+
requestAnimationFrame(() => {
|
|
4933
|
+
func.apply(this, args);
|
|
4934
|
+
isRunning = false;
|
|
4935
|
+
});
|
|
4936
|
+
}
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
4939
|
+
const preCalculate = () => {
|
|
4940
|
+
container = document.querySelector(".preview");
|
|
4941
|
+
if (!container) return;
|
|
4942
|
+
img = container.querySelector(".image");
|
|
4943
|
+
if (!img) return;
|
|
4944
|
+
requestAnimationFrame(() => {
|
|
4945
|
+
if (!container || !img) return;
|
|
4946
|
+
containerWidth = container.clientWidth;
|
|
4947
|
+
containerHeight = container.clientHeight;
|
|
4948
|
+
imgRatio = img.naturalWidth / img.naturalHeight;
|
|
4949
|
+
containerRatio = containerWidth / containerHeight;
|
|
4950
|
+
if (imgRatio > containerRatio) {
|
|
4951
|
+
renderedWidth = containerWidth;
|
|
4952
|
+
renderedHeight = containerWidth / imgRatio;
|
|
4953
|
+
} else {
|
|
4954
|
+
renderedHeight = containerHeight;
|
|
4955
|
+
renderedWidth = containerHeight * imgRatio;
|
|
4956
|
+
}
|
|
4957
|
+
offsetX = (containerWidth - renderedWidth) / 2;
|
|
4958
|
+
offsetY = (containerHeight - renderedHeight) / 2;
|
|
4959
|
+
const initSize = Math.min(size.value, Math.min(renderedWidth, renderedHeight));
|
|
4960
|
+
size.value = initSize;
|
|
4961
|
+
width.value = initSize;
|
|
4962
|
+
height.value = initSize;
|
|
4963
|
+
const maxX = offsetX + renderedWidth - initSize;
|
|
4964
|
+
const maxY = offsetY + renderedHeight - initSize;
|
|
4965
|
+
cutPosition.value = {
|
|
4966
|
+
x: Math.max(offsetX, Math.min(offsetX + (renderedWidth - initSize) / 2, maxX)),
|
|
4967
|
+
y: Math.max(offsetY, Math.min(offsetY + (renderedHeight - initSize) / 2, maxY))
|
|
4968
|
+
};
|
|
4969
|
+
});
|
|
4970
|
+
};
|
|
4971
|
+
const handleDragStart = (e) => {
|
|
4972
|
+
isDragging.value = true;
|
|
4973
|
+
isResizing.value = false;
|
|
4974
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
4975
|
+
let clientX;
|
|
4976
|
+
let clientY;
|
|
4977
|
+
if (e instanceof TouchEvent) {
|
|
4978
|
+
clientX = e.touches[0].clientX;
|
|
4979
|
+
clientY = e.touches[0].clientY;
|
|
4980
|
+
} else {
|
|
4981
|
+
clientX = e.clientX;
|
|
4982
|
+
clientY = e.clientY;
|
|
4983
|
+
}
|
|
4984
|
+
startPos.value = {
|
|
4985
|
+
x: clientX - rect.left,
|
|
4986
|
+
y: clientY - rect.top
|
|
4987
|
+
};
|
|
4988
|
+
if (e instanceof DragEvent) {
|
|
4989
|
+
if (e.dataTransfer) {
|
|
4990
|
+
e.dataTransfer.setDragImage(new Image(), 0, 0);
|
|
4991
|
+
}
|
|
4992
|
+
} else {
|
|
4993
|
+
e.preventDefault();
|
|
4994
|
+
}
|
|
4995
|
+
};
|
|
4996
|
+
const handleDragMove = (e) => {
|
|
4997
|
+
if (!isDragging.value || isResizing.value) return;
|
|
4998
|
+
let clientX;
|
|
4999
|
+
let clientY;
|
|
5000
|
+
if (e instanceof TouchEvent) {
|
|
5001
|
+
clientX = e.touches[0].clientX;
|
|
5002
|
+
clientY = e.touches[0].clientY;
|
|
5003
|
+
} else {
|
|
5004
|
+
clientX = e.clientX;
|
|
5005
|
+
clientY = e.clientY;
|
|
5006
|
+
}
|
|
5007
|
+
if (!clientX || !clientY) return;
|
|
5008
|
+
e.preventDefault();
|
|
5009
|
+
const containerEl = document.querySelector(".preview");
|
|
5010
|
+
if (!containerEl) return;
|
|
5011
|
+
const rect = containerEl.getBoundingClientRect();
|
|
5012
|
+
let newX = clientX - startPos.value.x - rect.left;
|
|
5013
|
+
let newY = clientY - startPos.value.y - rect.top;
|
|
5014
|
+
const imageLeft = offsetX;
|
|
5015
|
+
const imageTop = offsetY;
|
|
5016
|
+
const imageRight = offsetX + renderedWidth;
|
|
5017
|
+
const imageBottom = offsetY + renderedHeight;
|
|
5018
|
+
newX = Math.max(imageLeft, Math.min(newX, imageRight - width.value));
|
|
5019
|
+
newY = Math.max(imageTop, Math.min(newY, imageBottom - height.value));
|
|
5020
|
+
cutPosition.value = { x: newX, y: newY };
|
|
5021
|
+
throttledHandleCut();
|
|
5022
|
+
};
|
|
5023
|
+
const handleDragEnd = () => isDragging.value = false;
|
|
5024
|
+
const tempCanvas = () => {
|
|
5025
|
+
return document.createElement("canvas");
|
|
5026
|
+
};
|
|
5027
|
+
const handleCut = () => __async(this, null, function* () {
|
|
5028
|
+
if (!container || !img) return null;
|
|
5029
|
+
const currentOffsetX = offsetX;
|
|
5030
|
+
const currentOffsetY = offsetY;
|
|
5031
|
+
const currentRenderedWidth = renderedWidth;
|
|
5032
|
+
const currentRenderedHeight = renderedHeight;
|
|
5033
|
+
const sx = (cutPosition.value.x - currentOffsetX) * (img.naturalWidth / currentRenderedWidth);
|
|
5034
|
+
const sy = (cutPosition.value.y - currentOffsetY) * (img.naturalHeight / currentRenderedHeight);
|
|
5035
|
+
const validSx = Math.max(0, sx);
|
|
5036
|
+
const validSy = Math.max(0, sy);
|
|
5037
|
+
const validWidth = Math.min(width.value * (img.naturalWidth / renderedWidth), img.naturalWidth - validSx);
|
|
5038
|
+
const validHeight = Math.min(height.value * (img.naturalHeight / renderedHeight), img.naturalHeight - validSy);
|
|
5039
|
+
const cvs = tempCanvas();
|
|
5040
|
+
cvs.width = width.value * props.scale;
|
|
5041
|
+
cvs.height = height.value * props.scale;
|
|
5042
|
+
const ctx = cvs.getContext("2d");
|
|
5043
|
+
ctx.clearRect(0, 0, cvs.width, cvs.height);
|
|
5044
|
+
ctx.drawImage(
|
|
5045
|
+
img,
|
|
5046
|
+
validSx,
|
|
5047
|
+
validSy,
|
|
5048
|
+
validWidth,
|
|
5049
|
+
validHeight,
|
|
5050
|
+
0,
|
|
5051
|
+
0,
|
|
5052
|
+
width.value * props.scale,
|
|
5053
|
+
height.value * props.scale
|
|
5054
|
+
);
|
|
5055
|
+
return new Promise((resolve) => {
|
|
5056
|
+
cvs.toBlob((blob) => {
|
|
5057
|
+
if (!blob) {
|
|
5058
|
+
resolve({ width: width.value, height: height.value });
|
|
5059
|
+
return;
|
|
5060
|
+
}
|
|
5061
|
+
const result = {
|
|
5062
|
+
width: width.value * props.scale,
|
|
5063
|
+
height: height.value * props.scale
|
|
5064
|
+
};
|
|
5065
|
+
if (props.outputType === "file" || props.outputType === "blob") {
|
|
5066
|
+
result.blob = blob;
|
|
5067
|
+
}
|
|
5068
|
+
if (props.outputType === "file") {
|
|
5069
|
+
result.file = new File([blob], `crop-${Date.now()}.${props.outputFileType.split("/")[1]}`, {
|
|
5070
|
+
type: props.outputFileType
|
|
5071
|
+
});
|
|
5072
|
+
}
|
|
5073
|
+
if (props.outputType === "base64") {
|
|
5074
|
+
result.base64 = cvs.toDataURL(props.outputFileType, props.quality);
|
|
5075
|
+
}
|
|
5076
|
+
resolve(result);
|
|
5077
|
+
}, props.outputFileType, props.quality);
|
|
5078
|
+
});
|
|
5079
|
+
});
|
|
5080
|
+
const throttledHandleCut = rafThrottle(() => __async(this, null, function* () {
|
|
5081
|
+
const result = yield handleCut();
|
|
5082
|
+
if (result) {
|
|
5083
|
+
emit("change", result);
|
|
5084
|
+
}
|
|
5085
|
+
}));
|
|
5086
|
+
const handleConfirm = () => __async(this, null, function* () {
|
|
5087
|
+
const result = yield handleCut();
|
|
5088
|
+
if (result) {
|
|
5089
|
+
emit("crop", result);
|
|
5090
|
+
}
|
|
5091
|
+
});
|
|
5092
|
+
const handleCancel = () => {
|
|
5093
|
+
emit("cancel");
|
|
5094
|
+
};
|
|
5095
|
+
const handleResizeStart = (e, direction) => {
|
|
5096
|
+
var _a;
|
|
5097
|
+
if (e instanceof TouchEvent && e.cancelable) e.preventDefault();
|
|
5098
|
+
const dirEl = document.getElementById(direction || "");
|
|
5099
|
+
if (dirEl) dirEl.classList.add("is_focus");
|
|
5100
|
+
isResizing.value = true;
|
|
5101
|
+
isDragging.value = false;
|
|
5102
|
+
const dir = direction || ((_a = e.target.dataset) == null ? void 0 : _a.direction);
|
|
5103
|
+
if (!dir) return;
|
|
5104
|
+
let clientX;
|
|
5105
|
+
let clientY;
|
|
5106
|
+
if (e instanceof TouchEvent) {
|
|
5107
|
+
clientX = e.touches[0].clientX;
|
|
5108
|
+
clientY = e.touches[0].clientY;
|
|
5109
|
+
} else {
|
|
5110
|
+
clientX = e.clientX;
|
|
5111
|
+
clientY = e.clientY;
|
|
5112
|
+
}
|
|
5113
|
+
resizeStartPos.value = { x: clientX, y: clientY };
|
|
5114
|
+
const moveEvent = e instanceof MouseEvent ? "mousemove" : "touchmove";
|
|
5115
|
+
const endEvent = e instanceof MouseEvent ? "mouseup" : "touchend";
|
|
5116
|
+
const onMove = (moveE) => {
|
|
5117
|
+
if (!isResizing.value) return;
|
|
5118
|
+
let moveX;
|
|
5119
|
+
let moveY;
|
|
5120
|
+
if (moveE instanceof TouchEvent) {
|
|
5121
|
+
moveX = moveE.touches[0].clientX;
|
|
5122
|
+
moveY = moveE.touches[0].clientY;
|
|
5123
|
+
} else {
|
|
5124
|
+
moveX = moveE.clientX;
|
|
5125
|
+
moveY = moveE.clientY;
|
|
5126
|
+
}
|
|
5127
|
+
if (!container) return;
|
|
5128
|
+
const containerRect = container.getBoundingClientRect();
|
|
5129
|
+
if (moveX < containerRect.left || moveX > containerRect.right || moveY < containerRect.top || moveY > containerRect.bottom) {
|
|
5130
|
+
onEnd();
|
|
5131
|
+
return;
|
|
5132
|
+
}
|
|
5133
|
+
requestAnimationFrame(() => {
|
|
5134
|
+
const deltaX = moveX - resizeStartPos.value.x;
|
|
5135
|
+
const deltaY = moveY - resizeStartPos.value.y;
|
|
5136
|
+
let newWidth = width.value;
|
|
5137
|
+
let newHeight = height.value;
|
|
5138
|
+
let newX = cutPosition.value.x;
|
|
5139
|
+
let newY = cutPosition.value.y;
|
|
5140
|
+
const maxWidth = offsetX + renderedWidth - cutPosition.value.x;
|
|
5141
|
+
const maxHeight = offsetY + renderedHeight - cutPosition.value.y;
|
|
5142
|
+
const availableHeight = cutPosition.value.y - offsetY + height.value;
|
|
5143
|
+
switch (dir) {
|
|
5144
|
+
case "top":
|
|
5145
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5146
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5147
|
+
break;
|
|
5148
|
+
case "right":
|
|
5149
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5150
|
+
break;
|
|
5151
|
+
case "bottom":
|
|
5152
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5153
|
+
break;
|
|
5154
|
+
case "left":
|
|
5155
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5156
|
+
newX = cutPosition.value.x + (width.value - newWidth);
|
|
5157
|
+
break;
|
|
5158
|
+
case "top-left":
|
|
5159
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5160
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5161
|
+
newX = Math.max(offsetX, cutPosition.value.x + (width.value - newWidth));
|
|
5162
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5163
|
+
break;
|
|
5164
|
+
case "top-right":
|
|
5165
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5166
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5167
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5168
|
+
break;
|
|
5169
|
+
case "bottom-left":
|
|
5170
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5171
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5172
|
+
newX = cutPosition.value.x + (width.value - newWidth);
|
|
5173
|
+
break;
|
|
5174
|
+
case "bottom-right":
|
|
5175
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5176
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5177
|
+
break;
|
|
5178
|
+
}
|
|
5179
|
+
newX = Math.max(offsetX, Math.min(newX, offsetX + renderedWidth - newWidth));
|
|
5180
|
+
newY = Math.max(offsetY, Math.min(newY, offsetY + renderedHeight - newHeight));
|
|
5181
|
+
width.value = newWidth;
|
|
5182
|
+
height.value = newHeight;
|
|
5183
|
+
cutPosition.value = { x: newX, y: newY };
|
|
5184
|
+
throttledHandleCut();
|
|
5185
|
+
resizeStartPos.value = { x: moveX, y: moveY };
|
|
5186
|
+
});
|
|
5187
|
+
};
|
|
5188
|
+
const onEnd = () => {
|
|
5189
|
+
if (isResizing.value && dirEl) {
|
|
5190
|
+
isResizing.value = false;
|
|
5191
|
+
dirEl.classList.remove("is_focus");
|
|
5192
|
+
document.removeEventListener(moveEvent, onMove);
|
|
5193
|
+
document.removeEventListener(endEvent, onEnd);
|
|
5194
|
+
document.removeEventListener("mouseleave", onEnd);
|
|
5195
|
+
}
|
|
5196
|
+
};
|
|
5197
|
+
document.addEventListener(moveEvent, onMove);
|
|
5198
|
+
document.addEventListener(endEvent, onEnd);
|
|
5199
|
+
document.addEventListener("mouseleave", onEnd);
|
|
5200
|
+
e.stopPropagation();
|
|
5201
|
+
};
|
|
5202
|
+
const handleWindowResize = () => {
|
|
5203
|
+
preCalculate();
|
|
5204
|
+
throttledHandleCut();
|
|
5205
|
+
};
|
|
5206
|
+
onMounted(() => {
|
|
5207
|
+
window.addEventListener("resize", handleWindowResize);
|
|
5208
|
+
});
|
|
5209
|
+
onUnmounted(() => {
|
|
5210
|
+
window.removeEventListener("resize", handleWindowResize);
|
|
5211
|
+
if (imageUrl.value && imageUrl.value.startsWith("blob:")) {
|
|
5212
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
5213
|
+
}
|
|
5214
|
+
});
|
|
5215
|
+
return (_ctx, _cache) => {
|
|
5216
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
5217
|
+
unref(imageUrl) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
5218
|
+
createElementVNode("div", {
|
|
5219
|
+
class: normalizeClass(["preview", { "mosaic-bg": props.mosaic }]),
|
|
5220
|
+
style: normalizeStyle({ background: props.backgroundColor || void 0 })
|
|
5221
|
+
}, [
|
|
5222
|
+
createElementVNode("img", {
|
|
5223
|
+
src: unref(imageUrl),
|
|
5224
|
+
class: "image"
|
|
5225
|
+
}, null, 8, _hoisted_3$1),
|
|
5226
|
+
createElementVNode("div", {
|
|
5227
|
+
style: normalizeStyle({
|
|
5228
|
+
transform: `translate(${unref(cutPosition).x}px, ${unref(cutPosition).y}px)`,
|
|
5229
|
+
width: `${unref(width)}px`,
|
|
5230
|
+
height: `${unref(height)}px`
|
|
5231
|
+
}),
|
|
5232
|
+
draggable: !unref(isResizing),
|
|
5233
|
+
onDragstart: handleDragStart,
|
|
5234
|
+
onDrag: handleDragMove,
|
|
5235
|
+
onDragend: handleDragEnd,
|
|
5236
|
+
onTouchstart: handleDragStart,
|
|
5237
|
+
onTouchmove: handleDragMove,
|
|
5238
|
+
onTouchend: handleDragEnd,
|
|
5239
|
+
class: normalizeClass(["cut", [props.cutClass, unref(isDragging) ? "move" : "", unref(isResizing) ? "move" : ""]])
|
|
5240
|
+
}, [
|
|
5241
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(resizeDirArray, (direction, i) => {
|
|
5242
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
5243
|
+
props.resizeDir.includes(direction) ? (openBlock(), createElementBlock("div", {
|
|
5244
|
+
key: 0,
|
|
5245
|
+
id: direction,
|
|
5246
|
+
class: normalizeClass([
|
|
5247
|
+
direction.includes("-") ? "resize-point" : "resize-line",
|
|
5248
|
+
direction,
|
|
5249
|
+
props.resizeClass
|
|
5250
|
+
]),
|
|
5251
|
+
"data-direction": direction,
|
|
5252
|
+
onMousedown: ($event) => handleResizeStart($event, direction),
|
|
5253
|
+
onTouchstart: ($event) => handleResizeStart($event, direction)
|
|
5254
|
+
}, null, 42, _hoisted_5)) : createCommentVNode("", true)
|
|
5255
|
+
], 64);
|
|
5256
|
+
}), 64))
|
|
5257
|
+
], 46, _hoisted_4),
|
|
5258
|
+
createElementVNode("div", {
|
|
5259
|
+
class: "mask",
|
|
5260
|
+
style: normalizeStyle(unref(maskStyle))
|
|
5261
|
+
}, null, 4)
|
|
5262
|
+
], 6),
|
|
5263
|
+
createElementVNode("div", { class: "actions" }, [
|
|
5264
|
+
createElementVNode("button", {
|
|
5265
|
+
onClick: handleCancel,
|
|
5266
|
+
class: "btn btn-cancel",
|
|
5267
|
+
type: "button"
|
|
5268
|
+
}, "取消"),
|
|
5269
|
+
createElementVNode("button", {
|
|
5270
|
+
onClick: handleConfirm,
|
|
5271
|
+
class: "btn btn-primary",
|
|
5272
|
+
type: "button"
|
|
5273
|
+
}, "确认裁剪")
|
|
5274
|
+
])
|
|
5275
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
5276
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
5277
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "empty-text" }, "请设置 src 属性加载图片", -1))
|
|
5278
|
+
], true)
|
|
5279
|
+
]))
|
|
5280
|
+
]);
|
|
5281
|
+
};
|
|
5282
|
+
}
|
|
5283
|
+
});
|
|
5284
|
+
const FCrop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-54852b1f"]]);
|
|
4814
5285
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4815
5286
|
__proto__: null,
|
|
4816
5287
|
FAffix,
|
|
@@ -4823,16 +5294,17 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4823
5294
|
FCard,
|
|
4824
5295
|
FCheckbox,
|
|
4825
5296
|
FCol,
|
|
4826
|
-
FCollapse
|
|
4827
|
-
FCollapseItem
|
|
4828
|
-
FColorPicker
|
|
5297
|
+
FCollapse,
|
|
5298
|
+
FCollapseItem,
|
|
5299
|
+
FColorPicker,
|
|
4829
5300
|
FContainer,
|
|
4830
|
-
|
|
5301
|
+
FCrop,
|
|
5302
|
+
FDialog: FDialogComp,
|
|
4831
5303
|
FDivider,
|
|
4832
5304
|
FDrawer,
|
|
4833
5305
|
FDropdown,
|
|
4834
5306
|
FEditor,
|
|
4835
|
-
FEmpty
|
|
5307
|
+
FEmpty,
|
|
4836
5308
|
FForm,
|
|
4837
5309
|
FFormItem,
|
|
4838
5310
|
FIcon,
|
|
@@ -4850,9 +5322,9 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4850
5322
|
FRate,
|
|
4851
5323
|
FResult,
|
|
4852
5324
|
FRow,
|
|
4853
|
-
FScrollbar
|
|
5325
|
+
FScrollbar,
|
|
4854
5326
|
FSelect,
|
|
4855
|
-
FSlider
|
|
5327
|
+
FSlider,
|
|
4856
5328
|
FSpace,
|
|
4857
5329
|
FSteps,
|
|
4858
5330
|
FSwitch,
|
|
@@ -4884,7 +5356,7 @@ const showDialog = (options) => {
|
|
|
4884
5356
|
render(null, container);
|
|
4885
5357
|
document.body.removeChild(container);
|
|
4886
5358
|
};
|
|
4887
|
-
const vnode = h(
|
|
5359
|
+
const vnode = h(FDialogComp, __spreadValues({
|
|
4888
5360
|
modelValue: visible.value,
|
|
4889
5361
|
"onUpdate:modelValue": (val) => {
|
|
4890
5362
|
visible.value = val;
|
|
@@ -5039,7 +5511,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5039
5511
|
};
|
|
5040
5512
|
}
|
|
5041
5513
|
});
|
|
5042
|
-
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
5514
|
+
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a4468253"]]);
|
|
5043
5515
|
const GAP$1 = 16;
|
|
5044
5516
|
const BASE_OFFSET$1 = 20;
|
|
5045
5517
|
let seed$1 = 0;
|
|
@@ -5229,7 +5701,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5229
5701
|
};
|
|
5230
5702
|
}
|
|
5231
5703
|
});
|
|
5232
|
-
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5704
|
+
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dcbe6189"]]);
|
|
5233
5705
|
const GAP = 16;
|
|
5234
5706
|
const BASE_OFFSET = 20;
|
|
5235
5707
|
let seed = 0;
|
|
@@ -5336,17 +5808,18 @@ export {
|
|
|
5336
5808
|
FCard,
|
|
5337
5809
|
FCheckbox,
|
|
5338
5810
|
FCol,
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5811
|
+
FCollapse,
|
|
5812
|
+
FCollapseItem,
|
|
5813
|
+
FColorPicker,
|
|
5342
5814
|
FContainer,
|
|
5343
|
-
|
|
5815
|
+
FCrop,
|
|
5816
|
+
FDialogComp as FDialog,
|
|
5344
5817
|
FDialog as FDialogBox,
|
|
5345
5818
|
FDivider,
|
|
5346
5819
|
FDrawer,
|
|
5347
5820
|
FDropdown,
|
|
5348
5821
|
FEditor,
|
|
5349
|
-
|
|
5822
|
+
FEmpty,
|
|
5350
5823
|
FForm,
|
|
5351
5824
|
FFormItem,
|
|
5352
5825
|
FIcon,
|
|
@@ -5366,9 +5839,9 @@ export {
|
|
|
5366
5839
|
FRate,
|
|
5367
5840
|
FResult,
|
|
5368
5841
|
FRow,
|
|
5369
|
-
|
|
5842
|
+
FScrollbar,
|
|
5370
5843
|
FSelect,
|
|
5371
|
-
|
|
5844
|
+
FSlider,
|
|
5372
5845
|
FSpace,
|
|
5373
5846
|
FSteps,
|
|
5374
5847
|
FSwitch,
|