@opentiny/tiny-engine-plugin-page 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./style.css";
2
- import { ref as X, watchEffect as Ie, resolveComponent as h, createBlock as U, openBlock as S, computed as $, createElementBlock as q, createVNode as P, createElementVNode as V, withCtx as v, onActivated as Pt, onDeactivated as mt, reactive as oe, createCommentVNode as J, resolveDynamicComponent as Ze, createTextVNode as be, defineComponent as $e, Fragment as de, renderList as we, watch as qe, normalizeClass as Ne, withDirectives as yt, renderSlot as _t, unref as je, toDisplayString as re, vShow as ht, onMounted as Dt, onUnmounted as Je, provide as Ke } from "vue";
3
- import { getMetaApi as A, META_SERVICE as B, usePage as ee, useBlock as St, useModal as ce, useNotify as H, useCanvas as se, getMergeRegistry as et, useLayout as le, useMessage as ve, getOptions as Ee, useHelp as vt, useBreadcrumb as Ct, HOOK_NAME as bt } from "@opentiny/tiny-engine-meta-register";
4
- import { BlockHistoryList as wt, MetaCodeEditor as Nt, ButtonGroup as tt, SvgButton as Te, PluginSetting as at, LifeCycles as It, PluginPanel as Tt } from "@opentiny/tiny-engine-common";
2
+ import { ref as X, watchEffect as Ie, resolveComponent as h, createBlock as U, openBlock as S, computed as $, createElementBlock as q, createVNode as P, createElementVNode as V, withCtx as v, onActivated as Pt, onDeactivated as mt, reactive as oe, createCommentVNode as J, resolveDynamicComponent as Ze, createTextVNode as be, defineComponent as $e, Fragment as de, renderList as Ne, watch as qe, normalizeClass as we, withDirectives as yt, renderSlot as _t, unref as je, toDisplayString as re, vShow as ht, onMounted as Dt, onUnmounted as Je, provide as Ke } from "vue";
3
+ import { getMetaApi as B, META_SERVICE as M, usePage as ee, useBlock as St, useModal as ce, useNotify as H, useCanvas as se, getMergeRegistry as et, useLayout as le, useMessage as ve, getOptions as Ee, useHelp as vt, useBreadcrumb as Ct, HOOK_NAME as bt } from "@opentiny/tiny-engine-meta-register";
4
+ import { BlockHistoryList as Nt, MetaCodeEditor as wt, ButtonGroup as tt, SvgButton as Te, PluginSetting as at, LifeCycles as It, PluginPanel as Tt } from "@opentiny/tiny-engine-common";
5
5
  import { isEqual as ue, extend as pe } from "@opentiny/vue-renderless/common/object";
6
6
  import { Checkbox as kt, CollapseItem as Oe, Collapse as xe, Button as nt, Input as ot, Popover as Ft, Search as Et, Radio as Ot, Select as xt, FormItem as Gt, Form as Vt } from "@opentiny/vue";
7
7
  import { constants as Ge } from "@opentiny/tiny-engine-utils";
@@ -13,7 +13,7 @@ import Mt from "@opentiny/vue-renderless/common/deps/throttle";
13
13
  import { IconSearch as Lt, IconFolderClosed as Ht, IconFolderOpened as Ut, iconFile as qt } from "@opentiny/vue-icon";
14
14
  import { getCanvasStatus as rt } from "@opentiny/tiny-engine-common/js/canvas";
15
15
  import { REGEXP_ROUTE as We, REGEXP_FOLDER_NAME as jt, REGEXP_PAGE_NAME as Jt } from "@opentiny/tiny-engine-common/js/verification";
