@vtj/designer 0.16.6 → 0.16.8

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.6
22
+ * @version 0.16.8
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const dr = "0.16.6", Um = {
25
+ const dr = "0.16.8", Um = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, zm = {
@@ -52,7 +52,7 @@ const dr = "0.16.6", Um = {
52
52
  "once",
53
53
  "passive",
54
54
  "enter"
55
- ], AO = "__vue-devtools-frame-state__", TO = "@id/virtual:vue-devtools-path:overlay.js", OO = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs", Km = [
55
+ ], TO = "__vue-devtools-frame-state__", OO = "@id/virtual:vue-devtools-path:overlay.js", IO = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs", Km = [
56
56
  "h",
57
57
  "t",
58
58
  "t",
@@ -109,7 +109,7 @@ const dr = "0.16.6", Um = {
109
109
  "o",
110
110
  "r",
111
111
  "t"
112
- ].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__", IO = 16 * 1024, qm = "https://app.vtj.pro/#/workbench/token", Qm = {
112
+ ].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__", RO = 16 * 1024, qm = "https://app.vtj.pro/#/workbench/token", Qm = {
113
113
  package: "hotkeys-js",
114
114
  version: "latest",
115
115
  library: "hotkeys",
@@ -117,7 +117,7 @@ const dr = "0.16.6", Um = {
117
117
  required: !0,
118
118
  official: !0,
119
119
  urls: ["@vtj/materials/deps/hotkeys-js/hotkeys.min.js"]
120
- }, RO = {
120
+ }, DO = {
121
121
  package: "vue-devtools",
122
122
  version: "latest",
123
123
  library: "VueDevtools",
@@ -2403,7 +2403,7 @@ function pv(e) {
2403
2403
  toolRegistry: s,
2404
2404
  config: { activeDelayMs: r, ...e }
2405
2405
  };
2406
- wT.forEach((b) => {
2406
+ ET.forEach((b) => {
2407
2407
  s.register({
2408
2408
  name: b.name,
2409
2409
  description: b.description,
@@ -2523,8 +2523,8 @@ function pv(e) {
2523
2523
  };
2524
2524
  },
2525
2525
  shouldNext: (b) => {
2526
- const k = b.content || b.reasoning || "";
2527
- return b.status === "Error" || b.status === "Failed" ? b.message && !b.message.startsWith("4") && !b.message.startsWith("5") : k.includes("F:") || k.includes("R:") ? !1 : !!(b.toolCallId && (b.toolContent || b.message));
2526
+ const k = b.content || b.reasoning || "", x = b.message?.trim() || "";
2527
+ return x.startsWith("4") || x.startsWith("5") || k.includes("F:") || k.includes("R:") ? !1 : !!(b.toolCallId && (b.toolContent || b.message));
2528
2528
  },
2529
2529
  createNextPrompt: (b) => b.toolCallId ? b.toolContent || b.message || "O: 动作执行成功" : b.status === "Error" || b.status === "Failed" ? b.toolContent || b.message || "O: 动作执行失败" : "执行计划",
2530
2530
  getCurrentVue: p,
@@ -8968,7 +8968,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
8968
8968
  ]));
8969
8969
  }
8970
8970
  }), Ye = pp({
8971
- loader: () => import("./Editor-BlbojjPw.js"),
8971
+ loader: () => import("./Editor-Dn1LZw0k.js"),
8972
8972
  loadingComponent: H({
8973
8973
  render() {
8974
8974
  return eo("div", "正在拼命加载...");
@@ -25956,7 +25956,7 @@ ${m}${y}`;
25956
25956
  ]) : B("", !0)
25957
25957
  ]));
25958
25958
  }
25959
- }), dC = { class: "v-ai-widget-new-chat" }, pC = { class: "v-ai-widget-new-chat__input-type" }, fC = /* @__PURE__ */ H({
25959
+ }), dC = { class: "v-ai-widget-new-chat" }, pC = { class: "v-ai-widget-new-chat__input-type" }, fC = { class: "hot-list" }, gC = /* @__PURE__ */ H({
25960
25960
  __name: "new-topic",
25961
25961
  props: {
25962
25962
  models: { default: () => [] },
@@ -26035,7 +26035,7 @@ ${m}${y}`;
26035
26035
  ])]),
26036
26036
  _: 1
26037
26037
  }),
