fantasia-ui 0.2.63 → 0.3.0
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 +2196 -1529
- package/dist/fantasia-ui.es.js +879 -410
- package/dist/fantasia-ui.umd.js +878 -409
- 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-d83ce6c0"]]);
|
|
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,7 +1597,17 @@ 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
1612
|
const s = SIZE_MAP[mergedSize.value] || SIZE_MAP.normal;
|
|
1603
1613
|
const style = {
|
|
@@ -1606,7 +1616,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1606
1616
|
fontSize: s.f,
|
|
1607
1617
|
minWidth: props.circle ? s.h : "auto",
|
|
1608
1618
|
backgroundColor: props.bgColor,
|
|
1609
|
-
color: props.color
|
|
1619
|
+
color: props.color,
|
|
1620
|
+
"--f-button-gap": s.g,
|
|
1621
|
+
"--f-button-h": s.h
|
|
1610
1622
|
};
|
|
1611
1623
|
if (props.circle) {
|
|
1612
1624
|
style.borderRadius = "50%";
|
|
@@ -1639,8 +1651,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1639
1651
|
disabled: unref(isDisabled),
|
|
1640
1652
|
style: normalizeStyle(unref(buttonStyle))
|
|
1641
1653
|
}, [
|
|
1642
|
-
createElementVNode("span", _hoisted_2$
|
|
1643
|
-
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1654
|
+
createElementVNode("span", _hoisted_2$m, [
|
|
1655
|
+
_ctx.loading ? (openBlock(), createElementBlock("span", _hoisted_3$l)) : createCommentVNode("", true),
|
|
1644
1656
|
!_ctx.loading ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1645
1657
|
_ctx.$slots.icon || _ctx.icon ? (openBlock(), createBlock(FIcon, {
|
|
1646
1658
|
key: 0,
|
|
@@ -1655,16 +1667,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1655
1667
|
_: 3
|
|
1656
1668
|
}, 8, ["style"])) : createCommentVNode("", true)
|
|
1657
1669
|
], 64)) : createCommentVNode("", true),
|
|
1658
|
-
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1670
|
+
unref(hasText) ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
1659
1671
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1660
1672
|
])) : createCommentVNode("", true)
|
|
1661
1673
|
])
|
|
1662
|
-
], 14, _hoisted_1$
|
|
1674
|
+
], 14, _hoisted_1$q);
|
|
1663
1675
|
};
|
|
1664
1676
|
}
|
|
1665
1677
|
});
|
|
1666
|
-
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1667
|
-
const _sfc_main$
|
|
1678
|
+
const FButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-c2d9a970"]]);
|
|
1679
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1668
1680
|
__name: "FTypography",
|
|
1669
1681
|
props: {
|
|
1670
1682
|
color: { default: "" }
|
|
@@ -1686,8 +1698,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1686
1698
|
};
|
|
1687
1699
|
}
|
|
1688
1700
|
});
|
|
1689
|
-
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1690
|
-
const _sfc_main$
|
|
1701
|
+
const FTypography = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-1ba2afd3"]]);
|
|
1702
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1691
1703
|
__name: "FText",
|
|
1692
1704
|
props: {
|
|
1693
1705
|
tag: { default: "span" },
|
|
@@ -1745,9 +1757,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1745
1757
|
};
|
|
1746
1758
|
}
|
|
1747
1759
|
});
|
|
1748
|
-
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1749
|
-
const _hoisted_1$
|
|
1750
|
-
const _sfc_main$
|
|
1760
|
+
const FText = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-489c8a06"]]);
|
|
1761
|
+
const _hoisted_1$p = ["href", "target", "rel"];
|
|
1762
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1751
1763
|
__name: "FLink",
|
|
1752
1764
|
props: {
|
|
1753
1765
|
href: {},
|
|
@@ -1770,13 +1782,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1770
1782
|
rel: props.target === "_blank" ? "noopener noreferrer" : void 0
|
|
1771
1783
|
}, [
|
|
1772
1784
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1773
|
-
], 10, _hoisted_1$
|
|
1785
|
+
], 10, _hoisted_1$p);
|
|
1774
1786
|
};
|
|
1775
1787
|
}
|
|
1776
1788
|
});
|
|
1777
|
-
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1778
|
-
const _hoisted_1$
|
|
1779
|
-
const _sfc_main$
|
|
1789
|
+
const FLink = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-8bb4d33f"]]);
|
|
1790
|
+
const _hoisted_1$o = { class: "f-badge" };
|
|
1791
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1780
1792
|
__name: "FBadge",
|
|
1781
1793
|
props: {
|
|
1782
1794
|
value: {},
|
|
@@ -1805,7 +1817,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1805
1817
|
return map[props.placement];
|
|
1806
1818
|
});
|
|
1807
1819
|
return (_ctx, _cache) => {
|
|
1808
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1820
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
1809
1821
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1810
1822
|
_ctx.dot || _ctx.value !== void 0 && _ctx.value !== "" ? (openBlock(), createElementBlock("span", {
|
|
1811
1823
|
key: 0,
|
|
@@ -1816,8 +1828,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1816
1828
|
};
|
|
1817
1829
|
}
|
|
1818
1830
|
});
|
|
1819
|
-
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1820
|
-
const _sfc_main$
|
|
1831
|
+
const FBadge = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-4d8a46e5"]]);
|
|
1832
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1821
1833
|
__name: "FAffix",
|
|
1822
1834
|
props: {
|
|
1823
1835
|
placement: { default: "top-right" },
|
|
@@ -1845,8 +1857,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1845
1857
|
};
|
|
1846
1858
|
}
|
|
1847
1859
|
});
|
|
1848
|
-
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1849
|
-
const _sfc_main$
|
|
1860
|
+
const FAffix = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5e3108b5"]]);
|
|
1861
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1850
1862
|
__name: "FForm",
|
|
1851
1863
|
props: {
|
|
1852
1864
|
model: {},
|
|
@@ -1903,7 +1915,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1903
1915
|
};
|
|
1904
1916
|
}
|
|
1905
1917
|
});
|
|
1906
|
-
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1918
|
+
const FForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7e90ebac"]]);
|
|
1907
1919
|
const validateSingleField = (value, rules) => __async(null, null, function* () {
|
|
1908
1920
|
const ruleArray = Array.isArray(rules) ? rules : [rules];
|
|
1909
1921
|
for (let rule of ruleArray) {
|
|
@@ -1985,16 +1997,16 @@ const checkRange = (value, rule) => {
|
|
|
1985
1997
|
}
|
|
1986
1998
|
return void 0;
|
|
1987
1999
|
};
|
|
1988
|
-
const _hoisted_1$
|
|
2000
|
+
const _hoisted_1$n = {
|
|
1989
2001
|
key: 0,
|
|
1990
2002
|
class: "star"
|
|
1991
2003
|
};
|
|
1992
|
-
const _hoisted_2$
|
|
1993
|
-
const _hoisted_3$
|
|
2004
|
+
const _hoisted_2$l = { class: "f-form-item__content" };
|
|
2005
|
+
const _hoisted_3$k = {
|
|
1994
2006
|
key: 0,
|
|
1995
2007
|
class: "f-form-item__error"
|
|
1996
2008
|
};
|
|
1997
|
-
const _sfc_main$
|
|
2009
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1998
2010
|
__name: "FFormItem",
|
|
1999
2011
|
props: {
|
|
2000
2012
|
label: {},
|
|
@@ -2060,14 +2072,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2060
2072
|
textAlign: unref(labelPosition) === "top" ? "left" : unref(labelPosition)
|
|
2061
2073
|
})
|
|
2062
2074
|
}, [
|
|
2063
|
-
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2064
|
-
createTextVNode(" " + toDisplayString(_ctx.label) + "
|
|
2075
|
+
unref(isRequired) ? (openBlock(), createElementBlock("span", _hoisted_1$n, "*")) : createCommentVNode("", true),
|
|
2076
|
+
createTextVNode(" " + toDisplayString(_ctx.label) + "锛? ", 1)
|
|
2065
2077
|
], 4)) : createCommentVNode("", true),
|
|
2066
|
-
createElementVNode("div", _hoisted_2$
|
|
2078
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
2067
2079
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
2068
2080
|
createVNode(Transition, { name: "err-slide" }, {
|
|
2069
2081
|
default: withCtx(() => [
|
|
2070
|
-
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2082
|
+
unref(errorMsg) ? (openBlock(), createElementBlock("p", _hoisted_3$k, toDisplayString(unref(errorMsg)), 1)) : createCommentVNode("", true)
|
|
2071
2083
|
]),
|
|
2072
2084
|
_: 1
|
|
2073
2085
|
})
|
|
@@ -2076,14 +2088,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
2076
2088
|
};
|
|
2077
2089
|
}
|
|
2078
2090
|
});
|
|
2079
|
-
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2080
|
-
const _hoisted_1$
|
|
2081
|
-
const _hoisted_2$
|
|
2082
|
-
const _hoisted_3$
|
|
2091
|
+
const FFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-42312371"]]);
|
|
2092
|
+
const _hoisted_1$m = { class: "f-checkbox__wrapper" };
|
|
2093
|
+
const _hoisted_2$k = ["checked", "disabled"];
|
|
2094
|
+
const _hoisted_3$j = {
|
|
2083
2095
|
key: 0,
|
|
2084
2096
|
class: "f-checkbox__label"
|
|
2085
2097
|
};
|
|
2086
|
-
const _sfc_main$
|
|
2098
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2087
2099
|
__name: "FCheckbox",
|
|
2088
2100
|
props: /* @__PURE__ */ mergeModels({
|
|
2089
2101
|
label: {},
|
|
@@ -2105,28 +2117,28 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2105
2117
|
return openBlock(), createElementBlock("label", {
|
|
2106
2118
|
class: normalizeClass(["f-checkbox", { "is-disabled": _ctx.disabled }])
|
|
2107
2119
|
}, [
|
|
2108
|
-
createElementVNode("span", _hoisted_1$
|
|
2120
|
+
createElementVNode("span", _hoisted_1$m, [
|
|
2109
2121
|
createElementVNode("input", {
|
|
2110
2122
|
type: "checkbox",
|
|
2111
2123
|
checked: modelValue.value,
|
|
2112
2124
|
disabled: _ctx.disabled,
|
|
2113
2125
|
onChange: handleChange
|
|
2114
|
-
}, null, 40, _hoisted_2$
|
|
2126
|
+
}, null, 40, _hoisted_2$k),
|
|
2115
2127
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-checkbox__checkmark" }, null, -1))
|
|
2116
2128
|
]),
|
|
2117
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2129
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2118
2130
|
], 2);
|
|
2119
2131
|
};
|
|
2120
2132
|
}
|
|
2121
2133
|
});
|
|
2122
|
-
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2123
|
-
const _hoisted_1$
|
|
2124
|
-
const _hoisted_2$
|
|
2125
|
-
const _hoisted_3$
|
|
2134
|
+
const FCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-eeeb70b5"]]);
|
|
2135
|
+
const _hoisted_1$l = { class: "f-radio__wrapper" };
|
|
2136
|
+
const _hoisted_2$j = ["name", "checked", "disabled"];
|
|
2137
|
+
const _hoisted_3$i = {
|
|
2126
2138
|
key: 0,
|
|
2127
2139
|
class: "f-radio__label"
|
|
2128
2140
|
};
|
|
2129
|
-
const _sfc_main$
|
|
2141
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2130
2142
|
__name: "FRadio",
|
|
2131
2143
|
props: /* @__PURE__ */ mergeModels({
|
|
2132
2144
|
label: {},
|
|
@@ -2153,29 +2165,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
2153
2165
|
return openBlock(), createElementBlock("label", {
|
|
2154
2166
|
class: normalizeClass(["f-radio", { "is-disabled": _ctx.disabled }])
|
|
2155
2167
|
}, [
|
|
2156
|
-
createElementVNode("span", _hoisted_1$
|
|
2168
|
+
createElementVNode("span", _hoisted_1$l, [
|
|
2157
2169
|
createElementVNode("input", {
|
|
2158
2170
|
type: "radio",
|
|
2159
2171
|
name: _ctx.name,
|
|
2160
2172
|
checked: modelValue.value === _ctx.value,
|
|
2161
2173
|
disabled: _ctx.disabled,
|
|
2162
2174
|
onChange: handleChange
|
|
2163
|
-
}, null, 40, _hoisted_2$
|
|
2175
|
+
}, null, 40, _hoisted_2$j),
|
|
2164
2176
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
2165
2177
|
]),
|
|
2166
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2178
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
2167
2179
|
], 2);
|
|
2168
2180
|
};
|
|
2169
2181
|
}
|
|
2170
2182
|
});
|
|
2171
|
-
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2172
|
-
const _hoisted_1$
|
|
2173
|
-
const _hoisted_2$
|
|
2174
|
-
const _hoisted_3$
|
|
2183
|
+
const FRadio = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-b06cba07"]]);
|
|
2184
|
+
const _hoisted_1$k = { class: "f-radio__wrapper" };
|
|
2185
|
+
const _hoisted_2$i = ["name", "checked", "disabled", "onChange"];
|
|
2186
|
+
const _hoisted_3$h = {
|
|
2175
2187
|
key: 0,
|
|
2176
2188
|
class: "f-radio__label"
|
|
2177
2189
|
};
|
|
2178
|
-
const _sfc_main$
|
|
2190
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2179
2191
|
__name: "FRadioGroup",
|
|
2180
2192
|
props: /* @__PURE__ */ mergeModels({
|
|
2181
2193
|
options: {},
|
|
@@ -2204,30 +2216,30 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2204
2216
|
key: String(option.value),
|
|
2205
2217
|
class: normalizeClass(["f-radio", { "is-disabled": option.disabled || _ctx.disabled }])
|
|
2206
2218
|
}, [
|
|
2207
|
-
createElementVNode("span", _hoisted_1$
|
|
2219
|
+
createElementVNode("span", _hoisted_1$k, [
|
|
2208
2220
|
createElementVNode("input", {
|
|
2209
2221
|
type: "radio",
|
|
2210
2222
|
name: (_a = _ctx.name) != null ? _a : "f-radio-group",
|
|
2211
2223
|
checked: modelValue.value === option.value,
|
|
2212
2224
|
disabled: option.disabled || _ctx.disabled,
|
|
2213
2225
|
onChange: ($event) => handleChange(option)
|
|
2214
|
-
}, null, 40, _hoisted_2$
|
|
2226
|
+
}, null, 40, _hoisted_2$i),
|
|
2215
2227
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-radio__dot" }, null, -1))
|
|
2216
2228
|
]),
|
|
2217
|
-
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2229
|
+
option.label ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(option.label), 1)) : createCommentVNode("", true)
|
|
2218
2230
|
], 2);
|
|
2219
2231
|
}), 128))
|
|
2220
2232
|
], 2);
|
|
2221
2233
|
};
|
|
2222
2234
|
}
|
|
2223
2235
|
});
|
|
2224
|
-
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2225
|
-
const _hoisted_1$
|
|
2226
|
-
const _hoisted_2$
|
|
2236
|
+
const FRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-f1bf3aae"]]);
|
|
2237
|
+
const _hoisted_1$j = ["disabled", "aria-checked"];
|
|
2238
|
+
const _hoisted_2$h = {
|
|
2227
2239
|
key: 0,
|
|
2228
2240
|
class: "f-switch__text"
|
|
2229
2241
|
};
|
|
2230
|
-
const _sfc_main$
|
|
2242
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
2231
2243
|
__name: "FSwitch",
|
|
2232
2244
|
props: /* @__PURE__ */ mergeModels({
|
|
2233
2245
|
label: {},
|
|
@@ -2259,24 +2271,24 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2259
2271
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "f-switch__track" }, [
|
|
2260
2272
|
createElementVNode("span", { class: "f-switch__thumb" })
|
|
2261
2273
|
], -1)),
|
|
2262
|
-
_ctx.label || _ctx.activeText || _ctx.inactiveText ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2263
|
-
], 10, _hoisted_1$
|
|
2274
|
+
_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)
|
|
2275
|
+
], 10, _hoisted_1$j);
|
|
2264
2276
|
};
|
|
2265
2277
|
}
|
|
2266
2278
|
});
|
|
2267
|
-
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2268
|
-
const _hoisted_1$
|
|
2269
|
-
const _hoisted_2$
|
|
2279
|
+
const FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dd66bb33"]]);
|
|
2280
|
+
const _hoisted_1$i = { class: "f-tree-select__label" };
|
|
2281
|
+
const _hoisted_2$g = {
|
|
2270
2282
|
key: 0,
|
|
2271
2283
|
class: "f-tree-select__panel"
|
|
2272
2284
|
};
|
|
2273
|
-
const _hoisted_3$
|
|
2274
|
-
const _hoisted_4$
|
|
2285
|
+
const _hoisted_3$g = ["onClick"];
|
|
2286
|
+
const _hoisted_4$c = {
|
|
2275
2287
|
key: 0,
|
|
2276
2288
|
class: "f-tree-select__expand"
|
|
2277
2289
|
};
|
|
2278
|
-
const _hoisted_5$
|
|
2279
|
-
const _sfc_main$
|
|
2290
|
+
const _hoisted_5$9 = { class: "f-tree-select__text" };
|
|
2291
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2280
2292
|
__name: "FTreeSelect",
|
|
2281
2293
|
props: /* @__PURE__ */ mergeModels({
|
|
2282
2294
|
options: {},
|
|
@@ -2308,7 +2320,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2308
2320
|
var _a;
|
|
2309
2321
|
const current = props.multiple ? Array.isArray(modelValue.value) ? modelValue.value : [] : modelValue.value;
|
|
2310
2322
|
if (props.multiple && Array.isArray(current)) {
|
|
2311
|
-
return current.length > 0 ? current.length + "
|
|
2323
|
+
return current.length > 0 ? current.length + " 项" : props.placeholder;
|
|
2312
2324
|
}
|
|
2313
2325
|
const target = props.options.flatMap((item) => flattenTree([item]));
|
|
2314
2326
|
const node = target.find((item) => item.key === current);
|
|
@@ -2351,7 +2363,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2351
2363
|
class: "f-tree-select__trigger",
|
|
2352
2364
|
onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && (isOpen.value = !unref(isOpen)))
|
|
2353
2365
|
}, [
|
|
2354
|
-
createElementVNode("span", _hoisted_1$
|
|
2366
|
+
createElementVNode("span", _hoisted_1$i, toDisplayString(unref(selectedLabel)), 1),
|
|
2355
2367
|
createVNode(FIcon, { class: "f-tree-select__arrow" }, {
|
|
2356
2368
|
default: withCtx(() => [
|
|
2357
2369
|
createVNode(unref(ChevronDownOutline))
|
|
@@ -2359,7 +2371,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2359
2371
|
_: 1
|
|
2360
2372
|
})
|
|
2361
2373
|
]),
|
|
2362
|
-
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2374
|
+
unref(isOpen) ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
2363
2375
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(visibleNodes), (node) => {
|
|
2364
2376
|
return openBlock(), createElementBlock("div", {
|
|
2365
2377
|
key: String(node.key),
|
|
@@ -2367,33 +2379,33 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2367
2379
|
style: normalizeStyle({ paddingLeft: `${(node.level + 1) * 16 + 8}px` }),
|
|
2368
2380
|
onClick: ($event) => node.children && node.children.length ? toggleExpand(node.key) : handleSelect(node)
|
|
2369
2381
|
}, [
|
|
2370
|
-
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2371
|
-
createElementVNode("span", _hoisted_5$
|
|
2372
|
-
], 14, _hoisted_3$
|
|
2382
|
+
node.children && node.children.length ? (openBlock(), createElementBlock("span", _hoisted_4$c, toDisplayString(unref(expandedKeys).includes(node.key) ? "-" : "+"), 1)) : createCommentVNode("", true),
|
|
2383
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(node.label), 1)
|
|
2384
|
+
], 14, _hoisted_3$g);
|
|
2373
2385
|
}), 128))
|
|
2374
2386
|
])) : createCommentVNode("", true)
|
|
2375
2387
|
], 2);
|
|
2376
2388
|
};
|
|
2377
2389
|
}
|
|
2378
2390
|
});
|
|
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$
|
|
2391
|
+
const FTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3e78b510"]]);
|
|
2392
|
+
const _hoisted_1$h = { class: "f-transfer__panel" };
|
|
2393
|
+
const _hoisted_2$f = { class: "f-transfer__header" };
|
|
2394
|
+
const _hoisted_3$f = { class: "f-transfer__list" };
|
|
2395
|
+
const _hoisted_4$b = ["onClick"];
|
|
2396
|
+
const _hoisted_5$8 = { class: "f-transfer__actions" };
|
|
2397
|
+
const _hoisted_6$7 = ["disabled"];
|
|
2386
2398
|
const _hoisted_7$3 = ["disabled"];
|
|
2387
2399
|
const _hoisted_8$2 = { class: "f-transfer__panel" };
|
|
2388
2400
|
const _hoisted_9$1 = { class: "f-transfer__header" };
|
|
2389
2401
|
const _hoisted_10$1 = { class: "f-transfer__list" };
|
|
2390
2402
|
const _hoisted_11$1 = ["onClick"];
|
|
2391
|
-
const _sfc_main$
|
|
2403
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2392
2404
|
__name: "FTransfer",
|
|
2393
2405
|
props: /* @__PURE__ */ mergeModels({
|
|
2394
2406
|
data: {},
|
|
2395
|
-
leftTitle: { default: "
|
|
2396
|
-
rightTitle: { default: "
|
|
2407
|
+
leftTitle: { default: "鍙€夐」" },
|
|
2408
|
+
rightTitle: { default: "宸查€夐」" },
|
|
2397
2409
|
disabled: { type: Boolean, default: false }
|
|
2398
2410
|
}, {
|
|
2399
2411
|
"modelValue": { default: () => [] },
|
|
@@ -2444,31 +2456,31 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2444
2456
|
return openBlock(), createElementBlock("div", {
|
|
2445
2457
|
class: normalizeClass(["f-transfer", { "is-disabled": _ctx.disabled }])
|
|
2446
2458
|
}, [
|
|
2447
|
-
createElementVNode("div", _hoisted_1$
|
|
2448
|
-
createElementVNode("div", _hoisted_2$
|
|
2449
|
-
createElementVNode("ul", _hoisted_3$
|
|
2459
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
2460
|
+
createElementVNode("div", _hoisted_2$f, toDisplayString(_ctx.leftTitle), 1),
|
|
2461
|
+
createElementVNode("ul", _hoisted_3$f, [
|
|
2450
2462
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(leftList), (item) => {
|
|
2451
2463
|
return openBlock(), createElementBlock("li", {
|
|
2452
2464
|
key: String(item.key),
|
|
2453
2465
|
class: normalizeClass(["f-transfer__item", { "is-selected": unref(leftSelected).includes(item.key), "is-disabled": item.disabled }]),
|
|
2454
2466
|
onClick: ($event) => toggle(unref(leftSelected), item.key)
|
|
2455
|
-
}, toDisplayString(item.label), 11, _hoisted_4$
|
|
2467
|
+
}, toDisplayString(item.label), 11, _hoisted_4$b);
|
|
2456
2468
|
}), 128))
|
|
2457
2469
|
])
|
|
2458
2470
|
]),
|
|
2459
|
-
createElementVNode("div", _hoisted_5$
|
|
2471
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
2460
2472
|
createElementVNode("button", {
|
|
2461
2473
|
type: "button",
|
|
2462
2474
|
class: "f-transfer__btn",
|
|
2463
2475
|
disabled: _ctx.disabled || unref(leftList).length === 0,
|
|
2464
2476
|
onClick: _cache[0] || (_cache[0] = ($event) => moveSelected("right"))
|
|
2465
|
-
}, "
|
|
2477
|
+
}, " 鈫? ", 8, _hoisted_6$7),
|
|
2466
2478
|
createElementVNode("button", {
|
|
2467
2479
|
type: "button",
|
|
2468
2480
|
class: "f-transfer__btn",
|
|
2469
2481
|
disabled: _ctx.disabled || unref(rightList).length === 0,
|
|
2470
2482
|
onClick: _cache[1] || (_cache[1] = ($event) => moveSelected("left"))
|
|
2471
|
-
}, "
|
|
2483
|
+
}, " 鈫? ", 8, _hoisted_7$3)
|
|
2472
2484
|
]),
|
|
2473
2485
|
createElementVNode("div", _hoisted_8$2, [
|
|
2474
2486
|
createElementVNode("div", _hoisted_9$1, toDisplayString(_ctx.rightTitle), 1),
|
|
@@ -2486,11 +2498,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2486
2498
|
};
|
|
2487
2499
|
}
|
|
2488
2500
|
});
|
|
2489
|
-
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2490
|
-
const _hoisted_1$
|
|
2491
|
-
const _hoisted_2$
|
|
2492
|
-
const _hoisted_3$
|
|
2493
|
-
const _sfc_main$
|
|
2501
|
+
const FTransfer = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-32dbd066"]]);
|
|
2502
|
+
const _hoisted_1$g = { class: "alert__body" };
|
|
2503
|
+
const _hoisted_2$e = { class: "alert__title" };
|
|
2504
|
+
const _hoisted_3$e = { class: "alert__content" };
|
|
2505
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2494
2506
|
__name: "FAlert",
|
|
2495
2507
|
props: {
|
|
2496
2508
|
type: { default: "info" },
|
|
@@ -2516,9 +2528,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2516
2528
|
]),
|
|
2517
2529
|
_: 1
|
|
2518
2530
|
}),
|
|
2519
|
-
createElementVNode("div", _hoisted_1$
|
|
2520
|
-
createElementVNode("h4", _hoisted_2$
|
|
2521
|
-
createElementVNode("div", _hoisted_3$
|
|
2531
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
2532
|
+
createElementVNode("h4", _hoisted_2$e, toDisplayString((_a = _ctx.title) != null ? _a : unref(config).label), 1),
|
|
2533
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
2522
2534
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2523
2535
|
createTextVNode(toDisplayString(_ctx.content), 1)
|
|
2524
2536
|
], true)
|
|
@@ -2528,18 +2540,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2528
2540
|
};
|
|
2529
2541
|
}
|
|
2530
2542
|
});
|
|
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$
|
|
2543
|
+
const FAlert = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-7e66ccc2"]]);
|
|
2544
|
+
const _hoisted_1$f = { class: "f-editor__toolbar" };
|
|
2545
|
+
const _hoisted_2$d = { class: "f-editor__status" };
|
|
2546
|
+
const _hoisted_3$d = { class: "f-editor__lines" };
|
|
2547
|
+
const _hoisted_4$a = { class: "f-editor__code-wrapper" };
|
|
2548
|
+
const _hoisted_5$7 = ["innerHTML"];
|
|
2549
|
+
const _hoisted_6$6 = ["rows", "readonly", "placeholder"];
|
|
2538
2550
|
const LINE_HEIGHT_PX = 17.6;
|
|
2539
2551
|
const PADDING_TOP_PX = 12;
|
|
2540
2552
|
const MIN_BODY_HEIGHT = 180;
|
|
2541
2553
|
const HEAVY_LINE_THRESHOLD = 1500;
|
|
2542
|
-
const _sfc_main$
|
|
2554
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2543
2555
|
__name: "FEditor",
|
|
2544
2556
|
props: /* @__PURE__ */ mergeModels({
|
|
2545
2557
|
placeholder: {},
|
|
@@ -2705,9 +2717,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2705
2717
|
return openBlock(), createElementBlock("div", {
|
|
2706
2718
|
class: normalizeClass(["f-editor", { "f-editor--invalid": !unref(isJsonValid) }])
|
|
2707
2719
|
}, [
|
|
2708
|
-
createElementVNode("div", _hoisted_1$
|
|
2709
|
-
createElementVNode("span", _hoisted_2$
|
|
2710
|
-
createElementVNode("span", _hoisted_3$
|
|
2720
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
2721
|
+
createElementVNode("span", _hoisted_2$d, [
|
|
2722
|
+
createElementVNode("span", _hoisted_3$d, toDisplayString(unref(lineCount)) + " 行", 1),
|
|
2711
2723
|
unref(isHeavy) ? (openBlock(), createBlock(FTag, {
|
|
2712
2724
|
key: 0,
|
|
2713
2725
|
color: "orange",
|
|
@@ -2715,7 +2727,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2715
2727
|
effect: "plain"
|
|
2716
2728
|
}, {
|
|
2717
2729
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
2718
|
-
createTextVNode("
|
|
2730
|
+
createTextVNode("大文件已关闭高亮")
|
|
2719
2731
|
])),
|
|
2720
2732
|
_: 1,
|
|
2721
2733
|
__: [2]
|
|
@@ -2745,7 +2757,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2745
2757
|
}, toDisplayString(ln), 3);
|
|
2746
2758
|
}), 128))
|
|
2747
2759
|
], 512)) : createCommentVNode("", true),
|
|
2748
|
-
createElementVNode("div", _hoisted_4$
|
|
2760
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
2749
2761
|
createElementVNode("div", {
|
|
2750
2762
|
class: "f-editor__active-line",
|
|
2751
2763
|
style: normalizeStyle({
|
|
@@ -2763,7 +2775,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2763
2775
|
key: line.lineNo,
|
|
2764
2776
|
class: "f-editor__line",
|
|
2765
2777
|
innerHTML: line.html + "\n"
|
|
2766
|
-
}, null, 8, _hoisted_5$
|
|
2778
|
+
}, null, 8, _hoisted_5$7);
|
|
2767
2779
|
}), 128))
|
|
2768
2780
|
], 512),
|
|
2769
2781
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -2781,7 +2793,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2781
2793
|
onClick: updateCursorInfo,
|
|
2782
2794
|
onKeyup: updateCursorInfo,
|
|
2783
2795
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur"))
|
|
2784
|
-
}, null, 40, _hoisted_6$
|
|
2796
|
+
}, null, 40, _hoisted_6$6), [
|
|
2785
2797
|
[vModelText, model.value]
|
|
2786
2798
|
])
|
|
2787
2799
|
])
|
|
@@ -2790,19 +2802,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2790
2802
|
};
|
|
2791
2803
|
}
|
|
2792
2804
|
});
|
|
2793
|
-
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2794
|
-
const _hoisted_1$
|
|
2795
|
-
const _hoisted_2$
|
|
2805
|
+
const FEditor = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-48883044"]]);
|
|
2806
|
+
const _hoisted_1$e = { class: "f-table" };
|
|
2807
|
+
const _hoisted_2$c = {
|
|
2796
2808
|
key: 0,
|
|
2797
2809
|
class: "f-table__loading"
|
|
2798
2810
|
};
|
|
2799
|
-
const _hoisted_3$
|
|
2800
|
-
const _hoisted_4$
|
|
2811
|
+
const _hoisted_3$c = { class: "f-table__inner" };
|
|
2812
|
+
const _hoisted_4$9 = {
|
|
2801
2813
|
key: 0,
|
|
2802
2814
|
class: "f-table__col--index"
|
|
2803
2815
|
};
|
|
2804
|
-
const _hoisted_5$
|
|
2805
|
-
const _hoisted_6$
|
|
2816
|
+
const _hoisted_5$6 = { class: "f-table__head" };
|
|
2817
|
+
const _hoisted_6$5 = {
|
|
2806
2818
|
key: 0,
|
|
2807
2819
|
class: "f-table__th f-table__th--index"
|
|
2808
2820
|
};
|
|
@@ -2824,7 +2836,7 @@ const _hoisted_14 = {
|
|
|
2824
2836
|
class: "f-table__spacer"
|
|
2825
2837
|
};
|
|
2826
2838
|
const _hoisted_15 = ["colspan"];
|
|
2827
|
-
const _sfc_main$
|
|
2839
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2828
2840
|
__name: "FTable",
|
|
2829
2841
|
props: {
|
|
2830
2842
|
data: {},
|
|
@@ -2833,8 +2845,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2833
2845
|
overscan: { default: 5 },
|
|
2834
2846
|
showIndex: { type: Boolean, default: true },
|
|
2835
2847
|
loading: { type: Boolean, default: false },
|
|
2836
|
-
loadingText: { default: "
|
|
2837
|
-
emptyText: { default: "
|
|
2848
|
+
loadingText: { default: "鍔犺浇涓?.." },
|
|
2849
|
+
emptyText: { default: "鏆傛棤鏁版嵁" }
|
|
2838
2850
|
},
|
|
2839
2851
|
setup(__props) {
|
|
2840
2852
|
const props = __props;
|
|
@@ -2888,8 +2900,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2888
2900
|
scrollTop.value = 0;
|
|
2889
2901
|
});
|
|
2890
2902
|
return (_ctx, _cache) => {
|
|
2891
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2892
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2903
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2904
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
2893
2905
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "spinner" }, null, -1)),
|
|
2894
2906
|
createElementVNode("span", null, toDisplayString(_ctx.loadingText), 1)
|
|
2895
2907
|
])) : createCommentVNode("", true),
|
|
@@ -2899,9 +2911,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2899
2911
|
ref: scrollEl,
|
|
2900
2912
|
onScroll
|
|
2901
2913
|
}, [
|
|
2902
|
-
createElementVNode("table", _hoisted_3$
|
|
2914
|
+
createElementVNode("table", _hoisted_3$c, [
|
|
2903
2915
|
createElementVNode("colgroup", null, [
|
|
2904
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_4$
|
|
2916
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("col", _hoisted_4$9)) : createCommentVNode("", true),
|
|
2905
2917
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
2906
2918
|
var _a, _b;
|
|
2907
2919
|
return openBlock(), createElementBlock("col", {
|
|
@@ -2913,9 +2925,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2913
2925
|
}, null, 4);
|
|
2914
2926
|
}), 128))
|
|
2915
2927
|
]),
|
|
2916
|
-
createElementVNode("thead", _hoisted_5$
|
|
2928
|
+
createElementVNode("thead", _hoisted_5$6, [
|
|
2917
2929
|
createElementVNode("tr", null, [
|
|
2918
|
-
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_6$
|
|
2930
|
+
_ctx.showIndex ? (openBlock(), createElementBlock("th", _hoisted_6$5, "#")) : createCommentVNode("", true),
|
|
2919
2931
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
2920
2932
|
return openBlock(), createElementBlock("th", {
|
|
2921
2933
|
key: col.key,
|
|
@@ -2995,22 +3007,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2995
3007
|
};
|
|
2996
3008
|
}
|
|
2997
3009
|
});
|
|
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$
|
|
3010
|
+
const FTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ce2c2d93"]]);
|
|
3011
|
+
const _hoisted_1$d = { class: "f-upload" };
|
|
3012
|
+
const _hoisted_2$b = ["accept", "multiple"];
|
|
3013
|
+
const _hoisted_3$b = { class: "f-upload__zone" };
|
|
3014
|
+
const _hoisted_4$8 = { class: "f-upload__hint" };
|
|
3015
|
+
const _hoisted_5$5 = {
|
|
3004
3016
|
key: 0,
|
|
3005
3017
|
class: "f-upload__list"
|
|
3006
3018
|
};
|
|
3007
|
-
const _hoisted_6$
|
|
3019
|
+
const _hoisted_6$4 = { class: "f-upload__file-info" };
|
|
3008
3020
|
const _hoisted_7$1 = { class: "f-upload__file-name" };
|
|
3009
3021
|
const _hoisted_8 = {
|
|
3010
3022
|
key: 1,
|
|
3011
3023
|
class: "f-upload__file-error"
|
|
3012
3024
|
};
|
|
3013
|
-
const _sfc_main$
|
|
3025
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3014
3026
|
__name: "FUpload",
|
|
3015
3027
|
props: /* @__PURE__ */ mergeModels({
|
|
3016
3028
|
accept: {},
|
|
@@ -3113,15 +3125,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3113
3125
|
__expose({
|
|
3114
3126
|
/** 重试上传单个失败的文件 */
|
|
3115
3127
|
retryUpload,
|
|
3116
|
-
/**
|
|
3128
|
+
/** 删除文件 */
|
|
3117
3129
|
removeFile,
|
|
3118
|
-
/**
|
|
3130
|
+
/** 批量上传所有状态为 ready 的文件 */
|
|
3119
3131
|
submitAll: () => {
|
|
3120
3132
|
fileList.value.filter((f) => f.status === "ready").forEach((item) => submitUpload(item));
|
|
3121
3133
|
}
|
|
3122
3134
|
});
|
|
3123
3135
|
return (_ctx, _cache) => {
|
|
3124
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3136
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
3125
3137
|
createElementVNode("label", {
|
|
3126
3138
|
class: normalizeClass(["f-upload__trigger", { "f-upload--drag": unref(dragActive) }]),
|
|
3127
3139
|
onDragover: onDragOver,
|
|
@@ -3134,21 +3146,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3134
3146
|
multiple: _ctx.limit == null || _ctx.limit > 1,
|
|
3135
3147
|
class: "f-upload__input",
|
|
3136
3148
|
onChange: onFileChange
|
|
3137
|
-
}, null, 40, _hoisted_2$
|
|
3149
|
+
}, null, 40, _hoisted_2$b),
|
|
3138
3150
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3139
|
-
createElementVNode("div", _hoisted_3$
|
|
3151
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
3140
3152
|
createVNode(FIcon, { size: 40 }, {
|
|
3141
3153
|
default: withCtx(() => [
|
|
3142
3154
|
createVNode(unref(CloudUpload))
|
|
3143
3155
|
]),
|
|
3144
3156
|
_: 1
|
|
3145
3157
|
}),
|
|
3146
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-upload__title" }, "
|
|
3147
|
-
createElementVNode("span", _hoisted_4$
|
|
3158
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-upload__title" }, "点击或拖拽文件到此处", -1)),
|
|
3159
|
+
createElementVNode("span", _hoisted_4$8, toDisplayString(_ctx.hint), 1)
|
|
3148
3160
|
])
|
|
3149
3161
|
], true)
|
|
3150
3162
|
], 34),
|
|
3151
|
-
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3163
|
+
fileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
3152
3164
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item) => {
|
|
3153
3165
|
return openBlock(), createElementBlock("div", {
|
|
3154
3166
|
key: item.uid,
|
|
@@ -3160,7 +3172,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3160
3172
|
]),
|
|
3161
3173
|
_: 2
|
|
3162
3174
|
}, 1024),
|
|
3163
|
-
createElementVNode("div", _hoisted_6$
|
|
3175
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
3164
3176
|
createElementVNode("span", _hoisted_7$1, toDisplayString(item.name), 1),
|
|
3165
3177
|
item.status === "uploading" ? (openBlock(), createBlock(FProgress, {
|
|
3166
3178
|
key: 0,
|
|
@@ -3196,8 +3208,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3196
3208
|
};
|
|
3197
3209
|
}
|
|
3198
3210
|
});
|
|
3199
|
-
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3200
|
-
const _sfc_main$
|
|
3211
|
+
const FUpload = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-45a5af2d"]]);
|
|
3212
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3201
3213
|
__name: "FButtonGroup",
|
|
3202
3214
|
props: {
|
|
3203
3215
|
size: { default: "normal" },
|
|
@@ -3218,9 +3230,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3218
3230
|
};
|
|
3219
3231
|
}
|
|
3220
3232
|
});
|
|
3221
|
-
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3222
|
-
const _hoisted_1$
|
|
3223
|
-
const _sfc_main$
|
|
3233
|
+
const FButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a1a51140"]]);
|
|
3234
|
+
const _hoisted_1$c = { class: "f-collapse" };
|
|
3235
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3224
3236
|
__name: "FCollapse",
|
|
3225
3237
|
props: /* @__PURE__ */ mergeModels({
|
|
3226
3238
|
accordion: { type: Boolean, default: false }
|
|
@@ -3260,16 +3272,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3260
3272
|
})
|
|
3261
3273
|
);
|
|
3262
3274
|
return (_ctx, _cache) => {
|
|
3263
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3264
|
-
renderSlot(_ctx.$slots, "default")
|
|
3275
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
3276
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3265
3277
|
]);
|
|
3266
3278
|
};
|
|
3267
3279
|
}
|
|
3268
3280
|
});
|
|
3269
|
-
const
|
|
3270
|
-
const
|
|
3271
|
-
const
|
|
3272
|
-
const
|
|
3281
|
+
const FCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4ec8bde6"]]);
|
|
3282
|
+
const _hoisted_1$b = { class: "f-collapse-item__header-title" };
|
|
3283
|
+
const _hoisted_2$a = { class: "f-collapse-item__wrapper" };
|
|
3284
|
+
const _hoisted_3$a = { class: "f-collapse-item__content" };
|
|
3285
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3273
3286
|
__name: "FCollapseItem",
|
|
3274
3287
|
props: {
|
|
3275
3288
|
name: {},
|
|
@@ -3313,8 +3326,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3313
3326
|
onClick: handleHeaderClick
|
|
3314
3327
|
}, [
|
|
3315
3328
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
3316
|
-
createElementVNode("span", _hoisted_1$
|
|
3317
|
-
]),
|
|
3329
|
+
createElementVNode("span", _hoisted_1$b, toDisplayString(_ctx.title), 1)
|
|
3330
|
+
], true),
|
|
3318
3331
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
3319
3332
|
class: "f-collapse-item__icon",
|
|
3320
3333
|
viewBox: "0 0 12 12",
|
|
@@ -3337,9 +3350,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3337
3350
|
onLeave
|
|
3338
3351
|
}, {
|
|
3339
3352
|
default: withCtx(() => [
|
|
3340
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
3341
|
-
createElementVNode("div", _hoisted_3$
|
|
3342
|
-
renderSlot(_ctx.$slots, "default")
|
|
3353
|
+
withDirectives(createElementVNode("div", _hoisted_2$a, [
|
|
3354
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
3355
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3343
3356
|
])
|
|
3344
3357
|
], 512), [
|
|
3345
3358
|
[vShow, unref(isActive)]
|
|
@@ -3351,21 +3364,22 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3351
3364
|
};
|
|
3352
3365
|
}
|
|
3353
3366
|
});
|
|
3354
|
-
const
|
|
3355
|
-
const
|
|
3367
|
+
const FCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d69a6c2b"]]);
|
|
3368
|
+
const _hoisted_1$a = { class: "f-color-picker__swatch" };
|
|
3369
|
+
const _hoisted_2$9 = {
|
|
3356
3370
|
key: 0,
|
|
3357
3371
|
class: "f-color-picker__panel"
|
|
3358
3372
|
};
|
|
3359
|
-
const _hoisted_3$
|
|
3360
|
-
const _hoisted_4$
|
|
3361
|
-
const _hoisted_5$
|
|
3362
|
-
const _hoisted_6$
|
|
3373
|
+
const _hoisted_3$9 = { class: "f-color-picker__sliders" };
|
|
3374
|
+
const _hoisted_4$7 = { class: "f-color-picker__slider-group" };
|
|
3375
|
+
const _hoisted_5$4 = ["value"];
|
|
3376
|
+
const _hoisted_6$3 = {
|
|
3363
3377
|
key: 0,
|
|
3364
3378
|
class: "f-color-picker__predefine"
|
|
3365
3379
|
};
|
|
3366
3380
|
const _hoisted_7 = ["onClick"];
|
|
3367
3381
|
const hueBackground = "linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)";
|
|
3368
|
-
const _sfc_main$
|
|
3382
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3369
3383
|
__name: "FColorPicker",
|
|
3370
3384
|
props: /* @__PURE__ */ mergeModels({
|
|
3371
3385
|
showAlpha: { type: Boolean, default: false },
|
|
@@ -3591,7 +3605,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3591
3605
|
class: "f-color-picker__trigger",
|
|
3592
3606
|
onClick: togglePanel
|
|
3593
3607
|
}, [
|
|
3594
|
-
createElementVNode("div", _hoisted_1$
|
|
3608
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
3595
3609
|
createElementVNode("span", {
|
|
3596
3610
|
class: "f-color-picker__swatch-color",
|
|
3597
3611
|
style: normalizeStyle({ background: `rgba(${unref(previewRgb).r}, ${unref(previewRgb).g}, ${unref(previewRgb).b}, ${unref(hsva).a})` })
|
|
@@ -3600,7 +3614,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3600
3614
|
]),
|
|
3601
3615
|
createVNode(Transition, { name: "f-color-picker-fade" }, {
|
|
3602
3616
|
default: withCtx(() => [
|
|
3603
|
-
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3617
|
+
unref(visible) ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
3604
3618
|
createElementVNode("div", {
|
|
3605
3619
|
ref_key: "panelRef",
|
|
3606
3620
|
ref: panelRef,
|
|
@@ -3613,8 +3627,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3613
3627
|
style: normalizeStyle({ left: `${unref(hsva).s}%`, top: `${100 - unref(hsva).v}%` })
|
|
3614
3628
|
}, null, 4)
|
|
3615
3629
|
], 36),
|
|
3616
|
-
createElementVNode("div", _hoisted_3$
|
|
3617
|
-
createElementVNode("div", _hoisted_4$
|
|
3630
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3631
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
3618
3632
|
createElementVNode("div", {
|
|
3619
3633
|
ref_key: "hueRef",
|
|
3620
3634
|
ref: hueRef,
|
|
@@ -3655,8 +3669,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3655
3669
|
value: toColorString(),
|
|
3656
3670
|
onChange: handleInputChange,
|
|
3657
3671
|
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$
|
|
3672
|
+
}, null, 40, _hoisted_5$4),
|
|
3673
|
+
_ctx.predefine.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
3660
3674
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.predefine, (color) => {
|
|
3661
3675
|
return openBlock(), createElementBlock("span", {
|
|
3662
3676
|
key: color,
|
|
@@ -3674,28 +3688,29 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3674
3688
|
};
|
|
3675
3689
|
}
|
|
3676
3690
|
});
|
|
3677
|
-
const
|
|
3678
|
-
const
|
|
3679
|
-
const
|
|
3691
|
+
const FColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2cc1dd01"]]);
|
|
3692
|
+
const _hoisted_1$9 = { class: "f-empty" };
|
|
3693
|
+
const _hoisted_2$8 = ["src"];
|
|
3694
|
+
const _hoisted_3$8 = {
|
|
3680
3695
|
key: 1,
|
|
3681
3696
|
viewBox: "0 0 160 160",
|
|
3682
3697
|
class: "f-empty__image-default"
|
|
3683
3698
|
};
|
|
3684
|
-
const _hoisted_4$
|
|
3685
|
-
const _hoisted_5$
|
|
3699
|
+
const _hoisted_4$6 = { class: "f-empty__description" };
|
|
3700
|
+
const _hoisted_5$3 = {
|
|
3686
3701
|
key: 0,
|
|
3687
3702
|
class: "f-empty__extra"
|
|
3688
3703
|
};
|
|
3689
|
-
const _sfc_main$
|
|
3704
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3690
3705
|
__name: "FEmpty",
|
|
3691
3706
|
props: {
|
|
3692
|
-
description: { default: "
|
|
3707
|
+
description: { default: "鏆傛棤鏁版嵁" },
|
|
3693
3708
|
image: { default: "" },
|
|
3694
3709
|
imageSize: { default: 120 }
|
|
3695
3710
|
},
|
|
3696
3711
|
setup(__props) {
|
|
3697
3712
|
return (_ctx, _cache) => {
|
|
3698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
3699
3714
|
createElementVNode("div", {
|
|
3700
3715
|
class: "f-empty__image",
|
|
3701
3716
|
style: normalizeStyle({ width: `${_ctx.imageSize}px`, height: `${_ctx.imageSize}px` })
|
|
@@ -3706,30 +3721,31 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3706
3721
|
src: _ctx.image,
|
|
3707
3722
|
class: "f-empty__image-img",
|
|
3708
3723
|
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)
|
|
3724
|
+
}, null, 8, _hoisted_2$8)) : (openBlock(), createElementBlock("svg", _hoisted_3$8, _cache[0] || (_cache[0] = [
|
|
3725
|
+
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
3726
|
])))
|
|
3712
|
-
])
|
|
3727
|
+
], true)
|
|
3713
3728
|
], 4),
|
|
3714
|
-
createElementVNode("div", _hoisted_4$
|
|
3729
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
3715
3730
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
3716
3731
|
createTextVNode(toDisplayString(_ctx.description), 1)
|
|
3717
|
-
])
|
|
3732
|
+
], true)
|
|
3718
3733
|
]),
|
|
3719
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
3720
|
-
renderSlot(_ctx.$slots, "default")
|
|
3734
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
3735
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3721
3736
|
])) : createCommentVNode("", true)
|
|
3722
3737
|
]);
|
|
3723
3738
|
};
|
|
3724
3739
|
}
|
|
3725
3740
|
});
|
|
3726
|
-
const
|
|
3727
|
-
const
|
|
3728
|
-
const
|
|
3741
|
+
const FEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4df701ef"]]);
|
|
3742
|
+
const _hoisted_1$8 = { class: "f-slider__mark-label" };
|
|
3743
|
+
const _hoisted_2$7 = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "onMousedown", "onKeydown", "onMouseenter"];
|
|
3744
|
+
const _hoisted_3$7 = {
|
|
3729
3745
|
key: 0,
|
|
3730
3746
|
class: "f-slider__tooltip"
|
|
3731
3747
|
};
|
|
3732
|
-
const _sfc_main$
|
|
3748
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3733
3749
|
__name: "FSlider",
|
|
3734
3750
|
props: /* @__PURE__ */ mergeModels({
|
|
3735
3751
|
min: { default: 0 },
|
|
@@ -3903,7 +3919,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3903
3919
|
style: normalizeStyle(_ctx.vertical ? { bottom: `${mark.percent}%` } : { left: `${mark.percent}%` })
|
|
3904
3920
|
}, [
|
|
3905
3921
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "f-slider__mark-dot" }, null, -1)),
|
|
3906
|
-
createElementVNode("span", _hoisted_1$
|
|
3922
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(mark.label), 1)
|
|
3907
3923
|
], 4);
|
|
3908
3924
|
}), 128)),
|
|
3909
3925
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
@@ -3923,18 +3939,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3923
3939
|
}, [
|
|
3924
3940
|
createVNode(Transition, { name: "f-slider-tooltip-fade" }, {
|
|
3925
3941
|
default: withCtx(() => [
|
|
3926
|
-
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
3942
|
+
tooltipVisible(index) ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(value), 1)) : createCommentVNode("", true)
|
|
3927
3943
|
]),
|
|
3928
3944
|
_: 2
|
|
3929
3945
|
}, 1024)
|
|
3930
|
-
], 46, _hoisted_2$
|
|
3946
|
+
], 46, _hoisted_2$7);
|
|
3931
3947
|
}), 128))
|
|
3932
3948
|
], 544)
|
|
3933
3949
|
], 2);
|
|
3934
3950
|
};
|
|
3935
3951
|
}
|
|
3936
3952
|
});
|
|
3937
|
-
const
|
|
3953
|
+
const FSlider = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-ac11d4e9"]]);
|
|
3954
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3938
3955
|
__name: "FScrollbar",
|
|
3939
3956
|
props: {
|
|
3940
3957
|
height: { default: "" },
|
|
@@ -4089,7 +4106,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4089
4106
|
ref: resizeRef,
|
|
4090
4107
|
class: "f-scrollbar__view"
|
|
4091
4108
|
}, [
|
|
4092
|
-
renderSlot(_ctx.$slots, "default")
|
|
4109
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4093
4110
|
], 512)
|
|
4094
4111
|
], 38),
|
|
4095
4112
|
!_ctx.native ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -4122,16 +4139,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4122
4139
|
};
|
|
4123
4140
|
}
|
|
4124
4141
|
});
|
|
4125
|
-
const
|
|
4126
|
-
const
|
|
4127
|
-
const
|
|
4128
|
-
const
|
|
4142
|
+
const FScrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b0e3c8ea"]]);
|
|
4143
|
+
const _hoisted_1$7 = ["disabled"];
|
|
4144
|
+
const _hoisted_2$6 = ["value", "disabled", "placeholder"];
|
|
4145
|
+
const _hoisted_3$6 = ["disabled"];
|
|
4146
|
+
const _hoisted_4$5 = {
|
|
4129
4147
|
key: 2,
|
|
4130
4148
|
class: "f-input-number__stack"
|
|
4131
4149
|
};
|
|
4132
|
-
const _hoisted_5$
|
|
4133
|
-
const _hoisted_6$
|
|
4134
|
-
const _sfc_main$
|
|
4150
|
+
const _hoisted_5$2 = ["disabled"];
|
|
4151
|
+
const _hoisted_6$2 = ["disabled"];
|
|
4152
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4135
4153
|
__name: "FInputNumber",
|
|
4136
4154
|
props: /* @__PURE__ */ mergeModels({
|
|
4137
4155
|
min: { default: -Infinity },
|
|
@@ -4276,7 +4294,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4276
4294
|
]),
|
|
4277
4295
|
_: 1
|
|
4278
4296
|
})
|
|
4279
|
-
], 40, _hoisted_1$
|
|
4297
|
+
], 40, _hoisted_1$7)) : createCommentVNode("", true),
|
|
4280
4298
|
createElementVNode("input", {
|
|
4281
4299
|
ref_key: "inputRef",
|
|
4282
4300
|
ref: inputRef,
|
|
@@ -4291,7 +4309,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4291
4309
|
onBlur: handleBlur,
|
|
4292
4310
|
onKeydown: handleKeydown,
|
|
4293
4311
|
onWheel: handleWheel
|
|
4294
|
-
}, null, 40, _hoisted_2$
|
|
4312
|
+
}, null, 40, _hoisted_2$6),
|
|
4295
4313
|
_ctx.controls && _ctx.controlsPosition === "both" ? (openBlock(), createElementBlock("button", {
|
|
4296
4314
|
key: 1,
|
|
4297
4315
|
type: "button",
|
|
@@ -4308,8 +4326,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4308
4326
|
]),
|
|
4309
4327
|
_: 1
|
|
4310
4328
|
})
|
|
4311
|
-
], 40, _hoisted_3$
|
|
4312
|
-
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4329
|
+
], 40, _hoisted_3$6)) : createCommentVNode("", true),
|
|
4330
|
+
_ctx.controls && _ctx.controlsPosition === "right" ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
4313
4331
|
createElementVNode("button", {
|
|
4314
4332
|
type: "button",
|
|
4315
4333
|
class: "f-input-number__stack-btn",
|
|
@@ -4325,7 +4343,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4325
4343
|
]),
|
|
4326
4344
|
_: 1
|
|
4327
4345
|
})
|
|
4328
|
-
], 40, _hoisted_5$
|
|
4346
|
+
], 40, _hoisted_5$2),
|
|
4329
4347
|
createElementVNode("button", {
|
|
4330
4348
|
type: "button",
|
|
4331
4349
|
class: "f-input-number__stack-btn",
|
|
@@ -4341,35 +4359,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4341
4359
|
]),
|
|
4342
4360
|
_: 1
|
|
4343
4361
|
})
|
|
4344
|
-
], 40, _hoisted_6$
|
|
4362
|
+
], 40, _hoisted_6$2)
|
|
4345
4363
|
])) : createCommentVNode("", true)
|
|
4346
4364
|
], 2);
|
|
4347
4365
|
};
|
|
4348
4366
|
}
|
|
4349
4367
|
});
|
|
4350
|
-
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4351
|
-
const _hoisted_1$
|
|
4352
|
-
const _hoisted_2$
|
|
4368
|
+
const FInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3a928408"]]);
|
|
4369
|
+
const _hoisted_1$6 = { class: "f-result__icon" };
|
|
4370
|
+
const _hoisted_2$5 = {
|
|
4353
4371
|
key: 0,
|
|
4354
4372
|
class: "f-result__code"
|
|
4355
4373
|
};
|
|
4356
|
-
const _hoisted_3$
|
|
4374
|
+
const _hoisted_3$5 = {
|
|
4357
4375
|
key: 0,
|
|
4358
4376
|
class: "f-result__title"
|
|
4359
4377
|
};
|
|
4360
|
-
const _hoisted_4$
|
|
4378
|
+
const _hoisted_4$4 = {
|
|
4361
4379
|
key: 1,
|
|
4362
4380
|
class: "f-result__subtitle"
|
|
4363
4381
|
};
|
|
4364
|
-
const _hoisted_5 = {
|
|
4382
|
+
const _hoisted_5$1 = {
|
|
4365
4383
|
key: 2,
|
|
4366
4384
|
class: "f-result__extra"
|
|
4367
4385
|
};
|
|
4368
|
-
const _hoisted_6 = {
|
|
4386
|
+
const _hoisted_6$1 = {
|
|
4369
4387
|
key: 3,
|
|
4370
4388
|
class: "f-result__content"
|
|
4371
4389
|
};
|
|
4372
|
-
const _sfc_main$
|
|
4390
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4373
4391
|
__name: "FResult",
|
|
4374
4392
|
props: {
|
|
4375
4393
|
status: { default: "info" },
|
|
@@ -4395,9 +4413,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4395
4413
|
return openBlock(), createElementBlock("div", {
|
|
4396
4414
|
class: normalizeClass(["f-result", `f-result--${_ctx.status}`])
|
|
4397
4415
|
}, [
|
|
4398
|
-
createElementVNode("div", _hoisted_1$
|
|
4416
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
4399
4417
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
4400
|
-
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4418
|
+
unref(showCode) ? (openBlock(), createElementBlock("span", _hoisted_2$5, toDisplayString(_ctx.status), 1)) : (openBlock(), createBlock(FIcon, {
|
|
4401
4419
|
key: 1,
|
|
4402
4420
|
size: 72
|
|
4403
4421
|
}, {
|
|
@@ -4408,28 +4426,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4408
4426
|
}))
|
|
4409
4427
|
], true)
|
|
4410
4428
|
]),
|
|
4411
|
-
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4429
|
+
_ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
4412
4430
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
4413
4431
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
4414
4432
|
], true)
|
|
4415
4433
|
])) : createCommentVNode("", true),
|
|
4416
|
-
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
4434
|
+
_ctx.$slots.subtitle || _ctx.subTitle ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
4417
4435
|
renderSlot(_ctx.$slots, "subtitle", {}, () => [
|
|
4418
4436
|
createTextVNode(toDisplayString(_ctx.subTitle), 1)
|
|
4419
4437
|
], true)
|
|
4420
4438
|
])) : createCommentVNode("", true),
|
|
4421
|
-
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
4439
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
4422
4440
|
renderSlot(_ctx.$slots, "extra", {}, void 0, true)
|
|
4423
4441
|
])) : createCommentVNode("", true),
|
|
4424
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
4442
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
4425
4443
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4426
4444
|
])) : createCommentVNode("", true)
|
|
4427
4445
|
], 2);
|
|
4428
4446
|
};
|
|
4429
4447
|
}
|
|
4430
4448
|
});
|
|
4431
|
-
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4432
|
-
const _sfc_main$
|
|
4449
|
+
const FResult = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-f0bf955f"]]);
|
|
4450
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4433
4451
|
__name: "FMask",
|
|
4434
4452
|
props: /* @__PURE__ */ mergeModels({
|
|
4435
4453
|
maskClosable: { type: Boolean, default: true },
|
|
@@ -4484,8 +4502,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
4484
4502
|
};
|
|
4485
4503
|
}
|
|
4486
4504
|
});
|
|
4487
|
-
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4488
|
-
const _sfc_main$
|
|
4505
|
+
const FMask = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a2989c99"]]);
|
|
4506
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4489
4507
|
__name: "FMarquee",
|
|
4490
4508
|
props: {
|
|
4491
4509
|
text: { default: "Fantasia UI" },
|
|
@@ -4513,15 +4531,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4513
4531
|
};
|
|
4514
4532
|
}
|
|
4515
4533
|
});
|
|
4516
|
-
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4517
|
-
const _hoisted_1$
|
|
4518
|
-
const _hoisted_2$
|
|
4519
|
-
const _hoisted_3$
|
|
4520
|
-
const _hoisted_4$
|
|
4534
|
+
const FMarquee = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-83eeea3d"]]);
|
|
4535
|
+
const _hoisted_1$5 = { class: "f-step__icon" };
|
|
4536
|
+
const _hoisted_2$4 = { class: "f-step__content" };
|
|
4537
|
+
const _hoisted_3$4 = { class: "f-step__title" };
|
|
4538
|
+
const _hoisted_4$3 = {
|
|
4521
4539
|
key: 0,
|
|
4522
4540
|
class: "f-step__description"
|
|
4523
4541
|
};
|
|
4524
|
-
const _sfc_main$
|
|
4542
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4525
4543
|
__name: "FSteps",
|
|
4526
4544
|
props: {
|
|
4527
4545
|
items: {},
|
|
@@ -4546,10 +4564,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4546
4564
|
key: `${index}-step`,
|
|
4547
4565
|
class: normalizeClass(["f-step", [`is-${resolvedStatus(index, item.status)}`]])
|
|
4548
4566
|
}, [
|
|
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$
|
|
4567
|
+
createElementVNode("div", _hoisted_1$5, toDisplayString(index + 1), 1),
|
|
4568
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
4569
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(item.title || `Step ${index + 1}`), 1),
|
|
4570
|
+
item.description || _ctx.statusText ? (openBlock(), createElementBlock("div", _hoisted_4$3, toDisplayString(item.description || "Processing"), 1)) : createCommentVNode("", true)
|
|
4553
4571
|
])
|
|
4554
4572
|
], 2);
|
|
4555
4573
|
}), 128))
|
|
@@ -4557,12 +4575,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4557
4575
|
};
|
|
4558
4576
|
}
|
|
4559
4577
|
});
|
|
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$
|
|
4578
|
+
const FSteps = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-39ce5b1c"]]);
|
|
4579
|
+
const _hoisted_1$4 = { class: "f-dialog__icon" };
|
|
4580
|
+
const _hoisted_2$3 = { class: "f-dialog__title" };
|
|
4581
|
+
const _hoisted_3$3 = { class: "f-dialog__body" };
|
|
4582
|
+
const _hoisted_4$2 = { key: 0 };
|
|
4583
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4566
4584
|
__name: "FDialog",
|
|
4567
4585
|
props: /* @__PURE__ */ mergeModels({
|
|
4568
4586
|
title: { default: "提示" },
|
|
@@ -4655,7 +4673,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4655
4673
|
class: normalizeClass(["f-dialog__header", { "has-divider": _ctx.divider }])
|
|
4656
4674
|
}, [
|
|
4657
4675
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4658
|
-
createElementVNode("div", _hoisted_1$
|
|
4676
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
4659
4677
|
createVNode(FIcon, null, {
|
|
4660
4678
|
default: withCtx(() => [
|
|
4661
4679
|
(openBlock(), createBlock(resolveDynamicComponent(iconMap[_ctx.type])))
|
|
@@ -4663,13 +4681,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4663
4681
|
_: 1
|
|
4664
4682
|
})
|
|
4665
4683
|
]),
|
|
4666
|
-
createElementVNode("h3", _hoisted_2$
|
|
4667
|
-
])
|
|
4684
|
+
createElementVNode("h3", _hoisted_2$3, toDisplayString(_ctx.title), 1)
|
|
4685
|
+
], true)
|
|
4668
4686
|
], 2)) : createCommentVNode("", true),
|
|
4669
|
-
createElementVNode("div", _hoisted_3$
|
|
4687
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
4670
4688
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4671
|
-
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
4672
|
-
])
|
|
4689
|
+
_ctx.content ? (openBlock(), createElementBlock("p", _hoisted_4$2, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true)
|
|
4690
|
+
], true)
|
|
4673
4691
|
]),
|
|
4674
4692
|
createElementVNode("div", {
|
|
4675
4693
|
class: normalizeClass(["f-dialog__footer", { "has-divider": _ctx.divider }])
|
|
@@ -4693,7 +4711,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4693
4711
|
]),
|
|
4694
4712
|
_: 1
|
|
4695
4713
|
})
|
|
4696
|
-
])
|
|
4714
|
+
], true)
|
|
4697
4715
|
], 2)
|
|
4698
4716
|
], 2)) : createCommentVNode("", true)
|
|
4699
4717
|
]),
|
|
@@ -4707,17 +4725,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4707
4725
|
};
|
|
4708
4726
|
}
|
|
4709
4727
|
});
|
|
4710
|
-
const
|
|
4728
|
+
const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-32296f2f"]]);
|
|
4729
|
+
const _hoisted_1$3 = {
|
|
4711
4730
|
key: 0,
|
|
4712
4731
|
class: "f-drawer__header"
|
|
4713
4732
|
};
|
|
4714
|
-
const _hoisted_2$
|
|
4715
|
-
const _hoisted_3$
|
|
4716
|
-
const _hoisted_4 = {
|
|
4733
|
+
const _hoisted_2$2 = { class: "f-drawer__title" };
|
|
4734
|
+
const _hoisted_3$2 = { class: "f-drawer__body" };
|
|
4735
|
+
const _hoisted_4$1 = {
|
|
4717
4736
|
key: 1,
|
|
4718
4737
|
class: "f-drawer__footer"
|
|
4719
4738
|
};
|
|
4720
|
-
const _sfc_main$
|
|
4739
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4721
4740
|
__name: "FDrawer",
|
|
4722
4741
|
props: /* @__PURE__ */ mergeModels({
|
|
4723
4742
|
title: {},
|
|
@@ -4777,9 +4796,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4777
4796
|
[_ctx.placement === "left" || _ctx.placement === "right" ? "width" : "height"]: _ctx.size
|
|
4778
4797
|
})
|
|
4779
4798
|
}, [
|
|
4780
|
-
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4799
|
+
_ctx.title || _ctx.showClose || _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
4781
4800
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4782
|
-
createElementVNode("h3", _hoisted_2$
|
|
4801
|
+
createElementVNode("h3", _hoisted_2$2, toDisplayString(_ctx.title), 1)
|
|
4783
4802
|
], true),
|
|
4784
4803
|
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
4785
4804
|
key: 0,
|
|
@@ -4796,10 +4815,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4796
4815
|
})
|
|
4797
4816
|
])) : createCommentVNode("", true)
|
|
4798
4817
|
])) : createCommentVNode("", true),
|
|
4799
|
-
createElementVNode("div", _hoisted_3$
|
|
4818
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
4800
4819
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4801
4820
|
]),
|
|
4802
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
4821
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
4803
4822
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
4804
4823
|
])) : createCommentVNode("", true)
|
|
4805
4824
|
], 6)) : createCommentVNode("", true)
|
|
@@ -4810,7 +4829,455 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4810
4829
|
};
|
|
4811
4830
|
}
|
|
4812
4831
|
});
|
|
4813
|
-
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4832
|
+
const FDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-8f7155b9"]]);
|
|
4833
|
+
const _hoisted_1$2 = { class: "crop-box" };
|
|
4834
|
+
const _hoisted_2$1 = {
|
|
4835
|
+
key: 0,
|
|
4836
|
+
class: "crop-container"
|
|
4837
|
+
};
|
|
4838
|
+
const _hoisted_3$1 = ["src"];
|
|
4839
|
+
const _hoisted_4 = ["draggable"];
|
|
4840
|
+
const _hoisted_5 = ["id", "data-direction", "onMousedown", "onTouchstart"];
|
|
4841
|
+
const _hoisted_6 = {
|
|
4842
|
+
key: 1,
|
|
4843
|
+
class: "empty-state"
|
|
4844
|
+
};
|
|
4845
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4846
|
+
__name: "FCrop",
|
|
4847
|
+
props: {
|
|
4848
|
+
src: {},
|
|
4849
|
+
resizeDir: { default: () => ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"] },
|
|
4850
|
+
size: { default: 200 },
|
|
4851
|
+
minResizeSize: { default: 50 },
|
|
4852
|
+
outputFileType: { default: "image/png" },
|
|
4853
|
+
outputType: { default: "file" },
|
|
4854
|
+
quality: { default: 0.92 },
|
|
4855
|
+
scale: { default: 2 },
|
|
4856
|
+
mosaic: { type: Boolean, default: false },
|
|
4857
|
+
backgroundColor: { default: "" },
|
|
4858
|
+
cutClass: { default: "" },
|
|
4859
|
+
resizeClass: { default: "" }
|
|
4860
|
+
},
|
|
4861
|
+
emits: ["crop", "change", "cancel"],
|
|
4862
|
+
setup(__props, { emit: __emit }) {
|
|
4863
|
+
const resizeDirArray = ["top", "right", "bottom", "left", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
4864
|
+
const props = __props;
|
|
4865
|
+
const emit = __emit;
|
|
4866
|
+
const imageUrl = ref("");
|
|
4867
|
+
const cutPosition = ref({ x: 0, y: 0 });
|
|
4868
|
+
const isDragging = ref(false);
|
|
4869
|
+
const startPos = ref({ x: 0, y: 0 });
|
|
4870
|
+
const size = ref(props.size);
|
|
4871
|
+
const width = ref(props.size);
|
|
4872
|
+
const height = ref(props.size);
|
|
4873
|
+
const isResizing = ref(false);
|
|
4874
|
+
const resizeStartPos = ref({ x: 0, y: 0 });
|
|
4875
|
+
const maskStyle = computed(() => {
|
|
4876
|
+
const x = cutPosition.value.x;
|
|
4877
|
+
const y = cutPosition.value.y;
|
|
4878
|
+
return {
|
|
4879
|
+
clipPath: `polygon(
|
|
4880
|
+
0 0,
|
|
4881
|
+
100% 0,
|
|
4882
|
+
100% 100%,
|
|
4883
|
+
0 100%,
|
|
4884
|
+
0 ${y}px,
|
|
4885
|
+
${x}px ${y}px,
|
|
4886
|
+
${x}px ${y + height.value}px,
|
|
4887
|
+
${x + width.value}px ${y + height.value}px,
|
|
4888
|
+
${x + width.value}px ${y}px,
|
|
4889
|
+
${x}px ${y}px,
|
|
4890
|
+
0 ${y}px
|
|
4891
|
+
)`
|
|
4892
|
+
};
|
|
4893
|
+
});
|
|
4894
|
+
watch(() => props.src, (newSrc) => {
|
|
4895
|
+
if (!newSrc) {
|
|
4896
|
+
imageUrl.value = "";
|
|
4897
|
+
return;
|
|
4898
|
+
}
|
|
4899
|
+
if (typeof newSrc === "string") {
|
|
4900
|
+
imageUrl.value = newSrc;
|
|
4901
|
+
} else if (newSrc instanceof File) {
|
|
4902
|
+
imageUrl.value = URL.createObjectURL(newSrc);
|
|
4903
|
+
}
|
|
4904
|
+
nextTick(() => {
|
|
4905
|
+
const img2 = new Image();
|
|
4906
|
+
img2.src = imageUrl.value;
|
|
4907
|
+
img2.onload = () => {
|
|
4908
|
+
preCalculate();
|
|
4909
|
+
requestAnimationFrame(() => throttledHandleCut());
|
|
4910
|
+
};
|
|
4911
|
+
});
|
|
4912
|
+
}, { immediate: true });
|
|
4913
|
+
let container = null;
|
|
4914
|
+
let img = null;
|
|
4915
|
+
let containerWidth;
|
|
4916
|
+
let containerHeight;
|
|
4917
|
+
let imgRatio;
|
|
4918
|
+
let containerRatio;
|
|
4919
|
+
let renderedWidth;
|
|
4920
|
+
let renderedHeight;
|
|
4921
|
+
let offsetX;
|
|
4922
|
+
let offsetY;
|
|
4923
|
+
const rafThrottle = (func) => {
|
|
4924
|
+
let isRunning = false;
|
|
4925
|
+
return (...args) => {
|
|
4926
|
+
if (!isRunning) {
|
|
4927
|
+
isRunning = true;
|
|
4928
|
+
requestAnimationFrame(() => {
|
|
4929
|
+
func.apply(this, args);
|
|
4930
|
+
isRunning = false;
|
|
4931
|
+
});
|
|
4932
|
+
}
|
|
4933
|
+
};
|
|
4934
|
+
};
|
|
4935
|
+
const preCalculate = () => {
|
|
4936
|
+
container = document.querySelector(".preview");
|
|
4937
|
+
if (!container) return;
|
|
4938
|
+
img = container.querySelector(".image");
|
|
4939
|
+
if (!img) return;
|
|
4940
|
+
requestAnimationFrame(() => {
|
|
4941
|
+
if (!container || !img) return;
|
|
4942
|
+
containerWidth = container.clientWidth;
|
|
4943
|
+
containerHeight = container.clientHeight;
|
|
4944
|
+
imgRatio = img.naturalWidth / img.naturalHeight;
|
|
4945
|
+
containerRatio = containerWidth / containerHeight;
|
|
4946
|
+
if (imgRatio > containerRatio) {
|
|
4947
|
+
renderedWidth = containerWidth;
|
|
4948
|
+
renderedHeight = containerWidth / imgRatio;
|
|
4949
|
+
} else {
|
|
4950
|
+
renderedHeight = containerHeight;
|
|
4951
|
+
renderedWidth = containerHeight * imgRatio;
|
|
4952
|
+
}
|
|
4953
|
+
offsetX = (containerWidth - renderedWidth) / 2;
|
|
4954
|
+
offsetY = (containerHeight - renderedHeight) / 2;
|
|
4955
|
+
const initSize = Math.min(size.value, Math.min(renderedWidth, renderedHeight));
|
|
4956
|
+
size.value = initSize;
|
|
4957
|
+
width.value = initSize;
|
|
4958
|
+
height.value = initSize;
|
|
4959
|
+
const maxX = offsetX + renderedWidth - initSize;
|
|
4960
|
+
const maxY = offsetY + renderedHeight - initSize;
|
|
4961
|
+
cutPosition.value = {
|
|
4962
|
+
x: Math.max(offsetX, Math.min(offsetX + (renderedWidth - initSize) / 2, maxX)),
|
|
4963
|
+
y: Math.max(offsetY, Math.min(offsetY + (renderedHeight - initSize) / 2, maxY))
|
|
4964
|
+
};
|
|
4965
|
+
});
|
|
4966
|
+
};
|
|
4967
|
+
const handleDragStart = (e) => {
|
|
4968
|
+
isDragging.value = true;
|
|
4969
|
+
isResizing.value = false;
|
|
4970
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
4971
|
+
let clientX;
|
|
4972
|
+
let clientY;
|
|
4973
|
+
if (e instanceof TouchEvent) {
|
|
4974
|
+
clientX = e.touches[0].clientX;
|
|
4975
|
+
clientY = e.touches[0].clientY;
|
|
4976
|
+
} else {
|
|
4977
|
+
clientX = e.clientX;
|
|
4978
|
+
clientY = e.clientY;
|
|
4979
|
+
}
|
|
4980
|
+
startPos.value = {
|
|
4981
|
+
x: clientX - rect.left,
|
|
4982
|
+
y: clientY - rect.top
|
|
4983
|
+
};
|
|
4984
|
+
if (e instanceof DragEvent) {
|
|
4985
|
+
if (e.dataTransfer) {
|
|
4986
|
+
e.dataTransfer.setDragImage(new Image(), 0, 0);
|
|
4987
|
+
}
|
|
4988
|
+
} else {
|
|
4989
|
+
e.preventDefault();
|
|
4990
|
+
}
|
|
4991
|
+
};
|
|
4992
|
+
const handleDragMove = (e) => {
|
|
4993
|
+
if (!isDragging.value || isResizing.value) return;
|
|
4994
|
+
let clientX;
|
|
4995
|
+
let clientY;
|
|
4996
|
+
if (e instanceof TouchEvent) {
|
|
4997
|
+
clientX = e.touches[0].clientX;
|
|
4998
|
+
clientY = e.touches[0].clientY;
|
|
4999
|
+
} else {
|
|
5000
|
+
clientX = e.clientX;
|
|
5001
|
+
clientY = e.clientY;
|
|
5002
|
+
}
|
|
5003
|
+
if (!clientX || !clientY) return;
|
|
5004
|
+
e.preventDefault();
|
|
5005
|
+
const containerEl = document.querySelector(".preview");
|
|
5006
|
+
if (!containerEl) return;
|
|
5007
|
+
const rect = containerEl.getBoundingClientRect();
|
|
5008
|
+
let newX = clientX - startPos.value.x - rect.left;
|
|
5009
|
+
let newY = clientY - startPos.value.y - rect.top;
|
|
5010
|
+
const imageLeft = offsetX;
|
|
5011
|
+
const imageTop = offsetY;
|
|
5012
|
+
const imageRight = offsetX + renderedWidth;
|
|
5013
|
+
const imageBottom = offsetY + renderedHeight;
|
|
5014
|
+
newX = Math.max(imageLeft, Math.min(newX, imageRight - width.value));
|
|
5015
|
+
newY = Math.max(imageTop, Math.min(newY, imageBottom - height.value));
|
|
5016
|
+
cutPosition.value = { x: newX, y: newY };
|
|
5017
|
+
throttledHandleCut();
|
|
5018
|
+
};
|
|
5019
|
+
const handleDragEnd = () => isDragging.value = false;
|
|
5020
|
+
const tempCanvas = () => {
|
|
5021
|
+
return document.createElement("canvas");
|
|
5022
|
+
};
|
|
5023
|
+
const handleCut = () => __async(this, null, function* () {
|
|
5024
|
+
if (!container || !img) return null;
|
|
5025
|
+
const currentOffsetX = offsetX;
|
|
5026
|
+
const currentOffsetY = offsetY;
|
|
5027
|
+
const currentRenderedWidth = renderedWidth;
|
|
5028
|
+
const currentRenderedHeight = renderedHeight;
|
|
5029
|
+
const sx = (cutPosition.value.x - currentOffsetX) * (img.naturalWidth / currentRenderedWidth);
|
|
5030
|
+
const sy = (cutPosition.value.y - currentOffsetY) * (img.naturalHeight / currentRenderedHeight);
|
|
5031
|
+
const validSx = Math.max(0, sx);
|
|
5032
|
+
const validSy = Math.max(0, sy);
|
|
5033
|
+
const validWidth = Math.min(width.value * (img.naturalWidth / renderedWidth), img.naturalWidth - validSx);
|
|
5034
|
+
const validHeight = Math.min(height.value * (img.naturalHeight / renderedHeight), img.naturalHeight - validSy);
|
|
5035
|
+
const cvs = tempCanvas();
|
|
5036
|
+
cvs.width = width.value * props.scale;
|
|
5037
|
+
cvs.height = height.value * props.scale;
|
|
5038
|
+
const ctx = cvs.getContext("2d");
|
|
5039
|
+
ctx.clearRect(0, 0, cvs.width, cvs.height);
|
|
5040
|
+
ctx.drawImage(
|
|
5041
|
+
img,
|
|
5042
|
+
validSx,
|
|
5043
|
+
validSy,
|
|
5044
|
+
validWidth,
|
|
5045
|
+
validHeight,
|
|
5046
|
+
0,
|
|
5047
|
+
0,
|
|
5048
|
+
width.value * props.scale,
|
|
5049
|
+
height.value * props.scale
|
|
5050
|
+
);
|
|
5051
|
+
return new Promise((resolve) => {
|
|
5052
|
+
cvs.toBlob((blob) => {
|
|
5053
|
+
if (!blob) {
|
|
5054
|
+
resolve({ width: width.value, height: height.value });
|
|
5055
|
+
return;
|
|
5056
|
+
}
|
|
5057
|
+
const result = {
|
|
5058
|
+
width: width.value * props.scale,
|
|
5059
|
+
height: height.value * props.scale
|
|
5060
|
+
};
|
|
5061
|
+
if (props.outputType === "file" || props.outputType === "blob") {
|
|
5062
|
+
result.blob = blob;
|
|
5063
|
+
}
|
|
5064
|
+
if (props.outputType === "file") {
|
|
5065
|
+
result.file = new File([blob], `crop-${Date.now()}.${props.outputFileType.split("/")[1]}`, {
|
|
5066
|
+
type: props.outputFileType
|
|
5067
|
+
});
|
|
5068
|
+
}
|
|
5069
|
+
if (props.outputType === "base64") {
|
|
5070
|
+
result.base64 = cvs.toDataURL(props.outputFileType, props.quality);
|
|
5071
|
+
}
|
|
5072
|
+
resolve(result);
|
|
5073
|
+
}, props.outputFileType, props.quality);
|
|
5074
|
+
});
|
|
5075
|
+
});
|
|
5076
|
+
const throttledHandleCut = rafThrottle(() => __async(this, null, function* () {
|
|
5077
|
+
const result = yield handleCut();
|
|
5078
|
+
if (result) {
|
|
5079
|
+
emit("change", result);
|
|
5080
|
+
}
|
|
5081
|
+
}));
|
|
5082
|
+
const handleConfirm = () => __async(this, null, function* () {
|
|
5083
|
+
const result = yield handleCut();
|
|
5084
|
+
if (result) {
|
|
5085
|
+
emit("crop", result);
|
|
5086
|
+
}
|
|
5087
|
+
});
|
|
5088
|
+
const handleCancel = () => {
|
|
5089
|
+
emit("cancel");
|
|
5090
|
+
};
|
|
5091
|
+
const handleResizeStart = (e, direction) => {
|
|
5092
|
+
var _a;
|
|
5093
|
+
if (e instanceof TouchEvent && e.cancelable) e.preventDefault();
|
|
5094
|
+
const dirEl = document.getElementById(direction || "");
|
|
5095
|
+
if (dirEl) dirEl.classList.add("is_focus");
|
|
5096
|
+
isResizing.value = true;
|
|
5097
|
+
isDragging.value = false;
|
|
5098
|
+
const dir = direction || ((_a = e.target.dataset) == null ? void 0 : _a.direction);
|
|
5099
|
+
if (!dir) return;
|
|
5100
|
+
let clientX;
|
|
5101
|
+
let clientY;
|
|
5102
|
+
if (e instanceof TouchEvent) {
|
|
5103
|
+
clientX = e.touches[0].clientX;
|
|
5104
|
+
clientY = e.touches[0].clientY;
|
|
5105
|
+
} else {
|
|
5106
|
+
clientX = e.clientX;
|
|
5107
|
+
clientY = e.clientY;
|
|
5108
|
+
}
|
|
5109
|
+
resizeStartPos.value = { x: clientX, y: clientY };
|
|
5110
|
+
const moveEvent = e instanceof MouseEvent ? "mousemove" : "touchmove";
|
|
5111
|
+
const endEvent = e instanceof MouseEvent ? "mouseup" : "touchend";
|
|
5112
|
+
const onMove = (moveE) => {
|
|
5113
|
+
if (!isResizing.value) return;
|
|
5114
|
+
let moveX;
|
|
5115
|
+
let moveY;
|
|
5116
|
+
if (moveE instanceof TouchEvent) {
|
|
5117
|
+
moveX = moveE.touches[0].clientX;
|
|
5118
|
+
moveY = moveE.touches[0].clientY;
|
|
5119
|
+
} else {
|
|
5120
|
+
moveX = moveE.clientX;
|
|
5121
|
+
moveY = moveE.clientY;
|
|
5122
|
+
}
|
|
5123
|
+
if (!container) return;
|
|
5124
|
+
const containerRect = container.getBoundingClientRect();
|
|
5125
|
+
if (moveX < containerRect.left || moveX > containerRect.right || moveY < containerRect.top || moveY > containerRect.bottom) {
|
|
5126
|
+
onEnd();
|
|
5127
|
+
return;
|
|
5128
|
+
}
|
|
5129
|
+
requestAnimationFrame(() => {
|
|
5130
|
+
const deltaX = moveX - resizeStartPos.value.x;
|
|
5131
|
+
const deltaY = moveY - resizeStartPos.value.y;
|
|
5132
|
+
let newWidth = width.value;
|
|
5133
|
+
let newHeight = height.value;
|
|
5134
|
+
let newX = cutPosition.value.x;
|
|
5135
|
+
let newY = cutPosition.value.y;
|
|
5136
|
+
const maxWidth = offsetX + renderedWidth - cutPosition.value.x;
|
|
5137
|
+
const maxHeight = offsetY + renderedHeight - cutPosition.value.y;
|
|
5138
|
+
const availableHeight = cutPosition.value.y - offsetY + height.value;
|
|
5139
|
+
switch (dir) {
|
|
5140
|
+
case "top":
|
|
5141
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5142
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5143
|
+
break;
|
|
5144
|
+
case "right":
|
|
5145
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5146
|
+
break;
|
|
5147
|
+
case "bottom":
|
|
5148
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5149
|
+
break;
|
|
5150
|
+
case "left":
|
|
5151
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5152
|
+
newX = cutPosition.value.x + (width.value - newWidth);
|
|
5153
|
+
break;
|
|
5154
|
+
case "top-left":
|
|
5155
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5156
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5157
|
+
newX = Math.max(offsetX, cutPosition.value.x + (width.value - newWidth));
|
|
5158
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5159
|
+
break;
|
|
5160
|
+
case "top-right":
|
|
5161
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5162
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value - deltaY, availableHeight));
|
|
5163
|
+
newY = Math.max(offsetY, Math.min(cutPosition.value.y + (height.value - newHeight), offsetY + renderedHeight - newHeight));
|
|
5164
|
+
break;
|
|
5165
|
+
case "bottom-left":
|
|
5166
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value - deltaX, maxWidth));
|
|
5167
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5168
|
+
newX = cutPosition.value.x + (width.value - newWidth);
|
|
5169
|
+
break;
|
|
5170
|
+
case "bottom-right":
|
|
5171
|
+
newWidth = Math.max(props.minResizeSize, Math.min(width.value + deltaX, maxWidth));
|
|
5172
|
+
newHeight = Math.max(props.minResizeSize, Math.min(height.value + deltaY, maxHeight));
|
|
5173
|
+
break;
|
|
5174
|
+
}
|
|
5175
|
+
newX = Math.max(offsetX, Math.min(newX, offsetX + renderedWidth - newWidth));
|
|
5176
|
+
newY = Math.max(offsetY, Math.min(newY, offsetY + renderedHeight - newHeight));
|
|
5177
|
+
width.value = newWidth;
|
|
5178
|
+
height.value = newHeight;
|
|
5179
|
+
cutPosition.value = { x: newX, y: newY };
|
|
5180
|
+
throttledHandleCut();
|
|
5181
|
+
resizeStartPos.value = { x: moveX, y: moveY };
|
|
5182
|
+
});
|
|
5183
|
+
};
|
|
5184
|
+
const onEnd = () => {
|
|
5185
|
+
if (isResizing.value && dirEl) {
|
|
5186
|
+
isResizing.value = false;
|
|
5187
|
+
dirEl.classList.remove("is_focus");
|
|
5188
|
+
document.removeEventListener(moveEvent, onMove);
|
|
5189
|
+
document.removeEventListener(endEvent, onEnd);
|
|
5190
|
+
document.removeEventListener("mouseleave", onEnd);
|
|
5191
|
+
}
|
|
5192
|
+
};
|
|
5193
|
+
document.addEventListener(moveEvent, onMove);
|
|
5194
|
+
document.addEventListener(endEvent, onEnd);
|
|
5195
|
+
document.addEventListener("mouseleave", onEnd);
|
|
5196
|
+
e.stopPropagation();
|
|
5197
|
+
};
|
|
5198
|
+
const handleWindowResize = () => {
|
|
5199
|
+
preCalculate();
|
|
5200
|
+
throttledHandleCut();
|
|
5201
|
+
};
|
|
5202
|
+
onMounted(() => {
|
|
5203
|
+
window.addEventListener("resize", handleWindowResize);
|
|
5204
|
+
});
|
|
5205
|
+
onUnmounted(() => {
|
|
5206
|
+
window.removeEventListener("resize", handleWindowResize);
|
|
5207
|
+
if (imageUrl.value && imageUrl.value.startsWith("blob:")) {
|
|
5208
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
5209
|
+
}
|
|
5210
|
+
});
|
|
5211
|
+
return (_ctx, _cache) => {
|
|
5212
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
5213
|
+
unref(imageUrl) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
5214
|
+
createElementVNode("div", {
|
|
5215
|
+
class: normalizeClass(["preview", { "mosaic-bg": props.mosaic }]),
|
|
5216
|
+
style: normalizeStyle({ background: props.backgroundColor || void 0 })
|
|
5217
|
+
}, [
|
|
5218
|
+
createElementVNode("img", {
|
|
5219
|
+
src: unref(imageUrl),
|
|
5220
|
+
class: "image"
|
|
5221
|
+
}, null, 8, _hoisted_3$1),
|
|
5222
|
+
createElementVNode("div", {
|
|
5223
|
+
style: normalizeStyle({
|
|
5224
|
+
transform: `translate(${unref(cutPosition).x}px, ${unref(cutPosition).y}px)`,
|
|
5225
|
+
width: `${unref(width)}px`,
|
|
5226
|
+
height: `${unref(height)}px`
|
|
5227
|
+
}),
|
|
5228
|
+
draggable: !unref(isResizing),
|
|
5229
|
+
onDragstart: handleDragStart,
|
|
5230
|
+
onDrag: handleDragMove,
|
|
5231
|
+
onDragend: handleDragEnd,
|
|
5232
|
+
onTouchstart: handleDragStart,
|
|
5233
|
+
onTouchmove: handleDragMove,
|
|
5234
|
+
onTouchend: handleDragEnd,
|
|
5235
|
+
class: normalizeClass(["cut", [props.cutClass, unref(isDragging) ? "move" : "", unref(isResizing) ? "move" : ""]])
|
|
5236
|
+
}, [
|
|
5237
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(resizeDirArray, (direction, i) => {
|
|
5238
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
5239
|
+
props.resizeDir.includes(direction) ? (openBlock(), createElementBlock("div", {
|
|
5240
|
+
key: 0,
|
|
5241
|
+
id: direction,
|
|
5242
|
+
class: normalizeClass([
|
|
5243
|
+
direction.includes("-") ? "resize-point" : "resize-line",
|
|
5244
|
+
direction,
|
|
5245
|
+
props.resizeClass
|
|
5246
|
+
]),
|
|
5247
|
+
"data-direction": direction,
|
|
5248
|
+
onMousedown: ($event) => handleResizeStart($event, direction),
|
|
5249
|
+
onTouchstart: ($event) => handleResizeStart($event, direction)
|
|
5250
|
+
}, null, 42, _hoisted_5)) : createCommentVNode("", true)
|
|
5251
|
+
], 64);
|
|
5252
|
+
}), 64))
|
|
5253
|
+
], 46, _hoisted_4),
|
|
5254
|
+
createElementVNode("div", {
|
|
5255
|
+
class: "mask",
|
|
5256
|
+
style: normalizeStyle(unref(maskStyle))
|
|
5257
|
+
}, null, 4)
|
|
5258
|
+
], 6),
|
|
5259
|
+
createElementVNode("div", { class: "actions" }, [
|
|
5260
|
+
createElementVNode("button", {
|
|
5261
|
+
onClick: handleCancel,
|
|
5262
|
+
class: "btn btn-cancel",
|
|
5263
|
+
type: "button"
|
|
5264
|
+
}, "取消"),
|
|
5265
|
+
createElementVNode("button", {
|
|
5266
|
+
onClick: handleConfirm,
|
|
5267
|
+
class: "btn btn-primary",
|
|
5268
|
+
type: "button"
|
|
5269
|
+
}, "确认裁剪")
|
|
5270
|
+
])
|
|
5271
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
5272
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
5273
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "empty-text" }, "请设置 src 属性加载图片", -1))
|
|
5274
|
+
], true)
|
|
5275
|
+
]))
|
|
5276
|
+
]);
|
|
5277
|
+
};
|
|
5278
|
+
}
|
|
5279
|
+
});
|
|
5280
|
+
const FCrop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-54852b1f"]]);
|
|
4814
5281
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4815
5282
|
__proto__: null,
|
|
4816
5283
|
FAffix,
|
|
@@ -4823,16 +5290,17 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4823
5290
|
FCard,
|
|
4824
5291
|
FCheckbox,
|
|
4825
5292
|
FCol,
|
|
4826
|
-
FCollapse
|
|
4827
|
-
FCollapseItem
|
|
4828
|
-
FColorPicker
|
|
5293
|
+
FCollapse,
|
|
5294
|
+
FCollapseItem,
|
|
5295
|
+
FColorPicker,
|
|
4829
5296
|
FContainer,
|
|
4830
|
-
|
|
5297
|
+
FCrop,
|
|
5298
|
+
FDialog: FDialogComp,
|
|
4831
5299
|
FDivider,
|
|
4832
5300
|
FDrawer,
|
|
4833
5301
|
FDropdown,
|
|
4834
5302
|
FEditor,
|
|
4835
|
-
FEmpty
|
|
5303
|
+
FEmpty,
|
|
4836
5304
|
FForm,
|
|
4837
5305
|
FFormItem,
|
|
4838
5306
|
FIcon,
|
|
@@ -4850,9 +5318,9 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
4850
5318
|
FRate,
|
|
4851
5319
|
FResult,
|
|
4852
5320
|
FRow,
|
|
4853
|
-
FScrollbar
|
|
5321
|
+
FScrollbar,
|
|
4854
5322
|
FSelect,
|
|
4855
|
-
FSlider
|
|
5323
|
+
FSlider,
|
|
4856
5324
|
FSpace,
|
|
4857
5325
|
FSteps,
|
|
4858
5326
|
FSwitch,
|
|
@@ -4884,7 +5352,7 @@ const showDialog = (options) => {
|
|
|
4884
5352
|
render(null, container);
|
|
4885
5353
|
document.body.removeChild(container);
|
|
4886
5354
|
};
|
|
4887
|
-
const vnode = h(
|
|
5355
|
+
const vnode = h(FDialogComp, __spreadValues({
|
|
4888
5356
|
modelValue: visible.value,
|
|
4889
5357
|
"onUpdate:modelValue": (val) => {
|
|
4890
5358
|
visible.value = val;
|
|
@@ -5039,7 +5507,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5039
5507
|
};
|
|
5040
5508
|
}
|
|
5041
5509
|
});
|
|
5042
|
-
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
5510
|
+
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a4468253"]]);
|
|
5043
5511
|
const GAP$1 = 16;
|
|
5044
5512
|
const BASE_OFFSET$1 = 20;
|
|
5045
5513
|
let seed$1 = 0;
|
|
@@ -5229,7 +5697,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5229
5697
|
};
|
|
5230
5698
|
}
|
|
5231
5699
|
});
|
|
5232
|
-
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5700
|
+
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dcbe6189"]]);
|
|
5233
5701
|
const GAP = 16;
|
|
5234
5702
|
const BASE_OFFSET = 20;
|
|
5235
5703
|
let seed = 0;
|
|
@@ -5336,17 +5804,18 @@ export {
|
|
|
5336
5804
|
FCard,
|
|
5337
5805
|
FCheckbox,
|
|
5338
5806
|
FCol,
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5807
|
+
FCollapse,
|
|
5808
|
+
FCollapseItem,
|
|
5809
|
+
FColorPicker,
|
|
5342
5810
|
FContainer,
|
|
5343
|
-
|
|
5811
|
+
FCrop,
|
|
5812
|
+
FDialogComp as FDialog,
|
|
5344
5813
|
FDialog as FDialogBox,
|
|
5345
5814
|
FDivider,
|
|
5346
5815
|
FDrawer,
|
|
5347
5816
|
FDropdown,
|
|
5348
5817
|
FEditor,
|
|
5349
|
-
|
|
5818
|
+
FEmpty,
|
|
5350
5819
|
FForm,
|
|
5351
5820
|
FFormItem,
|
|
5352
5821
|
FIcon,
|
|
@@ -5366,9 +5835,9 @@ export {
|
|
|
5366
5835
|
FRate,
|
|
5367
5836
|
FResult,
|
|
5368
5837
|
FRow,
|
|
5369
|
-
|
|
5838
|
+
FScrollbar,
|
|
5370
5839
|
FSelect,
|
|
5371
|
-
|
|
5840
|
+
FSlider,
|
|
5372
5841
|
FSpace,
|
|
5373
5842
|
FSteps,
|
|
5374
5843
|
FSwitch,
|