16
- const Kt = (t) => A(B.Http).get(`/app-center/api/pages/list/${t}`), Ve = (t) => A(B.Http).get(`/app-center/api/pages/detail/${t}`), Wt = (t) => A(B.Http).get(`/app-center/api/pages/delete/${t}`), Xt = (t) => A(B.Http).post("/app-center/api/pages/create", t), lt = (t, a) => A(B.Http).post(`/app-center/api/pages/update/${t}`, a), zt = (t) => A(B.Http).post("/app-center/api/pages/copy", t), ct = (t) => A(B.Http).get(`/app-center/api/pages/histories?page=${t}`), Qt = (t) => A(B.Http).post("/app-center/api/pageHistory/restore", t), Yt = (t) => A(B.Http).get(`/app-center/api/pages/histories/${t}`), Zt = (t, a) => A(B.Http).post(`/app-center/api/pages/update/${t}`, a), Pe = {
16
+ const Kt = (t) => B(M.Http).get(`/app-center/api/pages/list/${t}`), Ve = (t) => B(M.Http).get(`/app-center/api/pages/detail/${t}`), Wt = (t) => B(M.Http).get(`/app-center/api/pages/delete/${t}`), Xt = (t) => B(M.Http).post("/app-center/api/pages/create", t), lt = (t, a) => B(M.Http).post(`/app-center/api/pages/update/${t}`, a), zt = (t) => B(M.Http).post("/app-center/api/pages/copy", t), ct = (t) => B(M.Http).get(`/app-center/api/pages/histories?page=${t}`), Qt = (t) => B(M.Http).post("/app-center/api/pageHistory/restore", t), Yt = (t) => B(M.Http).get(`/app-center/api/pages/histories/${t}`), Zt = (t, a) => B(M.Http).post(`/app-center/api/pages/update/${t}`, a), Pe = {
17
17
  fetchPageList: Kt,
18
18
  fetchPageDetail: Ve,
19
19
  requestDeletePage: Wt,
@@ -26,7 +26,7 @@ const Kt = (t) => A(B.Http).get(`/app-center/api/pages/list/${t}`), Ve = (t) =>
26
26
  requestUpdatePage: Zt
27
27
  }, $t = {
28
28
  components: {
29
- BlockHistoryList: wt
29
+ BlockHistoryList: Nt
30
30
  },
31
31
  props: {
32
32
  curPageData: {
@@ -37,7 +37,7 @@ const Kt = (t) => A(B.Http).get(`/app-center/api/pages/list/${t}`), Ve = (t) =>
37
37
  emits: ["restorePage"],
38
38
  setup(t, { emit: a }) {
39
39
  const { pageSettingState: n, getFamily: e } = ee(), { getDateFromNow: s } = St(), { confirm: o } = ce(), r = X([]), c = (_) => {
40
- const { id: b, version: f } = A(B.GlobalService).getBaseInfo(), I = f ? `&app=${b}&version=${f}` : "";
40
+ const { id: b, version: f } = B(M.GlobalService).getBaseInfo(), I = f ? `&app=${b}&version=${f}` : "";
41
41
  _ ? ct(_ + I).then((E) => {
42
42
  E && (E.forEach((T) => {
43
43
  T.backupTitle = T.message, T.backupTime = s(new Date(T.time));
@@ -87,7 +87,7 @@ function ea(t, a, n, e, s, o) {
87
87
  }
88
88
  const ta = /* @__PURE__ */ te($t, [["render", ea]]), aa = {
89
89
  components: {
90
- MetaCodeEditor: Nt,
90
+ MetaCodeEditor: wt,
91
91
  TinyCheckbox: kt
92
92
  },
93
93
  setup() {
@@ -169,7 +169,7 @@ function oa(t, a, n, e, s, o) {
169
169
  P(u, {
170
170
  class: "selectHome",
171
171
  modelValue: e.pageSettingState.currentPageData.isBody,
172
- "onUpdate:modelValue": a[0] || (a[0] = (N) => e.pageSettingState.currentPageData.isBody = N)
172
+ "onUpdate:modelValue": a[0] || (a[0] = (w) => e.pageSettingState.currentPageData.isBody = w)
173
173
  }, {
174
174
  default: v(() => a[1] || (a[1] = [
175
175
  V("span", null, "设为根元素为Body", -1)
@@ -233,7 +233,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
233
233
  changeTreeData: r,
234
234
  isCurrentDataSame: c,
235
235
  initCurrentPageData: u,
236
- isTemporaryPage: N,
236
+ isTemporaryPage: w,
237
237
  STATIC_PAGE_GROUP_ID: _,
238
238
  updatePageSettingAfterSave: b
239
239
  } = ee(), {
@@ -241,7 +241,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
241
241
  initData: I
242
242
  } = se(), {
243
243
  confirm: E
244
- } = ce(), T = et(fe.type, fe.id), M = T.components.PageGeneral, z = (he = T == null ? void 0 : T.options) == null ? void 0 : he.beforeCreatePage, x = X(null), {
244
+ } = ce(), T = et(fe.type, fe.id), A = T.components.PageGeneral, z = (he = T == null ? void 0 : T.options) == null ? void 0 : he.beforeCreatePage, x = X(null), {
245
245
  PLUGIN_NAME: d,
246
246
  getPluginByLayout: G
247
247
  } = le(), D = $(() => G(d.AppManage)), {
@@ -286,13 +286,13 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
286
286
  ...p,
287
287
  fileName: o.currentPageData.name
288
288
  },
289
- app: A(B.GlobalService).getBaseInfo().id,
289
+ app: B(M.GlobalService).getBaseInfo().id,
290
290
  isPage: !0
291
291
  };
292
292
  F.id && (delete F.id, delete F._id), z && await z(F);
293
293
  try {
294
294
  const W = await n(F);
295
- await o.updateTreeData(), o.isNew = !1, N.saved = !1, a("openNewPage", W), Z(), le().closePlugin(), H({
295
+ await o.updateTreeData(), o.isNew = !1, w.saved = !1, a("openNewPage", W), Z(), le().closePlugin(), H({
296
296
  type: "success",
297
297
  message: "新建页面成功!"
298
298
  }), Rt && At(W);
@@ -303,7 +303,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
303
303
  message: JSON.stringify((W == null ? void 0 : W.message) || W)
304
304
  });
305
305
  }
306
- }, w = (l, g, p = !0) => {
306
+ }, N = (l, g, p = !0) => {
307
307
  var ne;
308
308
  const k = o.currentPageDataCopy.route !== o.currentPageData.route, F = ((ne = f == null ? void 0 : f.currentPage) == null ? void 0 : ne.id) === l;
309
309
  return st({
@@ -324,7 +324,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
324
324
  ...g,
325
325
  message: "还原页面"
326
326
  };
327
- w(g.id, k).then((F) => {
327
+ N(g.id, k).then((F) => {
328
328
  var W;
329
329
  ((W = f == null ? void 0 : f.currentPage) == null ? void 0 : W.id) === (F == null ? void 0 : F.id) && I(F.page_content, F), u(F);
330
330
  });
@@ -339,7 +339,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
339
339
  ...p,
340
340
  fileName: g
341
341
  }
342
- }, F = await w(l, k);
342
+ }, F = await N(l, k);
343
343
  u(F);
344
344
  }, R = (l) => {
345
345
  if (!l)
@@ -366,7 +366,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
366
366
  ...o.defaultPage,
367
367
  isDefault: !0
368
368
  };
369
- w((g = o.defaultPage) == null ? void 0 : g.id, l, !1).then((p) => {
369
+ N((g = o.defaultPage) == null ? void 0 : g.id, l, !1).then((p) => {
370
370
  p && j();
371
371
  });
372
372
  }, ge = () => {
@@ -407,7 +407,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
407
407
  savePageSetting: ye,
408
408
  copyPage: ie,
409
409
  pageSettingState: o,
410
- pageGeneral: M,
410
+ pageGeneral: A,
411
411
  pageGeneralRef: x,
412
412
  deletePage: () => {
413
413
  var l, g;
@@ -457,7 +457,7 @@ const sa = /* @__PURE__ */ te(aa, [["render", oa], ["__scopeId", "data-v-c7b79c9
457
457
  }
458
458
  }, ca = { class: "page-setting-content" }, ia = { class: "life-cycles-container" };
459
459
  function ga(t, a, n, e, s, o) {
460
- const r = h("tiny-button"), c = h("svg-button"), u = h("button-group"), N = h("tiny-collapse-item"), _ = h("page-input-output"), b = h("life-cycles"), f = h("page-history"), I = h("tiny-collapse"), E = h("plugin-setting");
460
+ const r = h("tiny-button"), c = h("svg-button"), u = h("button-group"), w = h("tiny-collapse-item"), _ = h("page-input-output"), b = h("life-cycles"), f = h("page-history"), I = h("tiny-collapse"), E = h("plugin-setting");
461
461
  return e.isShow ? (S(), U(E, {
462
462
  key: 0,
463
463
  "fixed-name": e.PLUGIN_NAME.AppManage,
@@ -473,7 +473,7 @@ function ga(t, a, n, e, s, o) {
473
473
  onClick: e.savePageSetting
474
474
  }, {
475
475
  default: v(() => a[1] || (a[1] = [
476
- be("保存")
476
+ be("保存", -1)
477
477
  ])),
478
478
  _: 1,
479
479
  __: [1]
@@ -507,7 +507,7 @@ function ga(t, a, n, e, s, o) {
507
507
  class: "page-setting-collapse"
508
508
  }, {
509
509
  default: v(() => [
510
- P(N, {
510
+ P(w, {
511
511
  title: "基本设置",
512
512
  name: e.PAGE_SETTING_SESSION.general
513
513
  }, {
@@ -519,7 +519,7 @@ function ga(t, a, n, e, s, o) {
519
519
  ]),
520
520
  _: 1
521
521
  }, 8, ["name"]),
522
- e.pageSettingState.currentPageData.group !== "public" ? (S(), U(N, {
522
+ e.pageSettingState.currentPageData.group !== "public" ? (S(), U(w, {
523
523
  key: 0,
524
524
  class: "base-setting",
525
525
  title: "输入输出",
@@ -530,7 +530,7 @@ function ga(t, a, n, e, s, o) {
530
530
  ]),
531
531
  _: 1
532
532
  }, 8, ["name"])) : J("", !0),
533
- e.pageSettingState.currentPageData.group !== "public" ? (S(), U(N, {
533
+ e.pageSettingState.currentPageData.group !== "public" ? (S(), U(w, {
534
534
  key: 1,
535
535
  class: "input-output",
536
536
  title: "页面生命周期配置",
@@ -549,7 +549,7 @@ function ga(t, a, n, e, s, o) {
549
549
  }),
550
550
  _: 1
551
551
  }, 8, ["name"])) : J("", !0),
552
- P(N, {
552
+ P(w, {
553
553
  class: "history-source",
554
554
  title: "历史备份",
555
555
  name: e.PAGE_SETTING_SESSION.history
@@ -592,7 +592,7 @@ const da = /* @__PURE__ */ te(la, [["render", ga], ["__scopeId", "data-v-dd10104
592
592
  const t = oe({
593
593
  activeName: ["folderGeneralRef"],
594
594
  title: "文件夹设置"
595
- }), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = Pe, { pageSettingState: s, changeTreeData: o } = ee(), { confirm: r } = ce(), u = et(fe.type, fe.id).components.PageGeneral, N = X(null), { PLUGIN_NAME: _, getPluginByLayout: b } = le(), f = $(() => b(_.AppManage)), I = () => {
595
+ }), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = Pe, { pageSettingState: s, changeTreeData: o } = ee(), { confirm: r } = ce(), u = et(fe.type, fe.id).components.PageGeneral, w = X(null), { PLUGIN_NAME: _, getPluginByLayout: b } = le(), f = $(() => b(_.AppManage)), I = () => {
596
596
  ue(s.currentPageData, s.currentPageDataCopy) ? Y() : r({
597
597
  title: "提示",
598
598
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
@@ -603,7 +603,7 @@ const da = /* @__PURE__ */ te(la, [["render", ga], ["__scopeId", "data-v-dd10104
603
603
  }, E = () => {
604
604
  const d = {
605
605
  ...s.currentPageData,
606
- app: A(B.GlobalService).getBaseInfo().id,
606
+ app: B(M.GlobalService).getBaseInfo().id,
607
607
  isPage: !1
608
608
  };
609
609
  a(d).then(() => {
@@ -637,7 +637,7 @@ const da = /* @__PURE__ */ te(la, [["render", ga], ["__scopeId", "data-v-dd10104
637
637
  align: f,
638
638
  PLUGIN_NAME: _,
639
639
  saveFolderSetting: () => {
640
- N.value.validGeneralForm().then(() => {
640
+ w.value.validGeneralForm().then(() => {
641
641
  s.isNew ? E() : T();
642
642
  });
643
643
  },
@@ -672,7 +672,7 @@ const da = /* @__PURE__ */ te(la, [["render", ga], ["__scopeId", "data-v-dd10104
672
672
  });
673
673
  }),
674
674
  pageGeneral: u,
675
- folderGeneralRef: N,
675
+ folderGeneralRef: w,
676
676
  closeFolderSettingPanel: Y,
677
677
  isShow: Ae,
678
678
  state: t,
@@ -682,7 +682,7 @@ const da = /* @__PURE__ */ te(la, [["render", ga], ["__scopeId", "data-v-dd10104
682
682
  }
683
683
  }, pa = { class: "page-setting-content" };
684
684
  function fa(t, a, n, e, s, o) {
685
- const r = h("tiny-button"), c = h("svg-button"), u = h("button-group"), N = h("tiny-collapse-item"), _ = h("tiny-collapse"), b = h("plugin-setting");
685
+ const r = h("tiny-button"), c = h("svg-button"), u = h("button-group"), w = h("tiny-collapse-item"), _ = h("tiny-collapse"), b = h("plugin-setting");
686
686
  return e.isShow ? (S(), U(b, {
687
687
  key: 0,
688
688
  "fixed-name": e.PLUGIN_NAME.AppManage,
@@ -698,7 +698,7 @@ function fa(t, a, n, e, s, o) {
698
698
  onClick: e.saveFolderSetting
699
699
  }, {
700
700
  default: v(() => a[1] || (a[1] = [
701
- be("保存")
701
+ be("保存", -1)
702
702
  ])),
703
703
  _: 1,
704
704
  __: [1]
@@ -726,7 +726,7 @@ function fa(t, a, n, e, s, o) {
726
726
  "onUpdate:modelValue": a[0] || (a[0] = (f) => e.state.activeName = f)
727
727
  }, {
728
728
  default: v(() => [
729
- P(N, {
729
+ P(w, {
730
730
  title: "基本设置",
731
731
  name: "folderGeneralRef"
732
732
  }, {
@@ -781,7 +781,7 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
781
781
  }
782
782
  },
783
783
  setup(t) {
784
- return (a, n) => (S(!0), q(de, null, we(t.level - 1, (e) => (S(), q("span", {
784
+ return (a, n) => (S(!0), q(de, null, Ne(t.level - 1, (e) => (S(), q("span", {
785
785
  key: e,
786
786
  class: "gap"
787
787
  }, [
@@ -846,25 +846,25 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
846
846
  }, { collapseMap: o, setCollapse: r, switchCollapse: c } = s(), u = (i) => {
847
847
  const m = i.rawData[n.childrenKey];
848
848
  Array.isArray(m) && m.length > 0 && c(i.id);
849
- }, N = (i, m, w = 0, y = !1) => {
849
+ }, w = (i, m, N = 0, y = !1) => {
850
850
  const { idKey: j, labelKey: R, childrenKey: me } = n, ie = {
851
851
  id: i[j],
852
852
  label: i[R],
853
853
  parentId: m,
854
- level: w,
854
+ level: N,
855
855
  collapsed: y,
856
856
  rawData: i
857
857
  }, ae = [ie], ge = i[me];
858
858
  if (Array.isArray(ge))
859
859
  for (const ye of ge)
860
- ae.push(...N(ye, ie.id, w + 1, y || o.value[ie.id]));
860
+ ae.push(...w(ye, ie.id, N + 1, y || o.value[ie.id]));
861
861
  return ae;
862
- }, _ = $(() => N({ [n.idKey]: n.rootId, [n.childrenKey]: n.data }).slice(1)), b = $(() => _.value.reduce((i, m) => (i[m.id] = m, i), {})), f = (i) => {
862
+ }, _ = $(() => w({ [n.idKey]: n.rootId, [n.childrenKey]: n.data }).slice(1)), b = $(() => _.value.reduce((i, m) => (i[m.id] = m, i), {})), f = (i) => {
863
863
  const m = b.value[i];
864
864
  if (!m || !m.parentId)
865
865
  return [];
866
- const w = f(m.parentId);
867
- return w.push(m.parentId), w;
866
+ const N = f(m.parentId);
867
+ return N.push(m.parentId), N;
868
868
  }, I = X([]);
869
869
  qe(_, (i) => {
870
870
  I.value = i.filter((m) => m.label.toLowerCase().includes(n.filterValue.toLowerCase()));
@@ -872,31 +872,31 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
872
872
  () => n.filterValue,
873
873
  (i) => {
874
874
  const m = _.value.filter((y) => y.label.toLowerCase().includes(i.toLowerCase()));
875
- let w = !1;
875
+ let N = !1;
876
876
  m.forEach((y) => {
877
877
  for (const j of f(y.id))
878
- o.value[j] && (r(j, !1), w = !0);
879
- }), w || (I.value = m);
878
+ o.value[j] && (r(j, !1), N = !0);
879
+ }), N || (I.value = m);
880
880
  }
881
881
  );
882
882
  const E = $(() => {
883
883
  const i = /* @__PURE__ */ new Set();
884
884
  for (const m of I.value) {
885
885
  i.add(m.id);
886
- for (const w of f(m.id))
887
- i.add(w);
886
+ for (const N of f(m.id))
887
+ i.add(N);
888
888
  }
889
889
  return _.value.filter((m) => i.has(m.id));
890
890
  }), T = {
891
891
  node: 1,
892
892
  // └
893
893
  layer: 2
894
- }, M = $(() => {
894
+ }, A = $(() => {
895
895
  const i = {}, m = E.value;
896
- for (const [w, y] of m.entries())
897
- if (i[w] = i[w] || {}, i[w][y.level - 1] = T.node, y.parentId !== n.rootId) {
896
+ for (const [N, y] of m.entries())
897
+ if (i[N] = i[N] || {}, i[N][y.level - 1] = T.node, y.parentId !== n.rootId) {
898
898
  const j = m.findIndex((R) => R.id === y.parentId);
899
- for (let R = j + 1; R < w; R++)
899
+ for (let R = j + 1; R < N; R++)
900
900
  i[R][y.level - 1] = (i[R][y.level - 1] || 0) | T.layer;
901
901
  }
902
902
  return i;
@@ -911,10 +911,10 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
911
911
  f(m.id).includes(x.value.id) ? d.value = null : (i.preventDefault(), d.value = m.id);
912
912
  }, O = (i, m) => {
913
913
  i.preventDefault();
914
- const w = x.value;
915
- if (x.value = null, !w)
914
+ const N = x.value;
915
+ if (x.value = null, !N)
916
916
  return;
917
- !f(m.id).includes(w.id) && w.id !== m.id && w.parentId !== m.id && e("moveNode", w, m);
917
+ !f(m.id).includes(N.id) && N.id !== m.id && N.parentId !== m.id && e("moveNode", N, m);
918
918
  }, L = () => {
919
919
  d.value = null;
920
920
  }, Q = (i) => {
@@ -923,16 +923,16 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
923
923
  n.draggable && i.target === i.currentTarget && (d.value = null);
924
924
  };
925
925
  return (i, m) => {
926
- const w = h("svg-icon");
926
+ const N = h("svg-icon");
927
927
  return S(), q("div", {
928
- class: Ne(["draggable-tree", "border-transparent", { "hover-border-color": d.value === t.rootId }]),
928
+ class: we(["draggable-tree", "border-transparent", { "hover-border-color": d.value === t.rootId }]),
929
929
  onDragover: Q,
930
930
  onDragenter: Q,
931
931
  onDragleave: K,
932
932
  onDrop: m[0] || (m[0] = (y) => O(y, { id: t.rootId }))
933
933
  }, [
934
- (S(!0), q(de, null, we(E.value, (y, j) => yt((S(), q("div", {
935
- class: Ne([
934
+ (S(!0), q(de, null, Ne(E.value, (y, j) => yt((S(), q("div", {
935
+ class: we([
936
936
  "row",
937
937
  "border-transparent",
938
938
  {
@@ -953,17 +953,17 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
953
953
  onClick: (R) => z(R, y)
954
954
  }, [
955
955
  P(Da, {
956
- "line-data": M.value[j],
956
+ "line-data": A.value[j],
957
957
  level: y.level
958
958
  }, null, 8, ["line-data", "level"]),
959
959
  V("div", {
960
960
  class: "prefix-icon",
961
961
  onClick: (R) => u(y)
962
962
  }, [
963
- y.rawData.isPage ? (S(), U(w, {
963
+ y.rawData.isPage ? (S(), U(N, {
964
964
  key: 0,
965
965
  name: je(o)[y.id] ? "page-collection" : "page"
966
- }, null, 8, ["name"])) : (S(), U(w, {
966
+ }, null, 8, ["name"])) : (S(), U(N, {
967
967
  key: 1,
968
968
  name: je(o)[y.id] ? "folder" : "folder-wold"
969
969
  }, null, 8, ["name"]))
@@ -977,8 +977,8 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
977
977
  ], 34);
978
978
  };
979
979
  }
980
- }), wa = /* @__PURE__ */ te(ba, [["__scopeId", "data-v-db7869d5"]]), {
981
- PAGE_STATUS: Na
980
+ }), Na = /* @__PURE__ */ te(ba, [["__scopeId", "data-v-6e0e3415"]]), {
981
+ PAGE_STATUS: wa
982
982
  } = Ge, Ia = {
983
983
  components: {
984
984
  TinySearch: Et,
@@ -986,7 +986,7 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
986
986
  TinyCollapseItem: Oe,
987
987
  TinyIconSearch: Lt(),
988
988
  TinyPopover: Ft,
989
- DraggableTree: wa,
989
+ DraggableTree: Na,
990
990
  SvgButton: Te
991
991
  },
992
992
  props: {
@@ -1009,7 +1009,7 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1009
1009
  pageSettingState: r,
1010
1010
  changeTreeData: c,
1011
1011
  isCurrentDataSame: u,
1012
- getPageList: N,
1012
+ getPageList: w,
1013
1013
  resetPageData: _,
1014
1014
  STATIC_PAGE_GROUP_ID: b,
1015
1015
  COMMON_PAGE_GROUP_ID: f,
@@ -1017,21 +1017,21 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1017
1017
  } = ee(), {
1018
1018
  fetchPageDetail: E,
1019
1019
  requestUpdatePage: T
1020
- } = Pe, M = () => A(B.GlobalService).getBaseInfo().id, {
1020
+ } = Pe, A = () => B(M.GlobalService).getBaseInfo().id, {
1021
1021
  customPageOperations: z = []
1022
1022
  } = Ee(fe.id), x = oe({
1023
1023
  pageSearchValue: "",
1024
1024
  collapseValue: [b, f],
1025
1025
  currentNodeData: {
1026
- id: A(B.GlobalService).getBaseInfo().pageId
1026
+ id: B(M.GlobalService).getBaseInfo().pageId
1027
1027
  }
1028
1028
  }), {
1029
1029
  subscribe: d,
1030
1030
  unsubscribe: G
1031
- } = ve();
1032
- let D = null;
1031
+ } = ve(), D = (l) => w(l);
1032
+ let O = null;
1033
1033
  Dt(() => {
1034
- D = d({
1034
+ D(A()), O = d({
1035
1035
  topic: "locationHistoryChanged",
1036
1036
  callback: (l) => {
1037
1037
  l.pageId ? x.currentNodeData = {
@@ -1041,10 +1041,8 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1041
1041
  subscriber: "pageTree"
1042
1042
  });
1043
1043
  }), Je(() => {
1044
- D && G(D);
1045
- });
1046
- const O = async (l) => await N(l);
1047
- r.updateTreeData = async () => await O(M());
1044
+ O && G(O);
1045
+ }), r.updateTreeData = async () => await D(A());
1048
1046
  const L = (l) => {
1049
1047
  x.currentNodeData = l, I(l.id).then(() => {
1050
1048
  Z(), Y();
@@ -1080,9 +1078,9 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1080
1078
  });
1081
1079
  }, i = {}, m = (l, g) => {
1082
1080
  i[g] = l;
1083
- }, w = (l) => {
1081
+ }, N = (l) => {
1084
1082
  Q(null, l.rawData);
1085
- }, y = (l) => rt(l.occupier).state === Na.Lock, j = (l) => {
1083
+ }, y = (l) => rt(l.occupier).state === wa.Lock, j = (l) => {
1086
1084
  K(null, l.rawData, y(l.rawData));
1087
1085
  }, ae = [
1088
1086
  {
@@ -1185,7 +1183,7 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1185
1183
  topic: "app_id_changed",
1186
1184
  subscriber: "page_tree_app_id_changed",
1187
1185
  callback: (l) => {
1188
- O(l);
1186
+ D(l);
1189
1187
  }
1190
1188
  });
1191
1189
  const he = (l) => {
@@ -1205,7 +1203,7 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1205
1203
  IconFolderOpened: Ut(),
1206
1204
  IconFolderClosed: Ht(),
1207
1205
  getRowOperations: ge,
1208
- handleClickRow: w,
1206
+ handleClickRow: N,
1209
1207
  handleMoveNode: Le,
1210
1208
  isPageLocked: y,
1211
1209
  handleClickPageSettings: j,
@@ -1213,10 +1211,10 @@ const Pa = /* @__PURE__ */ te(ua, [["render", fa], ["__scopeId", "data-v-21dedc5
1213
1211
  };
1214
1212
  }
1215
1213
  }, Ta = { class: "app-manage-search" }, ka = { class: "title" }, Fa = { class: "app-manage-tree" }, Ea = {
1216
- class: /* @__PURE__ */ Ne(["actions"])
1214
+ class: /* @__PURE__ */ we(["actions"])
1217
1215
  }, Oa = { class: "operation-list" }, xa = ["onClick"];
1218
1216
  function Ga(t, a, n, e, s, o) {
1219
- const r = h("tiny-icon-search"), c = h("tiny-search"), u = h("svg-button"), N = h("tiny-popover"), _ = h("draggable-tree"), b = h("tiny-collapse-item"), f = h("tiny-collapse");
1217
+ const r = h("tiny-icon-search"), c = h("tiny-search"), u = h("svg-button"), w = h("tiny-popover"), _ = h("draggable-tree"), b = h("tiny-collapse-item"), f = h("tiny-collapse");
1220
1218
  return S(), q(de, null, [
1221
1219
  V("div", Ta, [
1222
1220
  P(c, {
@@ -1237,7 +1235,7 @@ function Ga(t, a, n, e, s, o) {
1237
1235
  class: "page-manage-collapse lowcode-scrollbar"
1238
1236
  }, {
1239
1237
  default: v(() => [
1240
- (S(!0), q(de, null, we(e.pageSettingState.pages, (I, E) => (S(), U(b, {
1238
+ (S(!0), q(de, null, Ne(e.pageSettingState.pages, (I, E) => (S(), U(b, {
1241
1239
  key: E,
1242
1240
  name: I.groupId
1243
1241
  }, {
@@ -1268,9 +1266,9 @@ function Ga(t, a, n, e, s, o) {
1268
1266
  name: "home",
1269
1267
  hoverBgColor: !1
1270
1268
  })) : J("", !0),
1271
- P(N, {
1269
+ P(w, {
1272
1270
  ref_for: !0,
1273
- ref: (M) => e.setPopoverRef(M, T.id),
1271
+ ref: (A) => e.setPopoverRef(A, T.id),
1274
1272
  placement: "bottom-start",
1275
1273
  "visible-arrow": !1,
1276
1274
  "popper-class": "page-tree-row-operation-list"
@@ -1284,14 +1282,14 @@ function Ga(t, a, n, e, s, o) {
1284
1282
  ]),
1285
1283
  default: v(() => [
1286
1284
  V("div", Oa, [
1287
- (S(!0), q(de, null, we(e.getRowOperations(I.groupId, T), (M, z) => (S(), q("div", {
1285
+ (S(!0), q(de, null, Ne(e.getRowOperations(I.groupId, T), (A, z) => (S(), q("div", {
1288
1286
  key: z,
1289
- class: Ne([M.type === "divider" ? "divider" : "item"].concat(M.class || [])),
1287
+ class: we([A.type === "divider" ? "divider" : "item"].concat(A.class || [])),
1290
1288
  onClick: (x) => {
1291
1289
  var d;
1292
- return (d = M.action) == null ? void 0 : d.call(M, T);
1290
+ return (d = A.action) == null ? void 0 : d.call(A, T);
1293
1291
  }
1294
- }, re(M.label), 11, xa))), 128))
1292
+ }, re(A.label), 11, xa))), 128))
1295
1293
  ])
1296
1294
  ]),
1297
1295
  _: 2
@@ -1309,7 +1307,7 @@ function Ga(t, a, n, e, s, o) {
1309
1307
  }, 8, ["modelValue"])
1310
1308
  ], 64);
1311
1309
  }
1312
- const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-5edd59b7"]]), Ra = {
1310
+ const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-21cb79e2"]]), Ra = {
1313
1311
  getPageById: async (t) => {
1314
1312
  if (t)
1315
1313
  return Ve(t);
@@ -1347,10 +1345,10 @@ const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-5edd59b
1347
1345
  initCurrentPageData: c
1348
1346
  } = ee(), {
1349
1347
  PLUGIN_NAME: u
1350
- } = le(), N = oe({
1348
+ } = le(), w = oe({
1351
1349
  emitEvent: a
1352
1350
  });
1353
- Ke("panelState", N);
1351
+ Ke("panelState", w);
1354
1352
  const _ = X(null), b = s.ROOT_ID, f = vt().getDocsUrl("page"), I = "在这里新增页面/文件夹,还可以对已有的页面进行生命周期管理。", E = oe({
1355
1353
  isFolder: !1
1356
1354
  }), T = (D, O = b) => {
@@ -1374,7 +1372,7 @@ const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-5edd59b
1374
1372
  throw new Error(L);
1375
1373
  }
1376
1374
  s.currentPageDataCopy = pe(!0, {}, s.currentPageData), E.isFolder = !1, Ce();
1377
- }, M = (D = b) => {
1375
+ }, A = (D = b) => {
1378
1376
  Z(), s.isNew = !0, s.currentPageData = {
1379
1377
  parentId: D,
1380
1378
  route: "",
@@ -1426,7 +1424,7 @@ const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-5edd59b
1426
1424
  a("close"), Z(), Y();
1427
1425
  },
1428
1426
  openSettingPanel: x,
1429
- createNewFolder: M,
1427
+ createNewFolder: A,
1430
1428
  createNewPage: T,
1431
1429
  docsUrl: f,
1432
1430
  docsContent: I,
@@ -1435,7 +1433,7 @@ const Va = /* @__PURE__ */ te(Ia, [["render", Ga], ["__scopeId", "data-v-5edd59b
1435
1433
  }
1436
1434
  }, Ba = { class: "plugin-page" };
1437
1435
  function Ma(t, a, n, e, s, o) {
1438
- const r = h("svg-button"), c = h("page-tree"), u = h("plugin-panel"), N = h("page-setting"), _ = h("page-folder-setting");
1436
+ const r = h("svg-button"), c = h("page-tree"), u = h("plugin-panel"), w = h("page-setting"), _ = h("page-folder-setting");
1439
1437
  return S(), q("div", Ba, [
1440
1438
  P(u, {
1441
1439
  title: n.title,
@@ -1475,7 +1473,7 @@ function Ma(t, a, n, e, s, o) {
1475
1473
  ]),
1476
1474
  _: 1
1477
1475
  }, 8, ["title", "fixed-name", "fixedPanels", "onClose", "docsUrl", "docsContent"]),
1478
- P(N, {
1476
+ P(w, {
1479
1477
  isFolder: e.state.isFolder,
1480
1478
  onOpenNewPage: e.openNewPage
1481
1479
  }, null, 8, ["isFolder", "onOpenNewPage"]),
@@ -1555,7 +1553,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1555
1553
  }
1556
1554
  };
1557
1555
  }, gt = () => {
1558
- const { getBaseInfo: t } = A(B.GlobalService);
1556
+ const { getBaseInfo: t } = B(M.GlobalService);
1559
1557
  if (C.currentPageData.id === Number.parseInt(t().pageId)) {
1560
1558
  const a = se().getPageSchema();
1561
1559
  C.currentPageData.page_content = a;
@@ -1611,7 +1609,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1611
1609
  s && (s.children = s.children || [], s.children.push(e));
1612
1610
  }), n;
1613
1611
  }, ke = async (t) => {
1614
- const a = await Pe.fetchPageList(t || A(B.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Be, data: [] }, e = { groupName: "公共页面", groupId: it, data: [] };
1612
+ const a = await Pe.fetchPageList(t || B(M.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Be, data: [] }, e = { groupName: "公共页面", groupId: it, data: [] };
1615
1613
  a.forEach((r) => {
1616
1614
  const c = r.name ? r : { ...r, name: r.folderName, group: "staticPages" }, u = r.meta ? {
1617
1615
  ...r,
@@ -1619,7 +1617,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1619
1617
  name: r.fileName,
1620
1618
  isPage: !0,
1621
1619
  isBody: r.meta.rootElement === Ha.Body
1622
- } : c, { children: N, ..._ } = u;
1620
+ } : c, { children: w, ..._ } = u;
1623
1621
  u.group === "staticPages" ? n.data.push(_) : e.data.push(_);
1624
1622
  });
1625
1623
  const s = Ye(n.data), o = Ye(e.data);
@@ -1651,14 +1649,14 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1651
1649
  t.currentVm = null, t.hoverVm = null, t.properties = {}, t.pageSchema = null;
1652
1650
  }, ut = (t, a = !1) => {
1653
1651
  if (an(), t !== 0 && !t) {
1654
- a ? A(B.GlobalService).updateParams({ pageId: "", previewId: "" }) : A(B.GlobalService).updatePageId(""), se().initData({ componentName: Ua.Page, props: {} }, {}), le().layoutState.pageStatus = {
1652
+ a ? B(M.GlobalService).updateParams({ pageId: "", previewId: "" }) : B(M.GlobalService).updatePageId(""), se().initData({ componentName: Ua.Page, props: {} }, {}), le().layoutState.pageStatus = {
1655
1653
  state: "empty",
1656
1654
  data: {}
1657
1655
  };
1658
1656
  return;
1659
1657
  }
1660
1658
  return Pe.fetchPageDetail(t).then((n) => {
1661
- n.isPage && Ct().setBreadcrumbPage([n.name]), a ? A(B.GlobalService).updateParams({ pageId: t, previewId: "" }) : A(B.GlobalService).updatePageId(t), le().closePlugin(), le().layoutState.pageStatus = rt(n.occupier), se().initData(n.page_content, n);
1659
+ n.isPage && Ct().setBreadcrumbPage([n.name]), a ? B(M.GlobalService).updateParams({ pageId: t, previewId: "" }) : B(M.GlobalService).updatePageId(t), le().closePlugin(), le().layoutState.pageStatus = rt(n.occupier), se().initData(n.page_content, n);
1662
1660
  }).catch(() => {
1663
1661
  H({
1664
1662
  type: "error",
@@ -1799,7 +1797,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1799
1797
  icon: qt()
1800
1798
  }));
1801
1799
  }
1802
- }, N = () => {
1800
+ }, w = () => {
1803
1801
  t.defaultPage = c.childPageList.find((d) => d.id === c.defaultPageId);
1804
1802
  };
1805
1803
  Ie(() => {
@@ -1890,15 +1888,15 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1890
1888
  data: i
1891
1889
  }) => P(de, null, [E(i), P("div", null, [K.label])])
1892
1890
  };
1893
- }), M = X(null);
1891
+ }), A = X(null);
1894
1892
  return {
1895
1893
  pageRules: b,
1896
1894
  folderRules: f,
1897
1895
  pageSettingState: t,
1898
1896
  pageParentId: o,
1899
- generalForm: M,
1897
+ generalForm: A,
1900
1898
  validGeneralForm: () => new Promise((d) => {
1901
- M.value.validate((G) => {
1899
+ A.value.validate((G) => {
1902
1900
  G && d(G);
1903
1901
  });
1904
1902
  }),
@@ -1908,7 +1906,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1908
1906
  a(d.id, r.value), r.value = d.id;
1909
1907
  },
1910
1908
  state: c,
1911
- changeDefaultPage: N
1909
+ changeDefaultPage: w
1912
1910
  };
1913
1911
  }
1914
1912
  }, pn = { class: "general-config" }, fn = { class: "tip" }, Pn = {
@@ -1922,7 +1920,7 @@ const La = /* @__PURE__ */ te(Aa, [["render", Ma], ["__scopeId", "data-v-06f0200
1922
1920
  class: "tip"
1923
1921
  }, hn = { class: "tip-text-dim" }, Dn = { class: "tip-text-dim" };
1924
1922
  function Sn(t, a, n, e, s, o) {
1925
- const r = h("tiny-radio"), c = h("tiny-form-item"), u = h("tiny-input"), N = h("tiny-select"), _ = h("tiny-form");
1923
+ const r = h("tiny-radio"), c = h("tiny-form-item"), u = h("tiny-input"), w = h("tiny-select"), _ = h("tiny-form");
1926
1924
  return S(), q("div", pn, [
1927
1925
  P(_, {
1928
1926
  ref: "generalForm",
@@ -1952,7 +1950,7 @@ function Sn(t, a, n, e, s, o) {
1952
1950
  label: "staticPages"
1953
1951
  }, {
1954
1952
  default: v(() => a[6] || (a[6] = [
1955
- be(" 静态页面 ")
1953
+ be(" 静态页面 ", -1)
1956
1954
  ])),
1957
1955
  _: 1,
1958
1956
  __: [6]
@@ -1964,7 +1962,7 @@ function Sn(t, a, n, e, s, o) {
1964
1962
  label: "publicPages"
1965
1963
  }, {
1966
1964
  default: v(() => a[7] || (a[7] = [
1967
- be(" 公共页面 ")
1965
+ be(" 公共页面 ", -1)
1968
1966
  ])),
1969
1967
  _: 1,
1970
1968
  __: [7]
@@ -1991,7 +1989,7 @@ function Sn(t, a, n, e, s, o) {
1991
1989
  prop: "parentId"
1992
1990
  }, {
1993
1991
  default: v(() => [
1994
- P(N, {
1992
+ P(w, {
1995
1993
  modelValue: e.pageParentId,
1996
1994
  "onUpdate:modelValue": a[3] || (a[3] = (f) => e.pageParentId = f),
1997
1995
  "value-field": "id",
@@ -2032,7 +2030,7 @@ function Sn(t, a, n, e, s, o) {
2032
2030
  default: v(() => {
2033
2031
  var f, I;
2034
2032
  return [
2035
- P(N, {
2033
+ P(w, {
2036
2034
  modelValue: e.state.defaultPageId,
2037
2035
  "onUpdate:modelValue": a[5] || (a[5] = (E) => e.state.defaultPageId = E),
2038
2036
  options: e.state.childPageOp,