26038
- N("div", null, [
26038
+ N("div", fC, [
26039
26039
  (h(!0), j(Z, null, pe(a.value, (y, _) => (h(), A(i(St), {
26040
26040
  index: _ + 1,
26041
26041
  title: y.title,
@@ -26073,13 +26073,13 @@ ${m}${y}`;
26073
26073
  const s = n, r = D();
26074
26074
  let a = null;
26075
26075
  const l = async () => {
26076
- a && (await a.getAction("editor.action.formatDocument")?.run(), a.setValue(a.getValue()));
26076
+ a && (await a.getAction("editor.action.formatDocument")?.run().catch((u) => u), a.setValue(a.getValue()));
26077
26077
  }, c = async () => {
26078
26078
  await l();
26079
26079
  const u = a?.getValue();
26080
26080
  s("update:modelValue", u), s("blur", u);
26081
26081
  }, d = () => {
26082
- a = Bm.create(r.value, {
26082
+ a && (a.dispose(), a = null), a = Bm.create(r.value, {
26083
26083
  value: o.modelValue,
26084
26084
  language: o.lang,
26085
26085
  readOnly: o.readonly,
@@ -26112,7 +26112,7 @@ ${m}${y}`;
26112
26112
  style: Kn({ height: o.height })
26113
26113
  }, null, 38));
26114
26114
  }
26115
- }), gC = /* @__PURE__ */ H({
26115
+ }), mC = /* @__PURE__ */ H({
26116
26116
  __name: "detail",
26117
26117
  props: {
26118
26118
  chat: {},
@@ -26172,13 +26172,13 @@ ${m}${y}`;
26172
26172
  _: 1
26173
26173
  }));
26174
26174
  }
26175
- }), mC = /* @__PURE__ */ Jt(gC, [["__scopeId", "data-v-3af93469"]]), hC = {
26175
+ }), hC = /* @__PURE__ */ Jt(mC, [["__scopeId", "data-v-3af93469"]]), vC = {
26176
26176
  key: 0,
26177
26177
  class: "v-ai-widget__mask is-limit"
26178
- }, vC = {
26178
+ }, bC = {
26179
26179
  key: 1,
26180
26180
  class: "limit-tip"
26181
- }, bC = { class: "limit-tip__content" }, yC = ["src"], _C = /* @__PURE__ */ H({
26181
+ }, yC = { class: "limit-tip__content" }, _C = ["src"], wC = /* @__PURE__ */ H({
26182
26182
  __name: "invite-tip",
26183
26183
  props: {
26184
26184
  settings: {},
@@ -26187,8 +26187,8 @@ ${m}${y}`;
26187
26187
  setup(e) {
26188
26188
  const t = e, n = V(() => t.settings?.mode === 2 && !t.settings?.invited);
26189
26189
  return (o, s) => (h(), j(Z, null, [
26190
- n.value ? (h(), j("div", hC)) : B("", !0),
26191
- n.value ? (h(), j("div", vC, [
26190
+ n.value ? (h(), j("div", vC)) : B("", !0),
26191
+ n.value ? (h(), j("div", bC, [
26192
26192
  v(i(no), {
26193
26193
  title: "仅限邀请",
26194
26194
  type: "warning",
@@ -26199,23 +26199,23 @@ ${m}${y}`;
26199
26199
  ])]),
26200
26200
  _: 1
26201
26201
  }),
26202
- N("div", bC, [
26202
+ N("div", yC, [
26203
26203
  N("img", {
26204
26204
  class: "limit-tip__qr",
26205
26205
  src: t.getImage(t.settings?.groupQr),
26206
26206
  draggable: "false"
26207
- }, null, 8, yC)
26207
+ }, null, 8, _C)
26208
26208
  ])
26209
26209
  ])) : B("", !0)
26210
26210
  ], 64));
26211
26211
  }
26212
- }), wC = /* @__PURE__ */ Jt(_C, [["__scopeId", "data-v-f0a3b533"]]), EC = {
26212
+ }), EC = /* @__PURE__ */ Jt(wC, [["__scopeId", "data-v-f0a3b533"]]), kC = {
26213
26213
  key: 0,
26214
26214
  class: "v-ai-widget__mask is-limit"
26215
- }, kC = {
26215
+ }, SC = {
26216
26216
  key: 1,
26217
26217
  class: "limit-tip"
26218
- }, SC = { class: "limit-tip__content" }, xC = { class: "price" }, CC = { class: "pay-steps__content" }, AC = ["src"], TC = { class: "pay-steps__content" }, OC = ["src"], IC = { class: "pay-steps__content" }, RC = { class: "order-link" }, DC = { class: "pay-tip" }, NC = /* @__PURE__ */ H({
26218
+ }, xC = { class: "limit-tip__content" }, CC = { class: "price" }, AC = { class: "pay-steps__content" }, TC = ["src"], OC = { class: "pay-steps__content" }, IC = ["src"], RC = { class: "pay-steps__content" }, DC = { class: "order-link" }, NC = { class: "pay-tip" }, VC = /* @__PURE__ */ H({
26219
26219
  __name: "pay-tip",
26220
26220
  props: {
26221
26221
  settings: {},
@@ -26259,8 +26259,8 @@ ${m}${y}`;
26259
26259
  }).catch(() => !1) && await t.cancelOrder(s.value?.id) && (o.value = !1);
26260
26260
  };
26261
26261
  return (g, m) => (h(), j(Z, null, [
26262
- n.value ? (h(), j("div", EC)) : B("", !0),
26263
- n.value ? (h(), j("div", kC, [
26262
+ n.value ? (h(), j("div", kC)) : B("", !0),
26263
+ n.value ? (h(), j("div", SC, [
26264
26264
  v(i(no), {
26265
26265
  title: "免费体验次数已用完",
26266
26266
  type: "warning",
@@ -26271,7 +26271,7 @@ ${m}${y}`;
26271
26271
  ])]),
26272
26272
  _: 1
26273
26273
  }),
26274
- N("div", SC, [
26274
+ N("div", xC, [
26275
26275
  v(i(ve), {
26276
26276
  icon: i(om),
26277
26277
  type: "primary",
@@ -26280,7 +26280,7 @@ ${m}${y}`;
26280
26280
  }, {
26281
26281
  default: E(() => [
26282
26282
  m[2] || (m[2] = ee(" 立即开通 ", -1)),
26283
- N("span", xC, se(Number.parseInt(t.settings?.price)) + "元/月 ", 1)
26283
+ N("span", CC, se(Number.parseInt(t.settings?.price)) + "元/月 ", 1)
26284
26284
  ]),
26285
26285
  _: 1
26286
26286
  }, 8, ["icon"]),
@@ -26376,12 +26376,12 @@ ${m}${y}`;
26376
26376
  }, {
26377
26377
  description: E(() => [
26378
26378
  m[7] || (m[7] = N("div", null, "微信扫码完成支付", -1)),
26379
- N("div", CC, [
26379
+ N("div", AC, [
26380
26380
  N("img", {
26381
26381
  width: "200",
26382
26382
  src: t.getImage(t.settings?.payQr),
26383
26383
  draggable: ""
26384
- }, null, 8, AC)
26384
+ }, null, 8, TC)
26385
26385
  ])
26386
26386
  ]),
26387
26387
  _: 1
@@ -26392,12 +26392,12 @@ ${m}${y}`;
26392
26392
  }, {
26393
26393
  description: E(() => [
26394
26394
  m[8] || (m[8] = N("div", null, "微信扫码添加客服好友", -1)),
26395
- N("div", TC, [
26395
+ N("div", OC, [
26396
26396
  N("img", {
26397
26397
  width: "200",
26398
26398
  src: t.getImage(t.settings?.contactQr),
26399
26399
  draggable: ""
26400
- }, null, 8, OC)
26400
+ }, null, 8, IC)
26401
26401
  ])
26402
26402
  ]),
26403
26403
  _: 1
@@ -26409,8 +26409,8 @@ ${m}${y}`;
26409
26409
  }, {
26410
26410
  description: E(() => [
26411
26411
  m[10] || (m[10] = N("div", null, "复制以下订单信息发送给客服", -1)),
26412
- N("div", IC, [
26413
- N("div", RC, se(r.value), 1),
26412
+ N("div", RC, [
26413
+ N("div", DC, se(r.value), 1),
26414
26414
  v(i(ve), {
26415
26415
  size: "small",
26416
26416
  icon: i(sc),
@@ -26428,7 +26428,7 @@ ${m}${y}`;
26428
26428
  ]),
26429
26429
  _: 1
26430
26430
  }),
26431
- N("div", DC, [
26431
+ N("div", NC, [
26432
26432
  m[11] || (m[11] = N("strong", null, "提示:", -1)),
26433
26433
  ee(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方" + se(parseInt(String(t.settings?.max || 0), 10)) + "百万tokens使用量。 ", 1)
26434
26434
  ])
@@ -26437,7 +26437,7 @@ ${m}${y}`;
26437
26437
  }, 8, ["modelValue"])
26438
26438
  ], 64));
26439
26439
  }
26440
- }), VC = /* @__PURE__ */ Jt(NC, [["__scopeId", "data-v-5aac6f5d"]]), PC = { class: "v-ai-widget__input" }, MC = /* @__PURE__ */ H({
26440
+ }), PC = /* @__PURE__ */ Jt(VC, [["__scopeId", "data-v-5aac6f5d"]]), MC = { class: "v-ai-widget__input" }, jC = /* @__PURE__ */ H({
26441
26441
  name: "AIWidget",
26442
26442
  __name: "index",
26443
26443
  setup(e) {
@@ -26587,7 +26587,7 @@ ${m}${y}`;
26587
26587
  ]),
26588
26588
  default: E(() => [
26589
26589
  rt.value ? B("", !0) : (h(), A(Zx, { key: 0 })),
26590
- i(o) ? (h(), A(fC, {
26590
+ i(o) ? (h(), A(gC, {
26591
26591
  key: 1,
26592
26592
  models: i(r),
26593
26593
  loading: i(s),
@@ -26630,7 +26630,7 @@ ${m}${y}`;
26630
26630
  ], 64))), 128)),
26631
26631
  i(l).length ? B("", !0) : (h(), A(i(nt), { key: 0 }))
26632
26632
  ], 512)),
26633
- i(k) ? (h(), A(mC, {
26633
+ i(k) ? (h(), A(hC, {
26634
26634
  key: 3,
26635
26635
  modelValue: i(x),
26636
26636
  "onUpdate:modelValue": mt[0] || (mt[0] = (at) => to(x) ? x.value = at : null),
@@ -26644,7 +26644,7 @@ ${m}${y}`;
26644
26644
  i(o) ? void 0 : {
26645
26645
  name: "footer",
26646
26646
  fn: E(() => [
26647
- N("div", PC, [
26647
+ N("div", MC, [
26648
26648
  v(i(ve), {
26649
26649
  class: "new-btn",
26650
26650
  round: "",
@@ -26716,12 +26716,12 @@ ${m}${y}`;
26716
26716
  ]),
26717
26717
  _: 1
26718
26718
  }, 8, ["modelValue"]),
26719
- i(z) ? (h(), A(wC, {
26719
+ i(z) ? (h(), A(EC, {
26720
26720
  key: 0,
26721
26721
  settings: i(z),
26722
26722
  "get-image": i(te)
26723
26723
  }, null, 8, ["settings", "get-image"])) : B("", !0),
26724
- i(z) ? (h(), A(VC, {
26724
+ i(z) ? (h(), A(PC, {
26725
26725
  key: 1,
26726
26726
  remote: i(t).remote,
26727
26727
  settings: i(z),
@@ -26734,7 +26734,7 @@ ${m}${y}`;
26734
26734
  _: 1
26735
26735
  }));
26736
26736
  }
26737
- }), jC = `(app) => {
26737
+ }), LC = `(app) => {
26738
26738
  return {
26739
26739
  state: () => {
26740
26740
  return {
@@ -26748,17 +26748,17 @@ ${m}${y}`;
26748
26748
 
26749
26749
  }
26750
26750
  }
26751
- }`, LC = `(app) => {
26751
+ }`, BC = `(app) => {
26752
26752
  // 在此添加增强代码
26753
- }`, BC = `(config, app) => {
26753
+ }`, UC = `(config, app) => {
26754
26754
  return config;
26755
- }`, UC = `(res, app) => {
26755
+ }`, zC = `(res, app) => {
26756
26756
  return res;
26757
- }`, zC = `(to, from, next, app) => {
26757
+ }`, $C = `(to, from, next, app) => {
26758
26758
  next();
26759
- }`, $C = `(to, from, failure, app) => {
26759
+ }`, FC = `(to, from, failure, app) => {
26760
26760
 
26761
- }`, FC = `(app) => {
26761
+ }`, HC = `(app) => {
26762
26762
  return {
26763
26763
  // session: false,
26764
26764
  // authKey: 'Authorization',
@@ -26771,7 +26771,7 @@ ${m}${y}`;
26771
26771
  // noPermissionMessage: '无权限访问该页面',
26772
26772
  // statusKey: 'code'
26773
26773
  }
26774
- }`, HC = `(app) => {
26774
+ }`, JC = `(app) => {
26775
26775
  return {
26776
26776
  // baseURL: '/',
26777
26777
  // timeout: 60000,
@@ -26786,7 +26786,7 @@ ${m}${y}`;
26786
26786
  // }
26787
26787
  // }
26788
26788
  }
26789
- }`, JC = /* @__PURE__ */ H({
26789
+ }`, GC = /* @__PURE__ */ H({
26790
26790
  name: "GlobalsWidget",
26791
26791
  __name: "index",
26792
26792
  setup(e) {
@@ -26834,7 +26834,7 @@ ${m}${y}`;
26834
26834
  v(kn, {
26835
26835
  title: "应用状态「Pinia」",
26836
26836
  subtitle: "JSFunction",
26837
- "default-code": jC,
26837
+ "default-code": LC,
26838
26838
  "model-value": n("store"),
26839
26839
  onChange: r[2] || (r[2] = (a) => o("store", a))
26840
26840
  }, null, 8, ["model-value"])
@@ -26850,7 +26850,7 @@ ${m}${y}`;
26850
26850
  v(kn, {
26851
26851
  title: "权限控制「Access」",
26852
26852
  subtitle: "JSFunction",
26853
- "default-code": FC,
26853
+ "default-code": HC,
26854
26854
  "model-value": n("access"),
26855
26855
  onChange: r[4] || (r[4] = (a) => o("access", a))
26856
26856
  }, null, 8, ["model-value"])
@@ -26866,7 +26866,7 @@ ${m}${y}`;
26866
26866
  v(kn, {
26867
26867
  title: "应用增强「JS」",
26868
26868
  subtitle: "JSFunction",
26869
- "default-code": LC,
26869
+ "default-code": BC,
26870
26870
  "model-value": n("enhance"),
26871
26871
  onChange: r[6] || (r[6] = (a) => o("enhance", a))
26872
26872
  }, null, 8, ["model-value"])
@@ -26899,7 +26899,7 @@ ${m}${y}`;
26899
26899
  v(kn, {
26900
26900
  title: "请求配置「IRequestOptions」",
26901
26901
  subtitle: "JSFunction",
26902
- "default-code": HC,
26902
+ "default-code": JC,
26903
26903
  "model-value": n("axios"),
26904
26904
  onChange: r[8] || (r[8] = (a) => o("axios", a))
26905
26905
  }, null, 8, ["model-value"])
@@ -26915,7 +26915,7 @@ ${m}${y}`;
26915
26915
  v(kn, {
26916
26916
  title: "请求拦截器",
26917
26917
  subtitle: "JSFunction",
26918
- "default-code": BC,
26918
+ "default-code": UC,
26919
26919
  "model-value": n("request"),
26920
26920
  onChange: r[10] || (r[10] = (a) => o("request", a))
26921
26921
  }, null, 8, ["model-value"])
@@ -26931,7 +26931,7 @@ ${m}${y}`;
26931
26931
  v(kn, {
26932
26932
  title: "响应拦截器",
26933
26933
  subtitle: "JSFunction",
26934
- "default-code": UC,
26934
+ "default-code": zC,
26935
26935
  "model-value": n("response"),
26936
26936
  onChange: r[12] || (r[12] = (a) => o("response", a))
26937
26937
  }, null, 8, ["model-value"])
@@ -26964,7 +26964,7 @@ ${m}${y}`;
26964
26964
  v(kn, {
26965
26965
  title: "前置守卫「beforeEach」",
26966
26966
  subtitle: "JSFunction",
26967
- "default-code": zC,
26967
+ "default-code": $C,
26968
26968
  "model-value": n("beforeEach"),
26969
26969
  onChange: r[14] || (r[14] = (a) => o("beforeEach", a))
26970
26970
  }, null, 8, ["model-value"])
@@ -26980,7 +26980,7 @@ ${m}${y}`;
26980
26980
  v(kn, {
26981
26981
  title: "后置守卫「afterEach」",
26982
26982
  subtitle: "JSFunction",
26983
- "default-code": $C,
26983
+ "default-code": FC,
26984
26984
  "model-value": n("afterEach"),
26985
26985
  onChange: r[16] || (r[16] = (a) => o("afterEach", a))
26986
26986
  }, null, 8, ["model-value"])
@@ -26994,7 +26994,7 @@ ${m}${y}`;
26994
26994
  _: 1
26995
26995
  }));
26996
26996
  }
26997
- }), GC = /* @__PURE__ */ H({
26997
+ }), KC = /* @__PURE__ */ H({
26998
26998
  name: "I18nWidget",
26999
26999
  __name: "index",
27000
27000
  setup(e) {
@@ -27135,7 +27135,7 @@ ${m}${y}`;
27135
27135
  _: 1
27136
27136
  }));
27137
27137
  }
27138
- }), KC = { class: "v-hotkeys-item" }, WC = { class: "v-hotkeys-item__value" }, qC = /* @__PURE__ */ H({
27138
+ }), WC = { class: "v-hotkeys-item" }, qC = { class: "v-hotkeys-item__value" }, QC = /* @__PURE__ */ H({
27139
27139
  name: "HotkeysWidget",
27140
27140
  inheritAttrs: !1,
27141
27141
  __name: "index",
@@ -27156,15 +27156,15 @@ ${m}${y}`;
27156
27156
  onCommand: s
27157
27157
  }, {
27158
27158
  item: E(({ item: l }) => [
27159
- N("div", KC, [
27159
+ N("div", WC, [
27160
27160
  N("span", null, se(l.label), 1),
27161
- N("span", WC, se(l.value), 1)
27161
+ N("span", qC, se(l.value), 1)
27162
27162
  ])
27163
27163
  ]),
27164
27164
  _: 1
27165
27165
  }, 8, ["menus"]));
27166
27166
  }
27167
- }), QC = /* @__PURE__ */ H({
27167
+ }), YC = /* @__PURE__ */ H({
27168
27168
  name: "DevtoolsWidget",
27169
27169
  inheritAttrs: !1,
27170
27170
  __name: "index",
@@ -27236,7 +27236,7 @@ ${m}${y}`;
27236
27236
  }, 8, ["class", "src", "resizable", "modelValue", "onOpen", "onClose"])) : B("", !0)
27237
27237
  ], 64));
27238
27238
  }
27239
- }), YC = /* @__PURE__ */ H({
27239
+ }), XC = /* @__PURE__ */ H({
27240
27240
  name: "Themer",
27241
27241
  inheritAttrs: !1,
27242
27242
  __name: "index",
@@ -27255,7 +27255,7 @@ ${m}${y}`;
27255
27255
  size: "small"
27256
27256
  }, n.value, { onClick: o }), null, 16));
27257
27257
  }
27258
- }), XC = /* @__PURE__ */ H({
27258
+ }), ZC = /* @__PURE__ */ H({
27259
27259
  name: "EnvWidget",
27260
27260
  __name: "index",
27261
27261
  setup(e) {
@@ -27399,14 +27399,14 @@ ${m}${y}`;
27399
27399
  Market: XS,
27400
27400
  Templates: sx,
27401
27401
  UserAvatar: lx,
27402
- AI: MC,
27403
- Globals: JC,
27404
- I18n: GC,
27405
- Hotkeys: qC,
27406
- Devtools: QC,
27407
- Themer: YC,
27408
- Env: XC
27409
- }, ZC = [
27402
+ AI: jC,
27403
+ Globals: GC,
27404
+ I18n: KC,
27405
+ Hotkeys: QC,
27406
+ Devtools: YC,
27407
+ Themer: XC,
27408
+ Env: ZC
27409
+ }, eA = [
27410
27410
  {
27411
27411
  name: "Logo",
27412
27412
  region: "Brand",
@@ -27721,7 +27721,7 @@ ${m}${y}`;
27721
27721
  component: Ve.Themer,
27722
27722
  group: Rt.Right
27723
27723
  }
27724
- ], eA = [
27724
+ ], tA = [
27725
27725
  {
27726
27726
  package: "vue",
27727
27727
  version: "latest",
@@ -27949,7 +27949,7 @@ ${m}${y}`;
27949
27949
  official: !0,
27950
27950
  enabled: !0
27951
27951
  }
27952
- ], tA = [
27952
+ ], nA = [
27953
27953
  {
27954
27954
  id: "html",
27955
27955
  category: "HTML"
@@ -27962,7 +27962,7 @@ ${m}${y}`;
27962
27962
  id: "components",
27963
27963
  category: "内置组件"
27964
27964
  }
27965
- ], nA = [
27965
+ ], oA = [
27966
27966
  {
27967
27967
  name: "div",
27968
27968
  label: "容器",
@@ -28107,8 +28107,8 @@ ${m}${y}`;
28107
28107
  children: "默认插槽内容"
28108
28108
  }
28109
28109
  }
28110
- ], oA = [
28111
- ...nA,
28110
+ ], rA = [
28111
+ ...oA,
28112
28112
  {
28113
28113
  name: "Transition",
28114
28114
  label: "过渡效果",
@@ -28462,23 +28462,23 @@ ${m}${y}`;
28462
28462
  }
28463
28463
  ]
28464
28464
  }
28465
- ], rA = [
28465
+ ], sA = [
28466
28466
  {
28467
28467
  name: Xr,
28468
28468
  version: "latest",
28469
28469
  label: "内置",
28470
28470
  library: Xr,
28471
28471
  order: 0,
28472
- categories: tA,
28473
- components: oA
28472
+ categories: nA,
28473
+ components: rA
28474
28474
  }
28475
- ], sA = /* @__PURE__ */ H({
28475
+ ], aA = /* @__PURE__ */ H({
28476
28476
  name: "StringSetter",
28477
28477
  __name: "string",
28478
28478
  setup(e) {
28479
28479
  return (t, n) => (h(), A(i(Xe), it({ clearable: "" }, t.$attrs), null, 16));
28480
28480
  }
28481
- }), aA = /* @__PURE__ */ H({
28481
+ }), lA = /* @__PURE__ */ H({
28482
28482
  name: "BooleanSetter",
28483
28483
  __name: "boolean",
28484
28484
  setup(e) {
@@ -28486,7 +28486,7 @@ ${m}${y}`;
28486
28486
  "model-value": !!t.$attrs.modelValue
28487
28487
  }), null, 16, ["model-value"]));
28488
28488
  }
28489
- }), lA = "{{", iA = "}}", cA = /* @__PURE__ */ H({
28489
+ }), iA = "{{", cA = "}}", uA = /* @__PURE__ */ H({
28490
28490
  name: "ExpressionSetter",
28491
28491
  __name: "expression",
28492
28492
  props: {
@@ -28522,15 +28522,15 @@ ${m}${y}`;
28522
28522
  onChange: l
28523
28523
  }, {
28524
28524
  prefix: E(() => [
28525
- ee(se(lA))
28525
+ ee(se(iA))
28526
28526
  ]),
28527
28527
  suffix: E(() => [
28528
- ee(se(iA))
28528
+ ee(se(cA))
28529
28529
  ]),
28530
28530
  _: 1
28531
28531
  }, 8, ["modelValue"]));
28532
28532
  }
28533
- }), uA = /* @__PURE__ */ H({
28533
+ }), dA = /* @__PURE__ */ H({
28534
28534
  name: "SelectSetter",
28535
28535
  __name: "select",
28536
28536
  props: {
@@ -28547,7 +28547,7 @@ ${m}${y}`;
28547
28547
  _: 1
28548
28548
  }, 16));
28549
28549
  }
28550
- }), dA = /* @__PURE__ */ H({
28550
+ }), pA = /* @__PURE__ */ H({
28551
28551
  name: "NumberSetter",
28552
28552
  __name: "number",
28553
28553
  props: {
@@ -28564,13 +28564,13 @@ ${m}${y}`;
28564
28564
  "model-value": s.value
28565
28565
  }, a.$attrs, { onChange: r }), null, 16, ["model-value"]));
28566
28566
  }
28567
- }), pA = /* @__PURE__ */ H({
28567
+ }), fA = /* @__PURE__ */ H({
28568
28568
  name: "ColorSetter",
28569
28569
  __name: "color",
28570
28570
  setup(e) {
28571
28571
  return (t, n) => (h(), A(i(Sp), Ia(Ra(t.$attrs)), null, 16));
28572
28572
  }
28573
- }), fA = /* @__PURE__ */ H({
28573
+ }), gA = /* @__PURE__ */ H({
28574
28574
  name: "RadioSetter",
28575
28575
  __name: "radio",
28576
28576
  props: {
@@ -28602,7 +28602,7 @@ ${m}${y}`;
28602
28602
  _: 1
28603
28603
  }, 16));
28604
28604
  }
28605
- }), gA = ["label", "title", "onClick"], mA = /* @__PURE__ */ H({
28605
+ }), mA = ["label", "title", "onClick"], hA = /* @__PURE__ */ H({
28606
28606
  name: "TagSetter",
28607
28607
  __name: "tag",
28608
28608
  props: {
@@ -28633,10 +28633,10 @@ ${m}${y}`;
28633
28633
  }, null, 8, ["src"])) : (h(), j(Z, { key: 1 }, [
28634
28634
  ee(se(l.label), 1)
28635
28635
  ], 64))
28636
- ], 10, gA))), 256))
28636
+ ], 10, mA))), 256))
28637
28637
  ], 16));
28638
28638
  }
28639
- }), hA = {
28639
+ }), vA = {
28640
28640
  mounted(e, t) {
28641
28641
  const n = {};
28642
28642
  typeof t.value == "number" ? n.step = t.value : typeof t.value == "object" && Object.assign(n, t.value);
@@ -28698,10 +28698,10 @@ ${m}${y}`;
28698
28698
  "onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f),
28699
28699
  onChange: l
28700
28700
  }, c.$attrs), null, 16, ["unit", "with-unit", "modelValue"])), [
28701
- [i(hA)]
28701
+ [i(vA)]
28702
28702
  ]);
28703
28703
  }
28704
- }), vA = { class: "v-image-setter__plus" }, bA = /* @__PURE__ */ H({
28704
+ }), bA = { class: "v-image-setter__plus" }, yA = /* @__PURE__ */ H({
28705
28705
  name: "ImageSetter",
28706
28706
  __name: "image",
28707
28707
  props: {
@@ -28746,14 +28746,14 @@ ${m}${y}`;
28746
28746
  "on-remove": c
28747
28747
  }, d.$attrs), {
28748
28748
  default: E(() => [
28749
- N("span", vA, [
28749
+ N("span", bA, [
28750
28750
  v(i(Bt), { icon: i(hc) }, null, 8, ["icon"])
28751
28751
  ])
28752
28752
  ]),
28753
28753
  _: 1
28754
28754
  }, 16, ["class", "file-list"]));
