react-big-screen 0.0.13 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/{attributes-DmdRtgZZ.mjs → attributes-C6-L5-Tc.mjs} +1 -1
- package/es/{attributes-C1NWgfsy.mjs → attributes-CLKtng9Z.mjs} +1 -1
- package/es/{attributes-DLLyxz0N.mjs → attributes-CTkK-zKe.mjs} +1 -1
- package/es/{attributes-BWVuAA3i.mjs → attributes-CaEhpijN.mjs} +1 -1
- package/es/{attributes--4TLwTJ7.mjs → attributes-CiSpGTC2.mjs} +1 -1
- package/es/{attributes-Bzd30ZIf.mjs → attributes-DWlxiiYG.mjs} +1 -1
- package/es/{attributes-BqRyp1ob.mjs → attributes-DkJdS65t.mjs} +1 -1
- package/es/{attributes-C-FswaWY.mjs → attributes-DpCS0mF3.mjs} +1 -1
- package/es/{attributes-CRjnUsRx.mjs → attributes-GqB4d5iv.mjs} +1 -1
- package/es/{attributes-BQVvyBiv.mjs → attributes-HHhF4o7Y.mjs} +2 -2
- package/es/{attributes-Dsp5j2A0.mjs → attributes-UoPVReqf.mjs} +1 -1
- package/es/{attributes-Ds-UHXjB.mjs → attributes-yLDINEsg.mjs} +1 -1
- package/es/{index-BxFObudF.mjs → index-0K85o51g.mjs} +3 -3
- package/es/{index-C3s_52_F.mjs → index-BCZdjBJJ.mjs} +2 -2
- package/es/{index-CCiktl86.mjs → index-BM4ILKEc.mjs} +2 -2
- package/es/{index-BkiBaEzs.mjs → index-BNC3UbKF.mjs} +2 -2
- package/es/{index-BaXFBriK.mjs → index-BldlzvuU.mjs} +501 -500
- package/es/{index-Cp4rqgjF.mjs → index-C2dVSPVz.mjs} +3 -3
- package/es/{index-RYQ9EzNC.mjs → index-C9hmLstz.mjs} +2 -2
- package/es/{index-NxDdAVMu.mjs → index-CAMpiOxt.mjs} +1 -1
- package/es/{index-3xI6pYK_.mjs → index-CUNz1tFb.mjs} +3 -3
- package/es/{index-DjkNh2yG.mjs → index-CV3CbGOy.mjs} +2 -2
- package/es/{index-Dd7rZVc_.mjs → index-CZvhSCSC.mjs} +2 -2
- package/es/{index-DB6gZpoX.mjs → index-CbTTJ-CP.mjs} +2 -2
- package/es/{index-BxnULZLw.mjs → index-Ccbgx0jH.mjs} +2 -2
- package/es/{index-DTUaHCnR.mjs → index-ClIbiw0p.mjs} +50 -41
- package/es/{index-O_OcKtSF.mjs → index-Clk_czMj.mjs} +1 -1
- package/es/{index-C18T8lZz.mjs → index-D0KDJrVL.mjs} +2 -2
- package/es/{index-D-q9tYW0.mjs → index-D5vYVcTR.mjs} +2 -2
- package/es/{index-gJTpfQvV.mjs → index-DKoTC2Xk.mjs} +2 -2
- package/es/{index-B152sOCT.mjs → index-DexsopTp.mjs} +2 -2
- package/es/{index-B5kA4V3C.mjs → index-Dk9oedlP.mjs} +2 -2
- package/es/{index-z6ax5THp.mjs → index-GcMZDFMx.mjs} +2 -2
- package/es/{index-CWVkCbis.mjs → index-iFuEY-wV.mjs} +3 -3
- package/es/{index-hk0ols1y.mjs → index-lLnHnoQq.mjs} +2 -2
- package/es/{index-DSLm4B3h.mjs → index-qrNjlWih.mjs} +2 -2
- package/es/{index-fj1Y8y5V.mjs → index-sZk6Or23.mjs} +2 -2
- package/es/{index-BvuyAzoz.mjs → index-thG37Ydl.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-BrsWx9sU.mjs → selectPage-BYoFtkBW.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-BFU6rfHk.mjs → useCurrentPageId-BKvMaKLl.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +4 -1
- package/types/src/export/index.d.ts +3 -1
- package/types/src/pages/components/Header/index.d.ts +7 -1
|
@@ -2,26 +2,26 @@ 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
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
|
-
import
|
|
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
|
|
7
|
-
import { message as E, Tooltip as
|
|
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 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
|
|
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-ClIbiw0p.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-BCZdjBJJ.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 p, L as Le, a 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
|
-
import { cloneDeep as Yt, debounce as xi, groupBy as
|
|
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 U, 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-BYoFtkBW.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-BKvMaKLl.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-CAMpiOxt.mjs";
|
|
37
37
|
async function ln(e) {
|
|
38
38
|
return new Promise((t) => {
|
|
39
39
|
let n = document.createElement("input");
|
|
@@ -70,7 +70,7 @@ function ct(e, t, n) {
|
|
|
70
70
|
}
|
|
71
71
|
function Li(e) {
|
|
72
72
|
var i;
|
|
73
|
-
const t =
|
|
73
|
+
const t = k.getActiveEngine();
|
|
74
74
|
if (!t) return [];
|
|
75
75
|
const n = (i = t.component.getPackage(e)) == null ? void 0 : i.components;
|
|
76
76
|
return t.componentNode.getAll().filter((c) => {
|
|
@@ -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
|
}, []);
|
|
@@ -174,25 +174,25 @@ function main(target, origin, payload) {
|
|
|
174
174
|
dragDirection: "d_dir"
|
|
175
175
|
// 拖拽大小方向
|
|
176
176
|
};
|
|
177
|
-
function
|
|
177
|
+
function ji(e) {
|
|
178
178
|
const t = [];
|
|
179
179
|
return Object.entries(e).forEach(([n, i]) => {
|
|
180
180
|
lt(n, i), t.push(() => lt.unbind(n, i));
|
|
181
181
|
}), () => t.forEach((n) => n());
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
w(() =>
|
|
183
|
+
function zi(e) {
|
|
184
|
+
w(() => ji(e), []);
|
|
185
185
|
}
|
|
186
186
|
function at() {
|
|
187
|
-
const e =
|
|
187
|
+
const e = k.getActiveEngine();
|
|
188
188
|
e && (e.componentNode.delete(Oe()), O("删除选中组件"));
|
|
189
189
|
}
|
|
190
190
|
function on() {
|
|
191
|
-
const e =
|
|
191
|
+
const e = k.getActiveEngine();
|
|
192
192
|
e && (e.instance.selectAll(), O("全选组件"));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const e =
|
|
194
|
+
function Ti() {
|
|
195
|
+
const e = k.getActiveEngine();
|
|
196
196
|
e && (e.instance.getAllSelected().forEach((t) => {
|
|
197
197
|
const n = e.componentNode.get(t.id);
|
|
198
198
|
n && e.componentNode.update(t.id, {
|
|
@@ -201,7 +201,7 @@ function ji() {
|
|
|
201
201
|
}), O("组件左移"));
|
|
202
202
|
}
|
|
203
203
|
function $i() {
|
|
204
|
-
const e =
|
|
204
|
+
const e = k.getActiveEngine();
|
|
205
205
|
e && (e.instance.getAllSelected().forEach((t) => {
|
|
206
206
|
const n = e.componentNode.get(t.id);
|
|
207
207
|
n && e.componentNode.update(t.id, {
|
|
@@ -210,7 +210,7 @@ function $i() {
|
|
|
210
210
|
}), O("组件右移动"));
|
|
211
211
|
}
|
|
212
212
|
function Ri() {
|
|
213
|
-
const e =
|
|
213
|
+
const e = k.getActiveEngine();
|
|
214
214
|
e && (e.instance.getAllSelected().forEach((t) => {
|
|
215
215
|
const n = e.componentNode.get(t.id);
|
|
216
216
|
n && e.componentNode.update(t.id, {
|
|
@@ -219,7 +219,7 @@ function Ri() {
|
|
|
219
219
|
}), O("组件上移"));
|
|
220
220
|
}
|
|
221
221
|
function Fi() {
|
|
222
|
-
const e =
|
|
222
|
+
const e = k.getActiveEngine();
|
|
223
223
|
e && (e.instance.getAllSelected().forEach((t) => {
|
|
224
224
|
const n = e.componentNode.get(t.id);
|
|
225
225
|
n && e.componentNode.update(t.id, {
|
|
@@ -228,7 +228,7 @@ function Fi() {
|
|
|
228
228
|
}), O("组件下移"));
|
|
229
229
|
}
|
|
230
230
|
function dn() {
|
|
231
|
-
const e =
|
|
231
|
+
const e = k.getActiveEngine();
|
|
232
232
|
if (!e) return;
|
|
233
233
|
const t = Oe(), n = new Set(e.instance.getAllSelected().map((a) => a.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
|
|
234
234
|
onClone(a, d) {
|
|
@@ -241,21 +241,21 @@ function dn() {
|
|
|
241
241
|
}
|
|
242
242
|
function Hi() {
|
|
243
243
|
var t, n;
|
|
244
|
-
const e =
|
|
244
|
+
const e = k.getActiveEngine();
|
|
245
245
|
(n = (t = e == null ? void 0 : e.componentNode) == null ? void 0 : t.clear) == null || n.call(t);
|
|
246
246
|
}
|
|
247
247
|
function vt(e) {
|
|
248
|
-
const t =
|
|
248
|
+
const t = k.getActiveEngine();
|
|
249
249
|
t && (t.getJSON().then((n) => {
|
|
250
250
|
localStorage.setItem("json", JSON.stringify(n));
|
|
251
251
|
}), E.success("保存成功"));
|
|
252
252
|
}
|
|
253
253
|
function De() {
|
|
254
|
-
const e =
|
|
254
|
+
const e = k.getActiveEngine();
|
|
255
255
|
e && e.instance.getAllSelected().length && (e.instance.unselectAll(), O("取消全选组件"));
|
|
256
256
|
}
|
|
257
257
|
function Ki() {
|
|
258
|
-
const e =
|
|
258
|
+
const e = k.getActiveEngine();
|
|
259
259
|
if (!e) return;
|
|
260
260
|
e.instance.getAllSelected().forEach((n) => {
|
|
261
261
|
e.componentNode.get(n.id) && e.componentNode.update(n.id, {
|
|
@@ -264,7 +264,7 @@ function Ki() {
|
|
|
264
264
|
}), e.instance.unselectAll();
|
|
265
265
|
}
|
|
266
266
|
function Ui() {
|
|
267
|
-
const e =
|
|
267
|
+
const e = k.getActiveEngine();
|
|
268
268
|
if (!e) return;
|
|
269
269
|
e.instance.getAllSelected().forEach((n) => {
|
|
270
270
|
e.componentNode.get(n.id) && e.componentNode.update(n.id, {
|
|
@@ -273,7 +273,7 @@ function Ui() {
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function qi() {
|
|
276
|
-
const e =
|
|
276
|
+
const e = k.getActiveEngine();
|
|
277
277
|
if (!e) return;
|
|
278
278
|
const t = e.instance.getAllSelected();
|
|
279
279
|
if (t.length < 2)
|
|
@@ -285,7 +285,7 @@ function qi() {
|
|
|
285
285
|
e.componentNode.createGroup(n);
|
|
286
286
|
}
|
|
287
287
|
function Ji() {
|
|
288
|
-
const e =
|
|
288
|
+
const e = k.getActiveEngine();
|
|
289
289
|
if (!e) return;
|
|
290
290
|
const t = e.instance.getAllSelected(), n = Array.from(
|
|
291
291
|
t.reduce((i, c) => {
|
|
@@ -296,7 +296,7 @@ function Ji() {
|
|
|
296
296
|
e.componentNode.unlinkGroup(n), e.instance.unselectAll();
|
|
297
297
|
}
|
|
298
298
|
function Wi() {
|
|
299
|
-
const e =
|
|
299
|
+
const e = k.getActiveEngine();
|
|
300
300
|
if (!e) return;
|
|
301
301
|
const t = e.componentNode.getMaxLevel();
|
|
302
302
|
e.instance.getAllSelected().forEach((n) => {
|
|
@@ -306,7 +306,7 @@ function Wi() {
|
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
function Vi() {
|
|
309
|
-
const e =
|
|
309
|
+
const e = k.getActiveEngine();
|
|
310
310
|
if (!e) return;
|
|
311
311
|
const t = e.componentNode.getMinLevel();
|
|
312
312
|
e.instance.getAllSelected().forEach((n) => {
|
|
@@ -316,7 +316,7 @@ function Vi() {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
function Gi() {
|
|
319
|
-
const e =
|
|
319
|
+
const e = k.getActiveEngine();
|
|
320
320
|
if (!e) return;
|
|
321
321
|
const t = e.componentNode.getMaxLevel();
|
|
322
322
|
e.instance.getAllSelected().forEach((n) => {
|
|
@@ -327,7 +327,7 @@ function Gi() {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
function Xi() {
|
|
330
|
-
const e =
|
|
330
|
+
const e = k.getActiveEngine();
|
|
331
331
|
if (!e) return;
|
|
332
332
|
const t = e.componentNode.getMinLevel();
|
|
333
333
|
e.instance.getAllSelected().forEach((n) => {
|
|
@@ -338,7 +338,7 @@ function Xi() {
|
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
340
|
function Yi() {
|
|
341
|
-
const e =
|
|
341
|
+
const e = k.getActiveEngine();
|
|
342
342
|
if (!e) return;
|
|
343
343
|
const t = Oe();
|
|
344
344
|
if (!t.length) {
|
|
@@ -354,13 +354,13 @@ function Yi() {
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function Oe() {
|
|
357
|
-
const e =
|
|
357
|
+
const e = k.getActiveEngine();
|
|
358
358
|
if (!e) return [];
|
|
359
359
|
const t = e.instance.getAllSelected();
|
|
360
360
|
return Zi(t.map((n) => n.id));
|
|
361
361
|
}
|
|
362
362
|
function Zi(e) {
|
|
363
|
-
const t =
|
|
363
|
+
const t = k.getActiveEngine();
|
|
364
364
|
if (!t) return [];
|
|
365
365
|
const n = Array.isArray(e) ? e : [e];
|
|
366
366
|
return Object.values(
|
|
@@ -375,7 +375,7 @@ function Zi(e) {
|
|
|
375
375
|
}
|
|
376
376
|
function O(e) {
|
|
377
377
|
setTimeout(async () => {
|
|
378
|
-
const t =
|
|
378
|
+
const t = k.getActiveEngine();
|
|
379
379
|
if (t) {
|
|
380
380
|
const n = await t.getJSON(), i = Yt(n);
|
|
381
381
|
t.history.add(i, e);
|
|
@@ -383,19 +383,19 @@ function O(e) {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
function bt() {
|
|
386
|
-
const e =
|
|
386
|
+
const e = k.getActiveEngine();
|
|
387
387
|
if (!e) return;
|
|
388
388
|
const { data: t } = e.history.goBack() || {};
|
|
389
389
|
t && (t.config.currentMenu = e.config.getConfig().currentMenu, e.loadJSON(t));
|
|
390
390
|
}
|
|
391
391
|
function ot() {
|
|
392
|
-
const e =
|
|
392
|
+
const e = k.getActiveEngine();
|
|
393
393
|
if (!e) return;
|
|
394
394
|
const { data: t } = e.history.goForward() || {};
|
|
395
395
|
t && (t.config.currentMenu = e.config.getConfig().currentMenu, e.loadJSON(t));
|
|
396
396
|
}
|
|
397
397
|
function Qi(e) {
|
|
398
|
-
const t =
|
|
398
|
+
const t = k.getActiveEngine();
|
|
399
399
|
if (!t) return;
|
|
400
400
|
const { data: n } = t.history.go(e) || {};
|
|
401
401
|
n && (n.config.currentMenu = t.config.getConfig().currentMenu, t.instance.unselectAll(), t.loadJSON(n));
|
|
@@ -404,7 +404,7 @@ function Pe(e) {
|
|
|
404
404
|
return lt[e];
|
|
405
405
|
}
|
|
406
406
|
function pi() {
|
|
407
|
-
|
|
407
|
+
zi({
|
|
408
408
|
backspace: () => {
|
|
409
409
|
at();
|
|
410
410
|
},
|
|
@@ -415,7 +415,7 @@ function pi() {
|
|
|
415
415
|
on();
|
|
416
416
|
},
|
|
417
417
|
left: (e) => {
|
|
418
|
-
e.preventDefault(),
|
|
418
|
+
e.preventDefault(), Ti();
|
|
419
419
|
},
|
|
420
420
|
right: (e) => {
|
|
421
421
|
e.preventDefault(), $i();
|
|
@@ -434,14 +434,14 @@ 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
443
|
page_body_right: cl
|
|
444
|
-
}, al = "_header_2phks_59", ol = "_header_flex_2phks_67", dl = "_header_flex_btnContainer_2phks_68",
|
|
444
|
+
}, al = "_header_2phks_59", ol = "_header_flex_2phks_67", dl = "_header_flex_btnContainer_2phks_68", Ie = {
|
|
445
445
|
header: al,
|
|
446
446
|
header_flex: ol,
|
|
447
447
|
header_flex_btnContainer: dl
|
|
@@ -451,7 +451,7 @@ const el = "_page_1i4ky_59", tl = "_page_header_1i4ky_69", nl = "_page_body_1i4k
|
|
|
451
451
|
tooltipButton_disabled: ul
|
|
452
452
|
};
|
|
453
453
|
function rn(e) {
|
|
454
|
-
return /* @__PURE__ */ l(
|
|
454
|
+
return /* @__PURE__ */ l(T, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
|
|
455
455
|
"div",
|
|
456
456
|
{
|
|
457
457
|
className: $(
|
|
@@ -472,8 +472,8 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
472
472
|
"data-injectcss"
|
|
473
473
|
), n = n.getAttribute("data-disable-injectsvg");
|
|
474
474
|
if (!n) {
|
|
475
|
-
var i, c, a, d, o, s = function(
|
|
476
|
-
_.parentNode.insertBefore(
|
|
475
|
+
var i, c, a, d, o, s = function(u, _) {
|
|
476
|
+
_.parentNode.insertBefore(u, _);
|
|
477
477
|
};
|
|
478
478
|
if (t && !e.__iconfont__svg__cssinject__) {
|
|
479
479
|
e.__iconfont__svg__cssinject__ = !0;
|
|
@@ -481,27 +481,27 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
481
481
|
document.write(
|
|
482
482
|
"<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>"
|
|
483
483
|
);
|
|
484
|
-
} catch (
|
|
485
|
-
console && console.log(
|
|
484
|
+
} catch (u) {
|
|
485
|
+
console && console.log(u);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
i = function() {
|
|
489
|
-
var
|
|
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", _ = _, (
|
|
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(_));
|
|
491
491
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(i, 0) : (c = function() {
|
|
492
492
|
document.removeEventListener("DOMContentLoaded", c, !1), i();
|
|
493
|
-
}, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (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() {
|
|
494
494
|
d.readyState == "complete" && (d.onreadystatechange = null, r());
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
function r() {
|
|
498
498
|
o || (o = !0, a());
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function h() {
|
|
501
501
|
try {
|
|
502
502
|
d.documentElement.doScroll("left");
|
|
503
503
|
} catch {
|
|
504
|
-
return void setTimeout(
|
|
504
|
+
return void setTimeout(h, 50);
|
|
505
505
|
}
|
|
506
506
|
r();
|
|
507
507
|
}
|
|
@@ -538,9 +538,9 @@ const fl = {
|
|
|
538
538
|
function yl(e) {
|
|
539
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]);
|
|
540
540
|
function s(r) {
|
|
541
|
-
var
|
|
542
|
-
const
|
|
543
|
-
|
|
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));
|
|
544
544
|
}
|
|
545
545
|
return /* @__PURE__ */ l(
|
|
546
546
|
st,
|
|
@@ -798,7 +798,7 @@ function xl(e = window.location.host) {
|
|
|
798
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));
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Il = (e, t, n) => {
|
|
802
802
|
const i = e[t];
|
|
803
803
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, a) => {
|
|
804
804
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -811,9 +811,9 @@ const kl = (e, t, n) => {
|
|
|
811
811
|
);
|
|
812
812
|
});
|
|
813
813
|
};
|
|
814
|
-
async function
|
|
814
|
+
async function kl(e) {
|
|
815
815
|
var i;
|
|
816
|
-
const t = await
|
|
816
|
+
const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-ClIbiw0p.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-ClIbiw0p.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
|
|
817
817
|
(i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
|
|
818
818
|
}
|
|
819
819
|
function Sl() {
|
|
@@ -829,7 +829,7 @@ function Sl() {
|
|
|
829
829
|
}
|
|
830
830
|
],
|
|
831
831
|
onClick({ key: e }) {
|
|
832
|
-
|
|
832
|
+
kl(e);
|
|
833
833
|
}
|
|
834
834
|
},
|
|
835
835
|
children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, id: "rbs-choose-example-button", children: "切换示例" })
|
|
@@ -851,8 +851,8 @@ function Nl() {
|
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
853
|
const wl = xl();
|
|
854
|
-
function El() {
|
|
855
|
-
const {
|
|
854
|
+
function El(e) {
|
|
855
|
+
const { pageLogo: t } = e, { engine: n, rbsEngine: i } = N(), [c, a] = se(), d = an(), o = a.language === ci.zh, s = A(() => [
|
|
856
856
|
{
|
|
857
857
|
key: "shortCutKeys",
|
|
858
858
|
description: /* @__PURE__ */ l(bl, {}),
|
|
@@ -860,41 +860,41 @@ function El() {
|
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
862
|
key: "undo",
|
|
863
|
-
description:
|
|
864
|
-
disabled: !
|
|
863
|
+
description: c("head.undo"),
|
|
864
|
+
disabled: !d.isCanGoBack,
|
|
865
865
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-undo" })
|
|
866
866
|
},
|
|
867
867
|
{
|
|
868
868
|
key: "cancelUndo",
|
|
869
|
-
description:
|
|
870
|
-
disabled: !
|
|
869
|
+
description: c("head.cancelUndo"),
|
|
870
|
+
disabled: !d.isCanGoForward,
|
|
871
871
|
icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
|
|
872
872
|
},
|
|
873
|
-
{ key: "export", description:
|
|
874
|
-
{ key: "import", description:
|
|
875
|
-
{ key: "save", description:
|
|
876
|
-
{ key: "clear", description:
|
|
873
|
+
{ key: "export", description: c("head.export"), icon: /* @__PURE__ */ l(Ln, {}) },
|
|
874
|
+
{ key: "import", description: c("head.import"), icon: /* @__PURE__ */ l($t, {}) },
|
|
875
|
+
{ key: "save", description: c("head.save"), icon: /* @__PURE__ */ l(Q, {}) },
|
|
876
|
+
{ key: "clear", description: c("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
877
877
|
{
|
|
878
878
|
key: "language",
|
|
879
|
-
description:
|
|
879
|
+
description: c("head.language", { text: `${o ? "切换英语" : "change chinese"}` }),
|
|
880
880
|
icon: /* @__PURE__ */ l(Dn, {})
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
883
|
key: "settings",
|
|
884
|
-
description:
|
|
884
|
+
description: c("head.settings"),
|
|
885
885
|
disabled: !0,
|
|
886
886
|
icon: /* @__PURE__ */ l(Ft, {})
|
|
887
887
|
}
|
|
888
888
|
// { key: "preview", description: t("head.preview"), icon: <DesktopOutlined /> },
|
|
889
|
-
], [
|
|
890
|
-
function
|
|
889
|
+
], [a.language, d.isCanGoForward, d.isCanGoBack]);
|
|
890
|
+
function r() {
|
|
891
891
|
window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
|
|
892
892
|
}
|
|
893
|
-
async function
|
|
894
|
-
|
|
893
|
+
async function h() {
|
|
894
|
+
i == null || i.emit("startPreview", n);
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
switch (
|
|
896
|
+
function u(m) {
|
|
897
|
+
switch (m.key) {
|
|
898
898
|
case "undo":
|
|
899
899
|
bt();
|
|
900
900
|
break;
|
|
@@ -902,58 +902,59 @@ function El() {
|
|
|
902
902
|
ot();
|
|
903
903
|
break;
|
|
904
904
|
case "export":
|
|
905
|
-
|
|
906
|
-
const
|
|
907
|
-
Jt(
|
|
905
|
+
n.getJSON().then((C) => {
|
|
906
|
+
const v = JSON.stringify(C);
|
|
907
|
+
Jt(v, "大屏看板.json");
|
|
908
908
|
});
|
|
909
909
|
break;
|
|
910
910
|
case "import":
|
|
911
|
-
Ai().then((
|
|
912
|
-
if (!
|
|
911
|
+
Ai().then((C) => {
|
|
912
|
+
if (!C)
|
|
913
913
|
return E.warn("文件内容不能为空");
|
|
914
914
|
try {
|
|
915
|
-
const
|
|
916
|
-
|
|
915
|
+
const v = JSON.parse(C);
|
|
916
|
+
n.loadJSON(v);
|
|
917
917
|
} catch {
|
|
918
918
|
E.error("请上传json格式文件");
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
break;
|
|
922
922
|
case "preview":
|
|
923
|
-
|
|
923
|
+
h();
|
|
924
924
|
break;
|
|
925
925
|
case "save":
|
|
926
926
|
vt();
|
|
927
927
|
break;
|
|
928
928
|
case "clear":
|
|
929
|
-
|
|
929
|
+
n.clear();
|
|
930
930
|
break;
|
|
931
931
|
case "settings":
|
|
932
932
|
break;
|
|
933
933
|
case "language":
|
|
934
|
-
const
|
|
935
|
-
ai(
|
|
934
|
+
const y = o ? "en" : "zh";
|
|
935
|
+
ai(y), n.config.setConfig({ language: y });
|
|
936
936
|
break;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
|
|
940
|
-
/* @__PURE__ */
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
939
|
+
const _ = /* @__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: r })
|
|
942
|
+
] });
|
|
943
|
+
return /* @__PURE__ */ g("div", { className: Ie.header, children: [
|
|
944
|
+
t ? /* @__PURE__ */ l(t, {}) : _,
|
|
944
945
|
/* @__PURE__ */ l(vl, {}),
|
|
945
|
-
/* @__PURE__ */ g("div", { className:
|
|
946
|
+
/* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
|
|
946
947
|
/* @__PURE__ */ l(Sl, {}),
|
|
947
948
|
/* @__PURE__ */ l(Nl, {}),
|
|
948
|
-
/* @__PURE__ */ l("div", { className:
|
|
949
|
+
/* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: "rbs-tool-bar", children: s.map((m) => /* @__PURE__ */ l(
|
|
949
950
|
rn,
|
|
950
951
|
{
|
|
951
|
-
disabled:
|
|
952
|
-
title:
|
|
953
|
-
onClick: () =>
|
|
954
|
-
children:
|
|
952
|
+
disabled: m == null ? void 0 : m.disabled,
|
|
953
|
+
title: m.description,
|
|
954
|
+
onClick: () => u(m),
|
|
955
|
+
children: m == null ? void 0 : m.icon
|
|
955
956
|
},
|
|
956
|
-
|
|
957
|
+
m.key
|
|
957
958
|
)) }),
|
|
958
959
|
/* @__PURE__ */ l(
|
|
959
960
|
K,
|
|
@@ -962,7 +963,7 @@ function El() {
|
|
|
962
963
|
size: "small",
|
|
963
964
|
style: { fontSize: 12 },
|
|
964
965
|
id: "rbs-preview",
|
|
965
|
-
onClick:
|
|
966
|
+
onClick: h,
|
|
966
967
|
children: "开始预览"
|
|
967
968
|
}
|
|
968
969
|
)
|
|
@@ -977,11 +978,11 @@ const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_7
|
|
|
977
978
|
library: Ol,
|
|
978
979
|
library_header: Pl,
|
|
979
980
|
library_main: Ml
|
|
980
|
-
}, Bl = "_componentsBlock_mx05c_59",
|
|
981
|
+
}, Bl = "_componentsBlock_mx05c_59", jl = {
|
|
981
982
|
componentsBlock: Bl
|
|
982
|
-
},
|
|
983
|
-
componentItem:
|
|
984
|
-
componentItem_body:
|
|
983
|
+
}, zl = "_componentItem_1a82r_59", Tl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
|
|
984
|
+
componentItem: zl,
|
|
985
|
+
componentItem_body: Tl,
|
|
985
986
|
componentItem_footer: $l
|
|
986
987
|
};
|
|
987
988
|
class Rl {
|
|
@@ -1104,11 +1105,11 @@ function un(e, t) {
|
|
|
1104
1105
|
return;
|
|
1105
1106
|
}
|
|
1106
1107
|
const a = (d) => {
|
|
1107
|
-
var s, r,
|
|
1108
|
+
var s, r, h;
|
|
1108
1109
|
if (!ce.getIsDragging())
|
|
1109
1110
|
return;
|
|
1110
1111
|
const o = ce.getDragOptions();
|
|
1111
|
-
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);
|
|
1112
1113
|
};
|
|
1113
1114
|
return c.addEventListener("mouseup", a), () => {
|
|
1114
1115
|
c.removeEventListener("mouseup", a);
|
|
@@ -1156,7 +1157,7 @@ function Ul(e) {
|
|
|
1156
1157
|
width: `${100 / n}%`,
|
|
1157
1158
|
lines: Math.ceil(t.length / n)
|
|
1158
1159
|
}), [t, n]);
|
|
1159
|
-
return /* @__PURE__ */ g("div", { className:
|
|
1160
|
+
return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
|
|
1160
1161
|
!(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
|
|
1161
1162
|
(a = t == null ? void 0 : t.map) == null ? void 0 : a.call(t, (d, o) => {
|
|
1162
1163
|
const s = o % n === n - 1, r = c === 1 || o > (c - 1) * n - 1;
|
|
@@ -1187,18 +1188,18 @@ function ql() {
|
|
|
1187
1188
|
layout: e("menu.library.layout"),
|
|
1188
1189
|
nav: e("menu.library.nav"),
|
|
1189
1190
|
unknown: e("menu.library.unknown")
|
|
1190
|
-
}), [t.language]),
|
|
1191
|
+
}), [t.language]), h = A(() => xi((_, m = "") => {
|
|
1191
1192
|
const y = Lt(_, m);
|
|
1192
1193
|
s(y);
|
|
1193
1194
|
}, 500), []);
|
|
1194
1195
|
w(() => {
|
|
1195
1196
|
s(Lt(c, a));
|
|
1196
1197
|
}, [c]), mt(() => {
|
|
1197
|
-
|
|
1198
|
+
h(c, a);
|
|
1198
1199
|
}, [a]);
|
|
1199
|
-
const
|
|
1200
|
+
const u = A(() => {
|
|
1200
1201
|
const _ = [], m = Object.entries(
|
|
1201
|
-
|
|
1202
|
+
Ii(o, (y) => y.category || "unknown")
|
|
1202
1203
|
).map(([y, C]) => (_.push(y), {
|
|
1203
1204
|
key: y,
|
|
1204
1205
|
components: C,
|
|
@@ -1218,14 +1219,14 @@ function ql() {
|
|
|
1218
1219
|
}
|
|
1219
1220
|
}
|
|
1220
1221
|
) }),
|
|
1221
|
-
/* @__PURE__ */ l("div", { className: Ke.library_main, children:
|
|
1222
|
+
/* @__PURE__ */ l("div", { className: Ke.library_main, children: u.length ? /* @__PURE__ */ l(
|
|
1222
1223
|
Ct,
|
|
1223
1224
|
{
|
|
1224
1225
|
expandIconPosition: "end",
|
|
1225
1226
|
activeKey: n,
|
|
1226
1227
|
style: { padding: 0 },
|
|
1227
1228
|
onChange: (_) => i(_ || []),
|
|
1228
|
-
children:
|
|
1229
|
+
children: u.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(Ul, { components: _.components }) }, _.key))
|
|
1229
1230
|
}
|
|
1230
1231
|
) : /* @__PURE__ */ l(U, { style: { height: "100%", background: "white" } }) })
|
|
1231
1232
|
] });
|
|
@@ -1247,24 +1248,24 @@ function ec(e) {
|
|
|
1247
1248
|
component: t.component.get(i == null ? void 0 : i.cId),
|
|
1248
1249
|
instance: t.instance.get(i == null ? void 0 : i.id)
|
|
1249
1250
|
}), [i]);
|
|
1250
|
-
function s(
|
|
1251
|
-
|
|
1252
|
-
const
|
|
1251
|
+
function s(h) {
|
|
1252
|
+
h.stopPropagation();
|
|
1253
|
+
const u = Pe("shift");
|
|
1253
1254
|
if (t.instance.isSelected(i.id)) {
|
|
1254
|
-
if (!Ae(
|
|
1255
|
+
if (!Ae(h.nativeEvent))
|
|
1255
1256
|
return;
|
|
1256
|
-
|
|
1257
|
+
u ? t.instance.unselect(i.id) : t.instance.select(i == null ? void 0 : i.id, !0);
|
|
1257
1258
|
return;
|
|
1258
1259
|
}
|
|
1259
|
-
t.instance.select(i == null ? void 0 : i.id, !
|
|
1260
|
+
t.instance.select(i == null ? void 0 : i.id, !u);
|
|
1260
1261
|
}
|
|
1261
|
-
function r(
|
|
1262
|
+
function r(h) {
|
|
1262
1263
|
t.componentNode.update(i.id, {
|
|
1263
|
-
show:
|
|
1264
|
+
show: h
|
|
1264
1265
|
});
|
|
1265
1266
|
}
|
|
1266
|
-
return w(() => t.componentNode.onChange(i.id, ({ payload:
|
|
1267
|
-
c({ ...
|
|
1267
|
+
return w(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
|
|
1268
|
+
c({ ...h });
|
|
1268
1269
|
}), []), /* @__PURE__ */ g(
|
|
1269
1270
|
"div",
|
|
1270
1271
|
{
|
|
@@ -1274,16 +1275,16 @@ function ec(e) {
|
|
|
1274
1275
|
ne.componentNodeItem,
|
|
1275
1276
|
(e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
|
|
1276
1277
|
),
|
|
1277
|
-
onMouseDown: (
|
|
1278
|
-
s(
|
|
1278
|
+
onMouseDown: (h) => {
|
|
1279
|
+
s(h);
|
|
1279
1280
|
},
|
|
1280
1281
|
onMouseEnter: () => {
|
|
1281
|
-
var
|
|
1282
|
-
(
|
|
1282
|
+
var h;
|
|
1283
|
+
(h = o == null ? void 0 : o.handleHover) == null || h.call(o);
|
|
1283
1284
|
},
|
|
1284
1285
|
onMouseLeave: () => {
|
|
1285
|
-
var
|
|
1286
|
-
(
|
|
1286
|
+
var h;
|
|
1287
|
+
(h = o == null ? void 0 : o.handleUnHover) == null || h.call(o);
|
|
1287
1288
|
},
|
|
1288
1289
|
children: [
|
|
1289
1290
|
/* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
|
|
@@ -1294,8 +1295,8 @@ function ec(e) {
|
|
|
1294
1295
|
"div",
|
|
1295
1296
|
{
|
|
1296
1297
|
className: ne.componentNodeItem_tail_operatable,
|
|
1297
|
-
onMouseDown: (
|
|
1298
|
-
|
|
1298
|
+
onMouseDown: (h) => {
|
|
1299
|
+
h.stopPropagation(), r(!a);
|
|
1299
1300
|
},
|
|
1300
1301
|
children: a ? /* @__PURE__ */ l(Pn, {}) : /* @__PURE__ */ l(Mn, {})
|
|
1301
1302
|
}
|
|
@@ -1321,18 +1322,18 @@ const tc = "_renderContextMenu_vitq8_59", nc = {
|
|
|
1321
1322
|
};
|
|
1322
1323
|
function uc(e) {
|
|
1323
1324
|
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(sc);
|
|
1324
|
-
function
|
|
1325
|
-
var y, C,
|
|
1325
|
+
function h(_) {
|
|
1326
|
+
var y, C, v;
|
|
1326
1327
|
if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
|
|
1327
1328
|
return;
|
|
1328
|
-
const m = (
|
|
1329
|
+
const m = (v = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : v.call(C);
|
|
1329
1330
|
m && (r({ top: m.top, left: m.left + m.width }), o(!0));
|
|
1330
1331
|
}
|
|
1331
|
-
function
|
|
1332
|
+
function u(_) {
|
|
1332
1333
|
var m;
|
|
1333
1334
|
(m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _), o(!1);
|
|
1334
1335
|
}
|
|
1335
|
-
return /* @__PURE__ */ g("div", { ...a, onMouseEnter:
|
|
1336
|
+
return /* @__PURE__ */ g("div", { ...a, onMouseEnter: h, onMouseLeave: u, children: [
|
|
1336
1337
|
n,
|
|
1337
1338
|
d && si(
|
|
1338
1339
|
/* @__PURE__ */ l(
|
|
@@ -1435,8 +1436,8 @@ function gn(e, t, n, i) {
|
|
|
1435
1436
|
const a = Wt(c);
|
|
1436
1437
|
let d = !1;
|
|
1437
1438
|
const o = () => {
|
|
1438
|
-
var r,
|
|
1439
|
-
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);
|
|
1440
1441
|
};
|
|
1441
1442
|
return a.render(
|
|
1442
1443
|
/* @__PURE__ */ l(
|
|
@@ -1447,8 +1448,8 @@ function gn(e, t, n, i) {
|
|
|
1447
1448
|
o();
|
|
1448
1449
|
},
|
|
1449
1450
|
onSelect: (r) => {
|
|
1450
|
-
var
|
|
1451
|
-
(
|
|
1451
|
+
var h;
|
|
1452
|
+
(h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r), o();
|
|
1452
1453
|
}
|
|
1453
1454
|
}
|
|
1454
1455
|
)
|
|
@@ -1457,7 +1458,7 @@ function gn(e, t, n, i) {
|
|
|
1457
1458
|
const gc = [
|
|
1458
1459
|
{
|
|
1459
1460
|
key: "top",
|
|
1460
|
-
icon: /* @__PURE__ */ l(
|
|
1461
|
+
icon: /* @__PURE__ */ l(jn, {}),
|
|
1461
1462
|
title: "置顶",
|
|
1462
1463
|
style: { borderTop: "1px solid #e8e8e8" },
|
|
1463
1464
|
onSelect: () => Wi()
|
|
@@ -1489,13 +1490,13 @@ const gc = [
|
|
|
1489
1490
|
},
|
|
1490
1491
|
{
|
|
1491
1492
|
key: "unlock",
|
|
1492
|
-
icon: /* @__PURE__ */ l(
|
|
1493
|
+
icon: /* @__PURE__ */ l(zn, {}),
|
|
1493
1494
|
title: "解锁",
|
|
1494
1495
|
onSelect: () => Ui()
|
|
1495
1496
|
},
|
|
1496
1497
|
{
|
|
1497
1498
|
key: "group",
|
|
1498
|
-
icon: /* @__PURE__ */ l(
|
|
1499
|
+
icon: /* @__PURE__ */ l(Tn, {}),
|
|
1499
1500
|
title: "成组",
|
|
1500
1501
|
onSelect: () => qi()
|
|
1501
1502
|
},
|
|
@@ -1628,7 +1629,7 @@ function xc(e) {
|
|
|
1628
1629
|
var t, n;
|
|
1629
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) => {
|
|
1630
1631
|
const c = i.key === e.value;
|
|
1631
|
-
return /* @__PURE__ */ l(
|
|
1632
|
+
return /* @__PURE__ */ l(T, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
|
|
1632
1633
|
"div",
|
|
1633
1634
|
{
|
|
1634
1635
|
id: i == null ? void 0 : i.domId,
|
|
@@ -1645,9 +1646,9 @@ function xc(e) {
|
|
|
1645
1646
|
) }, i == null ? void 0 : i.key);
|
|
1646
1647
|
}) });
|
|
1647
1648
|
}
|
|
1648
|
-
const
|
|
1649
|
-
propertyItem:
|
|
1650
|
-
propertyItem_icon:
|
|
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,
|
|
1651
1652
|
propertyItem_icon_disabled: Sc,
|
|
1652
1653
|
propertyItemPopover: Nc,
|
|
1653
1654
|
propertyItemPopover_description: wc,
|
|
@@ -1658,19 +1659,19 @@ const kc = "_propertyItem_1r9fx_59", Ic = "_propertyItem_icon_1r9fx_68", Sc = "_
|
|
|
1658
1659
|
propertyItemPopover_title: Oc
|
|
1659
1660
|
};
|
|
1660
1661
|
function Pc(e) {
|
|
1661
|
-
var s, r,
|
|
1662
|
+
var s, r, h;
|
|
1662
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";
|
|
1663
1664
|
function d() {
|
|
1664
|
-
const
|
|
1665
|
+
const u = Li(t == null ? void 0 : t.id), _ = () => {
|
|
1665
1666
|
var m;
|
|
1666
|
-
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);
|
|
1667
1668
|
};
|
|
1668
|
-
|
|
1669
|
+
u.length || _(), n({
|
|
1669
1670
|
content: /* @__PURE__ */ g("span", { children: [
|
|
1670
1671
|
/* @__PURE__ */ l("span", { children: "该操作会同时删除" }),
|
|
1671
1672
|
/* @__PURE__ */ g("span", { style: { color: "red" }, children: [
|
|
1672
1673
|
" ",
|
|
1673
|
-
|
|
1674
|
+
u.length,
|
|
1674
1675
|
" "
|
|
1675
1676
|
] }),
|
|
1676
1677
|
/* @__PURE__ */ g("span", { children: [
|
|
@@ -1685,13 +1686,13 @@ function Pc(e) {
|
|
|
1685
1686
|
});
|
|
1686
1687
|
}
|
|
1687
1688
|
async function o() {
|
|
1688
|
-
const
|
|
1689
|
-
if (!
|
|
1689
|
+
const u = await i.component.getPackageSourceCode(t == null ? void 0 : t.id);
|
|
1690
|
+
if (!u) {
|
|
1690
1691
|
E.warn("源码不存在");
|
|
1691
1692
|
return;
|
|
1692
1693
|
}
|
|
1693
1694
|
const _ = `${t == null ? void 0 : t.name}.js`;
|
|
1694
|
-
Jt(
|
|
1695
|
+
Jt(u, _);
|
|
1695
1696
|
}
|
|
1696
1697
|
return /* @__PURE__ */ l(
|
|
1697
1698
|
st,
|
|
@@ -1721,20 +1722,20 @@ function Pc(e) {
|
|
|
1721
1722
|
size: 4,
|
|
1722
1723
|
direction: "vertical",
|
|
1723
1724
|
style: { width: 300, maxHeight: 160, overflowY: "auto" },
|
|
1724
|
-
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: [
|
|
1725
1726
|
/* @__PURE__ */ l("div", { className: J.propertyItemPopover_body_item_icon, children: /* @__PURE__ */ l(
|
|
1726
1727
|
xe,
|
|
1727
1728
|
{
|
|
1728
|
-
src:
|
|
1729
|
+
src: u == null ? void 0 : u.icon,
|
|
1729
1730
|
style: { maxHeight: "80%", maxWidth: 32 }
|
|
1730
1731
|
}
|
|
1731
1732
|
) }),
|
|
1732
|
-
/* @__PURE__ */ l("span", { children:
|
|
1733
|
-
] },
|
|
1733
|
+
/* @__PURE__ */ l("span", { children: u == null ? void 0 : u.cName })
|
|
1734
|
+
] }, u == null ? void 0 : u.cId))
|
|
1734
1735
|
}
|
|
1735
1736
|
) })
|
|
1736
1737
|
] }),
|
|
1737
|
-
children: /* @__PURE__ */ g("div", { className: J.propertyItem, onContextMenu: (
|
|
1738
|
+
children: /* @__PURE__ */ g("div", { className: J.propertyItem, onContextMenu: (u) => u.preventDefault(), children: [
|
|
1738
1739
|
/* @__PURE__ */ l("span", { children: t == null ? void 0 : t.name }),
|
|
1739
1740
|
/* @__PURE__ */ g(D, { children: [
|
|
1740
1741
|
/* @__PURE__ */ l(
|
|
@@ -1764,10 +1765,10 @@ function Pc(e) {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
);
|
|
1766
1767
|
}
|
|
1767
|
-
const Mc = "_jsonEditor_13vbq_59", Bc = "_jsonEditor_render_13vbq_68",
|
|
1768
|
+
const Mc = "_jsonEditor_13vbq_59", Bc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
|
|
1768
1769
|
jsonEditor: Mc,
|
|
1769
1770
|
jsonEditor_render: Bc,
|
|
1770
|
-
jsonEditor_loading:
|
|
1771
|
+
jsonEditor_loading: jc
|
|
1771
1772
|
};
|
|
1772
1773
|
self.MonacoEnvironment = {
|
|
1773
1774
|
getWorker: function(e, t) {
|
|
@@ -1831,29 +1832,29 @@ function X(e) {
|
|
|
1831
1832
|
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Kt, { style: { fontSize: 20 } }) })
|
|
1832
1833
|
] });
|
|
1833
1834
|
}
|
|
1834
|
-
const
|
|
1835
|
+
const zc = ue((e) => {
|
|
1835
1836
|
const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), a = B("");
|
|
1836
1837
|
function d() {
|
|
1837
1838
|
n.validateFields(["url"]).then((s) => {
|
|
1838
1839
|
var r;
|
|
1839
|
-
if (!["http", "https"].find((
|
|
1840
|
-
var
|
|
1841
|
-
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);
|
|
1842
1843
|
})) {
|
|
1843
1844
|
E.error("地址格式不正确");
|
|
1844
1845
|
return;
|
|
1845
1846
|
}
|
|
1846
|
-
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) => {
|
|
1847
1848
|
c(!1), a.current = s == null ? void 0 : s.url, n.setFieldsValue({
|
|
1848
|
-
content:
|
|
1849
|
+
content: h
|
|
1849
1850
|
});
|
|
1850
1851
|
});
|
|
1851
1852
|
});
|
|
1852
1853
|
}
|
|
1853
1854
|
async function o() {
|
|
1854
|
-
var r,
|
|
1855
|
+
var r, h;
|
|
1855
1856
|
const s = n.getFieldValue("content");
|
|
1856
|
-
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, {
|
|
1857
1858
|
url: a.current,
|
|
1858
1859
|
content: s
|
|
1859
1860
|
}));
|
|
@@ -1879,12 +1880,12 @@ const Tc = ue((e) => {
|
|
|
1879
1880
|
] })
|
|
1880
1881
|
}
|
|
1881
1882
|
);
|
|
1882
|
-
}),
|
|
1883
|
+
}), Tc = [
|
|
1883
1884
|
{ key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
|
|
1884
1885
|
{ key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
|
|
1885
1886
|
];
|
|
1886
1887
|
function $c(e) {
|
|
1887
|
-
const t = B(), n = B(""), i =
|
|
1888
|
+
const t = B(), n = B(""), i = zc({
|
|
1888
1889
|
onOk({ url: s }) {
|
|
1889
1890
|
if (!t.current) {
|
|
1890
1891
|
E.warn("package新增失败");
|
|
@@ -1894,23 +1895,23 @@ function $c(e) {
|
|
|
1894
1895
|
}
|
|
1895
1896
|
});
|
|
1896
1897
|
function c(s, r) {
|
|
1897
|
-
var
|
|
1898
|
+
var h;
|
|
1898
1899
|
if (!s) return E.warn("不包含组件包");
|
|
1899
|
-
(
|
|
1900
|
+
(h = e == null ? void 0 : e.onAdd) == null || h.call(e, s, r || "");
|
|
1900
1901
|
}
|
|
1901
1902
|
function a(s, r) {
|
|
1902
|
-
var
|
|
1903
|
+
var h;
|
|
1903
1904
|
if (!(s != null && s.length)) return E.warn("不包含组件包");
|
|
1904
|
-
(
|
|
1905
|
+
(h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
|
|
1905
1906
|
}
|
|
1906
1907
|
async function d(s) {
|
|
1907
1908
|
var C;
|
|
1908
|
-
const r = new Blob([s], { type: s.type }),
|
|
1909
|
-
for (const
|
|
1910
|
-
if (!((C =
|
|
1909
|
+
const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
|
|
1910
|
+
for (const v in _) {
|
|
1911
|
+
if (!((C = v == null ? void 0 : v.endsWith) != null && C.call(v, ".js")))
|
|
1911
1912
|
continue;
|
|
1912
|
-
const f = await _[
|
|
1913
|
-
|
|
1913
|
+
const f = await _[v].async("text"), b = await ze(f);
|
|
1914
|
+
b && (b.origin = "local", m.push(b), y.push(f));
|
|
1914
1915
|
}
|
|
1915
1916
|
return {
|
|
1916
1917
|
pkgs: m,
|
|
@@ -1921,28 +1922,28 @@ function $c(e) {
|
|
|
1921
1922
|
let r = "";
|
|
1922
1923
|
switch (s) {
|
|
1923
1924
|
case "local":
|
|
1924
|
-
const
|
|
1925
|
-
if (!
|
|
1925
|
+
const h = await ln({ accept: "text/javascript,application/zip" });
|
|
1926
|
+
if (!h)
|
|
1926
1927
|
return;
|
|
1927
|
-
if (["application/x-zip-compressed", "application/zip"].includes(
|
|
1928
|
-
const { pkgs:
|
|
1929
|
-
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, _);
|
|
1930
1931
|
return;
|
|
1931
1932
|
}
|
|
1932
|
-
if ((
|
|
1933
|
-
r = await cn(
|
|
1934
|
-
const
|
|
1935
|
-
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)
|
|
1936
1937
|
return E.warn("文本内容必须为UMD或者AMD格式");
|
|
1937
|
-
|
|
1938
|
+
u.origin = "local", c(u, r);
|
|
1938
1939
|
return;
|
|
1939
1940
|
}
|
|
1940
1941
|
E.warn("只能上传 .js 和 .zip 文件");
|
|
1941
1942
|
break;
|
|
1942
1943
|
case "remote":
|
|
1943
1944
|
i.open({
|
|
1944
|
-
async beforeOk(
|
|
1945
|
-
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;
|
|
1946
1947
|
}
|
|
1947
1948
|
});
|
|
1948
1949
|
break;
|
|
@@ -1953,7 +1954,7 @@ function $c(e) {
|
|
|
1953
1954
|
{
|
|
1954
1955
|
trigger: ["click"],
|
|
1955
1956
|
menu: {
|
|
1956
|
-
items:
|
|
1957
|
+
items: Tc,
|
|
1957
1958
|
onClick({ key: s }) {
|
|
1958
1959
|
o(s);
|
|
1959
1960
|
}
|
|
@@ -1973,10 +1974,10 @@ function Fc(e) {
|
|
|
1973
1974
|
var i;
|
|
1974
1975
|
switch (n) {
|
|
1975
1976
|
case "umd-demo":
|
|
1976
|
-
|
|
1977
|
+
It(Ot, "测试包2.js");
|
|
1977
1978
|
break;
|
|
1978
1979
|
case "amd-demo":
|
|
1979
|
-
|
|
1980
|
+
It(Pt, "测试包1.js");
|
|
1980
1981
|
break;
|
|
1981
1982
|
case "zip-demo":
|
|
1982
1983
|
const c = await it(Ot), a = await it(Pt), d = new ft();
|
|
@@ -2020,9 +2021,9 @@ function Uc() {
|
|
|
2020
2021
|
}
|
|
2021
2022
|
);
|
|
2022
2023
|
function c(s, r) {
|
|
2023
|
-
const
|
|
2024
|
-
t.component.registerPackage(
|
|
2025
|
-
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], _);
|
|
2026
2027
|
});
|
|
2027
2028
|
}
|
|
2028
2029
|
function a(s, r) {
|
|
@@ -2031,17 +2032,17 @@ function Uc() {
|
|
|
2031
2032
|
async function d() {
|
|
2032
2033
|
const s = e.map((r) => t.component.getPackageSourceCode(r.id));
|
|
2033
2034
|
Promise.all(s).then((r) => {
|
|
2034
|
-
const
|
|
2035
|
-
let
|
|
2035
|
+
const h = new ft();
|
|
2036
|
+
let u = 0;
|
|
2036
2037
|
if (r.forEach((_, m) => {
|
|
2037
2038
|
if (!_) return;
|
|
2038
2039
|
const y = e[m];
|
|
2039
|
-
|
|
2040
|
-
}), !
|
|
2040
|
+
h.file(`${y.name}.js`, _), u++;
|
|
2041
|
+
}), !u) {
|
|
2041
2042
|
E.warn("暂无组件包");
|
|
2042
2043
|
return;
|
|
2043
2044
|
}
|
|
2044
|
-
|
|
2045
|
+
h.generateAsync({ type: "blob" }).then(function(_) {
|
|
2045
2046
|
en(_, "组件包集合.zip");
|
|
2046
2047
|
});
|
|
2047
2048
|
});
|
|
@@ -2089,8 +2090,8 @@ function Uc() {
|
|
|
2089
2090
|
Pc,
|
|
2090
2091
|
{
|
|
2091
2092
|
data: s,
|
|
2092
|
-
onDelete: (r,
|
|
2093
|
-
a(r,
|
|
2093
|
+
onDelete: (r, h) => {
|
|
2094
|
+
a(r, h);
|
|
2094
2095
|
}
|
|
2095
2096
|
},
|
|
2096
2097
|
s.id
|
|
@@ -2099,7 +2100,7 @@ function Uc() {
|
|
|
2099
2100
|
}
|
|
2100
2101
|
const qc = "_favorites_1mbr5_59", Jc = {
|
|
2101
2102
|
favorites: qc
|
|
2102
|
-
}, Wc = "_favoriteItem_1ipdv_59", Vc = "_favoriteItem_head_1ipdv_74", Gc = "_favoriteItem_name_1ipdv_83", Xc = "_favoriteItem_footer_1ipdv_93",
|
|
2103
|
+
}, Wc = "_favoriteItem_1ipdv_59", Vc = "_favoriteItem_head_1ipdv_74", Gc = "_favoriteItem_name_1ipdv_83", Xc = "_favoriteItem_footer_1ipdv_93", ke = {
|
|
2103
2104
|
favoriteItem: Wc,
|
|
2104
2105
|
favoriteItem_head: Vc,
|
|
2105
2106
|
favoriteItem_name: Gc,
|
|
@@ -2116,19 +2117,19 @@ function Yc(e) {
|
|
|
2116
2117
|
mousedown(c) {
|
|
2117
2118
|
c.stopPropagation();
|
|
2118
2119
|
}
|
|
2119
|
-
}), /* @__PURE__ */ g("div", { className:
|
|
2120
|
-
/* @__PURE__ */ l("div", { className:
|
|
2121
|
-
/* @__PURE__ */ l("div", { className:
|
|
2122
|
-
/* @__PURE__ */ g("div", { className:
|
|
2123
|
-
/* @__PURE__ */ l(
|
|
2120
|
+
}), /* @__PURE__ */ g("div", { className: ke.favoriteItem, ref: n, children: [
|
|
2121
|
+
/* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
|
|
2122
|
+
/* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
|
|
2123
|
+
/* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
|
|
2124
|
+
/* @__PURE__ */ l(T, { title: "编辑", children: /* @__PURE__ */ l(Ut, { onClick: () => {
|
|
2124
2125
|
var c;
|
|
2125
2126
|
return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
|
|
2126
2127
|
} }) }),
|
|
2127
|
-
/* @__PURE__ */ l(
|
|
2128
|
+
/* @__PURE__ */ l(T, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
|
|
2128
2129
|
var c;
|
|
2129
2130
|
return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
|
|
2130
2131
|
} }) }),
|
|
2131
|
-
/* @__PURE__ */ l(
|
|
2132
|
+
/* @__PURE__ */ l(T, { title: "详情", children: /* @__PURE__ */ l(Un, { onClick: () => {
|
|
2132
2133
|
var c;
|
|
2133
2134
|
return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
|
|
2134
2135
|
} }) })
|
|
@@ -2188,14 +2189,14 @@ const Zc = ue((e) => {
|
|
|
2188
2189
|
bodyStyle: { padding: "12px 24px 24px", height: 500, overflowY: "hidden" },
|
|
2189
2190
|
children: [
|
|
2190
2191
|
/* @__PURE__ */ g(
|
|
2191
|
-
|
|
2192
|
+
je,
|
|
2192
2193
|
{
|
|
2193
2194
|
column: 2,
|
|
2194
2195
|
labelStyle: { color: "rgba(0,0,0,0.5)", fontSize: 12 },
|
|
2195
2196
|
contentStyle: { color: "rgba(0,0,0,0.5)", fontSize: 12 },
|
|
2196
2197
|
children: [
|
|
2197
|
-
/* @__PURE__ */ l(
|
|
2198
|
-
/* @__PURE__ */ l(
|
|
2198
|
+
/* @__PURE__ */ l(je.Item, { label: "id", children: n == null ? void 0 : n.id }),
|
|
2199
|
+
/* @__PURE__ */ l(je.Item, { label: "创建时间", children: n == null ? void 0 : n.gmtCreate })
|
|
2199
2200
|
]
|
|
2200
2201
|
}
|
|
2201
2202
|
),
|
|
@@ -2293,57 +2294,57 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
|
|
|
2293
2294
|
);
|
|
2294
2295
|
});
|
|
2295
2296
|
function oa() {
|
|
2296
|
-
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(),
|
|
2297
|
-
onOk({ page:
|
|
2298
|
-
if (e.page.insert(
|
|
2299
|
-
const f = Array.from(new Set(t).add(
|
|
2300
|
-
|
|
2297
|
+
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), h = aa({
|
|
2298
|
+
onOk({ page: v, parentId: I }) {
|
|
2299
|
+
if (e.page.insert(v, I), Re(v.id), I) {
|
|
2300
|
+
const f = Array.from(new Set(t).add(I));
|
|
2301
|
+
u(f);
|
|
2301
2302
|
}
|
|
2302
2303
|
}
|
|
2303
2304
|
});
|
|
2304
|
-
function
|
|
2305
|
-
n(
|
|
2305
|
+
function u(v) {
|
|
2306
|
+
n(v), e.config.setConfigSilently({ expandedPageIds: v });
|
|
2306
2307
|
}
|
|
2307
|
-
function _(
|
|
2308
|
-
var
|
|
2309
|
-
return ((
|
|
2308
|
+
function _(v) {
|
|
2309
|
+
var I;
|
|
2310
|
+
return ((I = v == null ? void 0 : v.reduce) == null ? void 0 : I.call(v, (f, b) => f.concat([b.key, ..._(b == null ? void 0 : b.children)]), [])) || [];
|
|
2310
2311
|
}
|
|
2311
|
-
function m(
|
|
2312
|
-
|
|
2313
|
-
parentId:
|
|
2314
|
-
parentName:
|
|
2312
|
+
function m(v) {
|
|
2313
|
+
h.open({
|
|
2314
|
+
parentId: v.id,
|
|
2315
|
+
parentName: v.name
|
|
2315
2316
|
});
|
|
2316
2317
|
}
|
|
2317
|
-
function y(
|
|
2318
|
-
var
|
|
2319
|
-
const f = [
|
|
2320
|
-
if (((
|
|
2318
|
+
function y(v, I = {}) {
|
|
2319
|
+
var b, x, L, j, R, q, V;
|
|
2320
|
+
const f = [v.id, ..._(I[v.id].children)];
|
|
2321
|
+
if (((b = o.current) == null ? void 0 : b.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
|
|
2321
2322
|
E.warn("至少保留一个顶层页");
|
|
2322
2323
|
return;
|
|
2323
2324
|
}
|
|
2324
2325
|
if (f.includes(e.config.getCurrentPage())) {
|
|
2325
|
-
let Be = (R = (
|
|
2326
|
+
let Be = (R = (j = o.current) == null ? void 0 : j[0]) == null ? void 0 : R.key;
|
|
2326
2327
|
f.includes(Be) && (Be = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Be);
|
|
2327
2328
|
}
|
|
2328
2329
|
e.page.delete(f);
|
|
2329
2330
|
}
|
|
2330
|
-
function C(
|
|
2331
|
+
function C(v, I = {}) {
|
|
2331
2332
|
const f = [];
|
|
2332
|
-
return
|
|
2333
|
-
var
|
|
2334
|
-
const x =
|
|
2335
|
-
key: (x == null ? void 0 : x.key) ||
|
|
2333
|
+
return v.forEach((b) => {
|
|
2334
|
+
var j, R, q;
|
|
2335
|
+
const x = I[b.id], L = I[b.id] = {
|
|
2336
|
+
key: (x == null ? void 0 : x.key) || b.id,
|
|
2336
2337
|
title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
|
|
2337
|
-
/* @__PURE__ */ l("span", { children:
|
|
2338
|
+
/* @__PURE__ */ l("span", { children: b.name }),
|
|
2338
2339
|
/* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
|
|
2339
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(
|
|
2340
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(
|
|
2340
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(b), children: "新增" }),
|
|
2341
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(b, I), children: "删除" })
|
|
2341
2342
|
] })
|
|
2342
2343
|
] }),
|
|
2343
2344
|
children: (x == null ? void 0 : x.children) || []
|
|
2344
2345
|
};
|
|
2345
|
-
if (
|
|
2346
|
-
(q = (R =
|
|
2346
|
+
if (b != null && b.parentId) {
|
|
2347
|
+
(q = (R = I[j = b == null ? void 0 : b.parentId] || (I[j] = {
|
|
2347
2348
|
key: "",
|
|
2348
2349
|
title: "",
|
|
2349
2350
|
children: []
|
|
@@ -2369,7 +2370,7 @@ function oa() {
|
|
|
2369
2370
|
size: "small",
|
|
2370
2371
|
style: { fontSize: 12 },
|
|
2371
2372
|
onClick: () => {
|
|
2372
|
-
|
|
2373
|
+
h.open();
|
|
2373
2374
|
},
|
|
2374
2375
|
children: "新增页面"
|
|
2375
2376
|
}
|
|
@@ -2385,9 +2386,9 @@ function oa() {
|
|
|
2385
2386
|
treeData: a,
|
|
2386
2387
|
selectedKeys: i,
|
|
2387
2388
|
expandedKeys: t,
|
|
2388
|
-
onExpand:
|
|
2389
|
-
onSelect: (
|
|
2390
|
-
|
|
2389
|
+
onExpand: u,
|
|
2390
|
+
onSelect: (v) => {
|
|
2391
|
+
v.length && Re(v == null ? void 0 : v[0]);
|
|
2391
2392
|
}
|
|
2392
2393
|
}
|
|
2393
2394
|
) })
|
|
@@ -2473,7 +2474,7 @@ function _a() {
|
|
|
2473
2474
|
}
|
|
2474
2475
|
], [n.language]), c = Ee((r) => r.currentMenu), [a, d] = S(""), o = A(() => {
|
|
2475
2476
|
var r;
|
|
2476
|
-
return (r = i.find((
|
|
2477
|
+
return (r = i.find((h) => h.key === a)) == null ? void 0 : r.children;
|
|
2477
2478
|
}, [a]);
|
|
2478
2479
|
function s(r) {
|
|
2479
2480
|
d(r), e.config.setConfigSilently({
|
|
@@ -2481,8 +2482,8 @@ function _a() {
|
|
|
2481
2482
|
});
|
|
2482
2483
|
}
|
|
2483
2484
|
return w(() => {
|
|
2484
|
-
const { currentMenu: r } = e.config.getConfig(),
|
|
2485
|
-
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);
|
|
2486
2487
|
}, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
|
|
2487
2488
|
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: a, list: i, onChange: s }) }),
|
|
2488
2489
|
/* @__PURE__ */ l("div", { className: He.menu_main, children: o })
|
|
@@ -2491,7 +2492,7 @@ function _a() {
|
|
|
2491
2492
|
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
2492
2493
|
editor: ma,
|
|
2493
2494
|
editor_render: fa
|
|
2494
|
-
}, 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",
|
|
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 = {
|
|
2495
2496
|
flexCenter: ya,
|
|
2496
2497
|
"theme-text": "_theme-text_1kt3d_34",
|
|
2497
2498
|
"theme-color": "_theme-color_1kt3d_38",
|
|
@@ -2501,8 +2502,8 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
|
2501
2502
|
icon_selected: ba,
|
|
2502
2503
|
moveItem_box: Ca,
|
|
2503
2504
|
moveItem_box_lock: xa,
|
|
2504
|
-
moveItem_box_selected:
|
|
2505
|
-
moveItem_box_hover:
|
|
2505
|
+
moveItem_box_selected: Ia,
|
|
2506
|
+
moveItem_box_hover: ka,
|
|
2506
2507
|
dragPointCommon: Sa,
|
|
2507
2508
|
p_top: Na,
|
|
2508
2509
|
p_left: wa,
|
|
@@ -2514,9 +2515,9 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
|
2514
2515
|
dragPoint_top_left: Pa,
|
|
2515
2516
|
dragPoint_top_right: Ma,
|
|
2516
2517
|
dragPoint_bottom: Ba,
|
|
2517
|
-
dragPoint_bottom_left:
|
|
2518
|
-
dragPoint_bottom_right:
|
|
2519
|
-
dragPoint_left:
|
|
2518
|
+
dragPoint_bottom_left: ja,
|
|
2519
|
+
dragPoint_bottom_right: za,
|
|
2520
|
+
dragPoint_left: Ta,
|
|
2520
2521
|
dragPoint_right: $a
|
|
2521
2522
|
}, Ra = [
|
|
2522
2523
|
"top",
|
|
@@ -2591,7 +2592,7 @@ function Ka(e, t, n) {
|
|
|
2591
2592
|
width: t.offsetWidth,
|
|
2592
2593
|
height: t.offsetHeight
|
|
2593
2594
|
};
|
|
2594
|
-
const c =
|
|
2595
|
+
const c = k.getActiveEngine();
|
|
2595
2596
|
if (c)
|
|
2596
2597
|
return {
|
|
2597
2598
|
onStart() {
|
|
@@ -2674,27 +2675,27 @@ function qa(e) {
|
|
|
2674
2675
|
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
|
|
2675
2676
|
}
|
|
2676
2677
|
function Ja(e) {
|
|
2677
|
-
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),
|
|
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({
|
|
2678
2679
|
id: n.id,
|
|
2679
2680
|
// 经过实例
|
|
2680
2681
|
handleHover() {
|
|
2681
|
-
var
|
|
2682
|
-
(_ = (
|
|
2682
|
+
var u, _;
|
|
2683
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleHover) == null || _.call(u);
|
|
2683
2684
|
},
|
|
2684
2685
|
// 离开实例
|
|
2685
2686
|
handleUnHover() {
|
|
2686
|
-
var
|
|
2687
|
-
(_ = (
|
|
2687
|
+
var u, _;
|
|
2688
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleUnHover) == null || _.call(u);
|
|
2688
2689
|
},
|
|
2689
2690
|
// 选中实例样式
|
|
2690
2691
|
handleSelected() {
|
|
2691
|
-
var
|
|
2692
|
-
(_ = (
|
|
2692
|
+
var u, _;
|
|
2693
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleSelected) == null || _.call(u);
|
|
2693
2694
|
},
|
|
2694
2695
|
// 取消选中实例样式
|
|
2695
2696
|
handleUnSelected() {
|
|
2696
|
-
var
|
|
2697
|
-
(_ = (
|
|
2697
|
+
var u, _;
|
|
2698
|
+
(_ = (u = r == null ? void 0 : r.current) == null ? void 0 : u.handleUnSelected) == null || _.call(u);
|
|
2698
2699
|
},
|
|
2699
2700
|
// 获取容器dom
|
|
2700
2701
|
getContainerDom() {
|
|
@@ -2713,7 +2714,7 @@ function Ja(e) {
|
|
|
2713
2714
|
d.reload();
|
|
2714
2715
|
},
|
|
2715
2716
|
// 立刻请求一次
|
|
2716
|
-
request: (
|
|
2717
|
+
request: (u, _) => d.request(u, _)
|
|
2717
2718
|
});
|
|
2718
2719
|
return /* @__PURE__ */ g(
|
|
2719
2720
|
"div",
|
|
@@ -2729,13 +2730,13 @@ function Ja(e) {
|
|
|
2729
2730
|
zIndex: n.level
|
|
2730
2731
|
},
|
|
2731
2732
|
onMouseEnter: () => {
|
|
2732
|
-
|
|
2733
|
+
h.handleHover();
|
|
2733
2734
|
},
|
|
2734
2735
|
onMouseLeave: () => {
|
|
2735
|
-
|
|
2736
|
+
h.handleUnHover();
|
|
2736
2737
|
},
|
|
2737
2738
|
children: [
|
|
2738
|
-
/* @__PURE__ */ l(
|
|
2739
|
+
/* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
|
|
2739
2740
|
t.component,
|
|
2740
2741
|
{
|
|
2741
2742
|
useExpose: s,
|
|
@@ -2753,11 +2754,11 @@ function Ja(e) {
|
|
|
2753
2754
|
);
|
|
2754
2755
|
}
|
|
2755
2756
|
function Wa(e) {
|
|
2756
|
-
const t =
|
|
2757
|
+
const t = k.getActiveEngine();
|
|
2757
2758
|
t && Ae(e) && t.instance.getAllSelected().length && (t.instance.unselectAll(), O("取消选中组件"));
|
|
2758
2759
|
}
|
|
2759
2760
|
function Va(e, t) {
|
|
2760
|
-
const n = Ae(t), i = Pe("shift"), c =
|
|
2761
|
+
const n = Ae(t), i = Pe("shift"), c = k.getActiveEngine();
|
|
2761
2762
|
if (!c || e.lock && n && !i)
|
|
2762
2763
|
return;
|
|
2763
2764
|
t.stopPropagation();
|
|
@@ -2785,23 +2786,23 @@ function Ga(e) {
|
|
|
2785
2786
|
return {
|
|
2786
2787
|
onStart() {
|
|
2787
2788
|
return ae.set("move"), setTimeout(() => {
|
|
2788
|
-
let { list: r, showCount:
|
|
2789
|
-
i = r, c =
|
|
2790
|
-
(
|
|
2791
|
-
Xa(i, c,
|
|
2789
|
+
let { list: r, showCount: h } = Za();
|
|
2790
|
+
i = r, c = h < 300, o = Zt(
|
|
2791
|
+
(u, _) => {
|
|
2792
|
+
Xa(i, c, u, _);
|
|
2792
2793
|
},
|
|
2793
|
-
|
|
2794
|
+
h < 100 ? 0 : 20,
|
|
2794
2795
|
{
|
|
2795
2796
|
trailing: !0
|
|
2796
2797
|
}
|
|
2797
2798
|
);
|
|
2798
2799
|
}), !1;
|
|
2799
2800
|
},
|
|
2800
|
-
onMove(r,
|
|
2801
|
-
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);
|
|
2802
2803
|
},
|
|
2803
|
-
onEnd(r,
|
|
2804
|
-
ae.revoke(), d && (n.style.pointerEvents = a, Ya(i, c, r,
|
|
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);
|
|
2805
2806
|
}
|
|
2806
2807
|
};
|
|
2807
2808
|
}
|
|
@@ -2818,7 +2819,7 @@ function Xa(e, t, n, i) {
|
|
|
2818
2819
|
});
|
|
2819
2820
|
}
|
|
2820
2821
|
function Ya(e, t, n, i) {
|
|
2821
|
-
const c =
|
|
2822
|
+
const c = k.getActiveEngine();
|
|
2822
2823
|
c && e.forEach((a) => {
|
|
2823
2824
|
a != null && a.show && t && a.containerDom.style.removeProperty("transform");
|
|
2824
2825
|
const d = a == null ? void 0 : a.componentNode;
|
|
@@ -2829,7 +2830,7 @@ function Ya(e, t, n, i) {
|
|
|
2829
2830
|
});
|
|
2830
2831
|
}
|
|
2831
2832
|
function Za() {
|
|
2832
|
-
const e =
|
|
2833
|
+
const e = k.getActiveEngine();
|
|
2833
2834
|
return e ? Oe().reduce(
|
|
2834
2835
|
(n, i) => {
|
|
2835
2836
|
var d, o, s, r;
|
|
@@ -2854,8 +2855,8 @@ function Za() {
|
|
|
2854
2855
|
}
|
|
2855
2856
|
const Qa = "_rangeBox_12c3t_59", pa = {
|
|
2856
2857
|
rangeBox: Qa
|
|
2857
|
-
},
|
|
2858
|
-
const n =
|
|
2858
|
+
}, jt = Zt((e, t) => {
|
|
2859
|
+
const n = k.getActiveEngine();
|
|
2859
2860
|
if (!n) return;
|
|
2860
2861
|
const i = n.componentNode.getAll().reduce((c, a) => {
|
|
2861
2862
|
const d = {
|
|
@@ -2869,7 +2870,7 @@ const Qa = "_rangeBox_12c3t_59", pa = {
|
|
|
2869
2870
|
x2: e.x + e.width,
|
|
2870
2871
|
y2: e.y + e.height
|
|
2871
2872
|
};
|
|
2872
|
-
return
|
|
2873
|
+
return ki(d, o) && (!a.lock || a.lock && Pe("shift")) && c.push(a.id), c;
|
|
2873
2874
|
}, []);
|
|
2874
2875
|
n.instance.select(i, !0), t == null || t(i);
|
|
2875
2876
|
}, 100);
|
|
@@ -2877,37 +2878,37 @@ let F;
|
|
|
2877
2878
|
function eo(e) {
|
|
2878
2879
|
let t = { x: 0, y: 0 }, n = 1;
|
|
2879
2880
|
function i(a = 0, d = 0) {
|
|
2880
|
-
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 = {
|
|
2881
2882
|
x: t.x,
|
|
2882
2883
|
y: t.y,
|
|
2883
2884
|
width: Math.abs(a),
|
|
2884
2885
|
height: Math.abs(d)
|
|
2885
2886
|
};
|
|
2886
|
-
return r <
|
|
2887
|
+
return r < u.x && (u.x = r), h < u.y && (u.y = h), u.x /= n, u.y /= n, u;
|
|
2887
2888
|
}
|
|
2888
2889
|
function c() {
|
|
2889
2890
|
F && (F == null || F.remove(), F = void 0);
|
|
2890
2891
|
}
|
|
2891
2892
|
return {
|
|
2892
2893
|
onStart(a, d, o) {
|
|
2893
|
-
const s =
|
|
2894
|
+
const s = k.getActiveEngine();
|
|
2894
2895
|
if (!s)
|
|
2895
2896
|
return;
|
|
2896
2897
|
c();
|
|
2897
|
-
const { x: r = 0, y:
|
|
2898
|
+
const { x: r = 0, y: h = 0 } = o || {};
|
|
2898
2899
|
n = s.config.getConfig().scale;
|
|
2899
|
-
const
|
|
2900
|
-
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");
|
|
2901
2902
|
},
|
|
2902
2903
|
onMove(a, d) {
|
|
2903
2904
|
if (!F) return;
|
|
2904
2905
|
const o = i(a, d);
|
|
2905
|
-
F.style.top = `${o.y}px`, F.style.left = `${o.x}px`, F.style.width = `${o.width}px`, F.style.height = `${o.height}px`, F.style.borderWidth = "1px",
|
|
2906
|
+
F.style.top = `${o.y}px`, F.style.left = `${o.x}px`, F.style.width = `${o.width}px`, F.style.height = `${o.height}px`, F.style.borderWidth = "1px", jt(o);
|
|
2906
2907
|
},
|
|
2907
2908
|
onEnd(a, d) {
|
|
2908
2909
|
c(), ae.revoke();
|
|
2909
2910
|
const o = i(a, d);
|
|
2910
|
-
(o.width || o.height) &&
|
|
2911
|
+
(o.width || o.height) && jt(o, (s) => {
|
|
2911
2912
|
s.length && O("范围选中组件");
|
|
2912
2913
|
});
|
|
2913
2914
|
}
|
|
@@ -2917,25 +2918,25 @@ function to(e, t) {
|
|
|
2917
2918
|
return {
|
|
2918
2919
|
onEnd(n, i, c) {
|
|
2919
2920
|
setTimeout(() => {
|
|
2920
|
-
var
|
|
2921
|
-
const a =
|
|
2921
|
+
var u;
|
|
2922
|
+
const a = k.getActiveEngine();
|
|
2922
2923
|
if (!a)
|
|
2923
2924
|
return;
|
|
2924
2925
|
const d = a.config.getConfig().scale, o = e.getComponentNode(), s = e.getContainerDom();
|
|
2925
2926
|
if (!o || o != null && o.lock || !s)
|
|
2926
2927
|
return;
|
|
2927
|
-
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, {
|
|
2928
2929
|
x: (c.x - r.x) / d + o.x,
|
|
2929
2930
|
// 鼠标在编辑器上的虚拟坐标
|
|
2930
2931
|
y: (c.y - r.y) / d + o.y
|
|
2931
2932
|
});
|
|
2932
|
-
t == null || t(
|
|
2933
|
+
t == null || t(h);
|
|
2933
2934
|
});
|
|
2934
2935
|
}
|
|
2935
2936
|
};
|
|
2936
2937
|
}
|
|
2937
2938
|
function no(e, t) {
|
|
2938
|
-
const n =
|
|
2939
|
+
const n = k.getActiveEngine();
|
|
2939
2940
|
if (!n)
|
|
2940
2941
|
return;
|
|
2941
2942
|
const i = n.componentNode.getAll().reduce((d, o) => {
|
|
@@ -2947,7 +2948,7 @@ function no(e, t) {
|
|
|
2947
2948
|
return a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2948
2949
|
}
|
|
2949
2950
|
function io(e, t) {
|
|
2950
|
-
const n =
|
|
2951
|
+
const n = k.getActiveEngine();
|
|
2951
2952
|
if (!n)
|
|
2952
2953
|
return;
|
|
2953
2954
|
const i = no(e, {
|
|
@@ -2959,7 +2960,7 @@ function io(e, t) {
|
|
|
2959
2960
|
if (!a || n.componentNode.isInPanel(a, e))
|
|
2960
2961
|
return;
|
|
2961
2962
|
const d = n.componentNode.getPanelName(a) || "目标";
|
|
2962
|
-
return
|
|
2963
|
+
return kt({
|
|
2963
2964
|
title: "移入提醒",
|
|
2964
2965
|
content: `确定放入面板“${d}”?`,
|
|
2965
2966
|
onOk(o) {
|
|
@@ -2973,7 +2974,7 @@ function io(e, t) {
|
|
|
2973
2974
|
const c = e.panelId;
|
|
2974
2975
|
if (c) {
|
|
2975
2976
|
const a = n.componentNode.getPanelName(c) || "目标";
|
|
2976
|
-
return
|
|
2977
|
+
return kt({
|
|
2977
2978
|
title: "移出提醒",
|
|
2978
2979
|
content: `是否移出面板“${a}”?`,
|
|
2979
2980
|
onOk(d) {
|
|
@@ -2997,9 +2998,9 @@ function lo(e) {
|
|
|
2997
2998
|
const a = e.current;
|
|
2998
2999
|
if (!a) throw new Error("dom must be exist.");
|
|
2999
3000
|
i();
|
|
3000
|
-
const d = Ae(c), o = Xt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0),
|
|
3001
|
-
if (
|
|
3002
|
-
if (Va(
|
|
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) {
|
|
3003
3004
|
const y = ct(
|
|
3004
3005
|
c.target,
|
|
3005
3006
|
oe.dragDirection
|
|
@@ -3012,11 +3013,11 @@ function lo(e) {
|
|
|
3012
3013
|
scale: n.config.getConfig().scale,
|
|
3013
3014
|
hookQueue: [
|
|
3014
3015
|
// 监听拖拽大小
|
|
3015
|
-
y && Ka(
|
|
3016
|
+
y && Ka(u, c.target, y),
|
|
3016
3017
|
// 监听拖拽移动
|
|
3017
|
-
!y && Ga(
|
|
3018
|
+
!y && Ga(h),
|
|
3018
3019
|
// 监听是否放置到 layout 组件
|
|
3019
|
-
to(
|
|
3020
|
+
to(h, (C) => {
|
|
3020
3021
|
t.current.push(C);
|
|
3021
3022
|
})
|
|
3022
3023
|
]
|
|
@@ -3070,21 +3071,21 @@ function ao(e) {
|
|
|
3070
3071
|
un(e, {
|
|
3071
3072
|
accept: ["create-favorite"],
|
|
3072
3073
|
onDrop: (n, i) => {
|
|
3073
|
-
var
|
|
3074
|
+
var v, I;
|
|
3074
3075
|
const c = e.current;
|
|
3075
3076
|
if (!c)
|
|
3076
3077
|
throw new Error("dom must be exist.");
|
|
3077
|
-
const a = c.getBoundingClientRect(), d = (
|
|
3078
|
-
(
|
|
3079
|
-
const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x:
|
|
3080
|
-
(f,
|
|
3078
|
+
const a = c.getBoundingClientRect(), d = (v = i.data) == null ? void 0 : v.favorite;
|
|
3079
|
+
(I = d.children) != null && I.length || E.warn("收藏元素为空");
|
|
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(
|
|
3081
|
+
(f, b) => (f.x = Math.min(f.x, b.x), f.y = Math.min(f.y, b.y), f),
|
|
3081
3082
|
{
|
|
3082
3083
|
x: r.x,
|
|
3083
3084
|
y: r.y
|
|
3084
3085
|
}
|
|
3085
3086
|
), _ = t.config.getCurrentPage(), m = [], y = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
|
|
3086
|
-
onClone(f,
|
|
3087
|
-
|
|
3087
|
+
onClone(f, b) {
|
|
3088
|
+
b.x = Math.round((o + (b.x - h)) / y), b.y = Math.round((s + (b.y - u)) / y), b.pageId = _, m.push(b.id);
|
|
3088
3089
|
}
|
|
3089
3090
|
});
|
|
3090
3091
|
t.componentNode.add(C), setTimeout(() => {
|
|
@@ -3223,11 +3224,11 @@ function bo() {
|
|
|
3223
3224
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
|
|
3224
3225
|
] }),
|
|
3225
3226
|
/* @__PURE__ */ g(Le, { labelSpan: 4, children: [
|
|
3226
|
-
/* @__PURE__ */ l(
|
|
3227
|
-
/* @__PURE__ */ l(
|
|
3227
|
+
/* @__PURE__ */ l(z, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3228
|
+
/* @__PURE__ */ l(z, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
|
|
3228
3229
|
] })
|
|
3229
3230
|
] }),
|
|
3230
|
-
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(
|
|
3231
|
+
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
|
|
3231
3232
|
c,
|
|
3232
3233
|
{
|
|
3233
3234
|
componentNode: t,
|
|
@@ -3252,37 +3253,37 @@ function bo() {
|
|
|
3252
3253
|
}
|
|
3253
3254
|
const Co = "_dataSource_1t8uf_59", xo = {
|
|
3254
3255
|
dataSource: Co
|
|
3255
|
-
},
|
|
3256
|
-
requestDataSource:
|
|
3256
|
+
}, Io = "_requestDataSource_147st_59", ko = {
|
|
3257
|
+
requestDataSource: Io
|
|
3257
3258
|
};
|
|
3258
3259
|
function So(e) {
|
|
3259
|
-
const t =
|
|
3260
|
-
var r,
|
|
3261
|
-
return (
|
|
3260
|
+
const t = k.getActiveEngine(), { componentNode: n } = he(), i = A(() => {
|
|
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);
|
|
3262
3263
|
}, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
|
|
3263
3264
|
data: a,
|
|
3264
3265
|
loading: d,
|
|
3265
3266
|
refresh: o
|
|
3266
3267
|
} = pt(
|
|
3267
3268
|
async () => {
|
|
3268
|
-
var r,
|
|
3269
|
-
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}`);
|
|
3270
3271
|
},
|
|
3271
3272
|
{
|
|
3272
3273
|
refreshDeps: [n == null ? void 0 : n.id]
|
|
3273
3274
|
}
|
|
3274
3275
|
);
|
|
3275
3276
|
function s(r) {
|
|
3276
|
-
var
|
|
3277
|
-
(
|
|
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, (_) => ({
|
|
3278
3279
|
request: {
|
|
3279
3280
|
..._.request,
|
|
3280
3281
|
...r
|
|
3281
3282
|
}
|
|
3282
3283
|
}));
|
|
3283
3284
|
}
|
|
3284
|
-
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className:
|
|
3285
|
-
/* @__PURE__ */ l(
|
|
3285
|
+
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
|
|
3286
|
+
/* @__PURE__ */ l(z, { label: "请求类型", children: /* @__PURE__ */ l(
|
|
3286
3287
|
Ce,
|
|
3287
3288
|
{
|
|
3288
3289
|
allowClear: !1,
|
|
@@ -3299,7 +3300,7 @@ function So(e) {
|
|
|
3299
3300
|
}
|
|
3300
3301
|
}
|
|
3301
3302
|
) }),
|
|
3302
|
-
/* @__PURE__ */ l(
|
|
3303
|
+
/* @__PURE__ */ l(z, { label: "请求地址", children: /* @__PURE__ */ l(
|
|
3303
3304
|
p,
|
|
3304
3305
|
{
|
|
3305
3306
|
value: c == null ? void 0 : c.url,
|
|
@@ -3309,7 +3310,7 @@ function So(e) {
|
|
|
3309
3310
|
}
|
|
3310
3311
|
) }),
|
|
3311
3312
|
/* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
|
|
3312
|
-
/* @__PURE__ */ l(
|
|
3313
|
+
/* @__PURE__ */ l(z, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
3313
3314
|
/* @__PURE__ */ l(
|
|
3314
3315
|
we,
|
|
3315
3316
|
{
|
|
@@ -3333,7 +3334,7 @@ function So(e) {
|
|
|
3333
3334
|
/* @__PURE__ */ l("span", { children: "毫秒" })
|
|
3334
3335
|
] })
|
|
3335
3336
|
] }) }),
|
|
3336
|
-
/* @__PURE__ */ l(
|
|
3337
|
+
/* @__PURE__ */ l(z, { label: "初次请求", children: /* @__PURE__ */ l(
|
|
3337
3338
|
we,
|
|
3338
3339
|
{
|
|
3339
3340
|
checked: (c == null ? void 0 : c.first) ?? !1,
|
|
@@ -3344,7 +3345,7 @@ function So(e) {
|
|
|
3344
3345
|
) }),
|
|
3345
3346
|
/* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3346
3347
|
/* @__PURE__ */ l("b", { children: "数据结果" }),
|
|
3347
|
-
/* @__PURE__ */ l(
|
|
3348
|
+
/* @__PURE__ */ l(T, { title: "请求数据", children: /* @__PURE__ */ l(
|
|
3348
3349
|
Z,
|
|
3349
3350
|
{
|
|
3350
3351
|
className: "icon_clickable",
|
|
@@ -3388,7 +3389,7 @@ function Eo(e) {
|
|
|
3388
3389
|
n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
|
|
3389
3390
|
);
|
|
3390
3391
|
}, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
|
|
3391
|
-
/* @__PURE__ */ l(
|
|
3392
|
+
/* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l(T, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: a }) }) }),
|
|
3392
3393
|
/* @__PURE__ */ l(
|
|
3393
3394
|
X,
|
|
3394
3395
|
{
|
|
@@ -3411,7 +3412,7 @@ const Ao = [
|
|
|
3411
3412
|
function Lo() {
|
|
3412
3413
|
const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
|
|
3413
3414
|
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
|
|
3414
|
-
/* @__PURE__ */ l(
|
|
3415
|
+
/* @__PURE__ */ l(z, { label: "数据源", children: /* @__PURE__ */ l(
|
|
3415
3416
|
Ce,
|
|
3416
3417
|
{
|
|
3417
3418
|
value: n,
|
|
@@ -3443,7 +3444,7 @@ function Po(e) {
|
|
|
3443
3444
|
((o = (d = a == null ? void 0 : a.triggers) == null ? void 0 : d.map) == null ? void 0 : o.call(d, (s) => {
|
|
3444
3445
|
var r;
|
|
3445
3446
|
return {
|
|
3446
|
-
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)),
|
|
3447
3448
|
key: s.value,
|
|
3448
3449
|
style: { fontSize: 12 },
|
|
3449
3450
|
label: s.label
|
|
@@ -3465,12 +3466,12 @@ function Po(e) {
|
|
|
3465
3466
|
}
|
|
3466
3467
|
);
|
|
3467
3468
|
}
|
|
3468
|
-
const Mo = "_eventList_19gi2_59", Bo = "_eventList_head_19gi2_62",
|
|
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 = {
|
|
3469
3470
|
eventList: Mo,
|
|
3470
3471
|
eventList_head: Bo,
|
|
3471
|
-
eventList_body:
|
|
3472
|
-
eventList_item:
|
|
3473
|
-
eventList_item_body:
|
|
3472
|
+
eventList_body: jo,
|
|
3473
|
+
eventList_item: zo,
|
|
3474
|
+
eventList_item_body: To,
|
|
3474
3475
|
eventList_item_opt: $o,
|
|
3475
3476
|
eventList_item_opt_clickable: Ro
|
|
3476
3477
|
}, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
|
|
@@ -3482,7 +3483,7 @@ const Mo = "_eventList_19gi2_59", Bo = "_eventList_head_19gi2_62", zo = "_eventL
|
|
|
3482
3483
|
};
|
|
3483
3484
|
function qo(e) {
|
|
3484
3485
|
var t;
|
|
3485
|
-
return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(
|
|
3486
|
+
return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3486
3487
|
qt,
|
|
3487
3488
|
{
|
|
3488
3489
|
size: "small",
|
|
@@ -3498,7 +3499,7 @@ function qo(e) {
|
|
|
3498
3499
|
) }) });
|
|
3499
3500
|
}
|
|
3500
3501
|
const Jo = ue((e) => {
|
|
3501
|
-
const [t, n] =
|
|
3502
|
+
const [t, n] = zt.useState();
|
|
3502
3503
|
return w(() => {
|
|
3503
3504
|
var i;
|
|
3504
3505
|
e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
|
|
@@ -3557,7 +3558,7 @@ function mn(e) {
|
|
|
3557
3558
|
var c;
|
|
3558
3559
|
(c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
|
|
3559
3560
|
}
|
|
3560
|
-
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(
|
|
3561
|
+
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(T, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
|
|
3561
3562
|
return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
|
|
3562
3563
|
"span",
|
|
3563
3564
|
{
|
|
@@ -3580,30 +3581,30 @@ function Vo(e) {
|
|
|
3580
3581
|
var o, s, r;
|
|
3581
3582
|
const t = ((o = e == null ? void 0 : e.value) == null ? void 0 : o.type) || "default", [n, i] = S(), [c, a] = S("");
|
|
3582
3583
|
function d() {
|
|
3583
|
-
var
|
|
3584
|
+
var h;
|
|
3584
3585
|
try {
|
|
3585
|
-
const
|
|
3586
|
-
if (typeof
|
|
3586
|
+
const u = JSON.parse(c);
|
|
3587
|
+
if (typeof u != "object" || u === null) {
|
|
3587
3588
|
E.warn("只能保存对象格式数据");
|
|
3588
3589
|
return;
|
|
3589
3590
|
}
|
|
3590
|
-
(
|
|
3591
|
+
(h = e == null ? void 0 : e.onChange) == null || h.call(e, {
|
|
3591
3592
|
...e == null ? void 0 : e.value,
|
|
3592
|
-
params:
|
|
3593
|
+
params: u
|
|
3593
3594
|
}), E.success("更新成功");
|
|
3594
3595
|
} catch {
|
|
3595
3596
|
E.warn("JSON格式不正确");
|
|
3596
3597
|
}
|
|
3597
3598
|
}
|
|
3598
3599
|
return w(() => {
|
|
3599
|
-
var
|
|
3600
|
-
a(JSON.stringify(((
|
|
3600
|
+
var h;
|
|
3601
|
+
a(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
|
|
3601
3602
|
}, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), w(() => {
|
|
3602
|
-
var
|
|
3603
|
-
i((
|
|
3603
|
+
var h;
|
|
3604
|
+
i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
|
|
3604
3605
|
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Me.eventOptions_main, children: [
|
|
3605
3606
|
/* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3606
|
-
/* @__PURE__ */ l(
|
|
3607
|
+
/* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
|
|
3607
3608
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3608
3609
|
/* @__PURE__ */ l(
|
|
3609
3610
|
Ce,
|
|
@@ -3615,12 +3616,12 @@ function Vo(e) {
|
|
|
3615
3616
|
{ label: "默认", value: "default" },
|
|
3616
3617
|
{ label: "json对象", value: "json" }
|
|
3617
3618
|
],
|
|
3618
|
-
onChange: (
|
|
3619
|
-
var
|
|
3620
|
-
(
|
|
3619
|
+
onChange: (h) => {
|
|
3620
|
+
var u;
|
|
3621
|
+
(u = e == null ? void 0 : e.onChange) == null || u.call(e, {
|
|
3621
3622
|
...e == null ? void 0 : e.value,
|
|
3622
|
-
params:
|
|
3623
|
-
type:
|
|
3623
|
+
params: h === "default" ? void 0 : {},
|
|
3624
|
+
type: h
|
|
3624
3625
|
});
|
|
3625
3626
|
}
|
|
3626
3627
|
}
|
|
@@ -3630,11 +3631,11 @@ function Vo(e) {
|
|
|
3630
3631
|
{
|
|
3631
3632
|
tooltip: "解析函数",
|
|
3632
3633
|
value: n,
|
|
3633
|
-
onChange: (
|
|
3634
|
-
var
|
|
3635
|
-
i(
|
|
3634
|
+
onChange: (h) => {
|
|
3635
|
+
var u;
|
|
3636
|
+
i(h), (u = e == null ? void 0 : e.onChange) == null || u.call(e, {
|
|
3636
3637
|
...e == null ? void 0 : e.value,
|
|
3637
|
-
parserFunc:
|
|
3638
|
+
parserFunc: h
|
|
3638
3639
|
});
|
|
3639
3640
|
}
|
|
3640
3641
|
}
|
|
@@ -3642,15 +3643,15 @@ function Vo(e) {
|
|
|
3642
3643
|
] })
|
|
3643
3644
|
] }),
|
|
3644
3645
|
t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3645
|
-
/* @__PURE__ */ l(
|
|
3646
|
+
/* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
|
|
3646
3647
|
/* @__PURE__ */ l(
|
|
3647
3648
|
X,
|
|
3648
3649
|
{
|
|
3649
3650
|
value: c,
|
|
3650
3651
|
language: "json",
|
|
3651
3652
|
style: { height: 380 },
|
|
3652
|
-
onChange: (
|
|
3653
|
-
a(
|
|
3653
|
+
onChange: (h) => {
|
|
3654
|
+
a(h);
|
|
3654
3655
|
}
|
|
3655
3656
|
}
|
|
3656
3657
|
)
|
|
@@ -3674,7 +3675,7 @@ function Go(e) {
|
|
|
3674
3675
|
var d;
|
|
3675
3676
|
n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
|
|
3676
3677
|
}, [(a = e == null ? void 0 : e.value) == null ? void 0 : a.function]), /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
|
|
3677
|
-
/* @__PURE__ */ l(
|
|
3678
|
+
/* @__PURE__ */ l(z, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3678
3679
|
"div",
|
|
3679
3680
|
{
|
|
3680
3681
|
style: {
|
|
@@ -3683,7 +3684,7 @@ function Go(e) {
|
|
|
3683
3684
|
alignItems: "center",
|
|
3684
3685
|
justifyContent: "space-between"
|
|
3685
3686
|
},
|
|
3686
|
-
children: /* @__PURE__ */ l(
|
|
3687
|
+
children: /* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(Yn, { onClick: c, className: "icon_clickable" }) })
|
|
3687
3688
|
}
|
|
3688
3689
|
) }),
|
|
3689
3690
|
/* @__PURE__ */ l(
|
|
@@ -3706,8 +3707,8 @@ const Xo = {
|
|
|
3706
3707
|
json: {}
|
|
3707
3708
|
};
|
|
3708
3709
|
function Yo(e) {
|
|
3709
|
-
var r,
|
|
3710
|
-
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((
|
|
3710
|
+
var r, h, u, _, m, y, C, v, I, f, b;
|
|
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();
|
|
3711
3712
|
function s() {
|
|
3712
3713
|
var x;
|
|
3713
3714
|
if (!d)
|
|
@@ -3725,12 +3726,12 @@ function Yo(e) {
|
|
|
3725
3726
|
return w(() => {
|
|
3726
3727
|
var x;
|
|
3727
3728
|
a((x = e == null ? void 0 : e.value) == null ? void 0 : x.parserFunc);
|
|
3728
|
-
}, [(
|
|
3729
|
+
}, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), w(() => {
|
|
3729
3730
|
var x, L;
|
|
3730
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, " "));
|
|
3731
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: [
|
|
3732
3733
|
/* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3733
|
-
/* @__PURE__ */ l(
|
|
3734
|
+
/* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
|
|
3734
3735
|
/* @__PURE__ */ g(D, { children: [
|
|
3735
3736
|
/* @__PURE__ */ l(
|
|
3736
3737
|
Ce,
|
|
@@ -3768,14 +3769,14 @@ function Yo(e) {
|
|
|
3768
3769
|
] })
|
|
3769
3770
|
] }),
|
|
3770
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: [
|
|
3771
|
-
/* @__PURE__ */ l(
|
|
3772
|
+
/* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3772
3773
|
/* @__PURE__ */ g(W, { children: [
|
|
3773
|
-
((
|
|
3774
|
+
((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) === "number" && /* @__PURE__ */ l(
|
|
3774
3775
|
_t,
|
|
3775
3776
|
{
|
|
3776
3777
|
min: void 0,
|
|
3777
3778
|
style: { width: Ne * 2 },
|
|
3778
|
-
value: (
|
|
3779
|
+
value: (I = e == null ? void 0 : e.value) == null ? void 0 : I.value,
|
|
3779
3780
|
onChange: (x) => {
|
|
3780
3781
|
t({
|
|
3781
3782
|
...e == null ? void 0 : e.value,
|
|
@@ -3788,7 +3789,7 @@ function Yo(e) {
|
|
|
3788
3789
|
bi,
|
|
3789
3790
|
{
|
|
3790
3791
|
style: { width: Ne * 2 },
|
|
3791
|
-
value: (
|
|
3792
|
+
value: (b = e == null ? void 0 : e.value) == null ? void 0 : b.value,
|
|
3792
3793
|
autoSize: { minRows: 3, maxRows: 3 },
|
|
3793
3794
|
onChange: (x) => {
|
|
3794
3795
|
t({
|
|
@@ -3824,7 +3825,7 @@ function Zo(e) {
|
|
|
3824
3825
|
option: s
|
|
3825
3826
|
}));
|
|
3826
3827
|
}
|
|
3827
|
-
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) ===
|
|
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: "请选中目标操作" });
|
|
3828
3829
|
}
|
|
3829
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 = {
|
|
3830
3831
|
targetList: Qo,
|
|
@@ -3878,18 +3879,18 @@ function rd(e) {
|
|
|
3878
3879
|
var y;
|
|
3879
3880
|
const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
|
|
3880
3881
|
return c.filter((C) => {
|
|
3881
|
-
var
|
|
3882
|
-
return (
|
|
3882
|
+
var v, I, f, b;
|
|
3883
|
+
return (b = (f = (I = (v = C == null ? void 0 : C.name) == null ? void 0 : v.toLowerCase) == null ? void 0 : I.call(v)) == null ? void 0 : f.includes) == null ? void 0 : b.call(f, m);
|
|
3883
3884
|
});
|
|
3884
3885
|
}, [d, c]);
|
|
3885
|
-
function
|
|
3886
|
+
function h() {
|
|
3886
3887
|
i(!1), s.current = setTimeout(() => {
|
|
3887
3888
|
a([]), s.current = null;
|
|
3888
3889
|
}, 300);
|
|
3889
3890
|
}
|
|
3890
|
-
function
|
|
3891
|
+
function u(m) {
|
|
3891
3892
|
var y;
|
|
3892
|
-
(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();
|
|
3893
3894
|
}
|
|
3894
3895
|
return /* @__PURE__ */ l(
|
|
3895
3896
|
be,
|
|
@@ -3915,7 +3916,7 @@ function rd(e) {
|
|
|
3915
3916
|
{
|
|
3916
3917
|
className: fe.addComponentNodeButton_item,
|
|
3917
3918
|
title: m == null ? void 0 : m.name,
|
|
3918
|
-
onClick: () =>
|
|
3919
|
+
onClick: () => u(m),
|
|
3919
3920
|
children: [
|
|
3920
3921
|
/* @__PURE__ */ l(
|
|
3921
3922
|
xe,
|
|
@@ -3940,7 +3941,7 @@ function rd(e) {
|
|
|
3940
3941
|
trigger: ["click"],
|
|
3941
3942
|
open: n,
|
|
3942
3943
|
onOpenChange: (m) => {
|
|
3943
|
-
m ||
|
|
3944
|
+
m || h();
|
|
3944
3945
|
},
|
|
3945
3946
|
children: /* @__PURE__ */ l("div", { style: { width: "100%", ...e == null ? void 0 : e.style }, children: /* @__PURE__ */ l(
|
|
3946
3947
|
K,
|
|
@@ -3960,10 +3961,10 @@ function sd(e) {
|
|
|
3960
3961
|
const t = ht(), { engine: n } = N(), i = A(() => {
|
|
3961
3962
|
var o, s;
|
|
3962
3963
|
return (s = (o = e == null ? void 0 : e.targets) == null ? void 0 : o.map) == null ? void 0 : s.call(o, (r) => {
|
|
3963
|
-
var
|
|
3964
|
+
var h;
|
|
3964
3965
|
return {
|
|
3965
3966
|
value: r.id,
|
|
3966
|
-
label: (
|
|
3967
|
+
label: (h = n.componentNode.get(r == null ? void 0 : r.id)) == null ? void 0 : h.name
|
|
3967
3968
|
};
|
|
3968
3969
|
});
|
|
3969
3970
|
}, [e == null ? void 0 : e.targets]);
|
|
@@ -3981,22 +3982,22 @@ function sd(e) {
|
|
|
3981
3982
|
function a(o) {
|
|
3982
3983
|
var _, m, y;
|
|
3983
3984
|
let s;
|
|
3984
|
-
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)) || [],
|
|
3985
|
-
function
|
|
3986
|
-
var C,
|
|
3987
|
-
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((
|
|
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() {
|
|
3987
|
+
var C, v, I;
|
|
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, (v = r == null ? void 0 : r[0]) == null ? void 0 : v.id));
|
|
3988
3989
|
}
|
|
3989
|
-
if (
|
|
3990
|
+
if (h) {
|
|
3990
3991
|
t({
|
|
3991
3992
|
title: "提醒",
|
|
3992
|
-
content: `该组件已配置 ${
|
|
3993
|
+
content: `该组件已配置 ${h} 个事件操作,确定删除?`,
|
|
3993
3994
|
onOk(C) {
|
|
3994
|
-
|
|
3995
|
+
u(), C();
|
|
3995
3996
|
}
|
|
3996
3997
|
});
|
|
3997
3998
|
return;
|
|
3998
3999
|
}
|
|
3999
|
-
|
|
4000
|
+
u();
|
|
4000
4001
|
}
|
|
4001
4002
|
return /* @__PURE__ */ g("div", { className: $(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4002
4003
|
/* @__PURE__ */ l(
|
|
@@ -4004,8 +4005,8 @@ function sd(e) {
|
|
|
4004
4005
|
{
|
|
4005
4006
|
style: { margin: -1 },
|
|
4006
4007
|
beforeVisible: (o) => o.filter((s) => {
|
|
4007
|
-
var r,
|
|
4008
|
-
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)));
|
|
4009
4010
|
}),
|
|
4010
4011
|
onSelect: (o) => c(o),
|
|
4011
4012
|
children: "新增目标组件"
|
|
@@ -4056,16 +4057,16 @@ const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targ
|
|
|
4056
4057
|
addExposesButton_item_text: bd
|
|
4057
4058
|
};
|
|
4058
4059
|
function Cd(e) {
|
|
4059
|
-
var
|
|
4060
|
+
var u;
|
|
4060
4061
|
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B(), r = A(() => {
|
|
4061
4062
|
var m;
|
|
4062
4063
|
const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
|
|
4063
4064
|
return c.filter((y) => {
|
|
4064
|
-
var C,
|
|
4065
|
-
return (f = (
|
|
4065
|
+
var C, v, I, f;
|
|
4066
|
+
return (f = (I = (v = (C = y == null ? void 0 : y.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : v.call(C)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
|
|
4066
4067
|
});
|
|
4067
4068
|
}, [d, c]);
|
|
4068
|
-
function
|
|
4069
|
+
function h() {
|
|
4069
4070
|
i(!1);
|
|
4070
4071
|
}
|
|
4071
4072
|
return w(() => {
|
|
@@ -4076,7 +4077,7 @@ function Cd(e) {
|
|
|
4076
4077
|
if (e != null && e.cId) {
|
|
4077
4078
|
const y = t.component.get(e == null ? void 0 : e.cId);
|
|
4078
4079
|
m = (_ = (y == null ? void 0 : y.exposes) || []) == null ? void 0 : _.reduce(
|
|
4079
|
-
(C,
|
|
4080
|
+
(C, v) => (C.push({ label: v.label, value: v.value }), C),
|
|
4080
4081
|
[...di]
|
|
4081
4082
|
);
|
|
4082
4083
|
}
|
|
@@ -4086,19 +4087,19 @@ function Cd(e) {
|
|
|
4086
4087
|
vi,
|
|
4087
4088
|
{
|
|
4088
4089
|
visible: n,
|
|
4089
|
-
onClose:
|
|
4090
|
+
onClose: h,
|
|
4090
4091
|
overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
|
|
4091
4092
|
/* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: o }),
|
|
4092
4093
|
/* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
|
|
4093
4094
|
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
4094
|
-
(
|
|
4095
|
+
(u = r == null ? void 0 : r.map) == null ? void 0 : u.call(r, (_) => /* @__PURE__ */ l(
|
|
4095
4096
|
"div",
|
|
4096
4097
|
{
|
|
4097
4098
|
className: Se.addExposesButton_item,
|
|
4098
4099
|
title: _ == null ? void 0 : _.label,
|
|
4099
4100
|
onClick: () => {
|
|
4100
4101
|
var m;
|
|
4101
|
-
(m = e == null ? void 0 : e.onSelect) == null || m.call(e, _),
|
|
4102
|
+
(m = e == null ? void 0 : e.onSelect) == null || m.call(e, _), h();
|
|
4102
4103
|
},
|
|
4103
4104
|
children: /* @__PURE__ */ l("div", { className: Se.addExposesButton_item_text, children: _ == null ? void 0 : _.label })
|
|
4104
4105
|
},
|
|
@@ -4110,7 +4111,7 @@ function Cd(e) {
|
|
|
4110
4111
|
K,
|
|
4111
4112
|
{
|
|
4112
4113
|
block: !0,
|
|
4113
|
-
onClick: () =>
|
|
4114
|
+
onClick: () => h(),
|
|
4114
4115
|
style: { fontSize: 12, color: "rgba(0,0,0,0.5)" },
|
|
4115
4116
|
icon: /* @__PURE__ */ l(rt, {}),
|
|
4116
4117
|
children: (e == null ? void 0 : e.children) || "新增操作"
|
|
@@ -4126,7 +4127,7 @@ function xd(e) {
|
|
|
4126
4127
|
const o = t.component.get(e == null ? void 0 : e.cId);
|
|
4127
4128
|
return {
|
|
4128
4129
|
...ri,
|
|
4129
|
-
...(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), {})
|
|
4130
4131
|
};
|
|
4131
4132
|
}, [e == null ? void 0 : e.cId]), i = A(() => {
|
|
4132
4133
|
var o, s;
|
|
@@ -4148,9 +4149,9 @@ function xd(e) {
|
|
|
4148
4149
|
(r = e == null ? void 0 : e.onChangeOpts) == null || r.call(e, s);
|
|
4149
4150
|
}
|
|
4150
4151
|
function a(o) {
|
|
4151
|
-
var r,
|
|
4152
|
-
const s = ((
|
|
4153
|
-
(
|
|
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));
|
|
4154
4155
|
}
|
|
4155
4156
|
return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4156
4157
|
/* @__PURE__ */ l(
|
|
@@ -4196,58 +4197,58 @@ function xd(e) {
|
|
|
4196
4197
|
] })
|
|
4197
4198
|
] });
|
|
4198
4199
|
}
|
|
4199
|
-
const
|
|
4200
|
-
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(() => {
|
|
4201
4202
|
var f;
|
|
4202
4203
|
return (f = t.componentNode.get(o == null ? void 0 : o.id)) == null ? void 0 : f.cId;
|
|
4203
4204
|
}, [o]);
|
|
4204
4205
|
function _(f) {
|
|
4205
|
-
var x, L,
|
|
4206
|
-
const
|
|
4207
|
-
s(
|
|
4206
|
+
var x, L, j;
|
|
4207
|
+
const b = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
|
|
4208
|
+
s(b), h((j = b == null ? void 0 : b.opts) == null ? void 0 : j[0]);
|
|
4208
4209
|
}
|
|
4209
4210
|
function m(f) {
|
|
4210
|
-
var
|
|
4211
|
-
|
|
4212
|
-
(x = (
|
|
4211
|
+
var b, x;
|
|
4212
|
+
h(
|
|
4213
|
+
(x = (b = o == null ? void 0 : o.opts) == null ? void 0 : b.find) == null ? void 0 : x.call(b, (L) => (L == null ? void 0 : L.operateId) === f)
|
|
4213
4214
|
);
|
|
4214
4215
|
}
|
|
4215
|
-
function y(f,
|
|
4216
|
+
function y(f, b) {
|
|
4216
4217
|
d({
|
|
4217
4218
|
...a,
|
|
4218
4219
|
targets: f
|
|
4219
|
-
}),
|
|
4220
|
+
}), b && f.length === 1 && s(f[f.length - 1]);
|
|
4220
4221
|
}
|
|
4221
4222
|
function C(f) {
|
|
4222
|
-
var
|
|
4223
|
-
(x = (
|
|
4223
|
+
var b, x;
|
|
4224
|
+
(x = (b = a == null ? void 0 : a.targets) == null ? void 0 : b.find) == null || x.call(b, (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]);
|
|
4224
4225
|
}
|
|
4225
|
-
function
|
|
4226
|
-
var
|
|
4227
|
-
(x = (
|
|
4228
|
-
var
|
|
4229
|
-
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (
|
|
4226
|
+
function v(f) {
|
|
4227
|
+
var b, x;
|
|
4228
|
+
(x = (b = a == null ? void 0 : a.targets) == null ? void 0 : b.find) == null || x.call(b, (L) => {
|
|
4229
|
+
var j, R;
|
|
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);
|
|
4230
4231
|
}), d({ ...a });
|
|
4231
4232
|
}
|
|
4232
|
-
function
|
|
4233
|
+
function I() {
|
|
4233
4234
|
var f;
|
|
4234
4235
|
(f = e == null ? void 0 : e.onOk) == null || f.call(e, a);
|
|
4235
4236
|
}
|
|
4236
4237
|
return w(() => {
|
|
4237
|
-
var f,
|
|
4238
|
+
var f, b, x, L;
|
|
4238
4239
|
if (e != null && e.visible) {
|
|
4239
4240
|
if (!i) {
|
|
4240
4241
|
E.error("triggerId不存在");
|
|
4241
4242
|
return;
|
|
4242
4243
|
}
|
|
4243
|
-
let
|
|
4244
|
-
|
|
4245
|
-
const R = (x =
|
|
4244
|
+
let j = (b = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : b.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
|
|
4245
|
+
j = Yt(j || {}), d(j);
|
|
4246
|
+
const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
|
|
4246
4247
|
s(R);
|
|
4247
4248
|
const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
|
|
4248
|
-
|
|
4249
|
+
h(q);
|
|
4249
4250
|
} else
|
|
4250
|
-
d(void 0), s(void 0),
|
|
4251
|
+
d(void 0), s(void 0), h(void 0);
|
|
4251
4252
|
}, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
|
|
4252
4253
|
re,
|
|
4253
4254
|
{
|
|
@@ -4261,7 +4262,7 @@ const kd = ue((e) => {
|
|
|
4261
4262
|
bodyStyle: { height: 500, display: "flex", padding: 16, userSelect: "none" },
|
|
4262
4263
|
afterClose: e == null ? void 0 : e.afterClose,
|
|
4263
4264
|
onCancel: e == null ? void 0 : e.onCancel,
|
|
4264
|
-
onOk:
|
|
4265
|
+
onOk: I,
|
|
4265
4266
|
children: [
|
|
4266
4267
|
/* @__PURE__ */ g("div", { className: Ye.editEventDialog_menu, children: [
|
|
4267
4268
|
/* @__PURE__ */ l(
|
|
@@ -4273,8 +4274,8 @@ const kd = ue((e) => {
|
|
|
4273
4274
|
_(f);
|
|
4274
4275
|
},
|
|
4275
4276
|
targets: a == null ? void 0 : a.targets,
|
|
4276
|
-
onChangeTargets: (f,
|
|
4277
|
-
y(f,
|
|
4277
|
+
onChangeTargets: (f, b) => {
|
|
4278
|
+
y(f, b === "add");
|
|
4278
4279
|
}
|
|
4279
4280
|
}
|
|
4280
4281
|
),
|
|
@@ -4285,7 +4286,7 @@ const kd = ue((e) => {
|
|
|
4285
4286
|
onChange: (f) => {
|
|
4286
4287
|
m(f);
|
|
4287
4288
|
},
|
|
4288
|
-
cId:
|
|
4289
|
+
cId: u,
|
|
4289
4290
|
opts: o == null ? void 0 : o.opts,
|
|
4290
4291
|
onChangeOpts: (f) => {
|
|
4291
4292
|
C(f);
|
|
@@ -4298,7 +4299,7 @@ const kd = ue((e) => {
|
|
|
4298
4299
|
{
|
|
4299
4300
|
value: r,
|
|
4300
4301
|
onChange: (f) => {
|
|
4301
|
-
|
|
4302
|
+
v(f);
|
|
4302
4303
|
}
|
|
4303
4304
|
}
|
|
4304
4305
|
) })
|
|
@@ -4306,87 +4307,87 @@ const kd = ue((e) => {
|
|
|
4306
4307
|
}
|
|
4307
4308
|
);
|
|
4308
4309
|
});
|
|
4309
|
-
function
|
|
4310
|
-
var
|
|
4311
|
-
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a =
|
|
4312
|
-
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) {
|
|
4313
4314
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4314
4315
|
var m, y;
|
|
4315
|
-
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)), {
|
|
4316
4317
|
events: _ == null ? void 0 : _.events
|
|
4317
4318
|
};
|
|
4318
4319
|
});
|
|
4319
4320
|
}
|
|
4320
4321
|
}), d = A(() => {
|
|
4321
|
-
var
|
|
4322
|
-
return ((
|
|
4322
|
+
var u;
|
|
4323
|
+
return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
|
|
4323
4324
|
var y, C;
|
|
4324
|
-
const m = (C = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : C.call(y, (
|
|
4325
|
+
const m = (C = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : C.call(y, (v) => (v == null ? void 0 : v.value) === _.triggerId);
|
|
4325
4326
|
return {
|
|
4326
4327
|
label: `${(m == null ? void 0 : m.label) || "-"}`,
|
|
4327
4328
|
value: `${_.triggerId}`
|
|
4328
4329
|
};
|
|
4329
4330
|
})) || [];
|
|
4330
4331
|
}, [n, i]);
|
|
4331
|
-
function o(
|
|
4332
|
-
if (!(
|
|
4332
|
+
function o(u) {
|
|
4333
|
+
if (!(u != null && u.value)) {
|
|
4333
4334
|
E.warn("triggerId不存在");
|
|
4334
4335
|
return;
|
|
4335
4336
|
}
|
|
4336
4337
|
a.open({
|
|
4337
4338
|
componentNode: n,
|
|
4338
|
-
triggerId:
|
|
4339
|
-
triggerName:
|
|
4339
|
+
triggerId: u == null ? void 0 : u.value,
|
|
4340
|
+
triggerName: u == null ? void 0 : u.label
|
|
4340
4341
|
});
|
|
4341
4342
|
}
|
|
4342
|
-
function s(
|
|
4343
|
+
function s(u) {
|
|
4343
4344
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4344
4345
|
var m, y;
|
|
4345
4346
|
return {
|
|
4346
4347
|
events: [
|
|
4347
|
-
...((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)) || []
|
|
4348
4349
|
]
|
|
4349
4350
|
};
|
|
4350
4351
|
});
|
|
4351
4352
|
}
|
|
4352
|
-
function r(
|
|
4353
|
-
var m, y, C,
|
|
4354
|
-
if (!
|
|
4353
|
+
function r(u) {
|
|
4354
|
+
var m, y, C, v;
|
|
4355
|
+
if (!u) {
|
|
4355
4356
|
E.warn("triggerId不存在");
|
|
4356
4357
|
return;
|
|
4357
4358
|
}
|
|
4358
|
-
const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (
|
|
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);
|
|
4359
4360
|
(C = _ == null ? void 0 : _.targets) != null && C.length ? c({
|
|
4360
4361
|
title: "提醒",
|
|
4361
|
-
content: `已配置${((
|
|
4362
|
-
onOk(
|
|
4363
|
-
s(
|
|
4362
|
+
content: `已配置${((v = _ == null ? void 0 : _.targets) == null ? void 0 : v.length) || 0}个事件项,确定删除该事件?`,
|
|
4363
|
+
onOk(I) {
|
|
4364
|
+
s(u), I();
|
|
4364
4365
|
}
|
|
4365
|
-
}) : s(
|
|
4366
|
+
}) : s(u);
|
|
4366
4367
|
}
|
|
4367
4368
|
return /* @__PURE__ */ g("div", { className: G.eventList, children: [
|
|
4368
4369
|
/* @__PURE__ */ l("div", { className: G.eventList_head, children: "绑定事件:" }),
|
|
4369
4370
|
/* @__PURE__ */ g("div", { className: G.eventList_body, children: [
|
|
4370
4371
|
!(d != null && d.length) && /* @__PURE__ */ l(U, {}),
|
|
4371
|
-
(
|
|
4372
|
-
/* @__PURE__ */ l("div", { className: G.eventList_item_body, children:
|
|
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 }),
|
|
4373
4374
|
/* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
|
|
4374
4375
|
/* @__PURE__ */ l(
|
|
4375
4376
|
Ft,
|
|
4376
4377
|
{
|
|
4377
4378
|
className: G.eventList_item_opt_clickable,
|
|
4378
|
-
onClick: () => o(
|
|
4379
|
+
onClick: () => o(u)
|
|
4379
4380
|
}
|
|
4380
4381
|
),
|
|
4381
4382
|
/* @__PURE__ */ l(
|
|
4382
4383
|
de,
|
|
4383
4384
|
{
|
|
4384
4385
|
className: G.eventList_item_opt_clickable,
|
|
4385
|
-
onClick: () => r(
|
|
4386
|
+
onClick: () => r(u == null ? void 0 : u.value)
|
|
4386
4387
|
}
|
|
4387
4388
|
)
|
|
4388
4389
|
] })
|
|
4389
|
-
] },
|
|
4390
|
+
] }, u.value))
|
|
4390
4391
|
] })
|
|
4391
4392
|
] });
|
|
4392
4393
|
}
|
|
@@ -4410,7 +4411,7 @@ function Sd() {
|
|
|
4410
4411
|
}
|
|
4411
4412
|
}
|
|
4412
4413
|
),
|
|
4413
|
-
/* @__PURE__ */ l(
|
|
4414
|
+
/* @__PURE__ */ l(kd, { componentNode: t })
|
|
4414
4415
|
] }) });
|
|
4415
4416
|
}
|
|
4416
4417
|
const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_76", Ze = {
|
|
@@ -4444,9 +4445,9 @@ function Ad() {
|
|
|
4444
4445
|
/* @__PURE__ */ g("div", { className: Ze.json_head, children: [
|
|
4445
4446
|
/* @__PURE__ */ g("span", { children: [
|
|
4446
4447
|
/* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
|
|
4447
|
-
/* @__PURE__ */ l(
|
|
4448
|
+
/* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
|
|
4448
4449
|
] }),
|
|
4449
|
-
/* @__PURE__ */ l(
|
|
4450
|
+
/* @__PURE__ */ l(T, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
|
|
4450
4451
|
] }),
|
|
4451
4452
|
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
|
|
4452
4453
|
X,
|
|
@@ -4467,7 +4468,7 @@ function Ad() {
|
|
|
4467
4468
|
}
|
|
4468
4469
|
const Ld = "_singleAttributes_109pm_59", Dd = {
|
|
4469
4470
|
singleAttributes: Ld
|
|
4470
|
-
}, fn =
|
|
4471
|
+
}, fn = In({}), he = () => kn(fn);
|
|
4471
4472
|
function yn(e) {
|
|
4472
4473
|
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = nn(c);
|
|
4473
4474
|
return w(() => {
|
|
@@ -4527,7 +4528,7 @@ function Bd(e) {
|
|
|
4527
4528
|
}
|
|
4528
4529
|
);
|
|
4529
4530
|
}
|
|
4530
|
-
function
|
|
4531
|
+
function jd(e) {
|
|
4531
4532
|
const { instances: t } = e, [n, i] = S();
|
|
4532
4533
|
return w(() => {
|
|
4533
4534
|
i(t[0]);
|
|
@@ -4546,9 +4547,9 @@ function zd(e) {
|
|
|
4546
4547
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(yn, { instance: n }) })
|
|
4547
4548
|
] });
|
|
4548
4549
|
}
|
|
4549
|
-
const
|
|
4550
|
-
pageAttributes:
|
|
4551
|
-
pageAttributes_description:
|
|
4550
|
+
const zd = "_pageAttributes_u2l2i_59", Td = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
|
|
4551
|
+
pageAttributes: zd,
|
|
4552
|
+
pageAttributes_description: Td,
|
|
4552
4553
|
pageAttributes_body: $d
|
|
4553
4554
|
};
|
|
4554
4555
|
function Rd() {
|
|
@@ -4575,7 +4576,7 @@ function Rd() {
|
|
|
4575
4576
|
] }) }),
|
|
4576
4577
|
/* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
|
|
4577
4578
|
/* @__PURE__ */ g(
|
|
4578
|
-
|
|
4579
|
+
z,
|
|
4579
4580
|
{
|
|
4580
4581
|
label: "页面背景",
|
|
4581
4582
|
labelTip: "设置当前页背景颜色",
|
|
@@ -4591,7 +4592,7 @@ function Rd() {
|
|
|
4591
4592
|
}
|
|
4592
4593
|
}
|
|
4593
4594
|
),
|
|
4594
|
-
/* @__PURE__ */ l(
|
|
4595
|
+
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4595
4596
|
Z,
|
|
4596
4597
|
{
|
|
4597
4598
|
className: "icon_clickable",
|
|
@@ -4604,7 +4605,7 @@ function Rd() {
|
|
|
4604
4605
|
}
|
|
4605
4606
|
),
|
|
4606
4607
|
/* @__PURE__ */ g(
|
|
4607
|
-
|
|
4608
|
+
z,
|
|
4608
4609
|
{
|
|
4609
4610
|
label: "白板背景",
|
|
4610
4611
|
labelTip: "页面所处白板的背景颜色",
|
|
@@ -4620,7 +4621,7 @@ function Rd() {
|
|
|
4620
4621
|
}
|
|
4621
4622
|
}
|
|
4622
4623
|
),
|
|
4623
|
-
/* @__PURE__ */ l(
|
|
4624
|
+
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4624
4625
|
Z,
|
|
4625
4626
|
{
|
|
4626
4627
|
className: "icon_clickable",
|
|
@@ -4633,7 +4634,7 @@ function Rd() {
|
|
|
4633
4634
|
}
|
|
4634
4635
|
),
|
|
4635
4636
|
/* @__PURE__ */ g(
|
|
4636
|
-
|
|
4637
|
+
z,
|
|
4637
4638
|
{
|
|
4638
4639
|
label: "边框",
|
|
4639
4640
|
childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
|
|
@@ -4661,7 +4662,7 @@ function Rd() {
|
|
|
4661
4662
|
}
|
|
4662
4663
|
}
|
|
4663
4664
|
),
|
|
4664
|
-
/* @__PURE__ */ l(
|
|
4665
|
+
/* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4665
4666
|
Z,
|
|
4666
4667
|
{
|
|
4667
4668
|
className: "icon_clickable",
|
|
@@ -4683,7 +4684,7 @@ function Fd() {
|
|
|
4683
4684
|
// 选中组件实例配置
|
|
4684
4685
|
/* @__PURE__ */ g(W, { children: [
|
|
4685
4686
|
n && /* @__PURE__ */ l(yn, { instance: e[0] }),
|
|
4686
|
-
!n && /* @__PURE__ */ l(
|
|
4687
|
+
!n && /* @__PURE__ */ l(jd, { instances: e })
|
|
4687
4688
|
] })
|
|
4688
4689
|
) : (
|
|
4689
4690
|
// 默认页面配置
|
|
@@ -4691,20 +4692,20 @@ function Fd() {
|
|
|
4691
4692
|
) });
|
|
4692
4693
|
}
|
|
4693
4694
|
function Cr(e) {
|
|
4694
|
-
const { engine: t, json: n } = e;
|
|
4695
|
-
return pi(),
|
|
4695
|
+
const { engine: t, json: n, pageFooter: i } = e;
|
|
4696
|
+
return pi(), zt.useEffect(() => {
|
|
4696
4697
|
t.loadJSON(n).then(() => {
|
|
4697
|
-
var
|
|
4698
|
-
(
|
|
4698
|
+
var c;
|
|
4699
|
+
(c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
|
|
4699
4700
|
});
|
|
4700
4701
|
}, []), /* @__PURE__ */ g("div", { className: te.page, children: [
|
|
4701
|
-
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, {}) }),
|
|
4702
|
+
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo }) }),
|
|
4702
4703
|
/* @__PURE__ */ g("div", { className: te.page_body, children: [
|
|
4703
4704
|
/* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
|
|
4704
4705
|
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|
|
4705
4706
|
/* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
|
|
4706
4707
|
] }),
|
|
4707
|
-
|
|
4708
|
+
i ? /* @__PURE__ */ l(i, {}) : /* @__PURE__ */ l(W, {})
|
|
4708
4709
|
] });
|
|
4709
4710
|
}
|
|
4710
4711
|
export {
|