@opentiny/tiny-engine-plugin-page 2.5.0-rc.3 → 2.5.0-rc.4

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.
Files changed (2) hide show
  1. package/dist/index.js +470 -470
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import "./style.css";
2
- import { ref as K, watchEffect as Se, resolveComponent as h, createBlock as L, openBlock as S, computed as z, createElementBlock as U, createVNode as f, createElementVNode as x, withCtx as v, reactive as ee, createCommentVNode as j, resolveDynamicComponent as Xe, createTextVNode as _e, defineComponent as ze, Fragment as ie, renderList as De, normalizeClass as he, renderSlot as it, toDisplayString as ae, onMounted as ct, onUnmounted as He, provide as Le } from "vue";
3
- import { getMetaApi as R, META_SERVICE as M, usePage as Y, useBlock as ut, useModal as oe, useNotify as V, useCanvas as se, getMergeRegistry as Qe, useLayout as ne, useMessage as Ne, useHelp as gt, useBreadcrumb as dt, getOptions as Ue, HOOK_NAME as pt } from "@opentiny/tiny-engine-meta-register";
2
+ import { ref as K, watchEffect as Se, resolveComponent as h, createBlock as L, openBlock as S, computed as z, createElementBlock as U, createVNode as f, createElementVNode as G, withCtx as v, reactive as ee, createCommentVNode as j, resolveDynamicComponent as Xe, createTextVNode as _e, defineComponent as ze, Fragment as ie, renderList as De, normalizeClass as he, renderSlot as it, toDisplayString as ae, onMounted as ct, onUnmounted as He, provide as Le } from "vue";
3
+ import { getMetaApi as A, META_SERVICE as M, usePage as Y, useBlock as gt, useModal as oe, useNotify as B, useCanvas as se, getMergeRegistry as Qe, useLayout as ne, useMessage as Ie, useHelp as dt, useBreadcrumb as ut, getOptions as Ue, HOOK_NAME as pt } from "@opentiny/tiny-engine-meta-register";
4
4
  import { BlockHistoryList as ft, MetaCodeEditor as mt, ButtonGroup as Ye, SvgButton as ve, PluginSetting as Ze, LifeCycles as Pt, PluginPanel as yt } from "@opentiny/tiny-engine-common";
5
- import { isEqual as ge, extend as de } from "@opentiny/vue-renderless/common/object";
6
- import { Checkbox as _t, CollapseItem as Ee, Collapse as Ie, Button as $e, Input as et, Popover as Dt, Search as ht, Radio as St, Select as vt, FormItem as Ct, Form as bt } from "@opentiny/vue";
7
- import { constants as we } from "@opentiny/tiny-engine-utils";
8
- import { isVsCodeEnv as Ft } from "@opentiny/tiny-engine-common/js/environments";
5
+ import { isEqual as de, extend as ue } from "@opentiny/vue-renderless/common/object";
6
+ import { Checkbox as _t, CollapseItem as we, Collapse as Te, Button as $e, Input as et, Popover as Dt, Search as ht, Radio as St, Select as vt, FormItem as bt, Form as Ct } from "@opentiny/vue";
7
+ import { constants as ke } from "@opentiny/tiny-engine-utils";
8
+ import { isVsCodeEnv as Nt } from "@opentiny/tiny-engine-common/js/environments";
9
9
  import { handlePageUpdate as tt } from "@opentiny/tiny-engine-common/js/http";
10
- import { generatePage as Nt } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
- import { previewPage as Et } from "@opentiny/tiny-engine-common/js/preview";
12
- import It from "@opentiny/vue-renderless/common/deps/throttle";
13
- import { IconSearch as wt, IconFolderClosed as Tt, IconFolderOpened as Bt, iconFile as kt } from "@opentiny/vue-icon";
10
+ import { generatePage as It } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
+ import { previewPage as wt } from "@opentiny/tiny-engine-common/js/preview";
12
+ import Tt from "@opentiny/vue-renderless/common/deps/throttle";
13
+ import { IconSearch as kt, IconFolderClosed as Ft, IconFolderOpened as Et, iconFile as Ot } from "@opentiny/vue-icon";
14
14
  import { getCanvasStatus as at } from "@opentiny/tiny-engine-common/js/canvas";