28755
28755
  }
28756
- }), yA = { class: "v-section-setter" }, _A = /* @__PURE__ */ H({
28756
+ }), _A = { class: "v-section-setter" }, wA = /* @__PURE__ */ H({
28757
28757
  name: "SectionSetter",
28758
28758
  __name: "section",
28759
28759
  props: {
@@ -28773,7 +28773,7 @@ ${m}${y}`;
28773
28773
  const r = () => {
28774
28774
  o("change", s.value.join(" ").trim());
28775
28775
  };
28776
- return (a, l) => (h(), j("div", yA, [
28776
+ return (a, l) => (h(), j("div", _A, [
28777
28777
  (h(!0), j(Z, null, pe(n.sections, (c) => (h(), A(Ld, {
28778
28778
  name: c - 1,
28779
28779
  modelValue: s.value[c - 1],
@@ -28783,7 +28783,7 @@ ${m}${y}`;
28783
28783
  }, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
28784
28784
  ]));
28785
28785
  }
28786
- }), wA = { class: "v-slider-setter" }, EA = /* @__PURE__ */ H({
28786
+ }), EA = { class: "v-slider-setter" }, kA = /* @__PURE__ */ H({
28787
28787
  name: "SliderSetter",
28788
28788
  __name: "slider",
28789
28789
  props: {
@@ -28804,7 +28804,7 @@ ${m}${y}`;
28804
28804
  const r = () => {
28805
28805
  s.value = void 0, o("change", void 0), o("update:modelValue", void 0);
28806
28806
  };
28807
- return (a, l) => (h(), j("div", wA, [
28807
+ return (a, l) => (h(), j("div", EA, [
28808
28808
  v(i(xp), it({ size: "small" }, a.$attrs, {
28809
28809
  modelValue: s.value,
28810
28810
  "onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c)
@@ -29076,7 +29076,7 @@ ${m}${y}`;
29076
29076
  "discount-o",
29077
29077
  "ecard-pay",
29078
29078
  "envelop-o"
29079
- ], kA = { class: "van-icon-setter" }, SA = { class: "van-icon-setter__body" }, xA = { class: "van-icon-setter__content" }, CA = { class: "van-icon-setter__list" }, AA = ["onClick"], TA = /* @__PURE__ */ H({
29079
+ ], SA = { class: "van-icon-setter" }, xA = { class: "van-icon-setter__body" }, CA = { class: "van-icon-setter__content" }, AA = { class: "van-icon-setter__list" }, TA = ["onClick"], OA = /* @__PURE__ */ H({
29080
29080
  name: "VanIconSetter",
29081
29081
  __name: "index",
29082
29082
  props: {
@@ -29099,7 +29099,7 @@ ${m}${y}`;
29099
29099
  }, p = () => {
29100
29100
  s.value = !0;
29101
29101
  };
29102
- return (g, m) => (h(), j("div", kA, [
29102
+ return (g, m) => (h(), j("div", SA, [
29103
29103
  v(i(Xe), {
29104
29104
  size: o.size,
29105
29105
  readonly: "",
@@ -29141,7 +29141,7 @@ ${m}${y}`;
29141
29141
  })
29142
29142
  ]),
29143
29143
  default: E(() => [
29144
- N("div", SA, [
29144
+ N("div", xA, [
29145
29145
  v(i(Xe), {
29146
29146
  size: o.size,
29147
29147
  "prefix-icon": i(un),
@@ -29151,8 +29151,8 @@ ${m}${y}`;
29151
29151
  placeholder: "请输入查询关键字",
29152
29152
  class: "van-icon-setter__input"
29153
29153
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
29154
- N("div", xA, [
29155
- N("div", CA, [
29154
+ N("div", CA, [
29155
+ N("div", AA, [
29156
29156
  (h(!0), j(Z, null, pe(c.value, (y) => (h(), j("i", {
29157
29157
  onClick: (_) => d(y),
29158
29158
  class: ye([
@@ -29161,7 +29161,7 @@ ${m}${y}`;
29161
29161
  "van-icon",
29162
29162
  "van-icon-setter__item"
29163
29163
  ])
29164
- }, null, 10, AA))), 256)),
29164
+ }, null, 10, TA))), 256)),
29165
29165
  c.value.length === 0 ? (h(), A(i(nt), {
29166
29166
  key: 0,
29167
29167
  class: "empty-wrapper"
@@ -29174,30 +29174,30 @@ ${m}${y}`;
29174
29174
  }, 8, ["modelValue"])) : B("", !0)
29175
29175
  ]));
29176
29176
  }
29177
- }), OA = /* @__PURE__ */ Jt(TA, [["__scopeId", "data-v-b0e9c57b"]]), Qe = {
29178
- StringSetter: sA,
29179
- BooleanSetter: aA,
29180
- ExpressionSetter: cA,
29181
- SelectSetter: uA,
29182
- NumberSetter: dA,
29183
- ColorSetter: pA,
29177
+ }), IA = /* @__PURE__ */ Jt(OA, [["__scopeId", "data-v-b0e9c57b"]]), Qe = {
29178
+ StringSetter: aA,
29179
+ BooleanSetter: lA,
29180
+ ExpressionSetter: uA,
29181
+ SelectSetter: dA,
29182
+ NumberSetter: pA,
29183
+ ColorSetter: fA,
29184
29184
  IconSetter: ld,
29185
29185
  JsonSetter: Aa,
29186
29186
  FunctionSetter: kn,
29187
- RadioSetter: fA,
29188
- TagSetter: mA,
29187
+ RadioSetter: gA,
29188
+ TagSetter: hA,
29189
29189
  SizeSetter: Ld,
29190
- ImageSetter: bA,
29191
- SectionSetter: _A,
29192
- SliderSetter: EA,
29190
+ ImageSetter: yA,
29191
+ SectionSetter: wA,
29192
+ SliderSetter: kA,
29193
29193
  FileSetter: pl,
29194
- VanIconSetter: OA,
29194
+ VanIconSetter: IA,
29195
29195
  CssSetter: bl
29196
- }, IA = {
29196
+ }, RA = {
29197
29197
  name: "StringSetter",
29198
29198
  component: Qe.StringSetter,
29199
29199
  type: "String"
29200
- }, RA = [
29200
+ }, DA = [
29201
29201
  {
29202
29202
  name: "InputSetter",
29203
29203
  component: Qe.StringSetter,
@@ -29339,7 +29339,7 @@ ${m}${y}`;
29339
29339
  component: Qe.CssSetter,
29340
29340
  type: "String"
29341
29341
  }
29342
- ], DA = {
29342
+ ], NA = {
29343
29343
  name: "getSkills",
29344
29344
  description: `获取技能文档, 调用示例:
29345
29345
  \`\`\`json
@@ -29358,7 +29358,7 @@ ${m}${y}`;
29358
29358
  }
29359
29359
  ],
