@opentiny/tiny-engine-plugin-page 2.4.0-rc.0 → 2.4.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,8 +1,8 @@
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 ie, defineComponent as Qe, Fragment as ce, renderList as De, normalizeClass as he, renderSlot as ct, toDisplayString as ae, onMounted as ut, onUnmounted as Le, provide as He } from "vue";
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
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";
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 de, extend as pe } from "@opentiny/vue-renderless/common/object";
5
+ import { isEqual as ge, extend as de } from "@opentiny/vue-renderless/common/object";
6
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
7
  import { constants as we } from "@opentiny/tiny-engine-utils";
8
8
  import { isVsCodeEnv as Nt } from "@opentiny/tiny-engine-common/js/environments";
@@ -13,7 +13,7 @@ import wt from "@opentiny/vue-renderless/common/deps/throttle";
13
13
  import { IconSearch as Tt, IconFolderClosed as kt, IconFolderOpened as Bt, iconFile as Ot } from "@opentiny/vue-icon";
14
14
  import { getCanvasStatus as nt } from "@opentiny/tiny-engine-common/js/canvas";
15
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), ue = {
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
17
  fetchPageList: Gt,
18
18
  fetchPageDetail: Te,
19
19
  requestDeletePage: Vt,
@@ -53,7 +53,7 @@ const Gt = (t) => G(V.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) =>
53
53
  previewHistory: async (y) => {
54
54
  var m, h, f, b;
55
55
  if (y) {
56
- const w = (h = (m = G(V.ThemeSwitch)) == null ? void 0 : m.getThemeState()) == null ? void 0 : h.theme, B = {
56
+ const w = (h = (m = G(V.ThemeSwitch)) == null ? void 0 : m.getThemeState()) == null ? void 0 : h.theme, O = {
57
57
  id: Number(y.page),
58
58
  history: y.id,
59
59
  framework: (f = Ue("engine.config")) == null ? void 0 : f.dslMode,
@@ -64,7 +64,7 @@ const Gt = (t) => G(V.Http).get(`/app-center/api/pages/list/${t}`), Te = (t) =>
64
64
  },
65
65
  theme: w
66
66
  };
67
- B.ancestors = await e(B), Et(B);
67
+ O.ancestors = await e(O), Et(O);
68
68
  }
69
69
  },
70
70
  restoreHistory: (y) => {
@@ -186,7 +186,7 @@ function Xt(t, a, n, e, o, s) {
186
186
  a[4] || (a[4] = A("div", { class: "input-output-div" }, "默认为div", -1))
187
187
  ]);
188
188
  }
189
- const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b"]]), fe = {
189
+ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b"]]), pe = {
190
190
  id: "engine.plugins.appmanage",
191
191
  title: "页面",
192
192
  type: "plugins",
