@vtj/designer 0.12.52 → 0.12.54
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/Editor-B0W8dFkq.js +4 -0
- package/dist/{index-CfRwLo41.js → index-D_MwLVuY.js} +139 -139
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/types/components/hooks/useAI.d.ts +1 -1
- package/types/components/shared/viewer.d.ts +5248 -2916
- package/types/components/widgets/ai/detail.d.ts +2 -2
- package/types/components/widgets/ai/image-input.d.ts +3 -3
- package/types/components/widgets/ai/json-input.d.ts +28 -5
- package/types/components/widgets/scripts/group.d.ts +4 -4
- package/types/version.d.ts +2 -2
- package/dist/Editor-ii10HHlW.js +0 -4
@@ -2,7 +2,7 @@ var hl = Object.defineProperty;
|
|
2
2
|
var bl = (r, t, e) => t in r ? hl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
3
3
|
var te = (r, t, e) => bl(r, typeof t != "symbol" ? t + "" : t, e);
|
4
4
|
import { computed as x, unref as n, ref as C, watch as ne, reactive as Rt, toValue as pt, shallowRef as mt, shallowReadonly as yl, onMounted as un, nextTick as ct, getCurrentScope as wl, onScopeDispose as kl, getCurrentInstance as Js, toRaw as Ws, defineComponent as M, createElementBlock as B, openBlock as u, normalizeClass as fe, toDisplayString as oe, createVNode as m, withCtx as b, createElementVNode as V, createBlock as w, createCommentVNode as D, createTextVNode as q, mergeProps as He, h as en, Fragment as Y, renderList as le, defineAsyncComponent as _l, resolveDynamicComponent as Wo, createSlots as Ho, renderSlot as zt, withDirectives as Et, vShow as rn, withModifiers as at, isRef as $n, normalizeStyle as gn, inject as Hs, provide as Sl, withKeys as Tt, normalizeProps as Qo, guardReactiveProps as Go, onUnmounted as Qs, markRaw as Ns, createApp as Ko, shallowReactive as Al, triggerRef as qt, KeepAlive as $o } from "vue";
|
5
|
-
import { ElNotification as Gs, ElMessage as gt, ElMessageBox as Dt, ElButton as
|
5
|
+
import { ElNotification as Gs, ElMessage as gt, ElMessageBox as Dt, ElButton as ce, ElDivider as vt, ElInput as Je, ElRadioGroup as qo, ElRadioButton as En, ElButtonGroup as Cl, ElSwitch as qn, ElImage as Bn, ElUpload as os, ElDropdown as Yo, ElDropdownMenu as Xo, ElDropdownItem as Qn, ElEmpty as Pe, ElAlert as tn, ElTooltip as Zo, ElTag as Ks, ElTree as $s, ElCollapse as as, ElCollapseItem as ls, ElRow as Yn, ElCol as Xn, ElDrawer as qs, ElForm as lt, ElFormItem as fn, ElBreadcrumb as El, ElBreadcrumbItem as xl, ElLoading as Il, ElBadge as Vl, ElAvatar as is, vLoading as Ys, ElSelect as ea, ElOption as ta, ElCheckbox as Xs, ElLink as Rl, ElSegmented as Tl, ElDialog as jl, ElSteps as Dl, ElStep as xs, ElInputNumber as Bl, ElColorPicker as Ol, ElSlider as Ml, ElConfigProvider as Nl, ElContainer as Ao, ElHeader as Pl, ElAside as Co, ElMain as zl, ElFooter as Ul } from "element-plus";
|
6
6
|
import Ll from "element-plus/es/locale/lang/zh-cn";
|
7
7
|
import { XDialogForm as Ut, XField as J, XIcon as ut, createDialog as na, XDialog as Bt, XPanel as rs, XAction as Be, XTabs as cs, XContainer as he, XForm as Zs, XAttachment as Fl, XActionBar as sa, XInputUnit as oa, vResizable as Eo } from "@vtj/ui";
|
8
8
|
import { kebabCase as Jl, jsonp as Xt, groupBy as Rn, storage as bn, delay as Zt, dataURLtoBlob as Wl, fileToBase64 as aa, upperFirstCamelCase as la, toRawType as Is, cloneDeep as On, logger as Wt, isPlainObject as Hl, merge as eo, toArray as to, debounce as ia, uuid as Ql, getClientInfo as Gl, base64 as Kl, arrayToMap as $l, isBoolean as ql } from "@vtj/utils";
|
@@ -19,10 +19,10 @@ import { editor as Ic } from "monaco-editor";
|
|
19
19
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
20
20
|
* @name @vtj/designer
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
22
|
-
* @version 0.12.
|
22
|
+
* @version 0.12.54
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
24
24
|
*/
|
25
|
-
const Dn = "0.12.
|
25
|
+
const Dn = "0.12.54", Vc = {
|
26
26
|
width: 390,
|
27
27
|
height: 844
|
28
28
|
}, Rc = {
|
@@ -1069,16 +1069,16 @@ function gu(r, t, e = {}) {
|
|
1069
1069
|
immediate: s = !0,
|
1070
1070
|
immediateCallback: o = !1
|
1071
1071
|
} = e, l = mt(!1);
|
1072
|
-
let a
|
1072
|
+
let a;
|
1073
1073
|
function i() {
|
1074
|
-
a && (clearTimeout(a), a =
|
1074
|
+
a && (clearTimeout(a), a = void 0);
|
1075
1075
|
}
|
1076
1076
|
function c() {
|
1077
1077
|
l.value = !1, i();
|
1078
1078
|
}
|
1079
1079
|
function v(...g) {
|
1080
1080
|
o && r(), i(), l.value = !0, a = setTimeout(() => {
|
1081
|
-
l.value = !1, a =
|
1081
|
+
l.value = !1, a = void 0, r(...g);
|
1082
1082
|
}, pt(t));
|
1083
1083
|
}
|
1084
1084
|
return s && (l.value = !0, ps && v()), io(c), {
|
@@ -1459,20 +1459,20 @@ function Au() {
|
|
1459
1459
|
postImageTopic: I,
|
1460
1460
|
postJsonTopic: k,
|
1461
1461
|
cancelChat: E
|
1462
|
-
} = sn(), A = "CHAT_HIDE_CODE", T = t.skeleton?.getRegion("Apps").regionRef, O = C(!1), R = C(!1), j = C(!0), W = C(!1), X = _u("LLM", e), G = C([]), Z = C([]), z = C(null),
|
1463
|
-
const
|
1464
|
-
if (
|
1465
|
-
const be =
|
1466
|
-
be[0] && z.value && (z.value.image && (be[0].image = _(z.value.image)), z.value.json && (be[0].json = y(z.value.json)), z.value.type && (be[0].type = z.value.type), z.value.dataType && (be[0].type = z.value.dataType)), Z.value =
|
1462
|
+
} = sn(), A = "CHAT_HIDE_CODE", T = t.skeleton?.getRegion("Apps").regionRef, O = C(!1), R = C(!1), j = C(!0), W = C(!1), X = _u("LLM", e), G = C([]), Z = C([]), z = C(null), ue = C(null), P = C(), L = C(), H = C(!!bn.get(A, { type: "local" })), $ = C(""), we = C(), _e = x(() => Z.value.some((U) => U.status === "Pending")), ze = x(() => we.value ? we.value.mode === 2 && !we.value.invited : !0), { height: xt } = wn(P), ht = async (U) => {
|
1463
|
+
const re = await l(U);
|
1464
|
+
if (re && re.success) {
|
1465
|
+
const be = re.data || [];
|
1466
|
+
be[0] && z.value && (z.value.image && (be[0].image = _(z.value.image)), z.value.json && (be[0].json = y(z.value.json)), z.value.type && (be[0].type = z.value.type), z.value.dataType && (be[0].type = z.value.dataType)), Z.value = re.data;
|
1467
1467
|
}
|
1468
1468
|
}, $e = async (U) => {
|
1469
1469
|
if (O.value = !1, we.value = await d(), !we.value || !U || U.id === z.value?.fileId) return;
|
1470
1470
|
G.value = [], Z.value = [], j.value = !0;
|
1471
|
-
const
|
1472
|
-
|
1471
|
+
const re = await o(U.id).catch(() => null);
|
1472
|
+
re && re.success && (G.value = re.data), G.value.length && (j.value = !1, z.value = G.value[0], await ht(z.value.id)), O.value = !0;
|
1473
1473
|
}, Ze = async (U) => {
|
1474
1474
|
R.value = !0;
|
1475
|
-
const
|
1475
|
+
const re = await Su(U, t), be = await s(re).catch(() => null);
|
1476
1476
|
if (R.value = !1, be && be.success) {
|
1477
1477
|
const { topic: Ce, chat: ke } = be.data;
|
1478
1478
|
ke.type = Ce.type, Z.value = [], G.value.unshift(Ce), j.value = !1, z.value = Ce;
|
@@ -1485,7 +1485,7 @@ function Au() {
|
|
1485
1485
|
return be;
|
1486
1486
|
}, Mt = async (U) => {
|
1487
1487
|
R.value = !0;
|
1488
|
-
const
|
1488
|
+
const re = await Mo(U, t), be = await I(re);
|
1489
1489
|
if (R.value = !1, be && be.success) {
|
1490
1490
|
const { topic: Ce, chat: ke } = be.data;
|
1491
1491
|
Z.value = [], G.value.unshift(Ce), j.value = !1, z.value = Ce, Ce.image && (ke.image = _(Ce.image)), ke.type = Ce.type;
|
@@ -1498,7 +1498,7 @@ function Au() {
|
|
1498
1498
|
return be;
|
1499
1499
|
}, et = async (U) => {
|
1500
1500
|
R.value = !0;
|
1501
|
-
const
|
1501
|
+
const re = await Mo(U, t), be = await k(re);
|
1502
1502
|
if (R.value = !1, be && be.success) {
|
1503
1503
|
const { topic: Ce, chat: ke } = be.data;
|
1504
1504
|
Z.value = [], G.value.unshift(Ce), j.value = !1, z.value = Ce, Ce.image && (ke.image = _(Ce.image)), Ce.json && (ke.json = y(Ce.json)), ke.type = Ce.type, ke.dataType = Ce.dataType;
|
@@ -1512,10 +1512,10 @@ function Au() {
|
|
1512
1512
|
}, ot = async (U) => {
|
1513
1513
|
if (!z.value) return;
|
1514
1514
|
R.value = !0;
|
1515
|
-
const
|
1515
|
+
const re = {
|
1516
1516
|
topicId: z.value.id,
|
1517
1517
|
prompt: U.prompt
|
1518
|
-
}, be = await a(
|
1518
|
+
}, be = await a(re).catch(() => null);
|
1519
1519
|
if (R.value = !1, be && be.success) {
|
1520
1520
|
const Ce = Rt(be.data);
|
1521
1521
|
Z.value.push(Ce), yt(Ce, (ke) => {
|
@@ -1525,18 +1525,18 @@ function Au() {
|
|
1525
1525
|
await $e(null);
|
1526
1526
|
return be;
|
1527
1527
|
}, it = async (U) => {
|
1528
|
-
const
|
1529
|
-
|
1528
|
+
const re = await i(U.id).catch(() => null);
|
1529
|
+
re && re.success && (G.value = G.value.filter((be) => be.id !== U.id), U.id === z.value?.id && (Z.value = [], z.value = null, j.value = !0));
|
1530
1530
|
}, bt = async (U) => {
|
1531
1531
|
if (!z.value) return;
|
1532
|
-
const
|
1532
|
+
const re = z.value?.fileId, be = t.project.value?.toDsl(), { name: Ce = "" } = t.current.value || {}, ke = wt(U.content);
|
1533
1533
|
if (ke)
|
1534
1534
|
return await t.service.parseVue(be, {
|
1535
|
-
id:
|
1535
|
+
id: re,
|
1536
1536
|
name: Ce,
|
1537
1537
|
source: ke
|
1538
1538
|
});
|
1539
|
-
}, yt = async (U,
|
1539
|
+
}, yt = async (U, re) => {
|
1540
1540
|
$.value = "", U.content = "", U.reasoning = "", U.status = "Pending", U.reasoning = "", U.message = "";
|
1541
1541
|
let be = 0;
|
1542
1542
|
const Ce = Date.now();
|
@@ -1573,31 +1573,31 @@ function Au() {
|
|
1573
1573
|
} catch (St) {
|
1574
1574
|
U.dsl = null, U.status = "Error", U.message = St?.message;
|
1575
1575
|
}
|
1576
|
-
await v(U),
|
1576
|
+
await v(U), re && re(U);
|
1577
1577
|
}
|
1578
1578
|
},
|
1579
1579
|
async (ke) => {
|
1580
|
-
(ke.message || ke.name || "未知错误") === "network error" ? U.message = "网络异常,请稍后再试" : U.message = "请求失败,请稍后再试", U.status = "Failed", console.warn("completions error", ke), ke?.message && xe(ke.message, "生成错误"), await v(U),
|
1580
|
+
(ke.message || ke.name || "未知错误") === "network error" ? U.message = "网络异常,请稍后再试" : U.message = "请求失败,请稍后再试", U.status = "Failed", console.warn("completions error", ke), ke?.message && xe(ke.message, "生成错误"), await v(U), re && re(U);
|
1581
1581
|
}
|
1582
1582
|
), Cn;
|
1583
1583
|
}, wt = (U) => {
|
1584
|
-
const
|
1585
|
-
return U.match(
|
1584
|
+
const re = /```vue\n([\s\S]*?)\n```/;
|
1585
|
+
return U.match(re)?.[1] ?? "";
|
1586
1586
|
}, kt = async (U) => {
|
1587
|
-
if (!z.value || !
|
1588
|
-
const
|
1589
|
-
id:
|
1587
|
+
if (!z.value || !ue.value || !U) return;
|
1588
|
+
const re = z.value?.fileId, be = t.project.value?.toDsl(), { name: Ce = "" } = t.current.value || {}, ke = await t.service.parseVue(be, {
|
1589
|
+
id: re,
|
1590
1590
|
name: Ce,
|
1591
1591
|
source: U
|
1592
1592
|
}).catch((nt) => nt);
|
1593
1593
|
if (Array.isArray(ke))
|
1594
1594
|
return Promise.reject(ke);
|
1595
1595
|
try {
|
1596
|
-
|
1596
|
+
ue.value.dsl = typeof ke == "object" ? ke : JSON.parse(ke);
|
1597
1597
|
} catch {
|
1598
|
-
|
1598
|
+
ue.value.dsl = null;
|
1599
1599
|
}
|
1600
|
-
return await v(
|
1600
|
+
return await v(ue.value), ke;
|
1601
1601
|
}, tt = () => {
|
1602
1602
|
L.value && !j.value && L.value.scrollToTop();
|
1603
1603
|
}, Qt = () => {
|
@@ -1613,23 +1613,23 @@ function Au() {
|
|
1613
1613
|
}, hs = (U) => {
|
1614
1614
|
if (!_e.value)
|
1615
1615
|
return yt(U);
|
1616
|
-
}, an = (U) => {
|
1617
|
-
U.dsl ? t.applyAI(U.dsl) : rt("DSL不完整,无法应用到页面"), W.value = !1,
|
1616
|
+
}, an = (U, re) => {
|
1617
|
+
U.dsl ? t.applyAI(U.dsl) : re && rt("DSL不完整,无法应用到页面"), W.value = !1, ue.value = null;
|
1618
1618
|
}, Nn = (U) => {
|
1619
|
-
U.vue = wt(U.content),
|
1619
|
+
U.vue = wt(U.content), ue.value = U, W.value = !0;
|
1620
1620
|
}, bs = (U) => {
|
1621
1621
|
if (!z.value) return;
|
1622
|
-
const
|
1622
|
+
const re = U.message ? `页面存在以下问题:
|
1623
1623
|
${U.message}
|
1624
1624
|
请检查代码并修复` : "请检查代码是否有错误,是否符合规则要求,并改正";
|
1625
|
-
_n(
|
1625
|
+
_n(re);
|
1626
1626
|
}, ys = async (U) => {
|
1627
1627
|
if (!z.value) return;
|
1628
1628
|
Cn && typeof Cn == "function" && Cn(), U.status = "Canceled";
|
1629
|
-
const
|
1630
|
-
|
1631
|
-
}, _n = (U,
|
1632
|
-
$.value = U,
|
1629
|
+
const re = await E(U);
|
1630
|
+
re && re.data && Object.assign(U, re.data);
|
1631
|
+
}, _n = (U, re) => {
|
1632
|
+
$.value = U, re && (j.value = re);
|
1633
1633
|
}, Ft = () => {
|
1634
1634
|
j.value || (H.value = !H.value, bn.save(A, H.value, { type: "local" }));
|
1635
1635
|
};
|
@@ -1641,8 +1641,8 @@ function Au() {
|
|
1641
1641
|
{
|
1642
1642
|
immediate: !0
|
1643
1643
|
}
|
1644
|
-
), ne(t.current, (U,
|
1645
|
-
U?.id !==
|
1644
|
+
), ne(t.current, (U, re) => {
|
1645
|
+
U?.id !== re?.id && (z.value = null);
|
1646
1646
|
}), ne(xt, () => {
|
1647
1647
|
L.value && _e.value && L.value.autoScrollToBottom();
|
1648
1648
|
}), {
|
@@ -1667,7 +1667,7 @@ function Au() {
|
|
1667
1667
|
onView: Nn,
|
1668
1668
|
listRef: P,
|
1669
1669
|
panelRef: L,
|
1670
|
-
currentChat:
|
1670
|
+
currentChat: ue,
|
1671
1671
|
showDetail: W,
|
1672
1672
|
scrollToTop: tt,
|
1673
1673
|
scrollToBottom: Qt,
|
@@ -1733,7 +1733,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1733
1733
|
e("click", s.project.value);
|
1734
1734
|
};
|
1735
1735
|
return (i, c) => (u(), B("div", Tu, [
|
1736
|
-
m(n(
|
1736
|
+
m(n(ce), {
|
1737
1737
|
size: "small",
|
1738
1738
|
round: "",
|
1739
1739
|
onClick: a
|
@@ -1866,7 +1866,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1866
1866
|
D("", !0),
|
1867
1867
|
m(n(Cl), null, {
|
1868
1868
|
default: b(() => [
|
1869
|
-
m(n(
|
1869
|
+
m(n(ce), {
|
1870
1870
|
type: "default",
|
1871
1871
|
size: "small",
|
1872
1872
|
onClick: n(o),
|
@@ -1877,7 +1877,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1877
1877
|
]),
|
1878
1878
|
_: 1
|
1879
1879
|
}, 8, ["onClick", "disabled"]),
|
1880
|
-
m(n(
|
1880
|
+
m(n(ce), {
|
1881
1881
|
type: "default",
|
1882
1882
|
size: "small",
|
1883
1883
|
onClick: n(s),
|
@@ -1993,7 +1993,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
1993
1993
|
"show-file-list": !1
|
1994
1994
|
}, {
|
1995
1995
|
trigger: b(() => [
|
1996
|
-
m(n(
|
1996
|
+
m(n(ce), {
|
1997
1997
|
round: "",
|
1998
1998
|
icon: n(Di),
|
1999
1999
|
type: "warning",
|
@@ -2173,7 +2173,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2173
2173
|
return (E, A) => (u(), B("div", Hu, [
|
2174
2174
|
D("", !0),
|
2175
2175
|
D("", !0),
|
2176
|
-
m(n(
|
2176
|
+
m(n(ce), {
|
2177
2177
|
type: I.value ? "warning" : "default",
|
2178
2178
|
size: "small",
|
2179
2179
|
title: "锁定",
|
@@ -2184,7 +2184,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2184
2184
|
]),
|
2185
2185
|
_: 1
|
2186
2186
|
}, 8, ["type"]),
|
2187
|
-
m(n(
|
2187
|
+
m(n(ce), {
|
2188
2188
|
onClick: d,
|
2189
2189
|
type: a.value ? "warning" : "default",
|
2190
2190
|
size: "small",
|
@@ -2195,7 +2195,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2195
2195
|
]),
|
2196
2196
|
_: 1
|
2197
2197
|
}, 8, ["type"]),
|
2198
|
-
m(n(
|
2198
|
+
m(n(ce), {
|
2199
2199
|
onClick: v,
|
2200
2200
|
type: "default",
|
2201
2201
|
size: "small",
|
@@ -2206,7 +2206,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2206
2206
|
]),
|
2207
2207
|
_: 1
|
2208
2208
|
}),
|
2209
|
-
m(n(
|
2209
|
+
m(n(ce), {
|
2210
2210
|
type: "default",
|
2211
2211
|
size: "small",
|
2212
2212
|
title: "页面设置",
|
@@ -2217,7 +2217,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2217
2217
|
]),
|
2218
2218
|
_: 1
|
2219
2219
|
}),
|
2220
|
-
n(e).remote ? (u(), w(n(
|
2220
|
+
n(e).remote ? (u(), w(n(ce), {
|
2221
2221
|
key: 2,
|
2222
2222
|
type: "default",
|
2223
2223
|
size: "small",
|
@@ -2230,7 +2230,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2230
2230
|
_: 1
|
2231
2231
|
})) : D("", !0),
|
2232
2232
|
m(n(vt), { direction: "vertical" }),
|
2233
|
-
t.coder ? (u(), w(n(
|
2233
|
+
t.coder ? (u(), w(n(ce), {
|
2234
2234
|
key: 3,
|
2235
2235
|
onClick: _,
|
2236
2236
|
icon: n(ts),
|
@@ -2243,7 +2243,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2243
2243
|
_: 1,
|
2244
2244
|
__: [1]
|
2245
2245
|
}, 8, ["icon"])) : D("", !0),
|
2246
|
-
t.onlyPublishTemplate ? (u(), w(n(
|
2246
|
+
t.onlyPublishTemplate ? (u(), w(n(ce), {
|
2247
2247
|
key: 4,
|
2248
2248
|
onClick: f,
|
2249
2249
|
icon: n(es),
|
@@ -2365,7 +2365,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2365
2365
|
onSubmit: g
|
2366
2366
|
}, {
|
2367
2367
|
extra: b(() => [
|
2368
|
-
m(n(
|
2368
|
+
m(n(ce), {
|
2369
2369
|
size: "default",
|
2370
2370
|
type: "warning",
|
2371
2371
|
onClick: d
|
@@ -2402,7 +2402,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
2402
2402
|
]));
|
2403
2403
|
}
|
2404
2404
|
}), Oe = _l({
|
2405
|
-
loader: () => import("./Editor-
|
2405
|
+
loader: () => import("./Editor-B0W8dFkq.js"),
|
2406
2406
|
loadingComponent: M({
|
2407
2407
|
render() {
|
2408
2408
|
return en("div", "正在拼命加载...");
|
@@ -3482,7 +3482,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3482
3482
|
default: b(() => [
|
3483
3483
|
m(n(he), null, {
|
3484
3484
|
default: b(() => [
|
3485
|
-
I.unbindEnabled ? (u(), w(n(
|
3485
|
+
I.unbindEnabled ? (u(), w(n(ce), {
|
3486
3486
|
key: 0,
|
3487
3487
|
type: "warning",
|
3488
3488
|
size: "default",
|
@@ -3499,7 +3499,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3499
3499
|
}),
|
3500
3500
|
m(n(he), null, {
|
3501
3501
|
default: b(() => [
|
3502
|
-
m(n(
|
3502
|
+
m(n(ce), {
|
3503
3503
|
type: "default",
|
3504
3504
|
size: "default",
|
3505
3505
|
onClick: f
|
@@ -3510,7 +3510,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3510
3510
|
_: 1,
|
3511
3511
|
__: [3]
|
3512
3512
|
}),
|
3513
|
-
m(n(
|
3513
|
+
m(n(ce), {
|
3514
3514
|
type: "primary",
|
3515
3515
|
size: "default",
|
3516
3516
|
onClick: h
|
@@ -3816,7 +3816,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3816
3816
|
onSubmit: h
|
3817
3817
|
}, {
|
3818
3818
|
extra: b(() => [
|
3819
|
-
m(n(
|
3819
|
+
m(n(ce), {
|
3820
3820
|
type: "warning",
|
3821
3821
|
size: "default",
|
3822
3822
|
onClick: _
|
@@ -3899,17 +3899,17 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3899
3899
|
if (p.value?.fromType === "Plugin")
|
3900
3900
|
return ".js,.css,.json";
|
3901
3901
|
}), E = x(() => p.value?.fromType === "Plugin"), A = async (z) => {
|
3902
|
-
const
|
3902
|
+
const ue = z, P = s.project.value;
|
3903
3903
|
if (!P) return !1;
|
3904
3904
|
if (z.id)
|
3905
|
-
if (!P.existBlockName(
|
3906
|
-
P.updateBlock(
|
3905
|
+
if (!P.existBlockName(ue.name, [ue.id]))
|
3906
|
+
P.updateBlock(ue);
|
3907
3907
|
else
|
3908
|
-
return xe(`名称【${
|
3909
|
-
else if (!P.existBlockName(
|
3910
|
-
P.createBlock(
|
3908
|
+
return xe(`名称【${ue.name}】已经存在,请更换名称`), !1;
|
3909
|
+
else if (!P.existBlockName(ue.name))
|
3910
|
+
P.createBlock(ue);
|
3911
3911
|
else
|
3912
|
-
return xe(`名称【${
|
3912
|
+
return xe(`名称【${ue.name}】已经存在,请更换名称`), !1;
|
3913
3913
|
return !0;
|
3914
3914
|
}, T = () => {
|
3915
3915
|
p.value = I(), h.value = !0;
|
@@ -3924,17 +3924,17 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3924
3924
|
}, X = async (z) => {
|
3925
3925
|
if (!z.fromType || z.fromType === "Schema") {
|
3926
3926
|
s.project.value?.active(z);
|
3927
|
-
const
|
3928
|
-
|
3927
|
+
const ue = s.skeleton?.getRegion("Workspace");
|
3928
|
+
ue && ue.regionRef.openTab("Designer");
|
3929
3929
|
}
|
3930
3930
|
}, G = async (z) => {
|
3931
|
-
const
|
3931
|
+
const ue = Yl(z), P = await s.assets.getBlockMaterial(ue, z.name), L = s.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
3932
3932
|
L && P && L.setDragging(P);
|
3933
3933
|
}, Z = () => {
|
3934
3934
|
const z = s.skeleton?.getWidget("Designer")?.widgetRef?.designer;
|
3935
3935
|
z && z.setDragging(null);
|
3936
3936
|
};
|
3937
|
-
return (z,
|
3937
|
+
return (z, ue) => (u(), w(n(ge), {
|
3938
3938
|
class: "v-blocks-widget",
|
3939
3939
|
title: "区块管理",
|
3940
3940
|
subtitle: y.value,
|
@@ -3946,7 +3946,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
3946
3946
|
m(n(Je), {
|
3947
3947
|
size: "small",
|
3948
3948
|
modelValue: o.value,
|
3949
|
-
"onUpdate:modelValue":
|
3949
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (P) => o.value = P),
|
3950
3950
|
"prefix-icon": n(dn),
|
3951
3951
|
placeholder: "搜索区块",
|
3952
3952
|
clearable: ""
|
@@ -4004,7 +4004,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4004
4004
|
})),
|
4005
4005
|
m(n(Ut), {
|
4006
4006
|
modelValue: h.value,
|
4007
|
-
"onUpdate:modelValue":
|
4007
|
+
"onUpdate:modelValue": ue[1] || (ue[1] = (P) => h.value = P),
|
4008
4008
|
title: _.value,
|
4009
4009
|
model: p.value,
|
4010
4010
|
width: "600px",
|
@@ -4285,12 +4285,12 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4285
4285
|
}), e.value?.setDragging(null);
|
4286
4286
|
return;
|
4287
4287
|
}
|
4288
|
-
const
|
4288
|
+
const ue = await e.value?.getDropSlot(
|
4289
4289
|
j === "inner" ? G : G.parent
|
4290
4290
|
);
|
4291
|
-
if (
|
4291
|
+
if (ue !== null) {
|
4292
4292
|
const P = W.model;
|
4293
|
-
P.slot =
|
4293
|
+
P.slot = ue, o.value?.move(P, G, Z);
|
4294
4294
|
} else
|
4295
4295
|
g();
|
4296
4296
|
e.value?.setDropping(null), e.value?.setDragging(null), t.simulator.refresh();
|
@@ -4721,7 +4721,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4721
4721
|
m(n(he), { justify: "space-between" }, {
|
4722
4722
|
default: b(() => [
|
4723
4723
|
V("div", null, [
|
4724
|
-
s.value === "mock" ? (u(), w(n(
|
4724
|
+
s.value === "mock" ? (u(), w(n(ce), {
|
4725
4725
|
key: 0,
|
4726
4726
|
disabled: !a.value.mock,
|
4727
4727
|
type: "warning",
|
@@ -4735,14 +4735,14 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
4735
4735
|
}, 8, ["disabled"])) : D("", !0)
|
4736
4736
|
]),
|
4737
4737
|
V("div", null, [
|
4738
|
-
m(n(
|
4738
|
+
m(n(ce), { onClick: d }, {
|
4739
4739
|
default: b(() => y[3] || (y[3] = [
|
4740
4740
|
q("取消")
|
4741
4741
|
])),
|
4742
4742
|
_: 1,
|
4743
4743
|
__: [3]
|
4744
4744
|
}),
|
4745
|
-
m(n(
|
4745
|
+
m(n(ce), {
|
4746
4746
|
type: "primary",
|
4747
4747
|
onClick: p
|
4748
4748
|
}, {
|
@@ -5156,8 +5156,8 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
5156
5156
|
if (console.log("open", Z), typeof Z == "object" && Z.type === "Schema") {
|
5157
5157
|
const z = i.project.value?.getBlock(Z.id);
|
5158
5158
|
if (z) {
|
5159
|
-
const
|
5160
|
-
|
5159
|
+
const ue = i.skeleton?.getRegion("Apps").regionRef;
|
5160
|
+
ue && ue.setActive("Blocks"), i.project.value?.active(z);
|
5161
5161
|
}
|
5162
5162
|
}
|
5163
5163
|
break;
|
@@ -6613,7 +6613,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6613
6613
|
title: z.name,
|
6614
6614
|
border: "",
|
6615
6615
|
actions: ["edit", "remove"],
|
6616
|
-
onClick: (
|
6616
|
+
onClick: (ue) => I(z),
|
6617
6617
|
onAction: y
|
6618
6618
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6619
6619
|
s.value.length ? D("", !0) : (u(), w(n(Pe), {
|
@@ -6645,7 +6645,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6645
6645
|
title: z.name,
|
6646
6646
|
border: "",
|
6647
6647
|
actions: ["remove"],
|
6648
|
-
onClick: (
|
6648
|
+
onClick: (ue) => E(z),
|
6649
6649
|
onAction: A
|
6650
6650
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6651
6651
|
o.value.length ? D("", !0) : (u(), w(n(Pe), {
|
@@ -6677,7 +6677,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6677
6677
|
title: z.name,
|
6678
6678
|
border: "",
|
6679
6679
|
actions: ["remove"],
|
6680
|
-
onClick: (
|
6680
|
+
onClick: (ue) => O(z),
|
6681
6681
|
onAction: R
|
6682
6682
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6683
6683
|
l.value.length ? D("", !0) : (u(), w(n(Pe), {
|
@@ -6710,7 +6710,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6710
6710
|
title: z.name,
|
6711
6711
|
border: "",
|
6712
6712
|
actions: ["remove"],
|
6713
|
-
onClick: (
|
6713
|
+
onClick: (ue) => W(z),
|
6714
6714
|
onAction: X
|
6715
6715
|
}, null, 8, ["model-value", "title", "onClick"]))), 256)),
|
6716
6716
|
a.value.length ? D("", !0) : (u(), w(n(Pe), {
|
@@ -6867,7 +6867,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
6867
6867
|
"submit-method": k
|
6868
6868
|
}, {
|
6869
6869
|
extra: b(() => [
|
6870
|
-
m(n(
|
6870
|
+
m(n(ce), {
|
6871
6871
|
loading: v.value,
|
6872
6872
|
type: "warning",
|
6873
6873
|
onClick: E
|
@@ -7413,7 +7413,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7413
7413
|
}),
|
7414
7414
|
m(n(he), null, {
|
7415
7415
|
default: b(() => [
|
7416
|
-
m(n(
|
7416
|
+
m(n(ce), {
|
7417
7417
|
size: "small",
|
7418
7418
|
type: "primary",
|
7419
7419
|
round: "",
|
@@ -7426,7 +7426,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
7426
7426
|
_: 1,
|
7427
7427
|
__: [2]
|
7428
7428
|
}),
|
7429
|
-
m(n(
|
7429
|
+
m(n(ce), {
|
7430
7430
|
size: "small",
|
7431
7431
|
round: "",
|
7432
7432
|
style: { width: "100%" },
|
@@ -8949,7 +8949,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8949
8949
|
]),
|
8950
8950
|
V("div", gm, oe(i.value), 1),
|
8951
8951
|
V("div", fm, [
|
8952
|
-
c.value ? (u(), w(n(
|
8952
|
+
c.value ? (u(), w(n(ce), {
|
8953
8953
|
key: 0,
|
8954
8954
|
size: "small",
|
8955
8955
|
onClick: v
|
@@ -8959,7 +8959,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
8959
8959
|
])),
|
8960
8960
|
_: 1,
|
8961
8961
|
__: [2]
|
8962
|
-
})) : (u(), w(n(
|
8962
|
+
})) : (u(), w(n(ce), {
|
8963
8963
|
key: 1,
|
8964
8964
|
size: "small",
|
8965
8965
|
onClick: t.toRemoteAuth
|
@@ -9079,7 +9079,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9079
9079
|
onClear: g
|
9080
9080
|
}, {
|
9081
9081
|
extra: b(() => [
|
9082
|
-
m(n(
|
9082
|
+
m(n(ce), {
|
9083
9083
|
type: "warning",
|
9084
9084
|
onClick: g,
|
9085
9085
|
size: "default"
|
@@ -9154,7 +9154,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9154
9154
|
onClear: v
|
9155
9155
|
}, {
|
9156
9156
|
extra: b(() => [
|
9157
|
-
m(n(
|
9157
|
+
m(n(ce), {
|
9158
9158
|
type: "warning",
|
9159
9159
|
onClick: v,
|
9160
9160
|
size: "default"
|
@@ -9222,7 +9222,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9222
9222
|
onClear: v
|
9223
9223
|
}, {
|
9224
9224
|
extra: b(() => [
|
9225
|
-
m(n(
|
9225
|
+
m(n(ce), {
|
9226
9226
|
type: "warning",
|
9227
9227
|
onClick: v,
|
9228
9228
|
size: "default"
|
@@ -9518,7 +9518,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9518
9518
|
V("span", Em, oe(X.label), 1)
|
9519
9519
|
]),
|
9520
9520
|
V("div", xm, [
|
9521
|
-
m(n(
|
9521
|
+
m(n(ce), {
|
9522
9522
|
class: "v-templates-widgets__download",
|
9523
9523
|
icon: n(ts),
|
9524
9524
|
type: "primary",
|
@@ -9597,7 +9597,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9597
9597
|
s("remove", i.modelValue);
|
9598
9598
|
};
|
9599
9599
|
return (i, c) => (u(), B("div", jm, [
|
9600
|
-
m(n(
|
9600
|
+
m(n(ce), {
|
9601
9601
|
class: "new-btn",
|
9602
9602
|
round: "",
|
9603
9603
|
plain: "",
|
@@ -9725,7 +9725,7 @@ const Cu = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
9725
9725
|
modelValue: n(l).state.autoApply,
|
9726
9726
|
"onUpdate:modelValue": d[2] || (d[2] = (p) => n(l).state.autoApply = p)
|
9727
9727
|
}, null, 8, ["disabled", "modelValue"]),
|
9728
|
-
m(n(
|
9728
|
+
m(n(ce), {
|
9729
9729
|
icon: n(ns),
|
9730
9730
|
type: "primary",
|
9731
9731
|
disabled: s.disabled,
|
@@ -10017,7 +10017,7 @@ function Um() {
|
|
10017
10017
|
Q.index !== 0 && me.ignoreMatch();
|
10018
10018
|
}
|
10019
10019
|
}, S);
|
10020
|
-
},
|
10020
|
+
}, ue = {
|
10021
10021
|
begin: "\\\\[\\s\\S]",
|
10022
10022
|
relevance: 0
|
10023
10023
|
}, P = {
|
@@ -10025,13 +10025,13 @@ function Um() {
|
|
10025
10025
|
begin: "'",
|
10026
10026
|
end: "'",
|
10027
10027
|
illegal: "\\n",
|
10028
|
-
contains: [
|
10028
|
+
contains: [ue]
|
10029
10029
|
}, L = {
|
10030
10030
|
scope: "string",
|
10031
10031
|
begin: '"',
|
10032
10032
|
end: '"',
|
10033
10033
|
illegal: "\\n",
|
10034
|
-
contains: [
|
10034
|
+
contains: [ue]
|
10035
10035
|
}, H = {
|
10036
10036
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
10037
10037
|
}, $ = function(S, N, Q = {}) {
|
@@ -10117,12 +10117,12 @@ function Um() {
|
|
10117
10117
|
begin: /\/(?=[^/\n]*\/)/,
|
10118
10118
|
end: /\/[gimuy]*/,
|
10119
10119
|
contains: [
|
10120
|
-
|
10120
|
+
ue,
|
10121
10121
|
{
|
10122
10122
|
begin: /\[/,
|
10123
10123
|
end: /\]/,
|
10124
10124
|
relevance: 0,
|
10125
|
-
contains: [
|
10125
|
+
contains: [ue]
|
10126
10126
|
}
|
10127
10127
|
]
|
10128
10128
|
}, Mt = {
|
@@ -10141,7 +10141,7 @@ function Um() {
|
|
10141
10141
|
var bt = /* @__PURE__ */ Object.freeze({
|
10142
10142
|
__proto__: null,
|
10143
10143
|
APOS_STRING_MODE: P,
|
10144
|
-
BACKSLASH_ESCAPE:
|
10144
|
+
BACKSLASH_ESCAPE: ue,
|
10145
10145
|
BINARY_NUMBER_MODE: $e,
|
10146
10146
|
BINARY_NUMBER_RE: G,
|
10147
10147
|
COMMENT: $,
|
@@ -10253,7 +10253,7 @@ function Um() {
|
|
10253
10253
|
console.error(S);
|
10254
10254
|
}, U = (S, ...N) => {
|
10255
10255
|
console.log(`WARN: ${S}`, ...N);
|
10256
|
-
},
|
10256
|
+
}, re = (S, N) => {
|
10257
10257
|
_n[`${S}/${N}`] || (console.log(`Deprecated as of ${S}. ${N}`), _n[`${S}/${N}`] = !0);
|
10258
10258
|
}, be = new Error();
|
10259
10259
|
function Ce(S, N, { key: Q }) {
|
@@ -10440,7 +10440,7 @@ function Um() {
|
|
10440
10440
|
}
|
10441
10441
|
function We(F, ie, Se) {
|
10442
10442
|
let Ie = "", Qe = "";
|
10443
|
-
typeof ie == "object" ? (Ie = F, Se = ie.ignoreIllegals, Qe = ie.language) : (
|
10443
|
+
typeof ie == "object" ? (Ie = F, Se = ie.ignoreIllegals, Qe = ie.language) : (re("10.7.0", "highlight(lang, code, ...args) has been deprecated."), re("10.7.0", `Please use highlight(code, options) instead.
|
10444
10444
|
https://github.com/highlightjs/highlight.js/issues/2277`), Qe = F, Ie = ie), Se === void 0 && (Se = !0);
|
10445
10445
|
const It = {
|
10446
10446
|
code: Ie,
|
@@ -10709,10 +10709,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Qe = F, Ie = ie), Se
|
|
10709
10709
|
ee = mo(ee, F);
|
10710
10710
|
}
|
10711
10711
|
const tl = () => {
|
10712
|
-
zn(),
|
10712
|
+
zn(), re("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
10713
10713
|
};
|
10714
10714
|
function nl() {
|
10715
|
-
zn(),
|
10715
|
+
zn(), re("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
10716
10716
|
}
|
10717
10717
|
let fo = !1;
|
10718
10718
|
function zn() {
|
@@ -10783,7 +10783,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Qe = F, Ie = ie), Se
|
|
10783
10783
|
});
|
10784
10784
|
}
|
10785
10785
|
function cl(F) {
|
10786
|
-
return
|
10786
|
+
return re("10.7.0", "highlightBlock will be removed entirely in v12.0"), re("10.7.0", "Please use highlightElement now."), Ss(F);
|
10787
10787
|
}
|
10788
10788
|
Object.assign(S, {
|
10789
10789
|
highlight: We,
|
@@ -11493,7 +11493,7 @@ function Gm(r) {
|
|
11493
11493
|
),
|
11494
11494
|
className: "title.function",
|
11495
11495
|
relevance: 0
|
11496
|
-
},
|
11496
|
+
}, ue = {
|
11497
11497
|
begin: t.concat(/\./, t.lookahead(
|
11498
11498
|
t.concat(s, /(?![0-9A-Za-z$_(])/)
|
11499
11499
|
)),
|
@@ -11670,7 +11670,7 @@ function Gm(r) {
|
|
11670
11670
|
match: /\.\.\./,
|
11671
11671
|
relevance: 0
|
11672
11672
|
},
|
11673
|
-
|
11673
|
+
ue,
|
11674
11674
|
// hack: prevents detection of keywords in some circumstances
|
11675
11675
|
// .keyword()
|
11676
11676
|
// $keyword = x
|
@@ -12768,7 +12768,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12768
12768
|
], 2),
|
12769
12769
|
e.data.message ? (u(), B("div", rv, [
|
12770
12770
|
V("div", null, oe(e.data.message), 1),
|
12771
|
-
c.value ? (u(), w(n(
|
12771
|
+
c.value ? (u(), w(n(ce), {
|
12772
12772
|
key: 0,
|
12773
12773
|
size: "small",
|
12774
12774
|
round: "",
|
@@ -12781,7 +12781,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12781
12781
|
__: [1]
|
12782
12782
|
})) : D("", !0)
|
12783
12783
|
])) : D("", !0),
|
12784
|
-
i.value ? (u(), w(n(
|
12784
|
+
i.value ? (u(), w(n(ce), {
|
12785
12785
|
key: 2,
|
12786
12786
|
class: "v-ai-widget-bubble__loading",
|
12787
12787
|
loading: "",
|
@@ -12840,7 +12840,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12840
12840
|
V("div", vv, [
|
12841
12841
|
V("div", null, [
|
12842
12842
|
s[1] || (s[1] = q(" 使用AI助手需登录 VTJ.PRO 客户端,您还没登录或登录已失效,请重新登录! ")),
|
12843
|
-
m(n(
|
12843
|
+
m(n(ce), {
|
12844
12844
|
size: "small",
|
12845
12845
|
type: "primary",
|
12846
12846
|
round: "",
|
@@ -12910,7 +12910,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12910
12910
|
}, null, 8, ["icon"]),
|
12911
12911
|
p[2] || (p[2] = V("div", { class: "el-upload__text" }, "拖放设计稿、网页截图", -1)),
|
12912
12912
|
p[3] || (p[3] = V("div", { class: "or" }, "或", -1)),
|
12913
|
-
m(n(
|
12913
|
+
m(n(ce), { size: "default" }, {
|
12914
12914
|
default: b(() => p[1] || (p[1] = [
|
12915
12915
|
q("选择图片")
|
12916
12916
|
])),
|
@@ -12926,7 +12926,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12926
12926
|
src: l.value,
|
12927
12927
|
fit: "cover"
|
12928
12928
|
}, null, 8, ["src"]),
|
12929
|
-
m(n(
|
12929
|
+
m(n(ce), {
|
12930
12930
|
class: "v-ai-widget-image-input__remove",
|
12931
12931
|
type: "danger",
|
12932
12932
|
icon: n(Va),
|
@@ -12943,7 +12943,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
12943
12943
|
modelValue: n(o).state.autoApply,
|
12944
12944
|
"onUpdate:modelValue": p[0] || (p[0] = (f) => n(o).state.autoApply = f)
|
12945
12945
|
}, null, 8, ["disabled", "modelValue"]),
|
12946
|
-
m(n(
|
12946
|
+
m(n(ce), {
|
12947
12947
|
icon: n(ns),
|
12948
12948
|
type: "primary",
|
12949
12949
|
round: "",
|
@@ -13042,7 +13042,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13042
13042
|
"onUpdate:modelValue": T[0] || (T[0] = (O) => v.value = O)
|
13043
13043
|
}, null, 8, ["modelValue"]),
|
13044
13044
|
V("div", Sv, [
|
13045
|
-
m(n(
|
13045
|
+
m(n(ce), {
|
13046
13046
|
type: "default",
|
13047
13047
|
size: "small",
|
13048
13048
|
onClick: T[1] || (T[1] = () => h(!1))
|
@@ -13053,7 +13053,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13053
13053
|
_: 1,
|
13054
13054
|
__: [5]
|
13055
13055
|
}),
|
13056
|
-
m(n(
|
13056
|
+
m(n(ce), {
|
13057
13057
|
icon: n(ns),
|
13058
13058
|
type: "primary",
|
13059
13059
|
size: "default",
|
@@ -13087,14 +13087,14 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13087
13087
|
}, null, 8, ["icon"]),
|
13088
13088
|
T[10] || (T[10] = V("div", { class: "el-upload__text" }, " 拖放 Sketch / Figma / MasterGo 元数据文件 ", -1)),
|
13089
13089
|
T[11] || (T[11] = V("div", { class: "or" }, "或", -1)),
|
13090
|
-
m(n(
|
13090
|
+
m(n(ce), { size: "default" }, {
|
13091
13091
|
default: b(() => T[7] || (T[7] = [
|
13092
13092
|
q("选择文件")
|
13093
13093
|
])),
|
13094
13094
|
_: 1,
|
13095
13095
|
__: [7]
|
13096
13096
|
}),
|
13097
|
-
m(n(
|
13097
|
+
m(n(ce), {
|
13098
13098
|
size: "default",
|
13099
13099
|
onClick: T[2] || (T[2] = at(() => h(!0), ["stop"]))
|
13100
13100
|
}, {
|
@@ -13128,7 +13128,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13128
13128
|
fit: "cover"
|
13129
13129
|
}, null, 8, ["src"]),
|
13130
13130
|
V("div", Cv, oe(l.value), 1),
|
13131
|
-
m(n(
|
13131
|
+
m(n(ce), {
|
13132
13132
|
class: "v-ai-widget-image-input__remove",
|
13133
13133
|
type: "danger",
|
13134
13134
|
icon: n(Va),
|
@@ -13145,7 +13145,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13145
13145
|
modelValue: n(o).state.autoApply,
|
13146
13146
|
"onUpdate:modelValue": T[4] || (T[4] = (O) => n(o).state.autoApply = O)
|
13147
13147
|
}, null, 8, ["disabled", "modelValue"]),
|
13148
|
-
m(n(
|
13148
|
+
m(n(ce), {
|
13149
13149
|
icon: n(ns),
|
13150
13150
|
type: "primary",
|
13151
13151
|
round: "",
|
@@ -13343,7 +13343,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13343
13343
|
emits: ["apply"],
|
13344
13344
|
setup(r, { emit: t }) {
|
13345
13345
|
const e = r, s = t, o = x(() => JSON.stringify(e.chat.dsl || {}, null, 2)), l = C(), a = C(), i = () => {
|
13346
|
-
s("apply", e.chat);
|
13346
|
+
s("apply", e.chat, !0);
|
13347
13347
|
}, c = async () => {
|
13348
13348
|
const g = l.value.getEditor().getValue();
|
13349
13349
|
if (!g) return;
|
@@ -13360,7 +13360,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13360
13360
|
V("div", { class: "tips" }, "您可以更改源码后重新生成DSL,再应用到页面。", -1)
|
13361
13361
|
])),
|
13362
13362
|
handle: b(() => [
|
13363
|
-
m(n(
|
13363
|
+
m(n(ce), { onClick: c }, {
|
13364
13364
|
default: b(() => g[1] || (g[1] = [
|
13365
13365
|
q("重新生成DSL")
|
13366
13366
|
])),
|
@@ -13395,7 +13395,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13395
13395
|
_: 1
|
13396
13396
|
}));
|
13397
13397
|
}
|
13398
|
-
}), Ov = /* @__PURE__ */ ft(Bv, [["__scopeId", "data-v-
|
13398
|
+
}), Ov = /* @__PURE__ */ ft(Bv, [["__scopeId", "data-v-7f5fcfb1"]]), Mv = {
|
13399
13399
|
key: 0,
|
13400
13400
|
class: "v-ai-widget__mask is-limit"
|
13401
13401
|
}, Nv = {
|
@@ -13495,7 +13495,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13495
13495
|
__: [1]
|
13496
13496
|
}),
|
13497
13497
|
V("div", Wv, [
|
13498
|
-
m(n(
|
13498
|
+
m(n(ce), {
|
13499
13499
|
icon: n(nc),
|
13500
13500
|
type: "primary",
|
13501
13501
|
round: "",
|
@@ -13508,7 +13508,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13508
13508
|
_: 1,
|
13509
13509
|
__: [2]
|
13510
13510
|
}, 8, ["icon"]),
|
13511
|
-
m(n(
|
13511
|
+
m(n(ce), {
|
13512
13512
|
class: "limit-tip__close",
|
13513
13513
|
text: "",
|
13514
13514
|
type: "info",
|
@@ -13535,7 +13535,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13535
13535
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => s.value = h)
|
13536
13536
|
}, {
|
13537
13537
|
footer: b(() => [
|
13538
|
-
m(n(
|
13538
|
+
m(n(ce), {
|
13539
13539
|
size: "large",
|
13540
13540
|
type: "success",
|
13541
13541
|
icon: n(sc),
|
@@ -13547,7 +13547,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13547
13547
|
_: 1,
|
13548
13548
|
__: [10]
|
13549
13549
|
}, 8, ["icon"]),
|
13550
|
-
m(n(
|
13550
|
+
m(n(ce), {
|
13551
13551
|
text: "",
|
13552
13552
|
type: "info",
|
13553
13553
|
onClick: d
|
@@ -13616,7 +13616,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13616
13616
|
f[8] || (f[8] = V("div", null, "复制以下订单信息发送给客服", -1)),
|
13617
13617
|
V("div", qv, [
|
13618
13618
|
V("div", Yv, oe(l.value), 1),
|
13619
|
-
m(n(
|
13619
|
+
m(n(ce), {
|
13620
13620
|
size: "small",
|
13621
13621
|
icon: n(ga),
|
13622
13622
|
onClick: i
|
@@ -13677,7 +13677,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13677
13677
|
onFix: G,
|
13678
13678
|
promptText: Z,
|
13679
13679
|
fillPromptInput: z,
|
13680
|
-
settings:
|
13680
|
+
settings: ue,
|
13681
13681
|
inputDisabled: P,
|
13682
13682
|
createOrder: L,
|
13683
13683
|
cancelOrder: H,
|
@@ -13828,7 +13828,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13828
13828
|
code: !n(X),
|
13829
13829
|
onView: (Qt) => n(f)(tt),
|
13830
13830
|
onRefresh: (Qt) => n(h)(tt),
|
13831
|
-
onApply: (Qt) => n(_)(tt),
|
13831
|
+
onApply: (Qt) => n(_)(tt, !0),
|
13832
13832
|
onFix: (Qt) => n(G)(tt),
|
13833
13833
|
onCancel: (Qt) => n(ht)(tt)
|
13834
13834
|
}, null, 8, ["data", "code", "onView", "onRefresh", "onApply", "onFix", "onCancel"])
|
@@ -13850,7 +13850,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13850
13850
|
name: "footer",
|
13851
13851
|
fn: b(() => [
|
13852
13852
|
V("div", tg, [
|
13853
|
-
m(n(
|
13853
|
+
m(n(ce), {
|
13854
13854
|
class: "new-btn",
|
13855
13855
|
round: "",
|
13856
13856
|
plain: "",
|
@@ -13922,15 +13922,15 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
13922
13922
|
]),
|
13923
13923
|
_: 1
|
13924
13924
|
}, 8, ["modelValue"]),
|
13925
|
-
n(
|
13925
|
+
n(ue) ? (u(), w(Lv, {
|
13926
13926
|
key: 0,
|
13927
|
-
settings: n(
|
13927
|
+
settings: n(ue),
|
13928
13928
|
"get-image": n(_e)
|
13929
13929
|
}, null, 8, ["settings", "get-image"])) : D("", !0),
|
13930
|
-
n(
|
13930
|
+
n(ue) ? (u(), w(eg, {
|
13931
13931
|
key: 1,
|
13932
13932
|
remote: n(t).remote,
|
13933
|
-
settings: n(
|
13933
|
+
settings: n(ue),
|
13934
13934
|
"get-image": n(_e),
|
13935
13935
|
"create-order": n(L),
|
13936
13936
|
"cancel-order": n(H),
|
@@ -15609,7 +15609,7 @@ const sv = ["innerHTML"], ov = /* @__PURE__ */ M({
|
|
15609
15609
|
class: "van-icon-setter__dialog"
|
15610
15610
|
}, {
|
15611
15611
|
extra: b(() => [
|
15612
|
-
m(n(
|
15612
|
+
m(n(ce), {
|
15613
15613
|
size: "default",
|
15614
15614
|
type: "warning",
|
15615
15615
|
onClick: d
|