29360
29360
  createHandler: ({ config: e }) => async (...t) => e.getSkills ? await e.getSkills(t) : ""
29361
- }, NA = {
29361
+ }, VA = {
29362
29362
  name: "getMenus",
29363
29363
  description: "获取当前项目的页面菜单树结构",
29364
29364
  parameters: [],
@@ -29374,7 +29374,7 @@ ${m}${y}`;
29374
29374
  children: d
29375
29375
  };
29376
29376
  })
29377
- }, VA = {
29377
+ }, PA = {
29378
29378
  name: "getPages",
29379
29379
  description: "获取当前项目的全部页面",
29380
29380
  parameters: [],
@@ -29389,7 +29389,7 @@ ${m}${y}`;
29389
29389
  icon: c
29390
29390
  };
29391
29391
  })
29392
- }, PA = {
29392
+ }, MA = {
29393
29393
  name: "createPage",
29394
29394
  description: `在当前项目新建页面。有层级的页面,需先创建父级,例如如先创建目录或布局类型的页面。示例:
29395
29395
  \`\`\`json
@@ -29435,7 +29435,7 @@ ${m}${y}`;
29435
29435
  },
29436
29436
  layout: {
29437
29437
  type: "boolean",
29438
- description: "是否布局页面,布局页面的子级是子页面,需要以 RouterView 结合",
29438
+ description: "是否布局页面,布局页面的子级是子页面,需要以 RouterView 结合,UniApp平台不支持目录和布局类型",
29439
29439
  required: !1
29440
29440
  }
29441
29441
  }
@@ -29452,7 +29452,8 @@ ${m}${y}`;
29452
29452
  throw new Error(
29453
29453
  "调用 createPage 工具参数错误,第一个参数要求是 PageFile 对象"
29454
29454
  );
29455
- const s = o || n.parentId, r = await e.createPage(
29455
+ e.platform === "uniapp" && (n.dir = !1, n.layout = !1);
29456
+ const r = o || n.parentId, a = await e.createPage(
29456
29457
  Object.assign(
29457
29458
  {
29458
29459
  cache: !1,
@@ -29470,19 +29471,19 @@ ${m}${y}`;
29470
29471
  },
29471
29472
  n
29472
29473
  ),
29473
- s
29474
+ r
29474
29475
  );
29475
- r.dir || (e.active(r), await Ie(t.activeDelayMs));
29476
- const { name: a, title: l, layout: c, dir: d } = n;
29477
- return r ? {
29478
- name: a,
29479
- title: l,
29480
- layout: c,
29481
- dir: d,
29482
- id: r.id
29476
+ a.dir || (e.active(a), await Ie(t.activeDelayMs));
29477
+ const { name: l, title: c, layout: d, dir: f } = n;
29478
+ return a ? {
29479
+ name: l,
29480
+ title: c,
29481
+ layout: d,
29482
+ dir: f,
29483
+ id: a.id
29483
29484
  } : null;
29484
29485
  }
29485
- }, MA = {
29486
+ }, jA = {
29486
29487
  name: "updatePage",
29487
29488
  description: "更改页面文件元信息",
29488
29489
  parameters: [
@@ -29527,7 +29528,7 @@ ${m}${y}`;
29527
29528
  }
29528
29529
  throw new Error("页面不存在");
29529
29530
  }
29530
- }, jA = {
29531
+ }, LA = {
29531
29532
  name: "movePage",
29532
29533
  description: "更改页面层级,布局和目录类型的页面可以有子级页面",
29533
29534
  parameters: [
@@ -29545,7 +29546,7 @@ ${m}${y}`;
29545
29546
  }
29546
29547
  ],
29547
29548
  createHandler: ({ project: e }) => async (t, n) => e.movePageTo(t, n)
29548
- }, LA = {
29549
+ }, BA = {
29549
29550
  name: "removePage",
29550
29551
  description: "删除页面或目录文件, 如删除目录或布局类型的页面,需先删除子级页面",
29551
29552
  parameters: [
@@ -29557,7 +29558,7 @@ ${m}${y}`;
29557
29558
  }
29558
29559
  ],
29559
29560
  createHandler: ({ project: e, config: t }) => async (n) => (e.removePage(n), await Ie(t.activeDelayMs), !0)
29560
- }, BA = {
29561
+ }, UA = {
29561
29562
  name: "getBlocks",
29562
29563
  description: "获取当前项目的全部区块组件",
29563
29564
  parameters: [],
@@ -29569,7 +29570,7 @@ ${m}${y}`;
29569
29570
  title: r
29570
29571
  };
29571
29572
  })
29572
- }, UA = {
29573
+ }, zA = {
29573
29574
  name: "createBlock",
29574
29575
  description: "在当前项目新建区块组件",
29575
29576
  parameters: [
@@ -29606,7 +29607,7 @@ ${m}${y}`;
29606
29607
  id: o.id
29607
29608
  } : null;
29608
29609
  }
29609
- }, zA = {
29610
+ }, $A = {
29610
29611
  name: "updateBlock",
29611
29612
  description: "更改区块文件元信息",
29612
29613
  parameters: [
@@ -29646,7 +29647,7 @@ ${m}${y}`;
29646
29647
  }
29647
29648
  throw new Error("区块文件不存在");
29648
29649
  }
