@vtj/designer 0.16.1 → 0.16.3
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.
|
@@ -19,10 +19,10 @@ import { editor as Bm } from "monaco-editor";
|
|
|
19
19
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
20
20
|
* @name @vtj/designer
|
|
21
21
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
22
|
-
* @version 0.16.
|
|
22
|
+
* @version 0.16.3
|
|
23
23
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
24
24
|
*/
|
|
25
|
-
const dr = "0.16.
|
|
25
|
+
const dr = "0.16.3", Um = {
|
|
26
26
|
width: 390,
|
|
27
27
|
height: 844
|
|
28
28
|
}, zm = {
|
|
@@ -51,7 +51,7 @@ const dr = "0.16.1", Um = {
|
|
|
51
51
|
"self",
|
|
52
52
|
"once",
|
|
53
53
|
"passive"
|
|
54
|
-
],
|
|
54
|
+
], CO = "__vue-devtools-frame-state__", AO = "@id/virtual:vue-devtools-path:overlay.js", TO = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs", Km = [
|
|
55
55
|
"h",
|
|
56
56
|
"t",
|
|
57
57
|
"t",
|
|
@@ -108,7 +108,7 @@ const dr = "0.16.1", Um = {
|
|
|
108
108
|
"o",
|
|
109
109
|
"r",
|
|
110
110
|
"t"
|
|
111
|
-
].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__",
|
|
111
|
+
].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__", OO = 16 * 1024, qm = "https://app.vtj.pro/#/workbench/token", Qm = {
|
|
112
112
|
package: "hotkeys-js",
|
|
113
113
|
version: "latest",
|
|
114
114
|
library: "hotkeys",
|
|
@@ -116,7 +116,7 @@ const dr = "0.16.1", Um = {
|
|
|
116
116
|
required: !0,
|
|
117
117
|
official: !0,
|
|
118
118
|
urls: ["@vtj/materials/deps/hotkeys-js/hotkeys.min.js"]
|
|
119
|
-
},
|
|
119
|
+
}, IO = {
|
|
120
120
|
package: "vue-devtools",
|
|
121
121
|
version: "latest",
|
|
122
122
|
library: "VueDevtools",
|
|
@@ -2402,7 +2402,7 @@ function pv(e) {
|
|
|
2402
2402
|
toolRegistry: s,
|
|
2403
2403
|
config: { activeDelayMs: r, ...e }
|
|
2404
2404
|
};
|
|
2405
|
-
|
|
2405
|
+
_T.forEach((b) => {
|
|
2406
2406
|
s.register({
|
|
2407
2407
|
name: b.name,
|
|
2408
2408
|
description: b.description,
|
|
@@ -2523,7 +2523,7 @@ function pv(e) {
|
|
|
2523
2523
|
},
|
|
2524
2524
|
shouldNext: (b) => {
|
|
2525
2525
|
const k = b.content || b.reasoning || "";
|
|
2526
|
-
return k.includes("F:") || k.includes("R:") ? !1 :
|
|
2526
|
+
return k.includes("F:") || k.includes("R:") ? !1 : b.toolCallId && (b.toolContent || b.message) ? !0 : b.status === "Error" || b.status === "Failed" ? b.message && !b.message.startsWith("4") && !b.message.startsWith("5") : !1;
|
|
2527
2527
|
},
|
|
2528
2528
|
createNextPrompt: (b) => b.toolCallId ? b.toolContent || b.message || "O: 动作执行成功" : b.status === "Error" || b.status === "Failed" ? b.toolContent || b.message || "O: 动作执行失败" : "执行计划",
|
|
2529
2529
|
getCurrentVue: p,
|
|
@@ -2782,7 +2782,7 @@ function hv() {
|
|
|
2782
2782
|
if (!K.value) return;
|
|
2783
2783
|
Qo && typeof Qo == "function" && Qo(), J.status = "Canceled";
|
|
2784
2784
|
const oe = await x(J);
|
|
2785
|
-
oe && oe.data && Object.assign(J, oe.data);
|
|
2785
|
+
t.state.streaming = !1, oe && oe.data && Object.assign(J, oe.data);
|
|
2786
2786
|
}, qt = (J, oe) => {
|
|
2787
2787
|
U.value = J, oe && (C.value = oe);
|
|
2788
2788
|
}, ne = () => {
|
|
@@ -8964,7 +8964,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
|
|
|
8964
8964
|
]));
|
|
8965
8965
|
}
|
|
8966
8966
|
}), Ye = pp({
|
|
8967
|
-
loader: () => import("./Editor-
|
|
8967
|
+
loader: () => import("./Editor-DMaEPM3O.js"),
|
|
8968
8968
|
loadingComponent: H({
|
|
8969
8969
|
render() {
|
|
8970
8970
|
return eo("div", "正在拼命加载...");
|
|
@@ -29348,7 +29348,7 @@ ${m}${y}`;
|
|
|
29348
29348
|
name: "getMenus",
|
|
29349
29349
|
description: "获取当前项目的页面菜单树结构",
|
|
29350
29350
|
parameters: [],
|
|
29351
|
-
createHandler: ({ project: e }) => async () => (e.
|
|
29351
|
+
createHandler: ({ project: e }) => async () => (e.getPageTree() || []).map((n) => {
|
|
29352
29352
|
const { id: o, name: s, title: r, layout: a, dir: l, icon: c, children: d } = n;
|
|
29353
29353
|
return {
|
|
29354
29354
|
id: o,
|
|
@@ -29377,7 +29377,21 @@ ${m}${y}`;
|
|
|
29377
29377
|
})
|
|
29378
29378
|
}, PA = {
|
|
29379
29379
|
name: "createPage",
|
|
29380
|
-
description:
|
|
29380
|
+
description: `在当前项目新建页面。有层级的页面,需先创建父级,例如如先创建目录或布局类型的页面。示例:
|
|
29381
|
+
\`\`\`json
|
|
29382
|
+
{
|
|
29383
|
+
"action": "createPage",
|
|
29384
|
+
"parameters": [
|
|
29385
|
+
{
|
|
29386
|
+
"name": "Dashboard",
|
|
29387
|
+
"title": "仪表盘",
|
|
29388
|
+
"icon": "DataAnalysis"
|
|
29389
|
+
},
|
|
29390
|
+
"2gqoc7vp"
|
|
29391
|
+
]
|
|
29392
|
+
}
|
|
29393
|
+
\`\`\`
|
|
29394
|
+
`,
|
|
29381
29395
|
parameters: [
|
|
29382
29396
|
{
|
|
29383
29397
|
name: "page",
|
|
@@ -29420,7 +29434,11 @@ ${m}${y}`;
|
|
|
29420
29434
|
}
|
|
29421
29435
|
],
|
|
29422
29436
|
createHandler: ({ project: e, config: t }) => async (n, o) => {
|
|
29423
|
-
|
|
29437
|
+
if (typeof n != "object")
|
|
29438
|
+
throw new Error(
|
|
29439
|
+
"调用 createPage 工具参数错误,第一个参数要求是 PageFile 对象"
|
|
29440
|
+
);
|
|
29441
|
+
const s = o || n.parentId, r = await e.createPage(
|
|
29424
29442
|
Object.assign(
|
|
29425
29443
|
{
|
|
29426
29444
|
cache: !1,
|
|
@@ -29438,16 +29456,16 @@ ${m}${y}`;
|
|
|
29438
29456
|
},
|
|
29439
29457
|
n
|
|
29440
29458
|
),
|
|
29441
|
-
|
|
29459
|
+
s
|
|
29442
29460
|
);
|
|
29443
|
-
|
|
29444
|
-
const { name:
|
|
29445
|
-
return
|
|
29446
|
-
name:
|
|
29447
|
-
title:
|
|
29448
|
-
layout:
|
|
29449
|
-
dir:
|
|
29450
|
-
id:
|
|
29461
|
+
r.dir || (e.active(r), await Ie(t.activeDelayMs));
|
|
29462
|
+
const { name: a, title: l, layout: c, dir: d } = n;
|
|
29463
|
+
return r ? {
|
|
29464
|
+
name: a,
|
|
29465
|
+
title: l,
|
|
29466
|
+
layout: c,
|
|
29467
|
+
dir: d,
|
|
29468
|
+
id: r.id
|
|
29451
29469
|
} : null;
|
|
29452
29470
|
}
|
|
29453
29471
|
}, MA = {
|
|
@@ -29484,6 +29502,10 @@ ${m}${y}`;
|
|
|
29484
29502
|
}
|
|
29485
29503
|
],
|
|
29486
29504
|
createHandler: ({ project: e, config: t }) => async (n) => {
|
|
29505
|
+
if (typeof n != "object")
|
|
29506
|
+
throw new Error(
|
|
29507
|
+
"调用 updatePage 工具参数错误,第一个参数要求是 PageFile 对象"
|
|
29508
|
+
);
|
|
29487
29509
|
const o = e.updatePage(n);
|
|
29488
29510
|
if (await Ie(t.activeDelayMs), o) {
|
|
29489
29511
|
const { name: s, title: r, layout: a, dir: l, id: c } = o;
|
|
@@ -29492,8 +29514,26 @@ ${m}${y}`;
|
|
|
29492
29514
|
throw new Error("页面不存在");
|
|
29493
29515
|
}
|
|
29494
29516
|
}, jA = {
|
|
29517
|
+
name: "movePage",
|
|
29518
|
+
description: "更改页面层级,布局和目录类型的页面可以有子级页面",
|
|
29519
|
+
parameters: [
|
|
29520
|
+
{
|
|
29521
|
+
name: "id",
|
|
29522
|
+
type: "string",
|
|
29523
|
+
description: "需要更改的页面ID",
|
|
29524
|
+
required: !0
|
|
29525
|
+
},
|
|
29526
|
+
{
|
|
29527
|
+
name: "parentId",
|
|
29528
|
+
type: "string",
|
|
29529
|
+
description: "更改到该页面ID的子级, 为null即移到根目录",
|
|
29530
|
+
required: !1
|
|
29531
|
+
}
|
|
29532
|
+
],
|
|
29533
|
+
createHandler: ({ project: e }) => async (t, n) => e.movePageTo(t, n)
|
|
29534
|
+
}, LA = {
|
|
29495
29535
|
name: "removePage",
|
|
29496
|
-
description: "
|
|
29536
|
+
description: "删除页面或目录文件, 如删除目录或布局类型的页面,需先删除子级页面",
|
|
29497
29537
|
parameters: [
|
|
29498
29538
|
{
|
|
29499
29539
|
name: "id",
|
|
@@ -29503,7 +29543,7 @@ ${m}${y}`;
|
|
|
29503
29543
|
}
|
|
29504
29544
|
],
|
|
29505
29545
|
createHandler: ({ project: e, config: t }) => async (n) => (e.removePage(n), await Ie(t.activeDelayMs), !0)
|
|
29506
|
-
},
|
|
29546
|
+
}, BA = {
|
|
29507
29547
|
name: "getBlocks",
|
|
29508
29548
|
description: "获取当前项目的全部区块组件",
|
|
29509
29549
|
parameters: [],
|
|
@@ -29515,7 +29555,7 @@ ${m}${y}`;
|
|
|
29515
29555
|
title: r
|
|
29516
29556
|
};
|
|
29517
29557
|
})
|
|
29518
|
-
},
|
|
29558
|
+
}, UA = {
|
|
29519
29559
|
name: "createBlock",
|
|
29520
29560
|
description: "在当前项目新建区块组件",
|
|
29521
29561
|
parameters: [
|
|
@@ -29539,6 +29579,10 @@ ${m}${y}`;
|
|
|
29539
29579
|
}
|
|
29540
29580
|
],
|
|
29541
29581
|
createHandler: ({ project: e, config: t }) => async (n) => {
|
|
29582
|
+
if (typeof n != "object")
|
|
29583
|
+
throw new Error(
|
|
29584
|
+
"调用 createBlock 工具参数错误,第一个参数要求是 BlockFile 对象"
|
|
29585
|
+
);
|
|
29542
29586
|
const o = await e.createBlock(n);
|
|
29543
29587
|
e.active(o), await Ie(t.activeDelayMs);
|
|
29544
29588
|
const { name: s, title: r } = n;
|
|
@@ -29548,7 +29592,7 @@ ${m}${y}`;
|
|
|
29548
29592
|
id: o.id
|
|
29549
29593
|
} : null;
|
|
29550
29594
|
}
|
|
29551
|
-
},
|
|
29595
|
+
}, zA = {
|
|
29552
29596
|
name: "updateBlock",
|
|
29553
29597
|
description: "更改区块文件元信息",
|
|
29554
29598
|
parameters: [
|
|
@@ -29588,7 +29632,7 @@ ${m}${y}`;
|
|
|
29588
29632
|
}
|
|
29589
29633
|
throw new Error("区块文件不存在");
|
|
29590
29634
|
}
|
|
29591
|
-
},
|
|
29635
|
+
}, $A = {
|
|
29592
29636
|
name: "removeBlock",
|
|
29593
29637
|
description: "删除区块文件",
|
|
29594
29638
|
parameters: [
|
|
@@ -29600,7 +29644,7 @@ ${m}${y}`;
|
|
|
29600
29644
|
}
|
|
29601
29645
|
],
|
|
29602
29646
|
createHandler: ({ project: e, config: t }) => async (n) => (e.removeBlock(n), await Ie(t.activeDelayMs), !0)
|
|
29603
|
-
},
|
|
29647
|
+
}, FA = {
|
|
29604
29648
|
name: "active",
|
|
29605
29649
|
description: "打开一个文件(页面或区块组件)",
|
|
29606
29650
|
parameters: [
|
|
@@ -29615,7 +29659,7 @@ ${m}${y}`;
|
|
|
29615
29659
|
const o = e.getFile(n);
|
|
29616
29660
|
return o ? (e.active(o), await Ie(t.activeDelayMs), !0) : null;
|
|
29617
29661
|
}
|
|
29618
|
-
},
|
|
29662
|
+
}, HA = {
|
|
29619
29663
|
name: "getCurrentFile",
|
|
29620
29664
|
description: "获取当前打开的文件(页面、区块)元信息",
|
|
29621
29665
|
parameters: [],
|
|
@@ -29631,7 +29675,7 @@ ${m}${y}`;
|
|
|
29631
29675
|
}
|
|
29632
29676
|
throw new Error("当前没有打开的文件");
|
|
29633
29677
|
}
|
|
29634
|
-
},
|
|
29678
|
+
}, JA = {
|
|
29635
29679
|
name: "getCurrentFileContent",
|
|
29636
29680
|
description: "获取当前打开的文件(页面、区块)内容源码",
|
|
29637
29681
|
parameters: [],
|
|
@@ -29645,7 +29689,7 @@ ${m}${y}`;
|
|
|
29645
29689
|
}
|
|
29646
29690
|
throw new Error("当前没有打开的文件");
|
|
29647
29691
|
}
|
|
29648
|
-
},
|
|
29692
|
+
}, GA = {
|
|
29649
29693
|
name: "refresh",
|
|
29650
29694
|
description: "刷新当前页面或区块组件运行时,当需要检测代码是否存在运行时错误可调用",
|
|
29651
29695
|
parameters: [],
|
|
@@ -29657,7 +29701,7 @@ ${m}${y}`;
|
|
|
29657
29701
|
${n.message}
|
|
29658
29702
|
请检查页面代码并修复` : !0;
|
|
29659
29703
|
}
|
|
29660
|
-
},
|
|
29704
|
+
}, KA = {
|
|
29661
29705
|
name: "setApi",
|
|
29662
29706
|
description: "新增或更新项目接口API",
|
|
29663
29707
|
parameters: [
|
|
@@ -29694,14 +29738,14 @@ ${n.message}
|
|
|
29694
29738
|
return await Ie(t.activeDelayMs), o;
|
|
29695
29739
|
};
|
|
29696
29740
|
}
|
|
29697
|
-
},
|
|
29741
|
+
}, WA = {
|
|
29698
29742
|
name: "getApis",
|
|
29699
29743
|
description: "获取当前项目可用的APIs",
|
|
29700
29744
|
parameters: [],
|
|
29701
29745
|
createHandler({ project: e, config: t }) {
|
|
29702
29746
|
return async () => (await Ie(t.activeDelayMs), e.apis);
|
|
29703
29747
|
}
|
|
29704
|
-
},
|
|
29748
|
+
}, qA = {
|
|
29705
29749
|
name: "removeApi",
|
|
29706
29750
|
description: "删除API",
|
|
29707
29751
|
parameters: [
|
|
@@ -29713,7 +29757,7 @@ ${n.message}
|
|
|
29713
29757
|
}
|
|
29714
29758
|
],
|
|
29715
29759
|
createHandler: ({ project: e, config: t }) => async (n) => (e.removeApi(n), await Ie(t.activeDelayMs), !0)
|
|
29716
|
-
},
|
|
29760
|
+
}, QA = {
|
|
29717
29761
|
name: "setHomepage",
|
|
29718
29762
|
description: "设置应用主页, 把页面设置为应用的主页",
|
|
29719
29763
|
parameters: [
|
|
@@ -29725,7 +29769,7 @@ ${n.message}
|
|
|
29725
29769
|
}
|
|
29726
29770
|
],
|
|
29727
29771
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await Ie(t.activeDelayMs), !0)
|
|
29728
|
-
},
|
|
29772
|
+
}, YA = {
|
|
29729
29773
|
name: "setGlobalCss",
|
|
29730
29774
|
description: "设置应用的全局css代码",
|
|
29731
29775
|
parameters: [
|
|
@@ -29737,12 +29781,12 @@ ${n.message}
|
|
|
29737
29781
|
}
|
|
29738
29782
|
],
|
|
29739
29783
|
createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("css", n), await Ie(t.activeDelayMs), !0)
|
|
29740
|
-
},
|
|
29784
|
+
}, XA = {
|
|
29741
29785
|
name: "getGlobalCss",
|
|
29742
29786
|
description: "获取应用的全局css代码",
|
|
29743
29787
|
parameters: [],
|
|
29744
29788
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.css || "没有全局CSS")
|
|
29745
|
-
},
|
|
29789
|
+
}, ZA = {
|
|
29746
29790
|
name: "setGlobalStore",
|
|
29747
29791
|
description: "设置应用的全局Pinia状态",
|
|
29748
29792
|
parameters: [
|
|
@@ -29776,12 +29820,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
|
|
|
29776
29820
|
type: "JSFunction",
|
|
29777
29821
|
value: n
|
|
29778
29822
|
}), await Ie(t.activeDelayMs), !0)
|
|
29779
|
-
},
|
|
29823
|
+
}, eT = {
|
|
29780
29824
|
name: "getGlobalStore",
|
|
29781
29825
|
description: "获取应用的全局状态(Pinia Store)",
|
|
29782
29826
|
parameters: [],
|
|
29783
29827
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
|
|
29784
|
-
},
|
|
29828
|
+
}, tT = {
|
|
29785
29829
|
name: "setGlobalAccess",
|
|
29786
29830
|
description: `设置权限控制插件配置项, 配置样例:
|
|
29787
29831
|
\`\`\`javascript
|
|
@@ -29904,17 +29948,17 @@ export interface AccessOptions {
|
|
|
29904
29948
|
type: "JSFunction",
|
|
29905
29949
|
value: n
|
|
29906
29950
|
}), await Ie(t.activeDelayMs), !0)
|
|
29907
|
-
},
|
|
29951
|
+
}, nT = {
|
|
29908
29952
|
name: "getGlobalAccess",
|
|
29909
29953
|
description: "查看权限控制插件配置项",
|
|
29910
29954
|
parameters: [],
|
|
29911
29955
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
|
|
29912
|
-
},
|
|
29956
|
+
}, oT = {
|
|
29913
29957
|
name: "getGlobalAxios",
|
|
29914
29958
|
description: "查看Axios请求工具配置项",
|
|
29915
29959
|
parameters: [],
|
|
29916
29960
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
|
|
29917
|
-
},
|
|
29961
|
+
}, rT = {
|
|
29918
29962
|
name: "setGlobalAxios",
|
|
29919
29963
|
description: `
|
|
29920
29964
|
设置全局Axios请求工具配置项, 配置样例:
|
|
@@ -30023,7 +30067,7 @@ export interface IRequestSettings {
|
|
|
30023
30067
|
type: "JSFunction",
|
|
30024
30068
|
value: n
|
|
30025
30069
|
}), await Ie(t.activeDelayMs), !0)
|
|
30026
|
-
},
|
|
30070
|
+
}, sT = {
|
|
30027
30071
|
name: "setGlobalRequestInterceptor",
|
|
30028
30072
|
description: `设置全局Axios全局请求拦截器, 代码样例:
|
|
30029
30073
|
|
|
@@ -30052,12 +30096,12 @@ axios请求拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30052
30096
|
type: "JSFunction",
|
|
30053
30097
|
value: n
|
|
30054
30098
|
}), await Ie(t.activeDelayMs), !0)
|
|
30055
|
-
},
|
|
30099
|
+
}, aT = {
|
|
30056
30100
|
name: "getGlobalRequestInterceptor",
|
|
30057
30101
|
description: "查看全局Axios全局请求拦截器",
|
|
30058
30102
|
parameters: [],
|
|
30059
30103
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
|
|
30060
|
-
},
|
|
30104
|
+
}, lT = {
|
|
30061
30105
|
name: "setGlobalResponseInterceptor",
|
|
30062
30106
|
description: `设置全局Axios全局响应拦截器, 代码样例:
|
|
30063
30107
|
|
|
@@ -30086,22 +30130,22 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30086
30130
|
type: "JSFunction",
|
|
30087
30131
|
value: n
|
|
30088
30132
|
}), await Ie(t.activeDelayMs), !0)
|
|
30089
|
-
},
|
|
30133
|
+
}, iT = {
|
|
30090
30134
|
name: "getGlobalResponseInterceptor",
|
|
30091
30135
|
description: "查看全局Axios全局响应拦截器",
|
|
30092
30136
|
parameters: [],
|
|
30093
30137
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
|
|
30094
|
-
},
|
|
30138
|
+
}, cT = {
|
|
30095
30139
|
name: "getGlobalBeforeEach",
|
|
30096
30140
|
description: "查看全局前置路由守卫",
|
|
30097
30141
|
parameters: [],
|
|
30098
30142
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
|
|
30099
|
-
},
|
|
30143
|
+
}, uT = {
|
|
30100
30144
|
name: "getGlobalAfterEach",
|
|
30101
30145
|
description: "查看全局后置路由守卫",
|
|
30102
30146
|
parameters: [],
|
|
30103
30147
|
createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
|
|
30104
|
-
},
|
|
30148
|
+
}, dT = {
|
|
30105
30149
|
name: "setGlobalBeforeEach",
|
|
30106
30150
|
description: `设置全局前置路由守卫, 代码样例:
|
|
30107
30151
|
|
|
@@ -30132,7 +30176,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30132
30176
|
type: "JSFunction",
|
|
30133
30177
|
value: n
|
|
30134
30178
|
}), await Ie(t.activeDelayMs), !0)
|
|
30135
|
-
},
|
|
30179
|
+
}, pT = {
|
|
30136
30180
|
name: "setGlobalAfterEach",
|
|
30137
30181
|
description: `设置全局后置路由守卫, 代码样例:
|
|
30138
30182
|
|
|
@@ -30163,7 +30207,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30163
30207
|
type: "JSFunction",
|
|
30164
30208
|
value: n
|
|
30165
30209
|
}), await Ie(t.activeDelayMs), !0)
|
|
30166
|
-
},
|
|
30210
|
+
}, fT = {
|
|
30167
30211
|
name: "getNodeSelected",
|
|
30168
30212
|
description: "获取当前页面选中的节点路径,用于定位当前选中的页面元素,路径最后一个是选中的元素名称",
|
|
30169
30213
|
parameters: [],
|
|
@@ -30173,12 +30217,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30173
30217
|
const n = t.selected.value?.path;
|
|
30174
30218
|
return n ? n.map((o) => o.name).reverse().join(">") : null;
|
|
30175
30219
|
}
|
|
30176
|
-
},
|
|
30220
|
+
}, gT = {
|
|
30177
30221
|
name: "getEnv",
|
|
30178
30222
|
description: "获取环境变量列表, 环境变量的值可用 `app.config.globalProperties.$provider.env.变量名` 或在组件中用 `this.$provider.env.变量名`获取",
|
|
30179
30223
|
parameters: [],
|
|
30180
30224
|
createHandler: ({ project: e }) => async () => e.env || []
|
|
30181
|
-
},
|
|
30225
|
+
}, mT = {
|
|
30182
30226
|
name: "createEnv",
|
|
30183
30227
|
description: "新增环境变量",
|
|
30184
30228
|
parameters: [
|
|
@@ -30210,7 +30254,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30210
30254
|
const n = [...e.env, t];
|
|
30211
30255
|
return e.setEnv(n), !0;
|
|
30212
30256
|
}
|
|
30213
|
-
},
|
|
30257
|
+
}, hT = {
|
|
30214
30258
|
name: "removeEnv",
|
|
30215
30259
|
description: "删除环境变量",
|
|
30216
30260
|
parameters: [
|
|
@@ -30225,12 +30269,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30225
30269
|
const n = (e.env || []).filter((o) => o.name !== t);
|
|
30226
30270
|
return e.setEnv(n), !0;
|
|
30227
30271
|
}
|
|
30228
|
-
},
|
|
30272
|
+
}, vT = {
|
|
30229
30273
|
name: "getI18nMessage",
|
|
30230
30274
|
description: "获取 vue-i18n 的 message 中英对照词条, 在组件可用 `this.$t.key` 调用词条",
|
|
30231
30275
|
parameters: [],
|
|
30232
30276
|
createHandler: ({ project: e }) => async () => e.i18n.messages || []
|
|
30233
|
-
},
|
|
30277
|
+
}, bT = {
|
|
30234
30278
|
name: "createI18nMessage",
|
|
30235
30279
|
description: "新增 vue-i18n 的 message 中英对照词条",
|
|
30236
30280
|
parameters: [
|
|
@@ -30259,7 +30303,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30259
30303
|
}
|
|
30260
30304
|
],
|
|
30261
30305
|
createHandler: ({ project: e }) => async (t) => (e.i18n.messages?.push(t), e.setI18n(e.i18n), !0)
|
|
30262
|
-
},
|
|
30306
|
+
}, yT = {
|
|
30263
30307
|
name: "removeI18nMessage",
|
|
30264
30308
|
description: "删除 vue-i18n 的 message 词条",
|
|
30265
30309
|
parameters: [
|
|
@@ -30273,15 +30317,15 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30273
30317
|
createHandler: ({ project: e }) => async (t) => (e.i18n.messages = e.i18n.messages?.filter(
|
|
30274
30318
|
(n) => n.key !== t
|
|
30275
30319
|
), e.setI18n(e.i18n), !0)
|
|
30276
|
-
},
|
|
30320
|
+
}, _T = [
|
|
30277
30321
|
DA,
|
|
30278
30322
|
NA,
|
|
30279
30323
|
VA,
|
|
30280
|
-
|
|
30324
|
+
BA,
|
|
30281
30325
|
PA,
|
|
30282
30326
|
MA,
|
|
30283
30327
|
jA,
|
|
30284
|
-
|
|
30328
|
+
LA,
|
|
30285
30329
|
UA,
|
|
30286
30330
|
zA,
|
|
30287
30331
|
$A,
|
|
@@ -30302,9 +30346,9 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30302
30346
|
oT,
|
|
30303
30347
|
rT,
|
|
30304
30348
|
sT,
|
|
30305
|
-
lT,
|
|
30306
30349
|
aT,
|
|
30307
30350
|
iT,
|
|
30351
|
+
lT,
|
|
30308
30352
|
cT,
|
|
30309
30353
|
uT,
|
|
30310
30354
|
dT,
|
|
@@ -30314,9 +30358,10 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
|
|
|
30314
30358
|
mT,
|
|
30315
30359
|
hT,
|
|
30316
30360
|
vT,
|
|
30317
|
-
bT
|
|
30361
|
+
bT,
|
|
30362
|
+
yT
|
|
30318
30363
|
];
|
|
30319
|
-
class
|
|
30364
|
+
class wT {
|
|
30320
30365
|
constructor() {
|
|
30321
30366
|
fe(this, "widgets", {});
|
|
30322
30367
|
this.widgets = this.createWidgets();
|
|
@@ -30386,8 +30431,8 @@ class _T {
|
|
|
30386
30431
|
this.getRemoteWidgets().forEach((n) => this.unregister(n.name));
|
|
30387
30432
|
}
|
|
30388
30433
|
}
|
|
30389
|
-
const Zn = new
|
|
30390
|
-
class
|
|
30434
|
+
const Zn = new wT();
|
|
30435
|
+
class ET {
|
|
30391
30436
|
constructor(t = eA) {
|
|
30392
30437
|
this.deps = t;
|
|
30393
30438
|
}
|
|
@@ -30462,8 +30507,8 @@ class wT {
|
|
|
30462
30507
|
n > -1 && this.deps.splice(n, 1);
|
|
30463
30508
|
}
|
|
30464
30509
|
}
|
|
30465
|
-
const Mi = new
|
|
30466
|
-
class
|
|
30510
|
+
const Mi = new ET();
|
|
30511
|
+
class kT {
|
|
30467
30512
|
constructor() {
|
|
30468
30513
|
fe(this, "setters", {});
|
|
30469
30514
|
fe(this, "defaultSetter", IA);
|
|
@@ -30508,7 +30553,7 @@ class ET {
|
|
|
30508
30553
|
return Object.values(this.setters).filter((o) => o.type.toLowerCase() === t.toLowerCase()).map((o) => o.name);
|
|
30509
30554
|
}
|
|
30510
30555
|
}
|
|
30511
|
-
const nr = new
|
|
30556
|
+
const nr = new kT(), Jn = H({
|
|
30512
30557
|
name: "RegionWrapper",
|
|
30513
30558
|
props: {
|
|
30514
30559
|
region: {
|
|
@@ -30551,7 +30596,7 @@ const nr = new ET(), Jn = H({
|
|
|
30551
30596
|
ref: "widgetRef"
|
|
30552
30597
|
});
|
|
30553
30598
|
}
|
|
30554
|
-
}),
|
|
30599
|
+
}), ST = H({
|
|
30555
30600
|
name: "SkeletonWrapper",
|
|
30556
30601
|
setup() {
|
|
30557
30602
|
const e = D(), t = Be(), n = D({});
|
|
@@ -30566,7 +30611,7 @@ const nr = new ET(), Jn = H({
|
|
|
30566
30611
|
},
|
|
30567
30612
|
render() {
|
|
30568
30613
|
const { $props: e = {}, $attrs: t = {} } = this;
|
|
30569
|
-
return eo(
|
|
30614
|
+
return eo(jT, { ...e, ...t, ref: "skeletonRef" });
|
|
30570
30615
|
},
|
|
30571
30616
|
methods: {
|
|
30572
30617
|
/**
|
|
@@ -30721,7 +30766,7 @@ const nr = new ET(), Jn = H({
|
|
|
30721
30766
|
onRemove: p,
|
|
30722
30767
|
disabled: g
|
|
30723
30768
|
} = this;
|
|
30724
|
-
return eo(
|
|
30769
|
+
return eo(HT, {
|
|
30725
30770
|
context: e,
|
|
30726
30771
|
current: t,
|
|
30727
30772
|
name: n,
|
|
@@ -30751,7 +30796,7 @@ const nr = new ET(), Jn = H({
|
|
|
30751
30796
|
}
|
|
30752
30797
|
}
|
|
30753
30798
|
});
|
|
30754
|
-
function
|
|
30799
|
+
function xT(e, t) {
|
|
30755
30800
|
return new Promise((n, o) => {
|
|
30756
30801
|
const s = Da(kE, {
|
|
30757
30802
|
name: e,
|
|
@@ -30766,7 +30811,7 @@ function ST(e, t) {
|
|
|
30766
30811
|
s.mount(document.createElement("div"));
|
|
30767
30812
|
});
|
|
30768
30813
|
}
|
|
30769
|
-
class
|
|
30814
|
+
class CT {
|
|
30770
30815
|
constructor(t, n, o) {
|
|
30771
30816
|
fe(this, "proxied", {});
|
|
30772
30817
|
fe(this, "document", null);
|
|
@@ -30863,7 +30908,7 @@ class xT {
|
|
|
30863
30908
|
const { name: p, params: g = [] } = f[0];
|
|
30864
30909
|
return p === "default" && !g.length ? void 0 : f[0];
|
|
30865
30910
|
}
|
|
30866
|
-
const u = await
|
|
30911
|
+
const u = await xT(t.name, f).catch(() => null);
|
|
30867
30912
|
if (!(u && u.name === "default" && (!u.params || u.params?.length === 0)))
|
|
30868
30913
|
return u;
|
|
30869
30914
|
}
|
|
@@ -31090,13 +31135,13 @@ class xT {
|
|
|
31090
31135
|
this.setSelected(null), this.setHover(null), this.setDragging(null), this.lines.value = [], t && n && this.unbindEvents(t, n), this.document = null;
|
|
31091
31136
|
}
|
|
31092
31137
|
}
|
|
31093
|
-
const
|
|
31138
|
+
const AT = [
|
|
31094
31139
|
'"ResizeObserver loop completed with undelivered notifications."',
|
|
31095
31140
|
"ResizeObserver loop completed with undelivered notifications.",
|
|
31096
31141
|
'"ResizeObserver loop completed with undelivered notifications."',
|
|
31097
31142
|
"ResizeObserver loop limit exceeded"
|
|
31098
31143
|
];
|
|
31099
|
-
class
|
|
31144
|
+
class TT {
|
|
31100
31145
|
constructor(t, n, o) {
|
|
31101
31146
|
fe(this, "api");
|
|
31102
31147
|
fe(this, "remote");
|
|
@@ -31137,7 +31182,7 @@ class AT {
|
|
|
31137
31182
|
bindGlobalError() {
|
|
31138
31183
|
window.addEventListener("error", (t) => {
|
|
31139
31184
|
const n = t.error || t;
|
|
31140
|
-
|
|
31185
|
+
AT.includes(n.message) || this.error(n, {
|
|
31141
31186
|
type: "window.error",
|
|
31142
31187
|
event: n,
|
|
31143
31188
|
eventString: n.toString()
|
|
@@ -31206,7 +31251,7 @@ class AT {
|
|
|
31206
31251
|
}), console.error(t);
|
|
31207
31252
|
}
|
|
31208
31253
|
}
|
|
31209
|
-
class
|
|
31254
|
+
class OT {
|
|
31210
31255
|
constructor(t, n, o, s, r = null, a = null) {
|
|
31211
31256
|
fe(this, "app", null);
|
|
31212
31257
|
fe(this, "dsl", null);
|
|
@@ -31363,7 +31408,7 @@ class TT {
|
|
|
31363
31408
|
return !1;
|
|
31364
31409
|
}
|
|
31365
31410
|
}
|
|
31366
|
-
class
|
|
31411
|
+
class IT extends Zi {
|
|
31367
31412
|
constructor(n) {
|
|
31368
31413
|
super();
|
|
31369
31414
|
fe(this, "contentWindow", null);
|
|
@@ -31382,7 +31427,7 @@ class OT extends Zi {
|
|
|
31382
31427
|
le(
|
|
31383
31428
|
[n, o, s, r, a, l, c, d],
|
|
31384
31429
|
() => {
|
|
31385
|
-
n.value && o.value.length && (this.resetReady(), this.renderer?.dispose(), this.renderer = null, this.setup(n.value, o.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new
|
|
31430
|
+
n.value && o.value.length && (this.resetReady(), this.renderer?.dispose(), this.renderer = null, this.setup(n.value, o.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new CT(
|
|
31386
31431
|
this.engine,
|
|
31387
31432
|
this.contentWindow,
|
|
31388
31433
|
o
|
|
@@ -31515,7 +31560,7 @@ class OT extends Zi {
|
|
|
31515
31560
|
m,
|
|
31516
31561
|
r
|
|
31517
31562
|
);
|
|
31518
|
-
this.renderer = new
|
|
31563
|
+
this.renderer = new OT(
|
|
31519
31564
|
y,
|
|
31520
31565
|
c,
|
|
31521
31566
|
f,
|
|
@@ -31591,7 +31636,7 @@ class OT extends Zi {
|
|
|
31591
31636
|
this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null, this.resetReady();
|
|
31592
31637
|
}
|
|
31593
31638
|
}
|
|
31594
|
-
class
|
|
31639
|
+
class RT {
|
|
31595
31640
|
constructor(t, n) {
|
|
31596
31641
|
fe(this, "components", []);
|
|
31597
31642
|
fe(this, "componentMap", /* @__PURE__ */ new Map());
|
|
@@ -31680,9 +31725,9 @@ class IT {
|
|
|
31680
31725
|
this.caches = {};
|
|
31681
31726
|
}
|
|
31682
31727
|
}
|
|
31683
|
-
class
|
|
31728
|
+
class DO {
|
|
31684
31729
|
}
|
|
31685
|
-
const
|
|
31730
|
+
const DT = {
|
|
31686
31731
|
outlineEnabled: !0,
|
|
31687
31732
|
activeEvent: !0,
|
|
31688
31733
|
autoApply: !0,
|
|
@@ -31693,9 +31738,9 @@ const RT = {
|
|
|
31693
31738
|
dark: !1,
|
|
31694
31739
|
streaming: !1
|
|
31695
31740
|
};
|
|
31696
|
-
class
|
|
31741
|
+
class NT {
|
|
31697
31742
|
constructor() {
|
|
31698
|
-
fe(this, "__state", an(
|
|
31743
|
+
fe(this, "__state", an(DT));
|
|
31699
31744
|
fe(this, "__isDark", Oh({
|
|
31700
31745
|
storageKey: "color-schema"
|
|
31701
31746
|
}));
|
|
@@ -31780,7 +31825,7 @@ class DT {
|
|
|
31780
31825
|
return this.__state.LLMs.find((n) => n.id === t);
|
|
31781
31826
|
}
|
|
31782
31827
|
}
|
|
31783
|
-
class
|
|
31828
|
+
class VT {
|
|
31784
31829
|
constructor() {
|
|
31785
31830
|
/**
|
|
31786
31831
|
* 工具存储
|
|
@@ -31905,7 +31950,7 @@ class NT {
|
|
|
31905
31950
|
}
|
|
31906
31951
|
}
|
|
31907
31952
|
const Bd = Symbol("VtjEngine"), aa = "SAVE_BLOCK_FILE_FINISH";
|
|
31908
|
-
class
|
|
31953
|
+
class NO extends Zi {
|
|
31909
31954
|
constructor(n) {
|
|
31910
31955
|
super();
|
|
31911
31956
|
fe(this, "app");
|
|
@@ -31951,9 +31996,9 @@ class DO extends Zi {
|
|
|
31951
31996
|
// 是否检查版本
|
|
31952
31997
|
fe(this, "openApi");
|
|
31953
31998
|
// OpenAPI服务
|
|
31954
|
-
fe(this, "state", new
|
|
31999
|
+
fe(this, "state", new NT());
|
|
31955
32000
|
// 引擎状态
|
|
31956
|
-
fe(this, "toolRegistry", new
|
|
32001
|
+
fe(this, "toolRegistry", new VT());
|
|
31957
32002
|
this.options = n;
|
|
31958
32003
|
const {
|
|
31959
32004
|
container: o,
|
|
@@ -31985,11 +32030,11 @@ class DO extends Zi {
|
|
|
31985
32030
|
adapter: p,
|
|
31986
32031
|
pageRouteName: u,
|
|
31987
32032
|
install: g
|
|
31988
|
-
}), this.assets = new
|
|
32033
|
+
}), this.assets = new RT(this.service, this.provider), this.simulator = new IT({
|
|
31989
32034
|
engine: this,
|
|
31990
32035
|
materialPath: d,
|
|
31991
32036
|
enhance: this.getEnhanceConfig(k)
|
|
31992
|
-
}), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new
|
|
32037
|
+
}), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new TT(this.remote, this.access, this.service), this.checkVersion = _, this.bindEvents(), this.init(r).then(this.render.bind(this)), gs(this.dispose.bind(this));
|
|
31993
32038
|
}
|
|
31994
32039
|
/**
|
|
31995
32040
|
* 初始化引擎
|
|
@@ -32046,7 +32091,7 @@ class DO extends Zi {
|
|
|
32046
32091
|
render() {
|
|
32047
32092
|
const n = i(this.container);
|
|
32048
32093
|
if (n) {
|
|
32049
|
-
const o = Da(
|
|
32094
|
+
const o = Da(ST);
|
|
32050
32095
|
this.options.install && o.use(this.options.install, this), o.provide(Bd, gp(this)), o.mount(n), this.app = o;
|
|
32051
32096
|
} else
|
|
32052
32097
|
jn.warn("VTJEngine constructor param [ container ] is undefined");
|
|
@@ -32122,7 +32167,7 @@ class DO extends Zi {
|
|
|
32122
32167
|
}
|
|
32123
32168
|
if (o === "delete") {
|
|
32124
32169
|
const a = n.data;
|
|
32125
|
-
a && s.isPageFile(a) && a.raw ? await this.service.removeRawPage(a.id, r) : a.dir
|
|
32170
|
+
a && s.isPageFile(a) && a.raw ? await this.service.removeRawPage(a.id, r) : a && !a.dir && (await this.service.removeFile(a.id, r), await this.service.removeRawPage(a.id, r), await this.service.removeHistory(a.id, r));
|
|
32126
32171
|
}
|
|
32127
32172
|
if (o === "clone") {
|
|
32128
32173
|
const { source: a, target: l } = n.data, c = await this.service.getFile(a.id, r);
|
|
@@ -32285,7 +32330,7 @@ function Be() {
|
|
|
32285
32330
|
const e = fs(Bd, null);
|
|
32286
32331
|
return e || jn.error("VTJEngine is not exist"), e;
|
|
32287
32332
|
}
|
|
32288
|
-
class
|
|
32333
|
+
class PT {
|
|
32289
32334
|
constructor() {
|
|
32290
32335
|
// 缓存正则表达式,避免重复编译
|
|
32291
32336
|
fe(this, "vueCodeRegex", /```vue\r?\n([\s\S]*?)(?:\r?\n```|$)/);
|
|
@@ -32587,7 +32632,7 @@ ${r.join(`
|
|
|
32587
32632
|
}), n;
|
|
32588
32633
|
}
|
|
32589
32634
|
}
|
|
32590
|
-
const ji = new
|
|
32635
|
+
const ji = new PT(), MT = /* @__PURE__ */ H({
|
|
32591
32636
|
__name: "tour",
|
|
32592
32637
|
setup(e) {
|
|
32593
32638
|
const t = Be();
|
|
@@ -32647,7 +32692,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32647
32692
|
_: 1
|
|
32648
32693
|
}, 8, ["modelValue"]));
|
|
32649
32694
|
}
|
|
32650
|
-
}),
|
|
32695
|
+
}), jT = /* @__PURE__ */ H({
|
|
32651
32696
|
name: "Skeletion",
|
|
32652
32697
|
__name: "skeleton",
|
|
32653
32698
|
props: {
|
|
@@ -32805,15 +32850,15 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32805
32850
|
]),
|
|
32806
32851
|
_: 1
|
|
32807
32852
|
}),
|
|
32808
|
-
v(
|
|
32853
|
+
v(MT)
|
|
32809
32854
|
]),
|
|
32810
32855
|
_: 1
|
|
32811
32856
|
}, 8, ["locale"]));
|
|
32812
32857
|
}
|
|
32813
|
-
}),
|
|
32858
|
+
}), LT = ["title"], BT = { class: "v-setter__content" }, UT = {
|
|
32814
32859
|
key: 0,
|
|
32815
32860
|
class: "v-setter__input"
|
|
32816
|
-
},
|
|
32861
|
+
}, zT = { class: "v-setter__action" }, $T = "{{", FT = "}}", HT = /* @__PURE__ */ H({
|
|
32817
32862
|
__name: "setter",
|
|
32818
32863
|
props: {
|
|
32819
32864
|
context: {},
|
|
@@ -32881,11 +32926,11 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32881
32926
|
}, 8, ["content"])) : (h(), j("span", {
|
|
32882
32927
|
key: 1,
|
|
32883
32928
|
title: n.name
|
|
32884
|
-
}, se(n.label || n.name), 9,
|
|
32929
|
+
}, se(n.label || n.name), 9, LT))
|
|
32885
32930
|
]),
|
|
32886
32931
|
default: E(() => [
|
|
32887
|
-
N("div",
|
|
32888
|
-
a.value ? (h(), j("div",
|
|
32932
|
+
N("div", BT, [
|
|
32933
|
+
a.value ? (h(), j("div", UT, [
|
|
32889
32934
|
c.value ? B("", !0) : (h(), A(zi(a.value.component), it({
|
|
32890
32935
|
key: 0,
|
|
32891
32936
|
current: n.current,
|
|
@@ -32904,15 +32949,15 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32904
32949
|
"model-value": "JSExpression"
|
|
32905
32950
|
}, {
|
|
32906
32951
|
prefix: E(() => [
|
|
32907
|
-
ee(se(
|
|
32952
|
+
ee(se($T))
|
|
32908
32953
|
]),
|
|
32909
32954
|
suffix: E(() => [
|
|
32910
|
-
ee(se(
|
|
32955
|
+
ee(se(FT))
|
|
32911
32956
|
]),
|
|
32912
32957
|
_: 1
|
|
32913
32958
|
})) : B("", !0)
|
|
32914
32959
|
])) : B("", !0),
|
|
32915
|
-
N("div",
|
|
32960
|
+
N("div", zT, [
|
|
32916
32961
|
n.variable ? (h(), A(i(Im), {
|
|
32917
32962
|
key: 0,
|
|
32918
32963
|
onClick: g,
|
|
@@ -32974,16 +33019,16 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32974
33019
|
_: 1
|
|
32975
33020
|
}));
|
|
32976
33021
|
}
|
|
32977
|
-
}),
|
|
33022
|
+
}), JT = { class: "v-empty-region" }, GT = /* @__PURE__ */ H({
|
|
32978
33023
|
name: "EmptyRegion",
|
|
32979
33024
|
__name: "empty",
|
|
32980
33025
|
props: {
|
|
32981
33026
|
region: {}
|
|
32982
33027
|
},
|
|
32983
33028
|
setup(e) {
|
|
32984
|
-
return (t, n) => (h(), j("div",
|
|
33029
|
+
return (t, n) => (h(), j("div", JT, "找不到符合【" + se(e.region) + "】名称的区域组件", 1));
|
|
32985
33030
|
}
|
|
32986
|
-
}),
|
|
33031
|
+
}), KT = { class: "v-brand-region" }, WT = /* @__PURE__ */ H({
|
|
32987
33032
|
name: "BrandRegion",
|
|
32988
33033
|
inheritAttrs: !1,
|
|
32989
33034
|
__name: "brand",
|
|
@@ -32995,7 +33040,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
32995
33040
|
return t({
|
|
32996
33041
|
widgets: o,
|
|
32997
33042
|
widgetsRef: s
|
|
32998
|
-
}), (r, a) => (h(), j("div",
|
|
33043
|
+
}), (r, a) => (h(), j("div", KT, [
|
|
32999
33044
|
(h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
|
|
33000
33045
|
ref_for: !0,
|
|
33001
33046
|
ref_key: "widgetsRef",
|
|
@@ -33005,7 +33050,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33005
33050
|
}, null, 8, ["region", "widget"]))), 256))
|
|
33006
33051
|
]));
|
|
33007
33052
|
}
|
|
33008
|
-
}),
|
|
33053
|
+
}), qT = { class: "v-toolbar-region" }, QT = /* @__PURE__ */ H({
|
|
33009
33054
|
name: "ToolbarRegion",
|
|
33010
33055
|
__name: "toolbar",
|
|
33011
33056
|
props: {
|
|
@@ -33017,7 +33062,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33017
33062
|
return t({
|
|
33018
33063
|
widgets: o,
|
|
33019
33064
|
widgetsRef: s
|
|
33020
|
-
}), (r, a) => (h(), j("div",
|
|
33065
|
+
}), (r, a) => (h(), j("div", qT, [
|
|
33021
33066
|
(h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
|
|
33022
33067
|
ref_for: !0,
|
|
33023
33068
|
ref_key: "widgetsRef",
|
|
@@ -33028,7 +33073,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33028
33073
|
}, null, 8, ["region", "widget", "preview"]))), 256))
|
|
33029
33074
|
]));
|
|
33030
33075
|
}
|
|
33031
|
-
}),
|
|
33076
|
+
}), YT = { class: "v-actions-region" }, XT = /* @__PURE__ */ H({
|
|
33032
33077
|
name: "ActionsRegion",
|
|
33033
33078
|
inheritAttrs: !1,
|
|
33034
33079
|
__name: "actions",
|
|
@@ -33040,7 +33085,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33040
33085
|
return t({
|
|
33041
33086
|
widgets: o,
|
|
33042
33087
|
widgetsRef: s
|
|
33043
|
-
}), (r, a) => (h(), j("div",
|
|
33088
|
+
}), (r, a) => (h(), j("div", YT, [
|
|
33044
33089
|
(h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
|
|
33045
33090
|
ref_for: !0,
|
|
33046
33091
|
ref_key: "widgetsRef",
|
|
@@ -33050,7 +33095,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33050
33095
|
}, null, 8, ["region", "widget"]))), 256))
|
|
33051
33096
|
]));
|
|
33052
33097
|
}
|
|
33053
|
-
}),
|
|
33098
|
+
}), ZT = { class: "v-apps-region" }, eO = { class: "v-apps-region__header" }, tO = { class: "v-apps-region__top" }, nO = { class: "v-apps-region__bottom" }, oO = { class: "v-apps-region__panels" }, rO = /* @__PURE__ */ H({
|
|
33054
33099
|
name: "AppsRegion",
|
|
33055
33100
|
inheritAttrs: !1,
|
|
33056
33101
|
__name: "apps",
|
|
@@ -33083,9 +33128,9 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33083
33128
|
const b = c.value.find((k) => k.name === _);
|
|
33084
33129
|
u.value = b, p.value = b;
|
|
33085
33130
|
}
|
|
33086
|
-
}), (_, b) => (h(), j("div",
|
|
33087
|
-
N("div",
|
|
33088
|
-
N("div",
|
|
33131
|
+
}), (_, b) => (h(), j("div", ZT, [
|
|
33132
|
+
N("div", eO, [
|
|
33133
|
+
N("div", tO, [
|
|
33089
33134
|
(h(!0), j(Z, null, pe(c.value, (k) => (h(), A(i(vi), {
|
|
33090
33135
|
key: `icon-${k.name}`,
|
|
33091
33136
|
class: ye(`v-apps-region-${k.name}`),
|
|
@@ -33096,7 +33141,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33096
33141
|
onClick: (x) => g(k)
|
|
33097
33142
|
}, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
|
|
33098
33143
|
]),
|
|
33099
|
-
N("div",
|
|
33144
|
+
N("div", nO, [
|
|
33100
33145
|
(h(!0), j(Z, null, pe(d.value, (k) => (h(), A(i(vi), {
|
|
33101
33146
|
key: `icon-${k.name}`,
|
|
33102
33147
|
icon: k.icon,
|
|
@@ -33105,7 +33150,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33105
33150
|
}, null, 8, ["icon", "label", "onClick"]))), 128))
|
|
33106
33151
|
])
|
|
33107
33152
|
]),
|
|
33108
|
-
N("div",
|
|
33153
|
+
N("div", oO, [
|
|
33109
33154
|
(h(!0), j(Z, null, pe(c.value, (k) => (h(), j(Z, {
|
|
33110
33155
|
key: k.name
|
|
33111
33156
|
}, [
|
|
@@ -33132,7 +33177,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33132
33177
|
])
|
|
33133
33178
|
]));
|
|
33134
33179
|
}
|
|
33135
|
-
}),
|
|
33180
|
+
}), sO = /* @__PURE__ */ H({
|
|
33136
33181
|
name: "WorkspaceRegion",
|
|
33137
33182
|
__name: "workspace",
|
|
33138
33183
|
props: {
|
|
@@ -33225,7 +33270,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33225
33270
|
_: 1
|
|
33226
33271
|
}, 8, ["items", "menus", "modelValue", "onRemove"]));
|
|
33227
33272
|
}
|
|
33228
|
-
}),
|
|
33273
|
+
}), aO = /* @__PURE__ */ H({
|
|
33229
33274
|
name: "SettingsRegion",
|
|
33230
33275
|
__name: "settings",
|
|
33231
33276
|
props: {
|
|
@@ -33357,7 +33402,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33357
33402
|
_: 1
|
|
33358
33403
|
})) : B("", !0);
|
|
33359
33404
|
}
|
|
33360
|
-
}),
|
|
33405
|
+
}), lO = { class: "v-status-region" }, iO = { class: "v-status-region__left" }, cO = { class: "v-status-region__right" }, uO = /* @__PURE__ */ H({
|
|
33361
33406
|
name: "StatusRegion",
|
|
33362
33407
|
inheritAttrs: !1,
|
|
33363
33408
|
__name: "status",
|
|
@@ -33369,8 +33414,8 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33369
33414
|
return t({
|
|
33370
33415
|
widgets: o,
|
|
33371
33416
|
widgetsRef: s
|
|
33372
|
-
}), (l, c) => (h(), j("div",
|
|
33373
|
-
N("div",
|
|
33417
|
+
}), (l, c) => (h(), j("div", lO, [
|
|
33418
|
+
N("div", iO, [
|
|
33374
33419
|
(h(!0), j(Z, null, pe(r.value, (d) => (h(), A(i(Cn), {
|
|
33375
33420
|
ref_for: !0,
|
|
33376
33421
|
ref_key: "widgetsRef",
|
|
@@ -33379,7 +33424,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33379
33424
|
widget: d
|
|
33380
33425
|
}, null, 8, ["region", "widget"]))), 256))
|
|
33381
33426
|
]),
|
|
33382
|
-
N("div",
|
|
33427
|
+
N("div", cO, [
|
|
33383
33428
|
(h(!0), j(Z, null, pe(a.value, (d) => (h(), A(i(Cn), {
|
|
33384
33429
|
ref_for: !0,
|
|
33385
33430
|
ref_key: "widgetsRef",
|
|
@@ -33390,7 +33435,7 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33390
33435
|
])
|
|
33391
33436
|
]));
|
|
33392
33437
|
}
|
|
33393
|
-
}),
|
|
33438
|
+
}), dO = /* @__PURE__ */ H({
|
|
33394
33439
|
name: "PreviewRegion",
|
|
33395
33440
|
__name: "preview",
|
|
33396
33441
|
props: {
|
|
@@ -33434,38 +33479,38 @@ const ji = new VT(), PT = /* @__PURE__ */ H({
|
|
|
33434
33479
|
}, 8, ["items", "modelValue"]));
|
|
33435
33480
|
}
|
|
33436
33481
|
}), Li = {
|
|
33437
|
-
EmptyRegion:
|
|
33438
|
-
Brand:
|
|
33439
|
-
Toolbar:
|
|
33440
|
-
Actions:
|
|
33441
|
-
Apps:
|
|
33442
|
-
Workspace:
|
|
33443
|
-
Settings:
|
|
33444
|
-
Status:
|
|
33445
|
-
Preview:
|
|
33482
|
+
EmptyRegion: GT,
|
|
33483
|
+
Brand: WT,
|
|
33484
|
+
Toolbar: QT,
|
|
33485
|
+
Actions: XT,
|
|
33486
|
+
Apps: rO,
|
|
33487
|
+
Workspace: sO,
|
|
33488
|
+
Settings: aO,
|
|
33489
|
+
Status: uO,
|
|
33490
|
+
Preview: dO
|
|
33446
33491
|
};
|
|
33447
33492
|
export {
|
|
33448
33493
|
Kt as $,
|
|
33449
33494
|
Jm as A,
|
|
33450
33495
|
As as B,
|
|
33451
|
-
|
|
33452
|
-
|
|
33496
|
+
PT as C,
|
|
33497
|
+
IO as D,
|
|
33453
33498
|
Gm as E,
|
|
33454
|
-
|
|
33499
|
+
VT as F,
|
|
33455
33500
|
qm as G,
|
|
33456
33501
|
Qm as H,
|
|
33457
33502
|
dr as I,
|
|
33458
|
-
|
|
33503
|
+
CO as J,
|
|
33459
33504
|
Hm as K,
|
|
33460
|
-
|
|
33461
|
-
|
|
33505
|
+
TO as L,
|
|
33506
|
+
OO as M,
|
|
33462
33507
|
An as N,
|
|
33463
|
-
|
|
33508
|
+
DO as O,
|
|
33464
33509
|
zm as P,
|
|
33465
|
-
|
|
33510
|
+
AO as Q,
|
|
33466
33511
|
Wm as R,
|
|
33467
33512
|
aa as S,
|
|
33468
|
-
|
|
33513
|
+
_T as T,
|
|
33469
33514
|
vk as U,
|
|
33470
33515
|
$m as V,
|
|
33471
33516
|
wE as W,
|
|
@@ -33480,7 +33525,7 @@ export {
|
|
|
33480
33525
|
ZC as a3,
|
|
33481
33526
|
ji as a4,
|
|
33482
33527
|
Tn as a5,
|
|
33483
|
-
|
|
33528
|
+
xT as a6,
|
|
33484
33529
|
IA as a7,
|
|
33485
33530
|
Mi as a8,
|
|
33486
33531
|
Bd as a9,
|
|
@@ -33498,12 +33543,12 @@ export {
|
|
|
33498
33543
|
Be as al,
|
|
33499
33544
|
Zn as am,
|
|
33500
33545
|
Ve as an,
|
|
33501
|
-
|
|
33546
|
+
RT as b,
|
|
33502
33547
|
dl as c,
|
|
33503
33548
|
cs as d,
|
|
33504
|
-
|
|
33549
|
+
CT as e,
|
|
33505
33550
|
Ye as f,
|
|
33506
|
-
|
|
33551
|
+
NO as g,
|
|
33507
33552
|
bk as h,
|
|
33508
33553
|
vi as i,
|
|
33509
33554
|
St as j,
|
|
@@ -33513,14 +33558,14 @@ export {
|
|
|
33513
33558
|
xe as n,
|
|
33514
33559
|
Ym as o,
|
|
33515
33560
|
Jn as p,
|
|
33516
|
-
|
|
33561
|
+
OT as q,
|
|
33517
33562
|
Bl as r,
|
|
33518
33563
|
Ul as s,
|
|
33519
|
-
|
|
33564
|
+
HT as t,
|
|
33520
33565
|
Se as u,
|
|
33521
|
-
|
|
33522
|
-
|
|
33523
|
-
|
|
33566
|
+
IT as v,
|
|
33567
|
+
jT as w,
|
|
33568
|
+
ST as x,
|
|
33524
33569
|
kE as y,
|
|
33525
|
-
|
|
33570
|
+
NT as z
|
|
33526
33571
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as E, b as t, c as r, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as K, o as m, p as u, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ta, a4 as ra, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La } from "./index-
|
|
1
|
+
import { A as e, a as E, b as t, c as r, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as K, o as m, p as u, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ta, a4 as ra, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La } from "./index-CylPCp09.js";
|
|
2
2
|
export {
|
|
3
3
|
e as API_METHOD_TYPES,
|
|
4
4
|
E as ActionMenu,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"低代码引擎",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"marked": "~17.0.1",
|
|
30
30
|
"mockjs": "~1.1.0",
|
|
31
31
|
"monaco-editor": "~0.55.0",
|
|
32
|
-
"@vtj/core": "~0.16.
|
|
33
|
-
"@vtj/icons": "~0.16.
|
|
34
|
-
"@vtj/ui": "~0.16.
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/utils": "~0.16.
|
|
37
|
-
"@vtj/
|
|
32
|
+
"@vtj/core": "~0.16.3",
|
|
33
|
+
"@vtj/icons": "~0.16.3",
|
|
34
|
+
"@vtj/ui": "~0.16.3",
|
|
35
|
+
"@vtj/renderer": "~0.16.3",
|
|
36
|
+
"@vtj/utils": "~0.16.3",
|
|
37
|
+
"@vtj/uni": "~0.16.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/mockjs": "~1.0.10",
|
|
@@ -9,7 +9,7 @@ export declare function useAgent(config: AgentConfig): {
|
|
|
9
9
|
parseOutput: (content: string, flag?: string) => ParseResult | null;
|
|
10
10
|
callTool: (tool: ToolCall) => Promise<string>;
|
|
11
11
|
processOutput: (chat: AIChat) => Promise<AIChat>;
|
|
12
|
-
shouldNext: (chat: AIChat) => boolean;
|
|
12
|
+
shouldNext: (chat: AIChat) => boolean | "";
|
|
13
13
|
createNextPrompt: (chat: AIChat) => string;
|
|
14
14
|
getCurrentVue: () => Promise<string>;
|
|
15
15
|
convertVueToDsl: (chat: AIChat) => Promise< BlockSchema | undefined>;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.16.
|
|
5
|
+
* @version 0.16.2
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.16.
|
|
8
|
+
export declare const version = "0.16.2";
|
package/dist/Editor-aMMuGNQY.js
DELETED