react-big-screen 0.0.12 → 0.0.14
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/README.md +47 -0
- package/es/{attributes-DX8kqNSX.mjs → attributes-BPU7D3rB.mjs} +1 -1
- package/es/{attributes-xsuWi_su.mjs → attributes-BQYKMvcj.mjs} +1 -1
- package/es/{attributes-BqM6ULf4.mjs → attributes-BmekoT3X.mjs} +1 -1
- package/es/{attributes-iVSwJDAX.mjs → attributes-Btb0WFLF.mjs} +1 -1
- package/es/{attributes-CXxDCEoU.mjs → attributes-C3fvsuzJ.mjs} +1 -1
- package/es/{attributes-CkxbpIDj.mjs → attributes-C9O8_sg4.mjs} +1 -1
- package/es/{attributes-Ble3yfo1.mjs → attributes-CWY2_iW1.mjs} +1 -1
- package/es/{attributes-Cpmd7Txn.mjs → attributes-CW_9BAq2.mjs} +2 -2
- package/es/{attributes-C6B-ZXmC.mjs → attributes-D4wypprY.mjs} +1 -1
- package/es/{attributes-CnC5d4dB.mjs → attributes-D6BpnolK.mjs} +1 -1
- package/es/{attributes-zcNzA9eV.mjs → attributes-DUZPLASc.mjs} +1 -1
- package/es/{attributes-CAbIPkXp.mjs → attributes-Dhnyf9QU.mjs} +1 -1
- package/es/{index-r57x4X5U.mjs → index-0kmSz75m.mjs} +2 -2
- package/es/{index-BFgFK9TM.mjs → index-B2DgN7Ho.mjs} +3 -3
- package/es/{index-izPLYvUd.mjs → index-BZYcTX5j.mjs} +248 -222
- package/es/{index-BataooQb.mjs → index-Bi3qRAX3.mjs} +2 -2
- package/es/{index-DFNd2-4P.mjs → index-BlACjoGr.mjs} +2 -2
- package/es/{index-yKkQtvIX.mjs → index-C6Xzniz1.mjs} +2 -2
- package/es/{index--QItsPX3.mjs → index-CK1f83Ne.mjs} +2 -2
- package/es/{index-CYN5AnmR.mjs → index-CTx-cvWk.mjs} +2 -2
- package/es/{index-Bb-5dA14.mjs → index-Cj_g4N5m.mjs} +2 -2
- package/es/{index-DeQ7oW_E.mjs → index-Cslh09K5.mjs} +2 -2
- package/es/{index-Pqe51Zf-.mjs → index-CwGNi732.mjs} +2 -2
- package/es/{index-DCRN8jl1.mjs → index-CwijThLu.mjs} +1 -1
- package/es/{index-CEomX12N.mjs → index-Cz49jHht.mjs} +3 -3
- package/es/{index-DQuRy5CD.mjs → index-D-3DbMMl.mjs} +2 -2
- package/es/{index-EQ5Mshvz.mjs → index-DSz8a2B7.mjs} +2 -2
- package/es/{index-D0U_cb8E.mjs → index-DThqOiX3.mjs} +2 -2
- package/es/{index-sfCjPr12.mjs → index-DWpwc6bV.mjs} +2 -2
- package/es/{index-DrLpfkDS.mjs → index-DYMjU1YC.mjs} +3 -3
- package/es/{index-BW_uo1lA.mjs → index-DpRRQVh-.mjs} +732 -747
- package/es/{index-H0rVQWTL.mjs → index-Dx-GVWd-.mjs} +2 -2
- package/es/{index-DTmQQ9sf.mjs → index-LSiyLbzB.mjs} +2 -2
- package/es/{index-3cCHmj8w.mjs → index-LjyKMBIL.mjs} +3 -3
- package/es/{index-DEebKkW3.mjs → index-efgz51Ht.mjs} +2 -2
- package/es/{index-CtV1M2dW.mjs → index-pjNmKgyo.mjs} +2 -2
- package/es/{index-DqEg6HY6.mjs → index-s23NvDdl.mjs} +1 -1
- package/es/{index-awsf1gCq.mjs → index-yEom7dpa.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-1nlDtL2q.mjs → selectPage-bS9p5soG.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-BuiSdDvY.mjs → useCurrentPageId-Cc4bRYxO.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +5 -0
- package/types/src/export/index.d.ts +10 -2
- package/types/src/pages/components/Footer/index.d.ts +1 -0
- package/types/src/pages/components/Header/index.d.ts +7 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var vn = Object.defineProperty;
|
|
2
2
|
var bn = (e, t, n) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var ee = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as l, jsxs as g, Fragment as W } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
5
5
|
import zt, { useRef as B, useEffect as w, useMemo as A, useState as S, forwardRef as Cn, useImperativeHandle as xn, Suspense as Tt, createContext as In, useContext as kn } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
|
-
import { DownOutlined as Sn, ReloadOutlined as
|
|
7
|
-
import { message as E, Tooltip as T, 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
|
|
6
|
+
import { DownOutlined as Sn, ReloadOutlined as Z, CloseOutlined as Nn, ArrowUpOutlined as et, ArrowRightOutlined as wn, ArrowDownOutlined as tt, ArrowLeftOutlined as En, QuestionCircleOutlined as An, UploadOutlined as Ln, VerticalAlignBottomOutlined as $t, SaveOutlined as Q, ClearOutlined as Rt, TranslationOutlined as Dn, SettingOutlined as Ft, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Mn, RightOutlined as Bn, VerticalAlignTopOutlined as jn, UnlockOutlined as zn, BlockOutlined as Tn, DisconnectOutlined as $n, CopyOutlined as Rn, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Fn, BorderBottomOutlined as Hn, DownloadOutlined as Kn, LoadingOutlined as Kt, EditOutlined as Ut, BarsOutlined as Un, FileOutlined as qn, AppstoreOutlined as Jn, FileTextOutlined as Wn, ApartmentOutlined as Vn, BankOutlined as Gn, HistoryOutlined as Xn, PlusOutlined as rt, RedoOutlined as Yn } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
|
|
7
|
+
import { message as E, Tooltip as T, 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 qt, Tabs as ei, Empty as xt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
|
|
8
8
|
import $ from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
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 Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-
|
|
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 Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-BZYcTX5j.mjs";
|
|
10
10
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
11
11
|
import { createPortal as si } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
12
12
|
import { createRoot as Wt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
13
13
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
14
14
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
15
|
-
import { u as Ee, i as Ae, a as gt, b as Vt, c as Gt, g as ae, d as ui, e as hi, f as gi, h as _i, j as Xt, s as St, P as mi, k as fi, l as yi } from "./index-
|
|
15
|
+
import { u as Ee, i as Ae, a as gt, b as Vt, c as Gt, g as ae, d as ui, e as hi, f as gi, h as _i, j as Xt, s as St, P as mi, k as fi, l as yi } from "./index-CTx-cvWk.mjs";
|
|
16
16
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
|
|
17
|
-
import { I as
|
|
17
|
+
import { I as p, L as Le, a as z, C as vi, b as $e } from "./Line-DVDoMjnT.mjs";
|
|
18
18
|
import { I as _t, a as bi } from "./IInputNumber-Vk6zq2bP.mjs";
|
|
19
19
|
import { useTranslation as se } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-i18next@15.7.4_i18next@24.2.3_typescript@5.9.3__react-dom@18.3.1_react@18.3.1__react@18.3.1_typescript@5.9.3/node_modules/react-i18next/dist/es/index.js";
|
|
20
20
|
import lt from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
|
|
21
21
|
import Ci from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
|
|
22
22
|
import { cloneDeep as Yt, debounce as xi, groupBy as Ii, throttle as Zt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js";
|
|
23
23
|
import { useUpdateEffect as mt, useUnmount as Qt, useRequest as pt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/ahooks@3.9.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/ahooks/es/index.js";
|
|
24
|
-
import { I as
|
|
24
|
+
import { I as U, i as ki, a as Si } from "./index-Cq0uVP0H.mjs";
|
|
25
25
|
import * as Ni from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/editor.api.js";
|
|
26
26
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js";
|
|
27
27
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js";
|
|
@@ -30,10 +30,10 @@ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/monaco-editor@
|
|
|
30
30
|
import ft from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js";
|
|
31
31
|
import { saveAs as en } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.js";
|
|
32
32
|
import { u as tn } from "./useEffectOnce-Ct0JMBZd.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-bS9p5soG.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-Cc4bRYxO.mjs";
|
|
35
35
|
import { u as nn } from "./useListenRef-Dqm6KZRj.mjs";
|
|
36
|
-
import { I as Ce } from "./index-
|
|
36
|
+
import { I as Ce } from "./index-s23NvDdl.mjs";
|
|
37
37
|
async function ln(e) {
|
|
38
38
|
return new Promise((t) => {
|
|
39
39
|
let n = document.createElement("input");
|
|
@@ -94,12 +94,12 @@ function Di(e, t) {
|
|
|
94
94
|
ref: i,
|
|
95
95
|
component: e,
|
|
96
96
|
onCancel: (...s) => {
|
|
97
|
-
var r,
|
|
98
|
-
(
|
|
97
|
+
var r, h;
|
|
98
|
+
(h = (r = c.current) == null ? void 0 : r.onCancel) == null || h.call(r, ...s);
|
|
99
99
|
},
|
|
100
100
|
onOk: (...s) => {
|
|
101
|
-
var r,
|
|
102
|
-
(
|
|
101
|
+
var r, h;
|
|
102
|
+
(h = (r = c.current) == null ? void 0 : r.onOk) == null || h.call(r, ...s);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
) })
|
|
@@ -107,12 +107,12 @@ function Di(e, t) {
|
|
|
107
107
|
d && (o.unmount(), d.remove(), d = void 0);
|
|
108
108
|
}, {
|
|
109
109
|
open(s) {
|
|
110
|
-
var r,
|
|
111
|
-
(
|
|
110
|
+
var r, h;
|
|
111
|
+
(h = (r = i.current) == null ? void 0 : r.open) == null || h.call(r, s);
|
|
112
112
|
},
|
|
113
113
|
close(s = !0) {
|
|
114
|
-
var r,
|
|
115
|
-
(
|
|
114
|
+
var r, h;
|
|
115
|
+
(h = (r = i.current) == null ? void 0 : r.close) == null || h.call(r, s);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
}, []);
|
|
@@ -263,7 +263,7 @@ function Ki() {
|
|
|
263
263
|
});
|
|
264
264
|
}), e.instance.unselectAll();
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Ui() {
|
|
267
267
|
const e = k.getActiveEngine();
|
|
268
268
|
if (!e) return;
|
|
269
269
|
e.instance.getAllSelected().forEach((n) => {
|
|
@@ -272,7 +272,7 @@ function qi() {
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function qi() {
|
|
276
276
|
const e = k.getActiveEngine();
|
|
277
277
|
if (!e) return;
|
|
278
278
|
const t = e.instance.getAllSelected();
|
|
@@ -434,23 +434,21 @@ function pi() {
|
|
|
434
434
|
"Shift + Ctrl + Z": () => ot()
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
const el = "
|
|
437
|
+
const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijjl_74", il = "_page_body_left_1ijjl_79", ll = "_page_body_main_1ijjl_86", cl = "_page_body_right_1ijjl_91", te = {
|
|
438
438
|
page: el,
|
|
439
439
|
page_header: tl,
|
|
440
440
|
page_body: nl,
|
|
441
441
|
page_body_left: il,
|
|
442
442
|
page_body_main: ll,
|
|
443
|
-
page_body_right: cl
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
tooltipButton_hover: hl,
|
|
453
|
-
tooltipButton_disabled: gl
|
|
443
|
+
page_body_right: cl
|
|
444
|
+
}, al = "_header_2phks_59", ol = "_header_flex_2phks_67", dl = "_header_flex_btnContainer_2phks_68", Ie = {
|
|
445
|
+
header: al,
|
|
446
|
+
header_flex: ol,
|
|
447
|
+
header_flex_btnContainer: dl
|
|
448
|
+
}, rl = "_tooltipButton_tq7lx_59", sl = "_tooltipButton_hover_tq7lx_70", ul = "_tooltipButton_disabled_tq7lx_73", Fe = {
|
|
449
|
+
tooltipButton: rl,
|
|
450
|
+
tooltipButton_hover: sl,
|
|
451
|
+
tooltipButton_disabled: ul
|
|
454
452
|
};
|
|
455
453
|
function rn(e) {
|
|
456
454
|
return /* @__PURE__ */ l(T, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
|
|
@@ -474,8 +472,8 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
474
472
|
"data-injectcss"
|
|
475
473
|
), n = n.getAttribute("data-disable-injectsvg");
|
|
476
474
|
if (!n) {
|
|
477
|
-
var i, c, a, d, o, s = function(
|
|
478
|
-
_.parentNode.insertBefore(
|
|
475
|
+
var i, c, a, d, o, s = function(u, _) {
|
|
476
|
+
_.parentNode.insertBefore(u, _);
|
|
479
477
|
};
|
|
480
478
|
if (t && !e.__iconfont__svg__cssinject__) {
|
|
481
479
|
e.__iconfont__svg__cssinject__ = !0;
|
|
@@ -483,27 +481,27 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
483
481
|
document.write(
|
|
484
482
|
"<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>"
|
|
485
483
|
);
|
|
486
|
-
} catch (
|
|
487
|
-
console && console.log(
|
|
484
|
+
} catch (u) {
|
|
485
|
+
console && console.log(u);
|
|
488
486
|
}
|
|
489
487
|
}
|
|
490
488
|
i = function() {
|
|
491
|
-
var
|
|
492
|
-
_.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", _ = _, (
|
|
489
|
+
var u, _ = document.createElement("div");
|
|
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(_));
|
|
493
491
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(i, 0) : (c = function() {
|
|
494
492
|
document.removeEventListener("DOMContentLoaded", c, !1), i();
|
|
495
|
-
}, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (a = i, d = e.document, o = !1,
|
|
493
|
+
}, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (a = i, d = e.document, o = !1, h(), d.onreadystatechange = function() {
|
|
496
494
|
d.readyState == "complete" && (d.onreadystatechange = null, r());
|
|
497
495
|
});
|
|
498
496
|
}
|
|
499
497
|
function r() {
|
|
500
498
|
o || (o = !0, a());
|
|
501
499
|
}
|
|
502
|
-
function
|
|
500
|
+
function h() {
|
|
503
501
|
try {
|
|
504
502
|
d.documentElement.doScroll("left");
|
|
505
503
|
} catch {
|
|
506
|
-
return void setTimeout(
|
|
504
|
+
return void setTimeout(h, 50);
|
|
507
505
|
}
|
|
508
506
|
r();
|
|
509
507
|
}
|
|
@@ -511,11 +509,11 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
511
509
|
function Nt(e) {
|
|
512
510
|
return /* @__PURE__ */ l("svg", { className: "icon", "aria-hidden": "true", children: /* @__PURE__ */ l("use", { xlinkHref: `#${e == null ? void 0 : e.type}` }) });
|
|
513
511
|
}
|
|
514
|
-
const
|
|
515
|
-
sizeBar:
|
|
516
|
-
},
|
|
517
|
-
inputNumberWithSuffix:
|
|
518
|
-
inputNumberWithSuffix_suffix:
|
|
512
|
+
const hl = "_sizeBar_1yvet_59", gl = {
|
|
513
|
+
sizeBar: hl
|
|
514
|
+
}, _l = "_inputNumberWithSuffix_1pwr4_59", ml = "_inputNumberWithSuffix_suffix_1pwr4_63", wt = {
|
|
515
|
+
inputNumberWithSuffix: _l,
|
|
516
|
+
inputNumberWithSuffix_suffix: ml
|
|
519
517
|
};
|
|
520
518
|
function Et(e) {
|
|
521
519
|
const { suffix: t, containerStyle: n, containerClassName: i, ...c } = e;
|
|
@@ -531,18 +529,18 @@ function Et(e) {
|
|
|
531
529
|
}
|
|
532
530
|
);
|
|
533
531
|
}
|
|
534
|
-
const
|
|
532
|
+
const fl = {
|
|
535
533
|
50: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "50%" }),
|
|
536
534
|
100: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "100%" }),
|
|
537
535
|
150: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "150%" }),
|
|
538
536
|
200: " "
|
|
539
537
|
};
|
|
540
|
-
function
|
|
538
|
+
function yl(e) {
|
|
541
539
|
const { value: t = 1, isCustom: n } = e, i = Ee(), c = A(() => i.scaleMinZoom * 100, [i]), a = A(() => i.scaleMaxZoom * 100, [i]), d = A(() => i.scaleDefault * 100, [i]), o = A(() => Math.round(t * 100), [t]);
|
|
542
540
|
function s(r) {
|
|
543
|
-
var
|
|
544
|
-
const
|
|
545
|
-
|
|
541
|
+
var u;
|
|
542
|
+
const h = Math.round(Number(r)) / 100;
|
|
543
|
+
h !== o && ((u = e == null ? void 0 : e.onChange) == null || u.call(e, h));
|
|
546
544
|
}
|
|
547
545
|
return /* @__PURE__ */ l(
|
|
548
546
|
st,
|
|
@@ -557,7 +555,7 @@ function bl(e) {
|
|
|
557
555
|
tooltip: {
|
|
558
556
|
formatter: (r) => `${r}%`
|
|
559
557
|
},
|
|
560
|
-
marks:
|
|
558
|
+
marks: fl,
|
|
561
559
|
value: o,
|
|
562
560
|
onChange: s
|
|
563
561
|
}
|
|
@@ -577,7 +575,7 @@ function bl(e) {
|
|
|
577
575
|
}
|
|
578
576
|
),
|
|
579
577
|
/* @__PURE__ */ l(rn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
|
|
580
|
-
|
|
578
|
+
Z,
|
|
581
579
|
{
|
|
582
580
|
className: "theme-color icon_clickable",
|
|
583
581
|
onClick: () => {
|
|
@@ -594,9 +592,9 @@ function bl(e) {
|
|
|
594
592
|
}
|
|
595
593
|
);
|
|
596
594
|
}
|
|
597
|
-
function
|
|
595
|
+
function vl() {
|
|
598
596
|
const e = Ee(), { engine: t } = N();
|
|
599
|
-
return /* @__PURE__ */ g("div", { className:
|
|
597
|
+
return /* @__PURE__ */ g("div", { className: gl.sizeBar, id: "rbs-sizebar", children: [
|
|
600
598
|
/* @__PURE__ */ l(
|
|
601
599
|
Et,
|
|
602
600
|
{
|
|
@@ -623,7 +621,7 @@ function Cl() {
|
|
|
623
621
|
}
|
|
624
622
|
),
|
|
625
623
|
/* @__PURE__ */ l(
|
|
626
|
-
|
|
624
|
+
yl,
|
|
627
625
|
{
|
|
628
626
|
value: e.scale,
|
|
629
627
|
onChange: (n) => {
|
|
@@ -654,7 +652,7 @@ function P({ children: e }) {
|
|
|
654
652
|
}
|
|
655
653
|
);
|
|
656
654
|
}
|
|
657
|
-
function
|
|
655
|
+
function bl() {
|
|
658
656
|
const [e] = se();
|
|
659
657
|
return /* @__PURE__ */ g(
|
|
660
658
|
D,
|
|
@@ -792,15 +790,15 @@ function xl() {
|
|
|
792
790
|
}
|
|
793
791
|
);
|
|
794
792
|
}
|
|
795
|
-
const
|
|
796
|
-
function
|
|
793
|
+
const Cl = ["rbs-screen.top"];
|
|
794
|
+
function xl(e = window.location.host) {
|
|
797
795
|
const t = e == null ? void 0 : e.toLowerCase();
|
|
798
|
-
return
|
|
796
|
+
return Cl.some((n) => {
|
|
799
797
|
var i, c;
|
|
800
798
|
return (c = t == null ? void 0 : t.includes) == null ? void 0 : c.call(t, (i = n == null ? void 0 : n.toLowerCase) == null ? void 0 : i.call(n));
|
|
801
799
|
});
|
|
802
800
|
}
|
|
803
|
-
const
|
|
801
|
+
const Il = (e, t, n) => {
|
|
804
802
|
const i = e[t];
|
|
805
803
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, a) => {
|
|
806
804
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -813,12 +811,12 @@ const Sl = (e, t, n) => {
|
|
|
813
811
|
);
|
|
814
812
|
});
|
|
815
813
|
};
|
|
816
|
-
async function
|
|
814
|
+
async function kl(e) {
|
|
817
815
|
var i;
|
|
818
|
-
const t = await
|
|
816
|
+
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-BZYcTX5j.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-BZYcTX5j.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
|
|
819
817
|
(i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
|
|
820
818
|
}
|
|
821
|
-
function
|
|
819
|
+
function Sl() {
|
|
822
820
|
return /* @__PURE__ */ l(
|
|
823
821
|
be,
|
|
824
822
|
{
|
|
@@ -831,14 +829,14 @@ function wl() {
|
|
|
831
829
|
}
|
|
832
830
|
],
|
|
833
831
|
onClick({ key: e }) {
|
|
834
|
-
|
|
832
|
+
kl(e);
|
|
835
833
|
}
|
|
836
834
|
},
|
|
837
835
|
children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, id: "rbs-choose-example-button", children: "切换示例" })
|
|
838
836
|
}
|
|
839
837
|
);
|
|
840
838
|
}
|
|
841
|
-
function
|
|
839
|
+
function Nl() {
|
|
842
840
|
return /* @__PURE__ */ l(
|
|
843
841
|
K,
|
|
844
842
|
{
|
|
@@ -852,51 +850,51 @@ function El() {
|
|
|
852
850
|
}
|
|
853
851
|
);
|
|
854
852
|
}
|
|
855
|
-
const
|
|
856
|
-
function
|
|
857
|
-
const { engine:
|
|
853
|
+
const wl = xl();
|
|
854
|
+
function El(e) {
|
|
855
|
+
const { engine: t, rbsEngine: n } = N(), [i, c] = se(), a = an(), d = c.language === ci.zh, o = A(() => [
|
|
858
856
|
{
|
|
859
857
|
key: "shortCutKeys",
|
|
860
|
-
description: /* @__PURE__ */ l(
|
|
858
|
+
description: /* @__PURE__ */ l(bl, {}),
|
|
861
859
|
icon: /* @__PURE__ */ l(An, {})
|
|
862
860
|
},
|
|
863
861
|
{
|
|
864
862
|
key: "undo",
|
|
865
|
-
description:
|
|
866
|
-
disabled: !
|
|
863
|
+
description: i("head.undo"),
|
|
864
|
+
disabled: !a.isCanGoBack,
|
|
867
865
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-undo" })
|
|
868
866
|
},
|
|
869
867
|
{
|
|
870
868
|
key: "cancelUndo",
|
|
871
|
-
description:
|
|
872
|
-
disabled: !
|
|
869
|
+
description: i("head.cancelUndo"),
|
|
870
|
+
disabled: !a.isCanGoForward,
|
|
873
871
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
|
|
874
872
|
},
|
|
875
|
-
{ key: "export", description:
|
|
876
|
-
{ key: "import", description:
|
|
877
|
-
{ key: "save", description:
|
|
878
|
-
{ key: "clear", description:
|
|
873
|
+
{ key: "export", description: i("head.export"), icon: /* @__PURE__ */ l(Ln, {}) },
|
|
874
|
+
{ key: "import", description: i("head.import"), icon: /* @__PURE__ */ l($t, {}) },
|
|
875
|
+
{ key: "save", description: i("head.save"), icon: /* @__PURE__ */ l(Q, {}) },
|
|
876
|
+
{ key: "clear", description: i("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
879
877
|
{
|
|
880
878
|
key: "language",
|
|
881
|
-
description:
|
|
879
|
+
description: i("head.language", { text: `${d ? "切换英语" : "change chinese"}` }),
|
|
882
880
|
icon: /* @__PURE__ */ l(Dn, {})
|
|
883
881
|
},
|
|
884
882
|
{
|
|
885
883
|
key: "settings",
|
|
886
|
-
description:
|
|
884
|
+
description: i("head.settings"),
|
|
887
885
|
disabled: !0,
|
|
888
886
|
icon: /* @__PURE__ */ l(Ft, {})
|
|
889
887
|
}
|
|
890
888
|
// { key: "preview", description: t("head.preview"), icon: <DesktopOutlined /> },
|
|
891
|
-
], [
|
|
892
|
-
function
|
|
889
|
+
], [c.language, a.isCanGoForward, a.isCanGoBack]);
|
|
890
|
+
function s() {
|
|
893
891
|
window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
|
|
894
892
|
}
|
|
895
|
-
async function
|
|
896
|
-
|
|
893
|
+
async function r() {
|
|
894
|
+
n == null || n.emit("startPreview", t);
|
|
897
895
|
}
|
|
898
|
-
function
|
|
899
|
-
switch (
|
|
896
|
+
function h(_) {
|
|
897
|
+
switch (_.key) {
|
|
900
898
|
case "undo":
|
|
901
899
|
bt();
|
|
902
900
|
break;
|
|
@@ -904,58 +902,59 @@ function Ll() {
|
|
|
904
902
|
ot();
|
|
905
903
|
break;
|
|
906
904
|
case "export":
|
|
907
|
-
|
|
908
|
-
const
|
|
909
|
-
Jt(
|
|
905
|
+
t.getJSON().then((y) => {
|
|
906
|
+
const C = JSON.stringify(y);
|
|
907
|
+
Jt(C, "大屏看板.json");
|
|
910
908
|
});
|
|
911
909
|
break;
|
|
912
910
|
case "import":
|
|
913
|
-
Ai().then((
|
|
914
|
-
if (!
|
|
911
|
+
Ai().then((y) => {
|
|
912
|
+
if (!y)
|
|
915
913
|
return E.warn("文件内容不能为空");
|
|
916
914
|
try {
|
|
917
|
-
const
|
|
918
|
-
|
|
915
|
+
const C = JSON.parse(y);
|
|
916
|
+
t.loadJSON(C);
|
|
919
917
|
} catch {
|
|
920
918
|
E.error("请上传json格式文件");
|
|
921
919
|
}
|
|
922
920
|
});
|
|
923
921
|
break;
|
|
924
922
|
case "preview":
|
|
925
|
-
|
|
923
|
+
r();
|
|
926
924
|
break;
|
|
927
925
|
case "save":
|
|
928
926
|
vt();
|
|
929
927
|
break;
|
|
930
928
|
case "clear":
|
|
931
|
-
|
|
929
|
+
t.clear();
|
|
932
930
|
break;
|
|
933
931
|
case "settings":
|
|
934
932
|
break;
|
|
935
933
|
case "language":
|
|
936
|
-
const
|
|
937
|
-
ai(
|
|
934
|
+
const m = d ? "en" : "zh";
|
|
935
|
+
ai(m), t.config.setConfig({ language: m });
|
|
938
936
|
break;
|
|
939
937
|
}
|
|
940
938
|
}
|
|
939
|
+
const u = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
940
|
+
/* @__PURE__ */ l("b", { children: "BigScreen" }),
|
|
941
|
+
!wl && /* @__PURE__ */ l(On, { style: { cursor: "pointer", fontSize: 16 }, onClick: s })
|
|
942
|
+
] });
|
|
941
943
|
return /* @__PURE__ */ g("div", { className: Ie.header, children: [
|
|
944
|
+
(e == null ? void 0 : e.pageLogo) || u,
|
|
945
|
+
/* @__PURE__ */ l(vl, {}),
|
|
942
946
|
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
943
|
-
/* @__PURE__ */ l(
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
/* @__PURE__ */ l(Cl, {}),
|
|
947
|
-
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
948
|
-
/* @__PURE__ */ l(wl, {}),
|
|
949
|
-
/* @__PURE__ */ l(El, {}),
|
|
950
|
-
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: "rbs-tool-bar", children: d.map((u) => /* @__PURE__ */ l(
|
|
947
|
+
/* @__PURE__ */ l(Sl, {}),
|
|
948
|
+
/* @__PURE__ */ l(Nl, {}),
|
|
949
|
+
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: "rbs-tool-bar", children: o.map((_) => /* @__PURE__ */ l(
|
|
951
950
|
rn,
|
|
952
951
|
{
|
|
953
|
-
disabled:
|
|
954
|
-
title:
|
|
955
|
-
onClick: () =>
|
|
956
|
-
children:
|
|
952
|
+
disabled: _ == null ? void 0 : _.disabled,
|
|
953
|
+
title: _.description,
|
|
954
|
+
onClick: () => h(_),
|
|
955
|
+
children: _ == null ? void 0 : _.icon
|
|
957
956
|
},
|
|
958
|
-
|
|
957
|
+
_.key
|
|
959
958
|
)) }),
|
|
960
959
|
/* @__PURE__ */ l(
|
|
961
960
|
K,
|
|
@@ -964,34 +963,34 @@ function Ll() {
|
|
|
964
963
|
size: "small",
|
|
965
964
|
style: { fontSize: 12 },
|
|
966
965
|
id: "rbs-preview",
|
|
967
|
-
onClick:
|
|
966
|
+
onClick: r,
|
|
968
967
|
children: "开始预览"
|
|
969
968
|
}
|
|
970
969
|
)
|
|
971
970
|
] })
|
|
972
971
|
] });
|
|
973
972
|
}
|
|
974
|
-
const
|
|
975
|
-
menu:
|
|
976
|
-
menu_bar:
|
|
977
|
-
menu_main:
|
|
978
|
-
},
|
|
979
|
-
library:
|
|
980
|
-
library_header:
|
|
981
|
-
library_main:
|
|
982
|
-
},
|
|
983
|
-
componentsBlock:
|
|
984
|
-
},
|
|
985
|
-
componentItem:
|
|
986
|
-
componentItem_body:
|
|
987
|
-
componentItem_footer:
|
|
973
|
+
const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_72", He = {
|
|
974
|
+
menu: Al,
|
|
975
|
+
menu_bar: Ll,
|
|
976
|
+
menu_main: Dl
|
|
977
|
+
}, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Ml = "_library_main_11n9v_83", Ke = {
|
|
978
|
+
library: Ol,
|
|
979
|
+
library_header: Pl,
|
|
980
|
+
library_main: Ml
|
|
981
|
+
}, Bl = "_componentsBlock_mx05c_59", jl = {
|
|
982
|
+
componentsBlock: Bl
|
|
983
|
+
}, zl = "_componentItem_1a82r_59", Tl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
|
|
984
|
+
componentItem: zl,
|
|
985
|
+
componentItem_body: Tl,
|
|
986
|
+
componentItem_footer: $l
|
|
988
987
|
};
|
|
989
|
-
class
|
|
988
|
+
class Rl {
|
|
990
989
|
constructor() {
|
|
991
990
|
// style tag.
|
|
992
|
-
|
|
991
|
+
ee(this, "style");
|
|
993
992
|
// count usage times.
|
|
994
|
-
|
|
993
|
+
ee(this, "count", 0);
|
|
995
994
|
}
|
|
996
995
|
mount() {
|
|
997
996
|
if (this.count++, this.style)
|
|
@@ -1003,8 +1002,8 @@ class Hl {
|
|
|
1003
1002
|
!this.style || --this.count > 0 || (this.count = 0, this.style.remove(), this.style = void 0);
|
|
1004
1003
|
}
|
|
1005
1004
|
}
|
|
1006
|
-
const At = new
|
|
1007
|
-
function
|
|
1005
|
+
const At = new Rl();
|
|
1006
|
+
function Fl(e, t) {
|
|
1008
1007
|
let n = !1;
|
|
1009
1008
|
e.addEventListener("mousedown", c);
|
|
1010
1009
|
function i(o) {
|
|
@@ -1025,14 +1024,14 @@ function Kl(e, t) {
|
|
|
1025
1024
|
d(), e.removeEventListener("mousedown", c);
|
|
1026
1025
|
};
|
|
1027
1026
|
}
|
|
1028
|
-
class
|
|
1027
|
+
class Hl {
|
|
1029
1028
|
constructor() {
|
|
1030
|
-
|
|
1031
|
-
|
|
1029
|
+
ee(this, "isDragging", !1);
|
|
1030
|
+
ee(this, "dragOptions", {
|
|
1032
1031
|
type: "",
|
|
1033
1032
|
data: void 0
|
|
1034
1033
|
});
|
|
1035
|
-
|
|
1034
|
+
ee(this, "draggingChangeCallback", []);
|
|
1036
1035
|
}
|
|
1037
1036
|
notifyDraggingChange() {
|
|
1038
1037
|
this.draggingChangeCallback.forEach((t) => {
|
|
@@ -1074,7 +1073,7 @@ class ql {
|
|
|
1074
1073
|
return this.dragOptions;
|
|
1075
1074
|
}
|
|
1076
1075
|
}
|
|
1077
|
-
const ce = new
|
|
1076
|
+
const ce = new Hl();
|
|
1078
1077
|
function sn(e, t) {
|
|
1079
1078
|
const n = B(t);
|
|
1080
1079
|
n.current = t, w(() => {
|
|
@@ -1083,7 +1082,7 @@ function sn(e, t) {
|
|
|
1083
1082
|
console.warn("dom must be set.");
|
|
1084
1083
|
return;
|
|
1085
1084
|
}
|
|
1086
|
-
const c =
|
|
1085
|
+
const c = Fl(i, {
|
|
1087
1086
|
onStart() {
|
|
1088
1087
|
At.mount(), document.documentElement.classList.add("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!0);
|
|
1089
1088
|
},
|
|
@@ -1106,11 +1105,11 @@ function un(e, t) {
|
|
|
1106
1105
|
return;
|
|
1107
1106
|
}
|
|
1108
1107
|
const a = (d) => {
|
|
1109
|
-
var s, r,
|
|
1108
|
+
var s, r, h;
|
|
1110
1109
|
if (!ce.getIsDragging())
|
|
1111
1110
|
return;
|
|
1112
1111
|
const o = ce.getDragOptions();
|
|
1113
|
-
i && !((s = i == null ? void 0 : i.includes) != null && s.call(i, o.type || "")) || (
|
|
1112
|
+
i && !((s = i == null ? void 0 : i.includes) != null && s.call(i, o.type || "")) || (h = (r = n.current) == null ? void 0 : r.onDrop) == null || h.call(r, d, o);
|
|
1114
1113
|
};
|
|
1115
1114
|
return c.addEventListener("mouseup", a), () => {
|
|
1116
1115
|
c.removeEventListener("mouseup", a);
|
|
@@ -1132,7 +1131,7 @@ function xe(e) {
|
|
|
1132
1131
|
}
|
|
1133
1132
|
}, [t]), t ? /* @__PURE__ */ l("img", { style: e == null ? void 0 : e.style, src: n, draggable: !1 }) : /* @__PURE__ */ l("span", { style: { color: "#b8b8b8" }, children: "None" });
|
|
1134
1133
|
}
|
|
1135
|
-
function
|
|
1134
|
+
function Kl(e) {
|
|
1136
1135
|
const { component: t } = e, n = B(null);
|
|
1137
1136
|
return sn(n, {
|
|
1138
1137
|
type: "create-component",
|
|
@@ -1143,27 +1142,27 @@ function Ul(e) {
|
|
|
1143
1142
|
"div",
|
|
1144
1143
|
{
|
|
1145
1144
|
style: e == null ? void 0 : e.style,
|
|
1146
|
-
className: $(
|
|
1145
|
+
className: $(Ue.componentItem, e == null ? void 0 : e.className),
|
|
1147
1146
|
ref: n,
|
|
1148
1147
|
children: [
|
|
1149
|
-
/* @__PURE__ */ l("div", { className:
|
|
1150
|
-
/* @__PURE__ */ l("div", { className:
|
|
1148
|
+
/* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
|
|
1149
|
+
/* @__PURE__ */ l("div", { className: Ue.componentItem_footer, children: t.cName })
|
|
1151
1150
|
]
|
|
1152
1151
|
}
|
|
1153
1152
|
);
|
|
1154
1153
|
}
|
|
1155
|
-
function
|
|
1154
|
+
function Ul(e) {
|
|
1156
1155
|
var a;
|
|
1157
1156
|
const { components: t, column: n = 3 } = e, { width: i, lines: c } = A(() => ({
|
|
1158
1157
|
width: `${100 / n}%`,
|
|
1159
1158
|
lines: Math.ceil(t.length / n)
|
|
1160
1159
|
}), [t, n]);
|
|
1161
|
-
return /* @__PURE__ */ g("div", { className:
|
|
1162
|
-
!(t != null && t.length) && /* @__PURE__ */ l(
|
|
1160
|
+
return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
|
|
1161
|
+
!(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
|
|
1163
1162
|
(a = t == null ? void 0 : t.map) == null ? void 0 : a.call(t, (d, o) => {
|
|
1164
1163
|
const s = o % n === n - 1, r = c === 1 || o > (c - 1) * n - 1;
|
|
1165
1164
|
return /* @__PURE__ */ l(
|
|
1166
|
-
|
|
1165
|
+
Kl,
|
|
1167
1166
|
{
|
|
1168
1167
|
component: d,
|
|
1169
1168
|
style: {
|
|
@@ -1182,23 +1181,23 @@ function Lt(e, t = "") {
|
|
|
1182
1181
|
const n = t.toLowerCase();
|
|
1183
1182
|
return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
|
|
1184
1183
|
}
|
|
1185
|
-
function
|
|
1184
|
+
function ql() {
|
|
1186
1185
|
const [e, t] = se(), [n, i] = S([]), c = Oi(), [a, d] = S(""), [o, s] = S([]), r = A(() => ({
|
|
1187
1186
|
base: e("menu.library.base"),
|
|
1188
1187
|
charts: e("menu.library.charts"),
|
|
1189
1188
|
layout: e("menu.library.layout"),
|
|
1190
1189
|
nav: e("menu.library.nav"),
|
|
1191
1190
|
unknown: e("menu.library.unknown")
|
|
1192
|
-
}), [t.language]),
|
|
1191
|
+
}), [t.language]), h = A(() => xi((_, m = "") => {
|
|
1193
1192
|
const y = Lt(_, m);
|
|
1194
1193
|
s(y);
|
|
1195
1194
|
}, 500), []);
|
|
1196
1195
|
w(() => {
|
|
1197
1196
|
s(Lt(c, a));
|
|
1198
1197
|
}, [c]), mt(() => {
|
|
1199
|
-
|
|
1198
|
+
h(c, a);
|
|
1200
1199
|
}, [a]);
|
|
1201
|
-
const
|
|
1200
|
+
const u = A(() => {
|
|
1202
1201
|
const _ = [], m = Object.entries(
|
|
1203
1202
|
Ii(o, (y) => y.category || "unknown")
|
|
1204
1203
|
).map(([y, C]) => (_.push(y), {
|
|
@@ -1220,53 +1219,53 @@ function Wl() {
|
|
|
1220
1219
|
}
|
|
1221
1220
|
}
|
|
1222
1221
|
) }),
|
|
1223
|
-
/* @__PURE__ */ l("div", { className: Ke.library_main, children:
|
|
1222
|
+
/* @__PURE__ */ l("div", { className: Ke.library_main, children: u.length ? /* @__PURE__ */ l(
|
|
1224
1223
|
Ct,
|
|
1225
1224
|
{
|
|
1226
1225
|
expandIconPosition: "end",
|
|
1227
1226
|
activeKey: n,
|
|
1228
1227
|
style: { padding: 0 },
|
|
1229
1228
|
onChange: (_) => i(_ || []),
|
|
1230
|
-
children:
|
|
1229
|
+
children: u.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(Ul, { components: _.components }) }, _.key))
|
|
1231
1230
|
}
|
|
1232
|
-
) : /* @__PURE__ */ l(
|
|
1231
|
+
) : /* @__PURE__ */ l(U, { style: { height: "100%", background: "white" } }) })
|
|
1233
1232
|
] });
|
|
1234
1233
|
}
|
|
1235
|
-
const
|
|
1236
|
-
componentNodes:
|
|
1237
|
-
componentNodes_head:
|
|
1238
|
-
componentNodes_block:
|
|
1239
|
-
},
|
|
1240
|
-
componentNodeItem:
|
|
1241
|
-
componentNodeItem_selected:
|
|
1242
|
-
componentNodeItem_icon:
|
|
1243
|
-
componentNodeItem_name:
|
|
1244
|
-
componentNodeItem_tail:
|
|
1245
|
-
componentNodeItem_tail_operatable:
|
|
1234
|
+
const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl = "_componentNodes_block_x43ss_67", qe = {
|
|
1235
|
+
componentNodes: Jl,
|
|
1236
|
+
componentNodes_head: Wl,
|
|
1237
|
+
componentNodes_block: Vl
|
|
1238
|
+
}, Gl = "_componentNodeItem_r9mbq_59", Xl = "_componentNodeItem_selected_r9mbq_65", Yl = "_componentNodeItem_icon_r9mbq_71", Zl = "_componentNodeItem_name_r9mbq_81", Ql = "_componentNodeItem_tail_r9mbq_84", pl = "_componentNodeItem_tail_operatable_r9mbq_95", ne = {
|
|
1239
|
+
componentNodeItem: Gl,
|
|
1240
|
+
componentNodeItem_selected: Xl,
|
|
1241
|
+
componentNodeItem_icon: Yl,
|
|
1242
|
+
componentNodeItem_name: Zl,
|
|
1243
|
+
componentNodeItem_tail: Ql,
|
|
1244
|
+
componentNodeItem_tail_operatable: pl
|
|
1246
1245
|
};
|
|
1247
|
-
function
|
|
1246
|
+
function ec(e) {
|
|
1248
1247
|
const { engine: t } = N(), n = B(null), [i, c] = S(e == null ? void 0 : e.componentNode), a = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: o } = A(() => ({
|
|
1249
1248
|
component: t.component.get(i == null ? void 0 : i.cId),
|
|
1250
1249
|
instance: t.instance.get(i == null ? void 0 : i.id)
|
|
1251
1250
|
}), [i]);
|
|
1252
|
-
function s(
|
|
1253
|
-
|
|
1254
|
-
const
|
|
1251
|
+
function s(h) {
|
|
1252
|
+
h.stopPropagation();
|
|
1253
|
+
const u = Pe("shift");
|
|
1255
1254
|
if (t.instance.isSelected(i.id)) {
|
|
1256
|
-
if (!Ae(
|
|
1255
|
+
if (!Ae(h.nativeEvent))
|
|
1257
1256
|
return;
|
|
1258
|
-
|
|
1257
|
+
u ? t.instance.unselect(i.id) : t.instance.select(i == null ? void 0 : i.id, !0);
|
|
1259
1258
|
return;
|
|
1260
1259
|
}
|
|
1261
|
-
t.instance.select(i == null ? void 0 : i.id, !
|
|
1260
|
+
t.instance.select(i == null ? void 0 : i.id, !u);
|
|
1262
1261
|
}
|
|
1263
|
-
function r(
|
|
1262
|
+
function r(h) {
|
|
1264
1263
|
t.componentNode.update(i.id, {
|
|
1265
|
-
show:
|
|
1264
|
+
show: h
|
|
1266
1265
|
});
|
|
1267
1266
|
}
|
|
1268
|
-
return w(() => t.componentNode.onChange(i.id, ({ payload:
|
|
1269
|
-
c({ ...
|
|
1267
|
+
return w(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
|
|
1268
|
+
c({ ...h });
|
|
1270
1269
|
}), []), /* @__PURE__ */ g(
|
|
1271
1270
|
"div",
|
|
1272
1271
|
{
|
|
@@ -1276,16 +1275,16 @@ function nc(e) {
|
|
|
1276
1275
|
ne.componentNodeItem,
|
|
1277
1276
|
(e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
|
|
1278
1277
|
),
|
|
1279
|
-
onMouseDown: (
|
|
1280
|
-
s(
|
|
1278
|
+
onMouseDown: (h) => {
|
|
1279
|
+
s(h);
|
|
1281
1280
|
},
|
|
1282
1281
|
onMouseEnter: () => {
|
|
1283
|
-
var
|
|
1284
|
-
(
|
|
1282
|
+
var h;
|
|
1283
|
+
(h = o == null ? void 0 : o.handleHover) == null || h.call(o);
|
|
1285
1284
|
},
|
|
1286
1285
|
onMouseLeave: () => {
|
|
1287
|
-
var
|
|
1288
|
-
(
|
|
1286
|
+
var h;
|
|
1287
|
+
(h = o == null ? void 0 : o.handleUnHover) == null || h.call(o);
|
|
1289
1288
|
},
|
|
1290
1289
|
children: [
|
|
1291
1290
|
/* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
|
|
@@ -1296,8 +1295,8 @@ function nc(e) {
|
|
|
1296
1295
|
"div",
|
|
1297
1296
|
{
|
|
1298
1297
|
className: ne.componentNodeItem_tail_operatable,
|
|
1299
|
-
onMouseDown: (
|
|
1300
|
-
|
|
1298
|
+
onMouseDown: (h) => {
|
|
1299
|
+
h.stopPropagation(), r(!a);
|
|
1301
1300
|
},
|
|
1302
1301
|
children: a ? /* @__PURE__ */ l(Pn, {}) : /* @__PURE__ */ l(Mn, {})
|
|
1303
1302
|
}
|
|
@@ -1307,40 +1306,40 @@ function nc(e) {
|
|
|
1307
1306
|
}
|
|
1308
1307
|
);
|
|
1309
1308
|
}
|
|
1310
|
-
const
|
|
1311
|
-
renderContextMenu:
|
|
1312
|
-
},
|
|
1313
|
-
renderList:
|
|
1314
|
-
renderList_disabled:
|
|
1315
|
-
renderList_item:
|
|
1316
|
-
renderList_item_title:
|
|
1317
|
-
renderList_item_unselectable:
|
|
1318
|
-
},
|
|
1319
|
-
hoverItem_overlay:
|
|
1320
|
-
},
|
|
1309
|
+
const tc = "_renderContextMenu_vitq8_59", nc = {
|
|
1310
|
+
renderContextMenu: tc
|
|
1311
|
+
}, ic = "_renderList_p7203_59", lc = "_renderList_disabled_p7203_63", cc = "_renderList_item_p7203_70", ac = "_renderList_item_title_p7203_87", oc = "_renderList_item_unselectable_p7203_94", ge = {
|
|
1312
|
+
renderList: ic,
|
|
1313
|
+
renderList_disabled: lc,
|
|
1314
|
+
renderList_item: cc,
|
|
1315
|
+
renderList_item_title: ac,
|
|
1316
|
+
renderList_item_unselectable: oc
|
|
1317
|
+
}, dc = "_hoverItem_overlay_twv7t_59", rc = {
|
|
1318
|
+
hoverItem_overlay: dc
|
|
1319
|
+
}, sc = {
|
|
1321
1320
|
top: 0,
|
|
1322
1321
|
left: 0
|
|
1323
1322
|
};
|
|
1324
|
-
function
|
|
1325
|
-
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(
|
|
1326
|
-
function
|
|
1323
|
+
function uc(e) {
|
|
1324
|
+
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(sc);
|
|
1325
|
+
function h(_) {
|
|
1327
1326
|
var y, C, b;
|
|
1328
1327
|
if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
|
|
1329
1328
|
return;
|
|
1330
1329
|
const m = (b = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : b.call(C);
|
|
1331
1330
|
m && (r({ top: m.top, left: m.left + m.width }), o(!0));
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1332
|
+
function u(_) {
|
|
1334
1333
|
var m;
|
|
1335
1334
|
(m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _), o(!1);
|
|
1336
1335
|
}
|
|
1337
|
-
return /* @__PURE__ */ g("div", { ...a, onMouseEnter:
|
|
1336
|
+
return /* @__PURE__ */ g("div", { ...a, onMouseEnter: h, onMouseLeave: u, children: [
|
|
1338
1337
|
n,
|
|
1339
1338
|
d && si(
|
|
1340
1339
|
/* @__PURE__ */ l(
|
|
1341
1340
|
"div",
|
|
1342
1341
|
{
|
|
1343
|
-
className:
|
|
1342
|
+
className: rc.hoverItem_overlay,
|
|
1344
1343
|
style: {
|
|
1345
1344
|
top: s.top,
|
|
1346
1345
|
left: s.left,
|
|
@@ -1367,7 +1366,7 @@ function hn(e) {
|
|
|
1367
1366
|
var a;
|
|
1368
1367
|
const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
|
|
1369
1368
|
return /* @__PURE__ */ g(
|
|
1370
|
-
|
|
1369
|
+
uc,
|
|
1371
1370
|
{
|
|
1372
1371
|
items: i == null ? void 0 : i.children,
|
|
1373
1372
|
style: i == null ? void 0 : i.style,
|
|
@@ -1396,7 +1395,7 @@ function hn(e) {
|
|
|
1396
1395
|
);
|
|
1397
1396
|
}) });
|
|
1398
1397
|
}
|
|
1399
|
-
function
|
|
1398
|
+
function hc(e) {
|
|
1400
1399
|
const t = B(null);
|
|
1401
1400
|
return w(() => {
|
|
1402
1401
|
function n(i) {
|
|
@@ -1411,7 +1410,7 @@ function _c(e) {
|
|
|
1411
1410
|
{
|
|
1412
1411
|
ref: t,
|
|
1413
1412
|
tabIndex: 0,
|
|
1414
|
-
className:
|
|
1413
|
+
className: nc.renderContextMenu,
|
|
1415
1414
|
onContextMenu: (n) => {
|
|
1416
1415
|
n.preventDefault();
|
|
1417
1416
|
},
|
|
@@ -1437,26 +1436,26 @@ function gn(e, t, n, i) {
|
|
|
1437
1436
|
const a = Wt(c);
|
|
1438
1437
|
let d = !1;
|
|
1439
1438
|
const o = () => {
|
|
1440
|
-
var r,
|
|
1441
|
-
d || ((r = a == null ? void 0 : a.unmount) == null || r.call(a), (
|
|
1439
|
+
var r, h;
|
|
1440
|
+
d || ((r = a == null ? void 0 : a.unmount) == null || r.call(a), (h = c == null ? void 0 : c.remove) == null || h.call(c), d = !0);
|
|
1442
1441
|
};
|
|
1443
1442
|
return a.render(
|
|
1444
1443
|
/* @__PURE__ */ l(
|
|
1445
|
-
|
|
1444
|
+
hc,
|
|
1446
1445
|
{
|
|
1447
1446
|
items: n,
|
|
1448
1447
|
onClickOuter: () => {
|
|
1449
1448
|
o();
|
|
1450
1449
|
},
|
|
1451
1450
|
onSelect: (r) => {
|
|
1452
|
-
var
|
|
1453
|
-
(
|
|
1451
|
+
var h;
|
|
1452
|
+
(h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r), o();
|
|
1454
1453
|
}
|
|
1455
1454
|
}
|
|
1456
1455
|
)
|
|
1457
1456
|
), o;
|
|
1458
1457
|
}
|
|
1459
|
-
const
|
|
1458
|
+
const gc = [
|
|
1460
1459
|
{
|
|
1461
1460
|
key: "top",
|
|
1462
1461
|
icon: /* @__PURE__ */ l(jn, {}),
|
|
@@ -1493,13 +1492,13 @@ const mc = [
|
|
|
1493
1492
|
key: "unlock",
|
|
1494
1493
|
icon: /* @__PURE__ */ l(zn, {}),
|
|
1495
1494
|
title: "解锁",
|
|
1496
|
-
onSelect: () =>
|
|
1495
|
+
onSelect: () => Ui()
|
|
1497
1496
|
},
|
|
1498
1497
|
{
|
|
1499
1498
|
key: "group",
|
|
1500
1499
|
icon: /* @__PURE__ */ l(Tn, {}),
|
|
1501
1500
|
title: "成组",
|
|
1502
|
-
onSelect: () =>
|
|
1501
|
+
onSelect: () => qi()
|
|
1503
1502
|
},
|
|
1504
1503
|
{
|
|
1505
1504
|
key: "ungroup",
|
|
@@ -1528,9 +1527,9 @@ const mc = [
|
|
|
1528
1527
|
onSelect: () => Yi()
|
|
1529
1528
|
}
|
|
1530
1529
|
];
|
|
1531
|
-
function
|
|
1530
|
+
function _c(e, t) {
|
|
1532
1531
|
var n;
|
|
1533
|
-
return gn(e.clientX, e.clientY,
|
|
1532
|
+
return gn(e.clientX, e.clientY, gc, {
|
|
1534
1533
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
|
|
1535
1534
|
onBeforeOpen(i) {
|
|
1536
1535
|
let c = 0, a = !1;
|
|
@@ -1542,7 +1541,7 @@ function fc(e, t) {
|
|
|
1542
1541
|
}
|
|
1543
1542
|
});
|
|
1544
1543
|
}
|
|
1545
|
-
const
|
|
1544
|
+
const mc = [
|
|
1546
1545
|
{
|
|
1547
1546
|
key: "selectAll",
|
|
1548
1547
|
title: "全选",
|
|
@@ -1564,13 +1563,13 @@ const yc = [
|
|
|
1564
1563
|
{
|
|
1565
1564
|
key: "saveLocal",
|
|
1566
1565
|
title: "保存",
|
|
1567
|
-
icon: /* @__PURE__ */ l(
|
|
1566
|
+
icon: /* @__PURE__ */ l(Q, {}),
|
|
1568
1567
|
onSelect: () => vt()
|
|
1569
1568
|
}
|
|
1570
1569
|
];
|
|
1571
|
-
function
|
|
1570
|
+
function fc(e, t) {
|
|
1572
1571
|
var n;
|
|
1573
|
-
return gn(e.clientX, e.clientY,
|
|
1572
|
+
return gn(e.clientX, e.clientY, mc, {
|
|
1574
1573
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel()
|
|
1575
1574
|
});
|
|
1576
1575
|
}
|
|
@@ -1586,18 +1585,18 @@ function _n(e) {
|
|
|
1586
1585
|
Dt(), n.preventDefault();
|
|
1587
1586
|
const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i), a = (d = c == null ? void 0 : c.getComponentNode) == null ? void 0 : d.call(c);
|
|
1588
1587
|
if (c && a) {
|
|
1589
|
-
ve.push(
|
|
1588
|
+
ve.push(_c(n, t));
|
|
1590
1589
|
return;
|
|
1591
1590
|
}
|
|
1592
|
-
ve.push(
|
|
1591
|
+
ve.push(fc(n, t));
|
|
1593
1592
|
}
|
|
1594
1593
|
}), Qt(() => {
|
|
1595
1594
|
Dt();
|
|
1596
1595
|
});
|
|
1597
1596
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const { engine: e } = N(), t = Vt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className:
|
|
1600
|
-
|
|
1597
|
+
function yc() {
|
|
1598
|
+
const { engine: e } = N(), t = Vt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((a) => /* @__PURE__ */ l(
|
|
1599
|
+
ec,
|
|
1601
1600
|
{
|
|
1602
1601
|
componentNode: a,
|
|
1603
1602
|
isSelected: e.instance.isSelected(a.id)
|
|
@@ -1608,25 +1607,25 @@ function bc() {
|
|
|
1608
1607
|
"div",
|
|
1609
1608
|
{
|
|
1610
1609
|
ref: i,
|
|
1611
|
-
className:
|
|
1610
|
+
className: qe.componentNodes,
|
|
1612
1611
|
onMouseDown: () => De(),
|
|
1613
1612
|
children: [
|
|
1614
|
-
/* @__PURE__ */ g("div", { className:
|
|
1613
|
+
/* @__PURE__ */ g("div", { className: qe.componentNodes_head, children: [
|
|
1615
1614
|
"当前页组件数量:",
|
|
1616
1615
|
t.length
|
|
1617
1616
|
] }),
|
|
1618
|
-
!t.length && /* @__PURE__ */ l(
|
|
1617
|
+
!t.length && /* @__PURE__ */ l(U, {}),
|
|
1619
1618
|
c
|
|
1620
1619
|
]
|
|
1621
1620
|
}
|
|
1622
1621
|
);
|
|
1623
1622
|
}
|
|
1624
|
-
const
|
|
1625
|
-
menubar:
|
|
1626
|
-
menubar_item:
|
|
1627
|
-
menubar_item_selected:
|
|
1623
|
+
const vc = "_menubar_1ah1r_59", bc = "_menubar_item_1ah1r_67", Cc = "_menubar_item_selected_1ah1r_81", Je = {
|
|
1624
|
+
menubar: vc,
|
|
1625
|
+
menubar_item: bc,
|
|
1626
|
+
menubar_item_selected: Cc
|
|
1628
1627
|
};
|
|
1629
|
-
function
|
|
1628
|
+
function xc(e) {
|
|
1630
1629
|
var t, n;
|
|
1631
1630
|
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) => {
|
|
1632
1631
|
const c = i.key === e.value;
|
|
@@ -1647,32 +1646,32 @@ function kc(e) {
|
|
|
1647
1646
|
) }, i == null ? void 0 : i.key);
|
|
1648
1647
|
}) });
|
|
1649
1648
|
}
|
|
1650
|
-
const
|
|
1651
|
-
propertyItem:
|
|
1652
|
-
propertyItem_icon:
|
|
1653
|
-
propertyItem_icon_disabled:
|
|
1654
|
-
propertyItemPopover:
|
|
1655
|
-
propertyItemPopover_description:
|
|
1656
|
-
propertyItemPopover_statistic:
|
|
1657
|
-
propertyItemPopover_body:
|
|
1658
|
-
propertyItemPopover_body_item:
|
|
1659
|
-
propertyItemPopover_body_item_icon:
|
|
1660
|
-
propertyItemPopover_title:
|
|
1649
|
+
const Ic = "_propertyItem_1r9fx_59", kc = "_propertyItem_icon_1r9fx_68", Sc = "_propertyItem_icon_disabled_1r9fx_75", Nc = "_propertyItemPopover_1r9fx_79", wc = "_propertyItemPopover_description_1r9fx_84", Ec = "_propertyItemPopover_statistic_1r9fx_89", Ac = "_propertyItemPopover_body_1r9fx_92", Lc = "_propertyItemPopover_body_item_1r9fx_95", Dc = "_propertyItemPopover_body_item_icon_1r9fx_105", Oc = "_propertyItemPopover_title_1r9fx_108", J = {
|
|
1650
|
+
propertyItem: Ic,
|
|
1651
|
+
propertyItem_icon: kc,
|
|
1652
|
+
propertyItem_icon_disabled: Sc,
|
|
1653
|
+
propertyItemPopover: Nc,
|
|
1654
|
+
propertyItemPopover_description: wc,
|
|
1655
|
+
propertyItemPopover_statistic: Ec,
|
|
1656
|
+
propertyItemPopover_body: Ac,
|
|
1657
|
+
propertyItemPopover_body_item: Lc,
|
|
1658
|
+
propertyItemPopover_body_item_icon: Dc,
|
|
1659
|
+
propertyItemPopover_title: Oc
|
|
1661
1660
|
};
|
|
1662
|
-
function
|
|
1663
|
-
var s, r,
|
|
1661
|
+
function Pc(e) {
|
|
1662
|
+
var s, r, h;
|
|
1664
1663
|
const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system", a = (t == null ? void 0 : t.origin) !== "system";
|
|
1665
1664
|
function d() {
|
|
1666
|
-
const
|
|
1665
|
+
const u = Li(t == null ? void 0 : t.id), _ = () => {
|
|
1667
1666
|
var m;
|
|
1668
|
-
return (m = e == null ? void 0 : e.onDelete) == null ? void 0 : m.call(e, t,
|
|
1667
|
+
return (m = e == null ? void 0 : e.onDelete) == null ? void 0 : m.call(e, t, u);
|
|
1669
1668
|
};
|
|
1670
|
-
|
|
1669
|
+
u.length || _(), n({
|
|
1671
1670
|
content: /* @__PURE__ */ g("span", { children: [
|
|
1672
1671
|
/* @__PURE__ */ l("span", { children: "该操作会同时删除" }),
|
|
1673
1672
|
/* @__PURE__ */ g("span", { style: { color: "red" }, children: [
|
|
1674
1673
|
" ",
|
|
1675
|
-
|
|
1674
|
+
u.length,
|
|
1676
1675
|
" "
|
|
1677
1676
|
] }),
|
|
1678
1677
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -1687,13 +1686,13 @@ function Bc(e) {
|
|
|
1687
1686
|
});
|
|
1688
1687
|
}
|
|
1689
1688
|
async function o() {
|
|
1690
|
-
const
|
|
1691
|
-
if (!
|
|
1689
|
+
const u = await i.component.getPackageSourceCode(t == null ? void 0 : t.id);
|
|
1690
|
+
if (!u) {
|
|
1692
1691
|
E.warn("源码不存在");
|
|
1693
1692
|
return;
|
|
1694
1693
|
}
|
|
1695
1694
|
const _ = `${t == null ? void 0 : t.name}.js`;
|
|
1696
|
-
Jt(
|
|
1695
|
+
Jt(u, _);
|
|
1697
1696
|
}
|
|
1698
1697
|
return /* @__PURE__ */ l(
|
|
1699
1698
|
st,
|
|
@@ -1723,20 +1722,20 @@ function Bc(e) {
|
|
|
1723
1722
|
size: 4,
|
|
1724
1723
|
direction: "vertical",
|
|
1725
1724
|
style: { width: 300, maxHeight: 160, overflowY: "auto" },
|
|
1726
|
-
children: (
|
|
1725
|
+
children: (h = (r = t == null ? void 0 : t.components) == null ? void 0 : r.map) == null ? void 0 : h.call(r, (u) => /* @__PURE__ */ g("div", { className: J.propertyItemPopover_body_item, children: [
|
|
1727
1726
|
/* @__PURE__ */ l("div", { className: J.propertyItemPopover_body_item_icon, children: /* @__PURE__ */ l(
|
|
1728
1727
|
xe,
|
|
1729
1728
|
{
|
|
1730
|
-
src:
|
|
1729
|
+
src: u == null ? void 0 : u.icon,
|
|
1731
1730
|
style: { maxHeight: "80%", maxWidth: 32 }
|
|
1732
1731
|
}
|
|
1733
1732
|
) }),
|
|
1734
|
-
/* @__PURE__ */ l("span", { children:
|
|
1735
|
-
] },
|
|
1733
|
+
/* @__PURE__ */ l("span", { children: u == null ? void 0 : u.cName })
|
|
1734
|
+
] }, u == null ? void 0 : u.cId))
|
|
1736
1735
|
}
|
|
1737
1736
|
) })
|
|
1738
1737
|
] }),
|
|
1739
|
-
children: /* @__PURE__ */ g("div", { className: J.propertyItem, onContextMenu: (
|
|
1738
|
+
children: /* @__PURE__ */ g("div", { className: J.propertyItem, onContextMenu: (u) => u.preventDefault(), children: [
|
|
1740
1739
|
/* @__PURE__ */ l("span", { children: t == null ? void 0 : t.name }),
|
|
1741
1740
|
/* @__PURE__ */ g(D, { children: [
|
|
1742
1741
|
/* @__PURE__ */ l(
|
|
@@ -1766,10 +1765,10 @@ function Bc(e) {
|
|
|
1766
1765
|
}
|
|
1767
1766
|
);
|
|
1768
1767
|
}
|
|
1769
|
-
const
|
|
1770
|
-
jsonEditor:
|
|
1771
|
-
jsonEditor_render:
|
|
1772
|
-
jsonEditor_loading:
|
|
1768
|
+
const Mc = "_jsonEditor_13vbq_59", Bc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
|
|
1769
|
+
jsonEditor: Mc,
|
|
1770
|
+
jsonEditor_render: Bc,
|
|
1771
|
+
jsonEditor_loading: jc
|
|
1773
1772
|
};
|
|
1774
1773
|
self.MonacoEnvironment = {
|
|
1775
1774
|
getWorker: function(e, t) {
|
|
@@ -1788,7 +1787,7 @@ self.MonacoEnvironment = {
|
|
|
1788
1787
|
}
|
|
1789
1788
|
}
|
|
1790
1789
|
};
|
|
1791
|
-
function
|
|
1790
|
+
function X(e) {
|
|
1792
1791
|
const t = B(null), n = B();
|
|
1793
1792
|
return w(() => {
|
|
1794
1793
|
var c, a;
|
|
@@ -1833,29 +1832,29 @@ function Y(e) {
|
|
|
1833
1832
|
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Kt, { style: { fontSize: 20 } }) })
|
|
1834
1833
|
] });
|
|
1835
1834
|
}
|
|
1836
|
-
const
|
|
1835
|
+
const zc = ue((e) => {
|
|
1837
1836
|
const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), a = B("");
|
|
1838
1837
|
function d() {
|
|
1839
1838
|
n.validateFields(["url"]).then((s) => {
|
|
1840
1839
|
var r;
|
|
1841
|
-
if (!["http", "https"].find((
|
|
1842
|
-
var
|
|
1843
|
-
return (_ = (
|
|
1840
|
+
if (!["http", "https"].find((h) => {
|
|
1841
|
+
var u, _;
|
|
1842
|
+
return (_ = (u = s == null ? void 0 : s.url) == null ? void 0 : u.startsWith) == null ? void 0 : _.call(u, h);
|
|
1844
1843
|
})) {
|
|
1845
1844
|
E.error("地址格式不正确");
|
|
1846
1845
|
return;
|
|
1847
1846
|
}
|
|
1848
|
-
c(!0), (r = it(s == null ? void 0 : s.url)) == null || r.then((
|
|
1847
|
+
c(!0), (r = it(s == null ? void 0 : s.url)) == null || r.then((h) => {
|
|
1849
1848
|
c(!1), a.current = s == null ? void 0 : s.url, n.setFieldsValue({
|
|
1850
|
-
content:
|
|
1849
|
+
content: h
|
|
1851
1850
|
});
|
|
1852
1851
|
});
|
|
1853
1852
|
});
|
|
1854
1853
|
}
|
|
1855
1854
|
async function o() {
|
|
1856
|
-
var r,
|
|
1855
|
+
var r, h;
|
|
1857
1856
|
const s = n.getFieldValue("content");
|
|
1858
|
-
s || E.warn("文本内容不能为空"), !(t != null && t.beforeOk && !await Promise.resolve((r = t == null ? void 0 : t.beforeOk) == null ? void 0 : r.call(t, s))) && ((
|
|
1857
|
+
s || E.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, {
|
|
1859
1858
|
url: a.current,
|
|
1860
1859
|
content: s
|
|
1861
1860
|
}));
|
|
@@ -1874,19 +1873,19 @@ const $c = ue((e) => {
|
|
|
1874
1873
|
onOk: o,
|
|
1875
1874
|
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 2 }, children: [
|
|
1876
1875
|
/* @__PURE__ */ l(M.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1877
|
-
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(
|
|
1876
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
|
|
1878
1877
|
/* @__PURE__ */ l(K, { type: "primary", onClick: d, loading: i, children: "读取" })
|
|
1879
1878
|
] }) }),
|
|
1880
|
-
/* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(
|
|
1879
|
+
/* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
|
|
1881
1880
|
] })
|
|
1882
1881
|
}
|
|
1883
1882
|
);
|
|
1884
|
-
}),
|
|
1883
|
+
}), Tc = [
|
|
1885
1884
|
{ key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
|
|
1886
1885
|
{ key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
|
|
1887
1886
|
];
|
|
1888
|
-
function
|
|
1889
|
-
const t = B(), n = B(""), i =
|
|
1887
|
+
function $c(e) {
|
|
1888
|
+
const t = B(), n = B(""), i = zc({
|
|
1890
1889
|
onOk({ url: s }) {
|
|
1891
1890
|
if (!t.current) {
|
|
1892
1891
|
E.warn("package新增失败");
|
|
@@ -1896,18 +1895,18 @@ function Fc(e) {
|
|
|
1896
1895
|
}
|
|
1897
1896
|
});
|
|
1898
1897
|
function c(s, r) {
|
|
1899
|
-
var
|
|
1898
|
+
var h;
|
|
1900
1899
|
if (!s) return E.warn("不包含组件包");
|
|
1901
|
-
(
|
|
1900
|
+
(h = e == null ? void 0 : e.onAdd) == null || h.call(e, s, r || "");
|
|
1902
1901
|
}
|
|
1903
1902
|
function a(s, r) {
|
|
1904
|
-
var
|
|
1903
|
+
var h;
|
|
1905
1904
|
if (!(s != null && s.length)) return E.warn("不包含组件包");
|
|
1906
|
-
(
|
|
1905
|
+
(h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
|
|
1907
1906
|
}
|
|
1908
1907
|
async function d(s) {
|
|
1909
1908
|
var C;
|
|
1910
|
-
const r = new Blob([s], { type: s.type }),
|
|
1909
|
+
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
|
|
1911
1910
|
for (const b in _) {
|
|
1912
1911
|
if (!((C = b == null ? void 0 : b.endsWith) != null && C.call(b, ".js")))
|
|
1913
1912
|
continue;
|
|
@@ -1923,28 +1922,28 @@ function Fc(e) {
|
|
|
1923
1922
|
let r = "";
|
|
1924
1923
|
switch (s) {
|
|
1925
1924
|
case "local":
|
|
1926
|
-
const
|
|
1927
|
-
if (!
|
|
1925
|
+
const h = await ln({ accept: "text/javascript,application/zip" });
|
|
1926
|
+
if (!h)
|
|
1928
1927
|
return;
|
|
1929
|
-
if (["application/x-zip-compressed", "application/zip"].includes(
|
|
1930
|
-
const { pkgs:
|
|
1931
|
-
a(
|
|
1928
|
+
if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
|
|
1929
|
+
const { pkgs: u, codes: _ } = await d(h);
|
|
1930
|
+
a(u, _);
|
|
1932
1931
|
return;
|
|
1933
1932
|
}
|
|
1934
|
-
if ((
|
|
1935
|
-
r = await cn(
|
|
1936
|
-
const
|
|
1937
|
-
if (!
|
|
1933
|
+
if ((h == null ? void 0 : h.type) === "text/javascript") {
|
|
1934
|
+
r = await cn(h);
|
|
1935
|
+
const u = await ze(r);
|
|
1936
|
+
if (!u)
|
|
1938
1937
|
return E.warn("文本内容必须为UMD或者AMD格式");
|
|
1939
|
-
|
|
1938
|
+
u.origin = "local", c(u, r);
|
|
1940
1939
|
return;
|
|
1941
1940
|
}
|
|
1942
1941
|
E.warn("只能上传 .js 和 .zip 文件");
|
|
1943
1942
|
break;
|
|
1944
1943
|
case "remote":
|
|
1945
1944
|
i.open({
|
|
1946
|
-
async beforeOk(
|
|
1947
|
-
return n.current =
|
|
1945
|
+
async beforeOk(u) {
|
|
1946
|
+
return n.current = u, t.current = await ze(u), t.current || E.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
|
|
1948
1947
|
}
|
|
1949
1948
|
});
|
|
1950
1949
|
break;
|
|
@@ -1955,7 +1954,7 @@ function Fc(e) {
|
|
|
1955
1954
|
{
|
|
1956
1955
|
trigger: ["click"],
|
|
1957
1956
|
menu: {
|
|
1958
|
-
items:
|
|
1957
|
+
items: Tc,
|
|
1959
1958
|
onClick({ key: s }) {
|
|
1960
1959
|
o(s);
|
|
1961
1960
|
}
|
|
@@ -1964,13 +1963,13 @@ function Fc(e) {
|
|
|
1964
1963
|
}
|
|
1965
1964
|
) });
|
|
1966
1965
|
}
|
|
1967
|
-
const Ot = "./demo.umd.js", Pt = "./demo.amd.js",
|
|
1966
|
+
const Ot = "./demo.umd.js", Pt = "./demo.amd.js", Rc = [
|
|
1968
1967
|
{ key: "umd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(UMD)" }) },
|
|
1969
1968
|
{ key: "amd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(AMD)" }) },
|
|
1970
1969
|
{ key: "zip-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包集合(.zip)" }) },
|
|
1971
1970
|
{ key: "all", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载全部资产" }) }
|
|
1972
1971
|
];
|
|
1973
|
-
function
|
|
1972
|
+
function Fc(e) {
|
|
1974
1973
|
async function t(n) {
|
|
1975
1974
|
var i;
|
|
1976
1975
|
switch (n) {
|
|
@@ -1996,7 +1995,7 @@ function Kc(e) {
|
|
|
1996
1995
|
{
|
|
1997
1996
|
trigger: ["click"],
|
|
1998
1997
|
menu: {
|
|
1999
|
-
items:
|
|
1998
|
+
items: Rc,
|
|
2000
1999
|
onClick({ key: n }) {
|
|
2001
2000
|
t(n);
|
|
2002
2001
|
}
|
|
@@ -2005,11 +2004,11 @@ function Kc(e) {
|
|
|
2005
2004
|
}
|
|
2006
2005
|
) });
|
|
2007
2006
|
}
|
|
2008
|
-
const
|
|
2009
|
-
property:
|
|
2010
|
-
property_header:
|
|
2007
|
+
const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Mt = {
|
|
2008
|
+
property: Hc,
|
|
2009
|
+
property_header: Kc
|
|
2011
2010
|
};
|
|
2012
|
-
function
|
|
2011
|
+
function Uc() {
|
|
2013
2012
|
var o;
|
|
2014
2013
|
const e = Gt(), { engine: t } = N(), { loading: n, run: i } = pt(
|
|
2015
2014
|
async () => new Promise((s) => {
|
|
@@ -2022,9 +2021,9 @@ function Jc() {
|
|
|
2022
2021
|
}
|
|
2023
2022
|
);
|
|
2024
2023
|
function c(s, r) {
|
|
2025
|
-
const
|
|
2026
|
-
t.component.registerPackage(
|
|
2027
|
-
t.component.savePackageSourceCode(
|
|
2024
|
+
const h = Array.isArray(s) ? s : [s], u = Array.isArray(r) ? r : [r];
|
|
2025
|
+
t.component.registerPackage(h), u.forEach((_, m) => {
|
|
2026
|
+
t.component.savePackageSourceCode(h[m], _);
|
|
2028
2027
|
});
|
|
2029
2028
|
}
|
|
2030
2029
|
function a(s, r) {
|
|
@@ -2033,17 +2032,17 @@ function Jc() {
|
|
|
2033
2032
|
async function d() {
|
|
2034
2033
|
const s = e.map((r) => t.component.getPackageSourceCode(r.id));
|
|
2035
2034
|
Promise.all(s).then((r) => {
|
|
2036
|
-
const
|
|
2037
|
-
let
|
|
2035
|
+
const h = new ft();
|
|
2036
|
+
let u = 0;
|
|
2038
2037
|
if (r.forEach((_, m) => {
|
|
2039
2038
|
if (!_) return;
|
|
2040
2039
|
const y = e[m];
|
|
2041
|
-
|
|
2042
|
-
}), !
|
|
2040
|
+
h.file(`${y.name}.js`, _), u++;
|
|
2041
|
+
}), !u) {
|
|
2043
2042
|
E.warn("暂无组件包");
|
|
2044
2043
|
return;
|
|
2045
2044
|
}
|
|
2046
|
-
|
|
2045
|
+
h.generateAsync({ type: "blob" }).then(function(_) {
|
|
2047
2046
|
en(_, "组件包集合.zip");
|
|
2048
2047
|
});
|
|
2049
2048
|
});
|
|
@@ -2058,13 +2057,13 @@ function Jc() {
|
|
|
2058
2057
|
title: "刷新资产",
|
|
2059
2058
|
className: "icon_clickable",
|
|
2060
2059
|
onClick: () => !n && i(),
|
|
2061
|
-
children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(
|
|
2060
|
+
children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(Z, {})
|
|
2062
2061
|
}
|
|
2063
2062
|
)
|
|
2064
2063
|
] }),
|
|
2065
2064
|
/* @__PURE__ */ g(D, { children: [
|
|
2066
2065
|
/* @__PURE__ */ l(
|
|
2067
|
-
|
|
2066
|
+
Fc,
|
|
2068
2067
|
{
|
|
2069
2068
|
onDownloadAll: () => {
|
|
2070
2069
|
d();
|
|
@@ -2073,7 +2072,7 @@ function Jc() {
|
|
|
2073
2072
|
}
|
|
2074
2073
|
),
|
|
2075
2074
|
/* @__PURE__ */ l(
|
|
2076
|
-
|
|
2075
|
+
$c,
|
|
2077
2076
|
{
|
|
2078
2077
|
onAdd: (s, r) => {
|
|
2079
2078
|
c(s, r);
|
|
@@ -2086,28 +2085,28 @@ function Jc() {
|
|
|
2086
2085
|
)
|
|
2087
2086
|
] })
|
|
2088
2087
|
] }),
|
|
2089
|
-
!e.length && /* @__PURE__ */ l(
|
|
2088
|
+
!e.length && /* @__PURE__ */ l(U, {}),
|
|
2090
2089
|
(o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (s) => /* @__PURE__ */ l(
|
|
2091
|
-
|
|
2090
|
+
Pc,
|
|
2092
2091
|
{
|
|
2093
2092
|
data: s,
|
|
2094
|
-
onDelete: (r,
|
|
2095
|
-
a(r,
|
|
2093
|
+
onDelete: (r, h) => {
|
|
2094
|
+
a(r, h);
|
|
2096
2095
|
}
|
|
2097
2096
|
},
|
|
2098
2097
|
s.id
|
|
2099
2098
|
))
|
|
2100
2099
|
] });
|
|
2101
2100
|
}
|
|
2102
|
-
const
|
|
2103
|
-
favorites:
|
|
2104
|
-
},
|
|
2105
|
-
favoriteItem:
|
|
2106
|
-
favoriteItem_head:
|
|
2107
|
-
favoriteItem_name:
|
|
2108
|
-
favoriteItem_footer:
|
|
2101
|
+
const qc = "_favorites_1mbr5_59", Jc = {
|
|
2102
|
+
favorites: qc
|
|
2103
|
+
}, Wc = "_favoriteItem_1ipdv_59", Vc = "_favoriteItem_head_1ipdv_74", Gc = "_favoriteItem_name_1ipdv_83", Xc = "_favoriteItem_footer_1ipdv_93", ke = {
|
|
2104
|
+
favoriteItem: Wc,
|
|
2105
|
+
favoriteItem_head: Vc,
|
|
2106
|
+
favoriteItem_name: Gc,
|
|
2107
|
+
favoriteItem_footer: Xc
|
|
2109
2108
|
};
|
|
2110
|
-
function
|
|
2109
|
+
function Yc(e) {
|
|
2111
2110
|
const { favorite: t } = e, n = B(null), i = B(null);
|
|
2112
2111
|
return sn(n, {
|
|
2113
2112
|
type: "create-favorite",
|
|
@@ -2122,7 +2121,7 @@ function Qc(e) {
|
|
|
2122
2121
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
|
|
2123
2122
|
/* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
|
|
2124
2123
|
/* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
|
|
2125
|
-
/* @__PURE__ */ l(T, { title: "编辑", children: /* @__PURE__ */ l(
|
|
2124
|
+
/* @__PURE__ */ l(T, { title: "编辑", children: /* @__PURE__ */ l(Ut, { onClick: () => {
|
|
2126
2125
|
var c;
|
|
2127
2126
|
return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
|
|
2128
2127
|
} }) }),
|
|
@@ -2130,14 +2129,14 @@ function Qc(e) {
|
|
|
2130
2129
|
var c;
|
|
2131
2130
|
return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
|
|
2132
2131
|
} }) }),
|
|
2133
|
-
/* @__PURE__ */ l(T, { title: "详情", children: /* @__PURE__ */ l(
|
|
2132
|
+
/* @__PURE__ */ l(T, { title: "详情", children: /* @__PURE__ */ l(Un, { onClick: () => {
|
|
2134
2133
|
var c;
|
|
2135
2134
|
return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
|
|
2136
2135
|
} }) })
|
|
2137
2136
|
] })
|
|
2138
2137
|
] }, t.id);
|
|
2139
2138
|
}
|
|
2140
|
-
const
|
|
2139
|
+
const Zc = ue((e) => {
|
|
2141
2140
|
var c;
|
|
2142
2141
|
const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
|
|
2143
2142
|
function i() {
|
|
@@ -2164,16 +2163,16 @@ const pc = ue((e) => {
|
|
|
2164
2163
|
bodyStyle: { paddingBottom: 6 },
|
|
2165
2164
|
footer: null,
|
|
2166
2165
|
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: [
|
|
2167
|
-
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(
|
|
2166
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
|
|
2168
2167
|
/* @__PURE__ */ l(K, { type: "primary", onClick: i, children: "保存" })
|
|
2169
2168
|
] }) }) })
|
|
2170
2169
|
}
|
|
2171
2170
|
);
|
|
2172
|
-
}),
|
|
2173
|
-
favoriteDetailDialog_title:
|
|
2174
|
-
favoriteDetailDialog_componentNodes:
|
|
2175
|
-
favoriteDetailDialog_item:
|
|
2176
|
-
},
|
|
2171
|
+
}), Qc = "_favoriteDetailDialog_title_17m9n_67", pc = "_favoriteDetailDialog_componentNodes_17m9n_73", ea = "_favoriteDetailDialog_item_17m9n_78", Ve = {
|
|
2172
|
+
favoriteDetailDialog_title: Qc,
|
|
2173
|
+
favoriteDetailDialog_componentNodes: pc,
|
|
2174
|
+
favoriteDetailDialog_item: ea
|
|
2175
|
+
}, ta = ue((e) => {
|
|
2177
2176
|
var i, c, a, d;
|
|
2178
2177
|
const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
|
|
2179
2178
|
return /* @__PURE__ */ g(
|
|
@@ -2202,7 +2201,7 @@ const pc = ue((e) => {
|
|
|
2202
2201
|
}
|
|
2203
2202
|
),
|
|
2204
2203
|
/* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_componentNodes, children: [
|
|
2205
|
-
!((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(
|
|
2204
|
+
!((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(U, {}),
|
|
2206
2205
|
(d = (a = n == null ? void 0 : n.children) == null ? void 0 : a.map) == null ? void 0 : d.call(a, (o) => {
|
|
2207
2206
|
const s = t.component.get(o.cId);
|
|
2208
2207
|
return /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_item, children: [
|
|
@@ -2221,8 +2220,8 @@ const pc = ue((e) => {
|
|
|
2221
2220
|
}
|
|
2222
2221
|
);
|
|
2223
2222
|
});
|
|
2224
|
-
function
|
|
2225
|
-
const { engine: e } = N(), t = Pi(), n =
|
|
2223
|
+
function na() {
|
|
2224
|
+
const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
|
|
2226
2225
|
onOk(a) {
|
|
2227
2226
|
e.favorites.update(a.id, a);
|
|
2228
2227
|
}
|
|
@@ -2230,10 +2229,10 @@ function la() {
|
|
|
2230
2229
|
function c(a) {
|
|
2231
2230
|
e.favorites.delete(a);
|
|
2232
2231
|
}
|
|
2233
|
-
return /* @__PURE__ */ g("div", { className:
|
|
2234
|
-
!(t != null && t.length) && /* @__PURE__ */ l(
|
|
2232
|
+
return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
|
|
2233
|
+
!(t != null && t.length) && /* @__PURE__ */ l(U, {}),
|
|
2235
2234
|
t.map((a) => /* @__PURE__ */ l(
|
|
2236
|
-
|
|
2235
|
+
Yc,
|
|
2237
2236
|
{
|
|
2238
2237
|
favorite: a,
|
|
2239
2238
|
onDelete: () => c(a),
|
|
@@ -2252,11 +2251,11 @@ function la() {
|
|
|
2252
2251
|
))
|
|
2253
2252
|
] });
|
|
2254
2253
|
}
|
|
2255
|
-
const
|
|
2256
|
-
pages:
|
|
2257
|
-
pages_head:
|
|
2258
|
-
pages_body:
|
|
2259
|
-
},
|
|
2254
|
+
const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty8r_76", Ge = {
|
|
2255
|
+
pages: ia,
|
|
2256
|
+
pages_head: la,
|
|
2257
|
+
pages_body: ca
|
|
2258
|
+
}, aa = ue((e) => {
|
|
2260
2259
|
const { params: t } = e, [n] = M.useForm();
|
|
2261
2260
|
function i(a) {
|
|
2262
2261
|
return {
|
|
@@ -2289,21 +2288,21 @@ const ca = "_pages_1ty8r_59", aa = "_pages_head_1ty8r_67", oa = "_pages_body_1ty
|
|
|
2289
2288
|
},
|
|
2290
2289
|
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 4 }, children: [
|
|
2291
2290
|
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(M.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
|
|
2292
|
-
/* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(
|
|
2291
|
+
/* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
|
|
2293
2292
|
] })
|
|
2294
2293
|
}
|
|
2295
2294
|
);
|
|
2296
2295
|
});
|
|
2297
|
-
function
|
|
2298
|
-
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(),
|
|
2296
|
+
function oa() {
|
|
2297
|
+
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), h = aa({
|
|
2299
2298
|
onOk({ page: b, parentId: I }) {
|
|
2300
2299
|
if (e.page.insert(b, I), Re(b.id), I) {
|
|
2301
2300
|
const f = Array.from(new Set(t).add(I));
|
|
2302
|
-
|
|
2301
|
+
u(f);
|
|
2303
2302
|
}
|
|
2304
2303
|
}
|
|
2305
2304
|
});
|
|
2306
|
-
function
|
|
2305
|
+
function u(b) {
|
|
2307
2306
|
n(b), e.config.setConfigSilently({ expandedPageIds: b });
|
|
2308
2307
|
}
|
|
2309
2308
|
function _(b) {
|
|
@@ -2311,13 +2310,13 @@ function ra() {
|
|
|
2311
2310
|
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)]), [])) || [];
|
|
2312
2311
|
}
|
|
2313
2312
|
function m(b) {
|
|
2314
|
-
|
|
2313
|
+
h.open({
|
|
2315
2314
|
parentId: b.id,
|
|
2316
2315
|
parentName: b.name
|
|
2317
2316
|
});
|
|
2318
2317
|
}
|
|
2319
2318
|
function y(b, I = {}) {
|
|
2320
|
-
var v, x, L, j, R,
|
|
2319
|
+
var v, x, L, j, R, q, V;
|
|
2321
2320
|
const f = [b.id, ..._(I[b.id].children)];
|
|
2322
2321
|
if (((v = o.current) == null ? void 0 : v.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
|
|
2323
2322
|
E.warn("至少保留一个顶层页");
|
|
@@ -2325,14 +2324,14 @@ function ra() {
|
|
|
2325
2324
|
}
|
|
2326
2325
|
if (f.includes(e.config.getCurrentPage())) {
|
|
2327
2326
|
let Be = (R = (j = o.current) == null ? void 0 : j[0]) == null ? void 0 : R.key;
|
|
2328
|
-
f.includes(Be) && (Be = (V = (
|
|
2327
|
+
f.includes(Be) && (Be = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Be);
|
|
2329
2328
|
}
|
|
2330
2329
|
e.page.delete(f);
|
|
2331
2330
|
}
|
|
2332
2331
|
function C(b, I = {}) {
|
|
2333
2332
|
const f = [];
|
|
2334
2333
|
return b.forEach((v) => {
|
|
2335
|
-
var j, R,
|
|
2334
|
+
var j, R, q;
|
|
2336
2335
|
const x = I[v.id], L = I[v.id] = {
|
|
2337
2336
|
key: (x == null ? void 0 : x.key) || v.id,
|
|
2338
2337
|
title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
|
|
@@ -2345,11 +2344,11 @@ function ra() {
|
|
|
2345
2344
|
children: (x == null ? void 0 : x.children) || []
|
|
2346
2345
|
};
|
|
2347
2346
|
if (v != null && v.parentId) {
|
|
2348
|
-
(
|
|
2347
|
+
(q = (R = I[j = v == null ? void 0 : v.parentId] || (I[j] = {
|
|
2349
2348
|
key: "",
|
|
2350
2349
|
title: "",
|
|
2351
2350
|
children: []
|
|
2352
|
-
})) == null ? void 0 : R.children) == null ||
|
|
2351
|
+
})) == null ? void 0 : R.children) == null || q.push(L);
|
|
2353
2352
|
return;
|
|
2354
2353
|
}
|
|
2355
2354
|
f.push(L);
|
|
@@ -2371,7 +2370,7 @@ function ra() {
|
|
|
2371
2370
|
size: "small",
|
|
2372
2371
|
style: { fontSize: 12 },
|
|
2373
2372
|
onClick: () => {
|
|
2374
|
-
|
|
2373
|
+
h.open();
|
|
2375
2374
|
},
|
|
2376
2375
|
children: "新增页面"
|
|
2377
2376
|
}
|
|
@@ -2383,11 +2382,11 @@ function ra() {
|
|
|
2383
2382
|
showIcon: !0,
|
|
2384
2383
|
multiple: !1,
|
|
2385
2384
|
defaultExpandAll: !0,
|
|
2386
|
-
icon: /* @__PURE__ */ l(
|
|
2385
|
+
icon: /* @__PURE__ */ l(qn, {}),
|
|
2387
2386
|
treeData: a,
|
|
2388
2387
|
selectedKeys: i,
|
|
2389
2388
|
expandedKeys: t,
|
|
2390
|
-
onExpand:
|
|
2389
|
+
onExpand: u,
|
|
2391
2390
|
onSelect: (b) => {
|
|
2392
2391
|
b.length && Re(b == null ? void 0 : b[0]);
|
|
2393
2392
|
}
|
|
@@ -2395,14 +2394,14 @@ function ra() {
|
|
|
2395
2394
|
) })
|
|
2396
2395
|
] });
|
|
2397
2396
|
}
|
|
2398
|
-
const
|
|
2399
|
-
history:
|
|
2400
|
-
history_head:
|
|
2401
|
-
history_body:
|
|
2402
|
-
history_item:
|
|
2403
|
-
history_item_gray:
|
|
2397
|
+
const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_body_zo6ip_75", ua = "_history_item_zo6ip_80", ha = "_history_item_gray_zo6ip_88", _e = {
|
|
2398
|
+
history: da,
|
|
2399
|
+
history_head: ra,
|
|
2400
|
+
history_body: sa,
|
|
2401
|
+
history_item: ua,
|
|
2402
|
+
history_item_gray: ha
|
|
2404
2403
|
};
|
|
2405
|
-
function
|
|
2404
|
+
function ga() {
|
|
2406
2405
|
var c, a, d, o;
|
|
2407
2406
|
const { engine: e } = N(), t = an(), n = (c = t.current) == null ? void 0 : c.stepId;
|
|
2408
2407
|
function i(s) {
|
|
@@ -2425,57 +2424,57 @@ function ma() {
|
|
|
2425
2424
|
},
|
|
2426
2425
|
s.stepId
|
|
2427
2426
|
)),
|
|
2428
|
-
!((o = t == null ? void 0 : t.list) != null && o.length) && /* @__PURE__ */ l(
|
|
2427
|
+
!((o = t == null ? void 0 : t.list) != null && o.length) && /* @__PURE__ */ l(U, {})
|
|
2429
2428
|
] })
|
|
2430
2429
|
] });
|
|
2431
2430
|
}
|
|
2432
|
-
function
|
|
2431
|
+
function _a() {
|
|
2433
2432
|
const { engine: e } = N(), [t, n] = se(), i = A(() => [
|
|
2434
2433
|
{
|
|
2435
2434
|
key: "library",
|
|
2436
2435
|
domId: "rbs-library",
|
|
2437
2436
|
icon: /* @__PURE__ */ l(Jn, {}),
|
|
2438
2437
|
title: t("menu.bar.library"),
|
|
2439
|
-
children: /* @__PURE__ */ l(
|
|
2438
|
+
children: /* @__PURE__ */ l(ql, {})
|
|
2440
2439
|
},
|
|
2441
2440
|
{
|
|
2442
2441
|
key: "pages",
|
|
2443
2442
|
domId: "rbs-pages",
|
|
2444
2443
|
icon: /* @__PURE__ */ l(Wn, {}),
|
|
2445
2444
|
title: t("menu.bar.pages"),
|
|
2446
|
-
children: /* @__PURE__ */ l(
|
|
2445
|
+
children: /* @__PURE__ */ l(oa, {})
|
|
2447
2446
|
},
|
|
2448
2447
|
{
|
|
2449
2448
|
key: "componentNodes",
|
|
2450
2449
|
domId: "rbs-componentNodes",
|
|
2451
2450
|
icon: /* @__PURE__ */ l(Vn, {}),
|
|
2452
2451
|
title: t("menu.bar.componentNodes"),
|
|
2453
|
-
children: /* @__PURE__ */ l(
|
|
2452
|
+
children: /* @__PURE__ */ l(yc, {})
|
|
2454
2453
|
},
|
|
2455
2454
|
{
|
|
2456
2455
|
key: "property",
|
|
2457
2456
|
domId: "rbs-property",
|
|
2458
2457
|
icon: /* @__PURE__ */ l(Gn, {}),
|
|
2459
2458
|
title: t("menu.bar.property"),
|
|
2460
|
-
children: /* @__PURE__ */ l(
|
|
2459
|
+
children: /* @__PURE__ */ l(Uc, {})
|
|
2461
2460
|
},
|
|
2462
2461
|
{
|
|
2463
2462
|
key: "favorites",
|
|
2464
2463
|
domId: "rbs-favorites",
|
|
2465
2464
|
icon: /* @__PURE__ */ l(dt, {}),
|
|
2466
2465
|
title: t("menu.bar.favorites"),
|
|
2467
|
-
children: /* @__PURE__ */ l(
|
|
2466
|
+
children: /* @__PURE__ */ l(na, {})
|
|
2468
2467
|
},
|
|
2469
2468
|
{
|
|
2470
2469
|
key: "history",
|
|
2471
2470
|
domId: "rbs-history",
|
|
2472
2471
|
icon: /* @__PURE__ */ l(Xn, {}),
|
|
2473
2472
|
title: t("menu.bar.history"),
|
|
2474
|
-
children: /* @__PURE__ */ l(
|
|
2473
|
+
children: /* @__PURE__ */ l(ga, {})
|
|
2475
2474
|
}
|
|
2476
2475
|
], [n.language]), c = Ee((r) => r.currentMenu), [a, d] = S(""), o = A(() => {
|
|
2477
2476
|
var r;
|
|
2478
|
-
return (r = i.find((
|
|
2477
|
+
return (r = i.find((h) => h.key === a)) == null ? void 0 : r.children;
|
|
2479
2478
|
}, [a]);
|
|
2480
2479
|
function s(r) {
|
|
2481
2480
|
d(r), e.config.setConfigSilently({
|
|
@@ -2483,44 +2482,44 @@ function fa() {
|
|
|
2483
2482
|
});
|
|
2484
2483
|
}
|
|
2485
2484
|
return w(() => {
|
|
2486
|
-
const { currentMenu: r } = e.config.getConfig(),
|
|
2487
|
-
d((
|
|
2485
|
+
const { currentMenu: r } = e.config.getConfig(), h = i.find((u) => u.key === r);
|
|
2486
|
+
d((h == null ? void 0 : h.key) || i[0].key);
|
|
2488
2487
|
}, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
|
|
2489
|
-
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(
|
|
2488
|
+
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: a, list: i, onChange: s }) }),
|
|
2490
2489
|
/* @__PURE__ */ l("div", { className: He.menu_main, children: o })
|
|
2491
2490
|
] });
|
|
2492
2491
|
}
|
|
2493
|
-
const
|
|
2494
|
-
editor:
|
|
2495
|
-
editor_render:
|
|
2496
|
-
},
|
|
2497
|
-
flexCenter:
|
|
2492
|
+
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
2493
|
+
editor: ma,
|
|
2494
|
+
editor_render: fa
|
|
2495
|
+
}, ya = "_flexCenter_1kt3d_29", va = "_icon_clickable_1kt3d_49", ba = "_icon_selected_1kt3d_56", Ca = "_moveItem_box_1kt3d_59", xa = "_moveItem_box_lock_1kt3d_69", Ia = "_moveItem_box_selected_1kt3d_72", ka = "_moveItem_box_hover_1kt3d_79", Sa = "_dragPointCommon_1kt3d_83", Na = "_p_top_1kt3d_92", wa = "_p_left_1kt3d_95", Ea = "_p_right_1kt3d_98", Aa = "_p_bottom_1kt3d_101", La = "_p_horizontal_mid_1kt3d_104", Da = "_p_vertical_mid_1kt3d_107", Oa = "_dragPoint_top_1kt3d_110", Pa = "_dragPoint_top_left_1kt3d_123", Ma = "_dragPoint_top_right_1kt3d_136", Ba = "_dragPoint_bottom_1kt3d_149", ja = "_dragPoint_bottom_left_1kt3d_162", za = "_dragPoint_bottom_right_1kt3d_175", Ta = "_dragPoint_left_1kt3d_188", $a = "_dragPoint_right_1kt3d_201", ie = {
|
|
2496
|
+
flexCenter: ya,
|
|
2498
2497
|
"theme-text": "_theme-text_1kt3d_34",
|
|
2499
2498
|
"theme-color": "_theme-color_1kt3d_38",
|
|
2500
2499
|
"text-ellipsis": "_text-ellipsis_1kt3d_41",
|
|
2501
2500
|
"border-right": "_border-right_1kt3d_46",
|
|
2502
|
-
icon_clickable:
|
|
2503
|
-
icon_selected:
|
|
2504
|
-
moveItem_box:
|
|
2505
|
-
moveItem_box_lock:
|
|
2506
|
-
moveItem_box_selected:
|
|
2507
|
-
moveItem_box_hover:
|
|
2508
|
-
dragPointCommon:
|
|
2509
|
-
p_top:
|
|
2510
|
-
p_left:
|
|
2511
|
-
p_right:
|
|
2512
|
-
p_bottom:
|
|
2513
|
-
p_horizontal_mid:
|
|
2514
|
-
p_vertical_mid:
|
|
2515
|
-
dragPoint_top:
|
|
2516
|
-
dragPoint_top_left:
|
|
2517
|
-
dragPoint_top_right:
|
|
2518
|
-
dragPoint_bottom:
|
|
2519
|
-
dragPoint_bottom_left:
|
|
2520
|
-
dragPoint_bottom_right:
|
|
2521
|
-
dragPoint_left:
|
|
2522
|
-
dragPoint_right:
|
|
2523
|
-
},
|
|
2501
|
+
icon_clickable: va,
|
|
2502
|
+
icon_selected: ba,
|
|
2503
|
+
moveItem_box: Ca,
|
|
2504
|
+
moveItem_box_lock: xa,
|
|
2505
|
+
moveItem_box_selected: Ia,
|
|
2506
|
+
moveItem_box_hover: ka,
|
|
2507
|
+
dragPointCommon: Sa,
|
|
2508
|
+
p_top: Na,
|
|
2509
|
+
p_left: wa,
|
|
2510
|
+
p_right: Ea,
|
|
2511
|
+
p_bottom: Aa,
|
|
2512
|
+
p_horizontal_mid: La,
|
|
2513
|
+
p_vertical_mid: Da,
|
|
2514
|
+
dragPoint_top: Oa,
|
|
2515
|
+
dragPoint_top_left: Pa,
|
|
2516
|
+
dragPoint_top_right: Ma,
|
|
2517
|
+
dragPoint_bottom: Ba,
|
|
2518
|
+
dragPoint_bottom_left: ja,
|
|
2519
|
+
dragPoint_bottom_right: za,
|
|
2520
|
+
dragPoint_left: Ta,
|
|
2521
|
+
dragPoint_right: $a
|
|
2522
|
+
}, Ra = [
|
|
2524
2523
|
"top",
|
|
2525
2524
|
"top_left",
|
|
2526
2525
|
"top_right",
|
|
@@ -2529,7 +2528,7 @@ const ya = "_editor_82kko_59", va = "_editor_render_82kko_65", Bt = {
|
|
|
2529
2528
|
"bottom_right",
|
|
2530
2529
|
"left",
|
|
2531
2530
|
"right"
|
|
2532
|
-
],
|
|
2531
|
+
], Fa = {
|
|
2533
2532
|
top: "n-resize",
|
|
2534
2533
|
top_left: "nw-resize",
|
|
2535
2534
|
top_right: "ne-resize",
|
|
@@ -2539,7 +2538,7 @@ const ya = "_editor_82kko_59", va = "_editor_render_82kko_65", Bt = {
|
|
|
2539
2538
|
left: "w-resize",
|
|
2540
2539
|
right: "e-resize"
|
|
2541
2540
|
};
|
|
2542
|
-
function
|
|
2541
|
+
function Ha(e, t, n) {
|
|
2543
2542
|
const i = {
|
|
2544
2543
|
dx: 0,
|
|
2545
2544
|
dy: 0,
|
|
@@ -2586,7 +2585,7 @@ function qa(e, t, n) {
|
|
|
2586
2585
|
}
|
|
2587
2586
|
return i;
|
|
2588
2587
|
}
|
|
2589
|
-
function
|
|
2588
|
+
function Ka(e, t, n) {
|
|
2590
2589
|
let i = {
|
|
2591
2590
|
x: 0,
|
|
2592
2591
|
y: 0,
|
|
@@ -2602,10 +2601,10 @@ function Ua(e, t, n) {
|
|
|
2602
2601
|
y: e.y,
|
|
2603
2602
|
width: e.width,
|
|
2604
2603
|
height: e.height
|
|
2605
|
-
}, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(
|
|
2604
|
+
}, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
|
|
2606
2605
|
},
|
|
2607
2606
|
onMove(a, d) {
|
|
2608
|
-
const o =
|
|
2607
|
+
const o = Ha(n, a, d), s = i.width + o.dw, r = i.height + o.dh;
|
|
2609
2608
|
s < 0 || r < 0 || c.componentNode.update(e.id, {
|
|
2610
2609
|
x: Math.round(i.x + o.dx),
|
|
2611
2610
|
y: Math.round(i.y + o.dy),
|
|
@@ -2618,7 +2617,7 @@ function Ua(e, t, n) {
|
|
|
2618
2617
|
}
|
|
2619
2618
|
};
|
|
2620
2619
|
}
|
|
2621
|
-
const
|
|
2620
|
+
const Ua = Cn((e, t) => {
|
|
2622
2621
|
const { componentNode: n } = e, i = B(null), [c, a] = S(!1), d = Ee((o) => o.scale);
|
|
2623
2622
|
return xn(t, () => ({
|
|
2624
2623
|
// 经过实例
|
|
@@ -2649,7 +2648,7 @@ const Ja = Cn((e, t) => {
|
|
|
2649
2648
|
c && ie.moveItem_box_selected,
|
|
2650
2649
|
n.lock && ie.moveItem_box_lock
|
|
2651
2650
|
),
|
|
2652
|
-
children: c && !n.lock &&
|
|
2651
|
+
children: c && !n.lock && Ra.map((o) => /* @__PURE__ */ l(
|
|
2653
2652
|
"div",
|
|
2654
2653
|
{
|
|
2655
2654
|
style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
|
|
@@ -2661,7 +2660,7 @@ const Ja = Cn((e, t) => {
|
|
|
2661
2660
|
}
|
|
2662
2661
|
), [n.lock, c, d]);
|
|
2663
2662
|
});
|
|
2664
|
-
function
|
|
2663
|
+
function qa(e) {
|
|
2665
2664
|
var d;
|
|
2666
2665
|
const { engine: t } = N(), [n, i] = S(
|
|
2667
2666
|
e == null ? void 0 : e.componentNode
|
|
@@ -2673,30 +2672,30 @@ function Wa(e) {
|
|
|
2673
2672
|
i({ ...o });
|
|
2674
2673
|
})), mt(() => {
|
|
2675
2674
|
i(e == null ? void 0 : e.componentNode);
|
|
2676
|
-
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(
|
|
2675
|
+
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
|
|
2677
2676
|
}
|
|
2678
|
-
function
|
|
2679
|
-
const { component: t, componentNode: n } = e, i = nn(n), c = B(null), { dataSource: a, requestInstance: d } = ui(n), o = hi(n.id), s = gi(n.id), r = B(null),
|
|
2677
|
+
function Ja(e) {
|
|
2678
|
+
const { component: t, componentNode: n } = e, i = nn(n), c = B(null), { dataSource: a, requestInstance: d } = ui(n), o = hi(n.id), s = gi(n.id), r = B(null), h = _i({
|
|
2680
2679
|
id: n.id,
|
|
2681
2680
|
// 经过实例
|
|
2682
2681
|
handleHover() {
|
|
2683
|
-
var
|
|
2684
|
-
(_ = (
|
|
2682
|
+
var u, _;
|
|
2683
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleHover) == null || _.call(u);
|
|
2685
2684
|
},
|
|
2686
2685
|
// 离开实例
|
|
2687
2686
|
handleUnHover() {
|
|
2688
|
-
var
|
|
2689
|
-
(_ = (
|
|
2687
|
+
var u, _;
|
|
2688
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleUnHover) == null || _.call(u);
|
|
2690
2689
|
},
|
|
2691
2690
|
// 选中实例样式
|
|
2692
2691
|
handleSelected() {
|
|
2693
|
-
var
|
|
2694
|
-
(_ = (
|
|
2692
|
+
var u, _;
|
|
2693
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleSelected) == null || _.call(u);
|
|
2695
2694
|
},
|
|
2696
2695
|
// 取消选中实例样式
|
|
2697
2696
|
handleUnSelected() {
|
|
2698
|
-
var
|
|
2699
|
-
(_ = (
|
|
2697
|
+
var u, _;
|
|
2698
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleUnSelected) == null || _.call(u);
|
|
2700
2699
|
},
|
|
2701
2700
|
// 获取容器dom
|
|
2702
2701
|
getContainerDom() {
|
|
@@ -2715,7 +2714,7 @@ function Va(e) {
|
|
|
2715
2714
|
d.reload();
|
|
2716
2715
|
},
|
|
2717
2716
|
// 立刻请求一次
|
|
2718
|
-
request: (
|
|
2717
|
+
request: (u, _) => d.request(u, _)
|
|
2719
2718
|
});
|
|
2720
2719
|
return /* @__PURE__ */ g(
|
|
2721
2720
|
"div",
|
|
@@ -2731,10 +2730,10 @@ function Va(e) {
|
|
|
2731
2730
|
zIndex: n.level
|
|
2732
2731
|
},
|
|
2733
2732
|
onMouseEnter: () => {
|
|
2734
|
-
|
|
2733
|
+
h.handleHover();
|
|
2735
2734
|
},
|
|
2736
2735
|
onMouseLeave: () => {
|
|
2737
|
-
|
|
2736
|
+
h.handleUnHover();
|
|
2738
2737
|
},
|
|
2739
2738
|
children: [
|
|
2740
2739
|
/* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
|
|
@@ -2749,16 +2748,16 @@ function Va(e) {
|
|
|
2749
2748
|
componentNode: n
|
|
2750
2749
|
}
|
|
2751
2750
|
) }),
|
|
2752
|
-
/* @__PURE__ */ l(
|
|
2751
|
+
/* @__PURE__ */ l(Ua, { ref: r, componentNode: n })
|
|
2753
2752
|
]
|
|
2754
2753
|
}
|
|
2755
2754
|
);
|
|
2756
2755
|
}
|
|
2757
|
-
function
|
|
2756
|
+
function Wa(e) {
|
|
2758
2757
|
const t = k.getActiveEngine();
|
|
2759
2758
|
t && Ae(e) && t.instance.getAllSelected().length && (t.instance.unselectAll(), O("取消选中组件"));
|
|
2760
2759
|
}
|
|
2761
|
-
function
|
|
2760
|
+
function Va(e, t) {
|
|
2762
2761
|
const n = Ae(t), i = Pe("shift"), c = k.getActiveEngine();
|
|
2763
2762
|
if (!c || e.lock && n && !i)
|
|
2764
2763
|
return;
|
|
@@ -2773,7 +2772,7 @@ function Xa(e, t) {
|
|
|
2773
2772
|
c.instance.select(d, !i), O("选中组件");
|
|
2774
2773
|
}
|
|
2775
2774
|
}
|
|
2776
|
-
function
|
|
2775
|
+
function Ga(e) {
|
|
2777
2776
|
var s;
|
|
2778
2777
|
const t = e.getComponentNode();
|
|
2779
2778
|
if (!t || t != null && t.lock)
|
|
@@ -2787,27 +2786,27 @@ function Ya(e) {
|
|
|
2787
2786
|
return {
|
|
2788
2787
|
onStart() {
|
|
2789
2788
|
return ae.set("move"), setTimeout(() => {
|
|
2790
|
-
let { list: r, showCount:
|
|
2791
|
-
i = r, c =
|
|
2792
|
-
(
|
|
2793
|
-
|
|
2789
|
+
let { list: r, showCount: h } = Za();
|
|
2790
|
+
i = r, c = h < 300, o = Zt(
|
|
2791
|
+
(u, _) => {
|
|
2792
|
+
Xa(i, c, u, _);
|
|
2794
2793
|
},
|
|
2795
|
-
|
|
2794
|
+
h < 100 ? 0 : 20,
|
|
2796
2795
|
{
|
|
2797
2796
|
trailing: !0
|
|
2798
2797
|
}
|
|
2799
2798
|
);
|
|
2800
2799
|
}), !1;
|
|
2801
2800
|
},
|
|
2802
|
-
onMove(r,
|
|
2803
|
-
d || (n.style.pointerEvents = "none", d = !0), o == null || o(r,
|
|
2801
|
+
onMove(r, h) {
|
|
2802
|
+
d || (n.style.pointerEvents = "none", d = !0), o == null || o(r, h);
|
|
2804
2803
|
},
|
|
2805
|
-
onEnd(r,
|
|
2806
|
-
ae.revoke(), d && (n.style.pointerEvents = a,
|
|
2804
|
+
onEnd(r, h) {
|
|
2805
|
+
ae.revoke(), d && (n.style.pointerEvents = a, Ya(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, o = void 0);
|
|
2807
2806
|
}
|
|
2808
2807
|
};
|
|
2809
2808
|
}
|
|
2810
|
-
function
|
|
2809
|
+
function Xa(e, t, n, i) {
|
|
2811
2810
|
e.forEach((c) => {
|
|
2812
2811
|
if (!c.show) return;
|
|
2813
2812
|
const a = c.containerDom;
|
|
@@ -2819,7 +2818,7 @@ function Za(e, t, n, i) {
|
|
|
2819
2818
|
}
|
|
2820
2819
|
});
|
|
2821
2820
|
}
|
|
2822
|
-
function
|
|
2821
|
+
function Ya(e, t, n, i) {
|
|
2823
2822
|
const c = k.getActiveEngine();
|
|
2824
2823
|
c && e.forEach((a) => {
|
|
2825
2824
|
a != null && a.show && t && a.containerDom.style.removeProperty("transform");
|
|
@@ -2830,7 +2829,7 @@ function Qa(e, t, n, i) {
|
|
|
2830
2829
|
});
|
|
2831
2830
|
});
|
|
2832
2831
|
}
|
|
2833
|
-
function
|
|
2832
|
+
function Za() {
|
|
2834
2833
|
const e = k.getActiveEngine();
|
|
2835
2834
|
return e ? Oe().reduce(
|
|
2836
2835
|
(n, i) => {
|
|
@@ -2854,8 +2853,8 @@ function pa() {
|
|
|
2854
2853
|
list: []
|
|
2855
2854
|
};
|
|
2856
2855
|
}
|
|
2857
|
-
const
|
|
2858
|
-
rangeBox:
|
|
2856
|
+
const Qa = "_rangeBox_12c3t_59", pa = {
|
|
2857
|
+
rangeBox: Qa
|
|
2859
2858
|
}, jt = Zt((e, t) => {
|
|
2860
2859
|
const n = k.getActiveEngine();
|
|
2861
2860
|
if (!n) return;
|
|
@@ -2876,16 +2875,16 @@ const eo = "_rangeBox_12c3t_59", to = {
|
|
|
2876
2875
|
n.instance.select(i, !0), t == null || t(i);
|
|
2877
2876
|
}, 100);
|
|
2878
2877
|
let F;
|
|
2879
|
-
function
|
|
2878
|
+
function eo(e) {
|
|
2880
2879
|
let t = { x: 0, y: 0 }, n = 1;
|
|
2881
2880
|
function i(a = 0, d = 0) {
|
|
2882
|
-
const o = a * n, s = d * n, r = t.x + o,
|
|
2881
|
+
const o = a * n, s = d * n, r = t.x + o, h = t.y + s, u = {
|
|
2883
2882
|
x: t.x,
|
|
2884
2883
|
y: t.y,
|
|
2885
2884
|
width: Math.abs(a),
|
|
2886
2885
|
height: Math.abs(d)
|
|
2887
2886
|
};
|
|
2888
|
-
return r <
|
|
2887
|
+
return r < u.x && (u.x = r), h < u.y && (u.y = h), u.x /= n, u.y /= n, u;
|
|
2889
2888
|
}
|
|
2890
2889
|
function c() {
|
|
2891
2890
|
F && (F == null || F.remove(), F = void 0);
|
|
@@ -2896,10 +2895,10 @@ function no(e) {
|
|
|
2896
2895
|
if (!s)
|
|
2897
2896
|
return;
|
|
2898
2897
|
c();
|
|
2899
|
-
const { x: r = 0, y:
|
|
2898
|
+
const { x: r = 0, y: h = 0 } = o || {};
|
|
2900
2899
|
n = s.config.getConfig().scale;
|
|
2901
|
-
const
|
|
2902
|
-
t.x = r -
|
|
2900
|
+
const u = e.getBoundingClientRect();
|
|
2901
|
+
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");
|
|
2903
2902
|
},
|
|
2904
2903
|
onMove(a, d) {
|
|
2905
2904
|
if (!F) return;
|
|
@@ -2915,28 +2914,28 @@ function no(e) {
|
|
|
2915
2914
|
}
|
|
2916
2915
|
};
|
|
2917
2916
|
}
|
|
2918
|
-
function
|
|
2917
|
+
function to(e, t) {
|
|
2919
2918
|
return {
|
|
2920
2919
|
onEnd(n, i, c) {
|
|
2921
2920
|
setTimeout(() => {
|
|
2922
|
-
var
|
|
2921
|
+
var u;
|
|
2923
2922
|
const a = k.getActiveEngine();
|
|
2924
2923
|
if (!a)
|
|
2925
2924
|
return;
|
|
2926
2925
|
const d = a.config.getConfig().scale, o = e.getComponentNode(), s = e.getContainerDom();
|
|
2927
2926
|
if (!o || o != null && o.lock || !s)
|
|
2928
2927
|
return;
|
|
2929
|
-
const r = ((
|
|
2928
|
+
const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(o, {
|
|
2930
2929
|
x: (c.x - r.x) / d + o.x,
|
|
2931
2930
|
// 鼠标在编辑器上的虚拟坐标
|
|
2932
2931
|
y: (c.y - r.y) / d + o.y
|
|
2933
2932
|
});
|
|
2934
|
-
t == null || t(
|
|
2933
|
+
t == null || t(h);
|
|
2935
2934
|
});
|
|
2936
2935
|
}
|
|
2937
2936
|
};
|
|
2938
2937
|
}
|
|
2939
|
-
function
|
|
2938
|
+
function no(e, t) {
|
|
2940
2939
|
const n = k.getActiveEngine();
|
|
2941
2940
|
if (!n)
|
|
2942
2941
|
return;
|
|
@@ -2948,11 +2947,11 @@ function lo(e, t) {
|
|
|
2948
2947
|
}, {}), c = Object.values(i), a = c[c.length - 1];
|
|
2949
2948
|
return a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2950
2949
|
}
|
|
2951
|
-
function
|
|
2950
|
+
function io(e, t) {
|
|
2952
2951
|
const n = k.getActiveEngine();
|
|
2953
2952
|
if (!n)
|
|
2954
2953
|
return;
|
|
2955
|
-
const i =
|
|
2954
|
+
const i = no(e, {
|
|
2956
2955
|
x: t.x,
|
|
2957
2956
|
y: t.y
|
|
2958
2957
|
});
|
|
@@ -2987,7 +2986,7 @@ function co(e, t) {
|
|
|
2987
2986
|
});
|
|
2988
2987
|
}
|
|
2989
2988
|
}
|
|
2990
|
-
function
|
|
2989
|
+
function lo(e) {
|
|
2991
2990
|
const t = B([]), { engine: n } = N();
|
|
2992
2991
|
function i() {
|
|
2993
2992
|
var c, a;
|
|
@@ -2999,9 +2998,9 @@ function ao(e) {
|
|
|
2999
2998
|
const a = e.current;
|
|
3000
2999
|
if (!a) throw new Error("dom must be exist.");
|
|
3001
3000
|
i();
|
|
3002
|
-
const d = Ae(c), o = Xt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0),
|
|
3003
|
-
if (
|
|
3004
|
-
if (
|
|
3001
|
+
const d = Ae(c), o = Xt(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), _ = o ? !0 : u != null && u.lock ? d && s : d;
|
|
3002
|
+
if (h && u && _) {
|
|
3003
|
+
if (Va(u, c), !(u != null && u.lock) && d) {
|
|
3005
3004
|
const y = ct(
|
|
3006
3005
|
c.target,
|
|
3007
3006
|
oe.dragDirection
|
|
@@ -3014,11 +3013,11 @@ function ao(e) {
|
|
|
3014
3013
|
scale: n.config.getConfig().scale,
|
|
3015
3014
|
hookQueue: [
|
|
3016
3015
|
// 监听拖拽大小
|
|
3017
|
-
y &&
|
|
3016
|
+
y && Ka(u, c.target, y),
|
|
3018
3017
|
// 监听拖拽移动
|
|
3019
|
-
!y &&
|
|
3018
|
+
!y && Ga(h),
|
|
3020
3019
|
// 监听是否放置到 layout 组件
|
|
3021
|
-
|
|
3020
|
+
to(h, (C) => {
|
|
3022
3021
|
t.current.push(C);
|
|
3023
3022
|
})
|
|
3024
3023
|
]
|
|
@@ -3027,7 +3026,7 @@ function ao(e) {
|
|
|
3027
3026
|
}
|
|
3028
3027
|
return;
|
|
3029
3028
|
}
|
|
3030
|
-
|
|
3029
|
+
Wa(c), t.current.push(
|
|
3031
3030
|
St({
|
|
3032
3031
|
startX: c.x,
|
|
3033
3032
|
startY: c.y,
|
|
@@ -3035,7 +3034,7 @@ function ao(e) {
|
|
|
3035
3034
|
scale: n.config.getConfig().scale,
|
|
3036
3035
|
hookQueue: [
|
|
3037
3036
|
// 监听创建范围多选框(左键按住范围框选)
|
|
3038
|
-
d &&
|
|
3037
|
+
d && eo(a)
|
|
3039
3038
|
]
|
|
3040
3039
|
})
|
|
3041
3040
|
);
|
|
@@ -3044,7 +3043,7 @@ function ao(e) {
|
|
|
3044
3043
|
i();
|
|
3045
3044
|
});
|
|
3046
3045
|
}
|
|
3047
|
-
function
|
|
3046
|
+
function co(e) {
|
|
3048
3047
|
const { engine: t } = N();
|
|
3049
3048
|
un(e, {
|
|
3050
3049
|
accept: ["create-component"],
|
|
@@ -3067,7 +3066,7 @@ function oo(e) {
|
|
|
3067
3066
|
}
|
|
3068
3067
|
});
|
|
3069
3068
|
}
|
|
3070
|
-
function
|
|
3069
|
+
function ao(e) {
|
|
3071
3070
|
const { engine: t } = N();
|
|
3072
3071
|
un(e, {
|
|
3073
3072
|
accept: ["create-favorite"],
|
|
@@ -3078,7 +3077,7 @@ function ro(e) {
|
|
|
3078
3077
|
throw new Error("dom must be exist.");
|
|
3079
3078
|
const a = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
|
|
3080
3079
|
(I = d.children) != null && I.length || E.warn("收藏元素为空");
|
|
3081
|
-
const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x:
|
|
3080
|
+
const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x: h, y: u } = d.children.reduce(
|
|
3082
3081
|
(f, v) => (f.x = Math.min(f.x, v.x), f.y = Math.min(f.y, v.y), f),
|
|
3083
3082
|
{
|
|
3084
3083
|
x: r.x,
|
|
@@ -3086,7 +3085,7 @@ function ro(e) {
|
|
|
3086
3085
|
}
|
|
3087
3086
|
), _ = t.config.getCurrentPage(), m = [], y = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
|
|
3088
3087
|
onClone(f, v) {
|
|
3089
|
-
v.x = Math.round((o + (v.x -
|
|
3088
|
+
v.x = Math.round((o + (v.x - h)) / y), v.y = Math.round((s + (v.y - u)) / y), v.pageId = _, m.push(v.id);
|
|
3090
3089
|
}
|
|
3091
3090
|
});
|
|
3092
3091
|
t.componentNode.add(C), setTimeout(() => {
|
|
@@ -3095,11 +3094,11 @@ function ro(e) {
|
|
|
3095
3094
|
}
|
|
3096
3095
|
});
|
|
3097
3096
|
}
|
|
3098
|
-
const
|
|
3097
|
+
const oo = () => {
|
|
3099
3098
|
const { engine: e } = N(), t = B(null), n = B(null), i = Gt(), c = Vt(), a = A(() => {
|
|
3100
3099
|
if (i.length)
|
|
3101
3100
|
return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
|
|
3102
|
-
|
|
3101
|
+
qa,
|
|
3103
3102
|
{
|
|
3104
3103
|
componentNode: d,
|
|
3105
3104
|
packages: i
|
|
@@ -3107,7 +3106,7 @@ const so = () => {
|
|
|
3107
3106
|
d.id
|
|
3108
3107
|
));
|
|
3109
3108
|
}, [c, i]);
|
|
3110
|
-
return
|
|
3109
|
+
return lo(n), _n(t), co(n), ao(n), w(() => e.componentNode.onDelete((d) => {
|
|
3111
3110
|
e.page.removeGlobalComponentNode(d);
|
|
3112
3111
|
}), []), /* @__PURE__ */ l(
|
|
3113
3112
|
"div",
|
|
@@ -3118,19 +3117,19 @@ const so = () => {
|
|
|
3118
3117
|
children: /* @__PURE__ */ l(mi, { ref: n, className: Bt.editor_render, children: a })
|
|
3119
3118
|
}
|
|
3120
3119
|
);
|
|
3121
|
-
},
|
|
3122
|
-
attributes:
|
|
3123
|
-
},
|
|
3124
|
-
singleInstanceAttributesBase_description:
|
|
3125
|
-
singleInstanceAttributesBase_body:
|
|
3126
|
-
singleInstanceAttributesBase_label:
|
|
3127
|
-
singleInstanceAttributesBase:
|
|
3128
|
-
},
|
|
3129
|
-
opacity0:
|
|
3130
|
-
editText:
|
|
3131
|
-
editText_text:
|
|
3120
|
+
}, ro = "_attributes_esabd_59", so = {
|
|
3121
|
+
attributes: ro
|
|
3122
|
+
}, uo = "_singleInstanceAttributesBase_description_x66dv_59", ho = "_singleInstanceAttributesBase_body_x66dv_64", go = "_singleInstanceAttributesBase_label_x66dv_67", _o = "_singleInstanceAttributesBase_x66dv_59", Y = {
|
|
3123
|
+
singleInstanceAttributesBase_description: uo,
|
|
3124
|
+
singleInstanceAttributesBase_body: ho,
|
|
3125
|
+
singleInstanceAttributesBase_label: go,
|
|
3126
|
+
singleInstanceAttributesBase: _o
|
|
3127
|
+
}, mo = "_opacity0_1lvzj_59", fo = "_editText_1lvzj_62", yo = "_editText_text_1lvzj_69", Xe = {
|
|
3128
|
+
opacity0: mo,
|
|
3129
|
+
editText: fo,
|
|
3130
|
+
editText_text: yo
|
|
3132
3131
|
};
|
|
3133
|
-
function
|
|
3132
|
+
function vo(e) {
|
|
3134
3133
|
const [t, n] = S(!1), [i, c] = S("");
|
|
3135
3134
|
function a() {
|
|
3136
3135
|
c((e == null ? void 0 : e.value) || ""), n(!0);
|
|
@@ -3147,7 +3146,7 @@ function Co(e) {
|
|
|
3147
3146
|
n(!1);
|
|
3148
3147
|
}, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: Xe.editText, children: [
|
|
3149
3148
|
t ? /* @__PURE__ */ l(
|
|
3150
|
-
|
|
3149
|
+
p,
|
|
3151
3150
|
{
|
|
3152
3151
|
value: i,
|
|
3153
3152
|
style: { width: "100%" },
|
|
@@ -3157,8 +3156,8 @@ function Co(e) {
|
|
|
3157
3156
|
}
|
|
3158
3157
|
}
|
|
3159
3158
|
) : /* @__PURE__ */ l("b", { className: Xe.editText_text, title: `${(e == null ? void 0 : e.value) || ""}`, children: e == null ? void 0 : e.value }),
|
|
3160
|
-
t ? /* @__PURE__ */ l(
|
|
3161
|
-
|
|
3159
|
+
t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
|
|
3160
|
+
Ut,
|
|
3162
3161
|
{
|
|
3163
3162
|
className: $(Xe.opacity0, "icon_clickable"),
|
|
3164
3163
|
onClick: a
|
|
@@ -3166,7 +3165,7 @@ function Co(e) {
|
|
|
3166
3165
|
)
|
|
3167
3166
|
] });
|
|
3168
3167
|
}
|
|
3169
|
-
function
|
|
3168
|
+
function bo() {
|
|
3170
3169
|
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm(), i = A(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
|
|
3171
3170
|
function a(d) {
|
|
3172
3171
|
d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
|
|
@@ -3180,15 +3179,15 @@ function xo() {
|
|
|
3180
3179
|
M,
|
|
3181
3180
|
{
|
|
3182
3181
|
form: n,
|
|
3183
|
-
className:
|
|
3182
|
+
className: Y.singleInstanceAttributesBase,
|
|
3184
3183
|
onValuesChange: (d) => {
|
|
3185
3184
|
let o = "修改组件";
|
|
3186
3185
|
d.hasOwnProperty("isAllPage") && (a(d.isAllPage), o = d.isAllPage ? "设置组件全页面" : "取消组件全页面"), e.componentNode.update(t == null ? void 0 : t.id, d), O(o);
|
|
3187
3186
|
},
|
|
3188
3187
|
children: [
|
|
3189
|
-
/* @__PURE__ */ l("div", { className:
|
|
3188
|
+
/* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
|
|
3190
3189
|
/* @__PURE__ */ l(H, { span: 24, style: { marginBottom: 6 }, children: /* @__PURE__ */ l(
|
|
3191
|
-
|
|
3190
|
+
vo,
|
|
3192
3191
|
{
|
|
3193
3192
|
emptyMessage: "请填写名称",
|
|
3194
3193
|
value: t == null ? void 0 : t.name,
|
|
@@ -3212,16 +3211,16 @@ function xo() {
|
|
|
3212
3211
|
(t == null ? void 0 : t.cName) || "-"
|
|
3213
3212
|
] })
|
|
3214
3213
|
] }) }),
|
|
3215
|
-
/* @__PURE__ */ g("div", { className:
|
|
3214
|
+
/* @__PURE__ */ g("div", { className: Y.singleInstanceAttributesBase_body, children: [
|
|
3216
3215
|
/* @__PURE__ */ g("div", { children: [
|
|
3217
3216
|
/* @__PURE__ */ g(nt, { gutter: [8, 8], style: { fontSize: 12 }, children: [
|
|
3218
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3217
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "X轴" }),
|
|
3219
3218
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3220
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3219
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "Y轴" }),
|
|
3221
3220
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3222
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3221
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "宽度" }),
|
|
3223
3222
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3224
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3223
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "高度" }),
|
|
3225
3224
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
|
|
3226
3225
|
] }),
|
|
3227
3226
|
/* @__PURE__ */ g(Le, { labelSpan: 4, children: [
|
|
@@ -3252,38 +3251,38 @@ function xo() {
|
|
|
3252
3251
|
}
|
|
3253
3252
|
);
|
|
3254
3253
|
}
|
|
3255
|
-
const
|
|
3256
|
-
dataSource:
|
|
3257
|
-
},
|
|
3258
|
-
requestDataSource:
|
|
3254
|
+
const Co = "_dataSource_1t8uf_59", xo = {
|
|
3255
|
+
dataSource: Co
|
|
3256
|
+
}, Io = "_requestDataSource_147st_59", ko = {
|
|
3257
|
+
requestDataSource: Io
|
|
3259
3258
|
};
|
|
3260
|
-
function
|
|
3259
|
+
function So(e) {
|
|
3261
3260
|
const t = k.getActiveEngine(), { componentNode: n } = he(), i = A(() => {
|
|
3262
|
-
var r,
|
|
3263
|
-
return (
|
|
3261
|
+
var r, h;
|
|
3262
|
+
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);
|
|
3264
3263
|
}, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
|
|
3265
3264
|
data: a,
|
|
3266
3265
|
loading: d,
|
|
3267
3266
|
refresh: o
|
|
3268
3267
|
} = pt(
|
|
3269
3268
|
async () => {
|
|
3270
|
-
var r,
|
|
3271
|
-
return (
|
|
3269
|
+
var r, h;
|
|
3270
|
+
return (h = (r = i == null ? void 0 : i.request) == null ? void 0 : r.call(i, void 0, !0)) == null ? void 0 : h.then((u) => typeof u == "object" && u ? JSON.stringify(u, null, " ") : `${u ?? null}`);
|
|
3272
3271
|
},
|
|
3273
3272
|
{
|
|
3274
3273
|
refreshDeps: [n == null ? void 0 : n.id]
|
|
3275
3274
|
}
|
|
3276
3275
|
);
|
|
3277
3276
|
function s(r) {
|
|
3278
|
-
var
|
|
3279
|
-
(
|
|
3277
|
+
var h, u;
|
|
3278
|
+
(u = (h = t == null ? void 0 : t.componentNode) == null ? void 0 : h.update) == null || u.call(h, n == null ? void 0 : n.id, (_) => ({
|
|
3280
3279
|
request: {
|
|
3281
3280
|
..._.request,
|
|
3282
3281
|
...r
|
|
3283
3282
|
}
|
|
3284
3283
|
}));
|
|
3285
3284
|
}
|
|
3286
|
-
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className:
|
|
3285
|
+
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
|
|
3287
3286
|
/* @__PURE__ */ l(z, { label: "请求类型", children: /* @__PURE__ */ l(
|
|
3288
3287
|
Ce,
|
|
3289
3288
|
{
|
|
@@ -3302,7 +3301,7 @@ function wo(e) {
|
|
|
3302
3301
|
}
|
|
3303
3302
|
) }),
|
|
3304
3303
|
/* @__PURE__ */ l(z, { label: "请求地址", children: /* @__PURE__ */ l(
|
|
3305
|
-
|
|
3304
|
+
p,
|
|
3306
3305
|
{
|
|
3307
3306
|
value: c == null ? void 0 : c.url,
|
|
3308
3307
|
onChange: (r) => {
|
|
@@ -3347,7 +3346,7 @@ function wo(e) {
|
|
|
3347
3346
|
/* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3348
3347
|
/* @__PURE__ */ l("b", { children: "数据结果" }),
|
|
3349
3348
|
/* @__PURE__ */ l(T, { title: "请求数据", children: /* @__PURE__ */ l(
|
|
3350
|
-
|
|
3349
|
+
Z,
|
|
3351
3350
|
{
|
|
3352
3351
|
className: "icon_clickable",
|
|
3353
3352
|
onClick: () => {
|
|
@@ -3357,7 +3356,7 @@ function wo(e) {
|
|
|
3357
3356
|
) })
|
|
3358
3357
|
] }),
|
|
3359
3358
|
/* @__PURE__ */ l(
|
|
3360
|
-
|
|
3359
|
+
X,
|
|
3361
3360
|
{
|
|
3362
3361
|
readOnly: !0,
|
|
3363
3362
|
minimap: !1,
|
|
@@ -3368,10 +3367,10 @@ function wo(e) {
|
|
|
3368
3367
|
)
|
|
3369
3368
|
] });
|
|
3370
3369
|
}
|
|
3371
|
-
const
|
|
3372
|
-
staticDataSource:
|
|
3370
|
+
const No = "_staticDataSource_1p3pl_59", wo = {
|
|
3371
|
+
staticDataSource: No
|
|
3373
3372
|
};
|
|
3374
|
-
function
|
|
3373
|
+
function Eo(e) {
|
|
3375
3374
|
const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
|
|
3376
3375
|
function a() {
|
|
3377
3376
|
if (!i)
|
|
@@ -3389,10 +3388,10 @@ function Lo(e) {
|
|
|
3389
3388
|
c(
|
|
3390
3389
|
n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
|
|
3391
3390
|
);
|
|
3392
|
-
}, [n]), /* @__PURE__ */ g("div", { className:
|
|
3393
|
-
/* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l(T, { title: "保存", children: /* @__PURE__ */ l(
|
|
3391
|
+
}, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
|
|
3392
|
+
/* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l(T, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: a }) }) }),
|
|
3394
3393
|
/* @__PURE__ */ l(
|
|
3395
|
-
|
|
3394
|
+
X,
|
|
3396
3395
|
{
|
|
3397
3396
|
minimap: !1,
|
|
3398
3397
|
language: "json",
|
|
@@ -3406,20 +3405,20 @@ function Lo(e) {
|
|
|
3406
3405
|
)
|
|
3407
3406
|
] });
|
|
3408
3407
|
}
|
|
3409
|
-
const
|
|
3408
|
+
const Ao = [
|
|
3410
3409
|
{ label: "静态数据", value: "static" },
|
|
3411
3410
|
{ label: "请求接口", value: "request" }
|
|
3412
3411
|
];
|
|
3413
|
-
function
|
|
3412
|
+
function Lo() {
|
|
3414
3413
|
const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
|
|
3415
|
-
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className:
|
|
3414
|
+
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
|
|
3416
3415
|
/* @__PURE__ */ l(z, { label: "数据源", children: /* @__PURE__ */ l(
|
|
3417
3416
|
Ce,
|
|
3418
3417
|
{
|
|
3419
3418
|
value: n,
|
|
3420
3419
|
allowClear: !1,
|
|
3421
3420
|
style: { width: "100%" },
|
|
3422
|
-
requestFn: async () =>
|
|
3421
|
+
requestFn: async () => Ao,
|
|
3423
3422
|
onChange: (i) => {
|
|
3424
3423
|
e.componentNode.update(t == null ? void 0 : t.id, {
|
|
3425
3424
|
dataSourceType: i
|
|
@@ -3427,14 +3426,14 @@ function Oo() {
|
|
|
3427
3426
|
}
|
|
3428
3427
|
}
|
|
3429
3428
|
) }),
|
|
3430
|
-
n === "static" && /* @__PURE__ */ l(
|
|
3431
|
-
n === "request" && /* @__PURE__ */ l(
|
|
3429
|
+
n === "static" && /* @__PURE__ */ l(Eo, { style: { flex: 1, overflow: "hidden" } }),
|
|
3430
|
+
n === "request" && /* @__PURE__ */ l(So, { style: { flex: 1, overflow: "hidden" } })
|
|
3432
3431
|
] }) });
|
|
3433
3432
|
}
|
|
3434
|
-
const
|
|
3435
|
-
interactive:
|
|
3433
|
+
const Do = "_interactive_1j74j_59", Oo = {
|
|
3434
|
+
interactive: Do
|
|
3436
3435
|
};
|
|
3437
|
-
function
|
|
3436
|
+
function Po(e) {
|
|
3438
3437
|
const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), a = A(
|
|
3439
3438
|
() => n.component.get(t == null ? void 0 : t.cId),
|
|
3440
3439
|
[t == null ? void 0 : t.cId]
|
|
@@ -3445,7 +3444,7 @@ function Bo(e) {
|
|
|
3445
3444
|
((o = (d = a == null ? void 0 : a.triggers) == null ? void 0 : d.map) == null ? void 0 : o.call(d, (s) => {
|
|
3446
3445
|
var r;
|
|
3447
3446
|
return {
|
|
3448
|
-
disabled: !!((r = t == null ? void 0 : t.events) != null && r.find((
|
|
3447
|
+
disabled: !!((r = t == null ? void 0 : t.events) != null && r.find((h) => h.triggerId === s.value)),
|
|
3449
3448
|
key: s.value,
|
|
3450
3449
|
style: { fontSize: 12 },
|
|
3451
3450
|
label: s.label
|
|
@@ -3467,25 +3466,25 @@ function Bo(e) {
|
|
|
3467
3466
|
}
|
|
3468
3467
|
);
|
|
3469
3468
|
}
|
|
3470
|
-
const
|
|
3471
|
-
eventList:
|
|
3472
|
-
eventList_head:
|
|
3473
|
-
eventList_body:
|
|
3474
|
-
eventList_item:
|
|
3475
|
-
eventList_item_body:
|
|
3476
|
-
eventList_item_opt:
|
|
3477
|
-
eventList_item_opt_clickable:
|
|
3478
|
-
},
|
|
3479
|
-
editEventDialog:
|
|
3480
|
-
editEventDialog_menu:
|
|
3481
|
-
editEventDialog_body:
|
|
3482
|
-
},
|
|
3483
|
-
eventOptions_main:
|
|
3469
|
+
const Mo = "_eventList_19gi2_59", Bo = "_eventList_head_19gi2_62", jo = "_eventList_body_19gi2_68", zo = "_eventList_item_19gi2_74", To = "_eventList_item_body_19gi2_84", $o = "_eventList_item_opt_19gi2_90", Ro = "_eventList_item_opt_clickable_19gi2_95", G = {
|
|
3470
|
+
eventList: Mo,
|
|
3471
|
+
eventList_head: Bo,
|
|
3472
|
+
eventList_body: jo,
|
|
3473
|
+
eventList_item: zo,
|
|
3474
|
+
eventList_item_body: To,
|
|
3475
|
+
eventList_item_opt: $o,
|
|
3476
|
+
eventList_item_opt_clickable: Ro
|
|
3477
|
+
}, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
|
|
3478
|
+
editEventDialog: Fo,
|
|
3479
|
+
editEventDialog_menu: Ho,
|
|
3480
|
+
editEventDialog_body: Ko
|
|
3481
|
+
}, Uo = "_eventOptions_main_16n1f_59", Me = {
|
|
3482
|
+
eventOptions_main: Uo
|
|
3484
3483
|
};
|
|
3485
|
-
function
|
|
3484
|
+
function qo(e) {
|
|
3486
3485
|
var t;
|
|
3487
3486
|
return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3488
|
-
|
|
3487
|
+
qt,
|
|
3489
3488
|
{
|
|
3490
3489
|
size: "small",
|
|
3491
3490
|
checked: (t = e == null ? void 0 : e.value) == null ? void 0 : t.visible,
|
|
@@ -3499,7 +3498,7 @@ function Wo(e) {
|
|
|
3499
3498
|
}
|
|
3500
3499
|
) }) });
|
|
3501
3500
|
}
|
|
3502
|
-
const
|
|
3501
|
+
const Jo = ue((e) => {
|
|
3503
3502
|
const [t, n] = zt.useState();
|
|
3504
3503
|
return w(() => {
|
|
3505
3504
|
var i;
|
|
@@ -3541,7 +3540,7 @@ const Vo = ue((e) => {
|
|
|
3541
3540
|
children: [
|
|
3542
3541
|
/* @__PURE__ */ l("h3", { children: "转换函数" }),
|
|
3543
3542
|
/* @__PURE__ */ l(
|
|
3544
|
-
|
|
3543
|
+
X,
|
|
3545
3544
|
{
|
|
3546
3545
|
language: "javascript",
|
|
3547
3546
|
style: { height: 450 },
|
|
@@ -3554,7 +3553,7 @@ const Vo = ue((e) => {
|
|
|
3554
3553
|
);
|
|
3555
3554
|
});
|
|
3556
3555
|
function mn(e) {
|
|
3557
|
-
const t =
|
|
3556
|
+
const t = Jo({
|
|
3558
3557
|
onOk(i) {
|
|
3559
3558
|
var c;
|
|
3560
3559
|
(c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
|
|
@@ -3574,35 +3573,35 @@ function mn(e) {
|
|
|
3574
3573
|
}
|
|
3575
3574
|
) });
|
|
3576
3575
|
}
|
|
3577
|
-
const
|
|
3576
|
+
const Wo = /* @__PURE__ */ g("div", { children: [
|
|
3578
3577
|
/* @__PURE__ */ l("div", { children: "格式参考:" }),
|
|
3579
3578
|
/* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
|
|
3580
3579
|
] });
|
|
3581
|
-
function
|
|
3580
|
+
function Vo(e) {
|
|
3582
3581
|
var o, s, r;
|
|
3583
3582
|
const t = ((o = e == null ? void 0 : e.value) == null ? void 0 : o.type) || "default", [n, i] = S(), [c, a] = S("");
|
|
3584
3583
|
function d() {
|
|
3585
|
-
var
|
|
3584
|
+
var h;
|
|
3586
3585
|
try {
|
|
3587
|
-
const
|
|
3588
|
-
if (typeof
|
|
3586
|
+
const u = JSON.parse(c);
|
|
3587
|
+
if (typeof u != "object" || u === null) {
|
|
3589
3588
|
E.warn("只能保存对象格式数据");
|
|
3590
3589
|
return;
|
|
3591
3590
|
}
|
|
3592
|
-
(
|
|
3591
|
+
(h = e == null ? void 0 : e.onChange) == null || h.call(e, {
|
|
3593
3592
|
...e == null ? void 0 : e.value,
|
|
3594
|
-
params:
|
|
3593
|
+
params: u
|
|
3595
3594
|
}), E.success("更新成功");
|
|
3596
3595
|
} catch {
|
|
3597
3596
|
E.warn("JSON格式不正确");
|
|
3598
3597
|
}
|
|
3599
3598
|
}
|
|
3600
3599
|
return w(() => {
|
|
3601
|
-
var
|
|
3602
|
-
a(JSON.stringify(((
|
|
3600
|
+
var h;
|
|
3601
|
+
a(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
|
|
3603
3602
|
}, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), w(() => {
|
|
3604
|
-
var
|
|
3605
|
-
i((
|
|
3603
|
+
var h;
|
|
3604
|
+
i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
|
|
3606
3605
|
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Me.eventOptions_main, children: [
|
|
3607
3606
|
/* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3608
3607
|
/* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
|
|
@@ -3617,12 +3616,12 @@ function Xo(e) {
|
|
|
3617
3616
|
{ label: "默认", value: "default" },
|
|
3618
3617
|
{ label: "json对象", value: "json" }
|
|
3619
3618
|
],
|
|
3620
|
-
onChange: (
|
|
3621
|
-
var
|
|
3622
|
-
(
|
|
3619
|
+
onChange: (h) => {
|
|
3620
|
+
var u;
|
|
3621
|
+
(u = e == null ? void 0 : e.onChange) == null || u.call(e, {
|
|
3623
3622
|
...e == null ? void 0 : e.value,
|
|
3624
|
-
params:
|
|
3625
|
-
type:
|
|
3623
|
+
params: h === "default" ? void 0 : {},
|
|
3624
|
+
type: h
|
|
3626
3625
|
});
|
|
3627
3626
|
}
|
|
3628
3627
|
}
|
|
@@ -3632,11 +3631,11 @@ function Xo(e) {
|
|
|
3632
3631
|
{
|
|
3633
3632
|
tooltip: "解析函数",
|
|
3634
3633
|
value: n,
|
|
3635
|
-
onChange: (
|
|
3636
|
-
var
|
|
3637
|
-
i(
|
|
3634
|
+
onChange: (h) => {
|
|
3635
|
+
var u;
|
|
3636
|
+
i(h), (u = e == null ? void 0 : e.onChange) == null || u.call(e, {
|
|
3638
3637
|
...e == null ? void 0 : e.value,
|
|
3639
|
-
parserFunc:
|
|
3638
|
+
parserFunc: h
|
|
3640
3639
|
});
|
|
3641
3640
|
}
|
|
3642
3641
|
}
|
|
@@ -3644,22 +3643,22 @@ function Xo(e) {
|
|
|
3644
3643
|
] })
|
|
3645
3644
|
] }),
|
|
3646
3645
|
t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3647
|
-
/* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip:
|
|
3646
|
+
/* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
|
|
3648
3647
|
/* @__PURE__ */ l(
|
|
3649
|
-
|
|
3648
|
+
X,
|
|
3650
3649
|
{
|
|
3651
3650
|
value: c,
|
|
3652
3651
|
language: "json",
|
|
3653
3652
|
style: { height: 380 },
|
|
3654
|
-
onChange: (
|
|
3655
|
-
a(
|
|
3653
|
+
onChange: (h) => {
|
|
3654
|
+
a(h);
|
|
3656
3655
|
}
|
|
3657
3656
|
}
|
|
3658
3657
|
)
|
|
3659
3658
|
] })
|
|
3660
3659
|
] });
|
|
3661
3660
|
}
|
|
3662
|
-
function
|
|
3661
|
+
function Go(e) {
|
|
3663
3662
|
var a;
|
|
3664
3663
|
const [t, n] = S();
|
|
3665
3664
|
function i(d) {
|
|
@@ -3689,7 +3688,7 @@ function Yo(e) {
|
|
|
3689
3688
|
}
|
|
3690
3689
|
) }),
|
|
3691
3690
|
/* @__PURE__ */ l(
|
|
3692
|
-
|
|
3691
|
+
X,
|
|
3693
3692
|
{
|
|
3694
3693
|
value: t ?? Bi,
|
|
3695
3694
|
language: "javascript",
|
|
@@ -3701,15 +3700,15 @@ function Yo(e) {
|
|
|
3701
3700
|
)
|
|
3702
3701
|
] }) });
|
|
3703
3702
|
}
|
|
3704
|
-
const
|
|
3703
|
+
const Xo = {
|
|
3705
3704
|
default: void 0,
|
|
3706
3705
|
number: 0,
|
|
3707
3706
|
text: "",
|
|
3708
3707
|
json: {}
|
|
3709
3708
|
};
|
|
3710
|
-
function
|
|
3711
|
-
var r,
|
|
3712
|
-
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((
|
|
3709
|
+
function Yo(e) {
|
|
3710
|
+
var r, h, u, _, m, y, C, b, I, f, v;
|
|
3711
|
+
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, a] = S(), [d, o] = S();
|
|
3713
3712
|
function s() {
|
|
3714
3713
|
var x;
|
|
3715
3714
|
if (!d)
|
|
@@ -3727,7 +3726,7 @@ function Qo(e) {
|
|
|
3727
3726
|
return w(() => {
|
|
3728
3727
|
var x;
|
|
3729
3728
|
a((x = e == null ? void 0 : e.value) == null ? void 0 : x.parserFunc);
|
|
3730
|
-
}, [(
|
|
3729
|
+
}, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), w(() => {
|
|
3731
3730
|
var x, L;
|
|
3732
3731
|
((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) === "json" && o(JSON.stringify(((L = e == null ? void 0 : e.value) == null ? void 0 : L.value) || {}, null, " "));
|
|
3733
3732
|
}, [(_ = 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: Me.eventOptions_main, children: [
|
|
@@ -3748,7 +3747,7 @@ function Qo(e) {
|
|
|
3748
3747
|
],
|
|
3749
3748
|
onChange: (x) => t({
|
|
3750
3749
|
...e == null ? void 0 : e.value,
|
|
3751
|
-
value:
|
|
3750
|
+
value: Xo[x],
|
|
3752
3751
|
type: x
|
|
3753
3752
|
})
|
|
3754
3753
|
}
|
|
@@ -3770,7 +3769,7 @@ function Qo(e) {
|
|
|
3770
3769
|
] })
|
|
3771
3770
|
] }),
|
|
3772
3771
|
((y = e == null ? void 0 : e.value) == null ? void 0 : y.type) && ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3773
|
-
/* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(
|
|
3772
|
+
/* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3774
3773
|
/* @__PURE__ */ g(W, { children: [
|
|
3775
3774
|
((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
|
|
3776
3775
|
_t,
|
|
@@ -3801,7 +3800,7 @@ function Qo(e) {
|
|
|
3801
3800
|
}
|
|
3802
3801
|
),
|
|
3803
3802
|
i && /* @__PURE__ */ l(
|
|
3804
|
-
|
|
3803
|
+
X,
|
|
3805
3804
|
{
|
|
3806
3805
|
language: "javascript",
|
|
3807
3806
|
style: { height: 375 },
|
|
@@ -3816,7 +3815,7 @@ function Qo(e) {
|
|
|
3816
3815
|
] });
|
|
3817
3816
|
}
|
|
3818
3817
|
const Ne = 200;
|
|
3819
|
-
function
|
|
3818
|
+
function Zo(e) {
|
|
3820
3819
|
var i, c, a, d, o;
|
|
3821
3820
|
const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
|
|
3822
3821
|
function n(s) {
|
|
@@ -3826,22 +3825,22 @@ function po(e) {
|
|
|
3826
3825
|
option: s
|
|
3827
3826
|
}));
|
|
3828
3827
|
}
|
|
3829
|
-
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === Te.visible ? /* @__PURE__ */ l(
|
|
3828
|
+
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === Te.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === Te.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === Te.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
|
|
3830
3829
|
}
|
|
3831
|
-
const
|
|
3832
|
-
targetList:
|
|
3833
|
-
targetList_body:
|
|
3834
|
-
targetList_item:
|
|
3835
|
-
targetList_item_clickable:
|
|
3836
|
-
targetList_item_selected:
|
|
3837
|
-
},
|
|
3838
|
-
addComponentNodeButton:
|
|
3839
|
-
addComponentNodeButton_body:
|
|
3840
|
-
addComponentNodeButton_item:
|
|
3841
|
-
addComponentNodeButton_item_text:
|
|
3842
|
-
dropdown_overlay:
|
|
3830
|
+
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 = {
|
|
3831
|
+
targetList: Qo,
|
|
3832
|
+
targetList_body: po,
|
|
3833
|
+
targetList_item: ed,
|
|
3834
|
+
targetList_item_clickable: td,
|
|
3835
|
+
targetList_item_selected: nd
|
|
3836
|
+
}, id = "_addComponentNodeButton_xm0lb_59", ld = "_addComponentNodeButton_body_xm0lb_68", cd = "_addComponentNodeButton_item_xm0lb_73", ad = "_addComponentNodeButton_item_text_xm0lb_84", od = "_dropdown_overlay_xm0lb_93", fe = {
|
|
3837
|
+
addComponentNodeButton: id,
|
|
3838
|
+
addComponentNodeButton_body: ld,
|
|
3839
|
+
addComponentNodeButton_item: cd,
|
|
3840
|
+
addComponentNodeButton_item_text: ad,
|
|
3841
|
+
dropdown_overlay: od
|
|
3843
3842
|
};
|
|
3844
|
-
function
|
|
3843
|
+
function dd(e) {
|
|
3845
3844
|
const { componentNode: t } = e;
|
|
3846
3845
|
return /* @__PURE__ */ g(D, { direction: "vertical", style: { fontSize: 12 }, className: "theme-color", size: 6, children: [
|
|
3847
3846
|
/* @__PURE__ */ g("div", { children: [
|
|
@@ -3862,11 +3861,11 @@ function sd(e) {
|
|
|
3862
3861
|
/* @__PURE__ */ g("div", { children: [
|
|
3863
3862
|
/* @__PURE__ */ l("b", { children: "show" }),
|
|
3864
3863
|
":",
|
|
3865
|
-
/* @__PURE__ */ l(
|
|
3864
|
+
/* @__PURE__ */ l(qt, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
|
|
3866
3865
|
] })
|
|
3867
3866
|
] });
|
|
3868
3867
|
}
|
|
3869
|
-
function
|
|
3868
|
+
function rd(e) {
|
|
3870
3869
|
var _;
|
|
3871
3870
|
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B();
|
|
3872
3871
|
w(() => {
|
|
@@ -3884,14 +3883,14 @@ function ud(e) {
|
|
|
3884
3883
|
return (v = (f = (I = (b = C == null ? void 0 : C.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : v.call(f, m);
|
|
3885
3884
|
});
|
|
3886
3885
|
}, [d, c]);
|
|
3887
|
-
function
|
|
3886
|
+
function h() {
|
|
3888
3887
|
i(!1), s.current = setTimeout(() => {
|
|
3889
3888
|
a([]), s.current = null;
|
|
3890
3889
|
}, 300);
|
|
3891
3890
|
}
|
|
3892
|
-
function
|
|
3891
|
+
function u(m) {
|
|
3893
3892
|
var y;
|
|
3894
|
-
(y = e == null ? void 0 : e.onSelect) == null || y.call(e, m),
|
|
3893
|
+
(y = e == null ? void 0 : e.onSelect) == null || y.call(e, m), h();
|
|
3895
3894
|
}
|
|
3896
3895
|
return /* @__PURE__ */ l(
|
|
3897
3896
|
be,
|
|
@@ -3902,22 +3901,22 @@ function ud(e) {
|
|
|
3902
3901
|
{
|
|
3903
3902
|
key: "body",
|
|
3904
3903
|
label: /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton, children: [
|
|
3905
|
-
/* @__PURE__ */ l(
|
|
3904
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: o }),
|
|
3906
3905
|
/* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
|
|
3907
|
-
!(r != null && r.length) && /* @__PURE__ */ l(
|
|
3906
|
+
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
3908
3907
|
(_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
|
|
3909
3908
|
const y = t.component.get(m == null ? void 0 : m.cId);
|
|
3910
3909
|
return /* @__PURE__ */ l(
|
|
3911
3910
|
st,
|
|
3912
3911
|
{
|
|
3913
|
-
content: /* @__PURE__ */ l(
|
|
3912
|
+
content: /* @__PURE__ */ l(dd, { componentNode: m }),
|
|
3914
3913
|
placement: "right",
|
|
3915
3914
|
children: /* @__PURE__ */ g(
|
|
3916
3915
|
"div",
|
|
3917
3916
|
{
|
|
3918
3917
|
className: fe.addComponentNodeButton_item,
|
|
3919
3918
|
title: m == null ? void 0 : m.name,
|
|
3920
|
-
onClick: () =>
|
|
3919
|
+
onClick: () => u(m),
|
|
3921
3920
|
children: [
|
|
3922
3921
|
/* @__PURE__ */ l(
|
|
3923
3922
|
xe,
|
|
@@ -3942,7 +3941,7 @@ function ud(e) {
|
|
|
3942
3941
|
trigger: ["click"],
|
|
3943
3942
|
open: n,
|
|
3944
3943
|
onOpenChange: (m) => {
|
|
3945
|
-
m ||
|
|
3944
|
+
m || h();
|
|
3946
3945
|
},
|
|
3947
3946
|
children: /* @__PURE__ */ l("div", { style: { width: "100%", ...e == null ? void 0 : e.style }, children: /* @__PURE__ */ l(
|
|
3948
3947
|
K,
|
|
@@ -3957,15 +3956,15 @@ function ud(e) {
|
|
|
3957
3956
|
}
|
|
3958
3957
|
);
|
|
3959
3958
|
}
|
|
3960
|
-
function
|
|
3959
|
+
function sd(e) {
|
|
3961
3960
|
var d;
|
|
3962
3961
|
const t = ht(), { engine: n } = N(), i = A(() => {
|
|
3963
3962
|
var o, s;
|
|
3964
3963
|
return (s = (o = e == null ? void 0 : e.targets) == null ? void 0 : o.map) == null ? void 0 : s.call(o, (r) => {
|
|
3965
|
-
var
|
|
3964
|
+
var h;
|
|
3966
3965
|
return {
|
|
3967
3966
|
value: r.id,
|
|
3968
|
-
label: (
|
|
3967
|
+
label: (h = n.componentNode.get(r == null ? void 0 : r.id)) == null ? void 0 : h.name
|
|
3969
3968
|
};
|
|
3970
3969
|
});
|
|
3971
3970
|
}, [e == null ? void 0 : e.targets]);
|
|
@@ -3983,31 +3982,31 @@ function hd(e) {
|
|
|
3983
3982
|
function a(o) {
|
|
3984
3983
|
var _, m, y;
|
|
3985
3984
|
let s;
|
|
3986
|
-
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === o ? (s = C, !1) : !0)) || [],
|
|
3987
|
-
function
|
|
3985
|
+
const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === o ? (s = C, !1) : !0)) || [], h = ((y = s == null ? void 0 : s.opts) == null ? void 0 : y.length) || 0;
|
|
3986
|
+
function u() {
|
|
3988
3987
|
var C, b, I;
|
|
3989
3988
|
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (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));
|
|
3990
3989
|
}
|
|
3991
|
-
if (
|
|
3990
|
+
if (h) {
|
|
3992
3991
|
t({
|
|
3993
3992
|
title: "提醒",
|
|
3994
|
-
content: `该组件已配置 ${
|
|
3993
|
+
content: `该组件已配置 ${h} 个事件操作,确定删除?`,
|
|
3995
3994
|
onOk(C) {
|
|
3996
|
-
|
|
3995
|
+
u(), C();
|
|
3997
3996
|
}
|
|
3998
3997
|
});
|
|
3999
3998
|
return;
|
|
4000
3999
|
}
|
|
4001
|
-
|
|
4000
|
+
u();
|
|
4002
4001
|
}
|
|
4003
4002
|
return /* @__PURE__ */ g("div", { className: $(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4004
4003
|
/* @__PURE__ */ l(
|
|
4005
|
-
|
|
4004
|
+
rd,
|
|
4006
4005
|
{
|
|
4007
4006
|
style: { margin: -1 },
|
|
4008
4007
|
beforeVisible: (o) => o.filter((s) => {
|
|
4009
|
-
var r,
|
|
4010
|
-
return !((
|
|
4008
|
+
var r, h;
|
|
4009
|
+
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)));
|
|
4011
4010
|
}),
|
|
4012
4011
|
onSelect: (o) => c(o),
|
|
4013
4012
|
children: "新增目标组件"
|
|
@@ -4042,23 +4041,23 @@ function hd(e) {
|
|
|
4042
4041
|
o == null ? void 0 : o.value
|
|
4043
4042
|
);
|
|
4044
4043
|
}) }),
|
|
4045
|
-
!(i != null && i.length) && /* @__PURE__ */ l(
|
|
4044
|
+
!(i != null && i.length) && /* @__PURE__ */ l(U, {})
|
|
4046
4045
|
] });
|
|
4047
4046
|
}
|
|
4048
|
-
const
|
|
4049
|
-
targetList:
|
|
4050
|
-
targetList_body:
|
|
4051
|
-
targetList_item:
|
|
4052
|
-
targetList_item_clickable:
|
|
4053
|
-
targetList_item_selected:
|
|
4054
|
-
},
|
|
4055
|
-
addExposesButton:
|
|
4056
|
-
addExposesButton_body:
|
|
4057
|
-
addExposesButton_item:
|
|
4058
|
-
addExposesButton_item_text:
|
|
4047
|
+
const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targetList_item_17cmb_74", _d = "_targetList_item_clickable_17cmb_82", md = "_targetList_item_selected_17cmb_89", ye = {
|
|
4048
|
+
targetList: ud,
|
|
4049
|
+
targetList_body: hd,
|
|
4050
|
+
targetList_item: gd,
|
|
4051
|
+
targetList_item_clickable: _d,
|
|
4052
|
+
targetList_item_selected: md
|
|
4053
|
+
}, fd = "_addExposesButton_1t3fz_59", yd = "_addExposesButton_body_1t3fz_68", vd = "_addExposesButton_item_1t3fz_73", bd = "_addExposesButton_item_text_1t3fz_84", Se = {
|
|
4054
|
+
addExposesButton: fd,
|
|
4055
|
+
addExposesButton_body: yd,
|
|
4056
|
+
addExposesButton_item: vd,
|
|
4057
|
+
addExposesButton_item_text: bd
|
|
4059
4058
|
};
|
|
4060
|
-
function
|
|
4061
|
-
var
|
|
4059
|
+
function Cd(e) {
|
|
4060
|
+
var u;
|
|
4062
4061
|
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B(), r = A(() => {
|
|
4063
4062
|
var m;
|
|
4064
4063
|
const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
|
|
@@ -4067,7 +4066,7 @@ function Id(e) {
|
|
|
4067
4066
|
return (f = (I = (b = (C = y == null ? void 0 : y.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : b.call(C)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
|
|
4068
4067
|
});
|
|
4069
4068
|
}, [d, c]);
|
|
4070
|
-
function
|
|
4069
|
+
function h() {
|
|
4071
4070
|
i(!1);
|
|
4072
4071
|
}
|
|
4073
4072
|
return w(() => {
|
|
@@ -4088,19 +4087,19 @@ function Id(e) {
|
|
|
4088
4087
|
vi,
|
|
4089
4088
|
{
|
|
4090
4089
|
visible: n,
|
|
4091
|
-
onClose:
|
|
4090
|
+
onClose: h,
|
|
4092
4091
|
overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
|
|
4093
|
-
/* @__PURE__ */ l(
|
|
4092
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: o }),
|
|
4094
4093
|
/* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
|
|
4095
|
-
!(r != null && r.length) && /* @__PURE__ */ l(
|
|
4096
|
-
(
|
|
4094
|
+
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
4095
|
+
(u = r == null ? void 0 : r.map) == null ? void 0 : u.call(r, (_) => /* @__PURE__ */ l(
|
|
4097
4096
|
"div",
|
|
4098
4097
|
{
|
|
4099
4098
|
className: Se.addExposesButton_item,
|
|
4100
4099
|
title: _ == null ? void 0 : _.label,
|
|
4101
4100
|
onClick: () => {
|
|
4102
4101
|
var m;
|
|
4103
|
-
(m = e == null ? void 0 : e.onSelect) == null || m.call(e, _),
|
|
4102
|
+
(m = e == null ? void 0 : e.onSelect) == null || m.call(e, _), h();
|
|
4104
4103
|
},
|
|
4105
4104
|
children: /* @__PURE__ */ l("div", { className: Se.addExposesButton_item_text, children: _ == null ? void 0 : _.label })
|
|
4106
4105
|
},
|
|
@@ -4112,7 +4111,7 @@ function Id(e) {
|
|
|
4112
4111
|
K,
|
|
4113
4112
|
{
|
|
4114
4113
|
block: !0,
|
|
4115
|
-
onClick: () =>
|
|
4114
|
+
onClick: () => h(),
|
|
4116
4115
|
style: { fontSize: 12, color: "rgba(0,0,0,0.5)" },
|
|
4117
4116
|
icon: /* @__PURE__ */ l(rt, {}),
|
|
4118
4117
|
children: (e == null ? void 0 : e.children) || "新增操作"
|
|
@@ -4121,14 +4120,14 @@ function Id(e) {
|
|
|
4121
4120
|
}
|
|
4122
4121
|
);
|
|
4123
4122
|
}
|
|
4124
|
-
function
|
|
4123
|
+
function xd(e) {
|
|
4125
4124
|
var d;
|
|
4126
4125
|
const { engine: t } = N(), n = A(() => {
|
|
4127
4126
|
var s, r;
|
|
4128
4127
|
const o = t.component.get(e == null ? void 0 : e.cId);
|
|
4129
4128
|
return {
|
|
4130
4129
|
...ri,
|
|
4131
|
-
...(r = (s = o == null ? void 0 : o.exposes) == null ? void 0 : s.reduce) == null ? void 0 : r.call(s, (
|
|
4130
|
+
...(r = (s = o == null ? void 0 : o.exposes) == null ? void 0 : s.reduce) == null ? void 0 : r.call(s, (h, u) => (h[u.value] = u.label, h), {})
|
|
4132
4131
|
};
|
|
4133
4132
|
}, [e == null ? void 0 : e.cId]), i = A(() => {
|
|
4134
4133
|
var o, s;
|
|
@@ -4150,13 +4149,13 @@ function kd(e) {
|
|
|
4150
4149
|
(r = e == null ? void 0 : e.onChangeOpts) == null || r.call(e, s);
|
|
4151
4150
|
}
|
|
4152
4151
|
function a(o) {
|
|
4153
|
-
var r,
|
|
4154
|
-
const s = ((
|
|
4155
|
-
(
|
|
4152
|
+
var r, h, u, _, m;
|
|
4153
|
+
const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (y) => y.operateId !== o)) || [];
|
|
4154
|
+
(u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s), o === (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));
|
|
4156
4155
|
}
|
|
4157
4156
|
return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4158
4157
|
/* @__PURE__ */ l(
|
|
4159
|
-
|
|
4158
|
+
Cd,
|
|
4160
4159
|
{
|
|
4161
4160
|
style: { margin: -1 },
|
|
4162
4161
|
cId: e == null ? void 0 : e.cId,
|
|
@@ -4165,7 +4164,7 @@ function kd(e) {
|
|
|
4165
4164
|
}
|
|
4166
4165
|
),
|
|
4167
4166
|
/* @__PURE__ */ g("div", { className: ye.targetList_body, children: [
|
|
4168
|
-
!(i != null && i.length) && /* @__PURE__ */ l(
|
|
4167
|
+
!(i != null && i.length) && /* @__PURE__ */ l(U, {}),
|
|
4169
4168
|
(d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
|
|
4170
4169
|
const s = (o == null ? void 0 : o.value) === (e == null ? void 0 : e.value);
|
|
4171
4170
|
return /* @__PURE__ */ g(
|
|
@@ -4198,19 +4197,19 @@ function kd(e) {
|
|
|
4198
4197
|
] })
|
|
4199
4198
|
] });
|
|
4200
4199
|
}
|
|
4201
|
-
const
|
|
4202
|
-
const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [a, d] = S(), [o, s] = S(), [r,
|
|
4200
|
+
const Id = ue((e) => {
|
|
4201
|
+
const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [a, d] = S(), [o, s] = S(), [r, h] = S(), u = A(() => {
|
|
4203
4202
|
var f;
|
|
4204
4203
|
return (f = t.componentNode.get(o == null ? void 0 : o.id)) == null ? void 0 : f.cId;
|
|
4205
4204
|
}, [o]);
|
|
4206
4205
|
function _(f) {
|
|
4207
4206
|
var x, L, j;
|
|
4208
4207
|
const v = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
|
|
4209
|
-
s(v),
|
|
4208
|
+
s(v), h((j = v == null ? void 0 : v.opts) == null ? void 0 : j[0]);
|
|
4210
4209
|
}
|
|
4211
4210
|
function m(f) {
|
|
4212
4211
|
var v, x;
|
|
4213
|
-
|
|
4212
|
+
h(
|
|
4214
4213
|
(x = (v = o == null ? void 0 : o.opts) == null ? void 0 : v.find) == null ? void 0 : x.call(v, (L) => (L == null ? void 0 : L.operateId) === f)
|
|
4215
4214
|
);
|
|
4216
4215
|
}
|
|
@@ -4222,13 +4221,13 @@ const Sd = ue((e) => {
|
|
|
4222
4221
|
}
|
|
4223
4222
|
function C(f) {
|
|
4224
4223
|
var v, x;
|
|
4225
|
-
(x = (v = a == null ? void 0 : a.targets) == null ? void 0 : v.find) == null || x.call(v, (L) => L.id !== (o == null ? void 0 : o.id) ? !1 : (L.opts = f, !0)), d({ ...a }), f.length === 1 &&
|
|
4224
|
+
(x = (v = a == null ? void 0 : a.targets) == null ? void 0 : v.find) == null || x.call(v, (L) => L.id !== (o == null ? void 0 : o.id) ? !1 : (L.opts = f, !0)), d({ ...a }), f.length === 1 && h(f == null ? void 0 : f[0]);
|
|
4226
4225
|
}
|
|
4227
4226
|
function b(f) {
|
|
4228
4227
|
var v, x;
|
|
4229
4228
|
(x = (v = a == null ? void 0 : a.targets) == null ? void 0 : v.find) == null || x.call(v, (L) => {
|
|
4230
4229
|
var j, R;
|
|
4231
|
-
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (j = L.opts) == null ? void 0 : j.find) == null || R.call(j, (
|
|
4230
|
+
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (j = L.opts) == null ? void 0 : j.find) == null || R.call(j, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
|
|
4232
4231
|
}), d({ ...a });
|
|
4233
4232
|
}
|
|
4234
4233
|
function I() {
|
|
@@ -4246,10 +4245,10 @@ const Sd = ue((e) => {
|
|
|
4246
4245
|
j = Yt(j || {}), d(j);
|
|
4247
4246
|
const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
|
|
4248
4247
|
s(R);
|
|
4249
|
-
const
|
|
4250
|
-
|
|
4248
|
+
const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
|
|
4249
|
+
h(q);
|
|
4251
4250
|
} else
|
|
4252
|
-
d(void 0), s(void 0),
|
|
4251
|
+
d(void 0), s(void 0), h(void 0);
|
|
4253
4252
|
}, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
|
|
4254
4253
|
re,
|
|
4255
4254
|
{
|
|
@@ -4267,7 +4266,7 @@ const Sd = ue((e) => {
|
|
|
4267
4266
|
children: [
|
|
4268
4267
|
/* @__PURE__ */ g("div", { className: Ye.editEventDialog_menu, children: [
|
|
4269
4268
|
/* @__PURE__ */ l(
|
|
4270
|
-
|
|
4269
|
+
sd,
|
|
4271
4270
|
{
|
|
4272
4271
|
className: "border-right",
|
|
4273
4272
|
value: o == null ? void 0 : o.id,
|
|
@@ -4281,13 +4280,13 @@ const Sd = ue((e) => {
|
|
|
4281
4280
|
}
|
|
4282
4281
|
),
|
|
4283
4282
|
/* @__PURE__ */ l(
|
|
4284
|
-
|
|
4283
|
+
xd,
|
|
4285
4284
|
{
|
|
4286
4285
|
value: r == null ? void 0 : r.operateId,
|
|
4287
4286
|
onChange: (f) => {
|
|
4288
4287
|
m(f);
|
|
4289
4288
|
},
|
|
4290
|
-
cId:
|
|
4289
|
+
cId: u,
|
|
4291
4290
|
opts: o == null ? void 0 : o.opts,
|
|
4292
4291
|
onChangeOpts: (f) => {
|
|
4293
4292
|
C(f);
|
|
@@ -4296,7 +4295,7 @@ const Sd = ue((e) => {
|
|
|
4296
4295
|
)
|
|
4297
4296
|
] }),
|
|
4298
4297
|
/* @__PURE__ */ l("div", { className: Ye.editEventDialog_body, children: /* @__PURE__ */ l(
|
|
4299
|
-
|
|
4298
|
+
Zo,
|
|
4300
4299
|
{
|
|
4301
4300
|
value: r,
|
|
4302
4301
|
onChange: (f) => {
|
|
@@ -4308,20 +4307,20 @@ const Sd = ue((e) => {
|
|
|
4308
4307
|
}
|
|
4309
4308
|
);
|
|
4310
4309
|
});
|
|
4311
|
-
function
|
|
4312
|
-
var
|
|
4313
|
-
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a =
|
|
4314
|
-
onOk(
|
|
4310
|
+
function kd(e) {
|
|
4311
|
+
var h;
|
|
4312
|
+
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a = Id({
|
|
4313
|
+
onOk(u) {
|
|
4315
4314
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4316
4315
|
var m, y;
|
|
4317
|
-
return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (C) => C.triggerId !== (
|
|
4316
|
+
return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (C) => C.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(C, u), !0)), {
|
|
4318
4317
|
events: _ == null ? void 0 : _.events
|
|
4319
4318
|
};
|
|
4320
4319
|
});
|
|
4321
4320
|
}
|
|
4322
4321
|
}), d = A(() => {
|
|
4323
|
-
var
|
|
4324
|
-
return ((
|
|
4322
|
+
var u;
|
|
4323
|
+
return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
|
|
4325
4324
|
var y, C;
|
|
4326
4325
|
const m = (C = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : C.call(y, (b) => (b == null ? void 0 : b.value) === _.triggerId);
|
|
4327
4326
|
return {
|
|
@@ -4330,73 +4329,73 @@ function Nd(e) {
|
|
|
4330
4329
|
};
|
|
4331
4330
|
})) || [];
|
|
4332
4331
|
}, [n, i]);
|
|
4333
|
-
function o(
|
|
4334
|
-
if (!(
|
|
4332
|
+
function o(u) {
|
|
4333
|
+
if (!(u != null && u.value)) {
|
|
4335
4334
|
E.warn("triggerId不存在");
|
|
4336
4335
|
return;
|
|
4337
4336
|
}
|
|
4338
4337
|
a.open({
|
|
4339
4338
|
componentNode: n,
|
|
4340
|
-
triggerId:
|
|
4341
|
-
triggerName:
|
|
4339
|
+
triggerId: u == null ? void 0 : u.value,
|
|
4340
|
+
triggerName: u == null ? void 0 : u.label
|
|
4342
4341
|
});
|
|
4343
4342
|
}
|
|
4344
|
-
function s(
|
|
4343
|
+
function s(u) {
|
|
4345
4344
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4346
4345
|
var m, y;
|
|
4347
4346
|
return {
|
|
4348
4347
|
events: [
|
|
4349
|
-
...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (C) => C.triggerId !==
|
|
4348
|
+
...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (C) => C.triggerId !== u)) || []
|
|
4350
4349
|
]
|
|
4351
4350
|
};
|
|
4352
4351
|
});
|
|
4353
4352
|
}
|
|
4354
|
-
function r(
|
|
4353
|
+
function r(u) {
|
|
4355
4354
|
var m, y, C, b;
|
|
4356
|
-
if (!
|
|
4355
|
+
if (!u) {
|
|
4357
4356
|
E.warn("triggerId不存在");
|
|
4358
4357
|
return;
|
|
4359
4358
|
}
|
|
4360
|
-
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) ===
|
|
4359
|
+
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);
|
|
4361
4360
|
(C = _ == null ? void 0 : _.targets) != null && C.length ? c({
|
|
4362
4361
|
title: "提醒",
|
|
4363
4362
|
content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
|
|
4364
4363
|
onOk(I) {
|
|
4365
|
-
s(
|
|
4364
|
+
s(u), I();
|
|
4366
4365
|
}
|
|
4367
|
-
}) : s(
|
|
4366
|
+
}) : s(u);
|
|
4368
4367
|
}
|
|
4369
|
-
return /* @__PURE__ */ g("div", { className:
|
|
4370
|
-
/* @__PURE__ */ l("div", { className:
|
|
4371
|
-
/* @__PURE__ */ g("div", { className:
|
|
4372
|
-
!(d != null && d.length) && /* @__PURE__ */ l(
|
|
4373
|
-
(
|
|
4374
|
-
/* @__PURE__ */ l("div", { className:
|
|
4375
|
-
/* @__PURE__ */ g("div", { className:
|
|
4368
|
+
return /* @__PURE__ */ g("div", { className: G.eventList, children: [
|
|
4369
|
+
/* @__PURE__ */ l("div", { className: G.eventList_head, children: "绑定事件:" }),
|
|
4370
|
+
/* @__PURE__ */ g("div", { className: G.eventList_body, children: [
|
|
4371
|
+
!(d != null && d.length) && /* @__PURE__ */ l(U, {}),
|
|
4372
|
+
(h = d == null ? void 0 : d.map) == null ? void 0 : h.call(d, (u) => /* @__PURE__ */ g("div", { className: G.eventList_item, children: [
|
|
4373
|
+
/* @__PURE__ */ l("div", { className: G.eventList_item_body, children: u.label }),
|
|
4374
|
+
/* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
|
|
4376
4375
|
/* @__PURE__ */ l(
|
|
4377
4376
|
Ft,
|
|
4378
4377
|
{
|
|
4379
|
-
className:
|
|
4380
|
-
onClick: () => o(
|
|
4378
|
+
className: G.eventList_item_opt_clickable,
|
|
4379
|
+
onClick: () => o(u)
|
|
4381
4380
|
}
|
|
4382
4381
|
),
|
|
4383
4382
|
/* @__PURE__ */ l(
|
|
4384
4383
|
de,
|
|
4385
4384
|
{
|
|
4386
|
-
className:
|
|
4387
|
-
onClick: () => r(
|
|
4385
|
+
className: G.eventList_item_opt_clickable,
|
|
4386
|
+
onClick: () => r(u == null ? void 0 : u.value)
|
|
4388
4387
|
}
|
|
4389
4388
|
)
|
|
4390
4389
|
] })
|
|
4391
|
-
] },
|
|
4390
|
+
] }, u.value))
|
|
4392
4391
|
] })
|
|
4393
4392
|
] });
|
|
4394
4393
|
}
|
|
4395
|
-
function
|
|
4394
|
+
function Sd() {
|
|
4396
4395
|
const { engine: e } = N(), { componentNode: t } = he();
|
|
4397
|
-
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className:
|
|
4396
|
+
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: Oo.interactive, children: [
|
|
4398
4397
|
/* @__PURE__ */ l(
|
|
4399
|
-
|
|
4398
|
+
Po,
|
|
4400
4399
|
{
|
|
4401
4400
|
componentNode: t,
|
|
4402
4401
|
onSelect: (n) => {
|
|
@@ -4412,15 +4411,15 @@ function wd() {
|
|
|
4412
4411
|
}
|
|
4413
4412
|
}
|
|
4414
4413
|
),
|
|
4415
|
-
/* @__PURE__ */ l(
|
|
4414
|
+
/* @__PURE__ */ l(kd, { componentNode: t })
|
|
4416
4415
|
] }) });
|
|
4417
4416
|
}
|
|
4418
|
-
const
|
|
4419
|
-
json:
|
|
4420
|
-
json_head:
|
|
4421
|
-
json_body:
|
|
4417
|
+
const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_76", Ze = {
|
|
4418
|
+
json: Nd,
|
|
4419
|
+
json_head: wd,
|
|
4420
|
+
json_body: Ed
|
|
4422
4421
|
};
|
|
4423
|
-
function
|
|
4422
|
+
function Ad() {
|
|
4424
4423
|
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm();
|
|
4425
4424
|
function i() {
|
|
4426
4425
|
n.setFieldsValue({
|
|
@@ -4446,12 +4445,12 @@ function Dd() {
|
|
|
4446
4445
|
/* @__PURE__ */ g("div", { className: Ze.json_head, children: [
|
|
4447
4446
|
/* @__PURE__ */ g("span", { children: [
|
|
4448
4447
|
/* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
|
|
4449
|
-
/* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(
|
|
4448
|
+
/* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
|
|
4450
4449
|
] }),
|
|
4451
|
-
/* @__PURE__ */ l(T, { title: "保存", placement: "top", children: /* @__PURE__ */ l(
|
|
4450
|
+
/* @__PURE__ */ l(T, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
|
|
4452
4451
|
] }),
|
|
4453
4452
|
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
|
|
4454
|
-
|
|
4453
|
+
X,
|
|
4455
4454
|
{
|
|
4456
4455
|
language: "json",
|
|
4457
4456
|
minimap: !1,
|
|
@@ -4467,8 +4466,8 @@ function Dd() {
|
|
|
4467
4466
|
) }) })
|
|
4468
4467
|
] });
|
|
4469
4468
|
}
|
|
4470
|
-
const
|
|
4471
|
-
singleAttributes:
|
|
4469
|
+
const Ld = "_singleAttributes_109pm_59", Dd = {
|
|
4470
|
+
singleAttributes: Ld
|
|
4472
4471
|
}, fn = In({}), he = () => kn(fn);
|
|
4473
4472
|
function yn(e) {
|
|
4474
4473
|
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = nn(c);
|
|
@@ -4483,36 +4482,36 @@ function yn(e) {
|
|
|
4483
4482
|
}), []), A(() => a ? /* @__PURE__ */ l(fn.Provider, { value: { instance: c, componentNode: a }, children: /* @__PURE__ */ l(
|
|
4484
4483
|
ei,
|
|
4485
4484
|
{
|
|
4486
|
-
className:
|
|
4485
|
+
className: Dd.singleAttributes,
|
|
4487
4486
|
defaultActiveKey: "1",
|
|
4488
4487
|
size: "small",
|
|
4489
4488
|
items: [
|
|
4490
|
-
{ key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(
|
|
4489
|
+
{ key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(bo, {}) },
|
|
4491
4490
|
{
|
|
4492
4491
|
key: "2",
|
|
4493
4492
|
label: t("attributes.dataSource.title"),
|
|
4494
|
-
children: /* @__PURE__ */ l(
|
|
4493
|
+
children: /* @__PURE__ */ l(Lo, {})
|
|
4495
4494
|
},
|
|
4496
4495
|
{
|
|
4497
4496
|
key: "3",
|
|
4498
4497
|
label: t("attributes.interactive.title"),
|
|
4499
|
-
children: /* @__PURE__ */ l(
|
|
4498
|
+
children: /* @__PURE__ */ l(Sd, {})
|
|
4500
4499
|
},
|
|
4501
4500
|
{
|
|
4502
4501
|
key: "4",
|
|
4503
4502
|
label: "json",
|
|
4504
|
-
children: /* @__PURE__ */ l(
|
|
4503
|
+
children: /* @__PURE__ */ l(Ad, {})
|
|
4505
4504
|
}
|
|
4506
4505
|
]
|
|
4507
4506
|
}
|
|
4508
4507
|
) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, a, n.language]);
|
|
4509
4508
|
}
|
|
4510
|
-
const
|
|
4511
|
-
multipleInstanceAttributes:
|
|
4512
|
-
multipleInstanceAttributes_header:
|
|
4513
|
-
multipleInstanceAttributes_body:
|
|
4509
|
+
const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Md = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
|
|
4510
|
+
multipleInstanceAttributes: Od,
|
|
4511
|
+
multipleInstanceAttributes_header: Pd,
|
|
4512
|
+
multipleInstanceAttributes_body: Md
|
|
4514
4513
|
};
|
|
4515
|
-
function
|
|
4514
|
+
function Bd(e) {
|
|
4516
4515
|
const t = yt();
|
|
4517
4516
|
return /* @__PURE__ */ l(
|
|
4518
4517
|
Ce,
|
|
@@ -4529,13 +4528,13 @@ function zd(e) {
|
|
|
4529
4528
|
}
|
|
4530
4529
|
);
|
|
4531
4530
|
}
|
|
4532
|
-
function
|
|
4531
|
+
function jd(e) {
|
|
4533
4532
|
const { instances: t } = e, [n, i] = S();
|
|
4534
4533
|
return w(() => {
|
|
4535
4534
|
i(t[0]);
|
|
4536
4535
|
}, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
|
|
4537
4536
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
|
|
4538
|
-
|
|
4537
|
+
Bd,
|
|
4539
4538
|
{
|
|
4540
4539
|
allowClear: !1,
|
|
4541
4540
|
style: { width: "100%" },
|
|
@@ -4548,12 +4547,12 @@ function Td(e) {
|
|
|
4548
4547
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(yn, { instance: n }) })
|
|
4549
4548
|
] });
|
|
4550
4549
|
}
|
|
4551
|
-
const
|
|
4552
|
-
pageAttributes:
|
|
4553
|
-
pageAttributes_description:
|
|
4554
|
-
pageAttributes_body:
|
|
4550
|
+
const zd = "_pageAttributes_u2l2i_59", Td = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
|
|
4551
|
+
pageAttributes: zd,
|
|
4552
|
+
pageAttributes_description: Td,
|
|
4553
|
+
pageAttributes_body: $d
|
|
4555
4554
|
};
|
|
4556
|
-
function
|
|
4555
|
+
function Rd() {
|
|
4557
4556
|
const { engine: e } = N(), [t] = se(), n = yi(), { id: i, options: c } = n || {};
|
|
4558
4557
|
function a(d) {
|
|
4559
4558
|
e.page.update(i, {
|
|
@@ -4594,7 +4593,7 @@ function Hd() {
|
|
|
4594
4593
|
}
|
|
4595
4594
|
),
|
|
4596
4595
|
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4597
|
-
|
|
4596
|
+
Z,
|
|
4598
4597
|
{
|
|
4599
4598
|
className: "icon_clickable",
|
|
4600
4599
|
onClick: () => {
|
|
@@ -4623,7 +4622,7 @@ function Hd() {
|
|
|
4623
4622
|
}
|
|
4624
4623
|
),
|
|
4625
4624
|
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4626
|
-
|
|
4625
|
+
Z,
|
|
4627
4626
|
{
|
|
4628
4627
|
className: "icon_clickable",
|
|
4629
4628
|
onClick: () => {
|
|
@@ -4664,7 +4663,7 @@ function Hd() {
|
|
|
4664
4663
|
}
|
|
4665
4664
|
),
|
|
4666
4665
|
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4667
|
-
|
|
4666
|
+
Z,
|
|
4668
4667
|
{
|
|
4669
4668
|
className: "icon_clickable",
|
|
4670
4669
|
onClick: () => {
|
|
@@ -4679,50 +4678,36 @@ function Hd() {
|
|
|
4679
4678
|
] }) })
|
|
4680
4679
|
] });
|
|
4681
4680
|
}
|
|
4682
|
-
function
|
|
4681
|
+
function Fd() {
|
|
4683
4682
|
const e = yt(), t = A(() => !!e.length, [e]), n = A(() => e.length === 1, [e]);
|
|
4684
|
-
return /* @__PURE__ */ l("div", { className:
|
|
4683
|
+
return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
|
|
4685
4684
|
// 选中组件实例配置
|
|
4686
4685
|
/* @__PURE__ */ g(W, { children: [
|
|
4687
4686
|
n && /* @__PURE__ */ l(yn, { instance: e[0] }),
|
|
4688
|
-
!n && /* @__PURE__ */ l(
|
|
4687
|
+
!n && /* @__PURE__ */ l(jd, { instances: e })
|
|
4689
4688
|
] })
|
|
4690
4689
|
) : (
|
|
4691
4690
|
// 默认页面配置
|
|
4692
|
-
/* @__PURE__ */ l(
|
|
4691
|
+
/* @__PURE__ */ l(Rd, {})
|
|
4693
4692
|
) });
|
|
4694
4693
|
}
|
|
4695
|
-
function
|
|
4694
|
+
function Cr(e) {
|
|
4696
4695
|
const { engine: t, json: n } = e;
|
|
4697
4696
|
return pi(), zt.useEffect(() => {
|
|
4698
4697
|
t.loadJSON(n).then(() => {
|
|
4699
4698
|
var i;
|
|
4700
4699
|
(i = e == null ? void 0 : e.onJSONLoad) == null || i.call(e);
|
|
4701
4700
|
});
|
|
4702
|
-
}, []), /* @__PURE__ */ g("div", { className:
|
|
4703
|
-
/* @__PURE__ */ l("div", { className:
|
|
4704
|
-
/* @__PURE__ */ g("div", { className:
|
|
4705
|
-
/* @__PURE__ */ l("div", { className:
|
|
4706
|
-
/* @__PURE__ */ l("div", { className:
|
|
4707
|
-
/* @__PURE__ */ l("div", { className:
|
|
4701
|
+
}, []), /* @__PURE__ */ g("div", { className: te.page, children: [
|
|
4702
|
+
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo }) }),
|
|
4703
|
+
/* @__PURE__ */ g("div", { className: te.page_body, children: [
|
|
4704
|
+
/* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
|
|
4705
|
+
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|
|
4706
|
+
/* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
|
|
4708
4707
|
] }),
|
|
4709
|
-
|
|
4710
|
-
/* @__PURE__ */ g("div", { className: G.page_footer_beian, children: [
|
|
4711
|
-
/* @__PURE__ */ l("img", { src: "/beian.png" }),
|
|
4712
|
-
/* @__PURE__ */ l(
|
|
4713
|
-
"a",
|
|
4714
|
-
{
|
|
4715
|
-
href: "https://beian.mps.gov.cn/#/query/webSearch?code=33010602013871",
|
|
4716
|
-
rel: "noreferrer",
|
|
4717
|
-
target: "_blank",
|
|
4718
|
-
children: "浙公网安备33010602013871号"
|
|
4719
|
-
}
|
|
4720
|
-
)
|
|
4721
|
-
] }),
|
|
4722
|
-
/* @__PURE__ */ l("a", { href: "https://beian.miit.gov.cn", target: "_blank", rel: "noreferrer", children: "浙ICP备2024117433号-2" })
|
|
4723
|
-
] })
|
|
4708
|
+
e == null ? void 0 : e.pageFooter
|
|
4724
4709
|
] });
|
|
4725
4710
|
}
|
|
4726
4711
|
export {
|
|
4727
|
-
|
|
4712
|
+
Cr as default
|
|
4728
4713
|
};
|