29649
- }, $A = {
29650
+ }, FA = {
29650
29651
  name: "removeBlock",
29651
29652
  description: "删除区块文件",
29652
29653
  parameters: [
@@ -29658,7 +29659,7 @@ ${m}${y}`;
29658
29659
  }
29659
29660
  ],
29660
29661
  createHandler: ({ project: e, config: t }) => async (n) => (e.removeBlock(n), await Ie(t.activeDelayMs), !0)
29661
- }, FA = {
29662
+ }, HA = {
29662
29663
  name: "active",
29663
29664
  description: "打开一个文件(页面或区块组件)",
29664
29665
  parameters: [
@@ -29673,7 +29674,7 @@ ${m}${y}`;
29673
29674
  const o = e.getFile(n);
29674
29675
  return o ? (e.active(o), await Ie(t.activeDelayMs), !0) : null;
29675
29676
  }
29676
- }, HA = {
29677
+ }, JA = {
29677
29678
  name: "getCurrentFile",
29678
29679
  description: "获取当前打开的文件(页面、区块)元信息",
29679
29680
  parameters: [],
@@ -29689,7 +29690,7 @@ ${m}${y}`;
29689
29690
  }
29690
29691
  throw new Error("当前没有打开的文件");
29691
29692
  }
29692
- }, JA = {
29693
+ }, GA = {
29693
29694
  name: "getCurrentFileContent",
29694
29695
  description: "获取当前打开的文件(页面、区块)内容源码",
29695
29696
  parameters: [],
@@ -29703,7 +29704,7 @@ ${m}${y}`;
29703
29704
  }
29704
29705
  throw new Error("当前没有打开的文件");
29705
29706
  }
29706
- }, GA = {
29707
+ }, KA = {
29707
29708
  name: "refresh",
29708
29709
  description: "刷新当前页面或区块组件运行时,当需要检测代码是否存在运行时错误可调用",
29709
29710
  parameters: [],
@@ -29715,7 +29716,7 @@ ${m}${y}`;
29715
29716
  ${n.message}
29716
29717
  请检查页面代码并修复` : !0;
29717
29718
  }
29718
- }, KA = {
29719
+ }, WA = {
29719
29720
  name: "setApi",
29720
29721
  description: "新增或更新项目接口API",
29721
29722
  parameters: [
@@ -29752,14 +29753,14 @@ ${n.message}
29752
29753
  return await Ie(t.activeDelayMs), o;
29753
29754
  };
29754
29755
  }
29755
- }, WA = {
29756
+ }, qA = {
29756
29757
  name: "getApis",
29757
29758
  description: "获取当前项目可用的APIs",
29758
29759
  parameters: [],
29759
29760
  createHandler({ project: e, config: t }) {
29760
29761
  return async () => (await Ie(t.activeDelayMs), e.apis);
29761
29762
  }
29762
- }, qA = {
29763
+ }, QA = {
29763
29764
  name: "removeApi",
29764
29765
  description: "删除API",
29765
29766
  parameters: [
@@ -29771,7 +29772,7 @@ ${n.message}
29771
29772
  }
29772
29773
  ],
29773
29774
  createHandler: ({ project: e, config: t }) => async (n) => (e.removeApi(n), await Ie(t.activeDelayMs), !0)
29774
- }, QA = {
29775
+ }, YA = {
29775
29776
  name: "removeApis",
29776
29777
  description: "批量删除API",
29777
29778
  parameters: [
@@ -29791,7 +29792,7 @@ ${n.message}
29791
29792
  e.removeApi(o);
29792
29793
  return await Ie(t.activeDelayMs), !0;
29793
29794
  }
29794
- }, YA = {
29795
+ }, XA = {
29795
29796
  name: "setHomepage",
29796
29797
  description: "设置应用主页, 把页面设置为应用的主页",
29797
29798
  parameters: [
@@ -29803,7 +29804,7 @@ ${n.message}
29803
29804
  }
29804
29805
  ],
29805
29806
  createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await Ie(t.activeDelayMs), !0)
29806
- }, XA = {
29807
+ }, ZA = {
29807
29808
  name: "setGlobalCss",
29808
29809
  description: "设置应用的全局css代码",
29809
29810
  parameters: [
@@ -29815,12 +29816,12 @@ ${n.message}
29815
29816
  }
29816
29817
  ],
29817
29818
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("css", n), await Ie(t.activeDelayMs), !0)
29818
- }, ZA = {
29819
+ }, eT = {
29819
29820
  name: "getGlobalCss",
29820
29821
  description: "获取应用的全局css代码",
29821
29822
  parameters: [],
29822
29823
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.css || "没有全局CSS")
29823
- }, eT = {
29824
+ }, tT = {
29824
29825
  name: "setGlobalStore",
29825
29826
  description: "设置应用的全局Pinia状态",
29826
29827
  parameters: [
@@ -29845,7 +29846,8 @@ ${n.message}
29845
29846
  }
29846
29847
  }
29847
29848
  \`\`\`
29848
- store的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回一个标准 Pinia Store
29849
+ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回一个标准 Pinia Store
29850
+ 你可以调用 getSkills 工具或取 pinia 的用法
29849
29851
  `,
29850
29852
  required: !0
29851
29853
  }
@@ -29854,12 +29856,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
29854
29856
  type: "JSFunction",
29855
29857
  value: n
29856
29858
  }), await Ie(t.activeDelayMs), !0)
29857
- }, tT = {
29859
+ }, nT = {
29858
29860
  name: "getGlobalStore",
29859
29861
  description: "获取应用的全局状态(Pinia Store)",
29860
29862
  parameters: [],
29861
29863
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
29862
- }, nT = {
29864
+ }, oT = {
29863
29865
  name: "setGlobalAccess",
29864
29866
  description: `设置权限控制插件配置项, 配置样例:
29865
29867
  \`\`\`javascript
@@ -29880,95 +29882,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
29880
29882
  \`\`\`
29881
29883
 
29882
29884
  权限控制配置的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回 AccessOptions 配置项对象
29883
-
29884
- 配置项说明:
29885
-
29886
- export interface AccessOptions {
29887
- /**
29888
- * 开启session, token 储存到cookie,关闭浏览器将登录失效
29889
- */
29890
- session: boolean;
29891
-
29892
- /**
29893
- * 请求头和cookie记录token名称
29894
- */
29895
- authKey: string;
29896
-
29897
- /**
29898
- * 本地缓存key前缀
29899
- */
29900
- storagePrefix: string;
29901
-
29902
- /**
29903
- * 本地缓存key
29904
- */
29905
- storageKey: string;
29906
-
29907
- /**
29908
- * 路由拦截白名单
29909
- */
29910
- whiteList?: string[] | ((to: RouteLocationNormalized) => boolean);
29911
-
29912
- /**
29913
- * 未授权页面路由路径
29914
- */
29915
- unauthorized?: string | (() => void);
29916
-
29917
- /**
29918
- * 授权登录页面 pathname
29919
- */
29920
- auth?: string | ((search: string) => void);
29921
-
29922
- /**
29923
- * 判断是否登录页面
29924
- * @param path
29925
- * @returns
29926
- */
29927
- isAuth?: (to: RouteLocationNormalized) => boolean;
29928
-
29929
- /**
29930
- * 重定向参数名
29931
- */
29932
- redirectParam?: string;
29933
-
29934
- /**
29935
- * 未登录响应状态码
29936
- */
29937
- unauthorizedCode?: number;
29938
-
29939
- /**
29940
- * 提示信息方法
29941
- * @param message
29942
- * @returns
29943
- */
29944
- alert?: (message: string, options?: Record<string, any>) => Promise<any>;
29945
-
29946
- /**
29947
- * 未登录提示文本
29948
- */
29949
- unauthorizedMessage?: string;
29950
-
29951
- /**
29952
- * 无权限提示
29953
- */
29954
- noPermissionMessage?: string;
29955
-
29956
- /**
29957
- * RSA解密私钥
29958
- */
29959
- privateKey?: string;
29960
-
29961
- /**
29962
- * 应用编码
29963
- */
29964
- appName?: string;
29965
-
29966
- /**
29967
- * 请求响应数据状态的key
29968
- */
29969
- statusKey?: string;
29970
- }
29971
-
29885
+ 你可以调用 getSkills 工具或取 access 用法
29972
29886
  `,
29973
29887
  parameters: [
29974
29888
  {
@@ -29982,17 +29896,17 @@ export interface AccessOptions {
29982
29896
  type: "JSFunction",
29983
29897
  value: n
29984
29898
  }), await Ie(t.activeDelayMs), !0)
29985
- }, oT = {
29899
+ }, rT = {
29986
29900
  name: "getGlobalAccess",
29987
29901
  description: "查看权限控制插件配置项",
29988
29902
  parameters: [],
29989
29903
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
29990
- }, rT = {
29904
+ }, sT = {
29991
29905
  name: "getGlobalAxios",
29992
29906
  description: "查看Axios请求工具配置项",
29993
29907
  parameters: [],
29994
29908
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
29995
- }, sT = {
29909
+ }, aT = {
29996
29910
  name: "setGlobalAxios",
29997
29911
  description: `
29998
29912
  设置全局Axios请求工具配置项, 配置样例:
@@ -30015,79 +29929,7 @@ export interface AccessOptions {
30015
29929
  }
30016
29930
  \`\`\`
30017
29931
  设置全局Axios请求工具配置项的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回 IRequestOptions 配置项对象
30018
-
30019
- export interface IRequestOptions extends CreateAxiosDefaults {
30020
- settings?: IRequestSettings;
30021
- }
30022
-
30023
- settings 配置项说明:
30024
-
30025
- export interface IRequestSettings {
30026
- /**
30027
- * 发送数据类型
30028
- */
30029
- type?: 'form' | 'json' | 'data';
30030
-
30031
- /**
30032
- * 是否注入自定义的请求头
30033
- */
30034
- injectHeaders?: boolean;
30035
-
30036
- /**
30037
- * 自定义请求头
30038
- */
30039
- headers?:
30040
- | RawAxiosRequestHeaders
30041
- | ((
30042
- id: string,
30043
- config: AxiosRequestConfig,
30044
- settings: IRequestSettings
30045
- ) => RawAxiosRequestHeaders);
30046
- /**
30047
- * 是否显示 loading
30048
- */
30049
- loading?: boolean;
30050
-
30051
- /**
30052
- * 显示 loading
30053
- */
30054
- showLoading?: () => void;
30055
- /**
30056
- * 关闭 loading
30057
- */
30058
- hideLoading?: () => void;
30059
-
30060
- /**
30061
- * 显示失败提示
30062
- */
30063
- failMessage?: boolean;
30064
-
30065
- /**
30066
- * 自定义失败提示
30067
- */
30068
- showError?: (msg: string, e: any) => void;
30069
-
30070
- /**
30071
- * 返回原始 axios 响应对象
30072
- */
30073
- originResponse?: boolean;
30074
-
30075
- /**
30076
- * 校验响应成功
30077
- */
30078
- validSuccess?: boolean;
30079
-
30080
- /**
30081
- * 自定义校验方法
30082
- */
30083
- validate?: (res: AxiosResponse) => boolean;
30084
-
30085
- /**
30086
- * 请求响应警告执行程序插件
30087
- */
30088
- skipWarn?: IRequestSkipWarn;
30089
-
30090
- }
29932
+ 你可以调用 getSkills 工具或取 axios 用法
30091
29933
  `,
30092
29934
  parameters: [
30093
29935
  {
@@ -30101,7 +29943,7 @@ export interface IRequestSettings {
30101
29943
  type: "JSFunction",
30102
29944
  value: n
30103
29945
  }), await Ie(t.activeDelayMs), !0)
30104
- }, aT = {
29946
+ }, lT = {
30105
29947
  name: "setGlobalRequestInterceptor",
30106
29948
  description: `设置全局Axios全局请求拦截器, 代码样例:
30107
29949
 
@@ -30130,12 +29972,12 @@ axios请求拦截的代码是一个js函数,函数接收两个参数:
30130
29972
  type: "JSFunction",
30131
29973
  value: n
30132
29974
  }), await Ie(t.activeDelayMs), !0)
30133
- }, lT = {
29975
+ }, iT = {
30134
29976
  name: "getGlobalRequestInterceptor",
30135
29977
  description: "查看全局Axios全局请求拦截器",
30136
29978
  parameters: [],
30137
29979
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
30138
- }, iT = {
29980
+ }, cT = {
30139
29981
  name: "setGlobalResponseInterceptor",
30140
29982
  description: `设置全局Axios全局响应拦截器, 代码样例:
30141
29983
 
@@ -30164,22 +30006,22 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30164
30006
  type: "JSFunction",
30165
30007
  value: n
30166
30008
  }), await Ie(t.activeDelayMs), !0)
