@opentiny/tiny-engine-plugin-page 2.0.0 → 2.1.0-rc.0

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,37 +1,37 @@
1
1
  import "./style.css";
2
- import { ref as G, watchEffect as ee, resolveComponent as p, openBlock as I, createBlock as E, computed as ie, createElementBlock as q, createVNode as i, withCtx as D, createElementVNode as F, reactive as X, createTextVNode as Y, createCommentVNode as U, resolveDynamicComponent as Ve, onUnmounted as je, nextTick as qe, Fragment as fe, renderList as Je, toDisplayString as _e, provide as Ke, inject as Xe } from "vue";
3
- import { getMetaApi as V, META_SERVICE as x, usePage as M, useBlock as We, useModal as z, getMergeMeta as Ne, useNotify as k, useCanvas as ye, getMergeRegistry as xe, useLayout as ce, useBreadcrumb as ze, useMessage as Oe, useHelp as Qe, HOOK_NAME as Ye } from "@opentiny/tiny-engine-meta-register";
4
- import { BlockHistoryList as Ze, MetaCodeEditor as $e, LifeCycles as et, PluginSetting as Ge, SvgButton as Se, ButtonGroup as Re, PluginPanel as tt } from "@opentiny/tiny-engine-common";
5
- import { isEqual as ge, extend as Z } from "@opentiny/vue-renderless/common/object";
6
- import { Checkbox as Ae, Button as He, Collapse as De, CollapseItem as he, Input as Ue, Search as at, Tree as nt, Form as ot, FormItem as st, Select as rt, Radio as ct } from "@opentiny/vue";
7
- import { constants as Me } from "@opentiny/tiny-engine-utils";
8
- import { isVsCodeEnv as Be } from "@opentiny/tiny-engine-common/js/environments";
9
- import { handlePageUpdate as lt } from "@opentiny/tiny-engine-common/js/http";
10
- import { generatePage as it, generateRouter as gt } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
- import { previewPage as pt } from "@opentiny/tiny-engine-common/js/preview";
12
- import ut from "@opentiny/vue-renderless/common/deps/throttle";
13
- import { IconSearch as dt, IconFolderOpened as mt, IconFolderClosed as Pt } from "@opentiny/vue-icon";
14
- import { getCanvasStatus as Fe } from "@opentiny/tiny-engine-common/js/canvas";
15
- import { REGEXP_PAGE_NAME as ft, REGEXP_ROUTE as we, REGEXP_FOLDER_NAME as _t } from "@opentiny/tiny-engine-common/js/verification";
16
- const yt = (a) => V(x.Http).get(`/app-center/api/pages/list/${a}`), Ce = (a) => V(x.Http).get(`/app-center/api/pages/detail/${a}`), St = (a) => V(x.Http).get(`/app-center/api/pages/delete/${a}`), Dt = (a) => V(x.Http).post("/app-center/api/pages/create", a), ht = (a, t) => V(x.Http).post(`/app-center/api/pages/update/${a}`, t), Ct = (a) => V(x.Http).post("/app-center/api/pages/copy", a), Le = (a) => V(x.Http).get(`/app-center/api/pages/histories?page=${a}`), bt = (a) => V(x.Http).post("/app-center/api/pageHistory/restore", a), vt = (a) => V(x.Http).get(`/app-center/api/pages/histories/${a}`), Tt = (a, t) => V(x.Http).post(`/app-center/api/pages/update/${a}`, t), pe = {
17
- fetchPageList: yt,
18
- fetchPageDetail: Ce,
19
- requestDeletePage: St,
20
- requestCreatePage: Dt,
21
- requestCopyPage: Ct,
22
- fetchPageHistory: Le,
23
- fetchHistoryDetail: vt,
24
- handleRouteHomeUpdate: ht,
25
- requestRestorePageHistory: bt,
26
- requestUpdatePage: Tt
27
- }, J = (a, t) => {
28
- const g = a.__vccOpts || a;
29
- for (const [e, r] of t)
30
- g[e] = r;
31
- return g;
32
- }, It = {
2
+ import { ref as G, watchEffect as ee, resolveComponent as p, openBlock as I, createBlock as E, computed as ge, createElementBlock as q, createVNode as g, withCtx as h, pushScopeId as Se, popScopeId as he, createElementVNode as w, reactive as X, createTextVNode as Y, createCommentVNode as A, resolveDynamicComponent as He, onUnmounted as We, nextTick as ze, Fragment as ye, renderList as Qe, toDisplayString as De, provide as Ye, inject as Ze } from "vue";
3
+ import { getMetaApi as V, META_SERVICE as x, usePage as M, useBlock as $e, useModal as z, getMergeMeta as Oe, useNotify as O, useCanvas as Ce, getMergeRegistry as Ae, useLayout as le, useBreadcrumb as et, useMessage as Ee, useHelp as tt, getOptions as Ve, HOOK_NAME as at } from "@opentiny/tiny-engine-meta-register";
4
+ import { BlockHistoryList as nt, MetaCodeEditor as ot, LifeCycles as st, PluginSetting as Me, SvgButton as be, ButtonGroup as Ue, PluginPanel as rt } from "@opentiny/tiny-engine-common";
5
+ import { isEqual as pe, extend as Z } from "@opentiny/vue-renderless/common/object";
6
+ import { Checkbox as Le, Button as je, Collapse as ve, CollapseItem as Ne, Input as qe, Search as ct, Tree as lt, Form as it, FormItem as gt, Select as pt, Radio as ut } from "@opentiny/vue";
7
+ import { constants as Je } from "@opentiny/tiny-engine-utils";
8
+ import { isVsCodeEnv as Ke } from "@opentiny/tiny-engine-common/js/environments";
9
+ import { handlePageUpdate as dt } from "@opentiny/tiny-engine-common/js/http";
10
+ import { generatePage as mt, generateRouter as _t } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
11
+ import { previewPage as Pt } from "@opentiny/tiny-engine-common/js/preview";
12
+ import ft from "@opentiny/vue-renderless/common/deps/throttle";
13
+ import { IconSearch as yt, IconFolderOpened as St, IconFolderClosed as ht } from "@opentiny/vue-icon";
14
+ import { getCanvasStatus as xe } from "@opentiny/tiny-engine-common/js/canvas";
15
+ import { REGEXP_PAGE_NAME as Dt, REGEXP_ROUTE as Ge, REGEXP_FOLDER_NAME as Ct } from "@opentiny/tiny-engine-common/js/verification";
16
+ const bt = (t) => V(x.Http).get(`/app-center/api/pages/list/${t}`), Ie = (t) => V(x.Http).get(`/app-center/api/pages/detail/${t}`), vt = (t) => V(x.Http).get(`/app-center/api/pages/delete/${t}`), Nt = (t) => V(x.Http).post("/app-center/api/pages/create", t), It = (t, a) => V(x.Http).post(`/app-center/api/pages/update/${t}`, a), Tt = (t) => V(x.Http).post("/app-center/api/pages/copy", t), Xe = (t) => V(x.Http).get(`/app-center/api/pages/histories?page=${t}`), Ft = (t) => V(x.Http).post("/app-center/api/pageHistory/restore", t), wt = (t) => V(x.Http).get(`/app-center/api/pages/histories/${t}`), kt = (t, a) => V(x.Http).post(`/app-center/api/pages/update/${t}`, a), ue = {
17
+ fetchPageList: bt,
18
+ fetchPageDetail: Ie,
19
+ requestDeletePage: vt,
20
+ requestCreatePage: Nt,
21
+ requestCopyPage: Tt,
22
+ fetchPageHistory: Xe,
23
+ fetchHistoryDetail: wt,
24
+ handleRouteHomeUpdate: It,
25
+ requestRestorePageHistory: Ft,
26
+ requestUpdatePage: kt
27
+ }, J = (t, a) => {
28
+ const i = t.__vccOpts || t;
29
+ for (const [e, r] of a)
30
+ i[e] = r;
31
+ return i;
32
+ }, Ot = {
33
33
  components: {
34
- BlockHistoryList: Ze
34
+ BlockHistoryList: nt
35
35
  },
36
36
  props: {
37
37
  curPageData: {
@@ -40,69 +40,69 @@ const yt = (a) => V(x.Http).get(`/app-center/api/pages/list/${a}`), Ce = (a) =>
40
40
  }
41
41
  },
42
42
  emits: ["restorePage"],
43
- setup(a, { emit: t }) {
44
- const { pageSettingState: g } = M(), { getDateFromNow: e } = We(), { confirm: r } = z(), s = G([]), f = (u) => {
45
- const { id: _, version: d } = V(x.GlobalService).getBaseInfo(), v = d ? `&app=${_}&version=${d}` : "";
46
- u ? Le(u + v).then((C) => {
43
+ setup(t, { emit: a }) {
44
+ const { pageSettingState: i } = M(), { getDateFromNow: e } = $e(), { confirm: r } = z(), s = G([]), _ = (d) => {
45
+ const { id: f, version: m } = V(x.GlobalService).getBaseInfo(), v = m ? `&app=${f}&version=${m}` : "";
46
+ d ? Xe(d + v).then((C) => {
47
47
  C && (C.forEach((S) => {
48
48
  S.backupTitle = S.message, S.backupTime = e(new Date(S.time));
49
49
  }), s.value = C.reverse());
50
50
  }) : s.value = [];
51
51
  };
52
52
  return ee(() => {
53
- var _;
54
- const u = ((_ = g.currentPageData) == null ? void 0 : _.id) || "";
55
- f(u);
53
+ var f;
54
+ const d = ((f = i.currentPageData) == null ? void 0 : f.id) || "";
55
+ _(d);
56
56
  }), {
57
57
  list: s,
58
- previewHistory: (u) => {
59
- var _, d;
60
- u && pt({
61
- id: u.page,
62
- history: u.id,
63
- framework: (_ = Ne("engine.config")) == null ? void 0 : _.dslMode,
64
- platform: (d = Ne("engine.config")) == null ? void 0 : d.platformId
58
+ previewHistory: (d) => {
59
+ var f, m;
60
+ d && Pt({
61
+ id: d.page,
62
+ history: d.id,
63
+ framework: (f = Oe("engine.config")) == null ? void 0 : f.dslMode,
64
+ platform: (m = Oe("engine.config")) == null ? void 0 : m.platformId
65
65
  });
66
66
  },
67
- restoreHistory: (u) => {
67
+ restoreHistory: (d) => {
68
68
  r({
69
69
  title: "提示",
70
70
  message: "您即将还原历史页面,是否继续还原?",
71
71
  exec: () => {
72
- t("restorePage", u);
72
+ a("restorePage", d);
73
73
  }
74
74
  });
75
75
  }
76
76
  };
77
77
  }
78
78
  };
79
- function Nt(a, t, g, e, r, s) {
80
- const f = p("block-history-list");
81
- return I(), E(f, {
79
+ function Et(t, a, i, e, r, s) {
80
+ const _ = p("block-history-list");
81
+ return I(), E(_, {
82
82
  history: e.list,
83
83
  onPreview: e.previewHistory,
84
84
  onRestore: e.restoreHistory
85
85
  }, null, 8, ["history", "onPreview", "onRestore"]);
86
86
  }
87
- const Ot = /* @__PURE__ */ J(It, [["render", Nt]]), Ft = {
87
+ const Vt = /* @__PURE__ */ J(Ot, [["render", Et]]), xt = {
88
88
  components: {
89
- MetaCodeEditor: $e,
90
- TinyCheckbox: Ae
89
+ MetaCodeEditor: ot,
90
+ TinyCheckbox: Le
91
91
  },
92
92
  setup() {
93
- const a = G(""), t = G(""), { pageSettingState: g } = M(), e = ie(() => g.currentPageData);
93
+ const t = G(""), a = G(""), { pageSettingState: i } = M(), e = ge(() => i.currentPageData);
94
94
  return ee(() => {
95
95
  var n, l;
96
- a.value = ((n = g.currentPageData.page_content) == null ? void 0 : n.inputs) || "", t.value = ((l = g.currentPageData.page_content) == null ? void 0 : l.outputs) || "";
96
+ t.value = ((n = i.currentPageData.page_content) == null ? void 0 : n.inputs) || "", a.value = ((l = i.currentPageData.page_content) == null ? void 0 : l.outputs) || "";
97
97
  }), {
98
- inputValue: a,
99
- outputValue: t,
98
+ inputValue: t,
99
+ outputValue: a,
100
100
  saveInputValue: (n) => {
101
101
  try {
102
102
  const l = JSON.parse(n.content);
103
- a.value = n.content, e.value.page_content.inputs = l;
103
+ t.value = n.content, e.value.page_content.inputs = l;
104
104
  } catch (l) {
105
- k({
105
+ O({
106
106
  title: "输入配置保存失败(必须符合JSON格式)",
107
107
  message: `${(l == null ? void 0 : l.message) || l}`,
108
108
  type: "error"
@@ -112,24 +112,24 @@ const Ot = /* @__PURE__ */ J(It, [["render", Nt]]), Ft = {
112
112
  saveOutputValue: (n) => {
113
113
  try {
114
114
  const l = JSON.parse(n.content);
115
- t.value = n.content, e.value.page_content.outputs = l;
115
+ a.value = n.content, e.value.page_content.outputs = l;
116
116
  } catch (l) {
117
- k({
117
+ O({
118
118
  title: "输出配置保存失败(必须符合JSON格式)",
119
119
  message: `${(l == null ? void 0 : l.message) || l}`,
120
120
  type: "error"
121
121
  });
122
122
  }
123
123
  },
124
- pageSettingState: g,
124
+ pageSettingState: i,
125
125
  hasContent: (n) => Array.isArray(n) && n.length > 0 || typeof n == "object" && Object.keys(n).length > 0
126
126
  };
127
127
  }
128
- }, wt = { class: "input-or-output" };
129
- function kt(a, t, g, e, r, s) {
130
- const f = p("svg-icon"), n = p("meta-code-editor"), l = p("tiny-checkbox");
131
- return I(), q("div", wt, [
132
- i(n, {
128
+ }, de = (t) => (Se("data-v-b78f3300"), t = t(), he(), t), Gt = { class: "input-or-output" }, Rt = /* @__PURE__ */ de(() => /* @__PURE__ */ w("div", { class: "input-output-tips" }, "传递给页面的参数(类似组件的输入属性)", -1)), Bt = /* @__PURE__ */ de(() => /* @__PURE__ */ w("div", { class: "input-output-div" }, "页面传递出的事件(类似组件触发的输出事件)", -1)), Ht = /* @__PURE__ */ de(() => /* @__PURE__ */ w("span", null, "设为根元素为Body", -1)), At = /* @__PURE__ */ de(() => /* @__PURE__ */ w("div", { class: "input-output-div" }, "默认为div", -1));
129
+ function Mt(t, a, i, e, r, s) {
130
+ const _ = p("svg-icon"), n = p("meta-code-editor"), l = p("tiny-checkbox");
131
+ return I(), q("div", Gt, [
132
+ g(n, {
133
133
  modelValue: e.inputValue,
134
134
  title: "输入配置",
135
135
  "button-text": "输入配置",
@@ -138,16 +138,16 @@ function kt(a, t, g, e, r, s) {
138
138
  single: "",
139
139
  onSave: e.saveInputValue
140
140
  }, {
141
- icon: D(() => [
142
- i(f, {
141
+ icon: h(() => [
142
+ g(_, {
143
143
  class: "edit-btn-icon",
144
144
  name: "to-edit"
145
145
  })
146
146
  ]),
147
147
  _: 1
148
148
  }, 8, ["modelValue", "buttonShowContent", "onSave"]),
149
- t[2] || (t[2] = F("div", { class: "input-output-tips" }, "传递给页面的参数(类似组件的输入属性)", -1)),
150
- i(n, {
149
+ Rt,
150
+ g(n, {
151
151
  modelValue: e.outputValue,
152
152
  title: "输出配置",
153
153
  "button-text": "输出配置",
@@ -156,60 +156,60 @@ function kt(a, t, g, e, r, s) {
156
156
  single: "",
157
157
  onSave: e.saveOutputValue
158
158
  }, {
159
- icon: D(() => [
160
- i(f, {
159
+ icon: h(() => [
160
+ g(_, {
161
161
  class: "edit-btn-icon",
162
162
  name: "to-edit"
163
163
  })
164
164
  ]),
165
165
  _: 1
166
166
  }, 8, ["modelValue", "buttonShowContent", "onSave"]),
167
- t[3] || (t[3] = F("div", { class: "input-output-div" }, "页面传递出的事件(类似组件触发的输出事件)", -1)),
168
- i(l, {
167
+ Bt,
168
+ g(l, {
169
169
  class: "selectHome",
170
170
  modelValue: e.pageSettingState.currentPageData.isBody,
171
- "onUpdate:modelValue": t[0] || (t[0] = (u) => e.pageSettingState.currentPageData.isBody = u)
171
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => e.pageSettingState.currentPageData.isBody = d)
172
172
  }, {
173
- default: D(() => t[1] || (t[1] = [
174
- F("span", null, "设为根元素为Body", -1)
175
- ])),
173
+ default: h(() => [
174
+ Ht
175
+ ]),
176
176
  _: 1
177
177
  }, 8, ["modelValue"]),
178
- t[4] || (t[4] = F("div", { class: "input-output-div" }, "默认为div", -1))
178
+ At
179
179
  ]);
180
180
  }
181
- const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59"]]), $ = {
181
+ const Ut = /* @__PURE__ */ J(xt, [["render", Mt], ["__scopeId", "data-v-b78f3300"]]), $ = {
182
182
  id: "engine.plugins.appmanage",
183
183
  title: "页面",
184
184
  type: "plugins",
185
185
  icon: "plugin-icon-page",
186
186
  align: "top"
187
187
  }, {
188
- COMPONENT_NAME: Vt
189
- } = Me, be = G(!1), le = () => {
190
- be.value = !0;
188
+ COMPONENT_NAME: Lt
189
+ } = Je, Te = G(!1), ie = () => {
190
+ Te.value = !0;
191
191
  }, L = () => {
192
- be.value = !1;
192
+ Te.value = !1;
193
193
  const {
194
- resetPageData: a
194
+ resetPageData: t
195
195
  } = M();
196
- a();
197
- }, ke = {
196
+ t();
197
+ }, Re = {
198
198
  general: "general",
199
199
  inputOutput: "inputOutput",
200
200
  lifeCycles: "lifeCycles",
201
201
  history: "history"
202
- }, xt = {
202
+ }, jt = {
203
203
  components: {
204
- TinyButton: He,
205
- TinyCollapse: De,
206
- TinyCollapseItem: he,
207
- PageInputOutput: Et,
208
- LifeCycles: et,
209
- PageHistory: Ot,
210
- PluginSetting: Ge,
211
- SvgButton: Se,
212
- ButtonGroup: Re
204
+ TinyButton: je,
205
+ TinyCollapse: ve,
206
+ TinyCollapseItem: Ne,
207
+ PageInputOutput: Ut,
208
+ LifeCycles: st,
209
+ PageHistory: Vt,
210
+ PluginSetting: Me,
211
+ SvgButton: be,
212
+ ButtonGroup: Ue
213
213
  },
214
214
  props: {
215
215
  isFolder: {
@@ -218,43 +218,43 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
218
218
  }
219
219
  },
220
220
  emits: ["openNewPage"],
221
- setup(a, {
222
- emit: t
221
+ setup(t, {
222
+ emit: a
223
223
  }) {
224
224
  var oe;
225
225
  const {
226
- requestCreatePage: g,
226
+ requestCreatePage: i,
227
227
  requestDeletePage: e
228
- } = pe, {
229
- DEFAULT_PAGE: r,
228
+ } = ue, {
229
+ getDefaultPage: r,
230
230
  pageSettingState: s,
231
- changeTreeData: f,
231
+ changeTreeData: _,
232
232
  isCurrentDataSame: n,
233
233
  initCurrentPageData: l,
234
- isTemporaryPage: u,
235
- STATIC_PAGE_GROUP_ID: _
234
+ isTemporaryPage: d,
235
+ STATIC_PAGE_GROUP_ID: f
236
236
  } = M(), {
237
- pageState: d,
237
+ pageState: m,
238
238
  initData: v
239
- } = ye(), {
239
+ } = Ce(), {
240
240
  confirm: C
241
- } = z(), S = xe($.type, $.id), m = S.components.PageGeneral, T = (oe = S == null ? void 0 : S.options) == null ? void 0 : oe.beforeCreatePage, w = G(null), N = X({
242
- activeName: Object.values(ke),
241
+ } = z(), S = Ae($.type, $.id), u = S.components.PageGeneral, N = (oe = S == null ? void 0 : S.options) == null ? void 0 : oe.beforeCreatePage, k = G(null), T = X({
242
+ activeName: Object.values(Re),
243
243
  title: "页面设置",
244
244
  historyMessage: ""
245
- }), B = () => {
246
- ge(s.currentPageData, s.currentPageDataCopy) ? L() : C({
245
+ }), U = () => {
246
+ pe(s.currentPageData, s.currentPageDataCopy) ? L() : C({
247
247
  title: "提示",
248
248
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
249
249
  exec: () => {
250
- s.isNew || (f(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy)), L();
250
+ s.isNew || (_(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy)), L();
251
251
  }
252
252
  });
253
253
  }, K = async () => {
254
254
  const {
255
255
  page_content: b,
256
256
  ...o
257
- } = r, {
257
+ } = r(), {
258
258
  page_content: c,
259
259
  ...y
260
260
  } = s.currentPageData, P = {
@@ -268,23 +268,23 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
268
268
  app: V(x.GlobalService).getBaseInfo().id,
269
269
  isPage: !0
270
270
  };
271
- P.id && (delete P.id, delete P._id), T && await T(P), g(P).then((h) => {
272
- s.updateTreeData(), s.isNew = !1, u.saved = !1, t("openNewPage", h), L(), ce().closePlugin(), k({
271
+ P.id && (delete P.id, delete P._id), N && await N(P), i(P).then((D) => {
272
+ s.updateTreeData(), s.isNew = !1, d.saved = !1, a("openNewPage", D), L(), le().closePlugin(), O({
273
273
  type: "success",
274
274
  message: "新建页面成功!"
275
- }), Be && it(h);
276
- }).catch((h) => {
277
- k({
275
+ }), Ke && mt(D);
276
+ }).catch((D) => {
277
+ O({
278
278
  type: "error",
279
279
  title: "新建页面失败",
280
- message: JSON.stringify((h == null ? void 0 : h.message) || h)
280
+ message: JSON.stringify((D == null ? void 0 : D.message) || D)
281
281
  });
282
282
  });
283
283
  }, j = (b, o) => {
284
284
  var P;
285
- const c = s.currentPageDataCopy.route !== s.currentPageData.route, y = ((P = d == null ? void 0 : d.currentPage) == null ? void 0 : P.id) === b;
286
- return lt(b, o, c, y);
287
- }, ue = (b) => {
285
+ const c = s.currentPageDataCopy.route !== s.currentPageData.route, y = ((P = m == null ? void 0 : m.currentPage) == null ? void 0 : P.id) === b;
286
+ return dt(b, o, c, y);
287
+ }, me = (b) => {
288
288
  b.id = b.page, ["page", "backupTime", "backupTitle", "time"].forEach((y) => delete b[y]);
289
289
  const c = {
290
290
  ...s.currentPageData,
@@ -293,7 +293,7 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
293
293
  };
294
294
  j(b.id, c).then((y) => {
295
295
  var P;
296
- ((P = d == null ? void 0 : d.currentPage) == null ? void 0 : P.id) === (y == null ? void 0 : y.id) && v(y.page_content, y);
296
+ ((P = m == null ? void 0 : m.currentPage) == null ? void 0 : P.id) === (y == null ? void 0 : y.id) && v(y.page_content, y);
297
297
  });
298
298
  }, te = async () => {
299
299
  const {
@@ -308,7 +308,7 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
308
308
  }
309
309
  }, P = await j(b, y);
310
310
  l(P);
311
- }, de = (b) => {
311
+ }, _e = (b) => {
312
312
  if (!b)
313
313
  return;
314
314
  const o = s.currentPageData.page_content;
@@ -319,12 +319,12 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
319
319
  }, W = () => {
320
320
  const b = s.currentPageData, o = Z(!0, {}, b);
321
321
  s.isNew = !0, o.name = `${o.name}Copy`, o.route = `${o.route}Copy`, s.currentPageData = o, s.currentPageDataCopy = Z(!0, {}, o);
322
- }, me = () => {
322
+ }, Pe = () => {
323
323
  n() ? W() : C({
324
324
  title: "提示",
325
325
  message: "您即将复制的页面有更改未保存,是否确定跳过更改直接复制?",
326
326
  exec: () => {
327
- f(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy), W();
327
+ _(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy), W();
328
328
  }
329
329
  });
330
330
  }, ae = () => {
@@ -332,18 +332,18 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
332
332
  title: "创建历史备份信息",
333
333
  status: "custom",
334
334
  message: {
335
- render: () => i(Ue, {
335
+ render: () => g(qe, {
336
336
  placeholder: "历史备份信息",
337
- modelValue: N.historyMessage,
338
- "onUpdate:modelValue": (P) => N.historyMessage = P
337
+ modelValue: T.historyMessage,
338
+ "onUpdate:modelValue": (P) => T.historyMessage = P
339
339
  }, null)
340
340
  },
341
341
  exec: () => {
342
- s.currentPageData.message = N.historyMessage.trim() || "Page auto save", s.isNew ? K() : te(), N.historyMessage = "";
342
+ s.currentPageData.message = T.historyMessage.trim() || "Page auto save", s.isNew ? K() : te(), T.historyMessage = "";
343
343
  }
344
344
  });
345
- }, Pe = () => {
346
- w.value.validGeneralForm().then(ae);
345
+ }, fe = () => {
346
+ k.value.validGeneralForm().then(ae);
347
347
  }, ne = (b = []) => {
348
348
  if (!Array.isArray(b))
349
349
  return [];
@@ -358,13 +358,13 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
358
358
  }), o;
359
359
  };
360
360
  return {
361
- state: N,
362
- isShow: be,
363
- savePageSetting: Pe,
364
- copyPage: me,
361
+ state: T,
362
+ isShow: Te,
363
+ savePageSetting: fe,
364
+ copyPage: Pe,
365
365
  pageSettingState: s,
366
- pageGeneral: m,
367
- pageGeneralRef: w,
366
+ pageGeneral: u,
367
+ pageGeneralRef: k,
368
368
  deletePage: () => {
369
369
  C({
370
370
  title: "提示",
@@ -375,20 +375,20 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
375
375
  e(b).then(() => {
376
376
  s.updateTreeData().then((c) => {
377
377
  var se, Q;
378
- if (((se = d == null ? void 0 : d.currentPage) == null ? void 0 : se.id) !== b)
378
+ if (((se = m == null ? void 0 : m.currentPage) == null ? void 0 : se.id) !== b)
379
379
  return;
380
380
  const y = ((Q = (c || []).find(({
381
381
  groupId: re
382
- }) => re === _)) == null ? void 0 : Q.data) || [], P = ne(y), h = P.find((re) => re.isHome), R = P == null ? void 0 : P[0], A = {
383
- componentName: Vt.Page
382
+ }) => re === f)) == null ? void 0 : Q.data) || [], P = ne(y), D = P.find((re) => re.isHome), R = P == null ? void 0 : P[0], B = {
383
+ componentName: Lt.Page
384
384
  };
385
- t("openNewPage", h || R || A);
386
- }), L(), k({
385
+ a("openNewPage", D || R || B);
386
+ }), L(), O({
387
387
  message: "删除页面成功!",
388
388
  type: "success"
389
389
  });
390
390
  }).catch(() => {
391
- k({
391
+ O({
392
392
  message: "删除页面失败!",
393
393
  type: "error"
394
394
  });
@@ -396,47 +396,47 @@ const Et = /* @__PURE__ */ J(Ft, [["render", kt], ["__scopeId", "data-v-3b0f8d59
396
396
  }
397
397
  });
398
398
  },
399
- cancelPageSetting: B,
399
+ cancelPageSetting: U,
400
400
  closePageSettingPanel: L,
401
- updatePageLifeCycles: de,
402
- restorePage: ue,
403
- PAGE_SETTING_SESSION: ke
401
+ updatePageLifeCycles: _e,
402
+ restorePage: me,
403
+ PAGE_SETTING_SESSION: Re
404
404
  };
405
405
  }
406
- }, Gt = { class: "page-setting-content" }, Rt = { class: "life-cycles-container" };
407
- function At(a, t, g, e, r, s) {
408
- const f = p("tiny-button"), n = p("svg-button"), l = p("button-group"), u = p("tiny-collapse-item"), _ = p("page-input-output"), d = p("life-cycles"), v = p("page-history"), C = p("tiny-collapse"), S = p("plugin-setting");
406
+ }, qt = { class: "page-setting-content" }, Jt = { class: "life-cycles-container" };
407
+ function Kt(t, a, i, e, r, s) {
408
+ const _ = p("tiny-button"), n = p("svg-button"), l = p("button-group"), d = p("tiny-collapse-item"), f = p("page-input-output"), m = p("life-cycles"), v = p("page-history"), C = p("tiny-collapse"), S = p("plugin-setting");
409
409
  return e.isShow ? (I(), E(S, {
410
410
  key: 0,
411
411
  title: e.state.title,
412
412
  class: "page-plugin-setting"
413
413
  }, {
414
- header: D(() => [
415
- i(l, null, {
416
- default: D(() => [
417
- i(f, {
414
+ header: h(() => [
415
+ g(l, null, {
416
+ default: h(() => [
417
+ g(_, {
418
418
  type: "primary",
419
419
  onClick: e.savePageSetting
420
420
  }, {
421
- default: D(() => t[1] || (t[1] = [
421
+ default: h(() => [
422
422
  Y("保存")
423
- ])),
423
+ ]),
424
424
  _: 1
425
425
  }, 8, ["onClick"]),
426
- e.pageSettingState.isNew ? U("", !0) : (I(), E(n, {
426
+ e.pageSettingState.isNew ? A("", !0) : (I(), E(n, {
427
427
  key: 0,
428
428
  name: "text-copy-page",
429
429
  placement: "bottom",
430
430
  tips: "复制页面",
431
431
  onClick: e.copyPage
432
432
  }, null, 8, ["onClick"])),
433
- e.pageSettingState.isNew ? U("", !0) : (I(), E(n, {
433
+ e.pageSettingState.isNew ? A("", !0) : (I(), E(n, {
434
434
  key: 1,
435
435
  name: "delete",
436
436
  tips: "删除页面",
437
437
  onClick: e.deletePage
438
438
  }, null, 8, ["onClick"])),
439
- i(n, {
439
+ g(n, {
440
440
  class: "close-plugin-setting-icon",
441
441
  name: "close",
442
442
  onClick: e.cancelPageSetting
@@ -445,63 +445,63 @@ function At(a, t, g, e, r, s) {
445
445
  _: 1
446
446
  })
447
447
  ]),
448
- content: D(() => [
449
- F("div", Gt, [
450
- i(C, {
448
+ content: h(() => [
449
+ w("div", qt, [
450
+ g(C, {
451
451
  modelValue: e.state.activeName,
452
- "onUpdate:modelValue": t[0] || (t[0] = (m) => e.state.activeName = m),
452
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => e.state.activeName = u),
453
453
  class: "page-setting-collapse"
454
454
  }, {
455
- default: D(() => [
456
- i(u, {
455
+ default: h(() => [
456
+ g(d, {
457
457
  title: "基本设置",
458
458
  name: e.PAGE_SETTING_SESSION.general
459
459
  }, {
460
- default: D(() => [
461
- (I(), E(Ve(e.pageGeneral), {
460
+ default: h(() => [
461
+ (I(), E(He(e.pageGeneral), {
462
462
  ref: "pageGeneralRef",
463
- isFolder: g.isFolder
463
+ isFolder: i.isFolder
464
464
  }, null, 8, ["isFolder"]))
465
465
  ]),
466
466
  _: 1
467
467
  }, 8, ["name"]),
468
- e.pageSettingState.currentPageData.group !== "public" ? (I(), E(u, {
468
+ e.pageSettingState.currentPageData.group !== "public" ? (I(), E(d, {
469
469
  key: 0,
470
470
  class: "base-setting",
471
471
  title: "输入输出",
472
472
  name: e.PAGE_SETTING_SESSION.inputOutput
473
473
  }, {
474
- default: D(() => [
475
- i(_)
474
+ default: h(() => [
475
+ g(f)
476
476
  ]),
477
477
  _: 1
478
- }, 8, ["name"])) : U("", !0),
479
- e.pageSettingState.currentPageData.group !== "public" ? (I(), E(u, {
478
+ }, 8, ["name"])) : A("", !0),
479
+ e.pageSettingState.currentPageData.group !== "public" ? (I(), E(d, {
480
480
  key: 1,
481
481
  class: "input-output",
482
482
  title: "页面生命周期配置",
483
483
  name: e.PAGE_SETTING_SESSION.lifeCycles
484
484
  }, {
485
- default: D(() => {
486
- var m;
485
+ default: h(() => {
486
+ var u;
487
487
  return [
488
- F("div", Rt, [
489
- i(d, {
490
- bindLifeCycles: (m = e.pageSettingState.currentPageData.page_content) == null ? void 0 : m.lifeCycles,
488
+ w("div", Jt, [
489
+ g(m, {
490
+ bindLifeCycles: (u = e.pageSettingState.currentPageData.page_content) == null ? void 0 : u.lifeCycles,
491
491
  onUpdatePageLifeCycles: e.updatePageLifeCycles
492
492
  }, null, 8, ["bindLifeCycles", "onUpdatePageLifeCycles"])
493
493
  ])
494
494
  ];
495
495
  }),
496
496
  _: 1
497
- }, 8, ["name"])) : U("", !0),
498
- i(u, {
497
+ }, 8, ["name"])) : A("", !0),
498
+ g(d, {
499
499
  class: "history-source",
500
500
  title: "历史备份",
501
501
  name: e.PAGE_SETTING_SESSION.history
502
502
  }, {
503
- default: D(() => [
504
- i(v, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
503
+ default: h(() => [
504
+ g(v, { onRestorePage: e.restorePage }, null, 8, ["onRestorePage"])
505
505
  ]),
506
506
  _: 1
507
507
  }, 8, ["name"])
@@ -511,24 +511,24 @@ function At(a, t, g, e, r, s) {
511
511
  ])
512
512
  ]),
513
513
  _: 1
514
- }, 8, ["title"])) : U("", !0);
514
+ }, 8, ["title"])) : A("", !0);
515
515
  }
516
- const Ht = /* @__PURE__ */ J(xt, [["render", At], ["__scopeId", "data-v-acc37bcd"]]);
517
- let ve = G(!1);
518
- const Ee = () => {
519
- ve.value = !0;
516
+ const Xt = /* @__PURE__ */ J(jt, [["render", Kt], ["__scopeId", "data-v-8b752486"]]);
517
+ let Fe = G(!1);
518
+ const Be = () => {
519
+ Fe.value = !0;
520
520
  }, H = () => {
521
- ve.value = !1;
522
- const { resetPageData: a } = M();
523
- a();
524
- }, Ut = {
521
+ Fe.value = !1;
522
+ const { resetPageData: t } = M();
523
+ t();
524
+ }, Wt = {
525
525
  components: {
526
- TinyButton: He,
527
- TinyCollapse: De,
528
- TinyCollapseItem: he,
529
- PluginSetting: Ge,
530
- SvgButton: Se,
531
- ButtonGroup: Re
526
+ TinyButton: je,
527
+ TinyCollapse: ve,
528
+ TinyCollapseItem: Ne,
529
+ PluginSetting: Me,
530
+ SvgButton: be,
531
+ ButtonGroup: Ue
532
532
  },
533
533
  props: {
534
534
  isFolder: {
@@ -537,123 +537,123 @@ const Ee = () => {
537
537
  }
538
538
  },
539
539
  setup() {
540
- const a = X({
540
+ const t = X({
541
541
  activeName: ["folderGeneralRef"],
542
542
  title: "文件夹设置"
543
- }), { requestCreatePage: t, requestUpdatePage: g, requestDeletePage: e } = pe, { pageSettingState: r, changeTreeData: s } = M(), { confirm: f } = z(), l = xe($.type, $.id).components.PageGeneral, u = G(null), _ = () => {
544
- ge(r.currentPageData, r.currentPageDataCopy) ? H() : f({
543
+ }), { requestCreatePage: a, requestUpdatePage: i, requestDeletePage: e } = ue, { pageSettingState: r, changeTreeData: s } = M(), { confirm: _ } = z(), l = Ae($.type, $.id).components.PageGeneral, d = G(null), f = () => {
544
+ pe(r.currentPageData, r.currentPageDataCopy) ? H() : _({
545
545
  title: "提示",
546
546
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
547
547
  exec: () => {
548
548
  r.isNew || (s(r.oldParentId, r.currentPageData.parentId), Object.assign(r.currentPageData, r.currentPageDataCopy)), H();
549
549
  }
550
550
  });
551
- }, d = () => {
552
- const T = {
551
+ }, m = () => {
552
+ const N = {
553
553
  ...r.currentPageData,
554
554
  app: V(x.GlobalService).getBaseInfo().id,
555
555
  isPage: !1
556
556
  };
557
- t(T).then(() => {
558
- r.updateTreeData(), r.isNew = !1, H(), k({
557
+ a(N).then(() => {
558
+ r.updateTreeData(), r.isNew = !1, H(), O({
559
559
  type: "success",
560
560
  message: "新建文件夹成功!"
561
561
  });
562
- }).catch((w) => {
563
- k({
562
+ }).catch((k) => {
563
+ O({
564
564
  type: "error",
565
565
  title: "新建文件夹失败",
566
- message: JSON.stringify((w == null ? void 0 : w.message) || w)
566
+ message: JSON.stringify((k == null ? void 0 : k.message) || k)
567
567
  });
568
568
  });
569
569
  }, v = () => {
570
- const { id: m } = r.currentPageData;
571
- g(m, { ...r.currentPageData, page_content: null }).then(() => {
572
- r.updateTreeData(), r.isNew = !1, H(), k({
570
+ const { id: u } = r.currentPageData;
571
+ i(u, { ...r.currentPageData, page_content: null }).then(() => {
572
+ r.updateTreeData(), r.isNew = !1, H(), O({
573
573
  type: "success",
574
574
  message: "更新文件夹成功!"
575
575
  });
576
- }).catch((T) => {
577
- k({
576
+ }).catch((N) => {
577
+ O({
578
578
  type: "error",
579
579
  title: "更新文件夹失败",
580
- message: JSON.stringify((T == null ? void 0 : T.message) || T)
580
+ message: JSON.stringify((N == null ? void 0 : N.message) || N)
581
581
  });
582
582
  });
583
583
  };
584
584
  return {
585
585
  saveFolderSetting: () => {
586
- u.value.validGeneralForm().then(() => {
587
- r.isNew ? d() : v();
586
+ d.value.validGeneralForm().then(() => {
587
+ r.isNew ? m() : v();
588
588
  });
589
589
  },
590
- deleteFolder: ut(5e3, !0, () => {
591
- var m, T;
592
- if ((T = (m = r.treeDataMapping[r.currentPageData.id]) == null ? void 0 : m.children) != null && T.length) {
593
- k({
590
+ deleteFolder: ft(5e3, !0, () => {
591
+ var u, N;
592
+ if ((N = (u = r.treeDataMapping[r.currentPageData.id]) == null ? void 0 : u.children) != null && N.length) {
593
+ O({
594
594
  type: "error",
595
595
  message: "此文件夹不是空文件夹,不能删除!"
596
596
  });
597
597
  return;
598
598
  }
599
- f({
599
+ _({
600
600
  title: "提示",
601
601
  message: "您是否要删除文件夹?",
602
602
  exec: () => {
603
- var N;
604
- const w = ((N = r.currentPageData) == null ? void 0 : N.id) || "";
605
- e(w).then(() => {
606
- r.updateTreeData(), H(), k({
603
+ var T;
604
+ const k = ((T = r.currentPageData) == null ? void 0 : T.id) || "";
605
+ e(k).then(() => {
606
+ r.updateTreeData(), H(), O({
607
607
  type: "success",
608
608
  message: "删除文件夹成功!"
609
609
  });
610
- }).catch((B) => {
611
- k({
610
+ }).catch((U) => {
611
+ O({
612
612
  type: "success",
613
613
  title: "删除文件夹失败!",
614
- message: JSON.stringify((B == null ? void 0 : B.message) || B)
614
+ message: JSON.stringify((U == null ? void 0 : U.message) || U)
615
615
  });
616
616
  });
617
617
  }
618
618
  });
619
619
  }),
620
620
  pageGeneral: l,
621
- folderGeneralRef: u,
621
+ folderGeneralRef: d,
622
622
  closeFolderSettingPanel: H,
623
- isShow: ve,
624
- state: a,
623
+ isShow: Fe,
624
+ state: t,
625
625
  pageSettingState: r,
626
- closeFolderSetting: _
626
+ closeFolderSetting: f
627
627
  };
628
628
  }
629
- }, Mt = { class: "page-setting-content" };
630
- function Bt(a, t, g, e, r, s) {
631
- const f = p("tiny-button"), n = p("svg-button"), l = p("button-group"), u = p("tiny-collapse-item"), _ = p("tiny-collapse"), d = p("plugin-setting");
632
- return e.isShow ? (I(), E(d, {
629
+ }, zt = { class: "page-setting-content" };
630
+ function Qt(t, a, i, e, r, s) {
631
+ const _ = p("tiny-button"), n = p("svg-button"), l = p("button-group"), d = p("tiny-collapse-item"), f = p("tiny-collapse"), m = p("plugin-setting");
632
+ return e.isShow ? (I(), E(m, {
633
633
  key: 0,
634
634
  title: e.state.title,
635
635
  class: "pageFolder-plugin-setting"
636
636
  }, {
637
- header: D(() => [
638
- i(l, null, {
639
- default: D(() => [
640
- i(f, {
637
+ header: h(() => [
638
+ g(l, null, {
639
+ default: h(() => [
640
+ g(_, {
641
641
  type: "primary",
642
642
  onClick: e.saveFolderSetting
643
643
  }, {
644
- default: D(() => t[1] || (t[1] = [
644
+ default: h(() => [
645
645
  Y("保存")
646
- ])),
646
+ ]),
647
647
  _: 1
648
648
  }, 8, ["onClick"]),
649
- e.pageSettingState.isNew ? U("", !0) : (I(), E(n, {
649
+ e.pageSettingState.isNew ? A("", !0) : (I(), E(n, {
650
650
  key: 0,
651
651
  name: "delete",
652
652
  placement: "bottom",
653
653
  tips: "删除",
654
654
  onClick: e.deleteFolder
655
655
  }, null, 8, ["onClick"])),
656
- i(n, {
656
+ g(n, {
657
657
  class: "close-plugin-setting-icon",
658
658
  name: "close",
659
659
  onClick: e.closeFolderSetting
@@ -662,21 +662,21 @@ function Bt(a, t, g, e, r, s) {
662
662
  _: 1
663
663
  })
664
664
  ]),
665
- content: D(() => [
666
- F("div", Mt, [
667
- i(_, {
665
+ content: h(() => [
666
+ w("div", zt, [
667
+ g(f, {
668
668
  modelValue: e.state.activeName,
669
- "onUpdate:modelValue": t[0] || (t[0] = (v) => e.state.activeName = v)
669
+ "onUpdate:modelValue": a[0] || (a[0] = (v) => e.state.activeName = v)
670
670
  }, {
671
- default: D(() => [
672
- i(u, {
671
+ default: h(() => [
672
+ g(d, {
673
673
  title: "基本设置",
674
674
  name: "folderGeneralRef"
675
675
  }, {
676
- default: D(() => [
677
- (I(), E(Ve(e.pageGeneral), {
676
+ default: h(() => [
677
+ (I(), E(He(e.pageGeneral), {
678
678
  ref: "folderGeneralRef",
679
- isFolder: g.isFolder
679
+ isFolder: i.isFolder
680
680
  }, null, 8, ["isFolder"]))
681
681
  ]),
682
682
  _: 1
@@ -687,19 +687,19 @@ function Bt(a, t, g, e, r, s) {
687
687
  ])
688
688
  ]),
689
689
  _: 1
690
- }, 8, ["title"])) : U("", !0);
690
+ }, 8, ["title"])) : A("", !0);
691
691
  }
692
- const Lt = /* @__PURE__ */ J(Ut, [["render", Bt], ["__scopeId", "data-v-98cffdb3"]]), {
693
- ELEMENT_TAG: jt,
694
- PAGE_STATUS: qt,
695
- COMPONENT_NAME: Jt
696
- } = Me, Kt = {
692
+ const Yt = /* @__PURE__ */ J(Wt, [["render", Qt], ["__scopeId", "data-v-e73be7d0"]]), {
693
+ ELEMENT_TAG: Zt,
694
+ PAGE_STATUS: $t,
695
+ COMPONENT_NAME: ea
696
+ } = Je, ta = {
697
697
  components: {
698
- TinySearch: at,
699
- TinyTree: nt,
700
- TinyCollapse: De,
701
- TinyCollapseItem: he,
702
- TinyIconSearch: dt()
698
+ TinySearch: ct,
699
+ TinyTree: lt,
700
+ TinyCollapse: ve,
701
+ TinyCollapseItem: Ne,
702
+ TinyIconSearch: yt()
703
703
  },
704
704
  props: {
705
705
  isFolder: {
@@ -708,112 +708,112 @@ const Lt = /* @__PURE__ */ J(Ut, [["render", Bt], ["__scopeId", "data-v-98cffdb3
708
708
  }
709
709
  },
710
710
  emits: ["openSettingPanel", "add"],
711
- setup(a, {
712
- emit: t
711
+ setup(t, {
712
+ emit: a
713
713
  }) {
714
714
  const {
715
- confirm: g
715
+ confirm: i
716
716
  } = z(), {
717
717
  initData: e,
718
718
  pageState: r,
719
719
  isBlock: s,
720
- isSaved: f
721
- } = ye(), {
720
+ isSaved: _
721
+ } = Ce(), {
722
722
  pageSettingState: n,
723
723
  changeTreeData: l,
724
- isCurrentDataSame: u,
725
- STATIC_PAGE_GROUP_ID: _,
726
- COMMON_PAGE_GROUP_ID: d
724
+ isCurrentDataSame: d,
725
+ STATIC_PAGE_GROUP_ID: f,
726
+ COMMON_PAGE_GROUP_ID: m
727
727
  } = M(), {
728
728
  fetchPageList: v,
729
729
  fetchPageDetail: C
730
- } = pe, {
730
+ } = ue, {
731
731
  setBreadcrumbPage: S
732
- } = ze(), m = G([]), T = n.ROOT_ID, w = () => V(x.GlobalService).getBaseInfo().id, N = X({
732
+ } = et(), u = G([]), N = n.ROOT_ID, k = () => V(x.GlobalService).getBaseInfo().id, T = X({
733
733
  pageSearchValue: "",
734
- collapseValue: [_, d],
734
+ collapseValue: [f, m],
735
735
  currentNodeData: {}
736
- }), B = (o, c, y) => {
736
+ }), U = (o, c, y) => {
737
737
  const P = {
738
- [T]: {
739
- id: T,
738
+ [N]: {
739
+ id: N,
740
740
  name: "站点根目录",
741
741
  children: []
742
742
  }
743
743
  };
744
- return o.forEach((h) => {
745
- P[h[y]] = h, h.parentId === T && P[T].children.push(h);
746
- }), o.forEach((h) => {
747
- let R = P[h[c]];
748
- R && R.id !== T ? (R.children = R.children || [], R.children.push(h)) : R && R.id;
744
+ return o.forEach((D) => {
745
+ P[D[y]] = D, D.parentId === N && P[N].children.push(D);
746
+ }), o.forEach((D) => {
747
+ let R = P[D[c]];
748
+ R && R.id !== N ? (R.children = R.children || [], R.children.push(D)) : R && R.id;
749
749
  }), n.treeDataMapping = P, n.treeDataMapping;
750
750
  }, K = (o) => {
751
- Array.isArray(m == null ? void 0 : m.value) && qe(() => {
752
- m.value.forEach((c) => {
751
+ Array.isArray(u == null ? void 0 : u.value) && ze(() => {
752
+ u.value.forEach((c) => {
753
753
  c == null || c.filter(o);
754
754
  });
755
755
  });
756
756
  }, j = async (o, c) => {
757
757
  const y = c || await v(o), P = {
758
758
  groupName: "静态页面",
759
- groupId: _,
759
+ groupId: f,
760
760
  data: []
761
- }, h = {
761
+ }, D = {
762
762
  groupName: "公共页面",
763
- groupId: d,
763
+ groupId: m,
764
764
  data: []
765
765
  };
766
- y.forEach((A) => {
767
- const se = A.name ? A : {
768
- ...A,
769
- name: A.folderName,
766
+ y.forEach((B) => {
767
+ const se = B.name ? B : {
768
+ ...B,
769
+ name: B.folderName,
770
770
  group: "staticPages"
771
- }, Q = A.meta ? {
772
- ...A,
773
- ...A.meta,
774
- name: A.fileName,
771
+ }, Q = B.meta ? {
772
+ ...B,
773
+ ...B.meta,
774
+ name: B.fileName,
775
775
  isPage: !0,
776
- isBody: A.meta.rootElement === jt.Body
776
+ isBody: B.meta.rootElement === Zt.Body
777
777
  } : se, {
778
778
  children: re,
779
- ...Ie
779
+ ...ke
780
780
  } = Q;
781
- Q.group === "staticPages" ? P.data.push(Ie) : h.data.push(Ie);
781
+ Q.group === "staticPages" ? P.data.push(ke) : D.data.push(ke);
782
782
  });
783
- const R = B([...P.data], "parentId", "id");
784
- return P.data = R[T].children, n.pages = [P, h], K(N.pageSearchValue), n.pages;
783
+ const R = U([...P.data], "parentId", "id");
784
+ return P.data = R[N].children, n.pages = [P, D], K(T.pageSearchValue), n.pages;
785
785
  };
786
- n.updateTreeData = async () => await j(w());
787
- const ue = () => {
786
+ n.updateTreeData = async () => await j(k());
787
+ const me = () => {
788
788
  r.currentVm = null, r.hoverVm = null, r.properties = {}, r.pageSchema = null;
789
789
  }, te = (o) => {
790
790
  const c = new URL(window.location);
791
791
  c.searchParams.delete("blockid"), c.searchParams.set("pageid", o), window.history.pushState({}, "", c);
792
- }, de = (o) => {
792
+ }, _e = (o) => {
793
793
  if (o !== 0 && !o) {
794
794
  te(""), e({
795
- componentName: Jt.Page
796
- }, {}), ce().layoutState.pageStatus = {
795
+ componentName: ea.Page
796
+ }, {}), le().layoutState.pageStatus = {
797
797
  state: "empty",
798
798
  data: {}
799
799
  };
800
800
  return;
801
801
  }
802
802
  C(o).then((c) => {
803
- te(o), L(), H(), ce().closePlugin(), ce().layoutState.pageStatus = Fe(c.occupier), e(c.page_content, c);
803
+ te(o), L(), H(), le().closePlugin(), le().layoutState.pageStatus = xe(c.occupier), e(c.page_content, c);
804
804
  });
805
805
  }, W = (o) => {
806
- r.hoverVm = null, N.currentNodeData = o;
806
+ r.hoverVm = null, T.currentNodeData = o;
807
807
  let c = "";
808
- o.isPage && (c = (o == null ? void 0 : o.name) || ""), S([c]), ue(), de(o.id);
809
- }, me = (o, c) => {
810
- var h;
808
+ o.isPage && (c = (o == null ? void 0 : o.name) || ""), S([c]), me(), _e(o.id);
809
+ }, Pe = (o, c) => {
810
+ var D;
811
811
  o.stopPropagation();
812
812
  const {
813
813
  id: y,
814
814
  isPage: P
815
815
  } = c.data;
816
- !s() && y === ((h = N == null ? void 0 : N.currentNodeData) == null ? void 0 : h.id) || !P || (f() && u() ? W(c.data) : g({
816
+ !s() && y === ((D = T == null ? void 0 : T.currentNodeData) == null ? void 0 : D.id) || !P || (_() && d() ? W(c.data) : i({
817
817
  title: "提示",
818
818
  message: `${s() ? "区块" : "页面"}尚未保存,是否要继续切换?`,
819
819
  exec: () => {
@@ -823,52 +823,51 @@ const Lt = /* @__PURE__ */ J(Ut, [["render", Bt], ["__scopeId", "data-v-98cffdb3
823
823
  }, ae = (o, c, y) => {
824
824
  var P;
825
825
  if (o.stopPropagation(), y && c.data.isPage) {
826
- const h = ((P = c.data.occupier) == null ? void 0 : P.username) || "";
826
+ const D = ((P = c.data.occupier) == null ? void 0 : P.username) || "";
827
827
  z().message({
828
- message: `您点击的页面被${h}锁定,暂时无法编辑,请联系解锁`,
829
- status: "info"
828
+ message: `您点击的页面被${D}锁定,暂时无法编辑,请联系解锁`
830
829
  });
831
830
  return;
832
831
  }
833
- ge(n.currentPageData, n.currentPageDataCopy) ? t("openSettingPanel", c) : g({
832
+ pe(n.currentPageData, n.currentPageDataCopy) ? a("openSettingPanel", c) : i({
834
833
  title: "提示",
835
834
  message: `当前页面或文件夹${n.currentPageData.name}尚未保存,是否要继续切换?`,
836
835
  exec: () => {
837
- l(n.oldParentId, n.currentPageData.parentId), Object.assign(n.currentPageData, n.currentPageDataCopy), t("openSettingPanel", c);
836
+ l(n.oldParentId, n.currentPageData.parentId), Object.assign(n.currentPageData, n.currentPageDataCopy), a("openSettingPanel", c);
838
837
  }
839
838
  });
840
- }, Pe = (o, {
839
+ }, fe = (o, {
841
840
  node: c,
842
841
  data: y
843
842
  }) => {
844
- const P = Fe(y.occupier).state === qt.Lock;
845
- return i("span", {
843
+ const P = xe(y.occupier).state === $t.Lock;
844
+ return g("span", {
846
845
  class: "tiny-tree-node__label",
847
- onMousedown: (h) => me(h, c)
848
- }, [y.isPage ? i(p("SvgIcon"), {
846
+ onMousedown: (D) => Pe(D, c)
847
+ }, [y.isPage ? g(p("SvgIcon"), {
849
848
  name: "text-page-common",
850
849
  class: "icon-page"
851
- }, null) : i(p("SvgIcon"), {
850
+ }, null) : g(p("SvgIcon"), {
852
851
  name: "text-page-folder-closed",
853
852
  class: "folder-icon"
854
- }, null), i("span", {
853
+ }, null), g("span", {
855
854
  class: "label"
856
- }, [c.label]), i("span", {
855
+ }, [c.label]), g("span", {
857
856
  class: "icons"
858
- }, [y.isPage && P ? i(p("SvgIcon"), {
857
+ }, [y.isPage && P ? g(p("SvgIcon"), {
859
858
  class: "page-edit-icon",
860
859
  name: "locked",
861
- onMousedown: (h) => ae(h, c, P)
862
- }, null) : null, y.isHome ? i(p("SvgIcon"), {
860
+ onMousedown: (D) => ae(D, c, P)
861
+ }, null) : null, y.isHome ? g(p("SvgIcon"), {
863
862
  class: "page-edit-icon",
864
863
  name: "text-page-home"
865
- }, null) : null, i(p("SvgIcon"), {
864
+ }, null) : null, g(p("SvgIcon"), {
866
865
  name: "setting",
867
866
  class: "setting page-edit-icon",
868
- onMousedown: (h) => ae(h, c, P)
867
+ onMousedown: (D) => ae(D, c, P)
869
868
  }, null)])]);
870
869
  };
871
- Oe().subscribe({
870
+ Ee().subscribe({
872
871
  topic: "app_id_changed",
873
872
  subscriber: "page_tree_app_id_changed",
874
873
  callback: (o) => {
@@ -878,71 +877,71 @@ const Lt = /* @__PURE__ */ J(Ut, [["render", Bt], ["__scopeId", "data-v-98cffdb3
878
877
  const ne = (o, c) => {
879
878
  var y;
880
879
  return o ? ((y = c.name) == null ? void 0 : y.toLowerCase().indexOf(o == null ? void 0 : o.toLowerCase())) !== -1 : !0;
881
- }, Te = (o) => {
882
- o && m.value.push(o);
880
+ }, we = (o) => {
881
+ o && u.value.push(o);
883
882
  }, oe = (o) => {
884
- o.stopPropagation(), o.preventDefault(), t("add");
885
- }, b = i("span", null, null);
886
- return je(() => {
887
- Oe().unsubscribe({
883
+ o.stopPropagation(), o.preventDefault(), a("add");
884
+ }, b = g("span", null, null);
885
+ return We(() => {
886
+ Ee().unsubscribe({
888
887
  topic: "app_id_changed",
889
888
  subscriber: "page_tree_app_id_changed"
890
889
  });
891
890
  }), {
892
891
  createPublicPage: oe,
893
- state: N,
892
+ state: T,
894
893
  switchPage: W,
895
894
  pageSettingState: n,
896
895
  searchPageData: K,
897
- renderContent: Pe,
896
+ renderContent: fe,
898
897
  refreshPageList: j,
899
898
  filterPageTreeData: ne,
900
- getPageTreeRefs: Te,
901
- IconFolderOpened: mt(),
902
- IconFolderClosed: Pt(),
899
+ getPageTreeRefs: we,
900
+ IconFolderOpened: St(),
901
+ IconFolderClosed: ht(),
903
902
  nullIcon: b
904
903
  };
905
904
  }
906
- }, Xt = { class: "app-manage-search" }, Wt = { class: "title" }, zt = { class: "app-manage-tree" };
907
- function Qt(a, t, g, e, r, s) {
908
- const f = p("tiny-icon-search"), n = p("tiny-search"), l = p("tiny-tree"), u = p("tiny-collapse-item"), _ = p("tiny-collapse");
909
- return I(), q(fe, null, [
910
- F("div", Xt, [
911
- i(n, {
905
+ }, aa = { class: "app-manage-search" }, na = { class: "title" }, oa = { class: "app-manage-tree" };
906
+ function sa(t, a, i, e, r, s) {
907
+ const _ = p("tiny-icon-search"), n = p("tiny-search"), l = p("tiny-tree"), d = p("tiny-collapse-item"), f = p("tiny-collapse");
908
+ return I(), q(ye, null, [
909
+ w("div", aa, [
910
+ g(n, {
912
911
  modelValue: e.state.pageSearchValue,
913
912
  "onUpdate:modelValue": [
914
- t[0] || (t[0] = (d) => e.state.pageSearchValue = d),
913
+ a[0] || (a[0] = (m) => e.state.pageSearchValue = m),
915
914
  e.searchPageData
916
915
  ],
917
916
  clearable: "",
918
917
  placeholder: "搜索"
919
918
  }, {
920
- prefix: D(() => [
921
- i(f)
919
+ prefix: h(() => [
920
+ g(_)
922
921
  ]),
923
922
  _: 1
924
923
  }, 8, ["modelValue", "onUpdate:modelValue"])
925
924
  ]),
926
- i(_, {
925
+ g(f, {
927
926
  modelValue: e.state.collapseValue,
928
- "onUpdate:modelValue": t[1] || (t[1] = (d) => e.state.collapseValue = d),
927
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => e.state.collapseValue = m),
929
928
  class: "page-manage-collapse lowcode-scrollbar"
930
929
  }, {
931
- default: D(() => [
932
- (I(!0), q(fe, null, Je(e.pageSettingState.pages, (d, v) => (I(), E(u, {
930
+ default: h(() => [
931
+ (I(!0), q(ye, null, Qe(e.pageSettingState.pages, (m, v) => (I(), E(d, {
933
932
  key: v,
934
- name: d.groupId
933
+ name: m.groupId
935
934
  }, {
936
- title: D(() => [
937
- F("span", Wt, _e(d.groupName), 1)
935
+ title: h(() => [
936
+ w("span", na, De(m.groupName), 1)
938
937
  ]),
939
- default: D(() => [
940
- F("div", zt, [
938
+ default: h(() => [
939
+ w("div", oa, [
941
940
  (I(), E(l, {
942
941
  ref_for: !0,
943
942
  ref: e.getPageTreeRefs,
944
943
  key: e.pageSettingState.pageTreeKey,
945
- data: d.data,
944
+ data: m.data,
946
945
  props: {
947
946
  children: "children",
948
947
  label: "name"
@@ -963,19 +962,19 @@ function Qt(a, t, g, e, r, s) {
963
962
  }, 8, ["modelValue"])
964
963
  ], 64);
965
964
  }
966
- const Yt = /* @__PURE__ */ J(Kt, [["render", Qt], ["__scopeId", "data-v-86e2fd2a"]]), Zt = {
967
- getPageById: async (a) => {
968
- if (a)
969
- return Ce(a);
965
+ const ra = /* @__PURE__ */ J(ta, [["render", sa], ["__scopeId", "data-v-5bb39c39"]]), ca = {
966
+ getPageById: async (t) => {
967
+ if (t)
968
+ return Ie(t);
970
969
  },
971
- openPageSettingPanel: le
972
- }, $t = {
970
+ openPageSettingPanel: ie
971
+ }, la = {
973
972
  components: {
974
- PageSetting: Ht,
975
- PluginPanel: tt,
976
- SvgButton: Se,
977
- PageFolderSetting: Lt,
978
- PageTree: Yt
973
+ PageSetting: Xt,
974
+ PluginPanel: rt,
975
+ SvgButton: be,
976
+ PageFolderSetting: Yt,
977
+ PageTree: ra
979
978
  },
980
979
  props: {
981
980
  title: {
@@ -985,46 +984,55 @@ const Yt = /* @__PURE__ */ J(Kt, [["render", Qt], ["__scopeId", "data-v-86e2fd2a
985
984
  },
986
985
  setup() {
987
986
  const {
988
- pageState: a
989
- } = ye(), {
990
- pageSettingState: t,
991
- DEFAULT_PAGE: g,
987
+ pageState: t
988
+ } = Ce(), {
989
+ pageSettingState: a,
990
+ getDefaultPage: i,
992
991
  isTemporaryPage: e,
993
992
  initCurrentPageData: r
994
- } = M(), s = G(null), f = t.ROOT_ID, n = Qe().getDocsUrl("page"), l = X({
993
+ } = M(), s = G(null), _ = a.ROOT_ID, n = tt().getDocsUrl("page"), l = X({
995
994
  isFolder: !1
996
- }), u = (S) => {
997
- H(), t.isNew = !0, t.currentPageData = {
998
- ...g,
999
- parentId: f,
1000
- route: "",
1001
- name: "Untitled",
1002
- page_content: {
1003
- lifeCycles: {}
1004
- },
1005
- group: S
1006
- }, t.currentPageDataCopy = Z(!0, {}, t.currentPageData), l.isFolder = !1, le();
1007
- }, _ = () => {
1008
- L(), t.isNew = !0, t.currentPageData = {
1009
- parentId: f,
995
+ }), d = (S) => {
996
+ H(), a.isNew = !0;
997
+ try {
998
+ const u = i();
999
+ if (!u)
1000
+ throw new Error("Failed to get default page configuration");
1001
+ a.currentPageData = {
1002
+ ...i(),
1003
+ ...u,
1004
+ parentId: _,
1005
+ route: "",
1006
+ name: "Untitled",
1007
+ page_content: {
1008
+ lifeCycles: {}
1009
+ },
1010
+ group: S
1011
+ };
1012
+ } catch {
1013
+ }
1014
+ a.currentPageDataCopy = Z(!0, {}, a.currentPageData), l.isFolder = !1, ie();
1015
+ }, f = () => {
1016
+ L(), a.isNew = !0, a.currentPageData = {
1017
+ parentId: _,
1010
1018
  route: "",
1011
1019
  name: "untitled"
1012
- }, t.currentPageDataCopy = Z(!0, {}, t.currentPageData), l.isFolder = !0, Ee();
1020
+ }, a.currentPageDataCopy = Z(!0, {}, a.currentPageData), l.isFolder = !0, Be();
1013
1021
  };
1014
1022
  ee(() => {
1015
- e.saved && le();
1023
+ e.saved && ie();
1016
1024
  });
1017
- const d = async (S) => {
1018
- var w;
1019
- l.isFolder = !S.data.isPage, t.isNew = !1;
1020
- const m = S.data.id !== t.currentPageData.id;
1021
- l.isFolder ? (m && L(), Ee()) : (m && H(), le());
1022
- const T = await Ce((w = S.data) == null ? void 0 : w.id);
1023
- r(T);
1025
+ const m = async (S) => {
1026
+ var k;
1027
+ l.isFolder = !S.data.isPage, a.isNew = !1;
1028
+ const u = S.data.id !== a.currentPageData.id;
1029
+ l.isFolder ? (u && L(), Be()) : (u && H(), ie());
1030
+ const N = await Ie((k = S.data) == null ? void 0 : k.id);
1031
+ r(N);
1024
1032
  };
1025
- return Ke("openSettingPanel", d), {
1033
+ return Ye("openSettingPanel", m), {
1026
1034
  state: l,
1027
- pageState: a,
1035
+ pageState: t,
1028
1036
  openNewPage: (S) => {
1029
1037
  s.value.switchPage(S);
1030
1038
  },
@@ -1032,58 +1040,58 @@ const Yt = /* @__PURE__ */ J(Kt, [["render", Qt], ["__scopeId", "data-v-86e2fd2a
1032
1040
  pluginPanelClosed: () => {
1033
1041
  L(), H();
1034
1042
  },
1035
- openSettingPanel: d,
1036
- createNewFolder: _,
1037
- createNewPage: u,
1043
+ openSettingPanel: m,
1044
+ createNewFolder: f,
1045
+ createNewPage: d,
1038
1046
  docsUrl: n
1039
1047
  };
1040
1048
  }
1041
1049
  };
1042
- function ea(a, t, g, e, r, s) {
1043
- const f = p("svg-button"), n = p("page-tree"), l = p("plugin-panel"), u = p("page-setting"), _ = p("page-folder-setting");
1044
- return I(), q(fe, null, [
1045
- i(l, {
1046
- title: g.title,
1050
+ function ia(t, a, i, e, r, s) {
1051
+ const _ = p("svg-button"), n = p("page-tree"), l = p("plugin-panel"), d = p("page-setting"), f = p("page-folder-setting");
1052
+ return I(), q(ye, null, [
1053
+ g(l, {
1054
+ title: i.title,
1047
1055
  onClose: e.pluginPanelClosed,
1048
1056
  docsUrl: e.docsUrl,
1049
1057
  isShowDocsIcon: !0
1050
1058
  }, {
1051
- header: D(() => [
1052
- i(f, {
1059
+ header: h(() => [
1060
+ g(_, {
1053
1061
  class: "add-folder-icon",
1054
1062
  name: "add-folder",
1055
1063
  placement: "bottom",
1056
1064
  tips: "新建文件夹",
1057
1065
  onClick: e.createNewFolder
1058
1066
  }, null, 8, ["onClick"]),
1059
- i(f, {
1067
+ g(_, {
1060
1068
  class: "new-page-icon",
1061
1069
  name: "new-page",
1062
1070
  placement: "bottom",
1063
1071
  tips: "新建页面",
1064
- onClick: t[0] || (t[0] = (d) => e.createNewPage("staticPages"))
1072
+ onClick: a[0] || (a[0] = (m) => e.createNewPage("staticPages"))
1065
1073
  })
1066
1074
  ]),
1067
- content: D(() => [
1068
- i(n, {
1075
+ content: h(() => [
1076
+ g(n, {
1069
1077
  ref: "pageTreeRef",
1070
1078
  isFolder: e.state.isFolder,
1071
- onAdd: t[1] || (t[1] = (d) => e.createNewPage("publicPages")),
1079
+ onAdd: a[1] || (a[1] = (m) => e.createNewPage("publicPages")),
1072
1080
  onOpenSettingPanel: e.openSettingPanel
1073
1081
  }, null, 8, ["isFolder", "onOpenSettingPanel"])
1074
1082
  ]),
1075
1083
  _: 1
1076
1084
  }, 8, ["title", "onClose", "docsUrl"]),
1077
- i(u, {
1085
+ g(d, {
1078
1086
  isFolder: e.state.isFolder,
1079
1087
  onOpenNewPage: e.openNewPage
1080
1088
  }, null, 8, ["isFolder", "onOpenNewPage"]),
1081
- i(_, {
1089
+ g(f, {
1082
1090
  isFolder: e.state.isFolder
1083
1091
  }, null, 8, ["isFolder"])
1084
1092
  ], 64);
1085
1093
  }
1086
- const ta = /* @__PURE__ */ J($t, [["render", ea], ["__scopeId", "data-v-b408636b"]]), aa = {
1094
+ const ga = /* @__PURE__ */ J(la, [["render", ia], ["__scopeId", "data-v-2a7e948f"]]), ce = {
1087
1095
  app: "",
1088
1096
  name: "",
1089
1097
  route: "",
@@ -1107,7 +1115,7 @@ const ta = /* @__PURE__ */ J($t, [["render", ea], ["__scopeId", "data-v-b408636b
1107
1115
  parentId: "none",
1108
1116
  isBody: !1,
1109
1117
  group: "staticPages"
1110
- }, na = G(null), O = X({
1118
+ }, pa = G(null), F = X({
1111
1119
  currentPageDataCopy: {},
1112
1120
  // 记录当前页最开始的状态,当用户点击取消按钮的时候恢复到初始状态
1113
1121
  currentPageData: {},
@@ -1120,97 +1128,127 @@ const ta = /* @__PURE__ */ J($t, [["render", ea], ["__scopeId", "data-v-b408636b
1120
1128
  // 根节点ID
1121
1129
  updateTreeData: null,
1122
1130
  treeDataMapping: {}
1123
- }), oa = X({
1131
+ }), ua = X({
1124
1132
  saved: !1
1125
- }), sa = () => {
1126
- const a = O.currentPageData || {}, t = O.currentPageDataCopy || {};
1127
- let g = !0;
1128
- return Object.keys(t).some((e) => {
1133
+ }), da = (t, a) => {
1134
+ var r, s;
1135
+ if (!((r = t == null ? void 0 : t.pageBaseStyle) != null && r.className) || !((s = t == null ? void 0 : t.pageBaseStyle) != null && s.style))
1136
+ return "";
1137
+ const i = (_, n) => `.${_} {
1138
+ ${n.trim()}
1139
+ }
1140
+ `, e = `.${t.pageBaseStyle.className}{\r
1141
+ ${t.pageBaseStyle.style}\r
1142
+ }\r
1143
+ `;
1144
+ return a.useBaseStyle ? [
1145
+ i(t.pageBaseStyle.className, t.pageBaseStyle.style),
1146
+ i(a.blockBaseStyle.className, a.blockBaseStyle.style),
1147
+ i(a.componentBaseStyle.className, a.componentBaseStyle.style)
1148
+ ].join(`
1149
+ `) : e;
1150
+ }, ma = () => {
1151
+ const t = Ve("engine.plugins.materials"), a = Ve("engine.plugins.appmanage");
1152
+ return !t || !a || !a.pageBaseStyle ? { ...ce } : {
1153
+ ...ce,
1154
+ page_content: {
1155
+ ...ce.page_content,
1156
+ props: {
1157
+ ...ce.page_content.props,
1158
+ className: a.pageBaseStyle.className
1159
+ },
1160
+ css: da(a, t)
1161
+ }
1162
+ };
1163
+ }, _a = () => {
1164
+ const t = F.currentPageData || {}, a = F.currentPageDataCopy || {};
1165
+ let i = !0;
1166
+ return Object.keys(a).some((e) => {
1129
1167
  if (["children", "label", "createdBy", "assets", "occupier"].includes(e))
1130
1168
  return !1;
1131
1169
  if (e === "page_content") {
1132
1170
  const r = {
1133
- inputs: t[e].inputs,
1134
- outputs: t[e].outputs,
1135
- lifeCycles: t[e].lifeCycles
1136
- }, s = {
1137
1171
  inputs: a[e].inputs,
1138
1172
  outputs: a[e].outputs,
1139
1173
  lifeCycles: a[e].lifeCycles
1174
+ }, s = {
1175
+ inputs: t[e].inputs,
1176
+ outputs: t[e].outputs,
1177
+ lifeCycles: t[e].lifeCycles
1140
1178
  };
1141
- JSON.stringify(r) !== JSON.stringify(s) && (g = !1);
1179
+ JSON.stringify(r) !== JSON.stringify(s) && (i = !1);
1142
1180
  } else
1143
- t[e] !== a[e] && (g = !1);
1144
- return !g;
1145
- }), g;
1146
- }, ra = (a, t) => {
1147
- var g, e;
1148
- if (a && t && a !== t) {
1149
- const r = O.treeDataMapping[a], s = O.treeDataMapping[t], f = O.currentPageData.id, n = (e = (g = s.children) == null ? void 0 : g.findIndex) == null ? void 0 : e.call(g, ({ id: l }) => l === f);
1150
- n > -1 && (s.children.splice(n, 1), r.children || (r.children = []), r.children.unshift(O.currentPageData), O.pageTreeKey++);
1181
+ a[e] !== t[e] && (i = !1);
1182
+ return !i;
1183
+ }), i;
1184
+ }, Pa = (t, a) => {
1185
+ var i, e;
1186
+ if (t && a && t !== a) {
1187
+ const r = F.treeDataMapping[t], s = F.treeDataMapping[a], _ = F.currentPageData.id, n = (e = (i = s.children) == null ? void 0 : i.findIndex) == null ? void 0 : e.call(i, ({ id: l }) => l === _);
1188
+ n > -1 && (s.children.splice(n, 1), r.children || (r.children = []), r.children.unshift(F.currentPageData), F.pageTreeKey++);
1151
1189
  }
1152
- }, ca = () => O.currentPageData.page_content || {}, la = (a) => {
1153
- O.currentPageData = a, O.currentPageDataCopy = Z(!0, {}, a), O.oldParentId = a.parentId;
1154
- }, ia = () => {
1155
- O.currentPageData = {}, O.currentPageDataCopy = {}, O.oldParentId = null;
1156
- }, ga = () => !ge(O.currentPageData, O.currentPageDataCopy), pa = 0, ua = 1, da = () => ({
1157
- DEFAULT_PAGE: aa,
1158
- selectedTemplateCard: na,
1159
- pageSettingState: O,
1160
- isTemporaryPage: oa,
1161
- isCurrentDataSame: sa,
1162
- changeTreeData: ra,
1163
- getPageContent: ca,
1164
- resetPageData: ia,
1165
- initCurrentPageData: la,
1166
- isChangePageData: ga,
1167
- STATIC_PAGE_GROUP_ID: pa,
1168
- COMMON_PAGE_GROUP_ID: ua
1169
- }), ma = {
1190
+ }, fa = () => F.currentPageData.page_content || {}, ya = (t) => {
1191
+ F.currentPageData = t, F.currentPageDataCopy = Z(!0, {}, t), F.oldParentId = t.parentId;
1192
+ }, Sa = () => {
1193
+ F.currentPageData = {}, F.currentPageDataCopy = {}, F.oldParentId = null;
1194
+ }, ha = () => !pe(F.currentPageData, F.currentPageDataCopy), Da = 0, Ca = 1, ba = () => ({
1195
+ getDefaultPage: ma,
1196
+ selectedTemplateCard: pa,
1197
+ pageSettingState: F,
1198
+ isTemporaryPage: ua,
1199
+ isCurrentDataSame: _a,
1200
+ changeTreeData: Pa,
1201
+ getPageContent: fa,
1202
+ resetPageData: Sa,
1203
+ initCurrentPageData: ya,
1204
+ isChangePageData: ha,
1205
+ STATIC_PAGE_GROUP_ID: Da,
1206
+ COMMON_PAGE_GROUP_ID: Ca
1207
+ }), va = {
1170
1208
  id: "engine.service.page",
1171
1209
  type: "MetaService",
1172
- apis: da(),
1210
+ apis: ba(),
1173
1211
  composable: {
1174
- name: Ye.usePage
1212
+ name: at.usePage
1175
1213
  }
1176
- }, Pa = {
1214
+ }, Na = {
1177
1215
  components: {
1178
- TinyCheckbox: Ae
1216
+ TinyCheckbox: Le
1179
1217
  },
1180
1218
  setup() {
1181
- const { pageSettingState: a, STATIC_PAGE_GROUP_ID: t } = M(), { handleRouteHomeUpdate: g } = pe, { confirm: e } = z(), r = X({
1219
+ const { pageSettingState: t, STATIC_PAGE_GROUP_ID: a } = M(), { handleRouteHomeUpdate: i } = ue, { confirm: e } = z(), r = X({
1182
1220
  checked: !1,
1183
1221
  selectDisable: !1
1184
1222
  });
1185
1223
  ee(() => {
1186
- var u;
1187
- const l = !!((u = a.currentPageData) != null && u.isHome);
1224
+ var d;
1225
+ const l = !!((d = t.currentPageData) != null && d.isHome);
1188
1226
  r.checked = l, r.selectDisable = l;
1189
1227
  });
1190
- const s = ie(() => {
1228
+ const s = ge(() => {
1191
1229
  let l = "暂无主页";
1192
- if (a.pages[t]) {
1193
- const _ = a.pages[t].data.filter((d) => d.isHome);
1194
- _[0] && (l = _[0].name);
1230
+ if (t.pages[a]) {
1231
+ const f = t.pages[a].data.filter((m) => m.isHome);
1232
+ f[0] && (l = f[0].name);
1195
1233
  }
1196
1234
  return l;
1197
- }), f = Xe("openSettingPanel");
1235
+ }), _ = Ze("openSettingPanel");
1198
1236
  return {
1199
- pageSettingState: a,
1237
+ pageSettingState: t,
1200
1238
  settingHome: () => {
1201
1239
  e({
1202
1240
  title: "提示",
1203
1241
  type: "warning ",
1204
1242
  message: "是否确定要将此页面设置为主页?您所做的任何未保存的更改都将被丢弃。",
1205
1243
  exec: () => {
1206
- const { id: l } = a.currentPageData, u = a.ROOT_ID, _ = { ...a.currentPageData };
1207
- _.parentId = u, _.isHome = !0, g(l, _).then(() => {
1208
- a.updateTreeData(), f({ data: a.currentPageData }), a.isNew = !1, Be && gt({
1244
+ const { id: l } = t.currentPageData, d = t.ROOT_ID, f = { ...t.currentPageData };
1245
+ f.parentId = d, f.isHome = !0, i(l, f).then(() => {
1246
+ t.updateTreeData(), _({ data: t.currentPageData }), t.isNew = !1, Ke && _t({
1209
1247
  pageId: l,
1210
- componentsTree: _
1211
- }), k({ message: "主页设置成功!", type: "success" });
1248
+ componentsTree: f
1249
+ }), O({ message: "主页设置成功!", type: "success" });
1212
1250
  }).catch(() => {
1213
- k({ message: "主页设置失败!", type: "error" });
1251
+ O({ message: "主页设置失败!", type: "error" });
1214
1252
  });
1215
1253
  },
1216
1254
  cancel: () => {
@@ -1222,36 +1260,36 @@ const ta = /* @__PURE__ */ J($t, [["render", ea], ["__scopeId", "data-v-b408636b
1222
1260
  state: r
1223
1261
  };
1224
1262
  }
1225
- }, fa = { class: "home" }, _a = { class: "tip" }, ya = { class: "home-page" };
1226
- function Sa(a, t, g, e, r, s) {
1227
- const f = p("tiny-checkbox");
1228
- return I(), q("div", fa, [
1229
- i(f, {
1263
+ }, Ia = (t) => (Se("data-v-46b25916"), t = t(), he(), t), Ta = { class: "home" }, Fa = { class: "tip" }, wa = /* @__PURE__ */ Ia(() => /* @__PURE__ */ w("span", null, "当前主页是", -1)), ka = { class: "home-page" };
1264
+ function Oa(t, a, i, e, r, s) {
1265
+ const _ = p("tiny-checkbox");
1266
+ return I(), q("div", Ta, [
1267
+ g(_, {
1230
1268
  class: "selectHome",
1231
1269
  modelValue: e.state.checked,
1232
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.state.checked = n),
1270
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => e.state.checked = n),
1233
1271
  disabled: e.state.selectDisable,
1234
1272
  onChange: e.settingHome
1235
1273
  }, {
1236
- default: D(() => t[1] || (t[1] = [
1274
+ default: h(() => [
1237
1275
  Y("设为主页")
1238
- ])),
1276
+ ]),
1239
1277
  _: 1
1240
1278
  }, 8, ["modelValue", "disabled", "onChange"]),
1241
- F("div", _a, [
1242
- t[2] || (t[2] = F("span", null, "当前主页是", -1)),
1243
- F("span", ya, "【" + _e(e.homePage) + "】", 1)
1279
+ w("div", Fa, [
1280
+ wa,
1281
+ w("span", ka, "【" + De(e.homePage) + "】", 1)
1244
1282
  ])
1245
1283
  ]);
1246
1284
  }
1247
- const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4"]]), ha = {
1285
+ const Ea = /* @__PURE__ */ J(Na, [["render", Oa], ["__scopeId", "data-v-46b25916"]]), Va = {
1248
1286
  components: {
1249
- TinyForm: ot,
1250
- TinyFormItem: st,
1251
- TinyInput: Ue,
1252
- TinySelect: rt,
1253
- PageHome: Da,
1254
- TinyRadio: ct
1287
+ TinyForm: it,
1288
+ TinyFormItem: gt,
1289
+ TinyInput: qe,
1290
+ TinySelect: pt,
1291
+ PageHome: Ea,
1292
+ TinyRadio: ut
1255
1293
  },
1256
1294
  props: {
1257
1295
  modelValue: {
@@ -1265,28 +1303,28 @@ const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4
1265
1303
  },
1266
1304
  setup() {
1267
1305
  const {
1268
- pageSettingState: a,
1269
- changeTreeData: t,
1270
- STATIC_PAGE_GROUP_ID: g
1271
- } = M(), e = a.ROOT_ID, r = G(a.currentPageData.parentId);
1306
+ pageSettingState: t,
1307
+ changeTreeData: a,
1308
+ STATIC_PAGE_GROUP_ID: i
1309
+ } = M(), e = t.ROOT_ID, r = G(t.currentPageData.parentId);
1272
1310
  ee(() => {
1273
- r.value = a.oldParentId;
1311
+ r.value = t.oldParentId;
1274
1312
  });
1275
- const s = ie(() => {
1276
- let C = a.currentPageData.route || "", S = a.currentPageData.parentId;
1313
+ const s = ge(() => {
1314
+ let C = t.currentPageData.route || "", S = t.currentPageData.parentId;
1277
1315
  for (; S !== e; ) {
1278
- const m = a.treeDataMapping[S];
1279
- if (!m)
1316
+ const u = t.treeDataMapping[S];
1317
+ if (!u)
1280
1318
  break;
1281
- C = `${m.route}/${C}`, S = m.parentId;
1319
+ C = `${u.route}/${C}`, S = u.parentId;
1282
1320
  }
1283
1321
  return C.startsWith("/") && (C = C.slice(1)), C;
1284
- }), f = {
1322
+ }), _ = {
1285
1323
  name: [{
1286
1324
  required: !0,
1287
1325
  message: "请输入页面 ID"
1288
1326
  }, {
1289
- pattern: ft,
1327
+ pattern: Dt,
1290
1328
  message: "只允许包含英文字母,且为大写开头驼峰格式, 如DemoPage"
1291
1329
  }, {
1292
1330
  min: 3,
@@ -1297,7 +1335,7 @@ const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4
1297
1335
  required: !0,
1298
1336
  message: "请输入页面路由"
1299
1337
  }, {
1300
- pattern: we,
1338
+ pattern: Ge,
1301
1339
  message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
1302
1340
  }]
1303
1341
  }, n = {
@@ -1305,7 +1343,7 @@ const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4
1305
1343
  required: !0,
1306
1344
  message: "请输入页面文件夹 ID"
1307
1345
  }, {
1308
- pattern: _t,
1346
+ pattern: Ct,
1309
1347
  message: "只允许包含英文字母、数字、下横线_、中横线-, 且以英文字母开头"
1310
1348
  }, {
1311
1349
  min: 3,
@@ -1316,7 +1354,7 @@ const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4
1316
1354
  required: !0,
1317
1355
  message: "请输入页面文件夹路由"
1318
1356
  }, {
1319
- pattern: we,
1357
+ pattern: Ge,
1320
1358
  message: "只允许包含英文字母、数字、下横线_、中横线-、正斜杠/, 且以英文字母开头"
1321
1359
  }],
1322
1360
  group: [{
@@ -1325,69 +1363,69 @@ const Da = /* @__PURE__ */ J(Pa, [["render", Sa], ["__scopeId", "data-v-bf1c3be4
1325
1363
  }]
1326
1364
  }, l = (C) => {
1327
1365
  const S = [];
1328
- return C.forEach((m) => {
1329
- !m.isPage && m.id !== a.currentPageData.id && (S.push(m), m.children || (m.children = []), m.children = l(m.children));
1366
+ return C.forEach((u) => {
1367
+ !u.isPage && u.id !== t.currentPageData.id && (S.push(u), u.children || (u.children = []), u.children = l(u.children));
1330
1368
  }), S;
1331
- }, u = ie(() => {
1332
- var N;
1333
- const C = i(p("SvgIcon"), {
1369
+ }, d = ge(() => {
1370
+ var T;
1371
+ const C = g(p("SvgIcon"), {
1334
1372
  name: "text-page-folder-closed",
1335
1373
  class: "folder-icon"
1336
- }, null), S = i(p("SvgIcon"), {
1374
+ }, null), S = g(p("SvgIcon"), {
1337
1375
  name: "text-page-folder",
1338
1376
  class: "folder-icon"
1339
- }, null), m = ((N = a.pages[g]) == null ? void 0 : N.data) || [];
1377
+ }, null), u = ((T = t.pages[i]) == null ? void 0 : T.data) || [];
1340
1378
  return {
1341
1379
  data: [{
1342
1380
  name: "无",
1343
1381
  id: e
1344
- }, ...l(JSON.parse(JSON.stringify(m)))],
1382
+ }, ...l(JSON.parse(JSON.stringify(u)))],
1345
1383
  shrinkIcon: S,
1346
1384
  expandIcon: C,
1347
- renderContent: (B, {
1385
+ renderContent: (U, {
1348
1386
  node: K,
1349
1387
  data: j
1350
- }) => i("span", {
1388
+ }) => g("span", {
1351
1389
  style: "display:flex"
1352
- }, [K.isLeaf && j.id !== e ? i(p("svg-icon"), {
1390
+ }, [K.isLeaf && j.id !== e ? g(p("svg-icon"), {
1353
1391
  name: "text-page-folder-closed",
1354
1392
  style: "margin-right:14px"
1355
- }, null) : null, i("span", {
1393
+ }, null) : null, g("span", {
1356
1394
  class: "label"
1357
1395
  }, [K.label])])
1358
1396
  };
1359
- }), _ = G(null);
1397
+ }), f = G(null);
1360
1398
  return {
1361
- pageRules: f,
1399
+ pageRules: _,
1362
1400
  folderRules: n,
1363
- pageSettingState: a,
1364
- generalForm: _,
1401
+ pageSettingState: t,
1402
+ generalForm: f,
1365
1403
  validGeneralForm: () => new Promise((C, S) => {
1366
- _.value.validate((m) => {
1367
- m ? C(m) : S(m);
1404
+ f.value.validate((u) => {
1405
+ u ? C(u) : S(u);
1368
1406
  });
1369
1407
  }),
1370
- treeFolderOp: u,
1408
+ treeFolderOp: d,
1371
1409
  currentRoute: s,
1372
1410
  changeParentForderId: (C) => {
1373
- t(C.id, r.value), r.value = C.id;
1411
+ a(C.id, r.value), r.value = C.id;
1374
1412
  }
1375
1413
  };
1376
1414
  }
1377
- }, Ca = { class: "general-config" }, ba = { class: "tip" }, va = {
1415
+ }, xa = (t) => (Se("data-v-a8400625"), t = t(), he(), t), Ga = { class: "general-config" }, Ra = { class: "tip" }, Ba = {
1378
1416
  key: 0,
1379
1417
  class: "text"
1380
- }, Ta = {
1418
+ }, Ha = {
1381
1419
  key: 1,
1382
1420
  class: "route-text"
1383
- }, Ia = { class: "text-dim" };
1384
- function Na(a, t, g, e, r, s) {
1385
- const f = p("tiny-radio"), n = p("tiny-form-item"), l = p("tiny-input"), u = p("tiny-select"), _ = p("tiny-form"), d = p("page-home");
1386
- return I(), q("div", Ca, [
1387
- i(_, {
1421
+ }, Aa = /* @__PURE__ */ xa(() => /* @__PURE__ */ w("span", { class: "text" }, "website.com/", -1)), Ma = { class: "text-dim" };
1422
+ function Ua(t, a, i, e, r, s) {
1423
+ const _ = p("tiny-radio"), n = p("tiny-form-item"), l = p("tiny-input"), d = p("tiny-select"), f = p("tiny-form"), m = p("page-home");
1424
+ return I(), q("div", Ga, [
1425
+ g(f, {
1388
1426
  ref: "generalForm",
1389
1427
  model: e.pageSettingState.currentPageData,
1390
- rules: g.isFolder ? e.folderRules : e.pageRules,
1428
+ rules: i.isFolder ? e.folderRules : e.pageRules,
1391
1429
  "label-width": "120px",
1392
1430
  "validate-type": "text",
1393
1431
  "inline-message": !0,
@@ -1395,48 +1433,48 @@ function Na(a, t, g, e, r, s) {
1395
1433
  "label-position": "top",
1396
1434
  class: "general-config-form"
1397
1435
  }, {
1398
- default: D(() => [
1399
- g.isFolder ? U("", !0) : (I(), E(n, {
1436
+ default: h(() => [
1437
+ i.isFolder ? A("", !0) : (I(), E(n, {
1400
1438
  key: 0,
1401
1439
  prop: "group",
1402
1440
  label: "页面类型",
1403
1441
  class: "form-item-page-type"
1404
1442
  }, {
1405
- default: D(() => [
1406
- i(f, {
1443
+ default: h(() => [
1444
+ g(_, {
1407
1445
  modelValue: e.pageSettingState.currentPageData.group,
1408
- "onUpdate:modelValue": t[0] || (t[0] = (v) => e.pageSettingState.currentPageData.group = v),
1446
+ "onUpdate:modelValue": a[0] || (a[0] = (v) => e.pageSettingState.currentPageData.group = v),
1409
1447
  class: "page-type-radio",
1410
1448
  label: "staticPages"
1411
1449
  }, {
1412
- default: D(() => t[5] || (t[5] = [
1450
+ default: h(() => [
1413
1451
  Y(" 静态页面 ")
1414
- ])),
1452
+ ]),
1415
1453
  _: 1
1416
1454
  }, 8, ["modelValue"]),
1417
- i(f, {
1455
+ g(_, {
1418
1456
  modelValue: e.pageSettingState.currentPageData.group,
1419
- "onUpdate:modelValue": t[1] || (t[1] = (v) => e.pageSettingState.currentPageData.group = v),
1457
+ "onUpdate:modelValue": a[1] || (a[1] = (v) => e.pageSettingState.currentPageData.group = v),
1420
1458
  class: "page-type-radio",
1421
1459
  label: "publicPages"
1422
1460
  }, {
1423
- default: D(() => t[6] || (t[6] = [
1461
+ default: h(() => [
1424
1462
  Y(" 公共页面 ")
1425
- ])),
1463
+ ]),
1426
1464
  _: 1
1427
1465
  }, 8, ["modelValue"])
1428
1466
  ]),
1429
1467
  _: 1
1430
1468
  })),
1431
- i(n, {
1469
+ g(n, {
1432
1470
  prop: "name",
1433
- label: `${g.isFolder ? "文件夹" : "页面"}名称`
1471
+ label: `${i.isFolder ? "文件夹" : "页面"}名称`
1434
1472
  }, {
1435
- default: D(() => [
1436
- i(l, {
1473
+ default: h(() => [
1474
+ g(l, {
1437
1475
  modelValue: e.pageSettingState.currentPageData.name,
1438
- "onUpdate:modelValue": t[2] || (t[2] = (v) => e.pageSettingState.currentPageData.name = v),
1439
- placeholder: `请设置${g.isFolder ? "文件夹" : "页面"}名称`
1476
+ "onUpdate:modelValue": a[2] || (a[2] = (v) => e.pageSettingState.currentPageData.name = v),
1477
+ placeholder: `请设置${i.isFolder ? "文件夹" : "页面"}名称`
1440
1478
  }, null, 8, ["modelValue", "placeholder"])
1441
1479
  ]),
1442
1480
  _: 1
@@ -1446,10 +1484,10 @@ function Na(a, t, g, e, r, s) {
1446
1484
  label: "父文件夹",
1447
1485
  prop: "parentId"
1448
1486
  }, {
1449
- default: D(() => [
1450
- i(u, {
1487
+ default: h(() => [
1488
+ g(d, {
1451
1489
  modelValue: e.pageSettingState.currentPageData.parentId,
1452
- "onUpdate:modelValue": t[3] || (t[3] = (v) => e.pageSettingState.currentPageData.parentId = v),
1490
+ "onUpdate:modelValue": a[3] || (a[3] = (v) => e.pageSettingState.currentPageData.parentId = v),
1453
1491
  "value-field": "id",
1454
1492
  "render-type": "tree",
1455
1493
  "tree-op": e.treeFolderOp,
@@ -1460,22 +1498,22 @@ function Na(a, t, g, e, r, s) {
1460
1498
  }, null, 8, ["modelValue", "tree-op", "onChange"])
1461
1499
  ]),
1462
1500
  _: 1
1463
- })) : U("", !0),
1464
- i(n, {
1501
+ })) : A("", !0),
1502
+ g(n, {
1465
1503
  label: "页面路由",
1466
1504
  prop: "route"
1467
1505
  }, {
1468
- default: D(() => [
1469
- i(l, {
1506
+ default: h(() => [
1507
+ g(l, {
1470
1508
  modelValue: e.pageSettingState.currentPageData.route,
1471
- "onUpdate:modelValue": t[4] || (t[4] = (v) => e.pageSettingState.currentPageData.route = v),
1509
+ "onUpdate:modelValue": a[4] || (a[4] = (v) => e.pageSettingState.currentPageData.route = v),
1472
1510
  placeholder: "请设置路由"
1473
1511
  }, null, 8, ["modelValue"]),
1474
- F("div", ba, [
1475
- e.pageSettingState.currentPageData.route ? (I(), q("span", Ta, [
1476
- t[7] || (t[7] = F("span", { class: "text" }, "website.com/", -1)),
1477
- F("span", Ia, _e(e.currentRoute), 1)
1478
- ])) : (I(), q("span", va, "路由将以website.com开头"))
1512
+ w("div", Ra, [
1513
+ e.pageSettingState.currentPageData.route ? (I(), q("span", Ha, [
1514
+ Aa,
1515
+ w("span", Ma, De(e.currentRoute), 1)
1516
+ ])) : (I(), q("span", Ba, "路由将以website.com开头"))
1479
1517
  ])
1480
1518
  ]),
1481
1519
  _: 1
@@ -1483,19 +1521,25 @@ function Na(a, t, g, e, r, s) {
1483
1521
  ]),
1484
1522
  _: 1
1485
1523
  }, 8, ["model", "rules"]),
1486
- !g.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (I(), E(d, { key: 0 })) : U("", !0)
1524
+ !i.isFolder && !e.pageSettingState.isNew && e.pageSettingState.currentPageData.group !== "public" ? (I(), E(m, { key: 0 })) : A("", !0)
1487
1525
  ]);
1488
1526
  }
1489
- const Oa = /* @__PURE__ */ J(ha, [["render", Na], ["__scopeId", "data-v-7be2b6ba"]]), qa = {
1527
+ const La = /* @__PURE__ */ J(Va, [["render", Ua], ["__scopeId", "data-v-a8400625"]]), on = {
1490
1528
  ...$,
1491
- apis: Zt,
1492
- entry: ta,
1529
+ apis: ca,
1530
+ entry: ga,
1531
+ options: {
1532
+ pageBaseStyle: {
1533
+ className: "page-base-style",
1534
+ style: "padding: 24px;background: #FFFFFF;"
1535
+ }
1536
+ },
1493
1537
  components: {
1494
- PageGeneral: Oa
1538
+ PageGeneral: La
1495
1539
  },
1496
- metas: [ma]
1540
+ metas: [va]
1497
1541
  };
1498
1542
  export {
1499
- ma as PageService,
1500
- qa as default
1543
+ va as PageService,
1544
+ on as default
1501
1545
  };