15
- import { REGEXP_ROUTE as qe, REGEXP_FOLDER_NAME as Ot, REGEXP_PAGE_NAME as xt } from "@opentiny/tiny-engine-common/js/verification";
16
- const At = (t) => R(M.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) => R(M.Http).get(`/app-center/api/pages/detail/${t}`), Gt = (t) => R(M.Http).get(`/app-center/api/pages/delete/${t}`), Vt = (t) => R(M.Http).post("/app-center/api/pages/create", t), nt = (t, a) => R(M.Http).post(`/app-center/api/pages/update/${t}`, a), Rt = (t) => R(M.Http).post("/app-center/api/pages/copy", t), ot = (t) => R(M.Http).get(`/app-center/api/pages/histories?page=${t}`), Mt = (t) => R(M.Http).post("/app-center/api/pageHistory/restore", t), Ht = (t) => R(M.Http).get(`/app-center/api/pages/histories/${t}`), Lt = (t, a) => R(M.Http).post(`/app-center/api/pages/update/${t}`, a), ce = {
17
- fetchPageList: At,
18
- fetchPageDetail: Te,
19
- requestDeletePage: Gt,
20
- requestCreatePage: Vt,
21
- requestCopyPage: Rt,
15
+ import { REGEXP_ROUTE as qe, REGEXP_FOLDER_NAME as xt, REGEXP_PAGE_NAME as Gt } from "@opentiny/tiny-engine-common/js/verification";
16
+ const Vt = (t) => A(M.Http).get(`/app-center/api/pages/list/${t}`), Fe = (t) => A(M.Http).get(`/app-center/api/pages/detail/${t}`), Rt = (t) => A(M.Http).get(`/app-center/api/pages/delete/${t}`), Bt = (t) => A(M.Http).post("/app-center/api/pages/create", t), nt = (t, a) => A(M.Http).post(`/app-center/api/pages/update/${t}`, a), At = (t) => A(M.Http).post("/app-center/api/pages/copy", t), ot = (t) => A(M.Http).get(`/app-center/api/pages/histories?page=${t}`), Mt = (t) => A(M.Http).post("/app-center/api/pageHistory/restore", t), Ht = (t) => A(M.Http).get(`/app-center/api/pages/histories/${t}`), Lt = (t, a) => A(M.Http).post(`/app-center/api/pages/update/${t}`, a), ce = {
17
+ fetchPageList: Vt,
18
+ fetchPageDetail: Fe,
19
+ requestDeletePage: Rt,
20
+ requestCreatePage: Bt,
21
+ requestCopyPage: At,
22
22
  fetchPageHistory: ot,
23
23
  fetchHistoryDetail: Ht,
24
24
  handleRouteHomeUpdate: nt,
@@ -36,12 +36,12 @@ const At = (t) => R(M.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) =>
36
36
  },
37
37
  emits: ["restorePage"],
38
38
  setup(t, { emit: a }) {
39
- const { pageSettingState: n, getFamily: e } = Y(), { getDateFromNow: o } = ut(), { confirm: s } = oe(), r = K([]), i = (_) => {
40
- const { id: m, version: C } = R(M.GlobalService).getBaseInfo(), D = C ? `&app=${m}&version=${C}` : "";
41
- _ ? ot(_ + D).then((w) => {
42
- w && (w.forEach((T) => {
43
- T.backupTitle = T.message, T.backupTime = o(new Date(T.time));
44
- }), r.value = w.reverse());
39
+ const { pageSettingState: n, getFamily: e } = Y(), { getDateFromNow: o } = gt(), { confirm: s } = oe(), r = K([]), i = (_) => {
40
+ const { id: m, version: b } = A(M.GlobalService).getBaseInfo(), D = b ? `&app=${m}&version=${b}` : "";
41
+ _ ? ot(_ + D).then((k) => {
42
+ k && (k.forEach((F) => {
43
+ F.backupTitle = F.message, F.backupTime = o(new Date(F.time));
44
+ }), r.value = k.reverse());
45
45
  }) : r.value = [];
46
46
  };
47
47
  return Se(() => {
@@ -57,7 +57,7 @@ const At = (t) => R(M.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) =>
57
57
  id: Number(_.page),
58
58
  history: _.id
59
59
  };
60
- m.ancestors = await e(m), Et(m, !0);
60
+ m.ancestors = await e(m), wt(m, !0);
61
61
  }
62
62
  },
63
63
  restoreHistory: (_) => {
@@ -93,31 +93,31 @@ const jt = /* @__PURE__ */ Z(Ut, [["render", qt]]), Jt = {
93
93
  setup() {
94
94
  const t = K(""), a = K(""), { pageSettingState: n } = Y(), e = z(() => n.currentPageData);
95
95
  return Se(() => {
96
- var i, g;
97
- t.value = ((i = n.currentPageData.page_content) == null ? void 0 : i.inputs) || "", a.value = ((g = n.currentPageData.page_content) == null ? void 0 : g.outputs) || "";
96
+ var i, d;
97
+ t.value = ((i = n.currentPageData.page_content) == null ? void 0 : i.inputs) || "", a.value = ((d = n.currentPageData.page_content) == null ? void 0 : d.outputs) || "";
98
98
  }), {
99
99
  inputValue: t,
100
100
  outputValue: a,
101
101
  saveInputValue: (i) => {
102
102
  try {
103
- const g = JSON.parse(i.content);
104
- t.value = i.content, e.value.page_content.inputs = g;
105
- } catch (g) {
106
- V({
103
+ const d = JSON.parse(i.content);
104
+ t.value = i.content, e.value.page_content.inputs = d;
105
+ } catch (d) {
106
+ B({
107
107
  title: "输入配置保存失败(必须符合JSON格式)",
108
- message: `${(g == null ? void 0 : g.message) || g}`,
108
+ message: `${(d == null ? void 0 : d.message) || d}`,
109
109
  type: "error"
110
110
  });
111
111
  }
112
112
  },
113
113
  saveOutputValue: (i) => {
114
114
  try {
115
- const g = JSON.parse(i.content);
116
- a.value = i.content, e.value.page_content.outputs = g;
117
- } catch (g) {
118
- V({
115
+ const d = JSON.parse(i.content);
116
+ a.value = i.content, e.value.page_content.outputs = d;
117
+ } catch (d) {
118
+ B({
119
119
  title: "输出配置保存失败(必须符合JSON格式)",
120
- message: `${(g == null ? void 0 : g.message) || g}`,
120
+ message: `${(d == null ? void 0 : d.message) || d}`,
121
121
  type: "error"
122
122
  });
123
123
  }
@@ -128,7 +128,7 @@ const jt = /* @__PURE__ */ Z(Ut, [["render", qt]]), Jt = {
128
128
  }
129
129
  }, Kt = { class: "input-or-output" };
130
130
  function Wt(t, a, n, e, o, s) {
131
- const r = h("svg-icon"), i = h("meta-code-editor"), g = h("tiny-checkbox");
131
+ const r = h("svg-icon"), i = h("meta-code-editor"), d = h("tiny-checkbox");
132
132
  return S(), U("div", Kt, [
133
133
  f(i, {
134
134
  modelValue: e.inputValue,
@@ -147,7 +147,7 @@ function Wt(t, a, n, e, o, s) {
147
147
  ]),
148
148
  _: 1
149
149
  }, 8, ["modelValue", "buttonShowContent", "onSave"]),
150
- a[2] || (a[2] = x("div", { class: "input-output-tips" }, "传递给页面的参数(类似组件的输入属性)", -1)),
150
+ a[2] || (a[2] = G("div", { class: "input-output-tips" }, "传递给页面的参数(类似组件的输入属性)", -1)),
151
151
  f(i, {
152
152
  modelValue: e.outputValue,
153
153
  title: "输出配置",
@@ -165,18 +165,18 @@ function Wt(t, a, n, e, o, s) {
165
165
  ]),
166
166
  _: 1
167
167
  }, 8, ["modelValue", "buttonShowContent", "onSave"]),
168
- a[3] || (a[3] = x("div", { class: "input-output-div" }, "页面传递出的事件(类似组件触发的输出事件)", -1)),
169
- f(g, {
168
+ a[3] || (a[3] = G("div", { class: "input-output-div" }, "页面传递出的事件(类似组件触发的输出事件)", -1)),
169
+ f(d, {
170
170
  class: "selectHome",
171
171
  modelValue: e.pageSettingState.currentPageData.isBody,
172
- "onUpdate:modelValue": a[0] || (a[0] = (E) => e.pageSettingState.currentPageData.isBody = E)
172
+ "onUpdate:modelValue": a[0] || (a[0] = (w) => e.pageSettingState.currentPageData.isBody = w)
173
173
  }, {
174
174
  default: v(() => a[1] || (a[1] = [
175
- x("span", null, "设为根元素为Body", -1)
175
+ G("span", null, "设为根元素为Body", -1)
176
176
  ])),
177
177
  _: 1
178
178
  }, 8, ["modelValue"]),
179
- a[4] || (a[4] = x("div", { class: "input-output-div" }, "默认为div", -1))
179
+ a[4] || (a[4] = G("div", { class: "input-output-div" }, "默认为div", -1))
180
180
  ]);
181
181
  }
182
182
  const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b"]]), pe = {
@@ -187,10 +187,10 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
187
187
  align: "leftTop"
188
188
  }, {
189
189
  COMPONENT_NAME: zt
190
- } = we, Be = K(!1), ye = () => {
191
- Be.value = !0;
190
+ } = ke, Ee = K(!1), ye = () => {
191
+ Ee.value = !0;
192
192
  }, Q = () => {
193
- Be.value = !1;
193
+ Ee.value = !1;
194
194
  const {
195
195
  resetPageData: t
196
196
  } = Y();
@@ -203,8 +203,8 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
203
203
  }, Qt = {
204
204
  components: {
205
205
  TinyButton: $e,
206
- TinyCollapse: Ie,
207
- TinyCollapseItem: Ee,
206
+ TinyCollapse: Te,
207
+ TinyCollapseItem: we,
208
208
  PageInputOutput: Xt,
209
209
  LifeCycles: Pt,
210
210
  PageHistory: jt,
@@ -231,110 +231,110 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
231
231
  pageSettingState: s,
232
232
  changeTreeData: r,
233
233
  isCurrentDataSame: i,
234
- initCurrentPageData: g,
235
- isTemporaryPage: E,
234
+ initCurrentPageData: d,
235
+ isTemporaryPage: w,
236
236
  STATIC_PAGE_GROUP_ID: _
237
237
  } = Y(), {
238
238
  pageState: m,
239
- initData: C
239
+ initData: b
240
240
  } = se(), {
241
241
  confirm: D
242
- } = oe(), w = Qe(pe.type, pe.id), T = w.components.PageGeneral, A = (me = w == null ? void 0 : w.options) == null ? void 0 : me.beforeCreatePage, G = K(null), {
242
+ } = oe(), k = Qe(pe.type, pe.id), F = k.components.PageGeneral, V = (me = k == null ? void 0 : k.options) == null ? void 0 : me.beforeCreatePage, R = K(null), {
243
243
  PLUGIN_NAME: J,
244
- getPluginByLayout: d
245
- } = ne(), P = z(() => d(J.AppManage)), l = ee({
244
+ getPluginByLayout: u
245
+ } = ne(), P = z(() => u(J.AppManage)), l = ee({
246
246
  activeName: Object.values(je),
247
247
  title: "页面设置",
248
248
  historyMessage: ""
249
- }), u = () => {
250
- ge(s.currentPageData, s.currentPageDataCopy) ? Q() : D({
249
+ }), g = () => {
250
+ de(s.currentPageData, s.currentPageDataCopy) ? Q() : D({
251
251
  title: "提示",
252
252
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
253
253
  exec: () => {
254
254
  s.isNew || (r(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy)), Q();
255
255
  }
256
256
  });
257
- }, F = async () => {
257
+ }, N = async () => {
258
258
  const {
259
- page_content: k,
260
- ...N
259
+ page_content: O,
260
+ ...I
261
261
  } = o(), {
262
- page_content: B,
262
+ page_content: E,
263
263
  ...c
264
264
  } = s.currentPageData, p = {
265
- ...N,
265
+ ...I,
266
266
  ...c,
267
267
  page_content: {
268
- ...k,
269
- ...B,
268
+ ...O,
269
+ ...E,
270
270
  fileName: s.currentPageData.name
271
271
  },
272
- app: R(M.GlobalService).getBaseInfo().id,
272
+ app: A(M.GlobalService).getBaseInfo().id,
273
273
  isPage: !0
274
274
  };
275
- p.id && (delete p.id, delete p._id), A && await A(p);
275
+ p.id && (delete p.id, delete p._id), V && await V(p);
276
276
  try {
277
277
  const y = await n(p);
278
- await s.updateTreeData(), s.isNew = !1, E.saved = !1, a("openNewPage", y), Q(), ne().closePlugin(), V({
278
+ await s.updateTreeData(), s.isNew = !1, w.saved = !1, a("openNewPage", y), Q(), ne().closePlugin(), B({
279
279
  type: "success",
280
280
  message: "新建页面成功!"
281
- }), Ft && Nt(y);
281
+ }), Nt && It(y);
282
282
  } catch (y) {
283
- V({
283
+ B({
284
284
  type: "error",
285
285
  title: "新建页面失败",
286
286
  message: JSON.stringify((y == null ? void 0 : y.message) || y)
287
287
  });
288
288
  }
289
- }, b = (k, N, B = !0) => {
289
+ }, C = (O, I, E = !0) => {
290
290
  var H;
291
- const c = s.currentPageDataCopy.route !== s.currentPageData.route, p = ((H = m == null ? void 0 : m.currentPage) == null ? void 0 : H.id) === k;
291
+ const c = s.currentPageDataCopy.route !== s.currentPageData.route, p = ((H = m == null ? void 0 : m.currentPage) == null ? void 0 : H.id) === O;
292
292
  return tt({
293
- id: k,
294
- params: N,
293
+ id: O,
294
+ params: I,
295
295
  routerChange: c,
296
296
  isCurEditPage: p,
297
- isUpdateTree: B
297
+ isUpdateTree: E
298
298
  });
299
- }, q = (k) => {
300
- const N = {
301
- ...k,
302
- id: k.page
299
+ }, q = (O) => {
300
+ const I = {
301
+ ...O,
302
+ id: O.page
303
303
  };
304
- ["page", "backupTime", "backupTitle", "time"].forEach((p) => delete N[p]);
304
+ ["page", "backupTime", "backupTitle", "time"].forEach((p) => delete I[p]);
305
305
  const c = {
306
306
  ...s.currentPageData,
307
- ...N,
307
+ ...I,
308
308
  message: "还原页面"
309
309
  };
310
- b(N.id, c).then((p) => {
310
+ C(I.id, c).then((p) => {
311
311
  var y;
312
- ((y = m == null ? void 0 : m.currentPage) == null ? void 0 : y.id) === (p == null ? void 0 : p.id) && C(p.page_content, p), g(p);
312
+ ((y = m == null ? void 0 : m.currentPage) == null ? void 0 : y.id) === (p == null ? void 0 : p.id) && b(p.page_content, p), d(p);
313
313
  });
314
- }, O = async () => {
314
+ }, x = async () => {
315
315
  const {
316
- id: k,
317
- name: N,
318
- page_content: B
316
+ id: O,
317
+ name: I,
318
+ page_content: E
319
319
  } = s.currentPageData, c = {
320
320
  ...s.currentPageData,
321
321
  page_content: {
322
- ...B,
323
- fileName: N
322
+ ...E,
323
+ fileName: I
324
324
  }
325
- }, p = await b(k, c);
326
- g(p);
327
- }, re = (k) => {
328
- if (!k)
325
+ }, p = await C(O, c);
326
+ d(p);
327
+ }, re = (O) => {
328
+ if (!O)
329
329
  return;
330
- const N = s.currentPageData.page_content;
331
- N.lifeCycles = {
332
- ...N.lifeCycles || {},
333
- ...k
330
+ const I = s.currentPageData.page_content;
331
+ I.lifeCycles = {
332
+ ...I.lifeCycles || {},
333
+ ...O
334
334
  };
335
335
  }, $ = () => {
336
- const k = s.currentPageData, N = de(!0, {}, k);
337
- s.isNew = !0, N.name = `${N.name}Copy`, N.route = `${N.route}Copy`, s.currentPageData = N, s.currentPageDataCopy = de(!0, {}, N), s.defaultPage = null;
336
+ const O = s.currentPageData, I = ue(!0, {}, O);
337
+ s.isNew = !0, I.name = `${I.name}Copy`, I.route = `${I.route}Copy`, s.currentPageData = I, s.currentPageDataCopy = ue(!0, {}, I), s.defaultPage = null;
338
338
  }, te = () => {
339
339
  i() ? $() : D({
340
340
  title: "提示",
@@ -344,16 +344,16 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
344
344
  }
345
345
  });
346
346
  }, fe = async () => {
347
- var N;
348
- const k = {
347
+ var I;
348
+ const O = {
349
349
  ...s.defaultPage,
350
350
  isDefault: !0
351
351
  };
352
- b((N = s.defaultPage) == null ? void 0 : N.id, k, !1).then((B) => {
353
- B && O();
352
+ C((I = s.defaultPage) == null ? void 0 : I.id, O, !1).then((E) => {
353
+ E && x();
354
354
  });
355
- }, Ae = () => {
356
- s.isNew ? (s.currentPageData.message = "Page auto save", F()) : D({
355
+ }, Ve = () => {
356
+ s.isNew ? (s.currentPageData.message = "Page auto save", N()) : D({
357
357
  title: "创建历史备份信息",
358
358
  message: {
359
359
  render: () => f(et, {
@@ -364,38 +364,38 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
364
364
  },
365
365
  exec: () => {
366
366
  var c;
367
- s.currentPageData.message = l.historyMessage.trim() || "Page auto save", (c = s.defaultPage) != null && c.id ? fe() : O(), l.historyMessage = "";
367
+ s.currentPageData.message = l.historyMessage.trim() || "Page auto save", (c = s.defaultPage) != null && c.id ? fe() : x(), l.historyMessage = "";
368
368
  }
369
369
  });
370
- }, Ge = () => {
371
- G.value.validGeneralForm().then(Ae);
372
- }, le = (k = []) => {
373
- if (!Array.isArray(k))
370
+ }, Re = () => {
371
+ R.value.validGeneralForm().then(Ve);
372
+ }, le = (O = []) => {
373
+ if (!Array.isArray(O))
374
374
  return [];
375
- const N = [];
376
- return k.forEach((B) => {
375
+ const I = [];
376
+ return O.forEach((E) => {
377
377
  var c;
378
- if (B != null && B.isPage) {
379
- N.push(B);
378
+ if (E != null && E.isPage) {
379
+ I.push(E);
380
380
  return;
381
381
  }
382
- !(B != null && B.isPage) && ((c = B == null ? void 0 : B.children) != null && c.length) && N.push(...le(B.children));
383
- }), N;
382
+ !(E != null && E.isPage) && ((c = E == null ? void 0 : E.children) != null && c.length) && I.push(...le(E.children));
383
+ }), I;
384
384
  };
385
385
  return {
386
386
  align: P,
387
387
  PLUGIN_NAME: J,
388
388
  state: l,
389
- isShow: Be,
390
- savePageSetting: Ge,
389
+ isShow: Ee,
390
+ savePageSetting: Re,
391
391
  copyPage: te,
392
392
  pageSettingState: s,
393
- pageGeneral: T,
394
- pageGeneralRef: G,
393
+ pageGeneral: F,
394
+ pageGeneralRef: R,
395
395
  deletePage: () => {
396
- var k, N;
397
- if ((N = (k = s.treeDataMapping[s.currentPageData.id]) == null ? void 0 : k.children) != null && N.length) {
398
- V({
396
+ var O, I;
397
+ if ((I = (O = s.treeDataMapping[s.currentPageData.id]) == null ? void 0 : O.children) != null && I.length) {
398
+ B({
399
399
  type: "error",
400
400
  message: "此页面存在子页面或子文件夹,不能删除!"
401
401
  });
@@ -406,24 +406,24 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
406
406
  message: "您是否要删除页面?",
407
407
  exec: () => {
408
408
  var c;
409
- const B = ((c = s.currentPageData) == null ? void 0 : c.id) || "";
410
- e(B).then(() => {
409
+ const E = ((c = s.currentPageData) == null ? void 0 : c.id) || "";
410
+ e(E).then(() => {
411
411
  s.updateTreeData().then((p) => {
412
- var ue, Me;
413
- if (((ue = m == null ? void 0 : m.currentPage) == null ? void 0 : ue.id) !== B)
412
+ var ge, Me;
413
+ if (((ge = m == null ? void 0 : m.currentPage) == null ? void 0 : ge.id) !== E)
414
414
  return;
415
415
  const y = ((Me = (p || []).find(({
416
- groupId: Fe
417
- }) => Fe === _)) == null ? void 0 : Me.data) || [], H = le(y), W = H.find((Fe) => Fe.isHome), be = H == null ? void 0 : H[0], Re = {
416
+ groupId: Ne
417
+ }) => Ne === _)) == null ? void 0 : Me.data) || [], H = le(y), W = H.find((Ne) => Ne.isHome), Ce = H == null ? void 0 : H[0], Ae = {
418
418
  componentName: zt.Page
419
419
  };
420
- a("openNewPage", W || be || Re);
421
- }), Q(), V({
420
+ a("openNewPage", W || Ce || Ae);
421
+ }), Q(), B({
422
422
  message: "删除页面成功!",
423
423
  type: "success"
424
424
  });
425
425
  }).catch(() => {
426
- V({
426
+ B({
427
427
  message: "删除页面失败!",
428
428
  type: "error"
429
429
  });
@@ -431,7 +431,7 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
431
431
  }
432
432
  });
433
433
  },
434
- cancelPageSetting: u,
434
+ cancelPageSetting: g,
435
435
  closePageSettingPanel: Q,
436
436
  updatePageLifeCycles: re,
437
437
  restorePage: q,
@@ -440,8 +440,8 @@ const Xt = /* @__PURE__ */ Z(Jt, [["render", Wt], ["__scopeId", "data-v-c7b79c9b
440
440
  }
441
441
  }, Yt = { class: "page-setting-content" }, Zt = { class: "life-cycles-container" };
442
442
  function $t(t, a, n, e, o, s) {
443
- const r = h("tiny-button"), i = h("svg-button"), g = h("button-group"), E = h("tiny-collapse-item"), _ = h("page-input-output"), m = h("life-cycles"), C = h("page-history"), D = h("tiny-collapse"), w = h("plugin-setting");
444
- return e.isShow ? (S(), L(w, {
443
+ const r = h("tiny-button"), i = h("svg-button"), d = h("button-group"), w = h("tiny-collapse-item"), _ = h("page-input-output"), m = h("life-cycles"), b = h("page-history"), D = h("tiny-collapse"), k = h("plugin-setting");
444
+ return e.isShow ? (S(), L(k, {
445
445
  key: 0,
446
446
  "fixed-name": e.PLUGIN_NAME.AppManage,
447
447
  align: e.align,
@@ -449,7 +449,7 @@ function $t(t, a, n, e, o, s) {
449
449
  class: "page-plugin-setting"
450
450
  }, {
451
451
  header: v(() => [
452
- f(g, null, {
452
+ f(d, null, {
453
453
  default: v(() => [
454
454
  f(r, {
455
455
  type: "primary",
@@ -482,14 +482,14 @@ function $t(t, a, n, e, o, s) {
482
482
  })
483
483
  ]),
484
484
  content: v(() => [
485
- x("div", Yt, [
485
+ G("div", Yt, [
486
486
  f(D, {
487
487
  modelValue: e.state.activeName,
488
- "onUpdate:modelValue": a[0] || (a[0] = (T) => e.state.activeName = T),
488
+ "onUpdate:modelValue": a[0] || (a[0] = (F) => e.state.activeName = F),
489
489
  class: "page-setting-collapse"
490
490
  }, {
491
491
  default: v(() => [
492
- f(E, {
492
+ f(w, {
493
493
  title: "基本设置",
494
494
  name: e.PAGE_SETTING_SESSION.general
495
495
  }, {
@@ -501,7 +501,7 @@ function $t(t, a, n, e, o, s) {
501
501
  ]),
502
502
  _: 1
503
503
  }, 8, ["name"]),
504
- e.pageSettingState.currentPageData.group !== "public" ? (S(), L(E, {
504
+ e.pageSettingState.currentPageData.group !== "public" ? (S(), L(w, {
505
505
  key: 0,
506
506
  class: "base-setting",
507
507
  title: "输入输出",
@@ -512,18 +512,18 @@ function $t(t, a, n, e, o, s) {
512
512
  ]),
513
513
  _: 1
514
514
  }, 8, ["name"])) : j("", !0),
515
- e.pageSettingState.currentPageData.group !== "public" ? (S(), L(E, {
515
+ e.pageSettingState.currentPageData.group !== "public" ? (S(), L(w, {
516
516
  key: 1,
517
517
  class: "input-output",
518
518
  title: "页面生命周期配置",
519
519
  name: e.PAGE_SETTING_SESSION.lifeCycles
520
520
  }, {
521
521
  default: v(() => {
522
- var T;
522
+ var F;
523
523
  return [
524
- x("div", Zt, [
524
+ G("div", Zt, [
525
525
  f(m, {
526
- bindLifeCycles: (T = e.pageSettingState.currentPageData.page_content) == null ? void 0 : T.lifeCycles,
526
+ bindLifeCycles: (F = e.pageSettingState.currentPageData.page_content) == null ? void 0 : F.lifeCycles,
527
527
  onUpdatePageLifeCycles: e.updatePageLifeCycles
528
528
  }, null, 8, ["bindLifeCycles", "onUpdatePageLifeCycles"])
529
529
  ])
@@ -531,13 +531,13 @@ function $t(t, a, n, e, o, s) {
531
531
  }),
532
532
  _: 1
533
533
  }, 8, ["name"])) : j("", !0),
534
- f(E, {
534
+ f(w, {
535
535
  class: "history-source",
536
536
  title: "历史备份",
537
537
  name: e.PAGE_SETTING_SESSION.history
538
538
  }, {
539
539
  default: v(() => [
540
- f(C, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
540
+ f(b, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
541
541
  ]),
542
542
  _: 1
543
543
  }, 8, ["name"])
@@ -549,17 +549,17 @@ function $t(t, a, n, e, o, s) {
549
549
  _: 1
550
550
  }, 8, ["fixed-name", "align", "title"])) : j("", !0);
551
551
  }
552
- const ea = /* @__PURE__ */ Z(Qt, [["render", $t], ["__scopeId", "data-v-4afcc608"]]), ke = K(!1), Je = () => {
553
- ke.value = !0;
552
+ const ea = /* @__PURE__ */ Z(Qt, [["render", $t], ["__scopeId", "data-v-4afcc608"]]), Oe = K(!1), Je = () => {
553
+ Oe.value = !0;
554
554
  }, X = () => {
555
- ke.value = !1;
555
+ Oe.value = !1;
556
556
  const { resetPageData: t } = Y();
557
557
  t();
558
558
  }, ta = {
559
559
  components: {
560
560
  TinyButton: $e,
561
- TinyCollapse: Ie,
562
- TinyCollapseItem: Ee,
561
+ TinyCollapse: Te,
562
+ TinyCollapseItem: we,
563
563
  PluginSetting: Ze,
564
564
  SvgButton: ve,
565
565
  ButtonGroup: Ye
@@ -574,59 +574,59 @@ const ea = /* @__PURE__ */ Z(Qt, [["render", $t], ["__scopeId", "data-v-4afcc608
574
574
  const t = ee({
575
575
  activeName: ["folderGeneralRef"],
576
576
  title: "文件夹设置"
577
- }), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = ce, { pageSettingState: o, changeTreeData: s } = Y(), { confirm: r } = oe(), g = Qe(pe.type, pe.id).components.PageGeneral, E = K(null), { PLUGIN_NAME: _, getPluginByLayout: m } = ne(), C = z(() => m(_.AppManage)), D = () => {
578
- ge(o.currentPageData, o.currentPageDataCopy) ? X() : r({
577
+ }), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = ce, { pageSettingState: o, changeTreeData: s } = Y(), { confirm: r } = oe(), d = Qe(pe.type, pe.id).components.PageGeneral, w = K(null), { PLUGIN_NAME: _, getPluginByLayout: m } = ne(), b = z(() => m(_.AppManage)), D = () => {
578
+ de(o.currentPageData, o.currentPageDataCopy) ? X() : r({
579
579
  title: "提示",
580
580
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
581
581
  exec: () => {
582
582
  o.isNew || (s(o.oldParentId, o.currentPageData.parentId), Object.assign(o.currentPageData, o.currentPageDataCopy)), X();
583
583
  }
584
584
  });
585
- }, w = () => {
586
- const d = {
585
+ }, k = () => {
586
+ const u = {
587
587
  ...o.currentPageData,
588
- app: R(M.GlobalService).getBaseInfo().id,
588
+ app: A(M.GlobalService).getBaseInfo().id,
589
589
  isPage: !1
590
590
  };
591
- a(d).then(() => {
592
- o.updateTreeData(), o.isNew = !1, X(), V({
591
+ a(u).then(() => {
592
+ o.updateTreeData(), o.isNew = !1, X(), B({
593
593
  type: "success",
594
594
  message: "新建文件夹成功!"
595
595
  });
596
596
  }).catch((P) => {
597
- V({
597
+ B({
598
598
  type: "error",
599
599
  title: "新建文件夹失败",
600
600
  message: JSON.stringify((P == null ? void 0 : P.message) || P)
601
601
  });
602
602
  });
603
- }, T = () => {
603
+ }, F = () => {
604
604
  const { id: J } = o.currentPageData;
605
605
  n(J, { ...o.currentPageData, page_content: null }).then(() => {
606
- o.updateTreeData(), o.isNew = !1, X(), V({
606
+ o.updateTreeData(), o.isNew = !1, X(), B({
607
607
  type: "success",
608
608
  message: "更新文件夹成功!"
609
609
  });
610
- }).catch((d) => {
611
- V({
610
+ }).catch((u) => {
611
+ B({
612
612
  type: "error",
613
613
  title: "更新文件夹失败",
614
- message: JSON.stringify((d == null ? void 0 : d.message) || d)
614
+ message: JSON.stringify((u == null ? void 0 : u.message) || u)
615
615
  });
616
616
  });
617
617
  };
618
618
  return {
619
- align: C,
619
+ align: b,
620
620
  PLUGIN_NAME: _,
621
621
  saveFolderSetting: () => {
622
- E.value.validGeneralForm().then(() => {
623
- o.isNew ? w() : T();
622
+ w.value.validGeneralForm().then(() => {
623
+ o.isNew ? k() : F();
624
624
  });
625
625
  },
626
- deleteFolder: It(5e3, !0, () => {
627
- var J, d;
628
- if ((d = (J = o.treeDataMapping[o.currentPageData.id]) == null ? void 0 : J.children) != null && d.length) {
629
- V({
626
+ deleteFolder: Tt(5e3, !0, () => {
627
+ var J, u;
628
+ if ((u = (J = o.treeDataMapping[o.currentPageData.id]) == null ? void 0 : J.children) != null && u.length) {
629
+ B({
630
630
  type: "error",
631
631
  message: "此文件夹不是空文件夹,不能删除!"
632
632
  });
@@ -639,24 +639,24 @@ const ea = /* @__PURE__ */ Z(Qt, [["render", $t], ["__scopeId", "data-v-4afcc608
639
639
  var l;
640
640
  const P = ((l = o.currentPageData) == null ? void 0 : l.id) || "";
641
641
  e(P).then(() => {
642
- o.updateTreeData(), X(), V({
642
+ o.updateTreeData(), X(), B({
643
643
  type: "success",
644
644
  message: "删除文件夹成功!"
645
645
  });
646
- }).catch((u) => {
647
- V({
646
+ }).catch((g) => {
647
+ B({
648
648
  type: "success",
649
649
  title: "删除文件夹失败!",
650
- message: JSON.stringify((u == null ? void 0 : u.message) || u)
650
+ message: JSON.stringify((g == null ? void 0 : g.message) || g)
651
651
  });
652
652
  });
653
653
  }
654
654
  });
655
655
  }),
656
- pageGeneral: g,
657
- folderGeneralRef: E,
656
+ pageGeneral: d,
657
+ folderGeneralRef: w,
658
658
  closeFolderSettingPanel: X,
659
- isShow: ke,
659
+ isShow: Oe,
660
660
  state: t,
661
661
  pageSettingState: o,
662
662
  closeFolderSetting: D
@@ -664,7 +664,7 @@ const ea = /* @__PURE__ */ Z(Qt, [["render", $t], ["__scopeId", "data-v-4afcc608
664
664
  }
665
665
  }, aa = { class: "page-setting-content" };
666
666
  function na(t, a, n, e, o, s) {
667
- const r = h("tiny-button"), i = h("svg-button"), g = h("button-group"), E = h("tiny-collapse-item"), _ = h("tiny-collapse"), m = h("plugin-setting");
667
+ const r = h("tiny-button"), i = h("svg-button"), d = h("button-group"), w = h("tiny-collapse-item"), _ = h("tiny-collapse"), m = h("plugin-setting");
668
668
  return e.isShow ? (S(), L(m, {
669
669
  key: 0,
670
670
  "fixed-name": e.PLUGIN_NAME.AppManage,
@@ -673,7 +673,7 @@ function na(t, a, n, e, o, s) {
673
673
  class: "pageFolder-plugin-setting"
674
674
  }, {
675
675
  header: v(() => [
676
- f(g, null, {
676
+ f(d, null, {
677
677
  default: v(() => [
678
678
  f(r, {
679
679
  type: "primary",
@@ -701,13 +701,13 @@ function na(t, a, n, e, o, s) {
701
701
  })
702
702
  ]),
703
703
  content: v(() => [
704
- x("div", aa, [
704
+ G("div", aa, [
705
705
  f(_, {
706
706
  modelValue: e.state.activeName,
707
- "onUpdate:modelValue": a[0] || (a[0] = (C) => e.state.activeName = C)
707
+ "onUpdate:modelValue": a[0] || (a[0] = (b) => e.state.activeName = b)
708
708
  }, {
709
709
  default: v(() => [
710
- f(E, {
710
+ f(w, {
711
711
  title: "基本设置",
712
712
  name: "folderGeneralRef"
713
713
  }, {
@@ -767,7 +767,7 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
767
767
  class: "gap"
768
768
  }, [
769
769
  t.lineData[e] ? (S(), U("svg", sa, [
770
- n[0] || (n[0] = x("line", {
770
+ n[0] || (n[0] = G("line", {
771
771
  x1: "8",
772
772
  y1: "0",
773
773
  x2: "8",
@@ -780,7 +780,7 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
780
780
  ])) : j("", !0)
781
781
  ]))), 128));
782
782
  }
783
- }), ca = /* @__PURE__ */ Z(ia, [["__scopeId", "data-v-fe0c65d9"]]), ua = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], ga = ["onClick"], da = { class: "prefix-icon" }, pa = /* @__PURE__ */ ze({
783
+ }), ca = /* @__PURE__ */ Z(ia, [["__scopeId", "data-v-fe0c65d9"]]), ga = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], da = ["onClick"], ua = { class: "prefix-icon" }, pa = /* @__PURE__ */ ze({
784
784
  __name: "Tree",
785
785
  props: {
786
786
  data: {
@@ -817,124 +817,124 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
817
817
  },
818
818
  emits: ["clickRow", "moveNode"],
819
819
  setup(t, { emit: a }) {
820
- const n = t, e = a, o = (l, u, F = 0) => {
821
- const { idKey: b, labelKey: q, childrenKey: O } = n, re = {
822
- id: l[b],
820
+ const n = t, e = a, o = (l, g, N = 0) => {
821
+ const { idKey: C, labelKey: q, childrenKey: x } = n, re = {
822
+ id: l[C],
823
823
  label: l[q],
824
- parentId: u,
825
- level: F,
824
+ parentId: g,
825
+ level: N,
826
826
  rawData: l
827
- }, $ = [re], te = l[O];
827
+ }, $ = [re], te = l[x];
828
828
  if (Array.isArray(te))
829
829
  for (const fe of te)
830
- $.push(...o(fe, re.id, F + 1));
830
+ $.push(...o(fe, re.id, N + 1));
831
831
  return $;
832
- }, s = z(() => o({ [n.idKey]: n.rootId, [n.childrenKey]: n.data }).slice(1)), r = z(() => s.value.reduce((l, u) => (l[u.id] = u, l), {})), i = z(() => s.value.filter((l) => l.label.toLowerCase().includes(n.filterValue.toLowerCase()))), g = (l) => {
833
- const u = r.value[l];
834
- if (!u || !u.parentId)
832
+ }, s = z(() => o({ [n.idKey]: n.rootId, [n.childrenKey]: n.data }).slice(1)), r = z(() => s.value.reduce((l, g) => (l[g.id] = g, l), {})), i = z(() => s.value.filter((l) => l.label.toLowerCase().includes(n.filterValue.toLowerCase()))), d = (l) => {
833
+ const g = r.value[l];
834
+ if (!g || !g.parentId)
835
835
  return [];
836
- const F = g(u.parentId);
837
- return F.push(u.parentId), F;
838
- }, E = z(() => {
836
+ const N = d(g.parentId);
837
+ return N.push(g.parentId), N;
838
+ }, w = z(() => {
839
839
  const l = /* @__PURE__ */ new Set();
840
- for (const u of i.value) {
841
- l.add(u.id);
842
- for (const F of g(u.id))
843
- l.add(F);
840
+ for (const g of i.value) {
841
+ l.add(g.id);
842
+ for (const N of d(g.id))
843
+ l.add(N);
844
844
  }
845
- return s.value.filter((u) => l.has(u.id));
845
+ return s.value.filter((g) => l.has(g.id));
846
846
  }), _ = {
847
847
  node: 1,
848
848
  // └
849
849
  layer: 2
850
850
  }, m = z(() => {
851
- const l = {}, u = E.value;
852
- for (const [F, b] of u.entries())
853
- if (l[F] = l[F] || {}, l[F][b.level - 1] = _.node, b.parentId !== n.rootId) {
854
- const q = u.findIndex((O) => O.id === b.parentId);
855
- for (let O = q + 1; O < F; O++)
856
- l[O][b.level - 1] = (l[O][b.level - 1] || 0) | _.layer;
851
+ const l = {}, g = w.value;
852
+ for (const [N, C] of g.entries())
853
+ if (l[N] = l[N] || {}, l[N][C.level - 1] = _.node, C.parentId !== n.rootId) {
854
+ const q = g.findIndex((x) => x.id === C.parentId);
855
+ for (let x = q + 1; x < N; x++)
856
+ l[x][C.level - 1] = (l[x][C.level - 1] || 0) | _.layer;
857
857
  }
858
858
  return l;
859
- }), C = (l) => {
859
+ }), b = (l) => {
860
860
  e("clickRow", l);
861
- }, D = K(null), w = K(null), T = (l, u) => {
862
- n.draggable && (D.value = u);
863
- }, A = (l, u) => {
861
+ }, D = K(null), k = K(null), F = (l, g) => {
862
+ n.draggable && (D.value = g);
863
+ }, V = (l, g) => {
864
864
  if (!n.draggable)
865
865
  return;
866
- g(u.id).includes(D.value.id) ? w.value = null : (l.preventDefault(), w.value = u.id);
867
- }, G = (l, u) => {
866
+ d(g.id).includes(D.value.id) ? k.value = null : (l.preventDefault(), k.value = g.id);
867
+ }, R = (l, g) => {
868
868
  l.preventDefault();
869
- const F = D.value;
870
- if (D.value = null, !F)
869
+ const N = D.value;
870
+ if (D.value = null, !N)
871
871
  return;
872
- !g(u.id).includes(F.id) && F.id !== u.id && F.parentId !== u.id && e("moveNode", F, u);
872
+ !d(g.id).includes(N.id) && N.id !== g.id && N.parentId !== g.id && e("moveNode", N, g);
873
873
  }, J = () => {
874
- w.value = null;
875
- }, d = (l) => {
876
- n.draggable && l.target === l.currentTarget && (l.preventDefault(), w.value = n.rootId);
874
+ k.value = null;
875
+ }, u = (l) => {
876
+ n.draggable && l.target === l.currentTarget && (l.preventDefault(), k.value = n.rootId);
877
877
  }, P = (l) => {
878
- n.draggable && l.target === l.currentTarget && (w.value = null);
878
+ n.draggable && l.target === l.currentTarget && (k.value = null);
879
879
  };
880
- return (l, u) => {
881
- const F = h("svg-icon");
880
+ return (l, g) => {
881
+ const N = h("svg-icon");
882
882
  return S(), U("div", {
883
- class: he(["draggable-tree", "border-transparent", { "hover-border-color": w.value === t.rootId }]),
884
- onDragover: d,
885
- onDragenter: d,
883
+ class: he(["draggable-tree", "border-transparent", { "hover-border-color": k.value === t.rootId }]),
884
+ onDragover: u,
885
+ onDragenter: u,
886
886
  onDragleave: P,
887
- onDrop: u[0] || (u[0] = (b) => G(b, { id: t.rootId }))
887
+ onDrop: g[0] || (g[0] = (C) => R(C, { id: t.rootId }))
888
888
  }, [
889
- (S(!0), U(ie, null, De(E.value, (b, q) => (S(), U("div", {
889
+ (S(!0), U(ie, null, De(w.value, (C, q) => (S(), U("div", {
890
890
  class: he([
891
891
  "row",
892
892
  "border-transparent",
893
893
  {
894
- active: String(t.active) === String(b.id),
895
- "hover-border-color": w.value === b.id
894
+ active: String(t.active) === String(C.id),
895
+ "hover-border-color": k.value === C.id
896
896
  }
897
897
  ]),
898
- key: b.id,
898
+ key: C.id,
899
899
  draggable: t.draggable ? "true" : void 0,
900
- onDragstart: (O) => T(O, b),
901
- onDragover: (O) => A(O, b),
902
- onDragenter: (O) => A(O, b),
903
- onDrop: (O) => G(O, b),
900
+ onDragstart: (x) => F(x, C),
901
+ onDragover: (x) => V(x, C),
902
+ onDragenter: (x) => V(x, C),
903
+ onDrop: (x) => R(x, C),
904
904
  onDragend: J
905
905
  }, [
906
- x("div", {
906
+ G("div", {
907
907
  class: "content",
908
- onClick: (O) => C(b)
908
+ onClick: (x) => b(C)
909
909
  }, [
910
910
  f(ca, {
911
911
  "line-data": m.value[q],
912
- level: b.level
912
+ level: C.level
913
913
  }, null, 8, ["line-data", "level"]),
914
- x("div", da, [
915
- b.rawData.isPage ? (S(), L(F, {
914
+ G("div", ua, [
915
+ C.rawData.isPage ? (S(), L(N, {
916
916
  key: 0,
917
917
  name: "text-page-common"
918
- })) : (S(), L(F, {
918
+ })) : (S(), L(N, {
919
919
  key: 1,
920
920
  name: "text-page-folder-closed"
921
921
  }))
922
922
  ]),
923
- x("label", null, ae(b.label), 1)
924
- ], 8, ga),
925
- it(l.$slots, "row-suffix", { node: b }, void 0, !0)
926
- ], 42, ua))), 128))
923
+ G("label", null, ae(C.label), 1)
924
+ ], 8, da),
925
+ it(l.$slots, "row-suffix", { node: C }, void 0, !0)
926
+ ], 42, ga))), 128))
927
927
  ], 34);
928
928
  };
929
929
  }
930
930
  }), fa = /* @__PURE__ */ Z(pa, [["__scopeId", "data-v-44d73ce9"]]), {
931
931
  PAGE_STATUS: ma
932
- } = we, Pa = {
932
+ } = ke, Pa = {
933
933
  components: {
934
934
  TinySearch: ht,
935
- TinyCollapse: Ie,
936
- TinyCollapseItem: Ee,
937
- TinyIconSearch: wt(),
935
+ TinyCollapse: Te,
936
+ TinyCollapseItem: we,
937
+ TinyIconSearch: kt(),
938
938
  TinyPopover: Dt,
939
939
  DraggableTree: fa,
940
940
  SvgButton: ve
@@ -958,59 +958,59 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
958
958
  } = se(), {
959
959
  pageSettingState: r,
960
960
  changeTreeData: i,
961
- isCurrentDataSame: g,
962
- getPageList: E,
961
+ isCurrentDataSame: d,
962
+ getPageList: w,
963
963
  resetPageData: _,
964
964
  STATIC_PAGE_GROUP_ID: m,
965
- COMMON_PAGE_GROUP_ID: C,
965
+ COMMON_PAGE_GROUP_ID: b,
966
966
  switchPage: D
967
967
  } = Y(), {
968
- fetchPageDetail: w,
969
- requestUpdatePage: T
970
- } = ce, A = () => R(M.GlobalService).getBaseInfo().id, G = ee({
968
+ fetchPageDetail: k,
969
+ requestUpdatePage: F
970
+ } = ce, V = () => A(M.GlobalService).getBaseInfo().id, R = ee({
971
971
  pageSearchValue: "",
972
- collapseValue: [m, C],
972
+ collapseValue: [m, b],
973
973
  currentNodeData: {
974
- id: R(M.GlobalService).getBaseInfo().pageId
974
+ id: A(M.GlobalService).getBaseInfo().pageId
975
975
  }
976
976
  }), {
977
977
  subscribe: J,
978
- unsubscribe: d
979
- } = Ne();
978
+ unsubscribe: u
979
+ } = Ie();
980
980
  let P = null;
981
981
  ct(() => {
982
982
  P = J({
983
983
  topic: "locationHistoryChanged",
984
984
  callback: (c) => {
985
- c.pageId ? G.currentNodeData = {
985
+ c.pageId ? R.currentNodeData = {
986
986
  id: c.pageId
987
- } : o() && (G.currentNodeData = {});
987
+ } : o() && (R.currentNodeData = {});
988
988
  },
989
989
  subscriber: "pageTree"
990
990
  });
991
991
  }), He(() => {
992
- P && d(P);
992
+ P && u(P);
993
993
  });
994
- const l = async (c) => await E(c);
995
- r.updateTreeData = async () => await l(A());
996
- const u = (c) => {
997
- G.currentNodeData = c, D(c.id).then(() => {
994
+ const l = async (c) => await w(c);
995
+ r.updateTreeData = async () => await l(V());
996
+ const g = (c) => {
997
+ R.currentNodeData = c, D(c.id).then(() => {
998
998
  Q(), X();
999
999
  });
1000
- }, F = (c, p) => {
1000
+ }, N = (c, p) => {
1001
1001
  var W;
1002
1002
  const {
1003
1003
  id: y,
1004
1004
  isPage: H
1005
1005
  } = p;
1006
- !o() && y === ((W = G == null ? void 0 : G.currentNodeData) == null ? void 0 : W.id) || !H || (s() && g() ? u(p) : n({
1006
+ !o() && y === ((W = R == null ? void 0 : R.currentNodeData) == null ? void 0 : W.id) || !H || (s() && d() ? g(p) : n({
1007
1007
  title: "提示",
1008
1008
  message: `${o() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
1009
1009
  exec: () => {
1010
- i(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy), u(p);
1010
+ i(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy), g(p);
1011
1011
  }
1012
1012
  }));
1013
- }, b = (c, p, y) => {
1013
+ }, C = (c, p, y) => {
1014
1014
  var H;
1015
1015
  if (y && p.isPage) {
1016
1016
  const W = ((H = p.occupier) == null ? void 0 : H.username) || "";
@@ -1019,19 +1019,19 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1019
1019
  });
1020
1020
  return;
1021
1021
  }
1022
- ge(r.currentPageData, r.currentPageDataCopy) ? a("openSettingPanel", p) : n({
1022
+ de(r.currentPageData, r.currentPageDataCopy) ? a("openSettingPanel", p) : n({
1023
1023
  title: "提示",
1024
1024
  message: `当前页面或文件夹${r.currentPageData.name}尚未保存,是否要继续切换?`,
1025
1025
  exec: () => {
1026
1026
  i(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy), a("openSettingPanel", p);
1027
1027
  }
1028
1028
  });
1029
- }, q = {}, O = (c, p) => {
1029
+ }, q = {}, x = (c, p) => {
1030
1030
  q[p] = c;
1031
1031
  }, re = (c) => {
1032
- F(null, c.rawData);
1032
+ N(null, c.rawData);
1033
1033
  }, $ = (c) => at(c.occupier).state === ma.Lock, te = (c) => {
1034
- b(null, c.rawData, $(c.rawData));
1034
+ C(null, c.rawData, $(c.rawData));
1035
1035
  }, le = [
1036
1036
  {
1037
1037
  type: "settings",
@@ -1072,8 +1072,8 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1072
1072
  var y, H, W;
1073
1073
  (y = c.action) == null || y.call(c, p), (W = (H = q[p.id]) == null ? void 0 : H.doClose) == null || W.call(H);
1074
1074
  }
1075
- })), Ve = (c, p) => c === C ? le.slice(0, 1) : !p.rawData.isPage || p.rawData.group === "public" ? le.filter((y) => y.type !== "settingHome") : le, me = (c) => {
1076
- var ue;
1075
+ })), Be = (c, p) => c === b ? le.slice(0, 1) : !p.rawData.isPage || p.rawData.group === "public" ? le.filter((y) => y.type !== "settingHome") : le, me = (c) => {
1076
+ var ge;
1077
1077
  const {
1078
1078
  id: p,
1079
1079
  name: y,
@@ -1084,26 +1084,26 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1084
1084
  ...H,
1085
1085
  fileName: y
1086
1086
  }
1087
- }, be = ((ue = e == null ? void 0 : e.currentPage) == null ? void 0 : ue.id) === p;
1087
+ }, Ce = ((ge = e == null ? void 0 : e.currentPage) == null ? void 0 : ge.id) === p;
1088
1088
  return tt({
1089
1089
  id: p,
1090
1090
  params: W,
1091
- isCurEditPage: be
1091
+ isCurEditPage: Ce
1092
1092
  });
1093
- }, k = (c) => {
1093
+ }, O = (c) => {
1094
1094
  const {
1095
1095
  id: p
1096
1096
  } = c;
1097
- return T(p, {
1097
+ return F(p, {
1098
1098
  ...c,
1099
1099
  page_content: null
1100
1100
  }).then(() => {
1101
- V({
1101
+ B({
1102
1102
  type: "success",
1103
1103
  message: "更新文件夹成功!"
1104
1104
  });
1105
1105
  }).catch((y) => {
1106
- V({
1106
+ B({
1107
1107
  type: "error",
1108
1108
  title: "更新文件夹失败",
1109
1109
  message: JSON.stringify((y == null ? void 0 : y.message) || y)
@@ -1111,11 +1111,11 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1111
1111
  }).finally(() => {
1112
1112
  r.updateTreeData(), r.isNew = !1;
1113
1113
  });
1114
- }, N = (c, p) => {
1115
- ge(r.currentPageData, r.currentPageDataCopy) ? (Q(), X(), r.currentPageData.id = c.id, i(p.id, c.parentId), _(), w(c.id).then((y) => {
1116
- y.parentId = p.id, y.isPage ? (y.isDefault = !1, me(y)) : k(y);
1114
+ }, I = (c, p) => {
1115
+ de(r.currentPageData, r.currentPageDataCopy) ? (Q(), X(), r.currentPageData.id = c.id, i(p.id, c.parentId), _(), k(c.id).then((y) => {
1116
+ y.parentId = p.id, y.isPage ? (y.isDefault = !1, me(y)) : O(y);
1117
1117
  }).catch((y) => {
1118
- V({
1118
+ B({
1119
1119
  type: "error",
1120
1120
  title: "移动页面文件/文件夹失败",
1121
1121
  message: JSON.stringify((y == null ? void 0 : y.message) || y)
@@ -1128,32 +1128,32 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1128
1128
  }
1129
1129
  });
1130
1130
  };
1131
- Ne().subscribe({
1131
+ Ie().subscribe({
1132
1132
  topic: "app_id_changed",
1133
1133
  subscriber: "page_tree_app_id_changed",
1134
1134
  callback: (c) => {
1135
1135
  l(c);
1136
1136
  }
1137
1137
  });
1138
- const B = (c) => {
1138
+ const E = (c) => {
1139
1139
  c.stopPropagation(), c.preventDefault(), a("add");
1140
1140
  };
1141
1141
  return He(() => {
1142
- Ne().unsubscribe({
1142
+ Ie().unsubscribe({
1143
1143
  topic: "app_id_changed",
1144
1144
  subscriber: "page_tree_app_id_changed"
1145
1145
  });
1146
1146
  }), {
1147
- createPublicPage: B,
1148
- state: G,
1149
- switchPage: u,
1147
+ createPublicPage: E,
1148
+ state: R,
1149
+ switchPage: g,
1150
1150
  pageSettingState: r,
1151
- setPopoverRef: O,
1152
- IconFolderOpened: Bt(),
1153
- IconFolderClosed: Tt(),
1154
- getRowOperations: Ve,
1151
+ setPopoverRef: x,
1152
+ IconFolderOpened: Et(),
1153
+ IconFolderClosed: Ft(),
1154
+ getRowOperations: Be,
1155
1155
  handleClickRow: re,
1156
- handleMoveNode: N,
1156
+ handleMoveNode: I,
1157
1157
  isPageLocked: $,
1158
1158
  handleClickPageSettings: te,
1159
1159
  STATIC_PAGE_GROUP_ID: m
@@ -1162,10 +1162,10 @@ const oa = /* @__PURE__ */ Z(ta, [["render", na], ["__scopeId", "data-v-21dedc52
1162
1162
  }, ya = { class: "app-manage-search" }, _a = { class: "title" }, Da = { class: "app-manage-tree" }, ha = {
1163
1163
  class: /* @__PURE__ */ he(["actions"])
1164
1164
  }, Sa = { class: "operation-list" }, va = ["onClick"];
1165
- function Ca(t, a, n, e, o, s) {
1166
- const r = h("tiny-icon-search"), i = h("tiny-search"), g = h("svg-button"), E = h("tiny-popover"), _ = h("draggable-tree"), m = h("tiny-collapse-item"), C = h("tiny-collapse");
1165
+ function ba(t, a, n, e, o, s) {
1166
+ const r = h("tiny-icon-search"), i = h("tiny-search"), d = h("svg-button"), w = h("tiny-popover"), _ = h("draggable-tree"), m = h("tiny-collapse-item"), b = h("tiny-collapse");
1167
1167
  return S(), U(ie, null, [
1168
- x("div", ya, [
1168
+ G("div", ya, [
1169
1169
  f(i, {
1170
1170
  modelValue: e.state.pageSearchValue,
1171
1171
  "onUpdate:modelValue": a[0] || (a[0] = (D) => e.state.pageSearchValue = D),
@@ -1178,21 +1178,21 @@ function Ca(t, a, n, e, o, s) {
1178
1178
  _: 1
1179
1179
  }, 8, ["modelValue"])
1180
1180
  ]),
1181
- f(C, {
1181
+ f(b, {
1182
1182
  modelValue: e.state.collapseValue,
1183
1183
  "onUpdate:modelValue": a[1] || (a[1] = (D) => e.state.collapseValue = D),
1184
1184
  class: "page-manage-collapse lowcode-scrollbar"
1185
1185
  }, {
1186
1186
  default: v(() => [
1187
- (S(!0), U(ie, null, De(e.pageSettingState.pages, (D, w) => (S(), L(m, {
1188
- key: w,
1187
+ (S(!0), U(ie, null, De(e.pageSettingState.pages, (D, k) => (S(), L(m, {
1188
+ key: k,
1189
1189
  name: D.groupId
1190
1190
  }, {
1191
1191
  title: v(() => [
1192
- x("span", _a, ae(D.groupName), 1)
1192
+ G("span", _a, ae(D.groupName), 1)
1193
1193
  ]),
1194
1194
  default: v(() => [
1195
- x("div", Da, [
1195
+ G("div", Da, [
1196
1196
  f(_, {
1197
1197
  data: D.data,
1198
1198
  "label-key": "name",
@@ -1203,42 +1203,42 @@ function Ca(t, a, n, e, o, s) {
1203
1203
  onClickRow: e.handleClickRow,
1204
1204
  onMoveNode: e.handleMoveNode
1205
1205
  }, {
1206
- "row-suffix": v(({ node: T }) => [
1207
- x("div", ha, [
1208
- e.isPageLocked(T.rawData) ? (S(), L(g, {
1206
+ "row-suffix": v(({ node: F }) => [
1207
+ G("div", ha, [
1208
+ e.isPageLocked(F.rawData) ? (S(), L(d, {
1209
1209
  key: 0,
1210
1210
  name: "locked",
1211
1211
  hoverBgColor: !1
1212
1212
  })) : j("", !0),
1213
- T.rawData.isHome ? (S(), L(g, {
1213
+ F.rawData.isHome ? (S(), L(d, {
1214
1214
  key: 1,
1215
1215
  name: "home",
1216
1216
  hoverBgColor: !1
1217
1217
  })) : j("", !0),
1218
- f(E, {
1218
+ f(w, {
1219
1219
  ref_for: !0,
1220
- ref: (A) => e.setPopoverRef(A, T.id),
1220
+ ref: (V) => e.setPopoverRef(V, F.id),
1221
1221
  placement: "bottom-start",
1222
1222
  "visible-arrow": !1,
1223
1223
  "popper-class": "page-tree-row-operation-list"
1224
1224
  }, {
1225
1225
  reference: v(() => [
1226
- f(g, {
1226
+ f(d, {
1227
1227
  name: "ellipsis",
1228
1228
  class: "auto-hidden",
1229
1229
  hoverBgColor: !1
1230
1230
  })
1231
1231
  ]),
1232
1232
  default: v(() => [
1233
- x("div", Sa, [
1234
- (S(!0), U(ie, null, De(e.getRowOperations(D.groupId, T), (A, G) => (S(), U("div", {
1235
- key: G,
1236
- class: he([A.type === "divider" ? "divider" : "item"].concat(A.class || [])),
1233
+ G("div", Sa, [
1234
+ (S(!0), U(ie, null, De(e.getRowOperations(D.groupId, F), (V, R) => (S(), U("div", {
1235
+ key: R,
1236
+ class: he([V.type === "divider" ? "divider" : "item"].concat(V.class || [])),
1237
1237
  onClick: (J) => {
1238
- var d;
1239
- return (d = A.action) == null ? void 0 : d.call(A, T);
1238
+ var u;
1239
+ return (u = V.action) == null ? void 0 : u.call(V, F);
1240
1240
  }
1241
- }, ae(A.label), 11, va))), 128))
1241
+ }, ae(V.label), 11, va))), 128))
1242
1242
  ])
1243
1243
  ]),
1244
1244
  _: 2
@@ -1256,19 +1256,19 @@ function Ca(t, a, n, e, o, s) {
1256
1256
  }, 8, ["modelValue"])
1257
1257
  ], 64);
1258
1258
  }
1259
- const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad"]]), Fa = {
1259
+ const Ca = /* @__PURE__ */ Z(Pa, [["render", ba], ["__scopeId", "data-v-1e91c8ad"]]), Na = {
1260
1260
  getPageById: async (t) => {
1261
1261
  if (t)
1262
- return Te(t);
1262
+ return Fe(t);
1263
1263
  },
1264
1264
  openPageSettingPanel: ye
1265
- }, Na = {
1265
+ }, Ia = {
1266
1266
  components: {
1267
1267
  PageSetting: ea,
1268
1268
  PluginPanel: yt,
1269
1269
  SvgButton: ve,
1270
1270
  PageFolderSetting: oa,
1271
- PageTree: ba
1271
+ PageTree: Ca
1272
1272
  },
1273
1273
  props: {
1274
1274
  title: {
@@ -1293,22 +1293,22 @@ const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad
1293
1293
  isTemporaryPage: r,
1294
1294
  initCurrentPageData: i
1295
1295
  } = Y(), {
1296
- PLUGIN_NAME: g
1297
- } = ne(), E = ee({
1296
+ PLUGIN_NAME: d
1297
+ } = ne(), w = ee({
1298
1298
  emitEvent: a
1299
1299
  });
1300
- Le("panelState", E);
1301
- const _ = K(null), m = o.ROOT_ID, C = gt().getDocsUrl("page"), D = ee({
1300
+ Le("panelState", w);
1301
+ const _ = K(null), m = o.ROOT_ID, b = dt().getDocsUrl("page"), D = ee({
1302
1302
  isFolder: !1
1303
- }), w = (P, l = m) => {
1303
+ }), k = (P, l = m) => {
1304
1304
  X(), o.isNew = !0;
1305
1305
  try {
1306
- const u = s();
1307
- if (!u)
1306
+ const g = s();
1307
+ if (!g)
1308
1308
  throw new Error("Failed to get default page configuration");
1309
1309
  o.currentPageData = {
1310
1310
  ...s(),
1311
- ...u,
1311
+ ...g,
1312
1312
  parentId: l,
1313
1313
  route: "",
1314
1314
  name: "Untitled",
@@ -1317,17 +1317,17 @@ const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad
1317
1317
  },
1318
1318
  group: P
1319
1319
  };
1320
- } catch (u) {
1321
- throw new Error(u);
1320
+ } catch (g) {
1321
+ throw new Error(g);
1322
1322
  }
1323
- o.currentPageDataCopy = de(!0, {}, o.currentPageData), D.isFolder = !1, ye();
1324
- }, T = (P = m) => {
1323
+ o.currentPageDataCopy = ue(!0, {}, o.currentPageData), D.isFolder = !1, ye();
1324
+ }, F = (P = m) => {
1325
1325
  Q(), o.isNew = !0, o.currentPageData = {
1326
1326
  parentId: P,
1327
1327
  route: "",
1328
1328
  name: "untitled"
1329
- }, o.currentPageDataCopy = de(!0, {}, o.currentPageData), D.isFolder = !0, Je();
1330
- }, A = (P) => {
1329
+ }, o.currentPageDataCopy = ue(!0, {}, o.currentPageData), D.isFolder = !0, Je();
1330
+ }, V = (P) => {
1331
1331
  n({
1332
1332
  title: "提示",
1333
1333
  type: "warning ",
@@ -1338,12 +1338,12 @@ const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad
1338
1338
  isHome: !0
1339
1339
  };
1340
1340
  nt(P.id, l).then(() => {
1341
- o.updateTreeData(), o.isNew = !1, V({
1341
+ o.updateTreeData(), o.isNew = !1, B({
1342
1342
  message: "主页设置成功!",
1343
1343
  type: "success"
1344
1344
  });
1345
1345
  }).catch(() => {
1346
- V({
1346
+ B({
1347
1347
  message: "主页设置失败!",
1348
1348
  type: "error"
1349
1349
  });
@@ -1354,15 +1354,15 @@ const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad
1354
1354
  Se(() => {
1355
1355
  r.saved && ye();
1356
1356
  });
1357
- const G = async (P) => {
1357
+ const R = async (P) => {
1358
1358
  D.isFolder = !P.isPage, o.isNew = !1;
1359
1359
  const l = P.id !== o.currentPageData.id;
1360
1360
  D.isFolder ? (l && Q(), Je()) : (l && X(), ye());
1361
- const u = await Te(P == null ? void 0 : P.id);
1362
- i(u);
1361
+ const g = await Fe(P == null ? void 0 : P.id);
1362
+ i(g);
1363
1363
  };
1364
- return Le("openSettingPanel", G), {
1365
- PLUGIN_NAME: g,
1364
+ return Le("openSettingPanel", R), {
1365
+ PLUGIN_NAME: d,
1366
1366
  state: D,
1367
1367
  pageState: e,
1368
1368
  openNewPage: (P) => {
@@ -1372,18 +1372,18 @@ const ba = /* @__PURE__ */ Z(Pa, [["render", Ca], ["__scopeId", "data-v-1e91c8ad
1372
1372
  pluginPanelClosed: () => {
1373
1373
  a("close"), Q(), X();
1374
1374
  },
1375
- openSettingPanel: G,
1376
- createNewFolder: T,
1377
- createNewPage: w,
1378
- docsUrl: C,
1379
- settingHome: A
1375
+ openSettingPanel: R,
1376
+ createNewFolder: F,
1377
+ createNewPage: k,
1378
+ docsUrl: b,
1379
+ settingHome: V
1380
1380
  };
1381
1381
  }
1382
- }, Ea = { class: "plugin-page" };
1383
- function Ia(t, a, n, e, o, s) {
1384
- const r = h("svg-button"), i = h("page-tree"), g = h("plugin-panel"), E = h("page-setting"), _ = h("page-folder-setting");
1385
- return S(), U("div", Ea, [
1386
- f(g, {
1382
+ }, wa = { class: "plugin-page" };
1383
+ function Ta(t, a, n, e, o, s) {
1384
+ const r = h("svg-button"), i = h("page-tree"), d = h("plugin-panel"), w = h("page-setting"), _ = h("page-folder-setting");
1385
+ return S(), U("div", wa, [
1386
+ f(d, {
1387
1387
  title: n.title,
1388
1388
  "fixed-name": e.PLUGIN_NAME.AppManage,
1389
1389
  fixedPanels: n.fixedPanels,
@@ -1420,7 +1420,7 @@ function Ia(t, a, n, e, o, s) {
1420
1420
  ]),
1421
1421
  _: 1
1422
1422
  }, 8, ["title", "fixed-name", "fixedPanels", "onClose", "docsUrl"]),
1423
- f(E, {
1423
+ f(w, {
1424
1424
  isFolder: e.state.isFolder,
1425
1425
  onOpenNewPage: e.openNewPage
1426
1426
  }, null, 8, ["isFolder", "onOpenNewPage"]),
@@ -1429,7 +1429,7 @@ function Ia(t, a, n, e, o, s) {
1429
1429
  }, null, 8, ["isFolder"])
1430
1430
  ]);
1431
1431
  }
1432
- const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f"]]), { ELEMENT_TAG: Ta, COMPONENT_NAME: Ba } = we, Pe = {
1432
+ const ka = /* @__PURE__ */ Z(Ia, [["render", Ta], ["__scopeId", "data-v-7bd6cd0f"]]), { ELEMENT_TAG: Fa, COMPONENT_NAME: Ea } = ke, Pe = {
1433
1433
  app: "",
1434
1434
  name: "",
1435
1435
  route: "",
@@ -1453,7 +1453,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1453
1453
  parentId: "none",
1454
1454
  isBody: !1,
1455
1455
  group: "staticPages"
1456
- }, ka = K(null), I = ee({
1456
+ }, Oa = K(null), T = ee({
1457
1457
  currentPageDataCopy: {},
1458
1458
  // 记录当前页最开始的状态,当用户点击取消按钮的时候恢复到初始状态
1459
1459
  currentPageData: {},
@@ -1467,9 +1467,9 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1467
1467
  treeDataMapping: {},
1468
1468
  defaultPage: null
1469
1469
  // 当前页设置的默认页
1470
- }), Oa = ee({
1470
+ }), xa = ee({
1471
1471
  saved: !1
1472
- }), Oe = 0, st = 1, xa = (t, a) => {
1472
+ }), xe = 0, st = 1, Ga = (t, a) => {
1473
1473
  var o, s;
1474
1474
  if (!((o = t == null ? void 0 : t.pageBaseStyle) != null && o.className) || !((s = t == null ? void 0 : t.pageBaseStyle) != null && s.style))
1475
1475
  return "";
@@ -1486,7 +1486,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1486
1486
  n(a.componentBaseStyle.className, a.componentBaseStyle.style)
1487
1487
  ].join(`
1488
1488
  `) : e;
1489
- }, Aa = () => {
1489
+ }, Va = () => {
1490
1490
  const t = Ue("engine.plugins.materials"), a = Ue("engine.plugins.appmanage");
1491
1491
  return !t || !a || !a.pageBaseStyle ? { ...Pe } : {
1492
1492
  ...Pe,
@@ -1496,11 +1496,11 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1496
1496
  ...Pe.page_content.props,
1497
1497
  className: a.pageBaseStyle.className
1498
1498
  },
1499
- css: xa(a, t)
1499
+ css: Ga(a, t)
1500
1500
  }
1501
1501
  };
1502
- }, Ga = () => {
1503
- const t = I.currentPageData || {}, a = I.currentPageDataCopy || {};
1502
+ }, Ra = () => {
1503
+ const t = T.currentPageData || {}, a = T.currentPageDataCopy || {};
1504
1504
  let n = !0;
1505
1505
  return Object.keys(a).some((e) => {
1506
1506
  if (["children", "label", "createdBy", "assets", "occupier"].includes(e))
@@ -1520,53 +1520,53 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1520
1520
  a[e] !== t[e] && (n = !1);
1521
1521
  return !n;
1522
1522
  }), n;
1523
- }, Ke = (t) => t === I.ROOT_ID ? { id: I.ROOT_ID, children: I.pages[Oe].data } : I.treeDataMapping[t], Va = (t, a) => {
1523
+ }, Ke = (t) => t === T.ROOT_ID ? { id: T.ROOT_ID, children: T.pages[xe].data } : T.treeDataMapping[t], Ba = (t, a) => {
1524
1524
  var n, e;
1525
1525
  if (t && a && String(t) !== String(a)) {
1526
1526
  const o = Ke(t), s = Ke(a);
1527
1527
  if (!o || !s)
1528
1528
  return;
1529
- const r = I.currentPageData.id, i = (e = (n = s.children) == null ? void 0 : n.findIndex) == null ? void 0 : e.call(n, ({ id: g }) => g === r);
1529
+ const r = T.currentPageData.id, i = (e = (n = s.children) == null ? void 0 : n.findIndex) == null ? void 0 : e.call(n, ({ id: d }) => d === r);
1530
1530
  if (i > -1) {
1531
- const g = s.children.splice(i, 1)[0];
1532
- o.children || (o.children = []), o.children.unshift(g);
1531
+ const d = s.children.splice(i, 1)[0];
1532
+ o.children || (o.children = []), o.children.unshift(d);
1533
1533
  }
1534
1534
  }
1535
- }, Ra = () => I.currentPageData.page_content || {}, Ma = (t) => {
1536
- I.currentPageData = t, I.currentPageDataCopy = de(!0, {}, t), I.oldParentId = t.parentId;
1535
+ }, Aa = () => T.currentPageData.page_content || {}, Ma = (t) => {
1536
+ T.currentPageData = t, T.currentPageDataCopy = ue(!0, {}, t), T.oldParentId = t.parentId;
1537
1537
  }, Ha = () => {
1538
- I.currentPageData = {}, I.currentPageDataCopy = {}, I.oldParentId = null, I.defaultPage = null;
1539
- }, La = () => !ge(I.currentPageData, I.currentPageDataCopy), We = (t) => {
1540
- const { ROOT_ID: a } = I, n = { [a]: { id: a, parentId: "" } };
1538
+ T.currentPageData = {}, T.currentPageDataCopy = {}, T.oldParentId = null, T.defaultPage = null;
1539
+ }, La = () => !de(T.currentPageData, T.currentPageDataCopy), We = (t) => {
1540
+ const { ROOT_ID: a } = T, n = { [a]: { id: a, parentId: "" } };
1541
1541
  return t.forEach((e) => {
1542
1542
  n[e.id] = e;
1543
1543
  }), t.forEach((e) => {
1544
1544
  const o = n[e.parentId];
1545
1545
  o && (o.children = o.children || [], o.children.push(e));
1546
1546
  }), n;
1547
- }, Ce = async (t) => {
1548
- const a = await ce.fetchPageList(t || R(M.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Oe, data: [] }, e = { groupName: "公共页面", groupId: st, data: [] };
1547
+ }, be = async (t) => {
1548
+ const a = await ce.fetchPageList(t || A(M.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: xe, data: [] }, e = { groupName: "公共页面", groupId: st, data: [] };
1549
1549
  a.forEach((r) => {
1550
- const i = r.name ? r : { ...r, name: r.folderName, group: "staticPages" }, g = r.meta ? {
1550
+ const i = r.name ? r : { ...r, name: r.folderName, group: "staticPages" }, d = r.meta ? {
1551
1551
  ...r,
1552
1552
  ...r.meta,
1553
1553
  name: r.fileName,
1554
1554
  isPage: !0,
1555
- isBody: r.meta.rootElement === Ta.Body
1556
- } : i, { children: E, ..._ } = g;
1557
- g.group === "staticPages" ? n.data.push(_) : e.data.push(_);
1555
+ isBody: r.meta.rootElement === Fa.Body
1556
+ } : i, { children: w, ..._ } = d;
1557
+ d.group === "staticPages" ? n.data.push(_) : e.data.push(_);
1558
1558
  });
1559
1559
  const o = We(n.data), s = We(e.data);
1560
- return I.treeDataMapping = { ...o, ...s }, n.data = o[I.ROOT_ID].children || [], I.pages = [n, e], I.pages;
1561
- }, xe = (t) => {
1562
- if (t === I.ROOT_ID)
1560
+ return T.treeDataMapping = { ...o, ...s }, n.data = o[T.ROOT_ID].children || [], T.pages = [n, e], T.pages;
1561
+ }, Ge = (t) => {
1562
+ if (t === T.ROOT_ID)
1563
1563
  return [];
1564
- const a = I.treeDataMapping[t];
1565
- return [a].concat(xe(a.parentId));
1564
+ const a = T.treeDataMapping[t];
1565
+ return [a].concat(Ge(a.parentId));
1566
1566
  }, Ua = async (t, a) => {
1567
- if (I.pages.length === 0 && await Ce(), !I.treeDataMapping[t])
1567
+ if (T.pages.length === 0 && await be(), !T.treeDataMapping[t])
1568
1568
  return null;
1569
- const e = xe(t).slice(1).reverse(), o = a ? () => !0 : (s) => s.isPage;
1569
+ const e = Ge(t).slice(1).reverse(), o = a ? () => !0 : (s) => s.isPage;
1570
1570
  return e.filter(o).map((s) => s.id);
1571
1571
  }, rt = (t) => {
1572
1572
  if (t.every((n) => n.isPage))
@@ -1577,24 +1577,24 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1577
1577
  }))).flat();
1578
1578
  return rt(a);
1579
1579
  }, qa = async (t) => {
1580
- I.pages.length === 0 && await Ce();
1581
- const a = I.treeDataMapping[t];
1580
+ T.pages.length === 0 && await be();
1581
+ const a = T.treeDataMapping[t];
1582
1582
  return Array.isArray(a == null ? void 0 : a.children) ? rt(a.children) : [];
1583
1583
  }, ja = () => {
1584
1584
  const { pageState: t } = se();
1585
1585
  t.currentVm = null, t.hoverVm = null, t.properties = {}, t.pageSchema = null;
1586
1586
  }, lt = (t, a = !1) => {
1587
1587
  if (ja(), t !== 0 && !t) {
1588
- a ? R(M.GlobalService).updateParams({ pageId: "", previewId: "" }) : R(M.GlobalService).updatePageId(""), se().initData({ componentName: Ba.Page, props: {} }, {}), ne().layoutState.pageStatus = {
1588
+ a ? A(M.GlobalService).updateParams({ pageId: "", previewId: "" }) : A(M.GlobalService).updatePageId(""), se().initData({ componentName: Ea.Page, props: {} }, {}), ne().layoutState.pageStatus = {
1589
1589
  state: "empty",
1590
1590
  data: {}
1591
1591
  };
1592
1592
  return;
1593
1593
  }
1594
1594
  return ce.fetchPageDetail(t).then((n) => {
1595
- n.isPage && dt().setBreadcrumbPage([n.name]), a ? R(M.GlobalService).updateParams({ pageId: t, previewId: "" }) : R(M.GlobalService).updatePageId(t), ne().closePlugin(), ne().layoutState.pageStatus = at(n.occupier), se().initData(n.page_content, n);
1595
+ n.isPage && ut().setBreadcrumbPage([n.name]), a ? A(M.GlobalService).updateParams({ pageId: t, previewId: "" }) : A(M.GlobalService).updatePageId(t), ne().closePlugin(), ne().layoutState.pageStatus = at(n.occupier), se().initData(n.page_content, n);
1596
1596
  }).catch(() => {
1597
- V({
1597
+ B({
1598
1598
  type: "error",
1599
1599
  message: "切换页面失败,目标页面不存在"
1600
1600
  });
@@ -1636,15 +1636,15 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1636
1636
  var o;
1637
1637
  t.parentId !== e && !a.find((s) => s.id === t.parentId) && (t.parentId = (o = a[n - 1]) != null && o.id ? a[n - 1].id : e);
1638
1638
  }, za = async (t) => {
1639
- const { ROOT_ID: a } = I;
1639
+ const { ROOT_ID: a } = T;
1640
1640
  t.length > 0 && await Promise.all(
1641
1641
  t.map(async (n, e) => {
1642
1642
  await Wa(n), Xa(n, t, e, a);
1643
1643
  })
1644
1644
  );
1645
1645
  }, Qa = async (t) => {
1646
- I.pages.length === 0 && await Ce();
1647
- const a = xe(t.id).filter((n) => n.isPage).reverse().map((n) => ({
1646
+ T.pages.length === 0 && await be();
1647
+ const a = Ge(t.id).filter((n) => n.isPage).reverse().map((n) => ({
1648
1648
  id: n.id,
1649
1649
  page_content: n.page_content,
1650
1650
  name: n.name,
@@ -1659,23 +1659,23 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1659
1659
  }));
1660
1660
  return await za(a), Ka(a, t), a;
1661
1661
  }, Ya = () => ({
1662
- getDefaultPage: Aa,
1663
- selectedTemplateCard: ka,
1664
- pageSettingState: I,
1665
- isTemporaryPage: Oa,
1666
- isCurrentDataSame: Ga,
1667
- changeTreeData: Va,
1668
- getPageContent: Ra,
1662
+ getDefaultPage: Va,
1663
+ selectedTemplateCard: Oa,
1664
+ pageSettingState: T,
1665
+ isTemporaryPage: xa,
1666
+ isCurrentDataSame: Ra,
1667
+ changeTreeData: Ba,
1668
+ getPageContent: Aa,
1669
1669
  resetPageData: Ha,
1670
1670
  initCurrentPageData: Ma,
1671
1671
  isChangePageData: La,
1672
- getPageList: Ce,
1672
+ getPageList: be,
1673
1673
  getAncestors: Ua,
1674
1674
  switchPage: lt,
1675
1675
  switchPageWithConfirm: Ja,
1676
1676
  getFamily: Qa,
1677
1677
  getPageChildren: qa,
1678
- STATIC_PAGE_GROUP_ID: Oe,
1678
+ STATIC_PAGE_GROUP_ID: xe,
1679
1679
  COMMON_PAGE_GROUP_ID: st
1680
1680
  }), Za = {
1681
1681
  id: "engine.service.page",
@@ -1686,8 +1686,8 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1686
1686
  }
1687
1687
  }, $a = {
1688
1688
  components: {
1689
- TinyForm: bt,
1690
- TinyFormItem: Ct,
1689
+ TinyForm: Ct,
1690
+ TinyFormItem: bt,
1691
1691
  TinyInput: et,
1692
1692
  TinySelect: vt,
1693
1693
  TinyRadio: St
@@ -1712,48 +1712,48 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1712
1712
  get() {
1713
1713
  return String(t.currentPageData.parentId);
1714
1714
  },
1715
- set(d) {
1716
- t.currentPageData.parentId = d;
1715
+ set(u) {
1716
+ t.currentPageData.parentId = u;
1717
1717
  }
1718
1718
  }), r = K(s.value), i = ee({
1719
1719
  childPageList: [],
1720
1720
  childPageOp: [],
1721
1721
  defaultPageId: ""
1722
- }), g = async (d) => {
1722
+ }), d = async (u) => {
1723
1723
  var P;
1724
1724
  if (t.isNew)
1725
1725
  i.childPageList = [], i.childPageOp = [], i.defaultPageId = "";
1726
1726
  else {
1727
- i.childPageList = await e(d);
1728
- const l = (P = i.childPageList) == null ? void 0 : P.find((u) => u.isDefault);
1729
- t.defaultPage = l || null, i.defaultPageId = l ? l.id : "", i.childPageOp = i.childPageList.map((u) => ({
1730
- value: u.id,
1731
- label: u.name,
1732
- icon: kt()
1727
+ i.childPageList = await e(u);
1728
+ const l = (P = i.childPageList) == null ? void 0 : P.find((g) => g.isDefault);
1729
+ t.defaultPage = l || null, i.defaultPageId = l ? l.id : "", i.childPageOp = i.childPageList.map((g) => ({
1730
+ value: g.id,
1731
+ label: g.name,
1732
+ icon: Ot()
1733
1733
  }));
1734
1734
  }
1735
- }, E = () => {
1736
- t.defaultPage = i.childPageList.find((d) => d.id === i.defaultPageId);
1735
+ }, w = () => {
1736
+ t.defaultPage = i.childPageList.find((u) => u.id === i.defaultPageId);
1737
1737
  };
1738
1738
  Se(() => {
1739
- var d;
1740
- r.value = t.oldParentId, g((d = t.currentPageData) == null ? void 0 : d.id);
1739
+ var u;
1740
+ r.value = t.oldParentId, d((u = t.currentPageData) == null ? void 0 : u.id);
1741
1741
  });
1742
1742
  const _ = z(() => {
1743
- let d = t.currentPageData.route || "", P = s.value;
1743
+ let u = t.currentPageData.route || "", P = s.value;
1744
1744
  for (; P !== o; ) {
1745
1745
  const l = t.treeDataMapping[P];
1746
1746
  if (!l)
1747
1747
  break;
1748
- d = `${l.route}/${d}`, P = l.parentId;
1748
+ u = `${l.route}/${u}`, P = l.parentId;
1749
1749
  }
1750
- return d.startsWith("/") && (d = d.slice(1)), d;
1750
+ return u.startsWith("/") && (u = u.slice(1)), u;
1751
1751
  }), m = {
1752
1752
  name: [{
1753
1753
  required: !0,
1754
1754
  message: "请输入页面 ID"
1755
1755
  }, {
1756
- pattern: xt,
1756
+ pattern: Gt,
1757
1757
  message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
1758
1758
  }, {
1759
1759
  min: 3,
@@ -1767,12 +1767,12 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1767
1767
  pattern: qe,
1768
1768
  message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
1769
1769
  }]
1770
- }, C = {
1770
+ }, b = {
1771
1771
  name: [{
1772
1772
  required: !0,
1773
1773
  message: "请输入页面文件夹 ID"
1774
1774
  }, {
1775
- pattern: Ot,
1775
+ pattern: xt,
1776
1776
  message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
1777
1777
  }, {
1778
1778
  min: 3,
@@ -1790,58 +1790,58 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1790
1790
  required: !0,
1791
1791
  message: "必须选择页面类型"
1792
1792
  }]
1793
- }, D = (d) => {
1793
+ }, D = (u) => {
1794
1794
  const {
1795
1795
  id: P,
1796
1796
  name: l,
1797
- isPage: u,
1798
- children: F
1799
- } = d, b = {
1797
+ isPage: g,
1798
+ children: N
1799
+ } = u, C = {
1800
1800
  id: String(P),
1801
1801
  name: l,
1802
- isPage: u
1802
+ isPage: g
1803
1803
  };
1804
- return Array.isArray(F) && (b.children = F.filter((q) => q.id !== t.currentPageData.id).map((q) => D(q))), b;
1805
- }, w = (d) => d.id === o ? null : d.isPage ? f(h("SvgIcon"), {
1804
+ return Array.isArray(N) && (C.children = N.filter((q) => q.id !== t.currentPageData.id).map((q) => D(q))), C;
1805
+ }, k = (u) => u.id === o ? null : u.isPage ? f(h("SvgIcon"), {
1806
1806
  name: "text-page-common"
1807
1807
  }, null) : f(h("SvgIcon"), {
1808
1808
  name: "text-page-folder"
1809
- }, null), T = z(() => {
1810
- var F;
1811
- const d = ((F = t.pages[n]) == null ? void 0 : F.data) || [];
1809
+ }, null), F = z(() => {
1810
+ var N;
1811
+ const u = ((N = t.pages[n]) == null ? void 0 : N.data) || [];
1812
1812
  return {
1813
1813
  data: D({
1814
1814
  children: [{
1815
1815
  name: "无",
1816
1816
  id: o
1817
- }].concat(d)
1817
+ }].concat(u)
1818
1818
  }).children,
1819
1819
  shrinkIcon: null,
1820
1820
  expandIcon: null,
1821
- renderContent: (b, {
1821
+ renderContent: (C, {
1822
1822
  node: q,
1823
- data: O
1824
- }) => f(ie, null, [w(O), f("div", null, [q.label])])
1823
+ data: x
1824
+ }) => f(ie, null, [k(x), f("div", null, [q.label])])
1825
1825
  };
1826
- }), A = K(null);
1826
+ }), V = K(null);
1827
1827
  return {
1828
1828
  pageRules: m,
1829
- folderRules: C,
1829
+ folderRules: b,
1830
1830
  pageSettingState: t,
1831
1831
  pageParentId: s,
1832
- generalForm: A,
1833
- validGeneralForm: () => new Promise((d, P) => {
1834
- A.value.validate((l) => {
1835
- l ? d(l) : P(l);
1832
+ generalForm: V,
1833
+ validGeneralForm: () => new Promise((u, P) => {
1834
+ V.value.validate((l) => {
1835
+ l ? u(l) : P(l);
1836
1836
  });
1837
1837
  }),
1838
- treeFolderOp: T,
1838
+ treeFolderOp: F,
1839
1839
  currentRoute: _,
1840
- changeParentForderId: (d) => {
1841
- a(d.id, r.value), r.value = d.id;
1840
+ changeParentForderId: (u) => {
1841
+ a(u.id, r.value), r.value = u.id;
1842
1842
  },
1843
1843
  state: i,
1844
- changeDefaultPage: E
1844
+ changeDefaultPage: w
1845
1845
  };
1846
1846
  }
1847
1847
  }, en = { class: "general-config" }, tn = { class: "tip" }, an = {
@@ -1855,7 +1855,7 @@ const wa = /* @__PURE__ */ Z(Na, [["render", Ia], ["__scopeId", "data-v-7bd6cd0f
1855
1855
  class: "tip"
1856
1856
  }, rn = { class: "tip-text-dim" }, ln = { class: "tip-text-dim" };
1857
1857
  function cn(t, a, n, e, o, s) {
1858
- const r = h("tiny-radio"), i = h("tiny-form-item"), g = h("tiny-input"), E = h("tiny-select"), _ = h("tiny-form");
1858
+ const r = h("tiny-radio"), i = h("tiny-form-item"), d = h("tiny-input"), w = h("tiny-select"), _ = h("tiny-form");
1859
1859
  return S(), U("div", en, [
1860
1860
  f(_, {
1861
1861
  ref: "generalForm",
@@ -1880,7 +1880,7 @@ function cn(t, a, n, e, o, s) {
1880
1880
  default: v(() => [
1881
1881
  f(r, {
1882
1882
  modelValue: e.pageSettingState.currentPageData.group,
1883
- "onUpdate:modelValue": a[0] || (a[0] = (C) => e.pageSettingState.currentPageData.group = C),
1883
+ "onUpdate:modelValue": a[0] || (a[0] = (b) => e.pageSettingState.currentPageData.group = b),
1884
1884
  class: "page-type-radio",
1885
1885
  label: "staticPages"
1886
1886
  }, {
@@ -1891,7 +1891,7 @@ function cn(t, a, n, e, o, s) {
1891
1891
  }, 8, ["modelValue"]),
1892
1892
  f(r, {
1893
1893
  modelValue: e.pageSettingState.currentPageData.group,
1894
- "onUpdate:modelValue": a[1] || (a[1] = (C) => e.pageSettingState.currentPageData.group = C),
1894
+ "onUpdate:modelValue": a[1] || (a[1] = (b) => e.pageSettingState.currentPageData.group = b),
1895
1895
  class: "page-type-radio",
1896
1896
  label: "publicPages"
1897
1897
  }, {
@@ -1908,9 +1908,9 @@ function cn(t, a, n, e, o, s) {
1908
1908
  label: `${n.isFolder ? "文件夹" : "页面"}名称`
1909
1909
  }, {
1910
1910
  default: v(() => [
1911
- f(g, {
1911
+ f(d, {
1912
1912
  modelValue: e.pageSettingState.currentPageData.name,
1913
- "onUpdate:modelValue": a[2] || (a[2] = (C) => e.pageSettingState.currentPageData.name = C),
1913
+ "onUpdate:modelValue": a[2] || (a[2] = (b) => e.pageSettingState.currentPageData.name = b),
1914
1914
  placeholder: `请设置${n.isFolder ? "文件夹" : "页面"}名称`
1915
1915
  }, null, 8, ["modelValue", "placeholder"])
1916
1916
  ]),
@@ -1922,9 +1922,9 @@ function cn(t, a, n, e, o, s) {
1922
1922
  prop: "parentId"
1923
1923
  }, {
1924
1924
  default: v(() => [
1925
- f(E, {
1925
+ f(w, {
1926
1926
  modelValue: e.pageParentId,
1927
- "onUpdate:modelValue": a[3] || (a[3] = (C) => e.pageParentId = C),
1927
+ "onUpdate:modelValue": a[3] || (a[3] = (b) => e.pageParentId = b),
1928
1928
  "value-field": "id",
1929
1929
  "render-type": "tree",
1930
1930
  "tree-op": e.treeFolderOp,
@@ -1941,15 +1941,15 @@ function cn(t, a, n, e, o, s) {
1941
1941
  prop: "route"
1942
1942
  }, {
1943
1943
  default: v(() => [
1944
- f(g, {
1944
+ f(d, {
1945
1945
  modelValue: e.pageSettingState.currentPageData.route,
1946
- "onUpdate:modelValue": a[4] || (a[4] = (C) => e.pageSettingState.currentPageData.route = C),
1946
+ "onUpdate:modelValue": a[4] || (a[4] = (b) => e.pageSettingState.currentPageData.route = b),
1947
1947
  placeholder: "请设置路由"
1948
1948
  }, null, 8, ["modelValue"]),
1949
- x("div", tn, [
1949
+ G("div", tn, [
1950
1950
  e.pageSettingState.currentPageData.route ? (S(), U("span", nn, [
1951
- a[8] || (a[8] = x("span", { class: "tip-text" }, "website.com/", -1)),
1952
- x("span", on, ae(e.currentRoute), 1)
1951
+ a[8] || (a[8] = G("span", { class: "tip-text" }, "website.com/", -1)),
1952
+ G("span", on, ae(e.currentRoute), 1)
1953
1953
  ])) : (S(), U("span", an, "路由将以website.com开头"))
1954
1954
  ])
1955
1955
  ]),
@@ -1961,20 +1961,20 @@ function cn(t, a, n, e, o, s) {
1961
1961
  prop: "isDefault"
1962
1962
  }, {
1963
1963
  default: v(() => {
1964
- var C, D;
1964
+ var b, D;
1965
1965
  return [
1966
- f(E, {
1966
+ f(w, {
1967
1967
  modelValue: e.state.defaultPageId,
1968
- "onUpdate:modelValue": a[5] || (a[5] = (w) => e.state.defaultPageId = w),
1968
+ "onUpdate:modelValue": a[5] || (a[5] = (k) => e.state.defaultPageId = k),
1969
1969
  options: e.state.childPageOp,
1970
1970
  placeholder: "请选择默认跳转页",
1971
1971
  onChange: e.changeDefaultPage
1972
1972
  }, null, 8, ["modelValue", "options", "onChange"]),
1973
1973
  e.state.defaultPageId ? (S(), U("div", sn, [
1974
- a[9] || (a[9] = x("div", { class: "tip-text" }, "访问", -1)),
1975
- x("span", rn, "/" + ae(e.currentRoute), 1),
1976
- a[10] || (a[10] = x("div", { class: "tip-text" }, "路由,默认跳转", -1)),
1977
- x("span", ln, "/" + ae(e.currentRoute) + "/" + ae((D = (C = e.pageSettingState) == null ? void 0 : C.defaultPage) == null ? void 0 : D.route), 1)
1974
+ a[9] || (a[9] = G("div", { class: "tip-text" }, "访问", -1)),
1975
+ G("span", rn, "/" + ae(e.currentRoute), 1),
1976
+ a[10] || (a[10] = G("div", { class: "tip-text" }, "路由,默认跳转", -1)),
1977
+ G("span", ln, "/" + ae(e.currentRoute) + "/" + ae((D = (b = e.pageSettingState) == null ? void 0 : b.defaultPage) == null ? void 0 : D.route), 1)
1978
1978
  ])) : j("", !0)
1979
1979
  ];
1980
1980
  }),
@@ -1986,10 +1986,10 @@ function cn(t, a, n, e, o, s) {
1986
1986
  }, 8, ["model", "rules"])
1987
1987
  ]);
1988
1988
  }
1989
- const un = /* @__PURE__ */ Z($a, [["render", cn], ["__scopeId", "data-v-875f317e"]]), Nn = {
1989
+ const gn = /* @__PURE__ */ Z($a, [["render", cn], ["__scopeId", "data-v-875f317e"]]), In = {
1990
1990
  ...pe,
1991
- apis: Fa,
1992
- entry: wa,
1991
+ apis: Na,
1992
+ entry: ka,
1993
1993
  options: {
1994
1994
  pageBaseStyle: {
1995
1995
  className: "page-base-style",
@@ -1997,11 +1997,11 @@ const un = /* @__PURE__ */ Z($a, [["render", cn], ["__scopeId", "data-v-875f317e
1997
1997
  }
1998
1998
  },
1999
1999
  components: {
2000
- PageGeneral: un
2000
+ PageGeneral: gn
2001
2001
  },
2002
2002
  metas: [Za]
2003
2003
  };
2004
2004
  export {
2005
2005
  Za as PageService,
2006
- Nn as default
2006
+ In as default
2007
2007
  };