30167
- }, cT = {
30009
+ }, uT = {
30168
30010
  name: "getGlobalResponseInterceptor",
30169
30011
  description: "查看全局Axios全局响应拦截器",
30170
30012
  parameters: [],
30171
30013
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
30172
- }, uT = {
30014
+ }, dT = {
30173
30015
  name: "getGlobalBeforeEach",
30174
30016
  description: "查看全局前置路由守卫",
30175
30017
  parameters: [],
30176
30018
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
30177
- }, dT = {
30019
+ }, pT = {
30178
30020
  name: "getGlobalAfterEach",
30179
30021
  description: "查看全局后置路由守卫",
30180
30022
  parameters: [],
30181
30023
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
30182
- }, pT = {
30024
+ }, fT = {
30183
30025
  name: "setGlobalBeforeEach",
30184
30026
  description: `设置全局前置路由守卫, 代码样例:
30185
30027
 
@@ -30210,7 +30052,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30210
30052
  type: "JSFunction",
30211
30053
  value: n
30212
30054
  }), await Ie(t.activeDelayMs), !0)
30213
- }, fT = {
30055
+ }, gT = {
30214
30056
  name: "setGlobalAfterEach",
30215
30057
  description: `设置全局后置路由守卫, 代码样例:
30216
30058
 
@@ -30241,7 +30083,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30241
30083
  type: "JSFunction",
30242
30084
  value: n
30243
30085
  }), await Ie(t.activeDelayMs), !0)
30244
- }, gT = {
30086
+ }, mT = {
30245
30087
  name: "getNodeSelected",
30246
30088
  description: "获取当前页面选中的节点路径,用于定位当前选中的页面元素,路径最后一个是选中的元素名称",
30247
30089
  parameters: [],
@@ -30251,12 +30093,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30251
30093
  const n = t.selected.value?.path;
30252
30094
  return n ? n.map((o) => o.name).reverse().join(">") : null;
30253
30095
  }
30254
- }, mT = {
30096
+ }, hT = {
30255
30097
  name: "getEnv",
30256
30098
  description: "获取环境变量列表, 环境变量的值可用 `app.config.globalProperties.$provider.env.变量名` 或在组件中用 `this.$provider.env.变量名`获取",
30257
30099
  parameters: [],
30258
30100
  createHandler: ({ project: e }) => async () => e.env || []
30259
- }, hT = {
30101
+ }, vT = {
30260
30102
  name: "createEnv",
30261
30103
  description: "新增环境变量",
30262
30104
  parameters: [
@@ -30288,7 +30130,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30288
30130
  const n = [...e.env, t];
30289
30131
  return e.setEnv(n), !0;
30290
30132
  }
30291
- }, vT = {
30133
+ }, bT = {
30292
30134
  name: "removeEnv",
30293
30135
  description: "删除环境变量",
30294
30136
  parameters: [
@@ -30303,12 +30145,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30303
30145
  const n = (e.env || []).filter((o) => o.name !== t);
30304
30146
  return e.setEnv(n), !0;
30305
30147
  }
30306
- }, bT = {
30148
+ }, yT = {
30307
30149
  name: "getI18nMessage",
30308
30150
  description: "获取 vue-i18n 的 message 中英对照词条, 在组件可用 `this.$t.key` 调用词条",
30309
30151
  parameters: [],
30310
30152
  createHandler: ({ project: e }) => async () => e.i18n.messages || []
30311
- }, yT = {
30153
+ }, _T = {
30312
30154
  name: "createI18nMessage",
30313
30155
  description: "新增 vue-i18n 的 message 中英对照词条",
30314
30156
  parameters: [
@@ -30337,7 +30179,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30337
30179
  }
30338
30180
  ],
30339
30181
  createHandler: ({ project: e }) => async (t) => (e.i18n.messages?.push(t), e.setI18n(e.i18n), !0)
