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