@@ -194,7 +194,7 @@ 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), _e = () => {
197
+ } = we, ke = K(!1), ye = () => {
198
198
  ke.value = !0;
199
199
  }, Q = () => {
200
200
  ke.value = !1;
@@ -229,11 +229,11 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
229
229
  setup(t, {
230
230
  emit: a
231
231
  }) {
232
- var Pe;
232
+ var me;
233
233
  const {
234
234
  requestCreatePage: n,
235
235
  requestDeletePage: e
236
- } = ue, {
236
+ } = ce, {
237
237
  getDefaultPage: o,
238
238
  pageSettingState: s,
239
239
  changeTreeData: r,
@@ -246,7 +246,7 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
246
246
  initData: h
247
247
  } = se(), {
248
248
  confirm: f
249
- } = oe(), b = Ye(fe.type, fe.id), w = b.components.PageGeneral, B = (Pe = b == null ? void 0 : b.options) == null ? void 0 : Pe.beforeCreatePage, R = K(null), {
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), {
250
250
  PLUGIN_NAME: J,
251
251
  getPluginByLayout: d
252
252
  } = ne(), P = z(() => d(J.AppManage)), l = ee({
@@ -254,7 +254,7 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
254
254
  title: "页面设置",
255
255
  historyMessage: ""
256
256
  }), u = () => {
257
- de(s.currentPageData, s.currentPageDataCopy) ? Q() : f({
257
+ ge(s.currentPageData, s.currentPageDataCopy) ? Q() : f({
258
258
  title: "提示",
259
259
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
260
260
  exec: () => {
@@ -266,20 +266,20 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
266
266
  page_content: k,
267
267
  ...T
268
268
  } = o(), {
269
- page_content: O,
269
+ page_content: B,
270
270
  ...i
271
271
  } = s.currentPageData, _ = {
272
272
  ...T,
273
273
  ...i,
274
274
  page_content: {
275
275
  ...k,
276
- ...O,
276
+ ...B,
277
277
  fileName: s.currentPageData.name
278
278
  },
279
279
  app: G(V.GlobalService).getBaseInfo().id,
280
280
  isPage: !0
281
281
  };
282
- _.id && (delete _.id, delete _._id), B && await B(_), n(_).then((S) => {
282
+ _.id && (delete _.id, delete _._id), O && await O(_), n(_).then((S) => {
283
283
  s.updateTreeData(), s.isNew = !1, I.saved = !1, a("openNewPage", S), Q(), ne().closePlugin(), M({
284
284
  type: "success",
285
285
  message: "新建页面成功!"
@@ -291,7 +291,7 @@ 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, O = !0) => {
294
+ }, F = (k, T, B = !0) => {
295
295
  var L;
296
296
  const i = s.currentPageDataCopy.route !== s.currentPageData.route, _ = ((L = m == null ? void 0 : m.currentPage) == null ? void 0 : L.id) === k;
297
297
  return at({
@@ -299,16 +299,16 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
299
299
  params: T,
300
300
  routerChange: i,
301
301
  isCurEditPage: _,
302
- isUpdateTree: O
302
+ isUpdateTree: B
303
303
  });
304
304
  }, q = (k) => {
305
305
  k.id = k.page, ["page", "backupTime", "backupTitle", "time"].forEach((i) => delete k[i]);
306
- const O = {
306
+ const B = {
307
307
  ...s.currentPageData,
308
308
  ...k,
309
309
  message: "还原页面"
310
310
  };
311
- F(k.id, O).then((i) => {
311
+ F(k.id, B).then((i) => {
312
312
  var _;
313
313
  ((_ = m == null ? void 0 : m.currentPage) == null ? void 0 : _.id) === (i == null ? void 0 : i.id) && h(i.page_content, i);
314
314
  });
@@ -316,11 +316,11 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
316
316
  const {
317
317
  id: k,
318
318
  name: T,
319
- page_content: O
319
+ page_content: B
320
320
  } = s.currentPageData, i = {
321
321
  ...s.currentPageData,
322
322
  page_content: {
323
- ...O,
323
+ ...B,
324
324
  fileName: T
325
325
  }
326
326
  }, _ = await F(k, i);
@@ -334,8 +334,8 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
334
334
  ...k
335
335
  };
336
336
  }, $ = () => {
337
- const k = s.currentPageData, T = pe(!0, {}, k);
338
- s.isNew = !0, T.name = `${T.name}Copy`, T.route = `${T.route}Copy`, s.currentPageData = T, s.currentPageDataCopy = pe(!0, {}, T), s.defaultPage = null;
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;
339
339
  }, te = () => {
340
340
  c() ? $() : f({
341
341
  title: "提示",
@@ -344,13 +344,15 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
344
344
  r(s.oldParentId, s.currentPageData.parentId), Object.assign(s.currentPageData, s.currentPageDataCopy), $();
345
345
  }
346
346
  });
347
- }, me = async () => {
347
+ }, fe = async () => {
348
348
  var T;
349
349
  const k = {
350
350
  ...s.defaultPage,
351
351
  isDefault: !0
352
352
  };
353
- await F((T = s.defaultPage) == null ? void 0 : T.id, k, !1);
353
+ F((T = s.defaultPage) == null ? void 0 : T.id, k, !1).then((B) => {
354
+ B && x();
355
+ });
354
356
  }, Ae = () => {
355
357
  s.isNew ? (s.currentPageData.message = "Page auto save", N()) : f({
356
358
  title: "创建历史备份信息",
@@ -363,7 +365,7 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
363
365
  },
364
366
  exec: () => {
365
367
  var i;
366
- s.currentPageData.message = l.historyMessage.trim() || "Page auto save", (i = s.defaultPage) != null && i.id ? me().then(x) : x(), l.historyMessage = "";
368
+ s.currentPageData.message = l.historyMessage.trim() || "Page auto save", (i = s.defaultPage) != null && i.id ? fe() : x(), l.historyMessage = "";
367
369
  }
368
370
  });
369
371
  }, Ge = () => {
@@ -372,13 +374,13 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
372
374
  if (!Array.isArray(k))
373
375
  return [];
374
376
  const T = [];
375
- return k.forEach((O) => {
377
+ return k.forEach((B) => {
376
378
  var i;
377
- if (O != null && O.isPage) {
378
- T.push(O);
379
+ if (B != null && B.isPage) {
380
+ T.push(B);
379
381
  return;
380
382
  }
381
- !(O != null && O.isPage) && ((i = O == null ? void 0 : O.children) != null && i.length) && T.push(...le(O.children));
383
+ !(B != null && B.isPage) && ((i = B == null ? void 0 : B.children) != null && i.length) && T.push(...le(B.children));
382
384
  }), T;
383
385
  };
384
386
  return {
@@ -405,11 +407,11 @@ const zt = /* @__PURE__ */ Z(Kt, [["render", Xt], ["__scopeId", "data-v-c7b79c9b
405
407
  message: "您是否要删除页面?",
406
408
  exec: () => {
407
409
  var i;
408
- const O = ((i = s.currentPageData) == null ? void 0 : i.id) || "";
409
- e(O).then(() => {
410
+ const B = ((i = s.currentPageData) == null ? void 0 : i.id) || "";
411
+ e(B).then(() => {
410
412
  s.updateTreeData().then((_) => {
411
- var ge, Me;
412
- if (((ge = m == null ? void 0 : m.currentPage) == null ? void 0 : ge.id) !== O)
413
+ var ue, Me;
414
+ if (((ue = m == null ? void 0 : m.currentPage) == null ? void 0 : ue.id) !== B)
413
415
  return;
414
416
  const S = ((Me = (_ || []).find(({
415
417
  groupId: Fe
@@ -455,7 +457,7 @@ function ea(t, a, n, e, o, s) {
455
457
  onClick: e.savePageSetting
456
458
  }, {
457
459
  default: C(() => a[1] || (a[1] = [
458
- ie("保存")
460
+ _e("保存")
459
461
  ])),
460
462
  _: 1
461
463
  }, 8, ["onClick"]),
@@ -548,7 +550,7 @@ function ea(t, a, n, e, o, s) {
548
550
  _: 1
549
551
  }, 8, ["fixed-name", "align", "title"])) : j("", !0);
550
552
  }
551
- const ta = /* @__PURE__ */ Z(Yt, [["render", ea], ["__scopeId", "data-v-9c62533d"]]), Be = K(!1), Ke = () => {
553
+ const ta = /* @__PURE__ */ Z(Yt, [["render", ea], ["__scopeId", "data-v-6f00bed2"]]), Be = K(!1), Ke = () => {
552
554
  Be.value = !0;
553
555
  }, X = () => {
554
556
  Be.value = !1;
@@ -573,8 +575,8 @@ const ta = /* @__PURE__ */ Z(Yt, [["render", ea], ["__scopeId", "data-v-9c62533d
573
575
  const t = ee({
574
576
  activeName: ["folderGeneralRef"],
575
577
  title: "文件夹设置"
576
- }), { requestCreatePage: a, requestUpdatePage: n, requestDeletePage: e } = ue, { pageSettingState: o, changeTreeData: s } = Y(), { confirm: r } = oe(), g = Ye(fe.type, fe.id).components.PageGeneral, I = K(null), { PLUGIN_NAME: y, getPluginByLayout: m } = ne(), h = z(() => m(y.AppManage)), f = () => {
577
- de(o.currentPageData, o.currentPageDataCopy) ? X() : r({
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
580
  title: "提示",
579
581
  message: "您即将使用未保存的更改关闭此页。是否要在关闭之前放弃这些更改?",
580
582
  exec: () => {
@@ -679,7 +681,7 @@ function oa(t, a, n, e, o, s) {
679
681
  onClick: e.saveFolderSetting
680
682
  }, {
681
683
  default: C(() => a[1] || (a[1] = [
682
- ie("保存")
684
+ _e("保存")
683
685
  ])),
684
686
  _: 1
685
687
  }, 8, ["onClick"]),
@@ -761,7 +763,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
761
763
  }
762
764
  },
763
765
  setup(t) {
764
- return (a, n) => (v(!0), U(ce, null, De(t.level - 1, (e) => (v(), U("span", {
766
+ return (a, n) => (v(!0), U(ie, null, De(t.level - 1, (e) => (v(), U("span", {
765
767
  key: e,
766
768
  class: "gap"
767
769
  }, [
@@ -825,10 +827,10 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
825
827
  rawData: l
826
828
  }, $ = [re], te = l[x];
827
829
  if (Array.isArray(te))
828
- for (const me of te)
829
- $.push(...o(me, re.id, N + 1));
830
+ for (const fe of te)
831
+ $.push(...o(fe, re.id, N + 1));
830
832
  return $;
831
- }, 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))), g = (l) => {
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) => {
832
834
  const u = r.value[l];
833
835
  if (!u || !u.parentId)
834
836
  return [];
@@ -859,7 +861,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
859
861
  e("clickRow", l);
860
862
  }, f = K(null), b = K(null), w = (l, u) => {
861
863
  n.draggable && (f.value = u);
862
- }, B = (l, u) => {
864
+ }, O = (l, u) => {
863
865
  if (!n.draggable)
864
866
  return;
865
867
  g(u.id).includes(f.value.id) ? b.value = null : (l.preventDefault(), b.value = u.id);
@@ -885,7 +887,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
885
887
  onDragleave: P,
886
888
  onDrop: u[0] || (u[0] = (F) => R(F, { id: t.rootId }))
887
889
  }, [
888
- (v(!0), U(ce, null, De(I.value, (F, q) => (v(), U("div", {
890
+ (v(!0), U(ie, null, De(I.value, (F, q) => (v(), U("div", {
889
891
  class: he([
890
892
  "row",
891
893
  "border-transparent",
@@ -897,8 +899,8 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
897
899
  key: F.id,
898
900
  draggable: t.draggable ? "true" : void 0,
899
901
  onDragstart: (x) => w(x, F),
900
- onDragover: (x) => B(x, F),
901
- onDragenter: (x) => B(x, F),
902
+ onDragover: (x) => O(x, F),
903
+ onDragenter: (x) => O(x, F),
902
904
  onDrop: (x) => R(x, F),
903
905
  onDragend: J
904
906
  }, [
@@ -926,7 +928,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
926
928
  ], 34);
927
929
  };
928
930
  }
929
- }), ma = /* @__PURE__ */ Z(fa, [["__scopeId", "data-v-8e3037e1"]]), {
931
+ }), ma = /* @__PURE__ */ Z(fa, [["__scopeId", "data-v-44d73ce9"]]), {
930
932
  PAGE_STATUS: Pa
931
933
  } = we, ya = {
932
934
  components: {
@@ -966,7 +968,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
966
968
  } = Y(), {
967
969
  fetchPageDetail: b,
968
970
  requestUpdatePage: w
969
- } = ue, B = () => G(V.GlobalService).getBaseInfo().id, R = ee({
971
+ } = ce, O = () => G(V.GlobalService).getBaseInfo().id, R = ee({
970
972
  pageSearchValue: "",
971
973
  collapseValue: [m, h],
972
974
  currentNodeData: {
@@ -991,7 +993,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
991
993
  P && d(P);
992
994
  });
993
995
  const l = async (i) => await I(i);
994
- r.updateTreeData = async () => await l(B());
996
+ r.updateTreeData = async () => await l(O());
995
997
  const u = (i) => {
996
998
  R.currentNodeData = i, f(i.id).then(() => {
997
999
  Q(), X();
@@ -1018,7 +1020,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1018
1020
  });
1019
1021
  return;
1020
1022
  }
1021
- de(r.currentPageData, r.currentPageDataCopy) ? a("openSettingPanel", _) : n({
1023
+ ge(r.currentPageData, r.currentPageDataCopy) ? a("openSettingPanel", _) : n({
1022
1024
  title: "提示",
1023
1025
  message: `当前页面或文件夹${r.currentPageData.name}尚未保存,是否要继续切换?`,
1024
1026
  exec: () => {
@@ -1071,8 +1073,8 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1071
1073
  var S, L, W;
1072
1074
  (S = i.action) == null || S.call(i, _), (W = (L = q[_.id]) == null ? void 0 : L.doClose) == null || W.call(L);
1073
1075
  }
1074
- })), Ve = (i, _) => i === h ? le.slice(0, 1) : !_.rawData.isPage || _.rawData.group === "public" ? le.filter((S) => S.type !== "settingHome") : le, Pe = (i) => {
1075
- var ge;
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
1078
  const {
1077
1079
  id: _,
1078
1080
  name: S,
@@ -1083,7 +1085,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1083
1085
  ...L,
1084
1086
  fileName: S
1085
1087
  }
1086
- }, be = ((ge = e == null ? void 0 : e.currentPage) == null ? void 0 : ge.id) === _;
1088
+ }, be = ((ue = e == null ? void 0 : e.currentPage) == null ? void 0 : ue.id) === _;
1087
1089
  return at({
1088
1090
  id: _,
1089
1091
  params: W,
@@ -1111,8 +1113,8 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1111
1113
  r.updateTreeData(), r.isNew = !1;
1112
1114
  });
1113
1115
  }, T = (i, _) => {
1114
- de(r.currentPageData, r.currentPageDataCopy) ? (Q(), X(), r.currentPageData.id = i.id, c(_.id, i.parentId), y(), b(i.id).then((S) => {
1115
- S.parentId = _.id, S.isPage ? Pe(S) : k(S);
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);
1116
1118
  }).catch((S) => {
1117
1119
  M({
1118
1120
  type: "error",
@@ -1134,7 +1136,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1134
1136
  l(i);
1135
1137
  }
1136
1138
  });
1137
- const O = (i) => {
1139
+ const B = (i) => {
1138
1140
  i.stopPropagation(), i.preventDefault(), a("add");
1139
1141
  };
1140
1142
  return Le(() => {
@@ -1143,7 +1145,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1143
1145
  subscriber: "page_tree_app_id_changed"
1144
1146
  });
1145
1147
  }), {
1146
- createPublicPage: O,
1148
+ createPublicPage: B,
1147
1149
  state: R,
1148
1150
  switchPage: u,
1149
1151
  pageSettingState: r,
@@ -1163,7 +1165,7 @@ const sa = /* @__PURE__ */ Z(aa, [["render", oa], ["__scopeId", "data-v-21dedc52
1163
1165
  }, va = { class: "operation-list" }, Ca = ["onClick"];
1164
1166
  function ba(t, a, n, e, o, s) {
1165
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");
1166
- return v(), U(ce, null, [
1168
+ return v(), U(ie, null, [
1167
1169
  A("div", _a, [
1168
1170
  p(c, {
1169
1171
  modelValue: e.state.pageSearchValue,
@@ -1183,7 +1185,7 @@ function ba(t, a, n, e, o, s) {
1183
1185
  class: "page-manage-collapse lowcode-scrollbar"
1184
1186
  }, {
1185
1187
  default: C(() => [
1186
- (v(!0), U(ce, null, De(e.pageSettingState.pages, (f, b) => (v(), H(m, {
1188
+ (v(!0), U(ie, null, De(e.pageSettingState.pages, (f, b) => (v(), H(m, {
1187
1189
  key: b,
1188
1190
  name: f.groupId
1189
1191
  }, {
@@ -1216,7 +1218,7 @@ function ba(t, a, n, e, o, s) {
1216
1218
  })) : j("", !0),
1217
1219
  p(I, {
1218
1220
  ref_for: !0,
1219
- ref: (B) => e.setPopoverRef(B, w.id),
1221
+ ref: (O) => e.setPopoverRef(O, w.id),
1220
1222
  placement: "bottom-start",
1221
1223
  "visible-arrow": !1,
1222
1224
  "popper-class": "page-tree-row-operation-list"
@@ -1230,14 +1232,14 @@ function ba(t, a, n, e, o, s) {
1230
1232
  ]),
1231
1233
  default: C(() => [
1232
1234
  A("div", va, [
1233
- (v(!0), U(ce, null, De(e.getRowOperations(f.groupId, w), (B, R) => (v(), U("div", {
1235
+ (v(!0), U(ie, null, De(e.getRowOperations(f.groupId, w), (O, R) => (v(), U("div", {
1234
1236
  key: R,
1235
- class: he([B.type === "divider" ? "divider" : "item"].concat(B.class || [])),
1237
+ class: he([O.type === "divider" ? "divider" : "item"].concat(O.class || [])),
1236
1238
  onClick: (J) => {
1237
1239
  var d;
1238
- return (d = B.action) == null ? void 0 : d.call(B, w);
1240
+ return (d = O.action) == null ? void 0 : d.call(O, w);
1239
1241
  }
1240
- }, ae(B.label), 11, Ca))), 128))
1242
+ }, ae(O.label), 11, Ca))), 128))
1241
1243
  ])
1242
1244
  ]),
1243
1245
  _: 2
@@ -1255,12 +1257,12 @@ function ba(t, a, n, e, o, s) {
1255
1257
  }, 8, ["modelValue"])
1256
1258
  ], 64);
1257
1259
  }
1258
- const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-51086e15"]]), Na = {
1260
+ const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-1e91c8ad"]]), Na = {
1259
1261
  getPageById: async (t) => {
1260
1262
  if (t)
1261
1263
  return Te(t);
1262
1264
  },
1263
- openPageSettingPanel: _e
1265
+ openPageSettingPanel: ye
1264
1266
  }, Ia = {
1265
1267
  components: {
1266
1268
  PageSetting: ta,
@@ -1319,14 +1321,14 @@ const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-51086e15
1319
1321
  } catch (u) {
1320
1322
  throw new Error(u);
1321
1323
  }
1322
- o.currentPageDataCopy = pe(!0, {}, o.currentPageData), f.isFolder = !1, _e();
1324
+ o.currentPageDataCopy = de(!0, {}, o.currentPageData), f.isFolder = !1, ye();
1323
1325
  }, w = (P = m) => {
1324
1326
  Q(), o.isNew = !0, o.currentPageData = {
1325
1327
  parentId: P,
1326
1328
  route: "",
1327
1329
  name: "untitled"
1328
- }, o.currentPageDataCopy = pe(!0, {}, o.currentPageData), f.isFolder = !0, Ke();
1329
- }, B = (P) => {
1330
+ }, o.currentPageDataCopy = de(!0, {}, o.currentPageData), f.isFolder = !0, Ke();
1331
+ }, O = (P) => {
1330
1332
  n({
1331
1333
  title: "提示",
1332
1334
  type: "warning ",
@@ -1351,12 +1353,12 @@ const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-51086e15
1351
1353
  });
1352
1354
  };
1353
1355
  Se(() => {
1354
- r.saved && _e();
1356
+ r.saved && ye();
1355
1357
  });
1356
1358
  const R = async (P) => {
1357
1359
  f.isFolder = !P.isPage, o.isNew = !1;
1358
1360
  const l = P.id !== o.currentPageData.id;
1359
- f.isFolder ? (l && Q(), Ke()) : (l && X(), _e());
1361
+ f.isFolder ? (l && Q(), Ke()) : (l && X(), ye());
1360
1362
  const u = await Te(P == null ? void 0 : P.id);
1361
1363
  c(u);
1362
1364
  };
@@ -1375,7 +1377,7 @@ const Fa = /* @__PURE__ */ Z(ya, [["render", ba], ["__scopeId", "data-v-51086e15
1375
1377
  createNewFolder: w,
1376
1378
  createNewPage: b,
1377
1379
  docsUrl: h,
1378
- settingHome: B
1380
+ settingHome: O
1379
1381
  };
1380
1382
  }
1381
1383
  }, Ea = { class: "plugin-page" };
@@ -1428,7 +1430,7 @@ function wa(t, a, n, e, o, s) {
1428
1430
  }, null, 8, ["isFolder"])
1429
1431
  ]);
1430
1432
  }
1431
- const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f"]]), { ELEMENT_TAG: ka, COMPONENT_NAME: Ba } = we, ye = {
1433
+ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f"]]), { ELEMENT_TAG: ka, COMPONENT_NAME: Ba } = we, Pe = {
1432
1434
  app: "",
1433
1435
  name: "",
1434
1436
  route: "",
@@ -1487,12 +1489,12 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1487
1489
  `) : e;
1488
1490
  }, Ga = () => {
1489
1491
  const t = qe("engine.plugins.materials"), a = qe("engine.plugins.appmanage");
1490
- return !t || !a || !a.pageBaseStyle ? { ...ye } : {
1491
- ...ye,
1492
+ return !t || !a || !a.pageBaseStyle ? { ...Pe } : {
1493
+ ...Pe,
1492
1494
  page_content: {
1493
- ...ye.page_content,
1495
+ ...Pe.page_content,
1494
1496
  props: {
1495
- ...ye.page_content.props,
1497
+ ...Pe.page_content.props,
1496
1498
  className: a.pageBaseStyle.className
1497
1499
  },
1498
1500
  css: Aa(a, t)
@@ -1532,10 +1534,10 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1532
1534
  }
1533
1535
  }
1534
1536
  }, Ma = () => E.currentPageData.page_content || {}, La = (t) => {
1535
- E.currentPageData = t, E.currentPageDataCopy = pe(!0, {}, t), E.oldParentId = t.parentId;
1537
+ E.currentPageData = t, E.currentPageDataCopy = de(!0, {}, t), E.oldParentId = t.parentId;
1536
1538
  }, Ha = () => {
1537
1539
  E.currentPageData = {}, E.currentPageDataCopy = {}, E.oldParentId = null, E.defaultPage = null;
1538
- }, Ua = () => !de(E.currentPageData, E.currentPageDataCopy), Xe = (t) => {
1540
+ }, Ua = () => !ge(E.currentPageData, E.currentPageDataCopy), Xe = (t) => {
1539
1541
  const { ROOT_ID: a } = E, n = { [a]: { id: a } };
1540
1542
  return t.forEach((e) => {
1541
1543
  n[e.id] = e;
@@ -1544,7 +1546,7 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1544
1546
  o && (o.children = o.children || [], o.children.push(e));
1545
1547
  }), n;
1546
1548
  }, Ce = async (t) => {
1547
- const a = await ue.fetchPageList(t || G(V.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Oe, data: [] }, e = { groupName: "公共页面", groupId: rt, data: [] };
1549
+ const a = await ce.fetchPageList(t || G(V.GlobalService).getBaseInfo().id), n = { groupName: "静态页面", groupId: Oe, data: [] }, e = { groupName: "公共页面", groupId: rt, data: [] };
1548
1550
  a.forEach((r) => {
1549
1551
  const c = r.name ? r : { ...r, name: r.folderName, group: "staticPages" }, g = r.meta ? {
1550
1552
  ...r,
@@ -1590,7 +1592,7 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1590
1592
  };
1591
1593
  return;
1592
1594
  }
1593
- return ue.fetchPageDetail(t).then((n) => {
1595
+ return ce.fetchPageDetail(t).then((n) => {
1594
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);
1595
1597
  }).catch(() => {
1596
1598
  M({
@@ -1626,7 +1628,7 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1626
1628
  }, Xa = async (t) => {
1627
1629
  if (!t.page_content)
1628
1630
  try {
1629
- const a = await ue.fetchPageDetail(t.id);
1631
+ const a = await ce.fetchPageDetail(t.id);
1630
1632
  t.page_content = a.page_content;
1631
1633
  } catch (a) {
1632
1634
  throw t.page_content = {}, new Error(a);
@@ -1808,17 +1810,17 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1808
1810
  renderContent: (F, {
1809
1811
  node: q,
1810
1812
  data: x
1811
- }) => p(ce, null, [b(x), p("div", null, [q.label])])
1813
+ }) => p(ie, null, [b(x), p("div", null, [q.label])])
1812
1814
  };
1813
- }), B = K(null);
1815
+ }), O = K(null);
1814
1816
  return {
1815
1817
  pageRules: m,
1816
1818
  folderRules: h,
1817
1819
  pageSettingState: t,
1818
1820
  pageParentId: s,
1819
- generalForm: B,
1821
+ generalForm: O,
1820
1822
  validGeneralForm: () => new Promise((d, P) => {
1821
- B.value.validate((l) => {
1823
+ O.value.validate((l) => {
1822
1824
  l ? d(l) : P(l);
1823
1825
  });
1824
1826
  }),
@@ -1837,11 +1839,11 @@ const Ta = /* @__PURE__ */ Z(Ia, [["render", wa], ["__scopeId", "data-v-7bd6cd0f
1837
1839
  }, on = {
1838
1840
  key: 1,
1839
1841
  class: "route-text"
1840
- }, sn = { class: "text-dim" }, rn = {
1842
+ }, sn = { class: "tip-text-dim" }, rn = {
1841
1843
  key: 0,
1842
- class: "tip default-page"
1843
- }, ln = { class: "text" }, cn = { class: "text-dim" }, un = { class: "text-dim" };
1844
- function gn(t, a, n, e, o, s) {
1844
+ class: "tip"
1845
+ }, ln = { class: "tip-text-dim" }, cn = { class: "tip-text-dim" };
1846
+ function un(t, a, n, e, o, s) {
1845
1847
  const r = D("tiny-radio"), c = D("tiny-form-item"), g = D("tiny-input"), I = D("tiny-select"), y = D("tiny-form");
1846
1848
  return v(), U("div", tn, [
1847
1849
  p(y, {
@@ -1872,7 +1874,7 @@ function gn(t, a, n, e, o, s) {
1872
1874
  label: "staticPages"
1873
1875
  }, {
1874
1876
  default: C(() => a[6] || (a[6] = [
1875
- ie(" 静态页面 ")
1877
+ _e(" 静态页面 ")
1876
1878
  ])),
1877
1879
  _: 1
1878
1880
  }, 8, ["modelValue"]),
@@ -1883,7 +1885,7 @@ function gn(t, a, n, e, o, s) {
1883
1885
  label: "publicPages"
1884
1886
  }, {
1885
1887
  default: C(() => a[7] || (a[7] = [
1886
- ie(" 公共页面 ")
1888
+ _e(" 公共页面 ")
1887
1889
  ])),
1888
1890
  _: 1
1889
1891
  }, 8, ["modelValue"])
@@ -1935,7 +1937,7 @@ function gn(t, a, n, e, o, s) {
1935
1937
  }, null, 8, ["modelValue"]),
1936
1938
  A("div", an, [
1937
1939
  e.pageSettingState.currentPageData.route ? (v(), U("span", on, [
1938
- a[8] || (a[8] = A("span", { class: "text" }, "website.com/", -1)),
1940
+ a[8] || (a[8] = A("span", { class: "tip-text" }, "website.com/", -1)),
1939
1941
  A("span", sn, ae(e.currentRoute), 1)
1940
1942
  ])) : (v(), U("span", nn, "路由将以website.com开头"))
1941
1943
  ])
@@ -1958,12 +1960,10 @@ function gn(t, a, n, e, o, s) {
1958
1960
  onChange: e.changeDefaultPage
1959
1961
  }, null, 8, ["modelValue", "options", "onChange"]),
1960
1962
  e.state.defaultPageId ? (v(), U("div", rn, [
1961
- A("span", ln, [
1962
- a[9] || (a[9] = ie("访问")),
1963
- A("span", cn, "/" + ae(e.currentRoute), 1),
1964
- a[10] || (a[10] = ie("路由,默认跳转")),
1965
- A("span", un, "/" + ae(e.currentRoute) + "/" + ae((f = (h = e.pageSettingState) == null ? void 0 : h.defaultPage) == null ? void 0 : f.route), 1)
1966
- ])
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)
1967
1967
  ])) : j("", !0)
1968
1968
  ];
1969
1969
  }),
@@ -1975,8 +1975,8 @@ function gn(t, a, n, e, o, s) {
1975
1975
  }, 8, ["model", "rules"])
1976
1976
  ]);
1977
1977
  }
1978
- const dn = /* @__PURE__ */ Z(en, [["render", gn], ["__scopeId", "data-v-c387ad80"]]), En = {
1979
- ...fe,
1978
+ const gn = /* @__PURE__ */ Z(en, [["render", un], ["__scopeId", "data-v-875f317e"]]), In = {
1979
+ ...pe,
1980
1980
  apis: Na,
1981
1981
  entry: Ta,
1982
1982
  options: {
@@ -1986,11 +1986,11 @@ const dn = /* @__PURE__ */ Z(en, [["render", gn], ["__scopeId", "data-v-c387ad80
1986
1986
  }
1987
1987
  },
1988
1988
  components: {
1989
- PageGeneral: dn
1989
+ PageGeneral: gn
1990
1990
  },
1991
1991
  metas: [$a]
1992
1992
  };
1993
1993
  export {
1994
1994
  $a as PageService,
1995
- En as default
1995
+ In as default
1996
1996
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .input-or-output[data-v-c7b79c9b]{color:var(--te-page-manage-input-or-output-text-color)}.input-or-output .life-cycle-alert[data-v-c7b79c9b]{color:var(--te-page-manage-life-cycle-alert-text-color);height:28px;padding:6px;border:0;font-size:11px;margin-bottom:12px}.input-or-output .life-cycle-alert[data-v-c7b79c9b] .tiny-alert__close{top:7px}.input-or-output .input-output-tips[data-v-c7b79c9b],.input-or-output .input-output-div[data-v-c7b79c9b]{color:var(--te-page-manage-life-cycle-alert-text-color);margin-top:4px;height:16px;line-height:16px}.input-or-output .input-output-tips[data-v-c7b79c9b]{margin-bottom:12px}.input-or-output .selectHome[data-v-c7b79c9b]{margin-top:12px}.input-or-output .edit-btn-icon[data-v-c7b79c9b]{color:var(--te-page-manage-icon-color);margin-right:6px}.input-or-output[data-v-c7b79c9b] .edit-btn{flex:none;display:flex;align-items:center}.block-add-content[data-v-9c62533d]{display:flex;flex-direction:column;height:calc(100% - 45px)}.page-plugin-setting[data-v-9c62533d] .plugin-setting-header{border:0}.page-plugin-setting[data-v-9c62533d] .plugin-setting-content{padding:0 0 16px}.page-plugin-setting[data-v-9c62533d] .tiny-collapse{border-bottom:0}.page-setting-collapse[data-v-9c62533d] .tiny-collapse-item__header:before,.page-setting-collapse[data-v-9c62533d] .tiny-collapse-item__header.is-active:before{border:none}.page-setting-collapse[data-v-9c62533d] .tiny-collapse-item__header .svg-icon{margin-right:6px}.page-setting-collapse[data-v-9c62533d] .tiny-collapse-item__content{padding:0 12px 12px}.pageFolder-plugin-setting[data-v-21dedc52] .plugin-setting-header{border:0}.pageFolder-plugin-setting[data-v-21dedc52] .plugin-setting-content{padding:0 0 16px}.pageFolder-plugin-setting[data-v-21dedc52] .tiny-collapse{border-bottom:0}.gap[data-v-fe0c65d9]{width:24px;height:24px}.draggable-tree[data-v-8e3037e1]{padding:6px 0}.draggable-tree .row[data-v-8e3037e1]{height:24px;padding:0 12px;margin:0 -1px;display:flex;align-items:center}.draggable-tree .row[data-v-8e3037e1],.draggable-tree .row[data-v-8e3037e1] *{cursor:pointer}.draggable-tree .row[data-v-8e3037e1]:hover{background-color:var(--te-page-manage-draggable-row-bg-color-hover)}.draggable-tree .row .content[data-v-8e3037e1]{flex:1;display:flex;align-items:center;overflow:hidden}.draggable-tree .row label[data-v-8e3037e1]{flex:1;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.draggable-tree .row .prefix-icon[data-v-8e3037e1]{display:flex;align-items:center;margin-right:8px}.draggable-tree .row .prefix-icon svg[data-v-8e3037e1]{color:var(--te-page-manage-draggable-icon-color)}.draggable-tree .row.active[data-v-8e3037e1]{background-color:var(--te-page-manage-draggable-row-bg-color-hover);color:var(--te-page-manage-draggable-text-color)}.draggable-tree .row.active svg[data-v-8e3037e1]{color:var(--te-page-manage-draggable-icon-color)}.border-transparent[data-v-8e3037e1]{border:1px solid transparent}.hover-border-color[data-v-8e3037e1]{border-color:var(--te-page-manage-draggable-border-color);overflow:hidden}.app-manage-search[data-v-51086e15]{padding:0 12px 12px}.page-manage-collapse[data-v-51086e15]{height:calc(100% - 95px);overflow-y:auto}.page-manage-collapse .app-manage-public-page[data-v-51086e15]{position:absolute;right:0;cursor:pointer}.page-manage-collapse .app-manage-public-page svg[data-v-51086e15]{font-size:22px}.page-manage-collapse[data-v-51086e15] .tiny-collapse-item__header:before,.page-manage-collapse[data-v-51086e15] .tiny-collapse-item__header.is-active:before{border:none}.page-manage-collapse[data-v-51086e15] .tiny-collapse-item{border-left:0;border-right:0}.page-manage-collapse[data-v-51086e15] .tiny-collapse-item__content{padding:0 0 12px}.page-manage-collapse.page-manage-collapse[data-v-51086e15] .tiny-collapse-item__content{padding-top:0}.app-manage-tree .actions[data-v-51086e15]{display:flex;align-items:center}.app-manage-tree .actions svg[data-v-51086e15]{color:var(--te-page-manage-icon-color);outline:none}.app-manage-tree .actions .auto-hidden[data-v-51086e15]{display:none}.app-manage-tree .row:hover .actions .auto-hidden[data-v-51086e15]{display:unset}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list{padding:0;margin-top:4px}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list{min-width:110px;padding:8px 0}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list>div{padding:0 12px}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .item{height:24px;font-size:12px;line-height:18px;cursor:pointer;display:flex;align-items:center}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .item:hover{background-color:var(--te-page-manage-operation-list-item-bg-color-hover)}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .divider{height:8px;display:flex;align-items:center}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .divider:after{content:"";display:block;width:100%;height:1px;background-color:var(--te-page-manage-operation-list-item-border-color-divider)}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .danger{color:var(--te-page-manage-operation-list-text-color-error)}[data-v-7bd6cd0f] .tiny-button{border-radius:4px;height:24px;line-height:24px}.plugin-page[data-v-7bd6cd0f]{height:100%}.general-config .general-config-form .input-head[data-v-c387ad80]{color:var(--te-page-manage-input-head-text-color)}.general-config .general-config-form[data-v-c387ad80] .tiny-form-item{margin-bottom:16px}.general-config .general-config-form[data-v-c387ad80] .tiny-form-item .tiny-input-group__prepend{border:1px solid var(--te-page-manage-input-border-color);background:var(--te-page-manage-input-bg-color)}.general-config .general-config-form[data-v-c387ad80] .tiny-form-item .page-type-radio{color:var(--te-page-manage-title-text-color)}.general-config .general-config-form[data-v-c387ad80] .tiny-form-item .tiny-form-item__label{height:24px;line-height:18px;font-size:12px;color:var(--te-page-manage-text-color)}.general-config .tip[data-v-c387ad80]{color:var(--te-page-manage-tip-color);font-size:12px;border-radius:3px;display:flex;align-items:center;height:16px;margin-top:4px}.general-config .tip .text[data-v-c387ad80]{color:var(--te-page-manage-tip-text-color)}.general-config .tip .text-dim[data-v-c387ad80]{color:var(--te-page-manage-tip-dim-text-color)}.general-config .default-page[data-v-c387ad80]{height:auto;line-height:16px}.tiny-select-dropdown.parent-fold-select-dropdown{padding:8px 0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content{padding:0;background-color:var(--te-page-manage-tree-node-bg-color)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content:hover{background-color:var(--te-page-manage-tree-node-bg-color-hover)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left:hover,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box:hover{background-color:unset}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left{padding:0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tree-node-icon{margin:0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box{padding:0 12px}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box svg{margin-right:8px}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__label{font-size:12px}.plugin-page{--te-page-manage-title-text-color: var(--te-common-text-primary);--te-page-manage-input-bg-color: var(--te-common-bg-default);--te-page-manage-input-border-color: var(--te-common-border-default);--te-page-manage-tip-color: var(--te-common-text-primary);--te-page-manage-tip-text-color: var(--te-common-text-weaken);--te-page-manage-tip-dim-text-color: var(--te-common-text-primary);--te-page-manage-tree-text-bg-color: var(--te-common-bg-default);--te-page-manage-tree-node-bg-color: var(--te-common-bg-default);--te-page-manage-tree-node-bg-color-hover: var(--te-common-bg-container);--te-page-manage-text-color: var(--te-common-text-secondary);--te-page-manage-input-head-text-color: var(--te-common-text-primary);--te-page-manage-input-or-output-text-color: var(--te-common-text-secondary);--te-page-manage-life-cycle-alert-text-color: var(--te-common-text-weaken);--te-page-manage-icon-color: var(--te-common-icon-secondary);--te-page-manage-operation-list-item-bg-color-hover: var(--te-common-bg-container);--te-page-manage-operation-list-item-border-color-divider: var(--te-common-border-divider);--te-page-manage-operation-list-text-color-error: var(--te-common-color-error);--te-page-manage-draggable-row-bg-color-hover: var(--te-common-bg-container);--te-page-manage-draggable-text-color: var(--te-common-text-primary);--te-page-manage-draggable-icon-color: var(--te-common-icon-secondary);--te-page-manage-draggable-border-color: var(--te-common-border-checked)}
1
+ .input-or-output[data-v-c7b79c9b]{color:var(--te-page-manage-input-or-output-text-color)}.input-or-output .life-cycle-alert[data-v-c7b79c9b]{color:var(--te-page-manage-life-cycle-alert-text-color);height:28px;padding:6px;border:0;font-size:11px;margin-bottom:12px}.input-or-output .life-cycle-alert[data-v-c7b79c9b] .tiny-alert__close{top:7px}.input-or-output .input-output-tips[data-v-c7b79c9b],.input-or-output .input-output-div[data-v-c7b79c9b]{color:var(--te-page-manage-life-cycle-alert-text-color);margin-top:4px;height:16px;line-height:16px}.input-or-output .input-output-tips[data-v-c7b79c9b]{margin-bottom:12px}.input-or-output .selectHome[data-v-c7b79c9b]{margin-top:12px}.input-or-output .edit-btn-icon[data-v-c7b79c9b]{color:var(--te-page-manage-icon-color);margin-right:6px}.input-or-output[data-v-c7b79c9b] .edit-btn{flex:none;display:flex;align-items:center}.block-add-content[data-v-6f00bed2]{display:flex;flex-direction:column;height:calc(100% - 45px)}.page-plugin-setting[data-v-6f00bed2] .plugin-setting-header{border:0}.page-plugin-setting[data-v-6f00bed2] .plugin-setting-content{padding:0 0 16px}.page-plugin-setting[data-v-6f00bed2] .tiny-collapse{border-bottom:0}.page-setting-collapse[data-v-6f00bed2] .tiny-collapse-item__header:before,.page-setting-collapse[data-v-6f00bed2] .tiny-collapse-item__header.is-active:before{border:none}.page-setting-collapse[data-v-6f00bed2] .tiny-collapse-item__header .svg-icon{margin-right:6px}.page-setting-collapse[data-v-6f00bed2] .tiny-collapse-item__content{padding:0 12px 12px}.pageFolder-plugin-setting[data-v-21dedc52] .plugin-setting-header{border:0}.pageFolder-plugin-setting[data-v-21dedc52] .plugin-setting-content{padding:0 0 16px}.pageFolder-plugin-setting[data-v-21dedc52] .tiny-collapse{border-bottom:0}.gap[data-v-fe0c65d9]{width:24px;height:24px}.draggable-tree[data-v-44d73ce9]{padding:6px 0}.draggable-tree .row[data-v-44d73ce9]{height:24px;padding:0 12px;margin:0 -1px;display:flex;align-items:center}.draggable-tree .row[data-v-44d73ce9],.draggable-tree .row[data-v-44d73ce9] *{cursor:pointer}.draggable-tree .row[data-v-44d73ce9]:hover{background-color:var(--te-page-manage-draggable-row-bg-color-hover)}.draggable-tree .row .content[data-v-44d73ce9]{flex:1;display:flex;align-items:center;overflow:hidden}.draggable-tree .row label[data-v-44d73ce9]{flex:1;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.draggable-tree .row .prefix-icon[data-v-44d73ce9]{display:flex;align-items:center;margin-right:8px}.draggable-tree .row .prefix-icon svg[data-v-44d73ce9]{color:var(--te-page-manage-draggable-icon-color)}.draggable-tree .row.active[data-v-44d73ce9]{background-color:var(--te-page-manage-draggable-row-bg-color-hover);color:var(--te-page-manage-draggable-text-color)}.draggable-tree .row.active svg[data-v-44d73ce9]{color:var(--te-page-manage-draggable-icon-color)}.border-transparent[data-v-44d73ce9]{border:1px solid transparent}.hover-border-color[data-v-44d73ce9]{border-color:var(--te-page-manage-draggable-border-color);overflow:hidden}.app-manage-search[data-v-1e91c8ad]{padding:0 12px 12px}.page-manage-collapse[data-v-1e91c8ad]{height:calc(100% - 95px);overflow-y:auto}.page-manage-collapse .app-manage-public-page[data-v-1e91c8ad]{position:absolute;right:0;cursor:pointer}.page-manage-collapse .app-manage-public-page svg[data-v-1e91c8ad]{font-size:22px}.page-manage-collapse[data-v-1e91c8ad] .tiny-collapse-item__header:before,.page-manage-collapse[data-v-1e91c8ad] .tiny-collapse-item__header.is-active:before{border:none}.page-manage-collapse[data-v-1e91c8ad] .tiny-collapse-item{border-left:0;border-right:0}.page-manage-collapse[data-v-1e91c8ad] .tiny-collapse-item__content{padding:0 0 12px}.page-manage-collapse.page-manage-collapse[data-v-1e91c8ad] .tiny-collapse-item__content{padding-top:0}.app-manage-tree .actions[data-v-1e91c8ad]{display:flex;align-items:center}.app-manage-tree .actions svg[data-v-1e91c8ad]{color:var(--te-page-manage-icon-color);outline:none}.app-manage-tree .actions .auto-hidden[data-v-1e91c8ad]{display:none}.app-manage-tree .row:hover .actions .auto-hidden[data-v-1e91c8ad]{display:unset}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list{padding:0;margin-top:4px}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list{min-width:110px;padding:8px 0}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list>div{padding:0 12px}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .item{height:24px;font-size:12px;line-height:18px;cursor:pointer;display:flex;align-items:center}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .item:hover{background-color:var(--te-page-manage-operation-list-item-bg-color-hover)}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .divider{height:8px;display:flex;align-items:center}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .divider:after{content:"";display:block;width:100%;height:1px;background-color:var(--te-page-manage-operation-list-item-border-color-divider)}.tiny-popover.tiny-popper[x-placement].page-tree-row-operation-list .operation-list .danger{color:var(--te-page-manage-operation-list-text-color-error)}[data-v-7bd6cd0f] .tiny-button{border-radius:4px;height:24px;line-height:24px}.plugin-page[data-v-7bd6cd0f]{height:100%}.general-config .general-config-form .input-head[data-v-875f317e]{color:var(--te-page-manage-input-head-text-color)}.general-config .general-config-form[data-v-875f317e] .tiny-form-item{margin-bottom:16px}.general-config .general-config-form[data-v-875f317e] .tiny-form-item .tiny-input-group__prepend{border:1px solid var(--te-page-manage-input-border-color);background:var(--te-page-manage-input-bg-color)}.general-config .general-config-form[data-v-875f317e] .tiny-form-item .page-type-radio{color:var(--te-page-manage-title-text-color)}.general-config .general-config-form[data-v-875f317e] .tiny-form-item .tiny-form-item__label{height:24px;line-height:18px;font-size:12px;color:var(--te-page-manage-text-color)}.general-config .tip[data-v-875f317e]{color:var(--te-page-manage-tip-color);font-size:12px;border-radius:3px;margin-top:4px;width:100%;word-wrap:break-word;height:auto;line-height:16px}.general-config .tip .tip-text[data-v-875f317e]{width:100%;color:var(--te-page-manage-tip-text-color)}.general-config .tip .tip-text-dim[data-v-875f317e]{color:var(--te-page-manage-tip-dim-text-color)}.tiny-select-dropdown.parent-fold-select-dropdown{padding:8px 0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content{padding:0;background-color:var(--te-page-manage-tree-node-bg-color)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content:hover{background-color:var(--te-page-manage-tree-node-bg-color-hover)}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left:hover,.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box:hover{background-color:unset}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left{padding:0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tree-node-icon{margin:0}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box{padding:0 12px}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__content-box svg{margin-right:8px}.tiny-select-dropdown.parent-fold-select-dropdown .tiny-tree .tiny-tree-node .tiny-tree-node__content .tiny-tree-node__content-left .tiny-tree-node__label{font-size:12px}.plugin-page{--te-page-manage-title-text-color: var(--te-common-text-primary);--te-page-manage-input-bg-color: var(--te-common-bg-default);--te-page-manage-input-border-color: var(--te-common-border-default);--te-page-manage-tip-color: var(--te-common-text-primary);--te-page-manage-tip-text-color: var(--te-common-text-weaken);--te-page-manage-tip-dim-text-color: var(--te-common-text-primary);--te-page-manage-tree-text-bg-color: var(--te-common-bg-default);--te-page-manage-tree-node-bg-color: var(--te-common-bg-default);--te-page-manage-tree-node-bg-color-hover: var(--te-common-bg-container);--te-page-manage-text-color: var(--te-common-text-secondary);--te-page-manage-input-head-text-color: var(--te-common-text-primary);--te-page-manage-input-or-output-text-color: var(--te-common-text-secondary);--te-page-manage-life-cycle-alert-text-color: var(--te-common-text-weaken);--te-page-manage-icon-color: var(--te-common-icon-secondary);--te-page-manage-operation-list-item-bg-color-hover: var(--te-common-bg-container);--te-page-manage-operation-list-item-border-color-divider: var(--te-common-border-divider);--te-page-manage-operation-list-text-color-error: var(--te-common-color-error);--te-page-manage-draggable-row-bg-color-hover: var(--te-common-bg-container);--te-page-manage-draggable-text-color: var(--te-common-text-primary);--te-page-manage-draggable-icon-color: var(--te-common-icon-secondary);--te-page-manage-draggable-border-color: var(--te-common-border-checked)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-page",
3
- "version": "2.4.0-rc.0",
3
+ "version": "2.4.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.4.0-rc.0",
29
- "@opentiny/tiny-engine-meta-register": "2.4.0-rc.0",
30
- "@opentiny/tiny-engine-utils": "2.4.0-rc.0"
28
+ "@opentiny/tiny-engine-common": "2.4.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.4.0",
30
+ "@opentiny/tiny-engine-utils": "2.4.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0-rc.0",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -41,5 +41,5 @@
41
41
  "@opentiny/vue-renderless": "^3.20.0",
42
42
  "vue": "^3.4.15"
43
43
  },
44
- "gitHead": "40df6ee51c80bf918c176f7e8ad97b6b687ddc7b"
44
+ "gitHead": "477aa411da11a4f95712e3e5c251d97cae23f4ad"
45
45
  }