30340
- }, _T = {
30182
+ }, wT = {
30341
30183
  name: "removeI18nMessage",
30342
30184
  description: "删除 vue-i18n 的 message 词条",
30343
30185
  parameters: [
@@ -30351,16 +30193,15 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30351
30193
  createHandler: ({ project: e }) => async (t) => (e.i18n.messages = e.i18n.messages?.filter(
30352
30194
  (n) => n.key !== t
30353
30195
  ), e.setI18n(e.i18n), !0)
30354
- }, wT = [
30355
- DA,
30196
+ }, ET = [
30356
30197
  NA,
30357
30198
  VA,
30358
- BA,
30359
30199
  PA,
30200
+ UA,
30360
30201
  MA,
30361
30202
  jA,
30362
30203
  LA,
30363
- UA,
30204
+ BA,
30364
30205
  zA,
30365
30206
  $A,
30366
30207
  FA,
@@ -30382,9 +30223,9 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30382
30223
  sT,
30383
30224
  aT,
30384
30225
  lT,
30385
- cT,
30386
30226
  iT,
30387
30227
  uT,
30228
+ cT,
30388
30229
  dT,
30389
30230
  pT,
30390
30231
  fT,
@@ -30394,16 +30235,17 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30394
30235
  vT,
30395
30236
  bT,
30396
30237
  yT,
30397
- _T
30238
+ _T,
30239
+ wT
30398
30240
  ];
30399
- class ET {
30241
+ class kT {
30400
30242
  constructor() {
30401
30243
  fe(this, "widgets", {});
30402
30244
  this.widgets = this.createWidgets();
30403
30245
  }
30404
30246
  createWidgets() {
30405
30247
  const t = {};
30406
- for (const n of ZC)
30248
+ for (const n of eA)
30407
30249
  t[n.name] = n;
30408
30250
  return t;
30409
30251
  }
@@ -30466,9 +30308,9 @@ class ET {
30466
30308
  this.getRemoteWidgets().forEach((n) => this.unregister(n.name));
30467
30309
  }
30468
30310
  }
30469
- const Zn = new ET();
30470
- class kT {
30471
- constructor(t = eA) {
30311
+ const Zn = new kT();
30312
+ class ST {
30313
+ constructor(t = tA) {
30472
30314
  this.deps = t;
30473
30315
  }
30474
30316
  /**
@@ -30542,16 +30384,16 @@ class kT {
30542
30384
  n > -1 && this.deps.splice(n, 1);
30543
30385
  }
30544
30386
  }
30545
- const Mi = new kT();
30546
- class ST {
30387
+ const Mi = new ST();
30388
+ class xT {
30547
30389
  constructor() {
30548
30390
  fe(this, "setters", {});
30549
- fe(this, "defaultSetter", IA);
30391
+ fe(this, "defaultSetter", RA);
30550
30392
  this.setters = this.createSetters();
30551
30393
  }
30552
30394
  createSetters() {
30553
30395
  const t = {};
30554
- for (const n of RA)
30396
+ for (const n of DA)
30555
30397
  t[n.name] = n;
30556
30398
  return t;
30557
30399
  }
@@ -30588,7 +30430,7 @@ class ST {
30588
30430
  return Object.values(this.setters).filter((o) => o.type.toLowerCase() === t.toLowerCase()).map((o) => o.name);
30589
30431
  }
30590
30432
  }
30591
- const nr = new ST(), Jn = H({
30433
+ const nr = new xT(), Jn = H({
30592
30434
  name: "RegionWrapper",
30593
30435
  props: {
30594
30436
  region: {
@@ -30631,7 +30473,7 @@ const nr = new ST(), Jn = H({
30631
30473
  ref: "widgetRef"
30632
30474
  });
30633
30475
  }
30634
- }), xT = H({
30476
+ }), CT = H({
30635
30477
  name: "SkeletonWrapper",
30636
30478
  setup() {
30637
30479
  const e = D(), t = Be(), n = D({});
@@ -30646,7 +30488,7 @@ const nr = new ST(), Jn = H({
30646
30488
  },
30647
30489
  render() {
30648
30490
  const { $props: e = {}, $attrs: t = {} } = this;
30649
- return eo(LT, { ...e, ...t, ref: "skeletonRef" });
30491
+ return eo(BT, { ...e, ...t, ref: "skeletonRef" });
30650
30492
  },
30651
30493
  methods: {
30652
30494
  /**
@@ -30801,7 +30643,7 @@ const nr = new ST(), Jn = H({
30801
30643
  onRemove: p,
30802
30644
  disabled: g
30803
30645
  } = this;
30804
- return eo(JT, {
30646
+ return eo(GT, {
30805
30647
  context: e,
30806
30648
  current: t,
30807
30649
  name: n,
@@ -30831,7 +30673,7 @@ const nr = new ST(), Jn = H({
30831
30673
  }
30832
30674
  }
30833
30675
  });
30834
- function CT(e, t) {
30676
+ function AT(e, t) {
30835
30677
  return new Promise((n, o) => {
30836
30678
  const s = Da(kE, {
30837
30679
  name: e,
@@ -30846,7 +30688,7 @@ function CT(e, t) {
30846
30688
  s.mount(document.createElement("div"));
30847
30689
  });
30848
30690
  }
30849
- class AT {
30691
+ class TT {
30850
30692
  constructor(t, n, o) {
30851
30693
  fe(this, "proxied", {});
30852
30694
  fe(this, "document", null);
@@ -30943,7 +30785,7 @@ class AT {
30943
30785
  const { name: p, params: g = [] } = f[0];
30944
30786
  return p === "default" && !g.length ? void 0 : f[0];
30945
30787
  }
30946
- const u = await CT(t.name, f).catch(() => null);
30788
+ const u = await AT(t.name, f).catch(() => null);
30947
30789
  if (!(u && u.name === "default" && (!u.params || u.params?.length === 0)))
30948
30790
  return u;
30949
30791
  }
@@ -31170,13 +31012,13 @@ class AT {
31170
31012
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.lines.value = [], t && n && this.unbindEvents(t, n), this.document = null;
31171
31013
  }
31172
31014
  }
31173
- const TT = [
31015
+ const OT = [
31174
31016
  '"ResizeObserver loop completed with undelivered notifications."',
31175
31017
  "ResizeObserver loop completed with undelivered notifications.",
31176
31018
  '"ResizeObserver loop completed with undelivered notifications."',
31177
31019
  "ResizeObserver loop limit exceeded"
31178
31020
  ];
31179
- class OT {
31021
+ class IT {
31180
31022
  constructor(t, n, o) {
31181
31023
  fe(this, "api");
31182
31024
  fe(this, "remote");
@@ -31217,7 +31059,7 @@ class OT {
31217
31059
  bindGlobalError() {
31218
31060
  window.addEventListener("error", (t) => {
31219
31061
  const n = t.error || t;
31220
- TT.includes(n.message) || this.error(n, {
31062
+ OT.includes(n.message) || this.error(n, {
31221
31063
  type: "window.error",
31222
31064
  event: n,
31223
31065
  eventString: n.toString()
@@ -31286,7 +31128,7 @@ class OT {
31286
31128
  }), console.error(t);
31287
31129
  }
31288
31130
  }
31289
- class IT {
31131
+ class RT {
31290
31132
  constructor(t, n, o, s, r = null, a = null) {
31291
31133
  fe(this, "app", null);
31292
31134
  fe(this, "dsl", null);
@@ -31443,7 +31285,7 @@ class IT {
31443
31285
  return !1;
31444
31286
  }
31445
31287
  }
31446
- class RT extends Zi {
31288
+ class DT extends Zi {
31447
31289
  constructor(n) {
31448
31290
  super();
31449
31291
  fe(this, "contentWindow", null);
@@ -31462,7 +31304,7 @@ class RT extends Zi {
31462
31304
  le(
31463
31305
  [n, o, s, r, a, l, c, d],
31464
31306
  () => {
31465
- 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 AT(
31307
+ 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 TT(
31466
31308
  this.engine,
31467
31309
  this.contentWindow,
31468
31310
  o
@@ -31595,7 +31437,7 @@ class RT extends Zi {
31595
31437
  m,
31596
31438
  r
31597
31439
  );
31598
- this.renderer = new IT(
31440
+ this.renderer = new RT(
31599
31441
  y,
31600
31442
  c,
31601
31443
  f,
@@ -31671,7 +31513,7 @@ class RT extends Zi {
31671
31513
  this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null, this.resetReady();
31672
31514
  }
31673
31515
  }
31674
- class DT {
31516
+ class NT {
31675
31517
  constructor(t, n) {
31676
31518
  fe(this, "components", []);
31677
31519
  fe(this, "componentMap", /* @__PURE__ */ new Map());
@@ -31712,7 +31554,7 @@ class DT {
31712
31554
  return n;
31713
31555
  }
31714
31556
  load(t) {
31715
- const n = [...rA, ...t].filter((o) => !!o);
31557
+ const n = [...sA, ...t].filter((o) => !!o);
31716
31558
  n.sort((o, s) => o.order - s.order), this.components = [];
31717
31559
  for (let o of n)
31718
31560
  o.components && (this.components = this.components.concat(o.components));
@@ -31760,9 +31602,9 @@ class DT {
31760
31602
  this.caches = {};
31761
31603
  }
31762
31604
  }
31763
- class NO {
31605
+ class VO {
31764
31606
  }
31765
- const NT = {
31607
+ const VT = {
31766
31608
  outlineEnabled: !0,
31767
31609
  activeEvent: !0,
31768
31610
  autoApply: !0,
@@ -31773,9 +31615,9 @@ const NT = {
31773
31615
  dark: !1,
31774
31616
  streaming: !1
31775
31617
  };
31776
- class VT {
31618
+ class PT {
31777
31619
  constructor() {
31778
- fe(this, "__state", an(NT));
31620
+ fe(this, "__state", an(VT));
31779
31621
  fe(this, "__isDark", Oh({
31780
31622
  storageKey: "color-schema"
31781
31623
  }));
@@ -31860,7 +31702,7 @@ class VT {
31860
31702
  return this.__state.LLMs.find((n) => n.id === t);
31861
31703
  }
31862
31704
  }
31863
- class PT {
31705
+ class MT {
31864
31706
  constructor() {
31865
31707
  /**
31866
31708
  * 工具存储
@@ -31985,7 +31827,7 @@ class PT {
31985
31827
  }
31986
31828
  }
31987
31829
  const Bd = Symbol("VtjEngine"), aa = "SAVE_BLOCK_FILE_FINISH";
31988
- class VO extends Zi {
31830
+ class PO extends Zi {
31989
31831
  constructor(n) {
31990
31832
  super();
31991
31833
  fe(this, "app");
@@ -32031,9 +31873,9 @@ class VO extends Zi {
32031
31873
  // 是否检查版本
32032
31874
  fe(this, "openApi");
32033
31875
  // OpenAPI服务
32034
- fe(this, "state", new VT());
31876
+ fe(this, "state", new PT());
32035
31877
  // 引擎状态
32036
- fe(this, "toolRegistry", new PT());
31878
+ fe(this, "toolRegistry", new MT());
32037
31879
  this.options = n;
32038
31880
  const {
32039
31881
  container: o,
@@ -32065,11 +31907,11 @@ class VO extends Zi {
32065
31907
  adapter: p,
32066
31908
  pageRouteName: u,
32067
31909
  install: g
32068
- }), this.assets = new DT(this.service, this.provider), this.simulator = new RT({
31910
+ }), this.assets = new NT(this.service, this.provider), this.simulator = new DT({
32069
31911
  engine: this,
32070
31912
  materialPath: d,
32071
31913
  enhance: this.getEnhanceConfig(k)
32072
- }), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new OT(this.remote, this.access, this.service), this.checkVersion = _, this.bindEvents(), this.init(r).then(this.render.bind(this)), gs(this.dispose.bind(this));
31914
+ }), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new IT(this.remote, this.access, this.service), this.checkVersion = _, this.bindEvents(), this.init(r).then(this.render.bind(this)), gs(this.dispose.bind(this));
32073
31915
  }
32074
31916
  /**
32075
31917
  * 初始化引擎
@@ -32126,7 +31968,7 @@ class VO extends Zi {
32126
31968
  render() {
32127
31969
  const n = i(this.container);
32128
31970
  if (n) {
32129
- const o = Da(xT);
31971
+ const o = Da(CT);
32130
31972
  this.options.install && o.use(this.options.install, this), o.provide(Bd, gp(this)), o.mount(n), this.app = o;
32131
31973
  } else
32132
31974
  jn.warn("VTJEngine constructor param [ container ] is undefined");
@@ -32365,7 +32207,7 @@ function Be() {
32365
32207
  const e = fs(Bd, null);
32366
32208
  return e || jn.error("VTJEngine is not exist"), e;
32367
32209
  }
32368
- class MT {
32210
+ class jT {
32369
32211
  constructor() {
32370
32212
  // 缓存正则表达式,避免重复编译
32371
32213
  fe(this, "vueCodeRegex", /```vue\r?\n([\s\S]*?)(?:\r?\n```|$)/);
@@ -32667,7 +32509,7 @@ ${r.join(`
32667
32509
  }), n;
32668
32510
  }
32669
32511
  }
32670
- const ji = new MT(), jT = /* @__PURE__ */ H({
32512
+ const ji = new jT(), LT = /* @__PURE__ */ H({
32671
32513
  __name: "tour",
32672
32514
  setup(e) {
32673
32515
  const t = Be();
@@ -32727,7 +32569,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
32727
32569
  _: 1
32728
32570
  }, 8, ["modelValue"]));
32729
32571
  }
32730
- }), LT = /* @__PURE__ */ H({
32572
+ }), BT = /* @__PURE__ */ H({
32731
32573
  name: "Skeletion",
32732
32574
  __name: "skeleton",
32733
32575
  props: {
@@ -32885,15 +32727,15 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
32885
32727
  ]),
32886
32728
  _: 1
32887
32729
  }),
32888
- v(jT)
32730
+ v(LT)
32889
32731
  ]),
32890
32732
  _: 1
32891
32733
  }, 8, ["locale"]));
32892
32734
  }
32893
- }), BT = ["title"], UT = { class: "v-setter__content" }, zT = {
32735
+ }), UT = ["title"], zT = { class: "v-setter__content" }, $T = {
32894
32736
  key: 0,
32895
32737
  class: "v-setter__input"
32896
- }, $T = { class: "v-setter__action" }, FT = "{{", HT = "}}", JT = /* @__PURE__ */ H({
32738
+ }, FT = { class: "v-setter__action" }, HT = "{{", JT = "}}", GT = /* @__PURE__ */ H({
32897
32739
  __name: "setter",
32898
32740
  props: {
32899
32741
  context: {},
@@ -32961,11 +32803,11 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
32961
32803
  }, 8, ["content"])) : (h(), j("span", {
32962
32804
  key: 1,
32963
32805
  title: n.name
32964
- }, se(n.label || n.name), 9, BT))
32806
+ }, se(n.label || n.name), 9, UT))
32965
32807
  ]),
