react-big-screen 0.0.24 → 0.0.25
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/es/{attributes-DRRt0HtT.mjs → attributes-B-HnT330.mjs} +1 -1
- package/es/{attributes-BNGJPVyh.mjs → attributes-BU4RteR4.mjs} +1 -1
- package/es/{attributes-DEejGpyc.mjs → attributes-BVf57pkp.mjs} +1 -1
- package/es/{attributes-CH9MBgiG.mjs → attributes-BbimeCWH.mjs} +1 -1
- package/es/{attributes-CUgbOLAh.mjs → attributes-BpbbmYhM.mjs} +1 -1
- package/es/{attributes-CJsbMpOn.mjs → attributes-CMthjycV.mjs} +1 -1
- package/es/{attributes-CfPeTY5D.mjs → attributes-CRXnxBzA.mjs} +2 -2
- package/es/{attributes-RjWkk9Ep.mjs → attributes-CT0FOCY5.mjs} +1 -1
- package/es/{attributes-DRoIzLZg.mjs → attributes-CtQvGbYt.mjs} +1 -1
- package/es/{attributes-2p9Zk1-n.mjs → attributes-DsE3dkzP.mjs} +1 -1
- package/es/{attributes-8wJNGwLE.mjs → attributes-Dz98d9lm.mjs} +1 -1
- package/es/{attributes-CdSoE5xJ.mjs → attributes-aebdh3-2.mjs} +1 -1
- package/es/{index-BaLteAvQ.mjs → index-BJWDg_cD.mjs} +2 -2
- package/es/{index-Df0DLqCw.mjs → index-BTio6V_c.mjs} +2 -2
- package/es/{index-B0NWyl8u.mjs → index-BlOuO44L.mjs} +2 -2
- package/es/{index-BeTrQloT.mjs → index-BoLXnAtC.mjs} +3 -3
- package/es/{index-CV1vqX8-.mjs → index-BuyncOQP.mjs} +2 -2
- package/es/{index-CQp7fz9I.mjs → index-By-60WbF.mjs} +2 -2
- package/es/{index-BjMdtwev.mjs → index-ByNVYAww.mjs} +2 -2
- package/es/{index-Dbkk-b9S.mjs → index-BydqrGsF.mjs} +92 -89
- package/es/{index-Bn3nDy5T.mjs → index-C1IN4HrE.mjs} +2 -2
- package/es/{index-Bh0co1x-.mjs → index-CCU-VzDv.mjs} +1 -1
- package/es/{index-ByVgagvo.mjs → index-CFg0WKFQ.mjs} +715 -704
- package/es/{index-DHZzVkTM.mjs → index-CIspZGHv.mjs} +2 -2
- package/es/{index-C9Wc2Kzs.mjs → index-COVxsHS9.mjs} +3 -3
- package/es/{index-DGJ8dCRu.mjs → index-CVCPzSmu.mjs} +2 -2
- package/es/{index-DHoxa3x_.mjs → index-CW1RuHQK.mjs} +3 -3
- package/es/{index-BOqgdslU.mjs → index-ChS976cJ.mjs} +2 -2
- package/es/{index-D9YQ4kEQ.mjs → index-D7TCGxYg.mjs} +2 -2
- package/es/{index-CnzZjrjU.mjs → index-D8iQUy0r.mjs} +2 -2
- package/es/{index-DiAdz_6L.mjs → index-DC_DhKaS.mjs} +3 -3
- package/es/{index-CR_TAWUR.mjs → index-DW5eZVLq.mjs} +2 -2
- package/es/{index-D66jJN7b.mjs → index-GzFjRCz_.mjs} +1 -1
- package/es/{index-4S2OXFT4.mjs → index-V6j7Zu7r.mjs} +2 -2
- package/es/{index-DUvmwvc8.mjs → index-gBfOXBIy.mjs} +2 -2
- package/es/{index-Bely-J50.mjs → index-oK1Pyk5T.mjs} +2 -2
- package/es/{index-COuWSAwb.mjs → index-qyKdx0SV.mjs} +2 -2
- package/es/{index-CS4fwJHw.mjs → index-sSfWkA8B.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-BQ7Fdnqf.mjs → selectPage-BdrK7e7G.mjs} +1 -1
- package/es/{useCurrentPageId-6JCOgaZV.mjs → useCurrentPageId-CPdhqp51.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/index.d.ts +2 -2
- package/types/src/pages/components/Header/index.d.ts +9 -0
|
@@ -2,21 +2,21 @@ var yn = Object.defineProperty;
|
|
|
2
2
|
var vn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ee = (e, t, n) => vn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as l, jsxs as g, Fragment as W } from "react/jsx-runtime";
|
|
5
|
-
import Tt, { useRef as
|
|
5
|
+
import Tt, { useRef as j, useEffect as E, useMemo as L, useState as S, forwardRef as bn, useImperativeHandle as Cn, Suspense as zt, createContext as xn, useContext as In } from "react";
|
|
6
6
|
import { DownOutlined as kn, ReloadOutlined as Z, CloseOutlined as Sn, ArrowUpOutlined as et, ArrowRightOutlined as Nn, ArrowDownOutlined as tt, ArrowLeftOutlined as wn, QuestionCircleOutlined as En, UploadOutlined as An, VerticalAlignBottomOutlined as $t, ClearOutlined as Rt, TranslationOutlined as Ln, SaveOutlined as Q, GithubFilled as Dn, LockOutlined as Ft, EyeOutlined as On, EyeInvisibleOutlined as Pn, RightOutlined as Bn, VerticalAlignTopOutlined as Mn, UnlockOutlined as jn, BlockOutlined as Tn, DisconnectOutlined as zn, CopyOutlined as $n, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Rn, BorderBottomOutlined as Fn, DownloadOutlined as Hn, LoadingOutlined as Ht, EditOutlined as Kt, BarsOutlined as Kn, FileOutlined as Un, AppstoreOutlined as qn, FileTextOutlined as Jn, ApartmentOutlined as Wn, BankOutlined as Vn, HistoryOutlined as Gn, PlusOutlined as rt, RedoOutlined as Xn, SettingOutlined as Yn } from "@ant-design/icons";
|
|
7
|
-
import { message as
|
|
8
|
-
import
|
|
9
|
-
import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as qt, f as ht, g as it, l as Te, h as It, i as oi, j as kt, I as ze, k as di, m as ri } from "./index-
|
|
7
|
+
import { message as A, Tooltip as $, InputNumber as le, Popover as st, Slider as Zn, Space as D, Dropdown as be, Button as K, Input as Qn, Collapse as Ct, Form as M, Modal as re, Descriptions as je, Tree as pn, Row as nt, Col as H, Checkbox as we, Switch as Ut, Tabs as ei, Empty as xt } from "antd";
|
|
8
|
+
import R from "classnames";
|
|
9
|
+
import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as qt, f as ht, g as it, l as Te, h as It, i as oi, j as kt, I as ze, k as di, m as ri } from "./index-BydqrGsF.mjs";
|
|
10
10
|
import "localforage";
|
|
11
11
|
import { createPortal as si } from "react-dom";
|
|
12
12
|
import { createRoot as Jt } from "react-dom/client";
|
|
13
13
|
import "driver.js";
|
|
14
14
|
import "driver.js/dist/driver.css";
|
|
15
15
|
import { cloneDeep as Wt, debounce as ui, groupBy as hi, throttle as Vt } from "lodash-es";
|
|
16
|
-
import { u as Ee, i as Ae, a as gt, b as Gt, c as Xt, g as ae, d as gi, e as _i, f as mi, h as fi, j as Yt, s as St, P as yi, k as vi, l as bi } from "./index-
|
|
16
|
+
import { u as Ee, i as Ae, a as gt, b as Gt, c as Xt, g as ae, d as gi, e as _i, f as mi, h as fi, j as Yt, s as St, P as yi, k as vi, l as bi } from "./index-D8iQUy0r.mjs";
|
|
17
17
|
import { useUpdateEffect as _t, useUnmount as Zt, useRequest as Qt } from "ahooks";
|
|
18
18
|
import "react-color";
|
|
19
|
-
import { I as p, L as Le, a as
|
|
19
|
+
import { I as p, L as Le, a as z, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
|
|
20
20
|
import { I as mt, a as xi } from "./IInputNumber-CEotcbKL.mjs";
|
|
21
21
|
import { useTranslation as se } from "react-i18next";
|
|
22
22
|
import lt from "hotkeys-js";
|
|
@@ -30,16 +30,16 @@ import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
|
|
|
30
30
|
import ft from "jszip";
|
|
31
31
|
import { saveAs as pt } from "file-saver";
|
|
32
32
|
import { u as en } from "./useEffectOnce-l5sUTCBG.mjs";
|
|
33
|
-
import { u as wi, s as Re } from "./selectPage-
|
|
34
|
-
import { u as Ei } from "./useCurrentPageId-
|
|
33
|
+
import { u as wi, s as Re } from "./selectPage-BdrK7e7G.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-CPdhqp51.mjs";
|
|
35
35
|
import { u as tn } from "./useListenRef-B01dENv0.mjs";
|
|
36
|
-
import { I as Ce } from "./index-
|
|
36
|
+
import { I as Ce } from "./index-CCU-VzDv.mjs";
|
|
37
37
|
async function nn(e) {
|
|
38
38
|
return new Promise((t) => {
|
|
39
39
|
let n = document.createElement("input");
|
|
40
40
|
n.type = "file", e != null && e.accept && (n.accept = e.accept), n.onchange = (i) => {
|
|
41
|
-
var
|
|
42
|
-
const c = (d = (
|
|
41
|
+
var o, d;
|
|
42
|
+
const c = (d = (o = i.target) == null ? void 0 : o.files) == null ? void 0 : d[0];
|
|
43
43
|
if (!c)
|
|
44
44
|
return console.warn("file must be selected."), t(void 0);
|
|
45
45
|
t(c);
|
|
@@ -60,12 +60,12 @@ async function ln(e) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
function ct(e, t, n) {
|
|
63
|
-
var c,
|
|
63
|
+
var c, o;
|
|
64
64
|
let i = (c = e == null ? void 0 : e.dataset) == null ? void 0 : c[t];
|
|
65
65
|
if (!n)
|
|
66
66
|
return i;
|
|
67
67
|
for (; i == null && e; )
|
|
68
|
-
e = e.parentElement, i = (
|
|
68
|
+
e = e.parentElement, i = (o = e == null ? void 0 : e.dataset) == null ? void 0 : o[t];
|
|
69
69
|
return i;
|
|
70
70
|
}
|
|
71
71
|
function Li(e) {
|
|
@@ -74,21 +74,21 @@ function Li(e) {
|
|
|
74
74
|
if (!t) return [];
|
|
75
75
|
const n = (i = t.component.getPackage(e)) == null ? void 0 : i.components;
|
|
76
76
|
return t.componentNode.getAll().filter((c) => {
|
|
77
|
-
var
|
|
78
|
-
return (
|
|
77
|
+
var o;
|
|
78
|
+
return (o = n == null ? void 0 : n.find) == null ? void 0 : o.call(n, (d) => d.cId === c.cId);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
function Di(e, t) {
|
|
82
|
-
const n =
|
|
83
|
-
return c.current = t,
|
|
82
|
+
const n = j(), i = j(null), c = j(), { engine: o } = N();
|
|
83
|
+
return c.current = t, E(() => () => {
|
|
84
84
|
var d;
|
|
85
85
|
(d = n.current) == null || d.call(n);
|
|
86
|
-
}, []),
|
|
86
|
+
}, []), L(() => {
|
|
87
87
|
let d = document.createElement("div");
|
|
88
88
|
document.body.appendChild(d);
|
|
89
|
-
let
|
|
90
|
-
return
|
|
91
|
-
/* @__PURE__ */ l(ti.Provider, { value: { engine:
|
|
89
|
+
let a = Jt(d);
|
|
90
|
+
return a.render(
|
|
91
|
+
/* @__PURE__ */ l(ti.Provider, { value: { engine: o }, children: /* @__PURE__ */ l(
|
|
92
92
|
ni,
|
|
93
93
|
{
|
|
94
94
|
ref: i,
|
|
@@ -104,7 +104,7 @@ function Di(e, t) {
|
|
|
104
104
|
}
|
|
105
105
|
) })
|
|
106
106
|
), n.current = () => {
|
|
107
|
-
d && (
|
|
107
|
+
d && (a.unmount(), d.remove(), d = void 0);
|
|
108
108
|
}, {
|
|
109
109
|
open(s) {
|
|
110
110
|
var r, h;
|
|
@@ -124,13 +124,13 @@ function ue(e) {
|
|
|
124
124
|
}
|
|
125
125
|
function Oi() {
|
|
126
126
|
const e = ii((t) => t.componentMap);
|
|
127
|
-
return
|
|
127
|
+
return L(() => e ? Object.values(e) : [], [e]);
|
|
128
128
|
}
|
|
129
129
|
function yt() {
|
|
130
130
|
const { engine: e } = N(), [t, n] = S(() => e.instance.getAllSelected());
|
|
131
|
-
return
|
|
131
|
+
return E(() => e.instance.onSelectedChange((i) => {
|
|
132
132
|
const c = Object.values(i);
|
|
133
|
-
n((
|
|
133
|
+
n((o) => !c.length && !o.length ? o : c);
|
|
134
134
|
}), []), t;
|
|
135
135
|
}
|
|
136
136
|
function Pi() {
|
|
@@ -141,7 +141,7 @@ function Pi() {
|
|
|
141
141
|
}
|
|
142
142
|
function cn() {
|
|
143
143
|
const { engine: e } = N(), [t, n] = S(() => e.history.getHistoryData());
|
|
144
|
-
return
|
|
144
|
+
return E(() => {
|
|
145
145
|
e.history.onChange((i) => {
|
|
146
146
|
n(i);
|
|
147
147
|
});
|
|
@@ -181,7 +181,7 @@ function ji(e) {
|
|
|
181
181
|
}), () => t.forEach((n) => n());
|
|
182
182
|
}
|
|
183
183
|
function Ti(e) {
|
|
184
|
-
|
|
184
|
+
E(() => ji(e), []);
|
|
185
185
|
}
|
|
186
186
|
function at() {
|
|
187
187
|
const e = k.getActiveEngine();
|
|
@@ -230,9 +230,9 @@ function Fi() {
|
|
|
230
230
|
function on() {
|
|
231
231
|
const e = k.getActiveEngine();
|
|
232
232
|
if (!e) return;
|
|
233
|
-
const t = Oe(), n = new Set(e.instance.getAllSelected().map((
|
|
234
|
-
onClone(
|
|
235
|
-
n.has(
|
|
233
|
+
const t = Oe(), n = new Set(e.instance.getAllSelected().map((o) => o.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
|
|
234
|
+
onClone(o, d) {
|
|
235
|
+
n.has(o.id) && (n.delete(o.id), i.push(d.id)), d.x += 10, d.y += 10;
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
e.componentNode.add(c), setTimeout(() => {
|
|
@@ -248,7 +248,7 @@ function vt(e) {
|
|
|
248
248
|
const t = k.getActiveEngine();
|
|
249
249
|
t && (t.getJSON().then((n) => {
|
|
250
250
|
localStorage.setItem("json", JSON.stringify(n));
|
|
251
|
-
}),
|
|
251
|
+
}), A.success("保存成功"));
|
|
252
252
|
}
|
|
253
253
|
function De() {
|
|
254
254
|
const e = k.getActiveEngine();
|
|
@@ -289,8 +289,8 @@ function Ji() {
|
|
|
289
289
|
if (!e) return;
|
|
290
290
|
const t = e.instance.getAllSelected(), n = Array.from(
|
|
291
291
|
t.reduce((i, c) => {
|
|
292
|
-
const
|
|
293
|
-
return
|
|
292
|
+
const o = c.getComponentNode();
|
|
293
|
+
return o.groupId && i.add(o.groupId), i;
|
|
294
294
|
}, /* @__PURE__ */ new Set())
|
|
295
295
|
);
|
|
296
296
|
e.componentNode.unlinkGroup(n), e.instance.unselectAll();
|
|
@@ -342,7 +342,7 @@ function Yi() {
|
|
|
342
342
|
if (!e) return;
|
|
343
343
|
const t = Oe();
|
|
344
344
|
if (!t.length) {
|
|
345
|
-
|
|
345
|
+
A.warn("收藏组件不能为空");
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
348
|
const n = ut(), i = e.favorites.getAll().length;
|
|
@@ -366,9 +366,9 @@ function Zi(e) {
|
|
|
366
366
|
return Object.values(
|
|
367
367
|
n.reduce((i, c) => {
|
|
368
368
|
var d;
|
|
369
|
-
const
|
|
370
|
-
return
|
|
371
|
-
i[
|
|
369
|
+
const o = t.componentNode.get(c);
|
|
370
|
+
return o && (i[o.id] = o, (d = o == null ? void 0 : o.panels) != null && d.length && t.componentNode.getPanelComponentNodes(o, !0).forEach((a) => {
|
|
371
|
+
i[a.id] = a;
|
|
372
372
|
})), i;
|
|
373
373
|
}, {})
|
|
374
374
|
);
|
|
@@ -451,10 +451,10 @@ const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijj
|
|
|
451
451
|
tooltipButton_disabled: ul
|
|
452
452
|
};
|
|
453
453
|
function dn(e) {
|
|
454
|
-
return /* @__PURE__ */ l(
|
|
454
|
+
return /* @__PURE__ */ l($, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
|
|
455
455
|
"div",
|
|
456
456
|
{
|
|
457
|
-
className:
|
|
457
|
+
className: R(
|
|
458
458
|
Fe.tooltipButton,
|
|
459
459
|
(e == null ? void 0 : e.disabled) && Fe.tooltipButton_disabled,
|
|
460
460
|
!(e != null && e.noHoverClass) && Fe.tooltipButton_hover
|
|
@@ -472,7 +472,7 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
472
472
|
"data-injectcss"
|
|
473
473
|
), n = n.getAttribute("data-disable-injectsvg");
|
|
474
474
|
if (!n) {
|
|
475
|
-
var i, c,
|
|
475
|
+
var i, c, o, d, a, s = function(u, _) {
|
|
476
476
|
_.parentNode.insertBefore(u, _);
|
|
477
477
|
};
|
|
478
478
|
if (t && !e.__iconfont__svg__cssinject__) {
|
|
@@ -490,12 +490,12 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
490
490
|
_.innerHTML = e._iconfont_svg_string_4790291, (_ = _.getElementsByTagName("svg")[0]) && (_.setAttribute("aria-hidden", "true"), _.style.position = "absolute", _.style.width = 0, _.style.height = 0, _.style.overflow = "hidden", _ = _, (u = document.body).firstChild ? s(_, u.firstChild) : u.appendChild(_));
|
|
491
491
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(i, 0) : (c = function() {
|
|
492
492
|
document.removeEventListener("DOMContentLoaded", c, !1), i();
|
|
493
|
-
}, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (
|
|
493
|
+
}, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (o = i, d = e.document, a = !1, h(), d.onreadystatechange = function() {
|
|
494
494
|
d.readyState == "complete" && (d.onreadystatechange = null, r());
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
function r() {
|
|
498
|
-
|
|
498
|
+
a || (a = !0, o());
|
|
499
499
|
}
|
|
500
500
|
function h() {
|
|
501
501
|
try {
|
|
@@ -521,7 +521,7 @@ function Et(e) {
|
|
|
521
521
|
"div",
|
|
522
522
|
{
|
|
523
523
|
style: n,
|
|
524
|
-
className:
|
|
524
|
+
className: R(wt.inputNumberWithSuffix, i),
|
|
525
525
|
children: [
|
|
526
526
|
/* @__PURE__ */ l(le, { size: "small", style: { width: 70 }, ...c }),
|
|
527
527
|
t && /* @__PURE__ */ l("div", { className: wt.inputNumberWithSuffix_suffix, children: t })
|
|
@@ -536,11 +536,11 @@ const fl = {
|
|
|
536
536
|
200: " "
|
|
537
537
|
};
|
|
538
538
|
function yl(e) {
|
|
539
|
-
const { value: t = 1, isCustom: n } = e, i = Ee(), c =
|
|
539
|
+
const { value: t = 1, isCustom: n } = e, i = Ee(), c = L(() => i.scaleMinZoom * 100, [i]), o = L(() => i.scaleMaxZoom * 100, [i]), d = L(() => i.scaleDefault * 100, [i]), a = L(() => Math.round(t * 100), [t]);
|
|
540
540
|
function s(r) {
|
|
541
541
|
var u;
|
|
542
542
|
const h = Math.round(Number(r)) / 100;
|
|
543
|
-
h !==
|
|
543
|
+
h !== a && ((u = e == null ? void 0 : e.onChange) == null || u.call(e, h));
|
|
544
544
|
}
|
|
545
545
|
return /* @__PURE__ */ l(
|
|
546
546
|
st,
|
|
@@ -551,12 +551,12 @@ function yl(e) {
|
|
|
551
551
|
{
|
|
552
552
|
style: { width: 250 },
|
|
553
553
|
min: c,
|
|
554
|
-
max: Math.max(
|
|
554
|
+
max: Math.max(o, a),
|
|
555
555
|
tooltip: {
|
|
556
556
|
formatter: (r) => `${r}%`
|
|
557
557
|
},
|
|
558
558
|
marks: fl,
|
|
559
|
-
value:
|
|
559
|
+
value: a,
|
|
560
560
|
onChange: s
|
|
561
561
|
}
|
|
562
562
|
),
|
|
@@ -566,7 +566,7 @@ function yl(e) {
|
|
|
566
566
|
{
|
|
567
567
|
min: c,
|
|
568
568
|
max: 1e3,
|
|
569
|
-
value:
|
|
569
|
+
value: a,
|
|
570
570
|
placeholder: "缩放值",
|
|
571
571
|
style: { fontSize: 12, width: 80 },
|
|
572
572
|
onChange: (r) => {
|
|
@@ -586,7 +586,7 @@ function yl(e) {
|
|
|
586
586
|
] })
|
|
587
587
|
] }),
|
|
588
588
|
children: /* @__PURE__ */ g("span", { style: { cursor: "pointer" }, children: [
|
|
589
|
-
/* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${
|
|
589
|
+
/* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${a}%` }),
|
|
590
590
|
/* @__PURE__ */ l(kn, {})
|
|
591
591
|
] })
|
|
592
592
|
}
|
|
@@ -633,7 +633,7 @@ function vl() {
|
|
|
633
633
|
)
|
|
634
634
|
] });
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function B({ children: e }) {
|
|
637
637
|
return /* @__PURE__ */ l(
|
|
638
638
|
"div",
|
|
639
639
|
{
|
|
@@ -666,36 +666,36 @@ function bl() {
|
|
|
666
666
|
e("head.shortCutKeys.all"),
|
|
667
667
|
":"
|
|
668
668
|
] }),
|
|
669
|
-
/* @__PURE__ */ l(
|
|
669
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
670
670
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
671
|
-
/* @__PURE__ */ l(
|
|
671
|
+
/* @__PURE__ */ l(B, { children: "A" })
|
|
672
672
|
] }),
|
|
673
673
|
/* @__PURE__ */ g(D, { children: [
|
|
674
674
|
/* @__PURE__ */ g("span", { children: [
|
|
675
675
|
e("head.shortCutKeys.invert"),
|
|
676
676
|
":"
|
|
677
677
|
] }),
|
|
678
|
-
/* @__PURE__ */ l(
|
|
678
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
679
679
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
680
|
-
/* @__PURE__ */ l(
|
|
680
|
+
/* @__PURE__ */ l(B, { children: "R" })
|
|
681
681
|
] }),
|
|
682
682
|
/* @__PURE__ */ g(D, { children: [
|
|
683
683
|
/* @__PURE__ */ g("span", { children: [
|
|
684
684
|
e("head.shortCutKeys.copy"),
|
|
685
685
|
":"
|
|
686
686
|
] }),
|
|
687
|
-
/* @__PURE__ */ l(
|
|
687
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
688
688
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
689
|
-
/* @__PURE__ */ l(
|
|
689
|
+
/* @__PURE__ */ l(B, { children: "C" })
|
|
690
690
|
] }),
|
|
691
691
|
/* @__PURE__ */ g(D, { children: [
|
|
692
692
|
/* @__PURE__ */ g("span", { children: [
|
|
693
693
|
e("head.shortCutKeys.save"),
|
|
694
694
|
":"
|
|
695
695
|
] }),
|
|
696
|
-
/* @__PURE__ */ l(
|
|
696
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
697
697
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
698
|
-
/* @__PURE__ */ l(
|
|
698
|
+
/* @__PURE__ */ l(B, { children: "S" })
|
|
699
699
|
] }),
|
|
700
700
|
/* @__PURE__ */ g(D, { children: [
|
|
701
701
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -703,7 +703,7 @@ function bl() {
|
|
|
703
703
|
":"
|
|
704
704
|
] }),
|
|
705
705
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.multipleExt.ext1") }),
|
|
706
|
-
/* @__PURE__ */ l(
|
|
706
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
707
707
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.multipleExt.ext2") })
|
|
708
708
|
] }),
|
|
709
709
|
/* @__PURE__ */ g(D, { children: [
|
|
@@ -711,23 +711,23 @@ function bl() {
|
|
|
711
711
|
e("head.shortCutKeys.delete"),
|
|
712
712
|
":"
|
|
713
713
|
] }),
|
|
714
|
-
/* @__PURE__ */ l(
|
|
714
|
+
/* @__PURE__ */ l(B, { children: "BackSpace" }),
|
|
715
715
|
/* @__PURE__ */ g("span", { children: [
|
|
716
716
|
" ",
|
|
717
717
|
e("head.shortCutKeys.deleteExt.ext1"),
|
|
718
718
|
" "
|
|
719
719
|
] }),
|
|
720
|
-
/* @__PURE__ */ l(
|
|
720
|
+
/* @__PURE__ */ l(B, { children: "Delete" })
|
|
721
721
|
] }),
|
|
722
722
|
/* @__PURE__ */ g(D, { children: [
|
|
723
723
|
/* @__PURE__ */ g("span", { children: [
|
|
724
724
|
e("head.shortCutKeys.move"),
|
|
725
725
|
":"
|
|
726
726
|
] }),
|
|
727
|
-
/* @__PURE__ */ l(
|
|
728
|
-
/* @__PURE__ */ l(
|
|
729
|
-
/* @__PURE__ */ l(
|
|
730
|
-
/* @__PURE__ */ l(
|
|
727
|
+
/* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(et, {}) }),
|
|
728
|
+
/* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(Nn, {}) }),
|
|
729
|
+
/* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(tt, {}) }),
|
|
730
|
+
/* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(wn, {}) })
|
|
731
731
|
] }),
|
|
732
732
|
/* @__PURE__ */ g(D, { children: [
|
|
733
733
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -735,7 +735,7 @@ function bl() {
|
|
|
735
735
|
":"
|
|
736
736
|
] }),
|
|
737
737
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.forceExt.ext1") }),
|
|
738
|
-
/* @__PURE__ */ l(
|
|
738
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
739
739
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.forceExt.ext2") })
|
|
740
740
|
] }),
|
|
741
741
|
/* @__PURE__ */ g(D, { children: [
|
|
@@ -743,27 +743,27 @@ function bl() {
|
|
|
743
743
|
e("head.shortCutKeys.undo"),
|
|
744
744
|
":"
|
|
745
745
|
] }),
|
|
746
|
-
/* @__PURE__ */ l(
|
|
746
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
747
747
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
748
|
-
/* @__PURE__ */ l(
|
|
748
|
+
/* @__PURE__ */ l(B, { children: "Z" })
|
|
749
749
|
] }),
|
|
750
750
|
/* @__PURE__ */ g(D, { children: [
|
|
751
751
|
/* @__PURE__ */ g("span", { children: [
|
|
752
752
|
e("head.shortCutKeys.cancelUndo"),
|
|
753
753
|
":"
|
|
754
754
|
] }),
|
|
755
|
-
/* @__PURE__ */ l(
|
|
755
|
+
/* @__PURE__ */ l(B, { children: "Shift" }),
|
|
756
756
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
757
|
-
/* @__PURE__ */ l(
|
|
757
|
+
/* @__PURE__ */ l(B, { children: "Ctrl / Command" }),
|
|
758
758
|
/* @__PURE__ */ l("span", { children: "+" }),
|
|
759
|
-
/* @__PURE__ */ l(
|
|
759
|
+
/* @__PURE__ */ l(B, { children: "Z" })
|
|
760
760
|
] }),
|
|
761
761
|
/* @__PURE__ */ g(D, { children: [
|
|
762
762
|
/* @__PURE__ */ g("span", { children: [
|
|
763
763
|
e("head.shortCutKeys.zoom"),
|
|
764
764
|
":"
|
|
765
765
|
] }),
|
|
766
|
-
/* @__PURE__ */ l(
|
|
766
|
+
/* @__PURE__ */ l(B, { children: /* @__PURE__ */ g(D, { children: [
|
|
767
767
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.zoomExt.ext1") }),
|
|
768
768
|
/* @__PURE__ */ l(et, {}),
|
|
769
769
|
/* @__PURE__ */ l("span", { children: "/" }),
|
|
@@ -775,7 +775,7 @@ function bl() {
|
|
|
775
775
|
e("head.shortCutKeys.zoomReset"),
|
|
776
776
|
":"
|
|
777
777
|
] }),
|
|
778
|
-
/* @__PURE__ */ l(
|
|
778
|
+
/* @__PURE__ */ l(B, { children: e("head.shortCutKeys.zoomResetExt.ext1") })
|
|
779
779
|
] }),
|
|
780
780
|
/* @__PURE__ */ g(D, { children: [
|
|
781
781
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -783,7 +783,7 @@ function bl() {
|
|
|
783
783
|
":"
|
|
784
784
|
] }),
|
|
785
785
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.dragCanvasExt.ext1") }),
|
|
786
|
-
/* @__PURE__ */ l(
|
|
786
|
+
/* @__PURE__ */ l(B, { children: "Space" }),
|
|
787
787
|
/* @__PURE__ */ l("span", { children: e("head.shortCutKeys.dragCanvas") })
|
|
788
788
|
] })
|
|
789
789
|
]
|
|
@@ -800,9 +800,9 @@ function xl(e = window.location.host) {
|
|
|
800
800
|
}
|
|
801
801
|
const Il = (e, t, n) => {
|
|
802
802
|
const i = e[t];
|
|
803
|
-
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c,
|
|
803
|
+
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, o) => {
|
|
804
804
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
805
|
-
|
|
805
|
+
o.bind(
|
|
806
806
|
null,
|
|
807
807
|
new Error(
|
|
808
808
|
"Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -813,7 +813,7 @@ const Il = (e, t, n) => {
|
|
|
813
813
|
};
|
|
814
814
|
async function kl(e) {
|
|
815
815
|
var i;
|
|
816
|
-
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-
|
|
816
|
+
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-BydqrGsF.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-BydqrGsF.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
|
|
817
817
|
(i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
|
|
818
818
|
}
|
|
819
819
|
function Sl() {
|
|
@@ -852,7 +852,7 @@ function Nl() {
|
|
|
852
852
|
}
|
|
853
853
|
const wl = xl();
|
|
854
854
|
function El(e) {
|
|
855
|
-
const { pageLogo: t, pageToolBar: n } = e, {
|
|
855
|
+
const { pageLogo: t, pageToolBar: n } = e, { showLanguage: i = !0, showPreview: c = !0, showSave: o = !0 } = (e == null ? void 0 : e.toolBarOptions) || {}, { engine: d, rbsEngine: a } = N(), [s, r] = se(), h = cn(), u = r.language === ci.zh, _ = L(() => [
|
|
856
856
|
{
|
|
857
857
|
key: "shortCutKeys",
|
|
858
858
|
description: /* @__PURE__ */ l(bl, {}),
|
|
@@ -860,34 +860,38 @@ function El(e) {
|
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
key: "undo",
|
|
863
|
-
description:
|
|
864
|
-
disabled: !
|
|
863
|
+
description: s("head.undo"),
|
|
864
|
+
disabled: !h.isCanGoBack,
|
|
865
865
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-undo" })
|
|
866
866
|
},
|
|
867
867
|
{
|
|
868
868
|
key: "cancelUndo",
|
|
869
|
-
description:
|
|
870
|
-
disabled: !
|
|
869
|
+
description: s("head.cancelUndo"),
|
|
870
|
+
disabled: !h.isCanGoForward,
|
|
871
871
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
|
|
872
872
|
},
|
|
873
|
-
{ key: "export", description:
|
|
874
|
-
{ key: "import", description:
|
|
875
|
-
{ key: "clear", description:
|
|
876
|
-
{
|
|
873
|
+
{ key: "export", description: s("head.export"), icon: /* @__PURE__ */ l(An, {}) },
|
|
874
|
+
{ key: "import", description: s("head.import"), icon: /* @__PURE__ */ l($t, {}) },
|
|
875
|
+
{ key: "clear", description: s("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
876
|
+
i && {
|
|
877
877
|
key: "language",
|
|
878
|
-
description:
|
|
878
|
+
description: s("head.language", { text: `${u ? "切换英语" : "change chinese"}` }),
|
|
879
879
|
icon: /* @__PURE__ */ l(Ln, {})
|
|
880
880
|
},
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
881
|
+
o && {
|
|
882
|
+
key: "save",
|
|
883
|
+
description: s("head.save"),
|
|
884
|
+
icon: /* @__PURE__ */ l(Q, {})
|
|
885
|
+
}
|
|
886
|
+
].filter(Boolean), [r.language, h.isCanGoForward, h.isCanGoBack, i, o]);
|
|
887
|
+
function m() {
|
|
884
888
|
window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
|
|
885
889
|
}
|
|
886
|
-
async function
|
|
887
|
-
|
|
890
|
+
async function y() {
|
|
891
|
+
a == null || a.emit("startPreview", d);
|
|
888
892
|
}
|
|
889
|
-
function
|
|
890
|
-
switch (
|
|
893
|
+
function x(C) {
|
|
894
|
+
switch (C.key) {
|
|
891
895
|
case "undo":
|
|
892
896
|
bt();
|
|
893
897
|
break;
|
|
@@ -895,73 +899,73 @@ function El(e) {
|
|
|
895
899
|
ot();
|
|
896
900
|
break;
|
|
897
901
|
case "export":
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
qt(
|
|
902
|
+
d.getJSON().then((P) => {
|
|
903
|
+
const T = JSON.stringify(P);
|
|
904
|
+
qt(T, "大屏看板.json");
|
|
901
905
|
});
|
|
902
906
|
break;
|
|
903
907
|
case "import":
|
|
904
|
-
Ai().then((
|
|
905
|
-
if (!
|
|
906
|
-
return
|
|
908
|
+
Ai().then((P) => {
|
|
909
|
+
if (!P)
|
|
910
|
+
return A.warn("文件内容不能为空");
|
|
907
911
|
try {
|
|
908
|
-
const
|
|
909
|
-
|
|
912
|
+
const T = JSON.parse(P);
|
|
913
|
+
d.loadJSON(T);
|
|
910
914
|
} catch {
|
|
911
|
-
|
|
915
|
+
A.error("请上传json格式文件");
|
|
912
916
|
}
|
|
913
917
|
});
|
|
914
918
|
break;
|
|
915
919
|
case "preview":
|
|
916
|
-
|
|
920
|
+
y();
|
|
917
921
|
break;
|
|
918
922
|
case "save":
|
|
919
923
|
vt();
|
|
920
924
|
break;
|
|
921
925
|
case "clear":
|
|
922
|
-
|
|
926
|
+
d.clear();
|
|
923
927
|
break;
|
|
924
928
|
case "settings":
|
|
925
929
|
break;
|
|
926
930
|
case "language":
|
|
927
|
-
const
|
|
928
|
-
ai(
|
|
931
|
+
const w = u ? "en" : "zh";
|
|
932
|
+
ai(w), d.config.setConfig({ language: w });
|
|
929
933
|
break;
|
|
930
934
|
}
|
|
931
935
|
}
|
|
932
|
-
const
|
|
936
|
+
const b = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
933
937
|
/* @__PURE__ */ l("b", { children: "BigScreen" }),
|
|
934
|
-
!wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick:
|
|
935
|
-
] }),
|
|
936
|
-
|
|
938
|
+
!wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: m })
|
|
939
|
+
] }), I = /* @__PURE__ */ g(W, { children: [
|
|
940
|
+
_.map((C) => /* @__PURE__ */ l(
|
|
937
941
|
dn,
|
|
938
942
|
{
|
|
939
|
-
disabled:
|
|
940
|
-
title:
|
|
941
|
-
onClick: () =>
|
|
942
|
-
children:
|
|
943
|
+
disabled: C == null ? void 0 : C.disabled,
|
|
944
|
+
title: C.description,
|
|
945
|
+
onClick: () => x(C),
|
|
946
|
+
children: C == null ? void 0 : C.icon
|
|
943
947
|
},
|
|
944
|
-
|
|
948
|
+
C.key
|
|
945
949
|
)),
|
|
946
|
-
/* @__PURE__ */ l(
|
|
950
|
+
c && /* @__PURE__ */ l(
|
|
947
951
|
K,
|
|
948
952
|
{
|
|
949
953
|
type: "primary",
|
|
950
954
|
size: "small",
|
|
951
955
|
style: { fontSize: 12 },
|
|
952
956
|
id: "rbs-preview",
|
|
953
|
-
onClick:
|
|
957
|
+
onClick: y,
|
|
954
958
|
children: "开始预览"
|
|
955
959
|
}
|
|
956
960
|
)
|
|
957
|
-
] }),
|
|
961
|
+
] }), f = "rbs-tool-bar", v = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: I, previewDriverId: f }) : n : I;
|
|
958
962
|
return /* @__PURE__ */ g("div", { className: Ie.header, children: [
|
|
959
|
-
t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t :
|
|
963
|
+
t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : b,
|
|
960
964
|
/* @__PURE__ */ l(vl, {}),
|
|
961
965
|
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
962
966
|
/* @__PURE__ */ l(Sl, {}),
|
|
963
967
|
/* @__PURE__ */ l(Nl, {}),
|
|
964
|
-
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id:
|
|
968
|
+
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: f, children: v })
|
|
965
969
|
] })
|
|
966
970
|
] });
|
|
967
971
|
}
|
|
@@ -1001,19 +1005,19 @@ const At = new Rl();
|
|
|
1001
1005
|
function Fl(e, t) {
|
|
1002
1006
|
let n = !1;
|
|
1003
1007
|
e.addEventListener("mousedown", c);
|
|
1004
|
-
function i(
|
|
1008
|
+
function i(a) {
|
|
1005
1009
|
var s;
|
|
1006
|
-
n || (n = !0, (s = t == null ? void 0 : t.onStart) == null || s.call(t,
|
|
1010
|
+
n || (n = !0, (s = t == null ? void 0 : t.onStart) == null || s.call(t, a, { isDragging: n }));
|
|
1007
1011
|
}
|
|
1008
1012
|
function c() {
|
|
1009
|
-
e.addEventListener("mousemove", i), window.addEventListener("mouseup",
|
|
1013
|
+
e.addEventListener("mousemove", i), window.addEventListener("mouseup", o);
|
|
1010
1014
|
}
|
|
1011
|
-
function a
|
|
1015
|
+
function o(a) {
|
|
1012
1016
|
var s;
|
|
1013
|
-
(s = t == null ? void 0 : t.onEnd) == null || s.call(t,
|
|
1017
|
+
(s = t == null ? void 0 : t.onEnd) == null || s.call(t, a, { isDragging: n }), d();
|
|
1014
1018
|
}
|
|
1015
1019
|
function d() {
|
|
1016
|
-
n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup",
|
|
1020
|
+
n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup", o);
|
|
1017
1021
|
}
|
|
1018
1022
|
return () => {
|
|
1019
1023
|
d(), e.removeEventListener("mousedown", c);
|
|
@@ -1070,8 +1074,8 @@ class Hl {
|
|
|
1070
1074
|
}
|
|
1071
1075
|
const ce = new Hl();
|
|
1072
1076
|
function rn(e, t) {
|
|
1073
|
-
const n =
|
|
1074
|
-
n.current = t,
|
|
1077
|
+
const n = j(t);
|
|
1078
|
+
n.current = t, E(() => {
|
|
1075
1079
|
const i = e.current;
|
|
1076
1080
|
if (!i) {
|
|
1077
1081
|
console.warn("dom must be set.");
|
|
@@ -1089,8 +1093,8 @@ function rn(e, t) {
|
|
|
1089
1093
|
}, []);
|
|
1090
1094
|
}
|
|
1091
1095
|
function sn(e, t) {
|
|
1092
|
-
const n =
|
|
1093
|
-
n.current = t,
|
|
1096
|
+
const n = j(t);
|
|
1097
|
+
n.current = t, E(() => {
|
|
1094
1098
|
const { accept: i } = t;
|
|
1095
1099
|
if (i && !Array.isArray(i))
|
|
1096
1100
|
throw new Error("accept must be a string array.");
|
|
@@ -1099,21 +1103,21 @@ function sn(e, t) {
|
|
|
1099
1103
|
console.warn("dom must be set.");
|
|
1100
1104
|
return;
|
|
1101
1105
|
}
|
|
1102
|
-
const
|
|
1106
|
+
const o = (d) => {
|
|
1103
1107
|
var s, r, h;
|
|
1104
1108
|
if (!ce.getIsDragging())
|
|
1105
1109
|
return;
|
|
1106
|
-
const
|
|
1107
|
-
i && !((s = i == null ? void 0 : i.includes) != null && s.call(i,
|
|
1110
|
+
const a = ce.getDragOptions();
|
|
1111
|
+
i && !((s = i == null ? void 0 : i.includes) != null && s.call(i, a.type || "")) || (h = (r = n.current) == null ? void 0 : r.onDrop) == null || h.call(r, d, a);
|
|
1108
1112
|
};
|
|
1109
|
-
return c.addEventListener("mouseup",
|
|
1110
|
-
c.removeEventListener("mouseup",
|
|
1113
|
+
return c.addEventListener("mouseup", o), () => {
|
|
1114
|
+
c.removeEventListener("mouseup", o);
|
|
1111
1115
|
};
|
|
1112
1116
|
}, []);
|
|
1113
1117
|
}
|
|
1114
1118
|
function xe(e) {
|
|
1115
1119
|
const { src: t } = e, [n, i] = S("");
|
|
1116
|
-
return
|
|
1120
|
+
return E(() => {
|
|
1117
1121
|
switch (typeof t) {
|
|
1118
1122
|
case "string":
|
|
1119
1123
|
i(t);
|
|
@@ -1127,7 +1131,7 @@ function xe(e) {
|
|
|
1127
1131
|
}, [t]), t ? /* @__PURE__ */ l("img", { style: e == null ? void 0 : e.style, src: n, draggable: !1 }) : /* @__PURE__ */ l("span", { style: { color: "#b8b8b8" }, children: "None" });
|
|
1128
1132
|
}
|
|
1129
1133
|
function Kl(e) {
|
|
1130
|
-
const { component: t } = e, n =
|
|
1134
|
+
const { component: t } = e, n = j(null);
|
|
1131
1135
|
return rn(n, {
|
|
1132
1136
|
type: "create-component",
|
|
1133
1137
|
data: {
|
|
@@ -1137,7 +1141,7 @@ function Kl(e) {
|
|
|
1137
1141
|
"div",
|
|
1138
1142
|
{
|
|
1139
1143
|
style: e == null ? void 0 : e.style,
|
|
1140
|
-
className:
|
|
1144
|
+
className: R(Ue.componentItem, e == null ? void 0 : e.className),
|
|
1141
1145
|
ref: n,
|
|
1142
1146
|
children: [
|
|
1143
1147
|
/* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
|
|
@@ -1147,15 +1151,15 @@ function Kl(e) {
|
|
|
1147
1151
|
);
|
|
1148
1152
|
}
|
|
1149
1153
|
function Ul(e) {
|
|
1150
|
-
var
|
|
1151
|
-
const { components: t, column: n = 3 } = e, { width: i, lines: c } =
|
|
1154
|
+
var o;
|
|
1155
|
+
const { components: t, column: n = 3 } = e, { width: i, lines: c } = L(() => ({
|
|
1152
1156
|
width: `${100 / n}%`,
|
|
1153
1157
|
lines: Math.ceil(t.length / n)
|
|
1154
1158
|
}), [t, n]);
|
|
1155
1159
|
return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
|
|
1156
1160
|
!(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
|
|
1157
|
-
(
|
|
1158
|
-
const s =
|
|
1161
|
+
(o = t == null ? void 0 : t.map) == null ? void 0 : o.call(t, (d, a) => {
|
|
1162
|
+
const s = a % n === n - 1, r = c === 1 || a > (c - 1) * n - 1;
|
|
1159
1163
|
return /* @__PURE__ */ l(
|
|
1160
1164
|
Kl,
|
|
1161
1165
|
{
|
|
@@ -1177,37 +1181,37 @@ function Lt(e, t = "") {
|
|
|
1177
1181
|
return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
|
|
1178
1182
|
}
|
|
1179
1183
|
function ql() {
|
|
1180
|
-
const [e, t] = se(), [n, i] = S([]), c = Oi(), [
|
|
1184
|
+
const [e, t] = se(), [n, i] = S([]), c = Oi(), [o, d] = S(""), [a, s] = S([]), r = L(() => ({
|
|
1181
1185
|
base: e("menu.library.base"),
|
|
1182
1186
|
charts: e("menu.library.charts"),
|
|
1183
1187
|
layout: e("menu.library.layout"),
|
|
1184
1188
|
nav: e("menu.library.nav"),
|
|
1185
1189
|
unknown: e("menu.library.unknown")
|
|
1186
|
-
}), [t.language]), h =
|
|
1187
|
-
const
|
|
1188
|
-
s(
|
|
1190
|
+
}), [t.language]), h = L(() => ui((_, m = "") => {
|
|
1191
|
+
const y = Lt(_, m);
|
|
1192
|
+
s(y);
|
|
1189
1193
|
}, 500), []);
|
|
1190
|
-
|
|
1191
|
-
s(Lt(c,
|
|
1194
|
+
E(() => {
|
|
1195
|
+
s(Lt(c, o));
|
|
1192
1196
|
}, [c]), _t(() => {
|
|
1193
|
-
h(c,
|
|
1194
|
-
}, [
|
|
1195
|
-
const u =
|
|
1197
|
+
h(c, o);
|
|
1198
|
+
}, [o]);
|
|
1199
|
+
const u = L(() => {
|
|
1196
1200
|
const _ = [], m = Object.entries(
|
|
1197
|
-
hi(
|
|
1198
|
-
).map(([
|
|
1199
|
-
key:
|
|
1200
|
-
components:
|
|
1201
|
-
label: r[
|
|
1201
|
+
hi(a, (y) => y.category || "unknown")
|
|
1202
|
+
).map(([y, x]) => (_.push(y), {
|
|
1203
|
+
key: y,
|
|
1204
|
+
components: x,
|
|
1205
|
+
label: r[y] || y
|
|
1202
1206
|
}));
|
|
1203
1207
|
return i(_), m;
|
|
1204
|
-
}, [
|
|
1208
|
+
}, [a, r]);
|
|
1205
1209
|
return /* @__PURE__ */ g("div", { className: Ke.library, children: [
|
|
1206
1210
|
/* @__PURE__ */ l("div", { className: Ke.library_header, children: /* @__PURE__ */ l(
|
|
1207
1211
|
Qn.Search,
|
|
1208
1212
|
{
|
|
1209
1213
|
allowClear: !0,
|
|
1210
|
-
value:
|
|
1214
|
+
value: o,
|
|
1211
1215
|
placeholder: "搜索组件",
|
|
1212
1216
|
onChange: (_) => {
|
|
1213
1217
|
d(_.target.value);
|
|
@@ -1239,7 +1243,7 @@ const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl
|
|
|
1239
1243
|
componentNodeItem_tail_operatable: pl
|
|
1240
1244
|
};
|
|
1241
1245
|
function ec(e) {
|
|
1242
|
-
const { engine: t } = N(), n =
|
|
1246
|
+
const { engine: t } = N(), n = j(null), [i, c] = S(e == null ? void 0 : e.componentNode), o = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: a } = L(() => ({
|
|
1243
1247
|
component: t.component.get(i == null ? void 0 : i.cId),
|
|
1244
1248
|
instance: t.instance.get(i == null ? void 0 : i.id)
|
|
1245
1249
|
}), [i]);
|
|
@@ -1259,14 +1263,14 @@ function ec(e) {
|
|
|
1259
1263
|
show: h
|
|
1260
1264
|
});
|
|
1261
1265
|
}
|
|
1262
|
-
return
|
|
1266
|
+
return E(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
|
|
1263
1267
|
c({ ...h });
|
|
1264
1268
|
}), []), /* @__PURE__ */ g(
|
|
1265
1269
|
"div",
|
|
1266
1270
|
{
|
|
1267
1271
|
[`data-${oe.componentNodeId}`]: i.id,
|
|
1268
1272
|
ref: n,
|
|
1269
|
-
className:
|
|
1273
|
+
className: R(
|
|
1270
1274
|
ne.componentNodeItem,
|
|
1271
1275
|
(e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
|
|
1272
1276
|
),
|
|
@@ -1275,11 +1279,11 @@ function ec(e) {
|
|
|
1275
1279
|
},
|
|
1276
1280
|
onMouseEnter: () => {
|
|
1277
1281
|
var h;
|
|
1278
|
-
(h =
|
|
1282
|
+
(h = a == null ? void 0 : a.handleHover) == null || h.call(a);
|
|
1279
1283
|
},
|
|
1280
1284
|
onMouseLeave: () => {
|
|
1281
1285
|
var h;
|
|
1282
|
-
(h =
|
|
1286
|
+
(h = a == null ? void 0 : a.handleUnHover) == null || h.call(a);
|
|
1283
1287
|
},
|
|
1284
1288
|
children: [
|
|
1285
1289
|
/* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
|
|
@@ -1291,9 +1295,9 @@ function ec(e) {
|
|
|
1291
1295
|
{
|
|
1292
1296
|
className: ne.componentNodeItem_tail_operatable,
|
|
1293
1297
|
onMouseDown: (h) => {
|
|
1294
|
-
h.stopPropagation(), r(!
|
|
1298
|
+
h.stopPropagation(), r(!o);
|
|
1295
1299
|
},
|
|
1296
|
-
children:
|
|
1300
|
+
children: o ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
|
|
1297
1301
|
}
|
|
1298
1302
|
)
|
|
1299
1303
|
] })
|
|
@@ -1316,19 +1320,19 @@ const tc = "_renderContextMenu_vitq8_59", nc = {
|
|
|
1316
1320
|
left: 0
|
|
1317
1321
|
};
|
|
1318
1322
|
function uc(e) {
|
|
1319
|
-
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...
|
|
1323
|
+
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...o } = e, [d, a] = S(!1), [s, r] = S(sc);
|
|
1320
1324
|
function h(_) {
|
|
1321
|
-
var
|
|
1322
|
-
if ((
|
|
1325
|
+
var y, x, b;
|
|
1326
|
+
if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
|
|
1323
1327
|
return;
|
|
1324
|
-
const m = (b = (
|
|
1325
|
-
m && (r({ top: m.top, left: m.left + m.width }),
|
|
1328
|
+
const m = (b = (x = _.target) == null ? void 0 : x.getBoundingClientRect) == null ? void 0 : b.call(x);
|
|
1329
|
+
m && (r({ top: m.top, left: m.left + m.width }), a(!0));
|
|
1326
1330
|
}
|
|
1327
1331
|
function u(_) {
|
|
1328
1332
|
var m;
|
|
1329
|
-
(m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _),
|
|
1333
|
+
(m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _), a(!1);
|
|
1330
1334
|
}
|
|
1331
|
-
return /* @__PURE__ */ g("div", { ...
|
|
1335
|
+
return /* @__PURE__ */ g("div", { ...o, onMouseEnter: h, onMouseLeave: u, children: [
|
|
1332
1336
|
n,
|
|
1333
1337
|
d && si(
|
|
1334
1338
|
/* @__PURE__ */ l(
|
|
@@ -1358,32 +1362,32 @@ function uc(e) {
|
|
|
1358
1362
|
function un(e) {
|
|
1359
1363
|
var t, n;
|
|
1360
1364
|
return /* @__PURE__ */ l("div", { className: ge.renderList, children: (n = (t = e == null ? void 0 : e.items) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
|
|
1361
|
-
var
|
|
1365
|
+
var o;
|
|
1362
1366
|
const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
|
|
1363
1367
|
return /* @__PURE__ */ g(
|
|
1364
1368
|
uc,
|
|
1365
1369
|
{
|
|
1366
1370
|
items: i == null ? void 0 : i.children,
|
|
1367
1371
|
style: i == null ? void 0 : i.style,
|
|
1368
|
-
className:
|
|
1372
|
+
className: R(
|
|
1369
1373
|
ge.renderList_item,
|
|
1370
1374
|
(i == null ? void 0 : i.disabled) && ge.renderList_disabled,
|
|
1371
1375
|
!c && ge.renderList_item_unselectable
|
|
1372
1376
|
),
|
|
1373
|
-
onSelect: (d,
|
|
1377
|
+
onSelect: (d, a) => {
|
|
1374
1378
|
var s, r;
|
|
1375
|
-
(s = e == null ? void 0 : e.onSelect) == null || s.call(e, d,
|
|
1379
|
+
(s = e == null ? void 0 : e.onSelect) == null || s.call(e, d, a), d.key === i.key && ((r = i == null ? void 0 : i.onSelect) == null || r.call(i, a));
|
|
1376
1380
|
},
|
|
1377
1381
|
onClick: (d) => {
|
|
1378
|
-
var
|
|
1379
|
-
d.stopPropagation(), c && ((
|
|
1382
|
+
var a, s;
|
|
1383
|
+
d.stopPropagation(), c && ((a = e == null ? void 0 : e.onSelect) == null || a.call(e, i, d), (s = i == null ? void 0 : i.onSelect) == null || s.call(i, d));
|
|
1380
1384
|
},
|
|
1381
1385
|
children: [
|
|
1382
1386
|
/* @__PURE__ */ g("div", { className: ge.renderList_item_title, style: i == null ? void 0 : i.titleStyle, children: [
|
|
1383
1387
|
i == null ? void 0 : i.icon,
|
|
1384
1388
|
i == null ? void 0 : i.title
|
|
1385
1389
|
] }),
|
|
1386
|
-
!!((
|
|
1390
|
+
!!((o = i == null ? void 0 : i.children) != null && o.length) && /* @__PURE__ */ l(Bn, { style: { fontSize: "0.75em" } })
|
|
1387
1391
|
]
|
|
1388
1392
|
},
|
|
1389
1393
|
i == null ? void 0 : i.key
|
|
@@ -1391,11 +1395,11 @@ function un(e) {
|
|
|
1391
1395
|
}) });
|
|
1392
1396
|
}
|
|
1393
1397
|
function hc(e) {
|
|
1394
|
-
const t =
|
|
1395
|
-
return
|
|
1398
|
+
const t = j(null);
|
|
1399
|
+
return E(() => {
|
|
1396
1400
|
function n(i) {
|
|
1397
|
-
var c,
|
|
1398
|
-
(
|
|
1401
|
+
var c, o, d;
|
|
1402
|
+
(o = (c = t.current) == null ? void 0 : c.contains) != null && o.call(c, i.target) || (d = e == null ? void 0 : e.onClickOuter) == null || d.call(e);
|
|
1399
1403
|
}
|
|
1400
1404
|
return window.addEventListener("click", n), () => {
|
|
1401
1405
|
window.removeEventListener("click", n);
|
|
@@ -1428,27 +1432,27 @@ function hn(e, t, n, i) {
|
|
|
1428
1432
|
return;
|
|
1429
1433
|
const c = document.createElement("div");
|
|
1430
1434
|
c.style.position = "fixed", c.style.left = `${e}px`, c.style.top = `${t}px`, typeof (i == null ? void 0 : i.zIndex) == "number" && (c.style.zIndex = `${i == null ? void 0 : i.zIndex}`), document.body.appendChild(c);
|
|
1431
|
-
const
|
|
1435
|
+
const o = Jt(c);
|
|
1432
1436
|
let d = !1;
|
|
1433
|
-
const
|
|
1437
|
+
const a = () => {
|
|
1434
1438
|
var r, h;
|
|
1435
|
-
d || ((r =
|
|
1439
|
+
d || ((r = o == null ? void 0 : o.unmount) == null || r.call(o), (h = c == null ? void 0 : c.remove) == null || h.call(c), d = !0);
|
|
1436
1440
|
};
|
|
1437
|
-
return
|
|
1441
|
+
return o.render(
|
|
1438
1442
|
/* @__PURE__ */ l(
|
|
1439
1443
|
hc,
|
|
1440
1444
|
{
|
|
1441
1445
|
items: n,
|
|
1442
1446
|
onClickOuter: () => {
|
|
1443
|
-
|
|
1447
|
+
a();
|
|
1444
1448
|
},
|
|
1445
1449
|
onSelect: (r) => {
|
|
1446
1450
|
var h;
|
|
1447
|
-
(h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r),
|
|
1451
|
+
(h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r), a();
|
|
1448
1452
|
}
|
|
1449
1453
|
}
|
|
1450
1454
|
)
|
|
1451
|
-
),
|
|
1455
|
+
), a;
|
|
1452
1456
|
}
|
|
1453
1457
|
const gc = [
|
|
1454
1458
|
{
|
|
@@ -1527,12 +1531,12 @@ function _c(e, t) {
|
|
|
1527
1531
|
return hn(e.clientX, e.clientY, gc, {
|
|
1528
1532
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
|
|
1529
1533
|
onBeforeOpen(i) {
|
|
1530
|
-
let c = 0,
|
|
1531
|
-
const d = t.instance.getAllSelected(),
|
|
1534
|
+
let c = 0, o = !1;
|
|
1535
|
+
const d = t.instance.getAllSelected(), a = d.map((s) => {
|
|
1532
1536
|
const r = s.getComponentNode();
|
|
1533
|
-
return r != null && r.lock && c++, r.groupId && (
|
|
1537
|
+
return r != null && r.lock && c++, r.groupId && (o = !0), r;
|
|
1534
1538
|
});
|
|
1535
|
-
return
|
|
1539
|
+
return a.length ? i.filter((s) => s.key === "group" ? d.length > 1 : s.key === "ungroup" ? o : s.key === "lock" ? c !== a.length : s.key === "unlock" ? !!c : !0) : i;
|
|
1536
1540
|
}
|
|
1537
1541
|
});
|
|
1538
1542
|
}
|
|
@@ -1578,8 +1582,8 @@ function gn(e) {
|
|
|
1578
1582
|
contextmenu(n) {
|
|
1579
1583
|
var d;
|
|
1580
1584
|
Dt(), n.preventDefault();
|
|
1581
|
-
const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i),
|
|
1582
|
-
if (c &&
|
|
1585
|
+
const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i), o = (d = c == null ? void 0 : c.getComponentNode) == null ? void 0 : d.call(c);
|
|
1586
|
+
if (c && o) {
|
|
1583
1587
|
ve.push(_c(n, t));
|
|
1584
1588
|
return;
|
|
1585
1589
|
}
|
|
@@ -1590,13 +1594,13 @@ function gn(e) {
|
|
|
1590
1594
|
});
|
|
1591
1595
|
}
|
|
1592
1596
|
function yc() {
|
|
1593
|
-
const { engine: e } = N(), t = Gt(), n = yt(), i =
|
|
1597
|
+
const { engine: e } = N(), t = Gt(), n = yt(), i = j(null), c = L(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((o) => /* @__PURE__ */ l(
|
|
1594
1598
|
ec,
|
|
1595
1599
|
{
|
|
1596
|
-
componentNode:
|
|
1597
|
-
isSelected: e.instance.isSelected(
|
|
1600
|
+
componentNode: o,
|
|
1601
|
+
isSelected: e.instance.isSelected(o.id)
|
|
1598
1602
|
},
|
|
1599
|
-
|
|
1603
|
+
o.id
|
|
1600
1604
|
)) }) : /* @__PURE__ */ l(W, {}), [t, n]);
|
|
1601
1605
|
return gn(i), /* @__PURE__ */ g(
|
|
1602
1606
|
"div",
|
|
@@ -1624,17 +1628,17 @@ function xc(e) {
|
|
|
1624
1628
|
var t, n;
|
|
1625
1629
|
return /* @__PURE__ */ l("div", { className: Je.menubar, children: (n = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
|
|
1626
1630
|
const c = i.key === e.value;
|
|
1627
|
-
return /* @__PURE__ */ l(
|
|
1631
|
+
return /* @__PURE__ */ l($, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
|
|
1628
1632
|
"div",
|
|
1629
1633
|
{
|
|
1630
1634
|
id: i == null ? void 0 : i.domId,
|
|
1631
|
-
className:
|
|
1635
|
+
className: R(
|
|
1632
1636
|
Je.menubar_item,
|
|
1633
1637
|
c && Je.menubar_item_selected
|
|
1634
1638
|
),
|
|
1635
1639
|
onClick: () => {
|
|
1636
|
-
var
|
|
1637
|
-
(
|
|
1640
|
+
var o;
|
|
1641
|
+
(o = e == null ? void 0 : e.onChange) == null || o.call(e, i == null ? void 0 : i.key);
|
|
1638
1642
|
},
|
|
1639
1643
|
children: i == null ? void 0 : i.icon
|
|
1640
1644
|
}
|
|
@@ -1655,7 +1659,7 @@ const Ic = "_propertyItem_1r9fx_59", kc = "_propertyItem_icon_1r9fx_68", Sc = "_
|
|
|
1655
1659
|
};
|
|
1656
1660
|
function Pc(e) {
|
|
1657
1661
|
var s, r, h;
|
|
1658
|
-
const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system",
|
|
1662
|
+
const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system", o = (t == null ? void 0 : t.origin) !== "system";
|
|
1659
1663
|
function d() {
|
|
1660
1664
|
const u = Li(t == null ? void 0 : t.id), _ = () => {
|
|
1661
1665
|
var m;
|
|
@@ -1680,10 +1684,10 @@ function Pc(e) {
|
|
|
1680
1684
|
}
|
|
1681
1685
|
});
|
|
1682
1686
|
}
|
|
1683
|
-
async function
|
|
1687
|
+
async function a() {
|
|
1684
1688
|
const u = await i.component.getPackageSourceCode(t == null ? void 0 : t.id);
|
|
1685
1689
|
if (!u) {
|
|
1686
|
-
|
|
1690
|
+
A.warn("源码不存在");
|
|
1687
1691
|
return;
|
|
1688
1692
|
}
|
|
1689
1693
|
const _ = `${t == null ? void 0 : t.name}.js`;
|
|
@@ -1737,22 +1741,22 @@ function Pc(e) {
|
|
|
1737
1741
|
de,
|
|
1738
1742
|
{
|
|
1739
1743
|
title: "删除",
|
|
1740
|
-
className:
|
|
1744
|
+
className: R(
|
|
1741
1745
|
J.propertyItem_icon,
|
|
1742
|
-
!
|
|
1746
|
+
!o && J.propertyItem_icon_disabled
|
|
1743
1747
|
),
|
|
1744
|
-
onClick:
|
|
1748
|
+
onClick: o ? d : void 0
|
|
1745
1749
|
}
|
|
1746
1750
|
),
|
|
1747
1751
|
/* @__PURE__ */ l(
|
|
1748
1752
|
Hn,
|
|
1749
1753
|
{
|
|
1750
1754
|
title: "下载到本地",
|
|
1751
|
-
className:
|
|
1755
|
+
className: R(
|
|
1752
1756
|
J.propertyItem_icon,
|
|
1753
1757
|
!c && J.propertyItem_icon_disabled
|
|
1754
1758
|
),
|
|
1755
|
-
onClick:
|
|
1759
|
+
onClick: o ? a : void 0
|
|
1756
1760
|
}
|
|
1757
1761
|
)
|
|
1758
1762
|
] })
|
|
@@ -1783,9 +1787,9 @@ self.MonacoEnvironment = {
|
|
|
1783
1787
|
}
|
|
1784
1788
|
};
|
|
1785
1789
|
function X(e) {
|
|
1786
|
-
const t =
|
|
1787
|
-
return
|
|
1788
|
-
var c,
|
|
1790
|
+
const t = j(null), n = j();
|
|
1791
|
+
return E(() => {
|
|
1792
|
+
var c, o;
|
|
1789
1793
|
const i = Ni.editor.create(t.current, {
|
|
1790
1794
|
theme: "vs-light",
|
|
1791
1795
|
value: e == null ? void 0 : e.value,
|
|
@@ -1804,31 +1808,31 @@ function X(e) {
|
|
|
1804
1808
|
},
|
|
1805
1809
|
readOnlyMessage: {
|
|
1806
1810
|
value: "禁止编辑",
|
|
1807
|
-
...(
|
|
1811
|
+
...(o = e == null ? void 0 : e.options) == null ? void 0 : o.readOnlyMessage
|
|
1808
1812
|
}
|
|
1809
1813
|
});
|
|
1810
1814
|
return i.onDidChangeModelContent(() => {
|
|
1811
|
-
var
|
|
1815
|
+
var a;
|
|
1812
1816
|
const d = i.getValue();
|
|
1813
|
-
(
|
|
1817
|
+
(a = e == null ? void 0 : e.onChange) == null || a.call(e, d);
|
|
1814
1818
|
}), n.current = i, () => {
|
|
1815
1819
|
i.dispose();
|
|
1816
1820
|
};
|
|
1817
1821
|
}, [e == null ? void 0 : e.language]), _t(() => {
|
|
1818
|
-
var c,
|
|
1822
|
+
var c, o, d, a;
|
|
1819
1823
|
if (!(n != null && n.current)) {
|
|
1820
1824
|
console.error("monaco-editor init failed.");
|
|
1821
1825
|
return;
|
|
1822
1826
|
}
|
|
1823
1827
|
const i = `${(e == null ? void 0 : e.value) || ""}`;
|
|
1824
|
-
i !== ((
|
|
1828
|
+
i !== ((o = (c = n == null ? void 0 : n.current) == null ? void 0 : c.getValue) == null ? void 0 : o.call(c)) && ((a = (d = n.current) == null ? void 0 : d.setValue) == null || a.call(d, i));
|
|
1825
1829
|
}, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: We.jsonEditor, style: e == null ? void 0 : e.style, children: [
|
|
1826
1830
|
/* @__PURE__ */ l("div", { ref: t, className: We.jsonEditor_render }),
|
|
1827
1831
|
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Ht, { style: { fontSize: 20 } }) })
|
|
1828
1832
|
] });
|
|
1829
1833
|
}
|
|
1830
1834
|
const Tc = ue((e) => {
|
|
1831
|
-
const { params: t } = e, [n] =
|
|
1835
|
+
const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), o = j("");
|
|
1832
1836
|
function d() {
|
|
1833
1837
|
n.validateFields(["url"]).then((s) => {
|
|
1834
1838
|
var r;
|
|
@@ -1836,21 +1840,21 @@ const Tc = ue((e) => {
|
|
|
1836
1840
|
var u, _;
|
|
1837
1841
|
return (_ = (u = s == null ? void 0 : s.url) == null ? void 0 : u.startsWith) == null ? void 0 : _.call(u, h);
|
|
1838
1842
|
})) {
|
|
1839
|
-
|
|
1843
|
+
A.error("地址格式不正确");
|
|
1840
1844
|
return;
|
|
1841
1845
|
}
|
|
1842
1846
|
c(!0), (r = it(s == null ? void 0 : s.url)) == null || r.then((h) => {
|
|
1843
|
-
c(!1),
|
|
1847
|
+
c(!1), o.current = s == null ? void 0 : s.url, n.setFieldsValue({
|
|
1844
1848
|
content: h
|
|
1845
1849
|
});
|
|
1846
1850
|
});
|
|
1847
1851
|
});
|
|
1848
1852
|
}
|
|
1849
|
-
async function
|
|
1853
|
+
async function a() {
|
|
1850
1854
|
var r, h;
|
|
1851
1855
|
const s = n.getFieldValue("content");
|
|
1852
|
-
s ||
|
|
1853
|
-
url:
|
|
1856
|
+
s || A.warn("文本内容不能为空"), !(t != null && t.beforeOk && !await Promise.resolve((r = t == null ? void 0 : t.beforeOk) == null ? void 0 : r.call(t, s))) && ((h = e == null ? void 0 : e.onOk) == null || h.call(e, {
|
|
1857
|
+
url: o.current,
|
|
1854
1858
|
content: s
|
|
1855
1859
|
}));
|
|
1856
1860
|
}
|
|
@@ -1865,13 +1869,13 @@ const Tc = ue((e) => {
|
|
|
1865
1869
|
afterClose: e == null ? void 0 : e.afterClose,
|
|
1866
1870
|
onCancel: e == null ? void 0 : e.onCancel,
|
|
1867
1871
|
bodyStyle: { paddingBottom: 0 },
|
|
1868
|
-
onOk:
|
|
1869
|
-
children: /* @__PURE__ */ g(
|
|
1870
|
-
/* @__PURE__ */ l(
|
|
1871
|
-
/* @__PURE__ */ l(
|
|
1872
|
+
onOk: a,
|
|
1873
|
+
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 2 }, children: [
|
|
1874
|
+
/* @__PURE__ */ l(M.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1875
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
|
|
1872
1876
|
/* @__PURE__ */ l(K, { type: "primary", onClick: d, loading: i, children: "读取" })
|
|
1873
1877
|
] }) }),
|
|
1874
|
-
/* @__PURE__ */ l(
|
|
1878
|
+
/* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
|
|
1875
1879
|
] })
|
|
1876
1880
|
}
|
|
1877
1881
|
);
|
|
@@ -1880,10 +1884,10 @@ const Tc = ue((e) => {
|
|
|
1880
1884
|
{ key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
|
|
1881
1885
|
];
|
|
1882
1886
|
function $c(e) {
|
|
1883
|
-
const t =
|
|
1887
|
+
const t = j(), n = j(""), i = Tc({
|
|
1884
1888
|
onOk({ url: s }) {
|
|
1885
1889
|
if (!t.current) {
|
|
1886
|
-
|
|
1890
|
+
A.warn("package新增失败");
|
|
1887
1891
|
return;
|
|
1888
1892
|
}
|
|
1889
1893
|
t.current.origin = "remote", t.current.originData = s, c(t.current, n.current);
|
|
@@ -1891,29 +1895,29 @@ function $c(e) {
|
|
|
1891
1895
|
});
|
|
1892
1896
|
function c(s, r) {
|
|
1893
1897
|
var h;
|
|
1894
|
-
if (!s) return
|
|
1898
|
+
if (!s) return A.warn("不包含组件包");
|
|
1895
1899
|
(h = e == null ? void 0 : e.onAdd) == null || h.call(e, s, r || "");
|
|
1896
1900
|
}
|
|
1897
|
-
function
|
|
1901
|
+
function o(s, r) {
|
|
1898
1902
|
var h;
|
|
1899
|
-
if (!(s != null && s.length)) return
|
|
1903
|
+
if (!(s != null && s.length)) return A.warn("不包含组件包");
|
|
1900
1904
|
(h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
|
|
1901
1905
|
}
|
|
1902
1906
|
async function d(s) {
|
|
1903
|
-
var
|
|
1904
|
-
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [],
|
|
1907
|
+
var x;
|
|
1908
|
+
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
|
|
1905
1909
|
for (const b in _) {
|
|
1906
|
-
if (!((
|
|
1910
|
+
if (!((x = b == null ? void 0 : b.endsWith) != null && x.call(b, ".js")))
|
|
1907
1911
|
continue;
|
|
1908
|
-
const f = await _[b].async("text"),
|
|
1909
|
-
|
|
1912
|
+
const f = await _[b].async("text"), v = await Te(f);
|
|
1913
|
+
v && (v.origin = "local", m.push(v), y.push(f));
|
|
1910
1914
|
}
|
|
1911
1915
|
return {
|
|
1912
1916
|
pkgs: m,
|
|
1913
|
-
codes:
|
|
1917
|
+
codes: y
|
|
1914
1918
|
};
|
|
1915
1919
|
}
|
|
1916
|
-
async function
|
|
1920
|
+
async function a(s) {
|
|
1917
1921
|
let r = "";
|
|
1918
1922
|
switch (s) {
|
|
1919
1923
|
case "local":
|
|
@@ -1922,23 +1926,23 @@ function $c(e) {
|
|
|
1922
1926
|
return;
|
|
1923
1927
|
if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
|
|
1924
1928
|
const { pkgs: u, codes: _ } = await d(h);
|
|
1925
|
-
|
|
1929
|
+
o(u, _);
|
|
1926
1930
|
return;
|
|
1927
1931
|
}
|
|
1928
1932
|
if ((h == null ? void 0 : h.type) === "text/javascript") {
|
|
1929
1933
|
r = await ln(h);
|
|
1930
1934
|
const u = await Te(r);
|
|
1931
1935
|
if (!u)
|
|
1932
|
-
return
|
|
1936
|
+
return A.warn("文本内容必须为UMD或者AMD格式");
|
|
1933
1937
|
u.origin = "local", c(u, r);
|
|
1934
1938
|
return;
|
|
1935
1939
|
}
|
|
1936
|
-
|
|
1940
|
+
A.warn("只能上传 .js 和 .zip 文件");
|
|
1937
1941
|
break;
|
|
1938
1942
|
case "remote":
|
|
1939
1943
|
i.open({
|
|
1940
1944
|
async beforeOk(u) {
|
|
1941
|
-
return n.current = u, t.current = await Te(u), t.current ||
|
|
1945
|
+
return n.current = u, t.current = await Te(u), t.current || A.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
|
|
1942
1946
|
}
|
|
1943
1947
|
});
|
|
1944
1948
|
break;
|
|
@@ -1951,7 +1955,7 @@ function $c(e) {
|
|
|
1951
1955
|
menu: {
|
|
1952
1956
|
items: zc,
|
|
1953
1957
|
onClick({ key: s }) {
|
|
1954
|
-
|
|
1958
|
+
a(s);
|
|
1955
1959
|
}
|
|
1956
1960
|
},
|
|
1957
1961
|
children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, type: "primary", children: e == null ? void 0 : e.children })
|
|
@@ -1975,9 +1979,9 @@ function Fc(e) {
|
|
|
1975
1979
|
It(Pt, "测试包1.js");
|
|
1976
1980
|
break;
|
|
1977
1981
|
case "zip-demo":
|
|
1978
|
-
const c = await it(Ot),
|
|
1979
|
-
d.file("测试包1.js",
|
|
1980
|
-
pt(
|
|
1982
|
+
const c = await it(Ot), o = await it(Pt), d = new ft();
|
|
1983
|
+
d.file("测试包1.js", o), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(a) {
|
|
1984
|
+
pt(a, "组件包集合.zip");
|
|
1981
1985
|
});
|
|
1982
1986
|
break;
|
|
1983
1987
|
case "all":
|
|
@@ -2004,11 +2008,11 @@ const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Bt = {
|
|
|
2004
2008
|
property_header: Kc
|
|
2005
2009
|
};
|
|
2006
2010
|
function Uc() {
|
|
2007
|
-
var
|
|
2011
|
+
var a;
|
|
2008
2012
|
const e = Xt(), { engine: t } = N(), { loading: n, run: i } = Qt(
|
|
2009
2013
|
async () => new Promise((s) => {
|
|
2010
2014
|
setTimeout(() => {
|
|
2011
|
-
|
|
2015
|
+
A.success("刷新成功"), s();
|
|
2012
2016
|
}, 500);
|
|
2013
2017
|
}),
|
|
2014
2018
|
{
|
|
@@ -2021,7 +2025,7 @@ function Uc() {
|
|
|
2021
2025
|
t.component.savePackageSourceCode(h[m], _);
|
|
2022
2026
|
});
|
|
2023
2027
|
}
|
|
2024
|
-
function
|
|
2028
|
+
function o(s, r) {
|
|
2025
2029
|
t.component.unregisterPackage(s), t.componentNode.delete(r);
|
|
2026
2030
|
}
|
|
2027
2031
|
async function d() {
|
|
@@ -2031,10 +2035,10 @@ function Uc() {
|
|
|
2031
2035
|
let u = 0;
|
|
2032
2036
|
if (r.forEach((_, m) => {
|
|
2033
2037
|
if (!_) return;
|
|
2034
|
-
const
|
|
2035
|
-
h.file(`${
|
|
2038
|
+
const y = e[m];
|
|
2039
|
+
h.file(`${y.name}.js`, _), u++;
|
|
2036
2040
|
}), !u) {
|
|
2037
|
-
|
|
2041
|
+
A.warn("暂无组件包");
|
|
2038
2042
|
return;
|
|
2039
2043
|
}
|
|
2040
2044
|
h.generateAsync({ type: "blob" }).then(function(_) {
|
|
@@ -2081,12 +2085,12 @@ function Uc() {
|
|
|
2081
2085
|
] })
|
|
2082
2086
|
] }),
|
|
2083
2087
|
!e.length && /* @__PURE__ */ l(U, {}),
|
|
2084
|
-
(
|
|
2088
|
+
(a = e == null ? void 0 : e.map) == null ? void 0 : a.call(e, (s) => /* @__PURE__ */ l(
|
|
2085
2089
|
Pc,
|
|
2086
2090
|
{
|
|
2087
2091
|
data: s,
|
|
2088
2092
|
onDelete: (r, h) => {
|
|
2089
|
-
|
|
2093
|
+
o(r, h);
|
|
2090
2094
|
}
|
|
2091
2095
|
},
|
|
2092
2096
|
s.id
|
|
@@ -2102,7 +2106,7 @@ const qc = "_favorites_1mbr5_59", Jc = {
|
|
|
2102
2106
|
favoriteItem_footer: Xc
|
|
2103
2107
|
};
|
|
2104
2108
|
function Yc(e) {
|
|
2105
|
-
const { favorite: t } = e, n =
|
|
2109
|
+
const { favorite: t } = e, n = j(null), i = j(null);
|
|
2106
2110
|
return rn(n, {
|
|
2107
2111
|
type: "create-favorite",
|
|
2108
2112
|
data: {
|
|
@@ -2116,15 +2120,15 @@ function Yc(e) {
|
|
|
2116
2120
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
|
|
2117
2121
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
|
|
2118
2122
|
/* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
|
|
2119
|
-
/* @__PURE__ */ l(
|
|
2123
|
+
/* @__PURE__ */ l($, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
|
|
2120
2124
|
var c;
|
|
2121
2125
|
return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
|
|
2122
2126
|
} }) }),
|
|
2123
|
-
/* @__PURE__ */ l(
|
|
2127
|
+
/* @__PURE__ */ l($, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
|
|
2124
2128
|
var c;
|
|
2125
2129
|
return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
|
|
2126
2130
|
} }) }),
|
|
2127
|
-
/* @__PURE__ */ l(
|
|
2131
|
+
/* @__PURE__ */ l($, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
|
|
2128
2132
|
var c;
|
|
2129
2133
|
return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
|
|
2130
2134
|
} }) })
|
|
@@ -2133,17 +2137,17 @@ function Yc(e) {
|
|
|
2133
2137
|
}
|
|
2134
2138
|
const Zc = ue((e) => {
|
|
2135
2139
|
var c;
|
|
2136
|
-
const [t] =
|
|
2140
|
+
const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
|
|
2137
2141
|
function i() {
|
|
2138
|
-
t.validateFields().then((
|
|
2142
|
+
t.validateFields().then((o) => {
|
|
2139
2143
|
var d;
|
|
2140
2144
|
(d = e == null ? void 0 : e.onOk) == null || d.call(e, {
|
|
2141
2145
|
...n,
|
|
2142
|
-
name:
|
|
2146
|
+
name: o == null ? void 0 : o.name
|
|
2143
2147
|
});
|
|
2144
2148
|
});
|
|
2145
2149
|
}
|
|
2146
|
-
return
|
|
2150
|
+
return E(() => {
|
|
2147
2151
|
e != null && e.visible && t.setFieldsValue({
|
|
2148
2152
|
name: n == null ? void 0 : n.name
|
|
2149
2153
|
});
|
|
@@ -2157,8 +2161,8 @@ const Zc = ue((e) => {
|
|
|
2157
2161
|
afterClose: e == null ? void 0 : e.afterClose,
|
|
2158
2162
|
bodyStyle: { paddingBottom: 6 },
|
|
2159
2163
|
footer: null,
|
|
2160
|
-
children: /* @__PURE__ */ l(
|
|
2161
|
-
/* @__PURE__ */ l(
|
|
2164
|
+
children: /* @__PURE__ */ l(M, { form: t, children: /* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请填写名称" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2165
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
|
|
2162
2166
|
/* @__PURE__ */ l(K, { type: "primary", onClick: i, children: "保存" })
|
|
2163
2167
|
] }) }) })
|
|
2164
2168
|
}
|
|
@@ -2168,7 +2172,7 @@ const Zc = ue((e) => {
|
|
|
2168
2172
|
favoriteDetailDialog_componentNodes: pc,
|
|
2169
2173
|
favoriteDetailDialog_item: ea
|
|
2170
2174
|
}, ta = ue((e) => {
|
|
2171
|
-
var i, c,
|
|
2175
|
+
var i, c, o, d;
|
|
2172
2176
|
const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
|
|
2173
2177
|
return /* @__PURE__ */ g(
|
|
2174
2178
|
re,
|
|
@@ -2197,8 +2201,8 @@ const Zc = ue((e) => {
|
|
|
2197
2201
|
),
|
|
2198
2202
|
/* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_componentNodes, children: [
|
|
2199
2203
|
!((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(U, {}),
|
|
2200
|
-
(d = (
|
|
2201
|
-
const s = t.component.get(
|
|
2204
|
+
(d = (o = n == null ? void 0 : n.children) == null ? void 0 : o.map) == null ? void 0 : d.call(o, (a) => {
|
|
2205
|
+
const s = t.component.get(a.cId);
|
|
2202
2206
|
return /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_item, children: [
|
|
2203
2207
|
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2204
2208
|
xe,
|
|
@@ -2207,8 +2211,8 @@ const Zc = ue((e) => {
|
|
|
2207
2211
|
style: { maxWidth: "80%", maxHeight: "80%" }
|
|
2208
2212
|
}
|
|
2209
2213
|
) }),
|
|
2210
|
-
/* @__PURE__ */ l("span", { title:
|
|
2211
|
-
] },
|
|
2214
|
+
/* @__PURE__ */ l("span", { title: a.name, children: a.name })
|
|
2215
|
+
] }, a.id);
|
|
2212
2216
|
})
|
|
2213
2217
|
] })
|
|
2214
2218
|
]
|
|
@@ -2217,32 +2221,32 @@ const Zc = ue((e) => {
|
|
|
2217
2221
|
});
|
|
2218
2222
|
function na() {
|
|
2219
2223
|
const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
|
|
2220
|
-
onOk(
|
|
2221
|
-
e.favorites.update(
|
|
2224
|
+
onOk(o) {
|
|
2225
|
+
e.favorites.update(o.id, o);
|
|
2222
2226
|
}
|
|
2223
2227
|
});
|
|
2224
|
-
function c(
|
|
2225
|
-
e.favorites.delete(
|
|
2228
|
+
function c(o) {
|
|
2229
|
+
e.favorites.delete(o);
|
|
2226
2230
|
}
|
|
2227
2231
|
return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
|
|
2228
2232
|
!(t != null && t.length) && /* @__PURE__ */ l(U, {}),
|
|
2229
|
-
t.map((
|
|
2233
|
+
t.map((o) => /* @__PURE__ */ l(
|
|
2230
2234
|
Yc,
|
|
2231
2235
|
{
|
|
2232
|
-
favorite:
|
|
2233
|
-
onDelete: () => c(
|
|
2236
|
+
favorite: o,
|
|
2237
|
+
onDelete: () => c(o),
|
|
2234
2238
|
onEdit: () => {
|
|
2235
2239
|
i.open({
|
|
2236
|
-
favorite:
|
|
2240
|
+
favorite: o
|
|
2237
2241
|
});
|
|
2238
2242
|
},
|
|
2239
2243
|
onDetail: () => {
|
|
2240
2244
|
n.open({
|
|
2241
|
-
favorite:
|
|
2245
|
+
favorite: o
|
|
2242
2246
|
});
|
|
2243
2247
|
}
|
|
2244
2248
|
},
|
|
2245
|
-
|
|
2249
|
+
o.id
|
|
2246
2250
|
))
|
|
2247
2251
|
] });
|
|
2248
2252
|
}
|
|
@@ -2251,19 +2255,19 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
|
|
|
2251
2255
|
pages_head: la,
|
|
2252
2256
|
pages_body: ca
|
|
2253
2257
|
}, aa = ue((e) => {
|
|
2254
|
-
const { params: t } = e, [n] =
|
|
2255
|
-
function i(
|
|
2258
|
+
const { params: t } = e, [n] = M.useForm();
|
|
2259
|
+
function i(o) {
|
|
2256
2260
|
return {
|
|
2257
|
-
name:
|
|
2261
|
+
name: o,
|
|
2258
2262
|
id: ut(),
|
|
2259
2263
|
parentId: t == null ? void 0 : t.parentId
|
|
2260
2264
|
};
|
|
2261
2265
|
}
|
|
2262
2266
|
function c() {
|
|
2263
|
-
n.validateFields().then((
|
|
2267
|
+
n.validateFields().then((o) => {
|
|
2264
2268
|
var d;
|
|
2265
2269
|
(d = e == null ? void 0 : e.onOk) == null || d.call(e, {
|
|
2266
|
-
page: i(
|
|
2270
|
+
page: i(o.name),
|
|
2267
2271
|
parentId: t == null ? void 0 : t.parentId
|
|
2268
2272
|
});
|
|
2269
2273
|
});
|
|
@@ -2281,15 +2285,15 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
|
|
|
2281
2285
|
bodyStyle: {
|
|
2282
2286
|
padding: "12px 24px 12px 12px"
|
|
2283
2287
|
},
|
|
2284
|
-
children: /* @__PURE__ */ g(
|
|
2285
|
-
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(
|
|
2286
|
-
/* @__PURE__ */ l(
|
|
2288
|
+
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 4 }, children: [
|
|
2289
|
+
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(M.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
|
|
2290
|
+
/* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
|
|
2287
2291
|
] })
|
|
2288
2292
|
}
|
|
2289
2293
|
);
|
|
2290
2294
|
});
|
|
2291
2295
|
function oa() {
|
|
2292
|
-
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [
|
|
2296
|
+
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [o, d, a] = oi([]), s = wi(), r = Ei(), h = aa({
|
|
2293
2297
|
onOk({ page: b, parentId: I }) {
|
|
2294
2298
|
if (e.page.insert(b, I), Re(b.id), I) {
|
|
2295
2299
|
const f = Array.from(new Set(t).add(I));
|
|
@@ -2302,7 +2306,7 @@ function oa() {
|
|
|
2302
2306
|
}
|
|
2303
2307
|
function _(b) {
|
|
2304
2308
|
var I;
|
|
2305
|
-
return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (f,
|
|
2309
|
+
return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (f, v) => f.concat([v.key, ..._(v == null ? void 0 : v.children)]), [])) || [];
|
|
2306
2310
|
}
|
|
2307
2311
|
function m(b) {
|
|
2308
2312
|
h.open({
|
|
@@ -2310,50 +2314,50 @@ function oa() {
|
|
|
2310
2314
|
parentName: b.name
|
|
2311
2315
|
});
|
|
2312
2316
|
}
|
|
2313
|
-
function
|
|
2314
|
-
var
|
|
2317
|
+
function y(b, I = {}) {
|
|
2318
|
+
var v, C, w, P, T, q, V;
|
|
2315
2319
|
const f = [b.id, ..._(I[b.id].children)];
|
|
2316
|
-
if (((
|
|
2317
|
-
|
|
2320
|
+
if (((v = a.current) == null ? void 0 : v.length) === 1 && (f != null && f.includes((w = (C = a.current) == null ? void 0 : C[0]) == null ? void 0 : w.key))) {
|
|
2321
|
+
A.warn("至少保留一个顶层页");
|
|
2318
2322
|
return;
|
|
2319
2323
|
}
|
|
2320
2324
|
if (f.includes(e.config.getCurrentPage())) {
|
|
2321
|
-
let Me = (
|
|
2322
|
-
f.includes(Me) && (Me = (V = (q =
|
|
2325
|
+
let Me = (T = (P = a.current) == null ? void 0 : P[0]) == null ? void 0 : T.key;
|
|
2326
|
+
f.includes(Me) && (Me = (V = (q = a.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Me);
|
|
2323
2327
|
}
|
|
2324
2328
|
e.page.delete(f);
|
|
2325
2329
|
}
|
|
2326
|
-
function
|
|
2330
|
+
function x(b, I = {}) {
|
|
2327
2331
|
const f = [];
|
|
2328
|
-
return b.forEach((
|
|
2329
|
-
var
|
|
2330
|
-
const
|
|
2331
|
-
key: (
|
|
2332
|
-
title: (
|
|
2333
|
-
/* @__PURE__ */ l("span", { children:
|
|
2332
|
+
return b.forEach((v) => {
|
|
2333
|
+
var P, T, q;
|
|
2334
|
+
const C = I[v.id], w = I[v.id] = {
|
|
2335
|
+
key: (C == null ? void 0 : C.key) || v.id,
|
|
2336
|
+
title: (C == null ? void 0 : C.title) || /* @__PURE__ */ g("span", { children: [
|
|
2337
|
+
/* @__PURE__ */ l("span", { children: v.name }),
|
|
2334
2338
|
/* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
|
|
2335
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(
|
|
2336
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => v
|
|
2339
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(v), children: "新增" }),
|
|
2340
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(v, I), children: "删除" })
|
|
2337
2341
|
] })
|
|
2338
2342
|
] }),
|
|
2339
|
-
children: (
|
|
2343
|
+
children: (C == null ? void 0 : C.children) || []
|
|
2340
2344
|
};
|
|
2341
|
-
if (
|
|
2342
|
-
(q = (
|
|
2345
|
+
if (v != null && v.parentId) {
|
|
2346
|
+
(q = (T = I[P = v == null ? void 0 : v.parentId] || (I[P] = {
|
|
2343
2347
|
key: "",
|
|
2344
2348
|
title: "",
|
|
2345
2349
|
children: []
|
|
2346
|
-
})) == null ? void 0 :
|
|
2350
|
+
})) == null ? void 0 : T.children) == null || q.push(w);
|
|
2347
2351
|
return;
|
|
2348
2352
|
}
|
|
2349
|
-
f.push(
|
|
2353
|
+
f.push(w);
|
|
2350
2354
|
}), f;
|
|
2351
2355
|
}
|
|
2352
|
-
return
|
|
2356
|
+
return E(() => {
|
|
2353
2357
|
n(e.config.getConfig().expandedPageIds || []);
|
|
2354
|
-
}, []),
|
|
2355
|
-
d(
|
|
2356
|
-
}, [s]),
|
|
2358
|
+
}, []), E(() => {
|
|
2359
|
+
d(x(s));
|
|
2360
|
+
}, [s]), E(() => {
|
|
2357
2361
|
c([r]);
|
|
2358
2362
|
}, [r]), /* @__PURE__ */ g("div", { className: Ge.pages, children: [
|
|
2359
2363
|
/* @__PURE__ */ g("div", { className: Ge.pages_head, children: [
|
|
@@ -2378,7 +2382,7 @@ function oa() {
|
|
|
2378
2382
|
multiple: !1,
|
|
2379
2383
|
defaultExpandAll: !0,
|
|
2380
2384
|
icon: /* @__PURE__ */ l(Un, {}),
|
|
2381
|
-
treeData:
|
|
2385
|
+
treeData: o,
|
|
2382
2386
|
selectedKeys: i,
|
|
2383
2387
|
expandedKeys: t,
|
|
2384
2388
|
onExpand: u,
|
|
@@ -2397,7 +2401,7 @@ const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_bo
|
|
|
2397
2401
|
history_item_gray: ha
|
|
2398
2402
|
};
|
|
2399
2403
|
function ga() {
|
|
2400
|
-
var c,
|
|
2404
|
+
var c, o, d, a;
|
|
2401
2405
|
const { engine: e } = N(), t = cn(), n = (c = t.current) == null ? void 0 : c.stepId;
|
|
2402
2406
|
function i(s) {
|
|
2403
2407
|
e.history.isPass(s) && n === s ? bt() : Qi(s);
|
|
@@ -2408,10 +2412,10 @@ function ga() {
|
|
|
2408
2412
|
t == null ? void 0 : t.maxSize
|
|
2409
2413
|
] }) }),
|
|
2410
2414
|
/* @__PURE__ */ g("div", { className: _e.history_body, children: [
|
|
2411
|
-
(d = (
|
|
2415
|
+
(d = (o = t == null ? void 0 : t.list) == null ? void 0 : o.map) == null ? void 0 : d.call(o, (s) => /* @__PURE__ */ l(
|
|
2412
2416
|
"div",
|
|
2413
2417
|
{
|
|
2414
|
-
className:
|
|
2418
|
+
className: R(_e.history_item, !s.isPass && _e.history_item_gray),
|
|
2415
2419
|
onClick: () => {
|
|
2416
2420
|
i(s.stepId);
|
|
2417
2421
|
},
|
|
@@ -2419,12 +2423,12 @@ function ga() {
|
|
|
2419
2423
|
},
|
|
2420
2424
|
s.stepId
|
|
2421
2425
|
)),
|
|
2422
|
-
!((
|
|
2426
|
+
!((a = t == null ? void 0 : t.list) != null && a.length) && /* @__PURE__ */ l(U, {})
|
|
2423
2427
|
] })
|
|
2424
2428
|
] });
|
|
2425
2429
|
}
|
|
2426
2430
|
function _a() {
|
|
2427
|
-
const { engine: e } = N(), [t, n] = se(), i =
|
|
2431
|
+
const { engine: e } = N(), [t, n] = se(), i = L(() => [
|
|
2428
2432
|
{
|
|
2429
2433
|
key: "library",
|
|
2430
2434
|
domId: "rbs-library",
|
|
@@ -2467,21 +2471,21 @@ function _a() {
|
|
|
2467
2471
|
title: t("menu.bar.history"),
|
|
2468
2472
|
children: /* @__PURE__ */ l(ga, {})
|
|
2469
2473
|
}
|
|
2470
|
-
], [n.language]), c = Ee((r) => r.currentMenu), [
|
|
2474
|
+
], [n.language]), c = Ee((r) => r.currentMenu), [o, d] = S(""), a = L(() => {
|
|
2471
2475
|
var r;
|
|
2472
|
-
return (r = i.find((h) => h.key ===
|
|
2473
|
-
}, [
|
|
2476
|
+
return (r = i.find((h) => h.key === o)) == null ? void 0 : r.children;
|
|
2477
|
+
}, [o]);
|
|
2474
2478
|
function s(r) {
|
|
2475
2479
|
d(r), e.config.setConfigSilently({
|
|
2476
2480
|
currentMenu: r
|
|
2477
2481
|
});
|
|
2478
2482
|
}
|
|
2479
|
-
return
|
|
2483
|
+
return E(() => {
|
|
2480
2484
|
const { currentMenu: r } = e.config.getConfig(), h = i.find((u) => u.key === r);
|
|
2481
2485
|
d((h == null ? void 0 : h.key) || i[0].key);
|
|
2482
2486
|
}, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
|
|
2483
|
-
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value:
|
|
2484
|
-
/* @__PURE__ */ l("div", { className: He.menu_main, children:
|
|
2487
|
+
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: o, list: i, onChange: s }) }),
|
|
2488
|
+
/* @__PURE__ */ l("div", { className: He.menu_main, children: a })
|
|
2485
2489
|
] });
|
|
2486
2490
|
}
|
|
2487
2491
|
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
|
|
@@ -2543,13 +2547,13 @@ function Ha(e, t, n) {
|
|
|
2543
2547
|
function c() {
|
|
2544
2548
|
i.dh = -n, i.dy = n;
|
|
2545
2549
|
}
|
|
2546
|
-
function
|
|
2550
|
+
function o() {
|
|
2547
2551
|
i.dw = -t, i.dx = t;
|
|
2548
2552
|
}
|
|
2549
2553
|
function d() {
|
|
2550
2554
|
i.dh = n;
|
|
2551
2555
|
}
|
|
2552
|
-
function
|
|
2556
|
+
function a() {
|
|
2553
2557
|
i.dw = t;
|
|
2554
2558
|
}
|
|
2555
2559
|
switch (e) {
|
|
@@ -2557,25 +2561,25 @@ function Ha(e, t, n) {
|
|
|
2557
2561
|
c();
|
|
2558
2562
|
break;
|
|
2559
2563
|
case "top_left":
|
|
2560
|
-
c(),
|
|
2564
|
+
c(), o();
|
|
2561
2565
|
break;
|
|
2562
2566
|
case "top_right":
|
|
2563
|
-
c(),
|
|
2567
|
+
c(), a();
|
|
2564
2568
|
break;
|
|
2565
2569
|
case "bottom":
|
|
2566
2570
|
d();
|
|
2567
2571
|
break;
|
|
2568
2572
|
case "bottom_left":
|
|
2569
|
-
d(),
|
|
2573
|
+
d(), o();
|
|
2570
2574
|
break;
|
|
2571
2575
|
case "bottom_right":
|
|
2572
|
-
d(),
|
|
2576
|
+
d(), a();
|
|
2573
2577
|
break;
|
|
2574
2578
|
case "left":
|
|
2575
|
-
|
|
2579
|
+
o();
|
|
2576
2580
|
break;
|
|
2577
2581
|
case "right":
|
|
2578
|
-
|
|
2582
|
+
a();
|
|
2579
2583
|
break;
|
|
2580
2584
|
}
|
|
2581
2585
|
return i;
|
|
@@ -2598,11 +2602,11 @@ function Ka(e, t, n) {
|
|
|
2598
2602
|
height: e.height
|
|
2599
2603
|
}, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
|
|
2600
2604
|
},
|
|
2601
|
-
onMove(
|
|
2602
|
-
const
|
|
2605
|
+
onMove(o, d) {
|
|
2606
|
+
const a = Ha(n, o, d), s = i.width + a.dw, r = i.height + a.dh;
|
|
2603
2607
|
s < 0 || r < 0 || c.componentNode.update(e.id, {
|
|
2604
|
-
x: Math.round(i.x +
|
|
2605
|
-
y: Math.round(i.y +
|
|
2608
|
+
x: Math.round(i.x + a.dx),
|
|
2609
|
+
y: Math.round(i.y + a.dy),
|
|
2606
2610
|
height: Math.round(Math.max(r, 0)),
|
|
2607
2611
|
width: Math.round(Math.max(s, 0))
|
|
2608
2612
|
});
|
|
@@ -2613,44 +2617,44 @@ function Ka(e, t, n) {
|
|
|
2613
2617
|
};
|
|
2614
2618
|
}
|
|
2615
2619
|
const Ua = bn((e, t) => {
|
|
2616
|
-
const { componentNode: n } = e, i =
|
|
2620
|
+
const { componentNode: n } = e, i = j(null), [c, o] = S(!1), d = Ee((a) => a.scale);
|
|
2617
2621
|
return Cn(t, () => ({
|
|
2618
2622
|
// 经过实例
|
|
2619
2623
|
handleHover() {
|
|
2620
|
-
var
|
|
2621
|
-
(r = (s = (
|
|
2624
|
+
var a, s, r;
|
|
2625
|
+
(r = (s = (a = i.current) == null ? void 0 : a.classList) == null ? void 0 : s.add) == null || r.call(s, ie.moveItem_box_hover);
|
|
2622
2626
|
},
|
|
2623
2627
|
// 离开实例
|
|
2624
2628
|
handleUnHover() {
|
|
2625
|
-
var
|
|
2626
|
-
(r = (s = (
|
|
2629
|
+
var a, s, r;
|
|
2630
|
+
(r = (s = (a = i.current) == null ? void 0 : a.classList) == null ? void 0 : s.remove) == null || r.call(s, ie.moveItem_box_hover);
|
|
2627
2631
|
},
|
|
2628
2632
|
// 选中实例样式
|
|
2629
2633
|
handleSelected() {
|
|
2630
|
-
|
|
2634
|
+
o(!0);
|
|
2631
2635
|
},
|
|
2632
2636
|
// 取消选中实例样式
|
|
2633
2637
|
handleUnSelected() {
|
|
2634
|
-
|
|
2638
|
+
o(!1);
|
|
2635
2639
|
}
|
|
2636
|
-
})),
|
|
2640
|
+
})), L(() => /* @__PURE__ */ l(
|
|
2637
2641
|
"div",
|
|
2638
2642
|
{
|
|
2639
2643
|
[`data-${oe.componentNodeId}`]: n.id,
|
|
2640
2644
|
ref: i,
|
|
2641
|
-
className:
|
|
2645
|
+
className: R(
|
|
2642
2646
|
ie.moveItem_box,
|
|
2643
2647
|
c && ie.moveItem_box_selected,
|
|
2644
2648
|
n.lock && ie.moveItem_box_lock
|
|
2645
2649
|
),
|
|
2646
|
-
children: c && !n.lock && Ra.map((
|
|
2650
|
+
children: c && !n.lock && Ra.map((a) => /* @__PURE__ */ l(
|
|
2647
2651
|
"div",
|
|
2648
2652
|
{
|
|
2649
2653
|
style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
|
|
2650
|
-
className: ie[`dragPoint_${
|
|
2651
|
-
[`data-${oe.dragDirection}`]:
|
|
2654
|
+
className: ie[`dragPoint_${a}`],
|
|
2655
|
+
[`data-${oe.dragDirection}`]: a
|
|
2652
2656
|
},
|
|
2653
|
-
|
|
2657
|
+
a
|
|
2654
2658
|
))
|
|
2655
2659
|
}
|
|
2656
2660
|
), [n.lock, c, d]);
|
|
@@ -2659,18 +2663,18 @@ function qa(e) {
|
|
|
2659
2663
|
var d;
|
|
2660
2664
|
const { engine: t } = N(), [n, i] = S(
|
|
2661
2665
|
e == null ? void 0 : e.componentNode
|
|
2662
|
-
), c = n ? (n == null ? void 0 : n.show) ?? !0 : !1,
|
|
2666
|
+
), c = n ? (n == null ? void 0 : n.show) ?? !0 : !1, o = L(
|
|
2663
2667
|
() => t.component.get(e == null ? void 0 : e.componentNode.cId),
|
|
2664
2668
|
[(d = e == null ? void 0 : e.componentNode) == null ? void 0 : d.cId, e == null ? void 0 : e.packages]
|
|
2665
2669
|
);
|
|
2666
|
-
return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload:
|
|
2667
|
-
i({ ...
|
|
2670
|
+
return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: a }) => {
|
|
2671
|
+
i({ ...a });
|
|
2668
2672
|
})), _t(() => {
|
|
2669
2673
|
i(e == null ? void 0 : e.componentNode);
|
|
2670
|
-
}, [e == null ? void 0 : e.componentNode]),
|
|
2674
|
+
}, [e == null ? void 0 : e.componentNode]), o && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: o }) : /* @__PURE__ */ l(W, {});
|
|
2671
2675
|
}
|
|
2672
2676
|
function Ja(e) {
|
|
2673
|
-
const { component: t, componentNode: n } = e, i = tn(n), c =
|
|
2677
|
+
const { component: t, componentNode: n } = e, i = tn(n), c = j(null), { dataSource: o, requestInstance: d } = gi(n), a = _i(n.id), s = mi(n.id), r = j(null), h = fi({
|
|
2674
2678
|
id: n.id,
|
|
2675
2679
|
// 经过实例
|
|
2676
2680
|
handleHover() {
|
|
@@ -2735,8 +2739,8 @@ function Ja(e) {
|
|
|
2735
2739
|
t.component,
|
|
2736
2740
|
{
|
|
2737
2741
|
useExpose: s,
|
|
2738
|
-
handleTrigger:
|
|
2739
|
-
dataSource:
|
|
2742
|
+
handleTrigger: a,
|
|
2743
|
+
dataSource: o,
|
|
2740
2744
|
options: n.options,
|
|
2741
2745
|
width: n.width,
|
|
2742
2746
|
height: n.height,
|
|
@@ -2757,8 +2761,8 @@ function Va(e, t) {
|
|
|
2757
2761
|
if (!c || e.lock && n && !i)
|
|
2758
2762
|
return;
|
|
2759
2763
|
t.stopPropagation();
|
|
2760
|
-
const
|
|
2761
|
-
if (n ||
|
|
2764
|
+
const o = Yt(t);
|
|
2765
|
+
if (n || o) {
|
|
2762
2766
|
if (c.instance.isSelected(e.id)) {
|
|
2763
2767
|
i && c.instance.unselect(e.id);
|
|
2764
2768
|
return;
|
|
@@ -2776,13 +2780,13 @@ function Ga(e) {
|
|
|
2776
2780
|
if (!n)
|
|
2777
2781
|
throw new Error("dom must be set.");
|
|
2778
2782
|
let i = [], c = !1;
|
|
2779
|
-
const
|
|
2780
|
-
let d = !1,
|
|
2783
|
+
const o = n.style.pointerEvents;
|
|
2784
|
+
let d = !1, a;
|
|
2781
2785
|
return {
|
|
2782
2786
|
onStart() {
|
|
2783
2787
|
return ae.set("move"), setTimeout(() => {
|
|
2784
2788
|
let { list: r, showCount: h } = Za();
|
|
2785
|
-
i = r, c = h < 300,
|
|
2789
|
+
i = r, c = h < 300, a = Vt(
|
|
2786
2790
|
(u, _) => {
|
|
2787
2791
|
Xa(i, c, u, _);
|
|
2788
2792
|
},
|
|
@@ -2794,30 +2798,30 @@ function Ga(e) {
|
|
|
2794
2798
|
}), !1;
|
|
2795
2799
|
},
|
|
2796
2800
|
onMove(r, h) {
|
|
2797
|
-
d || (n.style.pointerEvents = "none", d = !0),
|
|
2801
|
+
d || (n.style.pointerEvents = "none", d = !0), a == null || a(r, h);
|
|
2798
2802
|
},
|
|
2799
2803
|
onEnd(r, h) {
|
|
2800
|
-
ae.revoke(), d && (n.style.pointerEvents =
|
|
2804
|
+
ae.revoke(), d && (n.style.pointerEvents = o, Ya(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, a = void 0);
|
|
2801
2805
|
}
|
|
2802
2806
|
};
|
|
2803
2807
|
}
|
|
2804
2808
|
function Xa(e, t, n, i) {
|
|
2805
2809
|
e.forEach((c) => {
|
|
2806
2810
|
if (!c.show) return;
|
|
2807
|
-
const
|
|
2811
|
+
const o = c.containerDom;
|
|
2808
2812
|
if (t)
|
|
2809
|
-
|
|
2813
|
+
o.style.transform = `translate3d(${n}px,${i}px, 0)`;
|
|
2810
2814
|
else {
|
|
2811
2815
|
const d = c.componentNode;
|
|
2812
|
-
|
|
2816
|
+
o.style.left = `${d.x + n}px`, o.style.top = `${d.y + i}px`;
|
|
2813
2817
|
}
|
|
2814
2818
|
});
|
|
2815
2819
|
}
|
|
2816
2820
|
function Ya(e, t, n, i) {
|
|
2817
2821
|
const c = k.getActiveEngine();
|
|
2818
|
-
c && e.forEach((
|
|
2819
|
-
|
|
2820
|
-
const d =
|
|
2822
|
+
c && e.forEach((o) => {
|
|
2823
|
+
o != null && o.show && t && o.containerDom.style.removeProperty("transform");
|
|
2824
|
+
const d = o == null ? void 0 : o.componentNode;
|
|
2821
2825
|
d && c.componentNode.update(d.id, {
|
|
2822
2826
|
x: Math.round(n + ((d == null ? void 0 : d.x) || 0)),
|
|
2823
2827
|
y: Math.round(i + ((d == null ? void 0 : d.y) || 0))
|
|
@@ -2828,16 +2832,16 @@ function Za() {
|
|
|
2828
2832
|
const e = k.getActiveEngine();
|
|
2829
2833
|
return e ? Oe().reduce(
|
|
2830
2834
|
(n, i) => {
|
|
2831
|
-
var d,
|
|
2835
|
+
var d, a, s, r;
|
|
2832
2836
|
const c = i.show ?? !0;
|
|
2833
2837
|
c && n.showCount++;
|
|
2834
|
-
const
|
|
2838
|
+
const o = {
|
|
2835
2839
|
id: i.id,
|
|
2836
2840
|
componentNode: i,
|
|
2837
2841
|
show: c,
|
|
2838
|
-
containerDom: (r = (s = (
|
|
2842
|
+
containerDom: (r = (s = (a = (d = e.instance) == null ? void 0 : d.get) == null ? void 0 : a.call(d, i.id)) == null ? void 0 : s.getContainerDom) == null ? void 0 : r.call(s)
|
|
2839
2843
|
};
|
|
2840
|
-
return n.list.push(
|
|
2844
|
+
return n.list.push(o), n;
|
|
2841
2845
|
},
|
|
2842
2846
|
{
|
|
2843
2847
|
showCount: 0,
|
|
@@ -2853,30 +2857,30 @@ const Qa = "_rangeBox_12c3t_59", pa = {
|
|
|
2853
2857
|
}, jt = Vt((e, t) => {
|
|
2854
2858
|
const n = k.getActiveEngine();
|
|
2855
2859
|
if (!n) return;
|
|
2856
|
-
const i = n.componentNode.getAll().reduce((c,
|
|
2860
|
+
const i = n.componentNode.getAll().reduce((c, o) => {
|
|
2857
2861
|
const d = {
|
|
2858
|
-
x1:
|
|
2859
|
-
y1:
|
|
2860
|
-
x2:
|
|
2861
|
-
y2:
|
|
2862
|
-
},
|
|
2862
|
+
x1: o.x,
|
|
2863
|
+
y1: o.y,
|
|
2864
|
+
x2: o.x + o.width,
|
|
2865
|
+
y2: o.y + o.height
|
|
2866
|
+
}, a = {
|
|
2863
2867
|
x1: e.x,
|
|
2864
2868
|
y1: e.y,
|
|
2865
2869
|
x2: e.x + e.width,
|
|
2866
2870
|
y2: e.y + e.height
|
|
2867
2871
|
};
|
|
2868
|
-
return ki(d,
|
|
2872
|
+
return ki(d, a) && (!o.lock || o.lock && Pe("shift")) && c.push(o.id), c;
|
|
2869
2873
|
}, []);
|
|
2870
2874
|
n.instance.select(i, !0), t == null || t(i);
|
|
2871
2875
|
}, 100);
|
|
2872
2876
|
let F;
|
|
2873
2877
|
function eo(e) {
|
|
2874
2878
|
let t = { x: 0, y: 0 }, n = 1;
|
|
2875
|
-
function i(
|
|
2876
|
-
const
|
|
2879
|
+
function i(o = 0, d = 0) {
|
|
2880
|
+
const a = o * n, s = d * n, r = t.x + a, h = t.y + s, u = {
|
|
2877
2881
|
x: t.x,
|
|
2878
2882
|
y: t.y,
|
|
2879
|
-
width: Math.abs(
|
|
2883
|
+
width: Math.abs(o),
|
|
2880
2884
|
height: Math.abs(d)
|
|
2881
2885
|
};
|
|
2882
2886
|
return r < u.x && (u.x = r), h < u.y && (u.y = h), u.x /= n, u.y /= n, u;
|
|
@@ -2885,25 +2889,25 @@ function eo(e) {
|
|
|
2885
2889
|
F && (F == null || F.remove(), F = void 0);
|
|
2886
2890
|
}
|
|
2887
2891
|
return {
|
|
2888
|
-
onStart(
|
|
2892
|
+
onStart(o, d, a) {
|
|
2889
2893
|
const s = k.getActiveEngine();
|
|
2890
2894
|
if (!s)
|
|
2891
2895
|
return;
|
|
2892
2896
|
c();
|
|
2893
|
-
const { x: r = 0, y: h = 0 } =
|
|
2897
|
+
const { x: r = 0, y: h = 0 } = a || {};
|
|
2894
2898
|
n = s.config.getConfig().scale;
|
|
2895
2899
|
const u = e.getBoundingClientRect();
|
|
2896
2900
|
t.x = r - u.x, t.y = h - u.y, F = document.createElement("div"), F.classList.add(pa.rangeBox), F.style.zIndex = `${s.componentNode.getMaxLevel()}`, e.appendChild(F), ae.set("default");
|
|
2897
2901
|
},
|
|
2898
|
-
onMove(
|
|
2902
|
+
onMove(o, d) {
|
|
2899
2903
|
if (!F) return;
|
|
2900
|
-
const
|
|
2901
|
-
F.style.top = `${
|
|
2904
|
+
const a = i(o, d);
|
|
2905
|
+
F.style.top = `${a.y}px`, F.style.left = `${a.x}px`, F.style.width = `${a.width}px`, F.style.height = `${a.height}px`, F.style.borderWidth = "1px", jt(a);
|
|
2902
2906
|
},
|
|
2903
|
-
onEnd(
|
|
2907
|
+
onEnd(o, d) {
|
|
2904
2908
|
c(), ae.revoke();
|
|
2905
|
-
const
|
|
2906
|
-
(
|
|
2909
|
+
const a = i(o, d);
|
|
2910
|
+
(a.width || a.height) && jt(a, (s) => {
|
|
2907
2911
|
s.length && O("范围选中组件");
|
|
2908
2912
|
});
|
|
2909
2913
|
}
|
|
@@ -2914,16 +2918,16 @@ function to(e, t) {
|
|
|
2914
2918
|
onEnd(n, i, c) {
|
|
2915
2919
|
setTimeout(() => {
|
|
2916
2920
|
var u;
|
|
2917
|
-
const
|
|
2918
|
-
if (!
|
|
2921
|
+
const o = k.getActiveEngine();
|
|
2922
|
+
if (!o)
|
|
2919
2923
|
return;
|
|
2920
|
-
const d =
|
|
2921
|
-
if (!
|
|
2924
|
+
const d = o.config.getConfig().scale, a = e.getComponentNode(), s = e.getContainerDom();
|
|
2925
|
+
if (!a || a != null && a.lock || !s)
|
|
2922
2926
|
return;
|
|
2923
|
-
const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(
|
|
2924
|
-
x: (c.x - r.x) / d +
|
|
2927
|
+
const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(a, {
|
|
2928
|
+
x: (c.x - r.x) / d + a.x,
|
|
2925
2929
|
// 鼠标在编辑器上的虚拟坐标
|
|
2926
|
-
y: (c.y - r.y) / d +
|
|
2930
|
+
y: (c.y - r.y) / d + a.y
|
|
2927
2931
|
});
|
|
2928
2932
|
t == null || t(h);
|
|
2929
2933
|
});
|
|
@@ -2934,13 +2938,13 @@ function no(e, t) {
|
|
|
2934
2938
|
const n = k.getActiveEngine();
|
|
2935
2939
|
if (!n)
|
|
2936
2940
|
return;
|
|
2937
|
-
const i = n.componentNode.getAll().reduce((d,
|
|
2941
|
+
const i = n.componentNode.getAll().reduce((d, a) => {
|
|
2938
2942
|
var s;
|
|
2939
|
-
return (
|
|
2940
|
-
|
|
2941
|
-
Si(t, n.componentNode.getCoordinate(
|
|
2942
|
-
}, {}), c = Object.values(i),
|
|
2943
|
-
return
|
|
2943
|
+
return (a.show ?? !0) && a.category === "layout" && // layout类组件
|
|
2944
|
+
a.id !== e.id && // 不能拖拽到自身(如果自身拖拽组件是layout类型时)
|
|
2945
|
+
Si(t, n.componentNode.getCoordinate(a)) && (d[s = `${a.level}`] || (d[s] = [])).push(a), d;
|
|
2946
|
+
}, {}), c = Object.values(i), o = c[c.length - 1];
|
|
2947
|
+
return o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1];
|
|
2944
2948
|
}
|
|
2945
2949
|
function io(e, t) {
|
|
2946
2950
|
const n = k.getActiveEngine();
|
|
@@ -2951,52 +2955,52 @@ function io(e, t) {
|
|
|
2951
2955
|
y: t.y
|
|
2952
2956
|
});
|
|
2953
2957
|
if (i) {
|
|
2954
|
-
const
|
|
2955
|
-
if (!
|
|
2958
|
+
const o = i == null ? void 0 : i.currentPanelId;
|
|
2959
|
+
if (!o || n.componentNode.isInPanel(o, e))
|
|
2956
2960
|
return;
|
|
2957
|
-
const d = n.componentNode.getPanelName(
|
|
2961
|
+
const d = n.componentNode.getPanelName(o) || "目标";
|
|
2958
2962
|
return kt({
|
|
2959
2963
|
title: "移入提醒",
|
|
2960
2964
|
content: `确定放入面板“${d}”?`,
|
|
2961
|
-
onOk(
|
|
2965
|
+
onOk(a) {
|
|
2962
2966
|
n.instance.getAllSelected().forEach((s) => {
|
|
2963
2967
|
const r = n.componentNode.get(s.id);
|
|
2964
|
-
n.componentNode.insertPanel(
|
|
2965
|
-
}), n.instance.select(i.id, !0), O(`移入面板 “${d}”`),
|
|
2968
|
+
n.componentNode.insertPanel(o, r);
|
|
2969
|
+
}), n.instance.select(i.id, !0), O(`移入面板 “${d}”`), a();
|
|
2966
2970
|
}
|
|
2967
2971
|
});
|
|
2968
2972
|
}
|
|
2969
2973
|
const c = e.panelId;
|
|
2970
2974
|
if (c) {
|
|
2971
|
-
const
|
|
2975
|
+
const o = n.componentNode.getPanelName(c) || "目标";
|
|
2972
2976
|
return kt({
|
|
2973
2977
|
title: "移出提醒",
|
|
2974
|
-
content: `是否移出面板“${
|
|
2978
|
+
content: `是否移出面板“${o}”?`,
|
|
2975
2979
|
onOk(d) {
|
|
2976
|
-
n.instance.getAllSelected().forEach((
|
|
2977
|
-
const s = n.componentNode.get(
|
|
2978
|
-
n.componentNode.removeFromPanel(s), O(`移出面板 “${
|
|
2980
|
+
n.instance.getAllSelected().forEach((a) => {
|
|
2981
|
+
const s = n.componentNode.get(a.id);
|
|
2982
|
+
n.componentNode.removeFromPanel(s), O(`移出面板 “${o}”`);
|
|
2979
2983
|
}), d();
|
|
2980
2984
|
}
|
|
2981
2985
|
});
|
|
2982
2986
|
}
|
|
2983
2987
|
}
|
|
2984
2988
|
function lo(e) {
|
|
2985
|
-
const t =
|
|
2989
|
+
const t = j([]), { engine: n } = N();
|
|
2986
2990
|
function i() {
|
|
2987
|
-
var c,
|
|
2988
|
-
t != null && t.current.length && ((
|
|
2991
|
+
var c, o;
|
|
2992
|
+
t != null && t.current.length && ((o = (c = t == null ? void 0 : t.current) == null ? void 0 : c.forEach) == null || o.call(c, (d) => d == null ? void 0 : d()), t.current = []);
|
|
2989
2993
|
}
|
|
2990
2994
|
gt(e, {
|
|
2991
2995
|
mousedown(c) {
|
|
2992
2996
|
var m;
|
|
2993
|
-
const
|
|
2994
|
-
if (!
|
|
2997
|
+
const o = e.current;
|
|
2998
|
+
if (!o) throw new Error("dom must be exist.");
|
|
2995
2999
|
i();
|
|
2996
|
-
const d = Ae(c),
|
|
3000
|
+
const d = Ae(c), a = Yt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0), h = n.instance.get(r), u = (m = h == null ? void 0 : h.getComponentNode) == null ? void 0 : m.call(h), _ = a ? !0 : u != null && u.lock ? d && s : d;
|
|
2997
3001
|
if (h && u && _) {
|
|
2998
3002
|
if (Va(u, c), !(u != null && u.lock) && d) {
|
|
2999
|
-
const
|
|
3003
|
+
const y = ct(
|
|
3000
3004
|
c.target,
|
|
3001
3005
|
oe.dragDirection
|
|
3002
3006
|
);
|
|
@@ -3008,12 +3012,12 @@ function lo(e) {
|
|
|
3008
3012
|
scale: n.config.getConfig().scale,
|
|
3009
3013
|
hookQueue: [
|
|
3010
3014
|
// 监听拖拽大小
|
|
3011
|
-
|
|
3015
|
+
y && Ka(u, c.target, y),
|
|
3012
3016
|
// 监听拖拽移动
|
|
3013
|
-
!
|
|
3017
|
+
!y && Ga(h),
|
|
3014
3018
|
// 监听是否放置到 layout 组件
|
|
3015
|
-
to(h, (
|
|
3016
|
-
t.current.push(
|
|
3019
|
+
to(h, (x) => {
|
|
3020
|
+
t.current.push(x);
|
|
3017
3021
|
})
|
|
3018
3022
|
]
|
|
3019
3023
|
})
|
|
@@ -3029,7 +3033,7 @@ function lo(e) {
|
|
|
3029
3033
|
scale: n.config.getConfig().scale,
|
|
3030
3034
|
hookQueue: [
|
|
3031
3035
|
// 监听创建范围多选框(左键按住范围框选)
|
|
3032
|
-
d && eo(
|
|
3036
|
+
d && eo(o)
|
|
3033
3037
|
]
|
|
3034
3038
|
})
|
|
3035
3039
|
);
|
|
@@ -3046,13 +3050,13 @@ function co(e) {
|
|
|
3046
3050
|
const c = e.current;
|
|
3047
3051
|
if (!c)
|
|
3048
3052
|
throw new Error("dom must be exist.");
|
|
3049
|
-
const { data:
|
|
3050
|
-
if (!(
|
|
3053
|
+
const { data: o } = i;
|
|
3054
|
+
if (!(o == null ? void 0 : o.component))
|
|
3051
3055
|
return;
|
|
3052
|
-
const
|
|
3053
|
-
x: Math.round((n.x -
|
|
3056
|
+
const a = c.getBoundingClientRect(), s = t.config.getConfig().scale, r = t.componentNode.createFromComponent(o.component, {
|
|
3057
|
+
x: Math.round((n.x - a.x) / s),
|
|
3054
3058
|
// 真实坐标转为编辑器坐标 (scale 越小,编辑器面积越小,真实像素变化映射到虚拟像素越大)
|
|
3055
|
-
y: Math.round((n.y -
|
|
3059
|
+
y: Math.round((n.y - a.y) / s),
|
|
3056
3060
|
pageId: t.config.getCurrentPage()
|
|
3057
3061
|
});
|
|
3058
3062
|
t.componentNode.add(r), setTimeout(async () => {
|
|
@@ -3070,27 +3074,27 @@ function ao(e) {
|
|
|
3070
3074
|
const c = e.current;
|
|
3071
3075
|
if (!c)
|
|
3072
3076
|
throw new Error("dom must be exist.");
|
|
3073
|
-
const
|
|
3074
|
-
(I = d.children) != null && I.length ||
|
|
3075
|
-
const
|
|
3076
|
-
(f,
|
|
3077
|
+
const o = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
|
|
3078
|
+
(I = d.children) != null && I.length || A.warn("收藏元素为空");
|
|
3079
|
+
const a = Math.round(n.x - o.x), s = Math.round(n.y - o.y), r = d.children[0], { x: h, y: u } = d.children.reduce(
|
|
3080
|
+
(f, v) => (f.x = Math.min(f.x, v.x), f.y = Math.min(f.y, v.y), f),
|
|
3077
3081
|
{
|
|
3078
3082
|
x: r.x,
|
|
3079
3083
|
y: r.y
|
|
3080
3084
|
}
|
|
3081
|
-
), _ = t.config.getCurrentPage(), m = [],
|
|
3082
|
-
onClone(f,
|
|
3083
|
-
|
|
3085
|
+
), _ = t.config.getCurrentPage(), m = [], y = t.config.getConfig().scale, x = t.componentNode.cloneComponentNodes(d.children, {
|
|
3086
|
+
onClone(f, v) {
|
|
3087
|
+
v.x = Math.round((a + (v.x - h)) / y), v.y = Math.round((s + (v.y - u)) / y), v.pageId = _, m.push(v.id);
|
|
3084
3088
|
}
|
|
3085
3089
|
});
|
|
3086
|
-
t.componentNode.add(
|
|
3090
|
+
t.componentNode.add(x), setTimeout(() => {
|
|
3087
3091
|
t.instance.select(m, !0), O(`新增收藏组件 “${d.name}”`);
|
|
3088
3092
|
});
|
|
3089
3093
|
}
|
|
3090
3094
|
});
|
|
3091
3095
|
}
|
|
3092
3096
|
const oo = () => {
|
|
3093
|
-
const { engine: e } = N(), t =
|
|
3097
|
+
const { engine: e } = N(), t = j(null), n = j(null), i = Xt(), c = Gt(), o = L(() => {
|
|
3094
3098
|
if (i.length)
|
|
3095
3099
|
return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
|
|
3096
3100
|
qa,
|
|
@@ -3101,7 +3105,7 @@ const oo = () => {
|
|
|
3101
3105
|
d.id
|
|
3102
3106
|
));
|
|
3103
3107
|
}, [c, i]);
|
|
3104
|
-
return lo(n), gn(t), co(n), ao(n),
|
|
3108
|
+
return lo(n), gn(t), co(n), ao(n), E(() => e.componentNode.onDelete((d) => {
|
|
3105
3109
|
e.page.removeGlobalComponentNode(d);
|
|
3106
3110
|
}), []), /* @__PURE__ */ l(
|
|
3107
3111
|
"div",
|
|
@@ -3109,7 +3113,7 @@ const oo = () => {
|
|
|
3109
3113
|
ref: t,
|
|
3110
3114
|
className: Mt.editor,
|
|
3111
3115
|
onMouseDown: () => De(),
|
|
3112
|
-
children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children:
|
|
3116
|
+
children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: o })
|
|
3113
3117
|
}
|
|
3114
3118
|
);
|
|
3115
3119
|
}, ro = "_attributes_esabd_59", so = {
|
|
@@ -3126,18 +3130,18 @@ const oo = () => {
|
|
|
3126
3130
|
};
|
|
3127
3131
|
function vo(e) {
|
|
3128
3132
|
const [t, n] = S(!1), [i, c] = S("");
|
|
3129
|
-
function
|
|
3133
|
+
function o() {
|
|
3130
3134
|
c((e == null ? void 0 : e.value) || ""), n(!0);
|
|
3131
3135
|
}
|
|
3132
3136
|
function d() {
|
|
3133
|
-
var
|
|
3137
|
+
var a;
|
|
3134
3138
|
if (!i) {
|
|
3135
|
-
|
|
3139
|
+
A.warn(e == null ? void 0 : e.emptyMessage);
|
|
3136
3140
|
return;
|
|
3137
3141
|
}
|
|
3138
|
-
n(!1), (
|
|
3142
|
+
n(!1), (a = e == null ? void 0 : e.onChange) == null || a.call(e, i);
|
|
3139
3143
|
}
|
|
3140
|
-
return
|
|
3144
|
+
return E(() => {
|
|
3141
3145
|
n(!1);
|
|
3142
3146
|
}, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: Xe.editText, children: [
|
|
3143
3147
|
t ? /* @__PURE__ */ l(
|
|
@@ -3145,7 +3149,7 @@ function vo(e) {
|
|
|
3145
3149
|
{
|
|
3146
3150
|
value: i,
|
|
3147
3151
|
style: { width: "100%" },
|
|
3148
|
-
onChange: (
|
|
3152
|
+
onChange: (a) => c(a),
|
|
3149
3153
|
onPressEnter: () => {
|
|
3150
3154
|
t && d();
|
|
3151
3155
|
}
|
|
@@ -3154,30 +3158,30 @@ function vo(e) {
|
|
|
3154
3158
|
t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
|
|
3155
3159
|
Kt,
|
|
3156
3160
|
{
|
|
3157
|
-
className:
|
|
3158
|
-
onClick:
|
|
3161
|
+
className: R(Xe.opacity0, "icon_clickable"),
|
|
3162
|
+
onClick: o
|
|
3159
3163
|
}
|
|
3160
3164
|
)
|
|
3161
3165
|
] });
|
|
3162
3166
|
}
|
|
3163
3167
|
function bo() {
|
|
3164
|
-
const { engine: e } = N(), { componentNode: t } = he(), [n] =
|
|
3165
|
-
function
|
|
3168
|
+
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm(), i = L(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
|
|
3169
|
+
function o(d) {
|
|
3166
3170
|
d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
|
|
3167
3171
|
}
|
|
3168
|
-
return
|
|
3172
|
+
return E(() => {
|
|
3169
3173
|
t && n.setFieldsValue({
|
|
3170
3174
|
...t,
|
|
3171
3175
|
isAllPage: !!(t != null && t.isAllPage)
|
|
3172
3176
|
});
|
|
3173
3177
|
}, [t]), /* @__PURE__ */ g(
|
|
3174
|
-
|
|
3178
|
+
M,
|
|
3175
3179
|
{
|
|
3176
3180
|
form: n,
|
|
3177
3181
|
className: Y.singleInstanceAttributesBase,
|
|
3178
3182
|
onValuesChange: (d) => {
|
|
3179
|
-
let
|
|
3180
|
-
d.hasOwnProperty("isAllPage") && (
|
|
3183
|
+
let a = "修改组件";
|
|
3184
|
+
d.hasOwnProperty("isAllPage") && (o(d.isAllPage), a = d.isAllPage ? "设置组件全页面" : "取消组件全页面"), e.componentNode.update(t == null ? void 0 : t.id, d), O(a);
|
|
3181
3185
|
},
|
|
3182
3186
|
children: [
|
|
3183
3187
|
/* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
|
|
@@ -3210,17 +3214,17 @@ function bo() {
|
|
|
3210
3214
|
/* @__PURE__ */ g("div", { children: [
|
|
3211
3215
|
/* @__PURE__ */ g(nt, { gutter: [8, 8], style: { fontSize: 12 }, children: [
|
|
3212
3216
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "X轴" }),
|
|
3213
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3217
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3214
3218
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "Y轴" }),
|
|
3215
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3219
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3216
3220
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "宽度" }),
|
|
3217
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3221
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3218
3222
|
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "高度" }),
|
|
3219
|
-
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(
|
|
3223
|
+
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
|
|
3220
3224
|
] }),
|
|
3221
3225
|
/* @__PURE__ */ g(Le, { labelSpan: 4, children: [
|
|
3222
|
-
/* @__PURE__ */ l(
|
|
3223
|
-
/* @__PURE__ */ l(
|
|
3226
|
+
/* @__PURE__ */ l(z, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3227
|
+
/* @__PURE__ */ l(z, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
|
|
3224
3228
|
] })
|
|
3225
3229
|
] }),
|
|
3226
3230
|
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
|
|
@@ -3231,9 +3235,9 @@ function bo() {
|
|
|
3231
3235
|
e.componentNode.update(t == null ? void 0 : t.id, d), O("修改组件属性");
|
|
3232
3236
|
},
|
|
3233
3237
|
options: t == null ? void 0 : t.options,
|
|
3234
|
-
onChange: (d,
|
|
3238
|
+
onChange: (d, a) => {
|
|
3235
3239
|
e.componentNode.update(t == null ? void 0 : t.id, {
|
|
3236
|
-
options:
|
|
3240
|
+
options: a ? d : {
|
|
3237
3241
|
...t == null ? void 0 : t.options,
|
|
3238
3242
|
...d
|
|
3239
3243
|
}
|
|
@@ -3252,13 +3256,13 @@ const Co = "_dataSource_1t8uf_59", xo = {
|
|
|
3252
3256
|
requestDataSource: Io
|
|
3253
3257
|
};
|
|
3254
3258
|
function So(e) {
|
|
3255
|
-
const t = k.getActiveEngine(), { componentNode: n } = he(), i =
|
|
3259
|
+
const t = k.getActiveEngine(), { componentNode: n } = he(), i = L(() => {
|
|
3256
3260
|
var r, h;
|
|
3257
3261
|
return (h = (r = t == null ? void 0 : t.instance) == null ? void 0 : r.get) == null ? void 0 : h.call(r, n == null ? void 0 : n.id);
|
|
3258
3262
|
}, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
|
|
3259
|
-
data:
|
|
3263
|
+
data: o,
|
|
3260
3264
|
loading: d,
|
|
3261
|
-
refresh:
|
|
3265
|
+
refresh: a
|
|
3262
3266
|
} = Qt(
|
|
3263
3267
|
async () => {
|
|
3264
3268
|
var r, h;
|
|
@@ -3278,7 +3282,7 @@ function So(e) {
|
|
|
3278
3282
|
}));
|
|
3279
3283
|
}
|
|
3280
3284
|
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
|
|
3281
|
-
/* @__PURE__ */ l(
|
|
3285
|
+
/* @__PURE__ */ l(z, { label: "请求类型", children: /* @__PURE__ */ l(
|
|
3282
3286
|
Ce,
|
|
3283
3287
|
{
|
|
3284
3288
|
allowClear: !1,
|
|
@@ -3295,7 +3299,7 @@ function So(e) {
|
|
|
3295
3299
|
}
|
|
3296
3300
|
}
|
|
3297
3301
|
) }),
|
|
3298
|
-
/* @__PURE__ */ l(
|
|
3302
|
+
/* @__PURE__ */ l(z, { label: "请求地址", children: /* @__PURE__ */ l(
|
|
3299
3303
|
p,
|
|
3300
3304
|
{
|
|
3301
3305
|
value: c == null ? void 0 : c.url,
|
|
@@ -3305,7 +3309,7 @@ function So(e) {
|
|
|
3305
3309
|
}
|
|
3306
3310
|
) }),
|
|
3307
3311
|
/* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
|
|
3308
|
-
/* @__PURE__ */ l(
|
|
3312
|
+
/* @__PURE__ */ l(z, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
3309
3313
|
/* @__PURE__ */ l(
|
|
3310
3314
|
we,
|
|
3311
3315
|
{
|
|
@@ -3329,7 +3333,7 @@ function So(e) {
|
|
|
3329
3333
|
/* @__PURE__ */ l("span", { children: "毫秒" })
|
|
3330
3334
|
] })
|
|
3331
3335
|
] }) }),
|
|
3332
|
-
/* @__PURE__ */ l(
|
|
3336
|
+
/* @__PURE__ */ l(z, { label: "初次请求", children: /* @__PURE__ */ l(
|
|
3333
3337
|
we,
|
|
3334
3338
|
{
|
|
3335
3339
|
checked: (c == null ? void 0 : c.first) ?? !1,
|
|
@@ -3340,12 +3344,12 @@ function So(e) {
|
|
|
3340
3344
|
) }),
|
|
3341
3345
|
/* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3342
3346
|
/* @__PURE__ */ l("b", { children: "数据结果" }),
|
|
3343
|
-
/* @__PURE__ */ l(
|
|
3347
|
+
/* @__PURE__ */ l($, { title: "请求数据", children: /* @__PURE__ */ l(
|
|
3344
3348
|
Z,
|
|
3345
3349
|
{
|
|
3346
3350
|
className: "icon_clickable",
|
|
3347
3351
|
onClick: () => {
|
|
3348
|
-
|
|
3352
|
+
a();
|
|
3349
3353
|
}
|
|
3350
3354
|
}
|
|
3351
3355
|
) })
|
|
@@ -3356,7 +3360,7 @@ function So(e) {
|
|
|
3356
3360
|
readOnly: !0,
|
|
3357
3361
|
minimap: !1,
|
|
3358
3362
|
language: "json",
|
|
3359
|
-
value: d ? "" :
|
|
3363
|
+
value: d ? "" : o,
|
|
3360
3364
|
style: { flex: 1, minHeight: 200, maxHeight: 400 }
|
|
3361
3365
|
}
|
|
3362
3366
|
)
|
|
@@ -3367,24 +3371,24 @@ const No = "_staticDataSource_1p3pl_59", wo = {
|
|
|
3367
3371
|
};
|
|
3368
3372
|
function Eo(e) {
|
|
3369
3373
|
const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
|
|
3370
|
-
function
|
|
3374
|
+
function o() {
|
|
3371
3375
|
if (!i)
|
|
3372
|
-
return
|
|
3376
|
+
return A.warn("json格式不正确");
|
|
3373
3377
|
try {
|
|
3374
3378
|
const d = JSON.parse(i);
|
|
3375
3379
|
t.componentNode.update(n == null ? void 0 : n.id, {
|
|
3376
3380
|
staticDataSource: d
|
|
3377
|
-
}),
|
|
3381
|
+
}), A.success("修改成功"), O("修改静态数据");
|
|
3378
3382
|
} catch {
|
|
3379
|
-
|
|
3383
|
+
A.warn("json格式不正确");
|
|
3380
3384
|
}
|
|
3381
3385
|
}
|
|
3382
|
-
return
|
|
3386
|
+
return E(() => {
|
|
3383
3387
|
c(
|
|
3384
3388
|
n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
|
|
3385
3389
|
);
|
|
3386
3390
|
}, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
|
|
3387
|
-
/* @__PURE__ */ l(
|
|
3391
|
+
/* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l($, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: o }) }) }),
|
|
3388
3392
|
/* @__PURE__ */ l(
|
|
3389
3393
|
X,
|
|
3390
3394
|
{
|
|
@@ -3407,7 +3411,7 @@ const Ao = [
|
|
|
3407
3411
|
function Lo() {
|
|
3408
3412
|
const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
|
|
3409
3413
|
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
|
|
3410
|
-
/* @__PURE__ */ l(
|
|
3414
|
+
/* @__PURE__ */ l(z, { label: "数据源", children: /* @__PURE__ */ l(
|
|
3411
3415
|
Ce,
|
|
3412
3416
|
{
|
|
3413
3417
|
value: n,
|
|
@@ -3429,14 +3433,14 @@ const Do = "_interactive_1j74j_59", Oo = {
|
|
|
3429
3433
|
interactive: Do
|
|
3430
3434
|
};
|
|
3431
3435
|
function Po(e) {
|
|
3432
|
-
const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]),
|
|
3436
|
+
const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), o = L(
|
|
3433
3437
|
() => n.component.get(t == null ? void 0 : t.cId),
|
|
3434
3438
|
[t == null ? void 0 : t.cId]
|
|
3435
3439
|
);
|
|
3436
|
-
return
|
|
3437
|
-
var d,
|
|
3440
|
+
return E(() => {
|
|
3441
|
+
var d, a;
|
|
3438
3442
|
c(
|
|
3439
|
-
((
|
|
3443
|
+
((a = (d = o == null ? void 0 : o.triggers) == null ? void 0 : d.map) == null ? void 0 : a.call(d, (s) => {
|
|
3440
3444
|
var r;
|
|
3441
3445
|
return {
|
|
3442
3446
|
disabled: !!((r = t == null ? void 0 : t.events) != null && r.find((h) => h.triggerId === s.value)),
|
|
@@ -3446,15 +3450,15 @@ function Po(e) {
|
|
|
3446
3450
|
};
|
|
3447
3451
|
})) || []
|
|
3448
3452
|
);
|
|
3449
|
-
}, [
|
|
3453
|
+
}, [o, t]), /* @__PURE__ */ l(
|
|
3450
3454
|
be,
|
|
3451
3455
|
{
|
|
3452
3456
|
trigger: ["click"],
|
|
3453
3457
|
menu: {
|
|
3454
3458
|
items: i,
|
|
3455
3459
|
onClick: ({ key: d }) => {
|
|
3456
|
-
var
|
|
3457
|
-
(
|
|
3460
|
+
var a;
|
|
3461
|
+
(a = e == null ? void 0 : e.onSelect) == null || a.call(e, d);
|
|
3458
3462
|
}
|
|
3459
3463
|
},
|
|
3460
3464
|
children: /* @__PURE__ */ l(K, { type: "dashed", block: !0, icon: /* @__PURE__ */ l(rt, {}), children: "组件绑定事件" })
|
|
@@ -3478,7 +3482,7 @@ const Bo = "_eventList_19gi2_59", Mo = "_eventList_head_19gi2_62", jo = "_eventL
|
|
|
3478
3482
|
};
|
|
3479
3483
|
function qo(e) {
|
|
3480
3484
|
var t;
|
|
3481
|
-
return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(
|
|
3485
|
+
return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3482
3486
|
Ut,
|
|
3483
3487
|
{
|
|
3484
3488
|
size: "small",
|
|
@@ -3495,7 +3499,7 @@ function qo(e) {
|
|
|
3495
3499
|
}
|
|
3496
3500
|
const Jo = ue((e) => {
|
|
3497
3501
|
const [t, n] = Tt.useState();
|
|
3498
|
-
return
|
|
3502
|
+
return E(() => {
|
|
3499
3503
|
var i;
|
|
3500
3504
|
e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
|
|
3501
3505
|
}, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
|
|
@@ -3553,11 +3557,11 @@ function _n(e) {
|
|
|
3553
3557
|
var c;
|
|
3554
3558
|
(c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
|
|
3555
3559
|
}
|
|
3556
|
-
}), n =
|
|
3560
|
+
}), n = L(() => e != null && e.tooltip ? /* @__PURE__ */ l($, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
|
|
3557
3561
|
return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
|
|
3558
3562
|
"span",
|
|
3559
3563
|
{
|
|
3560
|
-
className:
|
|
3564
|
+
className: R("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
|
|
3561
3565
|
style: { fontSize: 14 },
|
|
3562
3566
|
onClick: () => {
|
|
3563
3567
|
t.open({
|
|
@@ -3573,33 +3577,33 @@ const Wo = /* @__PURE__ */ g("div", { children: [
|
|
|
3573
3577
|
/* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
|
|
3574
3578
|
] });
|
|
3575
3579
|
function Vo(e) {
|
|
3576
|
-
var
|
|
3577
|
-
const t = ((
|
|
3580
|
+
var a, s, r;
|
|
3581
|
+
const t = ((a = e == null ? void 0 : e.value) == null ? void 0 : a.type) || "default", [n, i] = S(), [c, o] = S("");
|
|
3578
3582
|
function d() {
|
|
3579
3583
|
var h;
|
|
3580
3584
|
try {
|
|
3581
3585
|
const u = JSON.parse(c);
|
|
3582
3586
|
if (typeof u != "object" || u === null) {
|
|
3583
|
-
|
|
3587
|
+
A.warn("只能保存对象格式数据");
|
|
3584
3588
|
return;
|
|
3585
3589
|
}
|
|
3586
3590
|
(h = e == null ? void 0 : e.onChange) == null || h.call(e, {
|
|
3587
3591
|
...e == null ? void 0 : e.value,
|
|
3588
3592
|
params: u
|
|
3589
|
-
}),
|
|
3593
|
+
}), A.success("更新成功");
|
|
3590
3594
|
} catch {
|
|
3591
|
-
|
|
3595
|
+
A.warn("JSON格式不正确");
|
|
3592
3596
|
}
|
|
3593
3597
|
}
|
|
3594
|
-
return
|
|
3598
|
+
return E(() => {
|
|
3595
3599
|
var h;
|
|
3596
|
-
|
|
3597
|
-
}, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]),
|
|
3600
|
+
o(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
|
|
3601
|
+
}, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), E(() => {
|
|
3598
3602
|
var h;
|
|
3599
3603
|
i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
|
|
3600
3604
|
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
|
|
3601
3605
|
/* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3602
|
-
/* @__PURE__ */ l(
|
|
3606
|
+
/* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
|
|
3603
3607
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3604
3608
|
/* @__PURE__ */ l(
|
|
3605
3609
|
Ce,
|
|
@@ -3638,7 +3642,7 @@ function Vo(e) {
|
|
|
3638
3642
|
] })
|
|
3639
3643
|
] }),
|
|
3640
3644
|
t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3641
|
-
/* @__PURE__ */ l(
|
|
3645
|
+
/* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l($, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
|
|
3642
3646
|
/* @__PURE__ */ l(
|
|
3643
3647
|
X,
|
|
3644
3648
|
{
|
|
@@ -3646,7 +3650,7 @@ function Vo(e) {
|
|
|
3646
3650
|
language: "json",
|
|
3647
3651
|
style: { height: 380 },
|
|
3648
3652
|
onChange: (h) => {
|
|
3649
|
-
|
|
3653
|
+
o(h);
|
|
3650
3654
|
}
|
|
3651
3655
|
}
|
|
3652
3656
|
)
|
|
@@ -3654,23 +3658,23 @@ function Vo(e) {
|
|
|
3654
3658
|
] });
|
|
3655
3659
|
}
|
|
3656
3660
|
function Go(e) {
|
|
3657
|
-
var
|
|
3661
|
+
var o;
|
|
3658
3662
|
const [t, n] = S();
|
|
3659
3663
|
function i(d) {
|
|
3660
|
-
var
|
|
3661
|
-
(
|
|
3664
|
+
var a;
|
|
3665
|
+
(a = e == null ? void 0 : e.onChange) == null || a.call(e, {
|
|
3662
3666
|
...e == null ? void 0 : e.value,
|
|
3663
3667
|
function: d
|
|
3664
3668
|
});
|
|
3665
3669
|
}
|
|
3666
3670
|
function c() {
|
|
3667
|
-
i(void 0), n(void 0),
|
|
3671
|
+
i(void 0), n(void 0), A.success("重置成功");
|
|
3668
3672
|
}
|
|
3669
|
-
return
|
|
3673
|
+
return E(() => {
|
|
3670
3674
|
var d;
|
|
3671
3675
|
n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
|
|
3672
|
-
}, [(
|
|
3673
|
-
/* @__PURE__ */ l(
|
|
3676
|
+
}, [(o = e == null ? void 0 : e.value) == null ? void 0 : o.function]), /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
|
|
3677
|
+
/* @__PURE__ */ l(z, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3674
3678
|
"div",
|
|
3675
3679
|
{
|
|
3676
3680
|
style: {
|
|
@@ -3679,7 +3683,7 @@ function Go(e) {
|
|
|
3679
3683
|
alignItems: "center",
|
|
3680
3684
|
justifyContent: "space-between"
|
|
3681
3685
|
},
|
|
3682
|
-
children: /* @__PURE__ */ l(
|
|
3686
|
+
children: /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
|
|
3683
3687
|
}
|
|
3684
3688
|
) }),
|
|
3685
3689
|
/* @__PURE__ */ l(
|
|
@@ -3702,31 +3706,31 @@ const Xo = {
|
|
|
3702
3706
|
json: {}
|
|
3703
3707
|
};
|
|
3704
3708
|
function Yo(e) {
|
|
3705
|
-
var r, h, u, _, m,
|
|
3706
|
-
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((h = e == null ? void 0 : e.value) == null ? void 0 : h.type) === "json", [c,
|
|
3709
|
+
var r, h, u, _, m, y, x, b, I, f, v;
|
|
3710
|
+
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((h = e == null ? void 0 : e.value) == null ? void 0 : h.type) === "json", [c, o] = S(), [d, a] = S();
|
|
3707
3711
|
function s() {
|
|
3708
|
-
var
|
|
3712
|
+
var C;
|
|
3709
3713
|
if (!d)
|
|
3710
|
-
return
|
|
3714
|
+
return A.warn("json不能为空");
|
|
3711
3715
|
try {
|
|
3712
|
-
const
|
|
3713
|
-
typeof
|
|
3716
|
+
const w = JSON.parse(d || "");
|
|
3717
|
+
typeof w == "object" && w && ((C = e == null ? void 0 : e.onChange) == null || C.call(e, {
|
|
3714
3718
|
...e == null ? void 0 : e.value,
|
|
3715
|
-
value:
|
|
3716
|
-
}),
|
|
3719
|
+
value: w
|
|
3720
|
+
}), A.success("设置成功"));
|
|
3717
3721
|
} catch {
|
|
3718
|
-
|
|
3722
|
+
A.warn("json格式不正确");
|
|
3719
3723
|
}
|
|
3720
3724
|
}
|
|
3721
|
-
return
|
|
3722
|
-
var
|
|
3723
|
-
|
|
3724
|
-
}, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]),
|
|
3725
|
-
var
|
|
3726
|
-
((
|
|
3725
|
+
return E(() => {
|
|
3726
|
+
var C;
|
|
3727
|
+
o((C = e == null ? void 0 : e.value) == null ? void 0 : C.parserFunc);
|
|
3728
|
+
}, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), E(() => {
|
|
3729
|
+
var C, w;
|
|
3730
|
+
((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) === "json" && a(JSON.stringify(((w = e == null ? void 0 : e.value) == null ? void 0 : w.value) || {}, null, " "));
|
|
3727
3731
|
}, [(_ = e == null ? void 0 : e.value) == null ? void 0 : _.type, (m = e == null ? void 0 : e.value) == null ? void 0 : m.value]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
|
|
3728
3732
|
/* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3729
|
-
/* @__PURE__ */ l(
|
|
3733
|
+
/* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
|
|
3730
3734
|
/* @__PURE__ */ g(D, { children: [
|
|
3731
3735
|
/* @__PURE__ */ l(
|
|
3732
3736
|
Ce,
|
|
@@ -3740,10 +3744,10 @@ function Yo(e) {
|
|
|
3740
3744
|
{ label: "文本值", value: "text" },
|
|
3741
3745
|
{ label: "json数据", value: "json" }
|
|
3742
3746
|
],
|
|
3743
|
-
onChange: (
|
|
3747
|
+
onChange: (C) => t({
|
|
3744
3748
|
...e == null ? void 0 : e.value,
|
|
3745
|
-
value: Xo[
|
|
3746
|
-
type:
|
|
3749
|
+
value: Xo[C],
|
|
3750
|
+
type: C
|
|
3747
3751
|
})
|
|
3748
3752
|
}
|
|
3749
3753
|
),
|
|
@@ -3752,19 +3756,19 @@ function Yo(e) {
|
|
|
3752
3756
|
{
|
|
3753
3757
|
tooltip: "解析函数",
|
|
3754
3758
|
value: c,
|
|
3755
|
-
onChange: (
|
|
3756
|
-
var
|
|
3757
|
-
|
|
3759
|
+
onChange: (C) => {
|
|
3760
|
+
var w;
|
|
3761
|
+
o(C), (w = e == null ? void 0 : e.onChange) == null || w.call(e, {
|
|
3758
3762
|
...e == null ? void 0 : e.value,
|
|
3759
|
-
parserFunc:
|
|
3763
|
+
parserFunc: C
|
|
3760
3764
|
});
|
|
3761
3765
|
}
|
|
3762
3766
|
}
|
|
3763
3767
|
)
|
|
3764
3768
|
] })
|
|
3765
3769
|
] }),
|
|
3766
|
-
((
|
|
3767
|
-
/* @__PURE__ */ l(
|
|
3770
|
+
((y = e == null ? void 0 : e.value) == null ? void 0 : y.type) && ((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3771
|
+
/* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l($, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3768
3772
|
/* @__PURE__ */ g(W, { children: [
|
|
3769
3773
|
((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
|
|
3770
3774
|
mt,
|
|
@@ -3772,10 +3776,10 @@ function Yo(e) {
|
|
|
3772
3776
|
min: void 0,
|
|
3773
3777
|
style: { width: Ne * 2 },
|
|
3774
3778
|
value: (I = e == null ? void 0 : e.value) == null ? void 0 : I.value,
|
|
3775
|
-
onChange: (
|
|
3779
|
+
onChange: (C) => {
|
|
3776
3780
|
t({
|
|
3777
3781
|
...e == null ? void 0 : e.value,
|
|
3778
|
-
value:
|
|
3782
|
+
value: C
|
|
3779
3783
|
});
|
|
3780
3784
|
}
|
|
3781
3785
|
}
|
|
@@ -3784,12 +3788,12 @@ function Yo(e) {
|
|
|
3784
3788
|
xi,
|
|
3785
3789
|
{
|
|
3786
3790
|
style: { width: Ne * 2 },
|
|
3787
|
-
value: (
|
|
3791
|
+
value: (v = e == null ? void 0 : e.value) == null ? void 0 : v.value,
|
|
3788
3792
|
autoSize: { minRows: 3, maxRows: 3 },
|
|
3789
|
-
onChange: (
|
|
3793
|
+
onChange: (C) => {
|
|
3790
3794
|
t({
|
|
3791
3795
|
...e == null ? void 0 : e.value,
|
|
3792
|
-
value:
|
|
3796
|
+
value: C
|
|
3793
3797
|
});
|
|
3794
3798
|
}
|
|
3795
3799
|
}
|
|
@@ -3800,8 +3804,8 @@ function Yo(e) {
|
|
|
3800
3804
|
language: "javascript",
|
|
3801
3805
|
style: { height: 375 },
|
|
3802
3806
|
value: d,
|
|
3803
|
-
onChange: (
|
|
3804
|
-
|
|
3807
|
+
onChange: (C) => {
|
|
3808
|
+
a(C);
|
|
3805
3809
|
}
|
|
3806
3810
|
}
|
|
3807
3811
|
)
|
|
@@ -3811,7 +3815,7 @@ function Yo(e) {
|
|
|
3811
3815
|
}
|
|
3812
3816
|
const Ne = 200;
|
|
3813
3817
|
function Zo(e) {
|
|
3814
|
-
var i, c,
|
|
3818
|
+
var i, c, o, d, a;
|
|
3815
3819
|
const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
|
|
3816
3820
|
function n(s) {
|
|
3817
3821
|
var r;
|
|
@@ -3820,7 +3824,7 @@ function Zo(e) {
|
|
|
3820
3824
|
option: s
|
|
3821
3825
|
}));
|
|
3822
3826
|
}
|
|
3823
|
-
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((
|
|
3827
|
+
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === ze.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === ze.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
|
|
3824
3828
|
}
|
|
3825
3829
|
const Qo = "_targetList_17cmb_59", po = "_targetList_body_17cmb_66", ed = "_targetList_item_17cmb_74", td = "_targetList_item_clickable_17cmb_82", nd = "_targetList_item_selected_17cmb_89", me = {
|
|
3826
3830
|
targetList: Qo,
|
|
@@ -3862,30 +3866,30 @@ function dd(e) {
|
|
|
3862
3866
|
}
|
|
3863
3867
|
function rd(e) {
|
|
3864
3868
|
var _;
|
|
3865
|
-
const { engine: t } = N(), [n, i] = S(!1), [c,
|
|
3866
|
-
|
|
3869
|
+
const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j();
|
|
3870
|
+
E(() => {
|
|
3867
3871
|
if (n) {
|
|
3868
3872
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
3869
3873
|
let m = t.componentNode.getAll();
|
|
3870
|
-
e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)),
|
|
3874
|
+
e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), o(m), a("");
|
|
3871
3875
|
}
|
|
3872
3876
|
}, [n]);
|
|
3873
|
-
const r =
|
|
3874
|
-
var
|
|
3875
|
-
const m = (
|
|
3876
|
-
return c.filter((
|
|
3877
|
-
var b, I, f,
|
|
3878
|
-
return (
|
|
3877
|
+
const r = L(() => {
|
|
3878
|
+
var y;
|
|
3879
|
+
const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
|
|
3880
|
+
return c.filter((x) => {
|
|
3881
|
+
var b, I, f, v;
|
|
3882
|
+
return (v = (f = (I = (b = x == null ? void 0 : x.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : v.call(f, m);
|
|
3879
3883
|
});
|
|
3880
3884
|
}, [d, c]);
|
|
3881
3885
|
function h() {
|
|
3882
3886
|
i(!1), s.current = setTimeout(() => {
|
|
3883
|
-
|
|
3887
|
+
o([]), s.current = null;
|
|
3884
3888
|
}, 300);
|
|
3885
3889
|
}
|
|
3886
3890
|
function u(m) {
|
|
3887
|
-
var
|
|
3888
|
-
(
|
|
3891
|
+
var y;
|
|
3892
|
+
(y = e == null ? void 0 : e.onSelect) == null || y.call(e, m), h();
|
|
3889
3893
|
}
|
|
3890
3894
|
return /* @__PURE__ */ l(
|
|
3891
3895
|
be,
|
|
@@ -3896,11 +3900,11 @@ function rd(e) {
|
|
|
3896
3900
|
{
|
|
3897
3901
|
key: "body",
|
|
3898
3902
|
label: /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton, children: [
|
|
3899
|
-
/* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange:
|
|
3903
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: a }),
|
|
3900
3904
|
/* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
|
|
3901
3905
|
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
3902
3906
|
(_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
|
|
3903
|
-
const
|
|
3907
|
+
const y = t.component.get(m == null ? void 0 : m.cId);
|
|
3904
3908
|
return /* @__PURE__ */ l(
|
|
3905
3909
|
st,
|
|
3906
3910
|
{
|
|
@@ -3916,7 +3920,7 @@ function rd(e) {
|
|
|
3916
3920
|
/* @__PURE__ */ l(
|
|
3917
3921
|
xe,
|
|
3918
3922
|
{
|
|
3919
|
-
src:
|
|
3923
|
+
src: y == null ? void 0 : y.icon,
|
|
3920
3924
|
style: { maxHeight: 20, maxWidth: 20 }
|
|
3921
3925
|
}
|
|
3922
3926
|
),
|
|
@@ -3953,9 +3957,9 @@ function rd(e) {
|
|
|
3953
3957
|
}
|
|
3954
3958
|
function sd(e) {
|
|
3955
3959
|
var d;
|
|
3956
|
-
const t = ht(), { engine: n } = N(), i =
|
|
3957
|
-
var
|
|
3958
|
-
return (s = (
|
|
3960
|
+
const t = ht(), { engine: n } = N(), i = L(() => {
|
|
3961
|
+
var a, s;
|
|
3962
|
+
return (s = (a = e == null ? void 0 : e.targets) == null ? void 0 : a.map) == null ? void 0 : s.call(a, (r) => {
|
|
3959
3963
|
var h;
|
|
3960
3964
|
return {
|
|
3961
3965
|
value: r.id,
|
|
@@ -3963,77 +3967,77 @@ function sd(e) {
|
|
|
3963
3967
|
};
|
|
3964
3968
|
});
|
|
3965
3969
|
}, [e == null ? void 0 : e.targets]);
|
|
3966
|
-
function c(
|
|
3970
|
+
function c(a) {
|
|
3967
3971
|
var r;
|
|
3968
3972
|
const s = [
|
|
3969
3973
|
...(e == null ? void 0 : e.targets) || [],
|
|
3970
3974
|
{
|
|
3971
|
-
id:
|
|
3975
|
+
id: a.id,
|
|
3972
3976
|
opts: []
|
|
3973
3977
|
}
|
|
3974
3978
|
];
|
|
3975
3979
|
(r = e == null ? void 0 : e.onChangeTargets) == null || r.call(e, s, "add");
|
|
3976
3980
|
}
|
|
3977
|
-
function a
|
|
3978
|
-
var _, m,
|
|
3981
|
+
function o(a) {
|
|
3982
|
+
var _, m, y;
|
|
3979
3983
|
let s;
|
|
3980
|
-
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (
|
|
3984
|
+
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (x) => x.id === a ? (s = x, !1) : !0)) || [], h = ((y = s == null ? void 0 : s.opts) == null ? void 0 : y.length) || 0;
|
|
3981
3985
|
function u() {
|
|
3982
|
-
var
|
|
3983
|
-
(
|
|
3986
|
+
var x, b, I;
|
|
3987
|
+
(x = e == null ? void 0 : e.onChangeTargets) == null || x.call(e, r, "delete"), a === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.id));
|
|
3984
3988
|
}
|
|
3985
3989
|
if (h) {
|
|
3986
3990
|
t({
|
|
3987
3991
|
title: "提醒",
|
|
3988
3992
|
content: `该组件已配置 ${h} 个事件操作,确定删除?`,
|
|
3989
|
-
onOk(
|
|
3990
|
-
u(),
|
|
3993
|
+
onOk(x) {
|
|
3994
|
+
u(), x();
|
|
3991
3995
|
}
|
|
3992
3996
|
});
|
|
3993
3997
|
return;
|
|
3994
3998
|
}
|
|
3995
3999
|
u();
|
|
3996
4000
|
}
|
|
3997
|
-
return /* @__PURE__ */ g("div", { className:
|
|
4001
|
+
return /* @__PURE__ */ g("div", { className: R(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
3998
4002
|
/* @__PURE__ */ l(
|
|
3999
4003
|
rd,
|
|
4000
4004
|
{
|
|
4001
4005
|
style: { margin: -1 },
|
|
4002
|
-
beforeVisible: (
|
|
4006
|
+
beforeVisible: (a) => a.filter((s) => {
|
|
4003
4007
|
var r, h;
|
|
4004
4008
|
return !((h = (r = e == null ? void 0 : e.targets) == null ? void 0 : r.find) != null && h.call(r, (u) => u.id === (s == null ? void 0 : s.id)));
|
|
4005
4009
|
}),
|
|
4006
|
-
onSelect: (
|
|
4010
|
+
onSelect: (a) => c(a),
|
|
4007
4011
|
children: "新增目标组件"
|
|
4008
4012
|
}
|
|
4009
4013
|
),
|
|
4010
|
-
/* @__PURE__ */ l("div", { className: me.targetList_body, children: (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (
|
|
4011
|
-
const s = (
|
|
4014
|
+
/* @__PURE__ */ l("div", { className: me.targetList_body, children: (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (a) => {
|
|
4015
|
+
const s = (a == null ? void 0 : a.value) === (e == null ? void 0 : e.value);
|
|
4012
4016
|
return /* @__PURE__ */ g(
|
|
4013
4017
|
"div",
|
|
4014
4018
|
{
|
|
4015
|
-
className:
|
|
4019
|
+
className: R(
|
|
4016
4020
|
me.targetList_item,
|
|
4017
4021
|
s && me.targetList_item_selected
|
|
4018
4022
|
),
|
|
4019
4023
|
onClick: () => {
|
|
4020
4024
|
var r;
|
|
4021
|
-
return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e,
|
|
4025
|
+
return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, a == null ? void 0 : a.value);
|
|
4022
4026
|
},
|
|
4023
4027
|
children: [
|
|
4024
|
-
|
|
4028
|
+
a == null ? void 0 : a.label,
|
|
4025
4029
|
/* @__PURE__ */ l(
|
|
4026
4030
|
de,
|
|
4027
4031
|
{
|
|
4028
4032
|
className: me.targetList_item_clickable,
|
|
4029
4033
|
onClick: (r) => {
|
|
4030
|
-
a
|
|
4034
|
+
o(a == null ? void 0 : a.value), r.stopPropagation();
|
|
4031
4035
|
}
|
|
4032
4036
|
}
|
|
4033
4037
|
)
|
|
4034
4038
|
]
|
|
4035
4039
|
},
|
|
4036
|
-
|
|
4040
|
+
a == null ? void 0 : a.value
|
|
4037
4041
|
);
|
|
4038
4042
|
}) }),
|
|
4039
4043
|
!(i != null && i.length) && /* @__PURE__ */ l(U, {})
|
|
@@ -4053,30 +4057,30 @@ const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targ
|
|
|
4053
4057
|
};
|
|
4054
4058
|
function Cd(e) {
|
|
4055
4059
|
var u;
|
|
4056
|
-
const { engine: t } = N(), [n, i] = S(!1), [c,
|
|
4060
|
+
const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j(), r = L(() => {
|
|
4057
4061
|
var m;
|
|
4058
4062
|
const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
|
|
4059
|
-
return c.filter((
|
|
4060
|
-
var
|
|
4061
|
-
return (f = (I = (b = (
|
|
4063
|
+
return c.filter((y) => {
|
|
4064
|
+
var x, b, I, f;
|
|
4065
|
+
return (f = (I = (b = (x = y == null ? void 0 : y.label) == null ? void 0 : x.toLowerCase) == null ? void 0 : b.call(x)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
|
|
4062
4066
|
});
|
|
4063
4067
|
}, [d, c]);
|
|
4064
4068
|
function h() {
|
|
4065
4069
|
i(!1);
|
|
4066
4070
|
}
|
|
4067
|
-
return
|
|
4071
|
+
return E(() => {
|
|
4068
4072
|
var _;
|
|
4069
4073
|
if (n) {
|
|
4070
4074
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
4071
4075
|
let m = [];
|
|
4072
4076
|
if (e != null && e.cId) {
|
|
4073
|
-
const
|
|
4074
|
-
m = (_ = (
|
|
4075
|
-
(
|
|
4077
|
+
const y = t.component.get(e == null ? void 0 : e.cId);
|
|
4078
|
+
m = (_ = (y == null ? void 0 : y.exposes) || []) == null ? void 0 : _.reduce(
|
|
4079
|
+
(x, b) => (x.push({ label: b.label, value: b.value }), x),
|
|
4076
4080
|
[...di]
|
|
4077
4081
|
);
|
|
4078
4082
|
}
|
|
4079
|
-
e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)),
|
|
4083
|
+
e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), o(m), a("");
|
|
4080
4084
|
}
|
|
4081
4085
|
}, [n]), /* @__PURE__ */ l(
|
|
4082
4086
|
Ci,
|
|
@@ -4084,7 +4088,7 @@ function Cd(e) {
|
|
|
4084
4088
|
visible: n,
|
|
4085
4089
|
onClose: h,
|
|
4086
4090
|
overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
|
|
4087
|
-
/* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange:
|
|
4091
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: a }),
|
|
4088
4092
|
/* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
|
|
4089
4093
|
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
4090
4094
|
(u = r == null ? void 0 : r.map) == null ? void 0 : u.call(r, (_) => /* @__PURE__ */ l(
|
|
@@ -4117,130 +4121,130 @@ function Cd(e) {
|
|
|
4117
4121
|
}
|
|
4118
4122
|
function xd(e) {
|
|
4119
4123
|
var d;
|
|
4120
|
-
const { engine: t } = N(), n =
|
|
4124
|
+
const { engine: t } = N(), n = L(() => {
|
|
4121
4125
|
var s, r;
|
|
4122
|
-
const
|
|
4126
|
+
const a = t.component.get(e == null ? void 0 : e.cId);
|
|
4123
4127
|
return {
|
|
4124
4128
|
...ri,
|
|
4125
|
-
...(r = (s =
|
|
4129
|
+
...(r = (s = a == null ? void 0 : a.exposes) == null ? void 0 : s.reduce) == null ? void 0 : r.call(s, (h, u) => (h[u.value] = u.label, h), {})
|
|
4126
4130
|
};
|
|
4127
|
-
}, [e == null ? void 0 : e.cId]), i =
|
|
4128
|
-
var
|
|
4129
|
-
return (s = (
|
|
4131
|
+
}, [e == null ? void 0 : e.cId]), i = L(() => {
|
|
4132
|
+
var a, s;
|
|
4133
|
+
return (s = (a = e == null ? void 0 : e.opts) == null ? void 0 : a.map) == null ? void 0 : s.call(a, (r) => ({
|
|
4130
4134
|
value: r.operateId,
|
|
4131
4135
|
label: n[r.exposeId] || "-"
|
|
4132
4136
|
}));
|
|
4133
4137
|
}, [e == null ? void 0 : e.opts, n]);
|
|
4134
|
-
function c(
|
|
4138
|
+
function c(a) {
|
|
4135
4139
|
var r;
|
|
4136
4140
|
const s = [
|
|
4137
4141
|
...(e == null ? void 0 : e.opts) || [],
|
|
4138
4142
|
{
|
|
4139
4143
|
operateId: ut(),
|
|
4140
|
-
exposeId:
|
|
4144
|
+
exposeId: a.value,
|
|
4141
4145
|
option: {}
|
|
4142
4146
|
}
|
|
4143
4147
|
];
|
|
4144
4148
|
(r = e == null ? void 0 : e.onChangeOpts) == null || r.call(e, s);
|
|
4145
4149
|
}
|
|
4146
|
-
function a
|
|
4150
|
+
function o(a) {
|
|
4147
4151
|
var r, h, u, _, m;
|
|
4148
|
-
const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (
|
|
4149
|
-
(u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s),
|
|
4152
|
+
const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (y) => y.operateId !== a)) || [];
|
|
4153
|
+
(u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s), a === (e == null ? void 0 : e.value) && ((m = e == null ? void 0 : e.onChange) == null || m.call(e, (_ = s == null ? void 0 : s[0]) == null ? void 0 : _.operateId));
|
|
4150
4154
|
}
|
|
4151
|
-
return /* @__PURE__ */ g("div", { className:
|
|
4155
|
+
return /* @__PURE__ */ g("div", { className: R(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4152
4156
|
/* @__PURE__ */ l(
|
|
4153
4157
|
Cd,
|
|
4154
4158
|
{
|
|
4155
4159
|
style: { margin: -1 },
|
|
4156
4160
|
cId: e == null ? void 0 : e.cId,
|
|
4157
|
-
onSelect: (
|
|
4161
|
+
onSelect: (a) => c(a),
|
|
4158
4162
|
children: "新增操作"
|
|
4159
4163
|
}
|
|
4160
4164
|
),
|
|
4161
4165
|
/* @__PURE__ */ g("div", { className: ye.targetList_body, children: [
|
|
4162
4166
|
!(i != null && i.length) && /* @__PURE__ */ l(U, {}),
|
|
4163
|
-
(d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (
|
|
4164
|
-
const s = (
|
|
4167
|
+
(d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (a) => {
|
|
4168
|
+
const s = (a == null ? void 0 : a.value) === (e == null ? void 0 : e.value);
|
|
4165
4169
|
return /* @__PURE__ */ g(
|
|
4166
4170
|
"div",
|
|
4167
4171
|
{
|
|
4168
|
-
className:
|
|
4172
|
+
className: R(
|
|
4169
4173
|
ye.targetList_item,
|
|
4170
4174
|
s && ye.targetList_item_selected
|
|
4171
4175
|
),
|
|
4172
4176
|
onClick: () => {
|
|
4173
4177
|
var r;
|
|
4174
|
-
return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e,
|
|
4178
|
+
return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, a == null ? void 0 : a.value);
|
|
4175
4179
|
},
|
|
4176
4180
|
children: [
|
|
4177
|
-
|
|
4181
|
+
a == null ? void 0 : a.label,
|
|
4178
4182
|
/* @__PURE__ */ l(
|
|
4179
4183
|
de,
|
|
4180
4184
|
{
|
|
4181
4185
|
className: ye.targetList_item_clickable,
|
|
4182
4186
|
onClick: (r) => {
|
|
4183
|
-
a
|
|
4187
|
+
o(a == null ? void 0 : a.value), r.stopPropagation();
|
|
4184
4188
|
}
|
|
4185
4189
|
}
|
|
4186
4190
|
)
|
|
4187
4191
|
]
|
|
4188
4192
|
},
|
|
4189
|
-
|
|
4193
|
+
a == null ? void 0 : a.value
|
|
4190
4194
|
);
|
|
4191
4195
|
})
|
|
4192
4196
|
] })
|
|
4193
4197
|
] });
|
|
4194
4198
|
}
|
|
4195
4199
|
const Id = ue((e) => {
|
|
4196
|
-
const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [
|
|
4200
|
+
const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [o, d] = S(), [a, s] = S(), [r, h] = S(), u = L(() => {
|
|
4197
4201
|
var f;
|
|
4198
|
-
return (f = t.componentNode.get(
|
|
4199
|
-
}, [
|
|
4202
|
+
return (f = t.componentNode.get(a == null ? void 0 : a.id)) == null ? void 0 : f.cId;
|
|
4203
|
+
}, [a]);
|
|
4200
4204
|
function _(f) {
|
|
4201
|
-
var
|
|
4202
|
-
const
|
|
4203
|
-
s(
|
|
4205
|
+
var C, w, P;
|
|
4206
|
+
const v = (w = (C = o == null ? void 0 : o.targets) == null ? void 0 : C.find) == null ? void 0 : w.call(C, (T) => T.id === f);
|
|
4207
|
+
s(v), h((P = v == null ? void 0 : v.opts) == null ? void 0 : P[0]);
|
|
4204
4208
|
}
|
|
4205
4209
|
function m(f) {
|
|
4206
|
-
var
|
|
4210
|
+
var v, C;
|
|
4207
4211
|
h(
|
|
4208
|
-
(
|
|
4212
|
+
(C = (v = a == null ? void 0 : a.opts) == null ? void 0 : v.find) == null ? void 0 : C.call(v, (w) => (w == null ? void 0 : w.operateId) === f)
|
|
4209
4213
|
);
|
|
4210
4214
|
}
|
|
4211
|
-
function
|
|
4215
|
+
function y(f, v) {
|
|
4212
4216
|
d({
|
|
4213
|
-
...
|
|
4217
|
+
...o,
|
|
4214
4218
|
targets: f
|
|
4215
|
-
}),
|
|
4219
|
+
}), v && f.length === 1 && s(f[f.length - 1]);
|
|
4216
4220
|
}
|
|
4217
|
-
function
|
|
4218
|
-
var
|
|
4219
|
-
(
|
|
4221
|
+
function x(f) {
|
|
4222
|
+
var v, C;
|
|
4223
|
+
(C = (v = o == null ? void 0 : o.targets) == null ? void 0 : v.find) == null || C.call(v, (w) => w.id !== (a == null ? void 0 : a.id) ? !1 : (w.opts = f, !0)), d({ ...o }), f.length === 1 && h(f == null ? void 0 : f[0]);
|
|
4220
4224
|
}
|
|
4221
4225
|
function b(f) {
|
|
4222
|
-
var
|
|
4223
|
-
(
|
|
4224
|
-
var
|
|
4225
|
-
return
|
|
4226
|
-
}), d({ ...
|
|
4226
|
+
var v, C;
|
|
4227
|
+
(C = (v = o == null ? void 0 : o.targets) == null ? void 0 : v.find) == null || C.call(v, (w) => {
|
|
4228
|
+
var P, T;
|
|
4229
|
+
return w.id !== (a == null ? void 0 : a.id) ? !1 : ((T = (P = w.opts) == null ? void 0 : P.find) == null || T.call(P, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
|
|
4230
|
+
}), d({ ...o });
|
|
4227
4231
|
}
|
|
4228
4232
|
function I() {
|
|
4229
4233
|
var f;
|
|
4230
|
-
(f = e == null ? void 0 : e.onOk) == null || f.call(e,
|
|
4234
|
+
(f = e == null ? void 0 : e.onOk) == null || f.call(e, o);
|
|
4231
4235
|
}
|
|
4232
|
-
return
|
|
4233
|
-
var f,
|
|
4236
|
+
return E(() => {
|
|
4237
|
+
var f, v, C, w;
|
|
4234
4238
|
if (e != null && e.visible) {
|
|
4235
4239
|
if (!i) {
|
|
4236
|
-
|
|
4240
|
+
A.error("triggerId不存在");
|
|
4237
4241
|
return;
|
|
4238
4242
|
}
|
|
4239
|
-
let
|
|
4240
|
-
|
|
4241
|
-
const
|
|
4242
|
-
s(
|
|
4243
|
-
const q = (
|
|
4243
|
+
let P = (v = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : v.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
|
|
4244
|
+
P = Wt(P || {}), d(P);
|
|
4245
|
+
const T = (C = P == null ? void 0 : P.targets) == null ? void 0 : C[0];
|
|
4246
|
+
s(T);
|
|
4247
|
+
const q = (w = T == null ? void 0 : T.opts) == null ? void 0 : w[0];
|
|
4244
4248
|
h(q);
|
|
4245
4249
|
} else
|
|
4246
4250
|
d(void 0), s(void 0), h(void 0);
|
|
@@ -4264,13 +4268,13 @@ const Id = ue((e) => {
|
|
|
4264
4268
|
sd,
|
|
4265
4269
|
{
|
|
4266
4270
|
className: "border-right",
|
|
4267
|
-
value:
|
|
4271
|
+
value: a == null ? void 0 : a.id,
|
|
4268
4272
|
onChange: (f) => {
|
|
4269
4273
|
_(f);
|
|
4270
4274
|
},
|
|
4271
|
-
targets:
|
|
4272
|
-
onChangeTargets: (f,
|
|
4273
|
-
|
|
4275
|
+
targets: o == null ? void 0 : o.targets,
|
|
4276
|
+
onChangeTargets: (f, v) => {
|
|
4277
|
+
y(f, v === "add");
|
|
4274
4278
|
}
|
|
4275
4279
|
}
|
|
4276
4280
|
),
|
|
@@ -4282,9 +4286,9 @@ const Id = ue((e) => {
|
|
|
4282
4286
|
m(f);
|
|
4283
4287
|
},
|
|
4284
4288
|
cId: u,
|
|
4285
|
-
opts:
|
|
4289
|
+
opts: a == null ? void 0 : a.opts,
|
|
4286
4290
|
onChangeOpts: (f) => {
|
|
4287
|
-
|
|
4291
|
+
x(f);
|
|
4288
4292
|
}
|
|
4289
4293
|
}
|
|
4290
4294
|
)
|
|
@@ -4304,32 +4308,32 @@ const Id = ue((e) => {
|
|
|
4304
4308
|
});
|
|
4305
4309
|
function kd(e) {
|
|
4306
4310
|
var h;
|
|
4307
|
-
const { engine: t } = N(), { componentNode: n } = e, i =
|
|
4311
|
+
const { engine: t } = N(), { componentNode: n } = e, i = L(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), o = Id({
|
|
4308
4312
|
onOk(u) {
|
|
4309
4313
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4310
|
-
var m,
|
|
4311
|
-
return (
|
|
4314
|
+
var m, y;
|
|
4315
|
+
return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (x) => x.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(x, u), !0)), {
|
|
4312
4316
|
events: _ == null ? void 0 : _.events
|
|
4313
4317
|
};
|
|
4314
4318
|
});
|
|
4315
4319
|
}
|
|
4316
|
-
}), d =
|
|
4320
|
+
}), d = L(() => {
|
|
4317
4321
|
var u;
|
|
4318
4322
|
return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
|
|
4319
|
-
var
|
|
4320
|
-
const m = (
|
|
4323
|
+
var y, x;
|
|
4324
|
+
const m = (x = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : x.call(y, (b) => (b == null ? void 0 : b.value) === _.triggerId);
|
|
4321
4325
|
return {
|
|
4322
4326
|
label: `${(m == null ? void 0 : m.label) || "-"}`,
|
|
4323
4327
|
value: `${_.triggerId}`
|
|
4324
4328
|
};
|
|
4325
4329
|
})) || [];
|
|
4326
4330
|
}, [n, i]);
|
|
4327
|
-
function
|
|
4331
|
+
function a(u) {
|
|
4328
4332
|
if (!(u != null && u.value)) {
|
|
4329
|
-
|
|
4333
|
+
A.warn("triggerId不存在");
|
|
4330
4334
|
return;
|
|
4331
4335
|
}
|
|
4332
|
-
|
|
4336
|
+
o.open({
|
|
4333
4337
|
componentNode: n,
|
|
4334
4338
|
triggerId: u == null ? void 0 : u.value,
|
|
4335
4339
|
triggerName: u == null ? void 0 : u.label
|
|
@@ -4337,22 +4341,22 @@ function kd(e) {
|
|
|
4337
4341
|
}
|
|
4338
4342
|
function s(u) {
|
|
4339
4343
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4340
|
-
var m,
|
|
4344
|
+
var m, y;
|
|
4341
4345
|
return {
|
|
4342
4346
|
events: [
|
|
4343
|
-
...((
|
|
4347
|
+
...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (x) => x.triggerId !== u)) || []
|
|
4344
4348
|
]
|
|
4345
4349
|
};
|
|
4346
4350
|
});
|
|
4347
4351
|
}
|
|
4348
4352
|
function r(u) {
|
|
4349
|
-
var m,
|
|
4353
|
+
var m, y, x, b;
|
|
4350
4354
|
if (!u) {
|
|
4351
|
-
|
|
4355
|
+
A.warn("triggerId不存在");
|
|
4352
4356
|
return;
|
|
4353
4357
|
}
|
|
4354
|
-
const _ = (
|
|
4355
|
-
(
|
|
4358
|
+
const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
|
|
4359
|
+
(x = _ == null ? void 0 : _.targets) != null && x.length ? c({
|
|
4356
4360
|
title: "提醒",
|
|
4357
4361
|
content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
|
|
4358
4362
|
onOk(I) {
|
|
@@ -4371,7 +4375,7 @@ function kd(e) {
|
|
|
4371
4375
|
Yn,
|
|
4372
4376
|
{
|
|
4373
4377
|
className: G.eventList_item_opt_clickable,
|
|
4374
|
-
onClick: () =>
|
|
4378
|
+
onClick: () => a(u)
|
|
4375
4379
|
}
|
|
4376
4380
|
),
|
|
4377
4381
|
/* @__PURE__ */ l(
|
|
@@ -4415,36 +4419,36 @@ const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_
|
|
|
4415
4419
|
json_body: Ed
|
|
4416
4420
|
};
|
|
4417
4421
|
function Ad() {
|
|
4418
|
-
const { engine: e } = N(), { componentNode: t } = he(), [n] =
|
|
4422
|
+
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm();
|
|
4419
4423
|
function i() {
|
|
4420
4424
|
n.setFieldsValue({
|
|
4421
4425
|
code: t ? JSON.stringify(t || {}, null, " ") : ""
|
|
4422
4426
|
});
|
|
4423
4427
|
}
|
|
4424
4428
|
function c() {
|
|
4425
|
-
const
|
|
4429
|
+
const o = n.getFieldValue("code") || "";
|
|
4426
4430
|
try {
|
|
4427
|
-
const d = JSON.parse(
|
|
4431
|
+
const d = JSON.parse(o);
|
|
4428
4432
|
if (!vi(d)) {
|
|
4429
4433
|
console.error("must be an object.");
|
|
4430
4434
|
return;
|
|
4431
4435
|
}
|
|
4432
|
-
e.componentNode.update(t == null ? void 0 : t.id, d, { cover: !0 }),
|
|
4436
|
+
e.componentNode.update(t == null ? void 0 : t.id, d, { cover: !0 }), A.success("修改成功");
|
|
4433
4437
|
} catch (d) {
|
|
4434
|
-
console.error(d),
|
|
4438
|
+
console.error(d), A.error("json格式不正确");
|
|
4435
4439
|
}
|
|
4436
4440
|
}
|
|
4437
|
-
return
|
|
4441
|
+
return E(() => {
|
|
4438
4442
|
i();
|
|
4439
|
-
}, [t]), /* @__PURE__ */ g(
|
|
4443
|
+
}, [t]), /* @__PURE__ */ g(M, { className: Ze.json, form: n, children: [
|
|
4440
4444
|
/* @__PURE__ */ g("div", { className: Ze.json_head, children: [
|
|
4441
4445
|
/* @__PURE__ */ g("span", { children: [
|
|
4442
4446
|
/* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
|
|
4443
|
-
/* @__PURE__ */ l(
|
|
4447
|
+
/* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
|
|
4444
4448
|
] }),
|
|
4445
|
-
/* @__PURE__ */ l(
|
|
4449
|
+
/* @__PURE__ */ l($, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
|
|
4446
4450
|
] }),
|
|
4447
|
-
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(
|
|
4451
|
+
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
|
|
4448
4452
|
X,
|
|
4449
4453
|
{
|
|
4450
4454
|
language: "json",
|
|
@@ -4465,16 +4469,16 @@ const Ld = "_singleAttributes_109pm_59", Dd = {
|
|
|
4465
4469
|
singleAttributes: Ld
|
|
4466
4470
|
}, mn = xn({}), he = () => In(mn);
|
|
4467
4471
|
function fn(e) {
|
|
4468
|
-
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [
|
|
4469
|
-
return
|
|
4472
|
+
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [o, d] = S(), a = tn(c);
|
|
4473
|
+
return E(() => {
|
|
4470
4474
|
const s = i.componentNode.get(c.id);
|
|
4471
4475
|
return s && d(s), i.componentNode.onChange(c.id, ({ payload: r }) => {
|
|
4472
4476
|
d({ ...r });
|
|
4473
4477
|
});
|
|
4474
|
-
}, [c.id]),
|
|
4478
|
+
}, [c.id]), E(() => i.onJsonChange(() => {
|
|
4475
4479
|
var s;
|
|
4476
|
-
d(i.componentNode.get((s =
|
|
4477
|
-
}), []),
|
|
4480
|
+
d(i.componentNode.get((s = a == null ? void 0 : a.current) == null ? void 0 : s.id));
|
|
4481
|
+
}), []), L(() => o ? /* @__PURE__ */ l(mn.Provider, { value: { instance: c, componentNode: o }, children: /* @__PURE__ */ l(
|
|
4478
4482
|
ei,
|
|
4479
4483
|
{
|
|
4480
4484
|
className: Dd.singleAttributes,
|
|
@@ -4499,7 +4503,7 @@ function fn(e) {
|
|
|
4499
4503
|
}
|
|
4500
4504
|
]
|
|
4501
4505
|
}
|
|
4502
|
-
) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c,
|
|
4506
|
+
) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, o, n.language]);
|
|
4503
4507
|
}
|
|
4504
4508
|
const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Bd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
|
|
4505
4509
|
multipleInstanceAttributes: Od,
|
|
@@ -4525,7 +4529,7 @@ function Md(e) {
|
|
|
4525
4529
|
}
|
|
4526
4530
|
function jd(e) {
|
|
4527
4531
|
const { instances: t } = e, [n, i] = S();
|
|
4528
|
-
return
|
|
4532
|
+
return E(() => {
|
|
4529
4533
|
i(t[0]);
|
|
4530
4534
|
}, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
|
|
4531
4535
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
|
|
@@ -4535,7 +4539,7 @@ function jd(e) {
|
|
|
4535
4539
|
style: { width: "100%" },
|
|
4536
4540
|
value: n == null ? void 0 : n.id,
|
|
4537
4541
|
onChange: (c) => {
|
|
4538
|
-
i(t.find((
|
|
4542
|
+
i(t.find((o) => o.id === c));
|
|
4539
4543
|
}
|
|
4540
4544
|
}
|
|
4541
4545
|
) }),
|
|
@@ -4549,7 +4553,7 @@ const Td = "_pageAttributes_u2l2i_59", zd = "_pageAttributes_description_u2l2i_6
|
|
|
4549
4553
|
};
|
|
4550
4554
|
function Rd() {
|
|
4551
4555
|
const { engine: e } = N(), [t] = se(), n = bi(), { id: i, options: c } = n || {};
|
|
4552
|
-
function
|
|
4556
|
+
function o(d) {
|
|
4553
4557
|
e.page.update(i, {
|
|
4554
4558
|
options: {
|
|
4555
4559
|
...c,
|
|
@@ -4571,7 +4575,7 @@ function Rd() {
|
|
|
4571
4575
|
] }) }),
|
|
4572
4576
|
/* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
|
|
4573
4577
|
/* @__PURE__ */ g(
|
|
4574
|
-
|
|
4578
|
+
z,
|
|
4575
4579
|
{
|
|
4576
4580
|
label: "页面背景",
|
|
4577
4581
|
labelTip: "设置当前页背景颜色",
|
|
@@ -4583,16 +4587,16 @@ function Rd() {
|
|
|
4583
4587
|
style: { flex: 1 },
|
|
4584
4588
|
value: c == null ? void 0 : c.background,
|
|
4585
4589
|
onChange: (d) => {
|
|
4586
|
-
|
|
4590
|
+
o({ background: d });
|
|
4587
4591
|
}
|
|
4588
4592
|
}
|
|
4589
4593
|
),
|
|
4590
|
-
/* @__PURE__ */ l(
|
|
4594
|
+
/* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4591
4595
|
Z,
|
|
4592
4596
|
{
|
|
4593
4597
|
className: "icon_clickable",
|
|
4594
4598
|
onClick: () => {
|
|
4595
|
-
|
|
4599
|
+
o({ background: "white" });
|
|
4596
4600
|
}
|
|
4597
4601
|
}
|
|
4598
4602
|
) })
|
|
@@ -4600,7 +4604,7 @@ function Rd() {
|
|
|
4600
4604
|
}
|
|
4601
4605
|
),
|
|
4602
4606
|
/* @__PURE__ */ g(
|
|
4603
|
-
|
|
4607
|
+
z,
|
|
4604
4608
|
{
|
|
4605
4609
|
label: "白板背景",
|
|
4606
4610
|
labelTip: "页面所处白板的背景颜色",
|
|
@@ -4612,16 +4616,16 @@ function Rd() {
|
|
|
4612
4616
|
style: { flex: 1 },
|
|
4613
4617
|
value: c == null ? void 0 : c.whiteBoardColor,
|
|
4614
4618
|
onChange: (d) => {
|
|
4615
|
-
|
|
4619
|
+
o({ whiteBoardColor: d });
|
|
4616
4620
|
}
|
|
4617
4621
|
}
|
|
4618
4622
|
),
|
|
4619
|
-
/* @__PURE__ */ l(
|
|
4623
|
+
/* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4620
4624
|
Z,
|
|
4621
4625
|
{
|
|
4622
4626
|
className: "icon_clickable",
|
|
4623
4627
|
onClick: () => {
|
|
4624
|
-
|
|
4628
|
+
o({ whiteBoardColor: "white" });
|
|
4625
4629
|
}
|
|
4626
4630
|
}
|
|
4627
4631
|
) })
|
|
@@ -4629,7 +4633,7 @@ function Rd() {
|
|
|
4629
4633
|
}
|
|
4630
4634
|
),
|
|
4631
4635
|
/* @__PURE__ */ g(
|
|
4632
|
-
|
|
4636
|
+
z,
|
|
4633
4637
|
{
|
|
4634
4638
|
label: "边框",
|
|
4635
4639
|
childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
|
|
@@ -4640,7 +4644,7 @@ function Rd() {
|
|
|
4640
4644
|
{
|
|
4641
4645
|
checked: c == null ? void 0 : c.bordered,
|
|
4642
4646
|
onChange: (d) => {
|
|
4643
|
-
|
|
4647
|
+
o({
|
|
4644
4648
|
bordered: d.target.checked
|
|
4645
4649
|
});
|
|
4646
4650
|
}
|
|
@@ -4653,16 +4657,16 @@ function Rd() {
|
|
|
4653
4657
|
style: { flex: 1 },
|
|
4654
4658
|
value: c == null ? void 0 : c.borderColor,
|
|
4655
4659
|
onChange: (d) => {
|
|
4656
|
-
|
|
4660
|
+
o({ borderColor: d });
|
|
4657
4661
|
}
|
|
4658
4662
|
}
|
|
4659
4663
|
),
|
|
4660
|
-
/* @__PURE__ */ l(
|
|
4664
|
+
/* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4661
4665
|
Z,
|
|
4662
4666
|
{
|
|
4663
4667
|
className: "icon_clickable",
|
|
4664
4668
|
onClick: () => {
|
|
4665
|
-
|
|
4669
|
+
o({ borderColor: "white" });
|
|
4666
4670
|
}
|
|
4667
4671
|
}
|
|
4668
4672
|
) })
|
|
@@ -4674,7 +4678,7 @@ function Rd() {
|
|
|
4674
4678
|
] });
|
|
4675
4679
|
}
|
|
4676
4680
|
function Fd() {
|
|
4677
|
-
const e = yt(), t =
|
|
4681
|
+
const e = yt(), t = L(() => !!e.length, [e]), n = L(() => e.length === 1, [e]);
|
|
4678
4682
|
return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
|
|
4679
4683
|
// 选中组件实例配置
|
|
4680
4684
|
/* @__PURE__ */ g(W, { children: [
|
|
@@ -4694,7 +4698,14 @@ function Cr(e) {
|
|
|
4694
4698
|
(c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
|
|
4695
4699
|
});
|
|
4696
4700
|
}, []), /* @__PURE__ */ g("div", { className: te.page, children: [
|
|
4697
|
-
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(
|
|
4701
|
+
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(
|
|
4702
|
+
El,
|
|
4703
|
+
{
|
|
4704
|
+
pageLogo: e == null ? void 0 : e.pageLogo,
|
|
4705
|
+
pageToolBar: e == null ? void 0 : e.pageToolBar,
|
|
4706
|
+
toolBarOptions: e == null ? void 0 : e.toolBarOptions
|
|
4707
|
+
}
|
|
4708
|
+
) }),
|
|
4698
4709
|
/* @__PURE__ */ g("div", { className: te.page_body, children: [
|
|
4699
4710
|
/* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
|
|
4700
4711
|
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|