yc-component 0.1.11 → 0.1.12
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/ai-task/style.css +1 -1
- package/dist/image-selector/components/YcImageSelectorDialog.d.ts.map +1 -1
- package/dist/image-selector/style.css +1 -1
- package/dist/index.css +1 -1
- package/dist/page-window/style.css +1 -1
- package/dist/yc-component.cjs.full.js +10 -10
- package/dist/yc-component.cjs.js +2 -2
- package/dist/yc-component.esm.full.js +127 -127
- package/dist/yc-component.esm.js +121 -121
- package/dist/yc-component.umd.full.js +6 -6
- package/dist/yc-component.umd.full.min.js +1 -1
- package/dist/yc-component.umd.js +3 -3
- package/dist/yc-component.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/yc-component.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ze from "axios";
|
|
2
|
-
import { defineComponent as ue, ref as k, computed as
|
|
2
|
+
import { defineComponent as ue, ref as k, computed as B, watch as te, onBeforeUnmount as Mt, resolveComponent as O, resolveDirective as et, openBlock as d, createBlock as M, Transition as tt, withCtx as p, withDirectives as ve, createElementVNode as _, normalizeStyle as He, createVNode as f, unref as h, toDisplayString as V, createElementBlock as A, createCommentVNode as P, createTextVNode as q, renderSlot as Ce, Fragment as ae, vShow as Ee, reactive as nt, inject as Oe, onMounted as Fe, onUnmounted as Ue, renderList as ge, Teleport as Et, normalizeClass as re, provide as $e, normalizeProps as $t, mergeProps as ot, withKeys as Pt, withModifiers as Lt, nextTick as Je, isRef as Dt } from "vue";
|
|
3
3
|
import { ArrowLeft as Bt, ArrowUpBold as Vt, ArrowDownBold as Ot, Switch as Ft, Close as at, Check as lt, Refresh as Xe, ArrowDown as Ut, CircleCheck as Rt, CircleClose as Kt, Remove as Nt, Search as zt, Upload as Yt } from "@element-plus/icons-vue";
|
|
4
4
|
import { storeToRefs as Wt, defineStore as jt } from "pinia";
|
|
5
5
|
import { ElMessage as Z } from "element-plus";
|
|
@@ -90,21 +90,21 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
90
90
|
},
|
|
91
91
|
emits: ["update:visible", "update:type", "confirm", "close", "opened", "changeType", "prev", "next", "checkRow"],
|
|
92
92
|
setup(e, { expose: n, emit: t }) {
|
|
93
|
-
const o = e, l = t, g = k(!1), w =
|
|
93
|
+
const o = e, l = t, g = k(!1), w = B(() => o.loading || g.value), S = B(() => o.type === "detail" ? "详情" : o.type === "edit" ? "编辑" : o.type === "add" ? "新增" : ""), m = B(
|
|
94
94
|
() => o.list.length > 0 && o.row != null
|
|
95
|
-
), r =
|
|
95
|
+
), r = B(
|
|
96
96
|
() => ["detail", "edit"].includes(o.type)
|
|
97
|
-
),
|
|
97
|
+
), L = B(() => o.type !== "detail");
|
|
98
98
|
function U() {
|
|
99
99
|
if (!o.row) return -1;
|
|
100
100
|
const C = o.rowKey, F = o.row[C];
|
|
101
101
|
return o.list.findIndex((Y) => Y[C] === F);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function E(C) {
|
|
104
104
|
const F = U();
|
|
105
105
|
return F < 0 ? !0 : C === "prev" ? F <= 0 : F >= o.list.length - 1;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function D() {
|
|
108
108
|
const C = U();
|
|
109
109
|
if (C <= 0) return;
|
|
110
110
|
const F = o.list[C - 1];
|
|
@@ -136,8 +136,8 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
136
136
|
), Mt(() => {
|
|
137
137
|
o.visible && $();
|
|
138
138
|
}), n({ closeWindow: $ }), (C, F) => {
|
|
139
|
-
const Y =
|
|
140
|
-
return d(),
|
|
139
|
+
const Y = O("el-icon"), v = O("el-button"), T = O("el-tooltip"), W = O("el-scrollbar"), H = et("loading");
|
|
140
|
+
return d(), M(tt, {
|
|
141
141
|
name: "yc-page-window-fade",
|
|
142
142
|
mode: "out-in"
|
|
143
143
|
}, {
|
|
@@ -157,7 +157,7 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
159
|
}),
|
|
160
|
-
_("span", null,
|
|
160
|
+
_("span", null, V(e.title) + V(S.value), 1),
|
|
161
161
|
m.value ? (d(), A("div", en, [
|
|
162
162
|
f(T, {
|
|
163
163
|
content: "上一条",
|
|
@@ -167,8 +167,8 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
167
167
|
f(v, {
|
|
168
168
|
round: "",
|
|
169
169
|
text: "",
|
|
170
|
-
disabled:
|
|
171
|
-
onClick:
|
|
170
|
+
disabled: E("prev"),
|
|
171
|
+
onClick: D
|
|
172
172
|
}, {
|
|
173
173
|
default: p(() => [
|
|
174
174
|
f(Y, null, {
|
|
@@ -191,7 +191,7 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
191
191
|
f(v, {
|
|
192
192
|
round: "",
|
|
193
193
|
text: "",
|
|
194
|
-
disabled:
|
|
194
|
+
disabled: E("next"),
|
|
195
195
|
onClick: N
|
|
196
196
|
}, {
|
|
197
197
|
default: p(() => [
|
|
@@ -208,7 +208,7 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
208
208
|
_: 1
|
|
209
209
|
})
|
|
210
210
|
])) : P("", !0),
|
|
211
|
-
r.value ? (d(),
|
|
211
|
+
r.value ? (d(), M(v, {
|
|
212
212
|
key: 1,
|
|
213
213
|
text: "",
|
|
214
214
|
class: "yc-page-window__type-switch",
|
|
@@ -222,14 +222,14 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
222
222
|
]),
|
|
223
223
|
_: 1
|
|
224
224
|
}),
|
|
225
|
-
q(" " +
|
|
225
|
+
q(" " + V(e.type === "detail" ? "切换编辑" : "切换详情"), 1)
|
|
226
226
|
]),
|
|
227
227
|
_: 1
|
|
228
228
|
}, 8, ["type"])) : P("", !0)
|
|
229
229
|
]),
|
|
230
230
|
_("div", tn, [
|
|
231
231
|
Ce(C.$slots, "opera", {}, void 0, !0),
|
|
232
|
-
e.showButtons &&
|
|
232
|
+
e.showButtons && L.value ? (d(), A(ae, { key: 0 }, [
|
|
233
233
|
f(v, {
|
|
234
234
|
text: "",
|
|
235
235
|
disabled: w.value,
|
|
@@ -242,11 +242,11 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
242
242
|
]),
|
|
243
243
|
_: 1
|
|
244
244
|
}),
|
|
245
|
-
q(" " +
|
|
245
|
+
q(" " + V(e.cancelText), 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 1
|
|
248
248
|
}, 8, ["disabled"]),
|
|
249
|
-
e.showConfirm ? (d(),
|
|
249
|
+
e.showConfirm ? (d(), M(v, {
|
|
250
250
|
key: 0,
|
|
251
251
|
type: "primary",
|
|
252
252
|
loading: w.value,
|
|
@@ -260,7 +260,7 @@ const Qt = { class: "yc-page-window__header" }, Zt = { class: "yc-page-window__t
|
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
262
262
|
}),
|
|
263
|
-
q(" " +
|
|
263
|
+
q(" " + V(e.confirmText), 1)
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
266
266
|
}, 8, ["loading", "disabled"])) : P("", !0)
|
|
@@ -510,7 +510,7 @@ const gt = jt("ycAiTask", () => {
|
|
|
510
510
|
finishedAt: a.finishedAt ?? Date.now()
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function L(a, u) {
|
|
514
514
|
var se;
|
|
515
515
|
const c = e.value.find((fe) => fe.id === a);
|
|
516
516
|
if (!(c != null && c.runId)) return;
|
|
@@ -520,10 +520,10 @@ const gt = jt("ycAiTask", () => {
|
|
|
520
520
|
function U(a) {
|
|
521
521
|
return m.add(a), () => m.delete(a);
|
|
522
522
|
}
|
|
523
|
-
const
|
|
523
|
+
const E = B(
|
|
524
524
|
() => e.value.filter((a) => oe(a.status)).length
|
|
525
|
-
),
|
|
526
|
-
const a = e.value.length, u =
|
|
525
|
+
), D = B(() => e.value.filter((a) => a.status === "running").length), N = B(() => E.value > 0 ? "AI 处理中" : e.value.some((a) => a.status === "failed") ? "部分任务失败" : "AI 任务"), y = B(() => {
|
|
526
|
+
const a = e.value.length, u = E.value;
|
|
527
527
|
return a === 0 ? "暂无任务" : u > 0 ? `${u}/${a} 项任务进行中` : `${a} 项任务已完成`;
|
|
528
528
|
});
|
|
529
529
|
function $() {
|
|
@@ -558,7 +558,7 @@ const gt = jt("ycAiTask", () => {
|
|
|
558
558
|
}, Cn));
|
|
559
559
|
}
|
|
560
560
|
function x() {
|
|
561
|
-
|
|
561
|
+
E.value > 0 || me && (clearInterval(me), me = null);
|
|
562
562
|
}
|
|
563
563
|
async function J() {
|
|
564
564
|
const a = e.value.filter((u) => u.runId && oe(u.status));
|
|
@@ -587,7 +587,7 @@ const gt = jt("ycAiTask", () => {
|
|
|
587
587
|
result: R,
|
|
588
588
|
runId: c.runId,
|
|
589
589
|
finishedAt: Date.now()
|
|
590
|
-
}),
|
|
590
|
+
}), L(a, R);
|
|
591
591
|
} else
|
|
592
592
|
z(a, {
|
|
593
593
|
status: c.errorMessage === "已取消" ? "cancelled" : "failed",
|
|
@@ -690,8 +690,8 @@ const gt = jt("ycAiTask", () => {
|
|
|
690
690
|
dialogVisible: o,
|
|
691
691
|
dialogOptions: l,
|
|
692
692
|
hydrated: g,
|
|
693
|
-
runningCount:
|
|
694
|
-
activeCount:
|
|
693
|
+
runningCount: E,
|
|
694
|
+
activeCount: D,
|
|
695
695
|
panelTitle: N,
|
|
696
696
|
panelSubtitle: y,
|
|
697
697
|
hydrate: ne,
|
|
@@ -742,7 +742,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
742
742
|
},
|
|
743
743
|
emits: ["update:modelValue", "submitted"],
|
|
744
744
|
setup(e, { emit: n }) {
|
|
745
|
-
const t = e, o = n, l = ze(), g =
|
|
745
|
+
const t = e, o = n, l = ze(), g = B(() => t.modelValue !== void 0), w = k(!1);
|
|
746
746
|
te(
|
|
747
747
|
() => t.modelValue,
|
|
748
748
|
(v) => {
|
|
@@ -772,23 +772,23 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
772
772
|
}), Ue(() => {
|
|
773
773
|
globalThis.removeEventListener(Le, S);
|
|
774
774
|
});
|
|
775
|
-
const m =
|
|
775
|
+
const m = B(
|
|
776
776
|
() => (g.value ? void 0 : ee.options.title) ?? t.title ?? "AI 生成"
|
|
777
777
|
), r = k({
|
|
778
778
|
freeText: t.freeText,
|
|
779
779
|
promptId: t.promptId,
|
|
780
780
|
autoMatch: t.autoMatch
|
|
781
|
-
}),
|
|
781
|
+
}), L = k(t.prompts ? [...t.prompts] : []), U = k(!1), E = k(!1), D = k();
|
|
782
782
|
function N(v) {
|
|
783
783
|
var T, W;
|
|
784
|
-
r.value.freeText = v.freeText ?? t.freeText ?? "", r.value.promptId = v.promptId ?? t.promptId, r.value.autoMatch = v.autoMatch ?? t.autoMatch ?? !1,
|
|
784
|
+
r.value.freeText = v.freeText ?? t.freeText ?? "", r.value.promptId = v.promptId ?? t.promptId, r.value.autoMatch = v.autoMatch ?? t.autoMatch ?? !1, D.value = v.onFinish, (T = v.prompts) != null && T.length ? L.value = [...v.prompts] : (W = t.prompts) != null && W.length && (L.value = [...t.prompts]);
|
|
785
785
|
}
|
|
786
786
|
async function y() {
|
|
787
|
-
if (!(
|
|
787
|
+
if (!(L.value.length > 0)) {
|
|
788
788
|
U.value = !0;
|
|
789
789
|
try {
|
|
790
790
|
const v = it().listPrompts;
|
|
791
|
-
|
|
791
|
+
L.value = v ? await v() : await xn();
|
|
792
792
|
} catch {
|
|
793
793
|
Z.warning("加载提示词失败");
|
|
794
794
|
} finally {
|
|
@@ -802,7 +802,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
802
802
|
te(
|
|
803
803
|
() => t.prompts,
|
|
804
804
|
(v) => {
|
|
805
|
-
v != null && v.length && (
|
|
805
|
+
v != null && v.length && (L.value = [...v]);
|
|
806
806
|
},
|
|
807
807
|
{ deep: !0 }
|
|
808
808
|
), te(
|
|
@@ -815,7 +815,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
815
815
|
r.value.autoMatch && (r.value.promptId = void 0);
|
|
816
816
|
}
|
|
817
817
|
function C() {
|
|
818
|
-
|
|
818
|
+
E.value = !1;
|
|
819
819
|
}
|
|
820
820
|
function F() {
|
|
821
821
|
l.showPanel();
|
|
@@ -832,19 +832,19 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
832
832
|
Z.warning(X);
|
|
833
833
|
return;
|
|
834
834
|
}
|
|
835
|
-
|
|
836
|
-
const W = g.value ?
|
|
835
|
+
E.value = !0;
|
|
836
|
+
const W = g.value ? D.value : ee.options.onFinish, H = l.enqueue({
|
|
837
837
|
freeText: r.value.freeText.trim(),
|
|
838
838
|
promptId: T,
|
|
839
839
|
autoMatch: v && T == null ? !0 : void 0,
|
|
840
840
|
showPanel: !0,
|
|
841
841
|
onFinish: W
|
|
842
842
|
});
|
|
843
|
-
g.value ? o("submitted", H) : (J = (x = ee.options).onSubmitted) == null || J.call(x, H), w.value = !1,
|
|
843
|
+
g.value ? o("submitted", H) : (J = (x = ee.options).onSubmitted) == null || J.call(x, H), w.value = !1, E.value = !1, Z.success("已加入任务队列,可在任务面板查看进度");
|
|
844
844
|
}
|
|
845
845
|
return (v, T) => {
|
|
846
|
-
const W =
|
|
847
|
-
return d(),
|
|
846
|
+
const W = O("el-switch"), H = O("el-form-item"), x = O("el-option"), J = O("el-select"), X = O("el-input"), ne = O("el-form"), K = O("el-button"), ie = O("el-dialog");
|
|
847
|
+
return d(), M(ie, {
|
|
848
848
|
modelValue: w.value,
|
|
849
849
|
"onUpdate:modelValue": T[4] || (T[4] = (j) => w.value = j),
|
|
850
850
|
title: m.value,
|
|
@@ -856,14 +856,14 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
856
856
|
}, {
|
|
857
857
|
footer: p(() => [
|
|
858
858
|
_("div", bn, [
|
|
859
|
-
e.showTaskListButton ? (d(),
|
|
859
|
+
e.showTaskListButton ? (d(), M(K, {
|
|
860
860
|
key: 0,
|
|
861
861
|
link: "",
|
|
862
862
|
type: "primary",
|
|
863
863
|
onClick: F
|
|
864
864
|
}, {
|
|
865
865
|
default: p(() => [
|
|
866
|
-
q(
|
|
866
|
+
q(V(e.taskListButtonText), 1)
|
|
867
867
|
]),
|
|
868
868
|
_: 1
|
|
869
869
|
})) : P("", !0),
|
|
@@ -878,11 +878,11 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
878
878
|
}),
|
|
879
879
|
f(K, {
|
|
880
880
|
type: "primary",
|
|
881
|
-
loading:
|
|
881
|
+
loading: E.value,
|
|
882
882
|
onClick: Y
|
|
883
883
|
}, {
|
|
884
884
|
default: p(() => [
|
|
885
|
-
q(
|
|
885
|
+
q(V(e.submitText), 1)
|
|
886
886
|
]),
|
|
887
887
|
_: 1
|
|
888
888
|
}, 8, ["loading"])
|
|
@@ -892,7 +892,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
892
892
|
default: p(() => [
|
|
893
893
|
f(ne, { "label-position": "top" }, {
|
|
894
894
|
default: p(() => [
|
|
895
|
-
e.showAutoMatch ? (d(),
|
|
895
|
+
e.showAutoMatch ? (d(), M(H, {
|
|
896
896
|
key: 0,
|
|
897
897
|
label: e.autoMatchLabel
|
|
898
898
|
}, {
|
|
@@ -907,7 +907,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
907
907
|
]),
|
|
908
908
|
_: 1
|
|
909
909
|
}, 8, ["label"])) : P("", !0),
|
|
910
|
-
e.showPromptSelect ? (d(),
|
|
910
|
+
e.showPromptSelect ? (d(), M(H, {
|
|
911
911
|
key: 1,
|
|
912
912
|
label: e.promptLabel,
|
|
913
913
|
required: !r.value.autoMatch
|
|
@@ -923,7 +923,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
923
923
|
loading: U.value
|
|
924
924
|
}, {
|
|
925
925
|
default: p(() => [
|
|
926
|
-
(d(!0), A(ae, null, ge(
|
|
926
|
+
(d(!0), A(ae, null, ge(L.value, (j) => (d(), M(x, {
|
|
927
927
|
key: j.id,
|
|
928
928
|
label: j.name,
|
|
929
929
|
value: j.id
|
|
@@ -999,8 +999,8 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
1001
|
return (m, r) => {
|
|
1002
|
-
const
|
|
1003
|
-
return d(),
|
|
1002
|
+
const L = O("el-icon"), U = O("el-button"), E = O("el-empty"), D = O("el-progress"), N = O("el-badge");
|
|
1003
|
+
return d(), M(Et, { to: "body" }, [
|
|
1004
1004
|
f(tt, { name: "ai-panel-slide" }, {
|
|
1005
1005
|
default: p(() => [
|
|
1006
1006
|
ve(_("div", $n, [
|
|
@@ -1009,7 +1009,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1009
1009
|
_("div", {
|
|
1010
1010
|
class: re(["ai-task-panel__icon", { spinning: h(o).activeCount > 0 }])
|
|
1011
1011
|
}, [
|
|
1012
|
-
f(
|
|
1012
|
+
f(L, null, {
|
|
1013
1013
|
default: p(() => [
|
|
1014
1014
|
f(h(Xe))
|
|
1015
1015
|
]),
|
|
@@ -1017,12 +1017,12 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1017
1017
|
})
|
|
1018
1018
|
], 2),
|
|
1019
1019
|
_("div", Dn, [
|
|
1020
|
-
_("div", Bn,
|
|
1021
|
-
_("div", Vn,
|
|
1020
|
+
_("div", Bn, V(h(o).panelSubtitle), 1),
|
|
1021
|
+
_("div", Vn, V(h(o).panelTitle), 1)
|
|
1022
1022
|
])
|
|
1023
1023
|
]),
|
|
1024
1024
|
_("div", On, [
|
|
1025
|
-
h(o).runningCount > 0 ? (d(),
|
|
1025
|
+
h(o).runningCount > 0 ? (d(), M(U, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
link: "",
|
|
1028
1028
|
type: "primary",
|
|
@@ -1038,7 +1038,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1038
1038
|
onClick: r[1] || (r[1] = (y) => h(o).toggleMinimize())
|
|
1039
1039
|
}, {
|
|
1040
1040
|
default: p(() => [
|
|
1041
|
-
f(
|
|
1041
|
+
f(L, null, {
|
|
1042
1042
|
default: p(() => [
|
|
1043
1043
|
f(h(Ut))
|
|
1044
1044
|
]),
|
|
@@ -1052,7 +1052,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1052
1052
|
onClick: r[2] || (r[2] = (y) => h(o).hidePanel())
|
|
1053
1053
|
}, {
|
|
1054
1054
|
default: p(() => [
|
|
1055
|
-
f(
|
|
1055
|
+
f(L, null, {
|
|
1056
1056
|
default: p(() => [
|
|
1057
1057
|
f(h(at))
|
|
1058
1058
|
]),
|
|
@@ -1070,7 +1070,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1070
1070
|
class: "ai-task-row"
|
|
1071
1071
|
}, [
|
|
1072
1072
|
_("div", Rn, [
|
|
1073
|
-
y.status === "succeeded" ? (d(),
|
|
1073
|
+
y.status === "succeeded" ? (d(), M(L, {
|
|
1074
1074
|
key: 0,
|
|
1075
1075
|
class: "ok"
|
|
1076
1076
|
}, {
|
|
@@ -1078,7 +1078,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1078
1078
|
f(h(Rt))
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 1
|
|
1081
|
-
})) : y.status === "failed" ? (d(),
|
|
1081
|
+
})) : y.status === "failed" ? (d(), M(L, {
|
|
1082
1082
|
key: 1,
|
|
1083
1083
|
class: "err"
|
|
1084
1084
|
}, {
|
|
@@ -1086,13 +1086,13 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1086
1086
|
f(h(Kt))
|
|
1087
1087
|
]),
|
|
1088
1088
|
_: 1
|
|
1089
|
-
})) : y.status === "running" || y.status === "pending" ? (d(),
|
|
1089
|
+
})) : y.status === "running" || y.status === "pending" ? (d(), M(D, {
|
|
1090
1090
|
key: 2,
|
|
1091
1091
|
type: "circle",
|
|
1092
1092
|
percentage: y.progress,
|
|
1093
1093
|
width: 36,
|
|
1094
1094
|
"stroke-width": 3
|
|
1095
|
-
}, null, 8, ["percentage"])) : (d(),
|
|
1095
|
+
}, null, 8, ["percentage"])) : (d(), M(L, {
|
|
1096
1096
|
key: 3,
|
|
1097
1097
|
class: "muted"
|
|
1098
1098
|
}, {
|
|
@@ -1103,15 +1103,15 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1103
1103
|
}))
|
|
1104
1104
|
]),
|
|
1105
1105
|
_("div", Kn, [
|
|
1106
|
-
_("div", Nn,
|
|
1106
|
+
_("div", Nn, V(y.title), 1),
|
|
1107
1107
|
_("div", zn, [
|
|
1108
|
-
_("span", null,
|
|
1109
|
-
y.runId ? (d(), A("span", Yn, " · #" +
|
|
1108
|
+
_("span", null, V(w(y.status)), 1),
|
|
1109
|
+
y.runId ? (d(), A("span", Yn, " · #" + V(y.runId), 1)) : P("", !0)
|
|
1110
1110
|
]),
|
|
1111
|
-
y.summary ? (d(), A("div", Wn,
|
|
1111
|
+
y.summary ? (d(), A("div", Wn, V(y.summary), 1)) : P("", !0)
|
|
1112
1112
|
]),
|
|
1113
1113
|
_("div", jn, [
|
|
1114
|
-
y.status === "running" || y.status === "pending" ? (d(),
|
|
1114
|
+
y.status === "running" || y.status === "pending" ? (d(), M(U, {
|
|
1115
1115
|
key: 0,
|
|
1116
1116
|
link: "",
|
|
1117
1117
|
type: "danger",
|
|
@@ -1123,7 +1123,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1123
1123
|
])]),
|
|
1124
1124
|
_: 1
|
|
1125
1125
|
}, 8, ["onClick"])) : P("", !0),
|
|
1126
|
-
y.status === "succeeded" && y.runId ? (d(),
|
|
1126
|
+
y.status === "succeeded" && y.runId ? (d(), M(U, {
|
|
1127
1127
|
key: 1,
|
|
1128
1128
|
link: "",
|
|
1129
1129
|
type: "primary",
|
|
@@ -1136,7 +1136,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1136
1136
|
])]),
|
|
1137
1137
|
_: 1
|
|
1138
1138
|
}, 8, ["loading", "onClick"])) : P("", !0),
|
|
1139
|
-
y.status !== "running" && y.status !== "pending" ? (d(),
|
|
1139
|
+
y.status !== "running" && y.status !== "pending" ? (d(), M(U, {
|
|
1140
1140
|
key: 2,
|
|
1141
1141
|
link: "",
|
|
1142
1142
|
size: "small",
|
|
@@ -1149,7 +1149,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1149
1149
|
}, 8, ["onClick"])) : P("", !0)
|
|
1150
1150
|
])
|
|
1151
1151
|
]))), 128))
|
|
1152
|
-
])) : (d(), E
|
|
1152
|
+
])) : (d(), M(E, {
|
|
1153
1153
|
key: 0,
|
|
1154
1154
|
description: "暂无 AI 任务",
|
|
1155
1155
|
"image-size": 64
|
|
@@ -1177,7 +1177,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1177
1177
|
class: "ai-task-panel-mini",
|
|
1178
1178
|
onClick: r[4] || (r[4] = (y) => h(o).toggleMinimize())
|
|
1179
1179
|
}, [
|
|
1180
|
-
h(o).activeCount > 0 ? (d(),
|
|
1180
|
+
h(o).activeCount > 0 ? (d(), M(L, {
|
|
1181
1181
|
key: 0,
|
|
1182
1182
|
class: "spinning"
|
|
1183
1183
|
}, {
|
|
@@ -1186,8 +1186,8 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1186
1186
|
]),
|
|
1187
1187
|
_: 1
|
|
1188
1188
|
})) : P("", !0),
|
|
1189
|
-
_("span", null,
|
|
1190
|
-
h(o).runningCount > 0 ? (d(),
|
|
1189
|
+
_("span", null, V(h(o).panelSubtitle), 1),
|
|
1190
|
+
h(o).runningCount > 0 ? (d(), M(N, {
|
|
1191
1191
|
key: 1,
|
|
1192
1192
|
value: h(o).runningCount,
|
|
1193
1193
|
class: "m-l-8"
|
|
@@ -1223,7 +1223,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1223
1223
|
setup(e, { emit: n }) {
|
|
1224
1224
|
const t = e, o = n, l = gt();
|
|
1225
1225
|
$e(ft, l), $e(dt, ut(l));
|
|
1226
|
-
const g =
|
|
1226
|
+
const g = B(() => {
|
|
1227
1227
|
const m = {
|
|
1228
1228
|
title: t.title,
|
|
1229
1229
|
freeText: t.freeText,
|
|
@@ -1252,7 +1252,7 @@ const bn = { class: "ai-use-dialog__footer" }, An = { class: "ai-use-dialog__foo
|
|
|
1252
1252
|
}), Ue(() => {
|
|
1253
1253
|
w == null || w();
|
|
1254
1254
|
}), (m, r) => (d(), A(ae, null, [
|
|
1255
|
-
e.showDialog !== !1 ? (d(),
|
|
1255
|
+
e.showDialog !== !1 ? (d(), M(En, $t(ot({ key: 0 }, g.value)), null, 16)) : P("", !0),
|
|
1256
1256
|
f(Hn, { onUse: S }),
|
|
1257
1257
|
Ce(m.$slots, "default")
|
|
1258
1258
|
], 64));
|
|
@@ -1332,7 +1332,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1332
1332
|
},
|
|
1333
1333
|
emits: ["update:modelValue", "confirm", "cancel"],
|
|
1334
1334
|
setup(e, { emit: n }) {
|
|
1335
|
-
const t = e, o = n, l =
|
|
1335
|
+
const t = e, o = n, l = B(() => t.modelValue !== void 0), g = k(!1);
|
|
1336
1336
|
te(
|
|
1337
1337
|
() => t.modelValue,
|
|
1338
1338
|
(i) => {
|
|
@@ -1352,30 +1352,30 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1352
1352
|
},
|
|
1353
1353
|
{ immediate: !0 }
|
|
1354
1354
|
);
|
|
1355
|
-
const w =
|
|
1355
|
+
const w = B(
|
|
1356
1356
|
() => (l.value ? void 0 : G.options.title) ?? t.title ?? "选择图片"
|
|
1357
|
-
), S =
|
|
1357
|
+
), S = B(
|
|
1358
1358
|
() => (l.value ? void 0 : G.options.multiple) ?? t.multiple
|
|
1359
|
-
), m =
|
|
1359
|
+
), m = B(
|
|
1360
1360
|
() => (l.value ? void 0 : G.options.maxCount) ?? t.maxCount
|
|
1361
|
-
), r =
|
|
1361
|
+
), r = B(
|
|
1362
1362
|
() => (l.value ? void 0 : G.options.showModeSwitch) ?? t.showModeSwitch
|
|
1363
|
-
),
|
|
1363
|
+
), L = B(
|
|
1364
1364
|
() => (l.value ? void 0 : G.options.showCategories) ?? t.showCategories
|
|
1365
|
-
), U =
|
|
1365
|
+
), U = B(() => {
|
|
1366
1366
|
var i, s;
|
|
1367
1367
|
if ((i = t.categories) != null && i.length) return t.categories;
|
|
1368
1368
|
if (!l.value && ((s = G.options.categories) != null && s.length))
|
|
1369
1369
|
return G.options.categories;
|
|
1370
|
-
}),
|
|
1370
|
+
}), E = B(() => L.value ? U.value ?? H.value : []), D = B(() => !!t.confirmOnSelect), N = k("single"), y = [
|
|
1371
1371
|
{ label: "单选", value: "single" },
|
|
1372
1372
|
{ label: "多选", value: "multiple" }
|
|
1373
|
-
], $ =
|
|
1373
|
+
], $ = B(
|
|
1374
1374
|
() => r.value ? N.value === "multiple" : S.value
|
|
1375
|
-
), z = k(""), C = k(""), F = k(1), Y = k(0), v = k(!1), T = k(!1), W = k([]), H = k([]), x = k(/* @__PURE__ */ new Map()), J = k(/* @__PURE__ */ new Map()), X = k(), ne = k(), K =
|
|
1375
|
+
), z = k(""), C = k(""), F = k(1), Y = k(0), v = k(!1), T = k(!1), W = k([]), H = k([]), x = k(/* @__PURE__ */ new Map()), J = k(/* @__PURE__ */ new Map()), X = k(), ne = k(), K = B(() => [...x.value.values()]), ie = B(() => {
|
|
1376
1376
|
var s, b;
|
|
1377
1377
|
const i = K.value.length;
|
|
1378
|
-
return
|
|
1378
|
+
return D.value ? i ? `已选:${((s = K.value[0]) == null ? void 0 : s.name) || "1 张图片"}` : "单击图片即可完成选择" : i ? $.value ? `已选 ${i} / ${m.value} 张` : `已选:${((b = K.value[0]) == null ? void 0 : b.name) || "1 张图片"}` : $.value ? `多选模式:最多 ${m.value} 张` : "单选模式:请选择一张图片";
|
|
1379
1379
|
});
|
|
1380
1380
|
function j(i) {
|
|
1381
1381
|
const s = K.value.findIndex((b) => a(b) === a(i));
|
|
@@ -1457,14 +1457,14 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1457
1457
|
try {
|
|
1458
1458
|
const s = await t.getImages({
|
|
1459
1459
|
keyword: z.value.trim() || void 0,
|
|
1460
|
-
category: C.value || void 0,
|
|
1460
|
+
category: L.value && C.value || void 0,
|
|
1461
1461
|
page: F.value,
|
|
1462
1462
|
pageSize: t.pageSize
|
|
1463
1463
|
});
|
|
1464
1464
|
W.value = s.list, Y.value = s.total;
|
|
1465
1465
|
for (const b of s.list)
|
|
1466
1466
|
yt(b);
|
|
1467
|
-
!U.value && ((i = s.categories) != null && i.length) && (H.value = s.categories);
|
|
1467
|
+
L.value && !U.value && ((i = s.categories) != null && i.length) && (H.value = s.categories);
|
|
1468
1468
|
} catch (s) {
|
|
1469
1469
|
Z.error(s instanceof Error ? s.message : "加载图片失败");
|
|
1470
1470
|
} finally {
|
|
@@ -1492,14 +1492,14 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1492
1492
|
return;
|
|
1493
1493
|
}
|
|
1494
1494
|
if (x.value.has(s)) {
|
|
1495
|
-
if (
|
|
1495
|
+
if (D.value) {
|
|
1496
1496
|
Je(() => Te());
|
|
1497
1497
|
return;
|
|
1498
1498
|
}
|
|
1499
1499
|
x.value = /* @__PURE__ */ new Map();
|
|
1500
1500
|
return;
|
|
1501
1501
|
}
|
|
1502
|
-
x.value = /* @__PURE__ */ new Map([[s, i]]),
|
|
1502
|
+
x.value = /* @__PURE__ */ new Map([[s, i]]), D.value && Je(() => Te());
|
|
1503
1503
|
}
|
|
1504
1504
|
async function wt(i) {
|
|
1505
1505
|
if (!t.upload) {
|
|
@@ -1511,7 +1511,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1511
1511
|
const { resource: s } = await t.upload(i.file);
|
|
1512
1512
|
if (Z.success("上传成功"), $.value)
|
|
1513
1513
|
K.value.length < m.value && (x.value.set(a(s), s), x.value = new Map(x.value));
|
|
1514
|
-
else if (x.value = /* @__PURE__ */ new Map([[a(s), s]]),
|
|
1514
|
+
else if (x.value = /* @__PURE__ */ new Map([[a(s), s]]), D.value) {
|
|
1515
1515
|
Te();
|
|
1516
1516
|
return;
|
|
1517
1517
|
}
|
|
@@ -1523,7 +1523,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
function Tt() {
|
|
1526
|
-
z.value = "", C.value = "", F.value = 1, J.value = /* @__PURE__ */ new Map(), he(), l.value ? xe({}) : xe(G.options), he(), be();
|
|
1526
|
+
z.value = "", C.value = "", F.value = 1, H.value = [], J.value = /* @__PURE__ */ new Map(), he(), l.value ? xe({}) : xe(G.options), he(), be();
|
|
1527
1527
|
}
|
|
1528
1528
|
function It() {
|
|
1529
1529
|
T.value = !1;
|
|
@@ -1552,8 +1552,8 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1552
1552
|
},
|
|
1553
1553
|
{ deep: !0 }
|
|
1554
1554
|
), (i, s) => {
|
|
1555
|
-
const b =
|
|
1556
|
-
return d(),
|
|
1555
|
+
const b = O("el-icon"), Q = O("el-input"), Ct = O("el-segmented"), pe = O("el-button"), St = O("el-upload"), kt = O("el-empty"), xt = O("el-pagination"), bt = O("el-dialog"), At = et("loading");
|
|
1556
|
+
return d(), M(bt, {
|
|
1557
1557
|
modelValue: g.value,
|
|
1558
1558
|
"onUpdate:modelValue": s[4] || (s[4] = (I) => g.value = I),
|
|
1559
1559
|
title: w.value,
|
|
@@ -1565,24 +1565,24 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1565
1565
|
onOpen: Tt
|
|
1566
1566
|
}, {
|
|
1567
1567
|
footer: p(() => [
|
|
1568
|
-
|
|
1569
|
-
_("span", So,
|
|
1568
|
+
D.value ? (d(), A("div", Co, [
|
|
1569
|
+
_("span", So, V(ie.value), 1),
|
|
1570
1570
|
f(pe, {
|
|
1571
1571
|
link: "",
|
|
1572
1572
|
type: "primary",
|
|
1573
1573
|
onClick: qe
|
|
1574
1574
|
}, {
|
|
1575
1575
|
default: p(() => [
|
|
1576
|
-
q(
|
|
1576
|
+
q(V(e.cancelText), 1)
|
|
1577
1577
|
]),
|
|
1578
1578
|
_: 1
|
|
1579
1579
|
})
|
|
1580
1580
|
])) : (d(), A("div", wo, [
|
|
1581
|
-
_("span", To,
|
|
1581
|
+
_("span", To, V(ie.value), 1),
|
|
1582
1582
|
_("div", Io, [
|
|
1583
1583
|
f(pe, { onClick: qe }, {
|
|
1584
1584
|
default: p(() => [
|
|
1585
|
-
q(
|
|
1585
|
+
q(V(e.cancelText), 1)
|
|
1586
1586
|
]),
|
|
1587
1587
|
_: 1
|
|
1588
1588
|
}),
|
|
@@ -1592,7 +1592,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1592
1592
|
onClick: Te
|
|
1593
1593
|
}, {
|
|
1594
1594
|
default: p(() => [
|
|
1595
|
-
q(
|
|
1595
|
+
q(V(e.confirmText), 1)
|
|
1596
1596
|
]),
|
|
1597
1597
|
_: 1
|
|
1598
1598
|
}, 8, ["disabled"])
|
|
@@ -1621,7 +1621,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1621
1621
|
]),
|
|
1622
1622
|
_: 1
|
|
1623
1623
|
}, 8, ["modelValue"]),
|
|
1624
|
-
r.value ? (d(),
|
|
1624
|
+
r.value ? (d(), M(Ct, {
|
|
1625
1625
|
key: 0,
|
|
1626
1626
|
modelValue: N.value,
|
|
1627
1627
|
"onUpdate:modelValue": s[1] || (s[1] = (I) => N.value = I),
|
|
@@ -1629,7 +1629,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1629
1629
|
class: "yc-image-selector__mode",
|
|
1630
1630
|
onChange: de
|
|
1631
1631
|
}, null, 8, ["modelValue"])) : P("", !0),
|
|
1632
|
-
e.showUpload && e.upload ? (d(),
|
|
1632
|
+
e.showUpload && e.upload ? (d(), M(St, {
|
|
1633
1633
|
key: 1,
|
|
1634
1634
|
"show-file-list": !1,
|
|
1635
1635
|
accept: e.accept,
|
|
@@ -1658,22 +1658,22 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1658
1658
|
}, 8, ["accept", "disabled"])) : P("", !0)
|
|
1659
1659
|
]),
|
|
1660
1660
|
_("div", no, [
|
|
1661
|
-
|
|
1661
|
+
L.value ? (d(), A("aside", oo, [
|
|
1662
1662
|
_("div", {
|
|
1663
1663
|
class: re(["yc-image-selector__category", { "is-active": C.value === "" }]),
|
|
1664
1664
|
onClick: s[2] || (s[2] = (I) => je(""))
|
|
1665
|
-
},
|
|
1666
|
-
(d(!0), A(ae, null, ge(
|
|
1665
|
+
}, V(e.categoryAllLabel), 3),
|
|
1666
|
+
(d(!0), A(ae, null, ge(E.value, (I) => (d(), A("div", {
|
|
1667
1667
|
key: I.id,
|
|
1668
1668
|
class: re(["yc-image-selector__category", { "is-active": C.value === I.id }]),
|
|
1669
1669
|
onClick: (Ie) => je(I.id)
|
|
1670
1670
|
}, [
|
|
1671
|
-
_("span", null,
|
|
1672
|
-
I.count != null ? (d(), A("span", lo,
|
|
1671
|
+
_("span", null, V(I.name), 1),
|
|
1672
|
+
I.count != null ? (d(), A("span", lo, V(I.count), 1)) : P("", !0)
|
|
1673
1673
|
], 10, ao))), 128))
|
|
1674
1674
|
])) : P("", !0),
|
|
1675
1675
|
ve((d(), A("div", io, [
|
|
1676
|
-
!v.value && !W.value.length ? (d(),
|
|
1676
|
+
!v.value && !W.value.length ? (d(), M(kt, {
|
|
1677
1677
|
key: 0,
|
|
1678
1678
|
description: e.emptyText
|
|
1679
1679
|
}, null, 8, ["description"])) : (d(), A("div", so, [
|
|
@@ -1701,7 +1701,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1701
1701
|
"is-checkbox": $.value
|
|
1702
1702
|
}])
|
|
1703
1703
|
}, [
|
|
1704
|
-
u(I) && $.value ? (d(), A("span", fo,
|
|
1704
|
+
u(I) && $.value ? (d(), A("span", fo, V(j(I)), 1)) : u(I) ? (d(), M(b, { key: 1 }, {
|
|
1705
1705
|
default: p(() => [
|
|
1706
1706
|
f(h(lt))
|
|
1707
1707
|
]),
|
|
@@ -1712,7 +1712,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1712
1712
|
_("div", {
|
|
1713
1713
|
class: "yc-image-selector__meta",
|
|
1714
1714
|
title: I.name
|
|
1715
|
-
},
|
|
1715
|
+
}, V(I.name || "未命名"), 9, po)
|
|
1716
1716
|
], 10, ro))), 128))
|
|
1717
1717
|
]))
|
|
1718
1718
|
])), [
|
|
@@ -1720,7 +1720,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1720
1720
|
])
|
|
1721
1721
|
]),
|
|
1722
1722
|
$.value && K.value.length ? (d(), A("div", mo, [
|
|
1723
|
-
_("span", go, "已选 " +
|
|
1723
|
+
_("span", go, "已选 " + V(K.value.length) + " 张", 1),
|
|
1724
1724
|
_("div", vo, [
|
|
1725
1725
|
(d(!0), A(ae, null, ge(K.value, (I) => (d(), A("div", {
|
|
1726
1726
|
key: String(I.id),
|
|
@@ -1762,7 +1762,7 @@ const eo = { class: "yc-image-selector" }, to = { class: "yc-image-selector__too
|
|
|
1762
1762
|
}, 8, ["modelValue", "title", "width"]);
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
|
-
}), xo = /* @__PURE__ */ Se(ko, [["__scopeId", "data-v-
|
|
1765
|
+
}), xo = /* @__PURE__ */ Se(ko, [["__scopeId", "data-v-baf50ed2"]]);
|
|
1766
1766
|
function vt() {
|
|
1767
1767
|
const e = k(!1), n = k({});
|
|
1768
1768
|
function t(l = {}) {
|
|
@@ -1811,10 +1811,10 @@ const _t = Ao(bo), Fo = /* @__PURE__ */ ue({
|
|
|
1811
1811
|
setup(e, { expose: n }) {
|
|
1812
1812
|
const t = e, o = vt(), { dialogVisible: l, dialogOptions: g, openImageSelector: w, closeImageSelector: S } = o;
|
|
1813
1813
|
$e(_t, o);
|
|
1814
|
-
function m(
|
|
1815
|
-
return
|
|
1814
|
+
function m(E, D) {
|
|
1815
|
+
return E in g.value ? g.value[E] : D;
|
|
1816
1816
|
}
|
|
1817
|
-
const r =
|
|
1817
|
+
const r = B(() => ({
|
|
1818
1818
|
title: m("title", t.title),
|
|
1819
1819
|
multiple: m("multiple", t.multiple),
|
|
1820
1820
|
maxCount: m("maxCount", t.maxCount),
|
|
@@ -1835,24 +1835,24 @@ const _t = Ao(bo), Fo = /* @__PURE__ */ ue({
|
|
|
1835
1835
|
upload: t.upload,
|
|
1836
1836
|
urlField: t.urlField
|
|
1837
1837
|
}));
|
|
1838
|
-
function
|
|
1839
|
-
var
|
|
1840
|
-
(N = (
|
|
1838
|
+
function L(E) {
|
|
1839
|
+
var D, N;
|
|
1840
|
+
(N = (D = g.value).onConfirm) == null || N.call(D, E), S();
|
|
1841
1841
|
}
|
|
1842
1842
|
function U() {
|
|
1843
|
-
var
|
|
1844
|
-
(
|
|
1843
|
+
var E, D;
|
|
1844
|
+
(D = (E = g.value).onCancel) == null || D.call(E), S();
|
|
1845
1845
|
}
|
|
1846
|
-
return n({ openImageSelector: w, closeImageSelector: S }), (
|
|
1847
|
-
e.showDialog !== !1 ? (d(),
|
|
1846
|
+
return n({ openImageSelector: w, closeImageSelector: S }), (E, D) => (d(), A(ae, null, [
|
|
1847
|
+
e.showDialog !== !1 ? (d(), M(xo, ot({
|
|
1848
1848
|
key: 0,
|
|
1849
1849
|
modelValue: h(l),
|
|
1850
|
-
"onUpdate:modelValue":
|
|
1850
|
+
"onUpdate:modelValue": D[0] || (D[0] = (N) => Dt(l) ? l.value = N : null)
|
|
1851
1851
|
}, r.value, {
|
|
1852
|
-
onConfirm:
|
|
1852
|
+
onConfirm: L,
|
|
1853
1853
|
onCancel: U
|
|
1854
1854
|
}), null, 16, ["modelValue"])) : P("", !0),
|
|
1855
|
-
Ce(
|
|
1855
|
+
Ce(E.$slots, "default")
|
|
1856
1856
|
], 64));
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|