32966
32808
  default: E(() => [
32967
- N("div", UT, [
32968
- a.value ? (h(), j("div", zT, [
32809
+ N("div", zT, [
32810
+ a.value ? (h(), j("div", $T, [
32969
32811
  c.value ? B("", !0) : (h(), A(zi(a.value.component), it({
32970
32812
  key: 0,
32971
32813
  current: n.current,
@@ -32984,15 +32826,15 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
32984
32826
  "model-value": "JSExpression"
32985
32827
  }, {
32986
32828
  prefix: E(() => [
32987
- ee(se(FT))
32829
+ ee(se(HT))
32988
32830
  ]),
32989
32831
  suffix: E(() => [
32990
- ee(se(HT))
32832
+ ee(se(JT))
32991
32833
  ]),
32992
32834
  _: 1
32993
32835
  })) : B("", !0)
32994
32836
  ])) : B("", !0),
32995
- N("div", $T, [
32837
+ N("div", FT, [
32996
32838
  n.variable ? (h(), A(i(Im), {
32997
32839
  key: 0,
32998
32840
  onClick: g,
@@ -33054,16 +32896,16 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33054
32896
  _: 1
33055
32897
  }));
33056
32898
  }
33057
- }), GT = { class: "v-empty-region" }, KT = /* @__PURE__ */ H({
32899
+ }), KT = { class: "v-empty-region" }, WT = /* @__PURE__ */ H({
33058
32900
  name: "EmptyRegion",
33059
32901
  __name: "empty",
33060
32902
  props: {
33061
32903
  region: {}
33062
32904
  },
33063
32905
  setup(e) {
33064
- return (t, n) => (h(), j("div", GT, "找不到符合【" + se(e.region) + "】名称的区域组件", 1));
32906
+ return (t, n) => (h(), j("div", KT, "找不到符合【" + se(e.region) + "】名称的区域组件", 1));
33065
32907
  }
33066
- }), WT = { class: "v-brand-region" }, qT = /* @__PURE__ */ H({
32908
+ }), qT = { class: "v-brand-region" }, QT = /* @__PURE__ */ H({
33067
32909
  name: "BrandRegion",
33068
32910
  inheritAttrs: !1,
33069
32911
  __name: "brand",
@@ -33075,7 +32917,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33075
32917
  return t({
33076
32918
  widgets: o,
33077
32919
  widgetsRef: s
33078
- }), (r, a) => (h(), j("div", WT, [
32920
+ }), (r, a) => (h(), j("div", qT, [
33079
32921
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33080
32922
  ref_for: !0,
33081
32923
  ref_key: "widgetsRef",
@@ -33085,7 +32927,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33085
32927
  }, null, 8, ["region", "widget"]))), 256))
33086
32928
  ]));
33087
32929
  }
33088
- }), QT = { class: "v-toolbar-region" }, YT = /* @__PURE__ */ H({
32930
+ }), YT = { class: "v-toolbar-region" }, XT = /* @__PURE__ */ H({
33089
32931
  name: "ToolbarRegion",
33090
32932
  __name: "toolbar",
33091
32933
  props: {
@@ -33097,7 +32939,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33097
32939
  return t({
33098
32940
  widgets: o,
33099
32941
  widgetsRef: s
33100
- }), (r, a) => (h(), j("div", QT, [
32942
+ }), (r, a) => (h(), j("div", YT, [
33101
32943
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33102
32944
  ref_for: !0,
33103
32945
  ref_key: "widgetsRef",
@@ -33108,7 +32950,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33108
32950
  }, null, 8, ["region", "widget", "preview"]))), 256))
33109
32951
  ]));
33110
32952
  }
33111
- }), XT = { class: "v-actions-region" }, ZT = /* @__PURE__ */ H({
32953
+ }), ZT = { class: "v-actions-region" }, eO = /* @__PURE__ */ H({
33112
32954
  name: "ActionsRegion",
33113
32955
  inheritAttrs: !1,
33114
32956
  __name: "actions",
@@ -33120,7 +32962,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33120
32962
  return t({
33121
32963
  widgets: o,
33122
32964
  widgetsRef: s
33123
- }), (r, a) => (h(), j("div", XT, [
32965
+ }), (r, a) => (h(), j("div", ZT, [
33124
32966
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33125
32967
  ref_for: !0,
33126
32968
  ref_key: "widgetsRef",
@@ -33130,7 +32972,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33130
32972
  }, null, 8, ["region", "widget"]))), 256))
33131
32973
  ]));
33132
32974
  }
33133
- }), eO = { class: "v-apps-region" }, tO = { class: "v-apps-region__header" }, nO = { class: "v-apps-region__top" }, oO = { class: "v-apps-region__bottom" }, rO = { class: "v-apps-region__panels" }, sO = /* @__PURE__ */ H({
32975
+ }), tO = { class: "v-apps-region" }, nO = { class: "v-apps-region__header" }, oO = { class: "v-apps-region__top" }, rO = { class: "v-apps-region__bottom" }, sO = { class: "v-apps-region__panels" }, aO = /* @__PURE__ */ H({
33134
32976
  name: "AppsRegion",
33135
32977
  inheritAttrs: !1,
33136
32978
  __name: "apps",
@@ -33163,9 +33005,9 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33163
33005
  const b = c.value.find((k) => k.name === _);
33164
33006
  u.value = b, p.value = b;
33165
33007
  }
33166
- }), (_, b) => (h(), j("div", eO, [
33167
- N("div", tO, [
33168
- N("div", nO, [
33008
+ }), (_, b) => (h(), j("div", tO, [
33009
+ N("div", nO, [
33010
+ N("div", oO, [
33169
33011
  (h(!0), j(Z, null, pe(c.value, (k) => (h(), A(i(vi), {
33170
33012
  key: `icon-${k.name}`,
33171
33013
  class: ye(`v-apps-region-${k.name}`),
@@ -33176,7 +33018,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33176
33018
  onClick: (x) => g(k)
33177
33019
  }, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
33178
33020
  ]),
33179
- N("div", oO, [
33021
+ N("div", rO, [
33180
33022
  (h(!0), j(Z, null, pe(d.value, (k) => (h(), A(i(vi), {
33181
33023
  key: `icon-${k.name}`,
33182
33024
  icon: k.icon,
@@ -33185,7 +33027,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33185
33027
  }, null, 8, ["icon", "label", "onClick"]))), 128))
33186
33028
  ])
33187
33029
  ]),
33188
- N("div", rO, [
33030
+ N("div", sO, [
33189
33031
  (h(!0), j(Z, null, pe(c.value, (k) => (h(), j(Z, {
33190
33032
  key: k.name
33191
33033
  }, [
@@ -33212,7 +33054,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33212
33054
  ])
33213
33055
  ]));
33214
33056
  }
33215
- }), aO = /* @__PURE__ */ H({
33057
+ }), lO = /* @__PURE__ */ H({
33216
33058
  name: "WorkspaceRegion",
33217
33059
  __name: "workspace",
33218
33060
  props: {
@@ -33305,7 +33147,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33305
33147
  _: 1
33306
33148
  }, 8, ["items", "menus", "modelValue", "onRemove"]));
33307
33149
  }
33308
- }), lO = /* @__PURE__ */ H({
33150
+ }), iO = /* @__PURE__ */ H({
33309
33151
  name: "SettingsRegion",
33310
33152
  __name: "settings",
33311
33153
  props: {
@@ -33437,7 +33279,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33437
33279
  _: 1
33438
33280
  })) : B("", !0);
33439
33281
  }
33440
- }), iO = { class: "v-status-region" }, cO = { class: "v-status-region__left" }, uO = { class: "v-status-region__right" }, dO = /* @__PURE__ */ H({
33282
+ }), cO = { class: "v-status-region" }, uO = { class: "v-status-region__left" }, dO = { class: "v-status-region__right" }, pO = /* @__PURE__ */ H({
33441
33283
  name: "StatusRegion",
33442
33284
  inheritAttrs: !1,
33443
33285
  __name: "status",
@@ -33449,8 +33291,8 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33449
33291
  return t({
33450
33292
  widgets: o,
33451
33293
  widgetsRef: s
33452
- }), (l, c) => (h(), j("div", iO, [
33453
- N("div", cO, [
33294
+ }), (l, c) => (h(), j("div", cO, [
33295
+ N("div", uO, [
33454
33296
  (h(!0), j(Z, null, pe(r.value, (d) => (h(), A(i(Cn), {
33455
33297
  ref_for: !0,
33456
33298
  ref_key: "widgetsRef",
@@ -33459,7 +33301,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33459
33301
  widget: d
33460
33302
  }, null, 8, ["region", "widget"]))), 256))
33461
33303
  ]),
33462
- N("div", uO, [
33304
+ N("div", dO, [
33463
33305
  (h(!0), j(Z, null, pe(a.value, (d) => (h(), A(i(Cn), {
33464
33306
  ref_for: !0,
33465
33307
  ref_key: "widgetsRef",
@@ -33470,7 +33312,7 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33470
33312
  ])
33471
33313
  ]));
33472
33314
  }
33473
- }), pO = /* @__PURE__ */ H({
33315
+ }), fO = /* @__PURE__ */ H({
33474
33316
  name: "PreviewRegion",
33475
33317
  __name: "preview",
33476
33318
  props: {
@@ -33514,38 +33356,38 @@ const ji = new MT(), jT = /* @__PURE__ */ H({
33514
33356
  }, 8, ["items", "modelValue"]));
33515
33357
  }
33516
33358
  }), Li = {
33517
- EmptyRegion: KT,
33518
- Brand: qT,
33519
- Toolbar: YT,
33520
- Actions: ZT,
33521
- Apps: sO,
33522
- Workspace: aO,
33523
- Settings: lO,
33524
- Status: dO,
33525
- Preview: pO
33359
+ EmptyRegion: WT,
33360
+ Brand: QT,
33361
+ Toolbar: XT,
33362
+ Actions: eO,
33363
+ Apps: aO,
33364
+ Workspace: lO,
33365
+ Settings: iO,
33366
+ Status: pO,
33367
+ Preview: fO
33526
33368
  };
33527
33369
  export {
33528
33370
  Kt as $,
33529
33371
  Jm as A,
33530
33372
  As as B,
33531
- MT as C,
33532
- RO as D,
33373
+ jT as C,
33374
+ DO as D,
33533
33375
  Gm as E,
33534
- PT as F,
33376
+ MT as F,
33535
33377
  qm as G,
33536
33378
  Qm as H,
33537
33379
  dr as I,
33538
- AO as J,
33380
+ TO as J,
33539
33381
  Hm as K,
33540
- OO as L,
33541
- IO as M,
33382
+ IO as L,
33383
+ RO as M,
33542
33384
  An as N,
33543
- NO as O,
33385
+ VO as O,
33544
33386
  zm as P,
33545
- TO as Q,
33387
+ OO as Q,
33546
33388
  Wm as R,
33547
33389
  aa as S,
33548
- wT as T,
33390
+ ET as T,
33549
33391
  vk as U,
33550
33392
  $m as V,
33551
33393
  wE as W,
@@ -33554,14 +33396,14 @@ export {
33554
33396
  Cn as Z,
33555
33397
  Vi as _,
33556
33398
  SE as a,
33557
- eA as a0,
33558
- rA as a1,
33559
- RA as a2,
33560
- ZC as a3,
33399
+ tA as a0,
33400
+ sA as a1,
33401
+ DA as a2,
33402
+ eA as a3,
33561
33403
  ji as a4,
33562
33404
  Tn as a5,
33563
- CT as a6,
33564
- IA as a7,
33405
+ AT as a6,
33406
+ RA as a7,
33565
33407
  Mi as a8,
33566
33408
  Bd as a9,
33567
33409
  Pt as aa,
@@ -33578,12 +33420,12 @@ export {
33578
33420
  Be as al,
33579
33421
  Zn as am,
33580
33422
  Ve as an,
33581
- DT as b,
33423
+ NT as b,
33582
33424
  dl as c,
33583
33425
  cs as d,
33584
- AT as e,
33426
+ TT as e,
33585
33427
  Ye as f,
33586
- VO as g,
33428
+ PO as g,
33587
33429
  bk as h,
33588
33430
  vi as i,
33589
33431
  St as j,
@@ -33593,14 +33435,14 @@ export {
33593
33435
  xe as n,
33594
33436
  Ym as o,
33595
33437
  Jn as p,
33596
- IT as q,
33438
+ RT as q,
33597
33439
  Bl as r,
33598
33440
  Ul as s,
33599
- JT as t,
33441
+ GT as t,
33600
33442
  Se as u,
33601
- RT as v,
33602
- LT as w,
33603
- xT as x,
33443
+ DT as v,
33444
+ BT as w,
33445
+ CT as x,
33604
33446
  kE as y,
33605
- VT as z
33447
+ PT as z
33606
33448
  };