react-big-screen 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/es/{attributes-C-2HGh7n.mjs → attributes--4TLwTJ7.mjs} +1 -1
- package/es/{attributes-BY9LFsFw.mjs → attributes-BQVvyBiv.mjs} +2 -2
- package/es/{attributes-Bhf8aq33.mjs → attributes-BWVuAA3i.mjs} +1 -1
- package/es/{attributes-Co1ow14s.mjs → attributes-BqRyp1ob.mjs} +1 -1
- package/es/{attributes-DA33m9Y9.mjs → attributes-Bzd30ZIf.mjs} +1 -1
- package/es/{attributes-B7qe3na4.mjs → attributes-C-FswaWY.mjs} +1 -1
- package/es/{attributes-Cafkrvu7.mjs → attributes-C1NWgfsy.mjs} +1 -1
- package/es/{attributes-DHS3sD2D.mjs → attributes-CRjnUsRx.mjs} +1 -1
- package/es/{attributes-BHXwz8DS.mjs → attributes-DLLyxz0N.mjs} +1 -1
- package/es/{attributes-D4vnJckc.mjs → attributes-DmdRtgZZ.mjs} +1 -1
- package/es/{attributes-B22MPpVh.mjs → attributes-Ds-UHXjB.mjs} +1 -1
- package/es/{attributes-BSyypEpa.mjs → attributes-Dsp5j2A0.mjs} +1 -1
- package/es/{index-BJtlNwtn.mjs → index-3xI6pYK_.mjs} +3 -3
- package/es/{index-BwfaMw7n.mjs → index-B152sOCT.mjs} +2 -2
- package/es/{index-Di_W06G4.mjs → index-B5kA4V3C.mjs} +2 -2
- package/es/{index-CbBZ1IB5.mjs → index-BaXFBriK.mjs} +611 -627
- package/es/{index-iKRmo_CT.mjs → index-BkiBaEzs.mjs} +2 -2
- package/es/{index-DK4n2qWe.mjs → index-BvuyAzoz.mjs} +2 -2
- package/es/{index-B04LrNP4.mjs → index-BxFObudF.mjs} +3 -3
- package/es/{index-NbXTfi6i.mjs → index-BxnULZLw.mjs} +2 -2
- package/es/{index-BlDZ5Cim.mjs → index-C18T8lZz.mjs} +2 -2
- package/es/{index-DTdAvmYK.mjs → index-C3s_52_F.mjs} +2 -2
- package/es/{index-DrefJIAb.mjs → index-CCiktl86.mjs} +2 -2
- package/es/{index-BlNCwWBW.mjs → index-CWVkCbis.mjs} +3 -3
- package/es/{index-Cns7J-Ox.mjs → index-Cp4rqgjF.mjs} +3 -3
- package/es/{index-DkSqpC9L.mjs → index-D-q9tYW0.mjs} +2 -2
- package/es/{index-DqK216F5.mjs → index-DB6gZpoX.mjs} +2 -2
- package/es/{index-DYS15zup.mjs → index-DSLm4B3h.mjs} +2 -2
- package/es/{index-Dxk5bHke.mjs → index-DTUaHCnR.mjs} +239 -222
- package/es/{index-Di88TsQW.mjs → index-Dd7rZVc_.mjs} +2 -2
- package/es/{index-Chb6B0XW.mjs → index-DjkNh2yG.mjs} +2 -2
- package/es/{index-C91DsF8W.mjs → index-NxDdAVMu.mjs} +1 -1
- package/es/{index-CqPfpOtj.mjs → index-O_OcKtSF.mjs} +1 -1
- package/es/{index-Bqq-aMFf.mjs → index-RYQ9EzNC.mjs} +2 -2
- package/es/{index-BREwG7-S.mjs → index-fj1Y8y5V.mjs} +2 -2
- package/es/{index-Cgav8dub.mjs → index-gJTpfQvV.mjs} +2 -2
- package/es/{index-DdH0frNw.mjs → index-hk0ols1y.mjs} +2 -2
- package/es/{index-BsaJL81Y.mjs → index-z6ax5THp.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-BnTwfy5A.mjs → selectPage-BrsWx9sU.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-CVMcOaf7.mjs → useCurrentPageId-BFU6rfHk.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +2 -0
- package/types/src/export/index.d.ts +8 -2
- package/types/src/pages/components/Footer/index.d.ts +1 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var vn = Object.defineProperty;
|
|
2
2
|
var bn = (e, t, n) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var ee = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as l, jsxs as g, Fragment as W } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
5
|
-
import
|
|
6
|
-
import { DownOutlined as Sn, ReloadOutlined as
|
|
7
|
-
import { message as E, Tooltip as
|
|
5
|
+
import Tt, { useRef as B, useEffect as w, useMemo as A, useState as S, forwardRef as Cn, useImperativeHandle as xn, Suspense as jt, createContext as kn, useContext as In } 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 zn, UnlockOutlined as Tn, BlockOutlined as jn, 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 j, 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 ze, 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 I, 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 Te, h as kt, i as oi, j as It, I as je, k as di, m as ri } from "./index-DTUaHCnR.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-C3s_52_F.mjs";
|
|
16
16
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
|
|
17
|
-
import { I as
|
|
17
|
+
import { I as p, L as Le, a as T, 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 ki, throttle as Zt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js";
|
|
23
23
|
import { useUpdateEffect as mt, useUnmount as Qt, useRequest as pt } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/ahooks@3.9.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/ahooks/es/index.js";
|
|
24
|
-
import { I as
|
|
24
|
+
import { I as U, i as Ii, 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-BrsWx9sU.mjs";
|
|
34
|
+
import { u as Ei } from "./useCurrentPageId-BFU6rfHk.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-NxDdAVMu.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 = I.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) => {
|
|
@@ -174,25 +174,25 @@ function main(target, origin, payload) {
|
|
|
174
174
|
dragDirection: "d_dir"
|
|
175
175
|
// 拖拽大小方向
|
|
176
176
|
};
|
|
177
|
-
function
|
|
177
|
+
function zi(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 Ti(e) {
|
|
184
|
+
w(() => zi(e), []);
|
|
185
185
|
}
|
|
186
186
|
function at() {
|
|
187
|
-
const e =
|
|
187
|
+
const e = I.getActiveEngine();
|
|
188
188
|
e && (e.componentNode.delete(Oe()), O("删除选中组件"));
|
|
189
189
|
}
|
|
190
190
|
function on() {
|
|
191
|
-
const e =
|
|
191
|
+
const e = I.getActiveEngine();
|
|
192
192
|
e && (e.instance.selectAll(), O("全选组件"));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
const e =
|
|
194
|
+
function ji() {
|
|
195
|
+
const e = I.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 Ti() {
|
|
|
201
201
|
}), O("组件左移"));
|
|
202
202
|
}
|
|
203
203
|
function $i() {
|
|
204
|
-
const e =
|
|
204
|
+
const e = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.getActiveEngine();
|
|
255
255
|
e && e.instance.getAllSelected().length && (e.instance.unselectAll(), O("取消全选组件"));
|
|
256
256
|
}
|
|
257
257
|
function Ki() {
|
|
258
|
-
const e =
|
|
258
|
+
const e = I.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, {
|
|
@@ -263,8 +263,8 @@ function Ki() {
|
|
|
263
263
|
});
|
|
264
264
|
}), e.instance.unselectAll();
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
const e =
|
|
266
|
+
function Ui() {
|
|
267
|
+
const e = I.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, {
|
|
@@ -272,8 +272,8 @@ function qi() {
|
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const e =
|
|
275
|
+
function qi() {
|
|
276
|
+
const e = I.getActiveEngine();
|
|
277
277
|
if (!e) return;
|
|
278
278
|
const t = e.instance.getAllSelected();
|
|
279
279
|
if (t.length < 2)
|
|
@@ -285,7 +285,7 @@ function Ui() {
|
|
|
285
285
|
e.componentNode.createGroup(n);
|
|
286
286
|
}
|
|
287
287
|
function Ji() {
|
|
288
|
-
const e =
|
|
288
|
+
const e = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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 = I.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
|
+
Ti({
|
|
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(), ji();
|
|
419
419
|
},
|
|
420
420
|
right: (e) => {
|
|
421
421
|
e.preventDefault(), $i();
|
|
@@ -434,26 +434,24 @@ function pi() {
|
|
|
434
434
|
"Shift + Ctrl + Z": () => ot()
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
const el = "
|
|
437
|
+
const el = "_page_1i4ky_59", tl = "_page_header_1i4ky_69", nl = "_page_body_1i4ky_74", il = "_page_body_left_1i4ky_79", ll = "_page_body_main_1i4ky_86", cl = "_page_body_right_1i4ky_91", te = {
|
|
438
438
|
page: el,
|
|
439
439
|
page_header: tl,
|
|
440
440
|
page_body: nl,
|
|
441
441
|
page_body_left: il,
|
|
442
442
|
page_body_main: ll,
|
|
443
|
-
page_body_right: cl
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
tooltipButton_hover: hl,
|
|
453
|
-
tooltipButton_disabled: gl
|
|
443
|
+
page_body_right: cl
|
|
444
|
+
}, al = "_header_2phks_59", ol = "_header_flex_2phks_67", dl = "_header_flex_btnContainer_2phks_68", ke = {
|
|
445
|
+
header: al,
|
|
446
|
+
header_flex: ol,
|
|
447
|
+
header_flex_btnContainer: dl
|
|
448
|
+
}, rl = "_tooltipButton_tq7lx_59", sl = "_tooltipButton_hover_tq7lx_70", ul = "_tooltipButton_disabled_tq7lx_73", Fe = {
|
|
449
|
+
tooltipButton: rl,
|
|
450
|
+
tooltipButton_hover: sl,
|
|
451
|
+
tooltipButton_disabled: ul
|
|
454
452
|
};
|
|
455
453
|
function rn(e) {
|
|
456
|
-
return /* @__PURE__ */ l(
|
|
454
|
+
return /* @__PURE__ */ l(j, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
|
|
457
455
|
"div",
|
|
458
456
|
{
|
|
459
457
|
className: $(
|
|
@@ -511,11 +509,11 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
|
|
|
511
509
|
function Nt(e) {
|
|
512
510
|
return /* @__PURE__ */ l("svg", { className: "icon", "aria-hidden": "true", children: /* @__PURE__ */ l("use", { xlinkHref: `#${e == null ? void 0 : e.type}` }) });
|
|
513
511
|
}
|
|
514
|
-
const
|
|
515
|
-
sizeBar:
|
|
516
|
-
},
|
|
517
|
-
inputNumberWithSuffix:
|
|
518
|
-
inputNumberWithSuffix_suffix:
|
|
512
|
+
const hl = "_sizeBar_1yvet_59", gl = {
|
|
513
|
+
sizeBar: hl
|
|
514
|
+
}, _l = "_inputNumberWithSuffix_1pwr4_59", ml = "_inputNumberWithSuffix_suffix_1pwr4_63", wt = {
|
|
515
|
+
inputNumberWithSuffix: _l,
|
|
516
|
+
inputNumberWithSuffix_suffix: ml
|
|
519
517
|
};
|
|
520
518
|
function Et(e) {
|
|
521
519
|
const { suffix: t, containerStyle: n, containerClassName: i, ...c } = e;
|
|
@@ -531,13 +529,13 @@ function Et(e) {
|
|
|
531
529
|
}
|
|
532
530
|
);
|
|
533
531
|
}
|
|
534
|
-
const
|
|
532
|
+
const fl = {
|
|
535
533
|
50: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "50%" }),
|
|
536
534
|
100: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "100%" }),
|
|
537
535
|
150: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "150%" }),
|
|
538
536
|
200: " "
|
|
539
537
|
};
|
|
540
|
-
function
|
|
538
|
+
function yl(e) {
|
|
541
539
|
const { value: t = 1, isCustom: n } = e, i = Ee(), c = A(() => i.scaleMinZoom * 100, [i]), a = A(() => i.scaleMaxZoom * 100, [i]), d = A(() => i.scaleDefault * 100, [i]), o = A(() => Math.round(t * 100), [t]);
|
|
542
540
|
function s(r) {
|
|
543
541
|
var h;
|
|
@@ -557,7 +555,7 @@ function bl(e) {
|
|
|
557
555
|
tooltip: {
|
|
558
556
|
formatter: (r) => `${r}%`
|
|
559
557
|
},
|
|
560
|
-
marks:
|
|
558
|
+
marks: fl,
|
|
561
559
|
value: o,
|
|
562
560
|
onChange: s
|
|
563
561
|
}
|
|
@@ -577,7 +575,7 @@ function bl(e) {
|
|
|
577
575
|
}
|
|
578
576
|
),
|
|
579
577
|
/* @__PURE__ */ l(rn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
|
|
580
|
-
|
|
578
|
+
Z,
|
|
581
579
|
{
|
|
582
580
|
className: "theme-color icon_clickable",
|
|
583
581
|
onClick: () => {
|
|
@@ -594,9 +592,9 @@ function bl(e) {
|
|
|
594
592
|
}
|
|
595
593
|
);
|
|
596
594
|
}
|
|
597
|
-
function
|
|
595
|
+
function vl() {
|
|
598
596
|
const e = Ee(), { engine: t } = N();
|
|
599
|
-
return /* @__PURE__ */ g("div", { className:
|
|
597
|
+
return /* @__PURE__ */ g("div", { className: gl.sizeBar, id: "rbs-sizebar", children: [
|
|
600
598
|
/* @__PURE__ */ l(
|
|
601
599
|
Et,
|
|
602
600
|
{
|
|
@@ -623,7 +621,7 @@ function Cl() {
|
|
|
623
621
|
}
|
|
624
622
|
),
|
|
625
623
|
/* @__PURE__ */ l(
|
|
626
|
-
|
|
624
|
+
yl,
|
|
627
625
|
{
|
|
628
626
|
value: e.scale,
|
|
629
627
|
onChange: (n) => {
|
|
@@ -654,7 +652,7 @@ function P({ children: e }) {
|
|
|
654
652
|
}
|
|
655
653
|
);
|
|
656
654
|
}
|
|
657
|
-
function
|
|
655
|
+
function bl() {
|
|
658
656
|
const [e] = se();
|
|
659
657
|
return /* @__PURE__ */ g(
|
|
660
658
|
D,
|
|
@@ -792,15 +790,15 @@ function xl() {
|
|
|
792
790
|
}
|
|
793
791
|
);
|
|
794
792
|
}
|
|
795
|
-
const
|
|
796
|
-
function
|
|
793
|
+
const Cl = ["rbs-screen.top"];
|
|
794
|
+
function xl(e = window.location.host) {
|
|
797
795
|
const t = e == null ? void 0 : e.toLowerCase();
|
|
798
|
-
return
|
|
796
|
+
return Cl.some((n) => {
|
|
799
797
|
var i, c;
|
|
800
798
|
return (c = t == null ? void 0 : t.includes) == null ? void 0 : c.call(t, (i = n == null ? void 0 : n.toLowerCase) == null ? void 0 : i.call(n));
|
|
801
799
|
});
|
|
802
800
|
}
|
|
803
|
-
const
|
|
801
|
+
const kl = (e, t, n) => {
|
|
804
802
|
const i = e[t];
|
|
805
803
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, a) => {
|
|
806
804
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -813,12 +811,12 @@ const Sl = (e, t, n) => {
|
|
|
813
811
|
);
|
|
814
812
|
});
|
|
815
813
|
};
|
|
816
|
-
async function
|
|
814
|
+
async function Il(e) {
|
|
817
815
|
var i;
|
|
818
|
-
const t = await
|
|
816
|
+
const t = await kl(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-DTUaHCnR.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-DTUaHCnR.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = I.getActiveEngine();
|
|
819
817
|
(i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
|
|
820
818
|
}
|
|
821
|
-
function
|
|
819
|
+
function Sl() {
|
|
822
820
|
return /* @__PURE__ */ l(
|
|
823
821
|
be,
|
|
824
822
|
{
|
|
@@ -831,14 +829,14 @@ function wl() {
|
|
|
831
829
|
}
|
|
832
830
|
],
|
|
833
831
|
onClick({ key: e }) {
|
|
834
|
-
|
|
832
|
+
Il(e);
|
|
835
833
|
}
|
|
836
834
|
},
|
|
837
835
|
children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, id: "rbs-choose-example-button", children: "切换示例" })
|
|
838
836
|
}
|
|
839
837
|
);
|
|
840
838
|
}
|
|
841
|
-
function
|
|
839
|
+
function Nl() {
|
|
842
840
|
return /* @__PURE__ */ l(
|
|
843
841
|
K,
|
|
844
842
|
{
|
|
@@ -852,12 +850,12 @@ function El() {
|
|
|
852
850
|
}
|
|
853
851
|
);
|
|
854
852
|
}
|
|
855
|
-
const
|
|
856
|
-
function
|
|
853
|
+
const wl = xl();
|
|
854
|
+
function El() {
|
|
857
855
|
const { engine: e, rbsEngine: t } = N(), [n, i] = se(), c = an(), a = i.language === ci.zh, d = A(() => [
|
|
858
856
|
{
|
|
859
857
|
key: "shortCutKeys",
|
|
860
|
-
description: /* @__PURE__ */ l(
|
|
858
|
+
description: /* @__PURE__ */ l(bl, {}),
|
|
861
859
|
icon: /* @__PURE__ */ l(An, {})
|
|
862
860
|
},
|
|
863
861
|
{
|
|
@@ -874,7 +872,7 @@ function Ll() {
|
|
|
874
872
|
},
|
|
875
873
|
{ key: "export", description: n("head.export"), icon: /* @__PURE__ */ l(Ln, {}) },
|
|
876
874
|
{ key: "import", description: n("head.import"), icon: /* @__PURE__ */ l($t, {}) },
|
|
877
|
-
{ key: "save", description: n("head.save"), icon: /* @__PURE__ */ l(
|
|
875
|
+
{ key: "save", description: n("head.save"), icon: /* @__PURE__ */ l(Q, {}) },
|
|
878
876
|
{ key: "clear", description: n("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
|
|
879
877
|
{
|
|
880
878
|
key: "language",
|
|
@@ -938,16 +936,16 @@ function Ll() {
|
|
|
938
936
|
break;
|
|
939
937
|
}
|
|
940
938
|
}
|
|
941
|
-
return /* @__PURE__ */ g("div", { className:
|
|
942
|
-
/* @__PURE__ */ g("div", { className:
|
|
939
|
+
return /* @__PURE__ */ g("div", { className: ke.header, children: [
|
|
940
|
+
/* @__PURE__ */ g("div", { className: ke.header_flex, children: [
|
|
943
941
|
/* @__PURE__ */ l("b", { children: "BigScreen" }),
|
|
944
|
-
!
|
|
942
|
+
!wl && /* @__PURE__ */ l(On, { style: { cursor: "pointer", fontSize: 16 }, onClick: o })
|
|
945
943
|
] }),
|
|
946
|
-
/* @__PURE__ */ l(
|
|
947
|
-
/* @__PURE__ */ g("div", { className:
|
|
948
|
-
/* @__PURE__ */ l(
|
|
949
|
-
/* @__PURE__ */ l(
|
|
950
|
-
/* @__PURE__ */ l("div", { className:
|
|
944
|
+
/* @__PURE__ */ l(vl, {}),
|
|
945
|
+
/* @__PURE__ */ g("div", { className: ke.header_flex, children: [
|
|
946
|
+
/* @__PURE__ */ l(Sl, {}),
|
|
947
|
+
/* @__PURE__ */ l(Nl, {}),
|
|
948
|
+
/* @__PURE__ */ l("div", { className: ke.header_flex_btnContainer, id: "rbs-tool-bar", children: d.map((u) => /* @__PURE__ */ l(
|
|
951
949
|
rn,
|
|
952
950
|
{
|
|
953
951
|
disabled: u == null ? void 0 : u.disabled,
|
|
@@ -971,27 +969,27 @@ function Ll() {
|
|
|
971
969
|
] })
|
|
972
970
|
] });
|
|
973
971
|
}
|
|
974
|
-
const
|
|
975
|
-
menu:
|
|
976
|
-
menu_bar:
|
|
977
|
-
menu_main:
|
|
978
|
-
},
|
|
979
|
-
library:
|
|
980
|
-
library_header:
|
|
981
|
-
library_main:
|
|
982
|
-
},
|
|
983
|
-
componentsBlock:
|
|
984
|
-
},
|
|
985
|
-
componentItem:
|
|
986
|
-
componentItem_body:
|
|
987
|
-
componentItem_footer:
|
|
972
|
+
const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_72", He = {
|
|
973
|
+
menu: Al,
|
|
974
|
+
menu_bar: Ll,
|
|
975
|
+
menu_main: Dl
|
|
976
|
+
}, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Ml = "_library_main_11n9v_83", Ke = {
|
|
977
|
+
library: Ol,
|
|
978
|
+
library_header: Pl,
|
|
979
|
+
library_main: Ml
|
|
980
|
+
}, Bl = "_componentsBlock_mx05c_59", zl = {
|
|
981
|
+
componentsBlock: Bl
|
|
982
|
+
}, Tl = "_componentItem_1a82r_59", jl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
|
|
983
|
+
componentItem: Tl,
|
|
984
|
+
componentItem_body: jl,
|
|
985
|
+
componentItem_footer: $l
|
|
988
986
|
};
|
|
989
|
-
class
|
|
987
|
+
class Rl {
|
|
990
988
|
constructor() {
|
|
991
989
|
// style tag.
|
|
992
|
-
|
|
990
|
+
ee(this, "style");
|
|
993
991
|
// count usage times.
|
|
994
|
-
|
|
992
|
+
ee(this, "count", 0);
|
|
995
993
|
}
|
|
996
994
|
mount() {
|
|
997
995
|
if (this.count++, this.style)
|
|
@@ -1003,8 +1001,8 @@ class Hl {
|
|
|
1003
1001
|
!this.style || --this.count > 0 || (this.count = 0, this.style.remove(), this.style = void 0);
|
|
1004
1002
|
}
|
|
1005
1003
|
}
|
|
1006
|
-
const At = new
|
|
1007
|
-
function
|
|
1004
|
+
const At = new Rl();
|
|
1005
|
+
function Fl(e, t) {
|
|
1008
1006
|
let n = !1;
|
|
1009
1007
|
e.addEventListener("mousedown", c);
|
|
1010
1008
|
function i(o) {
|
|
@@ -1025,14 +1023,14 @@ function Kl(e, t) {
|
|
|
1025
1023
|
d(), e.removeEventListener("mousedown", c);
|
|
1026
1024
|
};
|
|
1027
1025
|
}
|
|
1028
|
-
class
|
|
1026
|
+
class Hl {
|
|
1029
1027
|
constructor() {
|
|
1030
|
-
|
|
1031
|
-
|
|
1028
|
+
ee(this, "isDragging", !1);
|
|
1029
|
+
ee(this, "dragOptions", {
|
|
1032
1030
|
type: "",
|
|
1033
1031
|
data: void 0
|
|
1034
1032
|
});
|
|
1035
|
-
|
|
1033
|
+
ee(this, "draggingChangeCallback", []);
|
|
1036
1034
|
}
|
|
1037
1035
|
notifyDraggingChange() {
|
|
1038
1036
|
this.draggingChangeCallback.forEach((t) => {
|
|
@@ -1074,7 +1072,7 @@ class ql {
|
|
|
1074
1072
|
return this.dragOptions;
|
|
1075
1073
|
}
|
|
1076
1074
|
}
|
|
1077
|
-
const ce = new
|
|
1075
|
+
const ce = new Hl();
|
|
1078
1076
|
function sn(e, t) {
|
|
1079
1077
|
const n = B(t);
|
|
1080
1078
|
n.current = t, w(() => {
|
|
@@ -1083,7 +1081,7 @@ function sn(e, t) {
|
|
|
1083
1081
|
console.warn("dom must be set.");
|
|
1084
1082
|
return;
|
|
1085
1083
|
}
|
|
1086
|
-
const c =
|
|
1084
|
+
const c = Fl(i, {
|
|
1087
1085
|
onStart() {
|
|
1088
1086
|
At.mount(), document.documentElement.classList.add("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!0);
|
|
1089
1087
|
},
|
|
@@ -1132,7 +1130,7 @@ function xe(e) {
|
|
|
1132
1130
|
}
|
|
1133
1131
|
}, [t]), t ? /* @__PURE__ */ l("img", { style: e == null ? void 0 : e.style, src: n, draggable: !1 }) : /* @__PURE__ */ l("span", { style: { color: "#b8b8b8" }, children: "None" });
|
|
1134
1132
|
}
|
|
1135
|
-
function
|
|
1133
|
+
function Kl(e) {
|
|
1136
1134
|
const { component: t } = e, n = B(null);
|
|
1137
1135
|
return sn(n, {
|
|
1138
1136
|
type: "create-component",
|
|
@@ -1143,27 +1141,27 @@ function Ul(e) {
|
|
|
1143
1141
|
"div",
|
|
1144
1142
|
{
|
|
1145
1143
|
style: e == null ? void 0 : e.style,
|
|
1146
|
-
className: $(
|
|
1144
|
+
className: $(Ue.componentItem, e == null ? void 0 : e.className),
|
|
1147
1145
|
ref: n,
|
|
1148
1146
|
children: [
|
|
1149
|
-
/* @__PURE__ */ l("div", { className:
|
|
1150
|
-
/* @__PURE__ */ l("div", { className:
|
|
1147
|
+
/* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
|
|
1148
|
+
/* @__PURE__ */ l("div", { className: Ue.componentItem_footer, children: t.cName })
|
|
1151
1149
|
]
|
|
1152
1150
|
}
|
|
1153
1151
|
);
|
|
1154
1152
|
}
|
|
1155
|
-
function
|
|
1153
|
+
function Ul(e) {
|
|
1156
1154
|
var a;
|
|
1157
1155
|
const { components: t, column: n = 3 } = e, { width: i, lines: c } = A(() => ({
|
|
1158
1156
|
width: `${100 / n}%`,
|
|
1159
1157
|
lines: Math.ceil(t.length / n)
|
|
1160
1158
|
}), [t, n]);
|
|
1161
|
-
return /* @__PURE__ */ g("div", { className:
|
|
1162
|
-
!(t != null && t.length) && /* @__PURE__ */ l(
|
|
1159
|
+
return /* @__PURE__ */ g("div", { className: zl.componentsBlock, children: [
|
|
1160
|
+
!(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
|
|
1163
1161
|
(a = t == null ? void 0 : t.map) == null ? void 0 : a.call(t, (d, o) => {
|
|
1164
1162
|
const s = o % n === n - 1, r = c === 1 || o > (c - 1) * n - 1;
|
|
1165
1163
|
return /* @__PURE__ */ l(
|
|
1166
|
-
|
|
1164
|
+
Kl,
|
|
1167
1165
|
{
|
|
1168
1166
|
component: d,
|
|
1169
1167
|
style: {
|
|
@@ -1182,7 +1180,7 @@ function Lt(e, t = "") {
|
|
|
1182
1180
|
const n = t.toLowerCase();
|
|
1183
1181
|
return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
|
|
1184
1182
|
}
|
|
1185
|
-
function
|
|
1183
|
+
function ql() {
|
|
1186
1184
|
const [e, t] = se(), [n, i] = S([]), c = Oi(), [a, d] = S(""), [o, s] = S([]), r = A(() => ({
|
|
1187
1185
|
base: e("menu.library.base"),
|
|
1188
1186
|
charts: e("menu.library.charts"),
|
|
@@ -1200,7 +1198,7 @@ function Wl() {
|
|
|
1200
1198
|
}, [a]);
|
|
1201
1199
|
const h = A(() => {
|
|
1202
1200
|
const _ = [], m = Object.entries(
|
|
1203
|
-
|
|
1201
|
+
ki(o, (y) => y.category || "unknown")
|
|
1204
1202
|
).map(([y, C]) => (_.push(y), {
|
|
1205
1203
|
key: y,
|
|
1206
1204
|
components: C,
|
|
@@ -1227,24 +1225,24 @@ function Wl() {
|
|
|
1227
1225
|
activeKey: n,
|
|
1228
1226
|
style: { padding: 0 },
|
|
1229
1227
|
onChange: (_) => i(_ || []),
|
|
1230
|
-
children: h.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(
|
|
1228
|
+
children: h.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(Ul, { components: _.components }) }, _.key))
|
|
1231
1229
|
}
|
|
1232
|
-
) : /* @__PURE__ */ l(
|
|
1230
|
+
) : /* @__PURE__ */ l(U, { style: { height: "100%", background: "white" } }) })
|
|
1233
1231
|
] });
|
|
1234
1232
|
}
|
|
1235
|
-
const
|
|
1236
|
-
componentNodes:
|
|
1237
|
-
componentNodes_head:
|
|
1238
|
-
componentNodes_block:
|
|
1239
|
-
},
|
|
1240
|
-
componentNodeItem:
|
|
1241
|
-
componentNodeItem_selected:
|
|
1242
|
-
componentNodeItem_icon:
|
|
1243
|
-
componentNodeItem_name:
|
|
1244
|
-
componentNodeItem_tail:
|
|
1245
|
-
componentNodeItem_tail_operatable:
|
|
1233
|
+
const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl = "_componentNodes_block_x43ss_67", qe = {
|
|
1234
|
+
componentNodes: Jl,
|
|
1235
|
+
componentNodes_head: Wl,
|
|
1236
|
+
componentNodes_block: Vl
|
|
1237
|
+
}, Gl = "_componentNodeItem_r9mbq_59", Xl = "_componentNodeItem_selected_r9mbq_65", Yl = "_componentNodeItem_icon_r9mbq_71", Zl = "_componentNodeItem_name_r9mbq_81", Ql = "_componentNodeItem_tail_r9mbq_84", pl = "_componentNodeItem_tail_operatable_r9mbq_95", ne = {
|
|
1238
|
+
componentNodeItem: Gl,
|
|
1239
|
+
componentNodeItem_selected: Xl,
|
|
1240
|
+
componentNodeItem_icon: Yl,
|
|
1241
|
+
componentNodeItem_name: Zl,
|
|
1242
|
+
componentNodeItem_tail: Ql,
|
|
1243
|
+
componentNodeItem_tail_operatable: pl
|
|
1246
1244
|
};
|
|
1247
|
-
function
|
|
1245
|
+
function ec(e) {
|
|
1248
1246
|
const { engine: t } = N(), n = B(null), [i, c] = S(e == null ? void 0 : e.componentNode), a = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: o } = A(() => ({
|
|
1249
1247
|
component: t.component.get(i == null ? void 0 : i.cId),
|
|
1250
1248
|
instance: t.instance.get(i == null ? void 0 : i.id)
|
|
@@ -1307,22 +1305,22 @@ function nc(e) {
|
|
|
1307
1305
|
}
|
|
1308
1306
|
);
|
|
1309
1307
|
}
|
|
1310
|
-
const
|
|
1311
|
-
renderContextMenu:
|
|
1312
|
-
},
|
|
1313
|
-
renderList:
|
|
1314
|
-
renderList_disabled:
|
|
1315
|
-
renderList_item:
|
|
1316
|
-
renderList_item_title:
|
|
1317
|
-
renderList_item_unselectable:
|
|
1318
|
-
},
|
|
1319
|
-
hoverItem_overlay:
|
|
1320
|
-
},
|
|
1308
|
+
const tc = "_renderContextMenu_vitq8_59", nc = {
|
|
1309
|
+
renderContextMenu: tc
|
|
1310
|
+
}, ic = "_renderList_p7203_59", lc = "_renderList_disabled_p7203_63", cc = "_renderList_item_p7203_70", ac = "_renderList_item_title_p7203_87", oc = "_renderList_item_unselectable_p7203_94", ge = {
|
|
1311
|
+
renderList: ic,
|
|
1312
|
+
renderList_disabled: lc,
|
|
1313
|
+
renderList_item: cc,
|
|
1314
|
+
renderList_item_title: ac,
|
|
1315
|
+
renderList_item_unselectable: oc
|
|
1316
|
+
}, dc = "_hoverItem_overlay_twv7t_59", rc = {
|
|
1317
|
+
hoverItem_overlay: dc
|
|
1318
|
+
}, sc = {
|
|
1321
1319
|
top: 0,
|
|
1322
1320
|
left: 0
|
|
1323
1321
|
};
|
|
1324
|
-
function
|
|
1325
|
-
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(
|
|
1322
|
+
function uc(e) {
|
|
1323
|
+
const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(sc);
|
|
1326
1324
|
function u(_) {
|
|
1327
1325
|
var y, C, b;
|
|
1328
1326
|
if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
|
|
@@ -1340,7 +1338,7 @@ function gc(e) {
|
|
|
1340
1338
|
/* @__PURE__ */ l(
|
|
1341
1339
|
"div",
|
|
1342
1340
|
{
|
|
1343
|
-
className:
|
|
1341
|
+
className: rc.hoverItem_overlay,
|
|
1344
1342
|
style: {
|
|
1345
1343
|
top: s.top,
|
|
1346
1344
|
left: s.left,
|
|
@@ -1367,7 +1365,7 @@ function hn(e) {
|
|
|
1367
1365
|
var a;
|
|
1368
1366
|
const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
|
|
1369
1367
|
return /* @__PURE__ */ g(
|
|
1370
|
-
|
|
1368
|
+
uc,
|
|
1371
1369
|
{
|
|
1372
1370
|
items: i == null ? void 0 : i.children,
|
|
1373
1371
|
style: i == null ? void 0 : i.style,
|
|
@@ -1396,7 +1394,7 @@ function hn(e) {
|
|
|
1396
1394
|
);
|
|
1397
1395
|
}) });
|
|
1398
1396
|
}
|
|
1399
|
-
function
|
|
1397
|
+
function hc(e) {
|
|
1400
1398
|
const t = B(null);
|
|
1401
1399
|
return w(() => {
|
|
1402
1400
|
function n(i) {
|
|
@@ -1411,7 +1409,7 @@ function _c(e) {
|
|
|
1411
1409
|
{
|
|
1412
1410
|
ref: t,
|
|
1413
1411
|
tabIndex: 0,
|
|
1414
|
-
className:
|
|
1412
|
+
className: nc.renderContextMenu,
|
|
1415
1413
|
onContextMenu: (n) => {
|
|
1416
1414
|
n.preventDefault();
|
|
1417
1415
|
},
|
|
@@ -1442,7 +1440,7 @@ function gn(e, t, n, i) {
|
|
|
1442
1440
|
};
|
|
1443
1441
|
return a.render(
|
|
1444
1442
|
/* @__PURE__ */ l(
|
|
1445
|
-
|
|
1443
|
+
hc,
|
|
1446
1444
|
{
|
|
1447
1445
|
items: n,
|
|
1448
1446
|
onClickOuter: () => {
|
|
@@ -1456,10 +1454,10 @@ function gn(e, t, n, i) {
|
|
|
1456
1454
|
)
|
|
1457
1455
|
), o;
|
|
1458
1456
|
}
|
|
1459
|
-
const
|
|
1457
|
+
const gc = [
|
|
1460
1458
|
{
|
|
1461
1459
|
key: "top",
|
|
1462
|
-
icon: /* @__PURE__ */ l(
|
|
1460
|
+
icon: /* @__PURE__ */ l(zn, {}),
|
|
1463
1461
|
title: "置顶",
|
|
1464
1462
|
style: { borderTop: "1px solid #e8e8e8" },
|
|
1465
1463
|
onSelect: () => Wi()
|
|
@@ -1491,15 +1489,15 @@ const mc = [
|
|
|
1491
1489
|
},
|
|
1492
1490
|
{
|
|
1493
1491
|
key: "unlock",
|
|
1494
|
-
icon: /* @__PURE__ */ l(
|
|
1492
|
+
icon: /* @__PURE__ */ l(Tn, {}),
|
|
1495
1493
|
title: "解锁",
|
|
1496
|
-
onSelect: () =>
|
|
1494
|
+
onSelect: () => Ui()
|
|
1497
1495
|
},
|
|
1498
1496
|
{
|
|
1499
1497
|
key: "group",
|
|
1500
|
-
icon: /* @__PURE__ */ l(
|
|
1498
|
+
icon: /* @__PURE__ */ l(jn, {}),
|
|
1501
1499
|
title: "成组",
|
|
1502
|
-
onSelect: () =>
|
|
1500
|
+
onSelect: () => qi()
|
|
1503
1501
|
},
|
|
1504
1502
|
{
|
|
1505
1503
|
key: "ungroup",
|
|
@@ -1528,9 +1526,9 @@ const mc = [
|
|
|
1528
1526
|
onSelect: () => Yi()
|
|
1529
1527
|
}
|
|
1530
1528
|
];
|
|
1531
|
-
function
|
|
1529
|
+
function _c(e, t) {
|
|
1532
1530
|
var n;
|
|
1533
|
-
return gn(e.clientX, e.clientY,
|
|
1531
|
+
return gn(e.clientX, e.clientY, gc, {
|
|
1534
1532
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
|
|
1535
1533
|
onBeforeOpen(i) {
|
|
1536
1534
|
let c = 0, a = !1;
|
|
@@ -1542,7 +1540,7 @@ function fc(e, t) {
|
|
|
1542
1540
|
}
|
|
1543
1541
|
});
|
|
1544
1542
|
}
|
|
1545
|
-
const
|
|
1543
|
+
const mc = [
|
|
1546
1544
|
{
|
|
1547
1545
|
key: "selectAll",
|
|
1548
1546
|
title: "全选",
|
|
@@ -1564,13 +1562,13 @@ const yc = [
|
|
|
1564
1562
|
{
|
|
1565
1563
|
key: "saveLocal",
|
|
1566
1564
|
title: "保存",
|
|
1567
|
-
icon: /* @__PURE__ */ l(
|
|
1565
|
+
icon: /* @__PURE__ */ l(Q, {}),
|
|
1568
1566
|
onSelect: () => vt()
|
|
1569
1567
|
}
|
|
1570
1568
|
];
|
|
1571
|
-
function
|
|
1569
|
+
function fc(e, t) {
|
|
1572
1570
|
var n;
|
|
1573
|
-
return gn(e.clientX, e.clientY,
|
|
1571
|
+
return gn(e.clientX, e.clientY, mc, {
|
|
1574
1572
|
zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel()
|
|
1575
1573
|
});
|
|
1576
1574
|
}
|
|
@@ -1586,18 +1584,18 @@ function _n(e) {
|
|
|
1586
1584
|
Dt(), n.preventDefault();
|
|
1587
1585
|
const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i), a = (d = c == null ? void 0 : c.getComponentNode) == null ? void 0 : d.call(c);
|
|
1588
1586
|
if (c && a) {
|
|
1589
|
-
ve.push(
|
|
1587
|
+
ve.push(_c(n, t));
|
|
1590
1588
|
return;
|
|
1591
1589
|
}
|
|
1592
|
-
ve.push(
|
|
1590
|
+
ve.push(fc(n, t));
|
|
1593
1591
|
}
|
|
1594
1592
|
}), Qt(() => {
|
|
1595
1593
|
Dt();
|
|
1596
1594
|
});
|
|
1597
1595
|
}
|
|
1598
|
-
function
|
|
1599
|
-
const { engine: e } = N(), t = Vt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className:
|
|
1600
|
-
|
|
1596
|
+
function yc() {
|
|
1597
|
+
const { engine: e } = N(), t = Vt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((a) => /* @__PURE__ */ l(
|
|
1598
|
+
ec,
|
|
1601
1599
|
{
|
|
1602
1600
|
componentNode: a,
|
|
1603
1601
|
isSelected: e.instance.isSelected(a.id)
|
|
@@ -1608,29 +1606,29 @@ function bc() {
|
|
|
1608
1606
|
"div",
|
|
1609
1607
|
{
|
|
1610
1608
|
ref: i,
|
|
1611
|
-
className:
|
|
1609
|
+
className: qe.componentNodes,
|
|
1612
1610
|
onMouseDown: () => De(),
|
|
1613
1611
|
children: [
|
|
1614
|
-
/* @__PURE__ */ g("div", { className:
|
|
1612
|
+
/* @__PURE__ */ g("div", { className: qe.componentNodes_head, children: [
|
|
1615
1613
|
"当前页组件数量:",
|
|
1616
1614
|
t.length
|
|
1617
1615
|
] }),
|
|
1618
|
-
!t.length && /* @__PURE__ */ l(
|
|
1616
|
+
!t.length && /* @__PURE__ */ l(U, {}),
|
|
1619
1617
|
c
|
|
1620
1618
|
]
|
|
1621
1619
|
}
|
|
1622
1620
|
);
|
|
1623
1621
|
}
|
|
1624
|
-
const
|
|
1625
|
-
menubar:
|
|
1626
|
-
menubar_item:
|
|
1627
|
-
menubar_item_selected:
|
|
1622
|
+
const vc = "_menubar_1ah1r_59", bc = "_menubar_item_1ah1r_67", Cc = "_menubar_item_selected_1ah1r_81", Je = {
|
|
1623
|
+
menubar: vc,
|
|
1624
|
+
menubar_item: bc,
|
|
1625
|
+
menubar_item_selected: Cc
|
|
1628
1626
|
};
|
|
1629
|
-
function
|
|
1627
|
+
function xc(e) {
|
|
1630
1628
|
var t, n;
|
|
1631
1629
|
return /* @__PURE__ */ l("div", { className: Je.menubar, children: (n = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
|
|
1632
1630
|
const c = i.key === e.value;
|
|
1633
|
-
return /* @__PURE__ */ l(
|
|
1631
|
+
return /* @__PURE__ */ l(j, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
|
|
1634
1632
|
"div",
|
|
1635
1633
|
{
|
|
1636
1634
|
id: i == null ? void 0 : i.domId,
|
|
@@ -1647,19 +1645,19 @@ function kc(e) {
|
|
|
1647
1645
|
) }, i == null ? void 0 : i.key);
|
|
1648
1646
|
}) });
|
|
1649
1647
|
}
|
|
1650
|
-
const
|
|
1651
|
-
propertyItem:
|
|
1652
|
-
propertyItem_icon:
|
|
1653
|
-
propertyItem_icon_disabled:
|
|
1654
|
-
propertyItemPopover:
|
|
1655
|
-
propertyItemPopover_description:
|
|
1656
|
-
propertyItemPopover_statistic:
|
|
1657
|
-
propertyItemPopover_body:
|
|
1658
|
-
propertyItemPopover_body_item:
|
|
1659
|
-
propertyItemPopover_body_item_icon:
|
|
1660
|
-
propertyItemPopover_title:
|
|
1648
|
+
const kc = "_propertyItem_1r9fx_59", Ic = "_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 = {
|
|
1649
|
+
propertyItem: kc,
|
|
1650
|
+
propertyItem_icon: Ic,
|
|
1651
|
+
propertyItem_icon_disabled: Sc,
|
|
1652
|
+
propertyItemPopover: Nc,
|
|
1653
|
+
propertyItemPopover_description: wc,
|
|
1654
|
+
propertyItemPopover_statistic: Ec,
|
|
1655
|
+
propertyItemPopover_body: Ac,
|
|
1656
|
+
propertyItemPopover_body_item: Lc,
|
|
1657
|
+
propertyItemPopover_body_item_icon: Dc,
|
|
1658
|
+
propertyItemPopover_title: Oc
|
|
1661
1659
|
};
|
|
1662
|
-
function
|
|
1660
|
+
function Pc(e) {
|
|
1663
1661
|
var s, r, u;
|
|
1664
1662
|
const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system", a = (t == null ? void 0 : t.origin) !== "system";
|
|
1665
1663
|
function d() {
|
|
@@ -1766,10 +1764,10 @@ function Bc(e) {
|
|
|
1766
1764
|
}
|
|
1767
1765
|
);
|
|
1768
1766
|
}
|
|
1769
|
-
const
|
|
1770
|
-
jsonEditor:
|
|
1771
|
-
jsonEditor_render:
|
|
1772
|
-
jsonEditor_loading:
|
|
1767
|
+
const Mc = "_jsonEditor_13vbq_59", Bc = "_jsonEditor_render_13vbq_68", zc = "_jsonEditor_loading_13vbq_72", We = {
|
|
1768
|
+
jsonEditor: Mc,
|
|
1769
|
+
jsonEditor_render: Bc,
|
|
1770
|
+
jsonEditor_loading: zc
|
|
1773
1771
|
};
|
|
1774
1772
|
self.MonacoEnvironment = {
|
|
1775
1773
|
getWorker: function(e, t) {
|
|
@@ -1788,7 +1786,7 @@ self.MonacoEnvironment = {
|
|
|
1788
1786
|
}
|
|
1789
1787
|
}
|
|
1790
1788
|
};
|
|
1791
|
-
function
|
|
1789
|
+
function X(e) {
|
|
1792
1790
|
const t = B(null), n = B();
|
|
1793
1791
|
return w(() => {
|
|
1794
1792
|
var c, a;
|
|
@@ -1833,7 +1831,7 @@ function Y(e) {
|
|
|
1833
1831
|
(e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Kt, { style: { fontSize: 20 } }) })
|
|
1834
1832
|
] });
|
|
1835
1833
|
}
|
|
1836
|
-
const
|
|
1834
|
+
const Tc = ue((e) => {
|
|
1837
1835
|
const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), a = B("");
|
|
1838
1836
|
function d() {
|
|
1839
1837
|
n.validateFields(["url"]).then((s) => {
|
|
@@ -1874,19 +1872,19 @@ const $c = ue((e) => {
|
|
|
1874
1872
|
onOk: o,
|
|
1875
1873
|
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 2 }, children: [
|
|
1876
1874
|
/* @__PURE__ */ l(M.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1877
|
-
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(
|
|
1875
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
|
|
1878
1876
|
/* @__PURE__ */ l(K, { type: "primary", onClick: d, loading: i, children: "读取" })
|
|
1879
1877
|
] }) }),
|
|
1880
|
-
/* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(
|
|
1878
|
+
/* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
|
|
1881
1879
|
] })
|
|
1882
1880
|
}
|
|
1883
1881
|
);
|
|
1884
|
-
}),
|
|
1882
|
+
}), jc = [
|
|
1885
1883
|
{ key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
|
|
1886
1884
|
{ key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
|
|
1887
1885
|
];
|
|
1888
|
-
function
|
|
1889
|
-
const t = B(), n = B(""), i =
|
|
1886
|
+
function $c(e) {
|
|
1887
|
+
const t = B(), n = B(""), i = Tc({
|
|
1890
1888
|
onOk({ url: s }) {
|
|
1891
1889
|
if (!t.current) {
|
|
1892
1890
|
E.warn("package新增失败");
|
|
@@ -1911,7 +1909,7 @@ function Fc(e) {
|
|
|
1911
1909
|
for (const b in _) {
|
|
1912
1910
|
if (!((C = b == null ? void 0 : b.endsWith) != null && C.call(b, ".js")))
|
|
1913
1911
|
continue;
|
|
1914
|
-
const f = await _[b].async("text"), v = await
|
|
1912
|
+
const f = await _[b].async("text"), v = await Te(f);
|
|
1915
1913
|
v && (v.origin = "local", m.push(v), y.push(f));
|
|
1916
1914
|
}
|
|
1917
1915
|
return {
|
|
@@ -1933,7 +1931,7 @@ function Fc(e) {
|
|
|
1933
1931
|
}
|
|
1934
1932
|
if ((u == null ? void 0 : u.type) === "text/javascript") {
|
|
1935
1933
|
r = await cn(u);
|
|
1936
|
-
const h = await
|
|
1934
|
+
const h = await Te(r);
|
|
1937
1935
|
if (!h)
|
|
1938
1936
|
return E.warn("文本内容必须为UMD或者AMD格式");
|
|
1939
1937
|
h.origin = "local", c(h, r);
|
|
@@ -1944,7 +1942,7 @@ function Fc(e) {
|
|
|
1944
1942
|
case "remote":
|
|
1945
1943
|
i.open({
|
|
1946
1944
|
async beforeOk(h) {
|
|
1947
|
-
return n.current = h, t.current = await
|
|
1945
|
+
return n.current = h, t.current = await Te(h), t.current || E.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
|
|
1948
1946
|
}
|
|
1949
1947
|
});
|
|
1950
1948
|
break;
|
|
@@ -1955,7 +1953,7 @@ function Fc(e) {
|
|
|
1955
1953
|
{
|
|
1956
1954
|
trigger: ["click"],
|
|
1957
1955
|
menu: {
|
|
1958
|
-
items:
|
|
1956
|
+
items: jc,
|
|
1959
1957
|
onClick({ key: s }) {
|
|
1960
1958
|
o(s);
|
|
1961
1959
|
}
|
|
@@ -1964,21 +1962,21 @@ function Fc(e) {
|
|
|
1964
1962
|
}
|
|
1965
1963
|
) });
|
|
1966
1964
|
}
|
|
1967
|
-
const Ot = "./demo.umd.js", Pt = "./demo.amd.js",
|
|
1965
|
+
const Ot = "./demo.umd.js", Pt = "./demo.amd.js", Rc = [
|
|
1968
1966
|
{ key: "umd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(UMD)" }) },
|
|
1969
1967
|
{ key: "amd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(AMD)" }) },
|
|
1970
1968
|
{ key: "zip-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包集合(.zip)" }) },
|
|
1971
1969
|
{ key: "all", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载全部资产" }) }
|
|
1972
1970
|
];
|
|
1973
|
-
function
|
|
1971
|
+
function Fc(e) {
|
|
1974
1972
|
async function t(n) {
|
|
1975
1973
|
var i;
|
|
1976
1974
|
switch (n) {
|
|
1977
1975
|
case "umd-demo":
|
|
1978
|
-
|
|
1976
|
+
kt(Ot, "测试包2.js");
|
|
1979
1977
|
break;
|
|
1980
1978
|
case "amd-demo":
|
|
1981
|
-
|
|
1979
|
+
kt(Pt, "测试包1.js");
|
|
1982
1980
|
break;
|
|
1983
1981
|
case "zip-demo":
|
|
1984
1982
|
const c = await it(Ot), a = await it(Pt), d = new ft();
|
|
@@ -1996,7 +1994,7 @@ function Kc(e) {
|
|
|
1996
1994
|
{
|
|
1997
1995
|
trigger: ["click"],
|
|
1998
1996
|
menu: {
|
|
1999
|
-
items:
|
|
1997
|
+
items: Rc,
|
|
2000
1998
|
onClick({ key: n }) {
|
|
2001
1999
|
t(n);
|
|
2002
2000
|
}
|
|
@@ -2005,11 +2003,11 @@ function Kc(e) {
|
|
|
2005
2003
|
}
|
|
2006
2004
|
) });
|
|
2007
2005
|
}
|
|
2008
|
-
const
|
|
2009
|
-
property:
|
|
2010
|
-
property_header:
|
|
2006
|
+
const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Mt = {
|
|
2007
|
+
property: Hc,
|
|
2008
|
+
property_header: Kc
|
|
2011
2009
|
};
|
|
2012
|
-
function
|
|
2010
|
+
function Uc() {
|
|
2013
2011
|
var o;
|
|
2014
2012
|
const e = Gt(), { engine: t } = N(), { loading: n, run: i } = pt(
|
|
2015
2013
|
async () => new Promise((s) => {
|
|
@@ -2058,13 +2056,13 @@ function Jc() {
|
|
|
2058
2056
|
title: "刷新资产",
|
|
2059
2057
|
className: "icon_clickable",
|
|
2060
2058
|
onClick: () => !n && i(),
|
|
2061
|
-
children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(
|
|
2059
|
+
children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(Z, {})
|
|
2062
2060
|
}
|
|
2063
2061
|
)
|
|
2064
2062
|
] }),
|
|
2065
2063
|
/* @__PURE__ */ g(D, { children: [
|
|
2066
2064
|
/* @__PURE__ */ l(
|
|
2067
|
-
|
|
2065
|
+
Fc,
|
|
2068
2066
|
{
|
|
2069
2067
|
onDownloadAll: () => {
|
|
2070
2068
|
d();
|
|
@@ -2073,7 +2071,7 @@ function Jc() {
|
|
|
2073
2071
|
}
|
|
2074
2072
|
),
|
|
2075
2073
|
/* @__PURE__ */ l(
|
|
2076
|
-
|
|
2074
|
+
$c,
|
|
2077
2075
|
{
|
|
2078
2076
|
onAdd: (s, r) => {
|
|
2079
2077
|
c(s, r);
|
|
@@ -2086,9 +2084,9 @@ function Jc() {
|
|
|
2086
2084
|
)
|
|
2087
2085
|
] })
|
|
2088
2086
|
] }),
|
|
2089
|
-
!e.length && /* @__PURE__ */ l(
|
|
2087
|
+
!e.length && /* @__PURE__ */ l(U, {}),
|
|
2090
2088
|
(o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (s) => /* @__PURE__ */ l(
|
|
2091
|
-
|
|
2089
|
+
Pc,
|
|
2092
2090
|
{
|
|
2093
2091
|
data: s,
|
|
2094
2092
|
onDelete: (r, u) => {
|
|
@@ -2099,15 +2097,15 @@ function Jc() {
|
|
|
2099
2097
|
))
|
|
2100
2098
|
] });
|
|
2101
2099
|
}
|
|
2102
|
-
const
|
|
2103
|
-
favorites:
|
|
2104
|
-
},
|
|
2105
|
-
favoriteItem:
|
|
2106
|
-
favoriteItem_head:
|
|
2107
|
-
favoriteItem_name:
|
|
2108
|
-
favoriteItem_footer:
|
|
2100
|
+
const qc = "_favorites_1mbr5_59", Jc = {
|
|
2101
|
+
favorites: qc
|
|
2102
|
+
}, Wc = "_favoriteItem_1ipdv_59", Vc = "_favoriteItem_head_1ipdv_74", Gc = "_favoriteItem_name_1ipdv_83", Xc = "_favoriteItem_footer_1ipdv_93", Ie = {
|
|
2103
|
+
favoriteItem: Wc,
|
|
2104
|
+
favoriteItem_head: Vc,
|
|
2105
|
+
favoriteItem_name: Gc,
|
|
2106
|
+
favoriteItem_footer: Xc
|
|
2109
2107
|
};
|
|
2110
|
-
function
|
|
2108
|
+
function Yc(e) {
|
|
2111
2109
|
const { favorite: t } = e, n = B(null), i = B(null);
|
|
2112
2110
|
return sn(n, {
|
|
2113
2111
|
type: "create-favorite",
|
|
@@ -2118,26 +2116,26 @@ function Qc(e) {
|
|
|
2118
2116
|
mousedown(c) {
|
|
2119
2117
|
c.stopPropagation();
|
|
2120
2118
|
}
|
|
2121
|
-
}), /* @__PURE__ */ g("div", { className:
|
|
2122
|
-
/* @__PURE__ */ l("div", { className:
|
|
2123
|
-
/* @__PURE__ */ l("div", { className:
|
|
2124
|
-
/* @__PURE__ */ g("div", { className:
|
|
2125
|
-
/* @__PURE__ */ l(
|
|
2119
|
+
}), /* @__PURE__ */ g("div", { className: Ie.favoriteItem, ref: n, children: [
|
|
2120
|
+
/* @__PURE__ */ l("div", { className: Ie.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
|
|
2121
|
+
/* @__PURE__ */ l("div", { className: Ie.favoriteItem_name, title: t.id, children: t.name }),
|
|
2122
|
+
/* @__PURE__ */ g("div", { className: Ie.favoriteItem_footer, ref: i, children: [
|
|
2123
|
+
/* @__PURE__ */ l(j, { title: "编辑", children: /* @__PURE__ */ l(Ut, { onClick: () => {
|
|
2126
2124
|
var c;
|
|
2127
2125
|
return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
|
|
2128
2126
|
} }) }),
|
|
2129
|
-
/* @__PURE__ */ l(
|
|
2127
|
+
/* @__PURE__ */ l(j, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
|
|
2130
2128
|
var c;
|
|
2131
2129
|
return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
|
|
2132
2130
|
} }) }),
|
|
2133
|
-
/* @__PURE__ */ l(
|
|
2131
|
+
/* @__PURE__ */ l(j, { title: "详情", children: /* @__PURE__ */ l(Un, { onClick: () => {
|
|
2134
2132
|
var c;
|
|
2135
2133
|
return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
|
|
2136
2134
|
} }) })
|
|
2137
2135
|
] })
|
|
2138
2136
|
] }, t.id);
|
|
2139
2137
|
}
|
|
2140
|
-
const
|
|
2138
|
+
const Zc = ue((e) => {
|
|
2141
2139
|
var c;
|
|
2142
2140
|
const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
|
|
2143
2141
|
function i() {
|
|
@@ -2164,16 +2162,16 @@ const pc = ue((e) => {
|
|
|
2164
2162
|
bodyStyle: { paddingBottom: 6 },
|
|
2165
2163
|
footer: null,
|
|
2166
2164
|
children: /* @__PURE__ */ l(M, { form: t, children: /* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请填写名称" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2167
|
-
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(
|
|
2165
|
+
/* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
|
|
2168
2166
|
/* @__PURE__ */ l(K, { type: "primary", onClick: i, children: "保存" })
|
|
2169
2167
|
] }) }) })
|
|
2170
2168
|
}
|
|
2171
2169
|
);
|
|
2172
|
-
}),
|
|
2173
|
-
favoriteDetailDialog_title:
|
|
2174
|
-
favoriteDetailDialog_componentNodes:
|
|
2175
|
-
favoriteDetailDialog_item:
|
|
2176
|
-
},
|
|
2170
|
+
}), Qc = "_favoriteDetailDialog_title_17m9n_67", pc = "_favoriteDetailDialog_componentNodes_17m9n_73", ea = "_favoriteDetailDialog_item_17m9n_78", Ve = {
|
|
2171
|
+
favoriteDetailDialog_title: Qc,
|
|
2172
|
+
favoriteDetailDialog_componentNodes: pc,
|
|
2173
|
+
favoriteDetailDialog_item: ea
|
|
2174
|
+
}, ta = ue((e) => {
|
|
2177
2175
|
var i, c, a, d;
|
|
2178
2176
|
const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
|
|
2179
2177
|
return /* @__PURE__ */ g(
|
|
@@ -2190,19 +2188,19 @@ const pc = ue((e) => {
|
|
|
2190
2188
|
bodyStyle: { padding: "12px 24px 24px", height: 500, overflowY: "hidden" },
|
|
2191
2189
|
children: [
|
|
2192
2190
|
/* @__PURE__ */ g(
|
|
2193
|
-
|
|
2191
|
+
ze,
|
|
2194
2192
|
{
|
|
2195
2193
|
column: 2,
|
|
2196
2194
|
labelStyle: { color: "rgba(0,0,0,0.5)", fontSize: 12 },
|
|
2197
2195
|
contentStyle: { color: "rgba(0,0,0,0.5)", fontSize: 12 },
|
|
2198
2196
|
children: [
|
|
2199
|
-
/* @__PURE__ */ l(
|
|
2200
|
-
/* @__PURE__ */ l(
|
|
2197
|
+
/* @__PURE__ */ l(ze.Item, { label: "id", children: n == null ? void 0 : n.id }),
|
|
2198
|
+
/* @__PURE__ */ l(ze.Item, { label: "创建时间", children: n == null ? void 0 : n.gmtCreate })
|
|
2201
2199
|
]
|
|
2202
2200
|
}
|
|
2203
2201
|
),
|
|
2204
2202
|
/* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_componentNodes, children: [
|
|
2205
|
-
!((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(
|
|
2203
|
+
!((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(U, {}),
|
|
2206
2204
|
(d = (a = n == null ? void 0 : n.children) == null ? void 0 : a.map) == null ? void 0 : d.call(a, (o) => {
|
|
2207
2205
|
const s = t.component.get(o.cId);
|
|
2208
2206
|
return /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_item, children: [
|
|
@@ -2221,8 +2219,8 @@ const pc = ue((e) => {
|
|
|
2221
2219
|
}
|
|
2222
2220
|
);
|
|
2223
2221
|
});
|
|
2224
|
-
function
|
|
2225
|
-
const { engine: e } = N(), t = Pi(), n =
|
|
2222
|
+
function na() {
|
|
2223
|
+
const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
|
|
2226
2224
|
onOk(a) {
|
|
2227
2225
|
e.favorites.update(a.id, a);
|
|
2228
2226
|
}
|
|
@@ -2230,10 +2228,10 @@ function la() {
|
|
|
2230
2228
|
function c(a) {
|
|
2231
2229
|
e.favorites.delete(a);
|
|
2232
2230
|
}
|
|
2233
|
-
return /* @__PURE__ */ g("div", { className:
|
|
2234
|
-
!(t != null && t.length) && /* @__PURE__ */ l(
|
|
2231
|
+
return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
|
|
2232
|
+
!(t != null && t.length) && /* @__PURE__ */ l(U, {}),
|
|
2235
2233
|
t.map((a) => /* @__PURE__ */ l(
|
|
2236
|
-
|
|
2234
|
+
Yc,
|
|
2237
2235
|
{
|
|
2238
2236
|
favorite: a,
|
|
2239
2237
|
onDelete: () => c(a),
|
|
@@ -2252,11 +2250,11 @@ function la() {
|
|
|
2252
2250
|
))
|
|
2253
2251
|
] });
|
|
2254
2252
|
}
|
|
2255
|
-
const
|
|
2256
|
-
pages:
|
|
2257
|
-
pages_head:
|
|
2258
|
-
pages_body:
|
|
2259
|
-
},
|
|
2253
|
+
const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty8r_76", Ge = {
|
|
2254
|
+
pages: ia,
|
|
2255
|
+
pages_head: la,
|
|
2256
|
+
pages_body: ca
|
|
2257
|
+
}, aa = ue((e) => {
|
|
2260
2258
|
const { params: t } = e, [n] = M.useForm();
|
|
2261
2259
|
function i(a) {
|
|
2262
2260
|
return {
|
|
@@ -2289,16 +2287,16 @@ const ca = "_pages_1ty8r_59", aa = "_pages_head_1ty8r_67", oa = "_pages_body_1ty
|
|
|
2289
2287
|
},
|
|
2290
2288
|
children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 4 }, children: [
|
|
2291
2289
|
(t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(M.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
|
|
2292
|
-
/* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(
|
|
2290
|
+
/* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
|
|
2293
2291
|
] })
|
|
2294
2292
|
}
|
|
2295
2293
|
);
|
|
2296
2294
|
});
|
|
2297
|
-
function
|
|
2298
|
-
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), u =
|
|
2299
|
-
onOk({ page: b, parentId:
|
|
2300
|
-
if (e.page.insert(b,
|
|
2301
|
-
const f = Array.from(new Set(t).add(
|
|
2295
|
+
function oa() {
|
|
2296
|
+
const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), u = aa({
|
|
2297
|
+
onOk({ page: b, parentId: k }) {
|
|
2298
|
+
if (e.page.insert(b, k), Re(b.id), k) {
|
|
2299
|
+
const f = Array.from(new Set(t).add(k));
|
|
2302
2300
|
h(f);
|
|
2303
2301
|
}
|
|
2304
2302
|
}
|
|
@@ -2307,8 +2305,8 @@ function ra() {
|
|
|
2307
2305
|
n(b), e.config.setConfigSilently({ expandedPageIds: b });
|
|
2308
2306
|
}
|
|
2309
2307
|
function _(b) {
|
|
2310
|
-
var
|
|
2311
|
-
return ((
|
|
2308
|
+
var k;
|
|
2309
|
+
return ((k = b == null ? void 0 : b.reduce) == null ? void 0 : k.call(b, (f, v) => f.concat([v.key, ..._(v == null ? void 0 : v.children)]), [])) || [];
|
|
2312
2310
|
}
|
|
2313
2311
|
function m(b) {
|
|
2314
2312
|
u.open({
|
|
@@ -2316,40 +2314,40 @@ function ra() {
|
|
|
2316
2314
|
parentName: b.name
|
|
2317
2315
|
});
|
|
2318
2316
|
}
|
|
2319
|
-
function y(b,
|
|
2320
|
-
var v, x, L,
|
|
2321
|
-
const f = [b.id, ..._(
|
|
2317
|
+
function y(b, k = {}) {
|
|
2318
|
+
var v, x, L, z, R, q, V;
|
|
2319
|
+
const f = [b.id, ..._(k[b.id].children)];
|
|
2322
2320
|
if (((v = o.current) == null ? void 0 : v.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
|
|
2323
2321
|
E.warn("至少保留一个顶层页");
|
|
2324
2322
|
return;
|
|
2325
2323
|
}
|
|
2326
2324
|
if (f.includes(e.config.getCurrentPage())) {
|
|
2327
|
-
let Be = (R = (
|
|
2328
|
-
f.includes(Be) && (Be = (V = (
|
|
2325
|
+
let Be = (R = (z = o.current) == null ? void 0 : z[0]) == null ? void 0 : R.key;
|
|
2326
|
+
f.includes(Be) && (Be = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Be);
|
|
2329
2327
|
}
|
|
2330
2328
|
e.page.delete(f);
|
|
2331
2329
|
}
|
|
2332
|
-
function C(b,
|
|
2330
|
+
function C(b, k = {}) {
|
|
2333
2331
|
const f = [];
|
|
2334
2332
|
return b.forEach((v) => {
|
|
2335
|
-
var
|
|
2336
|
-
const x =
|
|
2333
|
+
var z, R, q;
|
|
2334
|
+
const x = k[v.id], L = k[v.id] = {
|
|
2337
2335
|
key: (x == null ? void 0 : x.key) || v.id,
|
|
2338
2336
|
title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
|
|
2339
2337
|
/* @__PURE__ */ l("span", { children: v.name }),
|
|
2340
2338
|
/* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
|
|
2341
2339
|
/* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(v), children: "新增" }),
|
|
2342
|
-
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(v,
|
|
2340
|
+
/* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(v, k), children: "删除" })
|
|
2343
2341
|
] })
|
|
2344
2342
|
] }),
|
|
2345
2343
|
children: (x == null ? void 0 : x.children) || []
|
|
2346
2344
|
};
|
|
2347
2345
|
if (v != null && v.parentId) {
|
|
2348
|
-
(
|
|
2346
|
+
(q = (R = k[z = v == null ? void 0 : v.parentId] || (k[z] = {
|
|
2349
2347
|
key: "",
|
|
2350
2348
|
title: "",
|
|
2351
2349
|
children: []
|
|
2352
|
-
})) == null ? void 0 : R.children) == null ||
|
|
2350
|
+
})) == null ? void 0 : R.children) == null || q.push(L);
|
|
2353
2351
|
return;
|
|
2354
2352
|
}
|
|
2355
2353
|
f.push(L);
|
|
@@ -2383,7 +2381,7 @@ function ra() {
|
|
|
2383
2381
|
showIcon: !0,
|
|
2384
2382
|
multiple: !1,
|
|
2385
2383
|
defaultExpandAll: !0,
|
|
2386
|
-
icon: /* @__PURE__ */ l(
|
|
2384
|
+
icon: /* @__PURE__ */ l(qn, {}),
|
|
2387
2385
|
treeData: a,
|
|
2388
2386
|
selectedKeys: i,
|
|
2389
2387
|
expandedKeys: t,
|
|
@@ -2395,14 +2393,14 @@ function ra() {
|
|
|
2395
2393
|
) })
|
|
2396
2394
|
] });
|
|
2397
2395
|
}
|
|
2398
|
-
const
|
|
2399
|
-
history:
|
|
2400
|
-
history_head:
|
|
2401
|
-
history_body:
|
|
2402
|
-
history_item:
|
|
2403
|
-
history_item_gray:
|
|
2396
|
+
const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_body_zo6ip_75", ua = "_history_item_zo6ip_80", ha = "_history_item_gray_zo6ip_88", _e = {
|
|
2397
|
+
history: da,
|
|
2398
|
+
history_head: ra,
|
|
2399
|
+
history_body: sa,
|
|
2400
|
+
history_item: ua,
|
|
2401
|
+
history_item_gray: ha
|
|
2404
2402
|
};
|
|
2405
|
-
function
|
|
2403
|
+
function ga() {
|
|
2406
2404
|
var c, a, d, o;
|
|
2407
2405
|
const { engine: e } = N(), t = an(), n = (c = t.current) == null ? void 0 : c.stepId;
|
|
2408
2406
|
function i(s) {
|
|
@@ -2425,53 +2423,53 @@ function ma() {
|
|
|
2425
2423
|
},
|
|
2426
2424
|
s.stepId
|
|
2427
2425
|
)),
|
|
2428
|
-
!((o = t == null ? void 0 : t.list) != null && o.length) && /* @__PURE__ */ l(
|
|
2426
|
+
!((o = t == null ? void 0 : t.list) != null && o.length) && /* @__PURE__ */ l(U, {})
|
|
2429
2427
|
] })
|
|
2430
2428
|
] });
|
|
2431
2429
|
}
|
|
2432
|
-
function
|
|
2430
|
+
function _a() {
|
|
2433
2431
|
const { engine: e } = N(), [t, n] = se(), i = A(() => [
|
|
2434
2432
|
{
|
|
2435
2433
|
key: "library",
|
|
2436
2434
|
domId: "rbs-library",
|
|
2437
2435
|
icon: /* @__PURE__ */ l(Jn, {}),
|
|
2438
2436
|
title: t("menu.bar.library"),
|
|
2439
|
-
children: /* @__PURE__ */ l(
|
|
2437
|
+
children: /* @__PURE__ */ l(ql, {})
|
|
2440
2438
|
},
|
|
2441
2439
|
{
|
|
2442
2440
|
key: "pages",
|
|
2443
2441
|
domId: "rbs-pages",
|
|
2444
2442
|
icon: /* @__PURE__ */ l(Wn, {}),
|
|
2445
2443
|
title: t("menu.bar.pages"),
|
|
2446
|
-
children: /* @__PURE__ */ l(
|
|
2444
|
+
children: /* @__PURE__ */ l(oa, {})
|
|
2447
2445
|
},
|
|
2448
2446
|
{
|
|
2449
2447
|
key: "componentNodes",
|
|
2450
2448
|
domId: "rbs-componentNodes",
|
|
2451
2449
|
icon: /* @__PURE__ */ l(Vn, {}),
|
|
2452
2450
|
title: t("menu.bar.componentNodes"),
|
|
2453
|
-
children: /* @__PURE__ */ l(
|
|
2451
|
+
children: /* @__PURE__ */ l(yc, {})
|
|
2454
2452
|
},
|
|
2455
2453
|
{
|
|
2456
2454
|
key: "property",
|
|
2457
2455
|
domId: "rbs-property",
|
|
2458
2456
|
icon: /* @__PURE__ */ l(Gn, {}),
|
|
2459
2457
|
title: t("menu.bar.property"),
|
|
2460
|
-
children: /* @__PURE__ */ l(
|
|
2458
|
+
children: /* @__PURE__ */ l(Uc, {})
|
|
2461
2459
|
},
|
|
2462
2460
|
{
|
|
2463
2461
|
key: "favorites",
|
|
2464
2462
|
domId: "rbs-favorites",
|
|
2465
2463
|
icon: /* @__PURE__ */ l(dt, {}),
|
|
2466
2464
|
title: t("menu.bar.favorites"),
|
|
2467
|
-
children: /* @__PURE__ */ l(
|
|
2465
|
+
children: /* @__PURE__ */ l(na, {})
|
|
2468
2466
|
},
|
|
2469
2467
|
{
|
|
2470
2468
|
key: "history",
|
|
2471
2469
|
domId: "rbs-history",
|
|
2472
2470
|
icon: /* @__PURE__ */ l(Xn, {}),
|
|
2473
2471
|
title: t("menu.bar.history"),
|
|
2474
|
-
children: /* @__PURE__ */ l(
|
|
2472
|
+
children: /* @__PURE__ */ l(ga, {})
|
|
2475
2473
|
}
|
|
2476
2474
|
], [n.language]), c = Ee((r) => r.currentMenu), [a, d] = S(""), o = A(() => {
|
|
2477
2475
|
var r;
|
|
@@ -2486,41 +2484,41 @@ function fa() {
|
|
|
2486
2484
|
const { currentMenu: r } = e.config.getConfig(), u = i.find((h) => h.key === r);
|
|
2487
2485
|
d((u == null ? void 0 : u.key) || i[0].key);
|
|
2488
2486
|
}, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
|
|
2489
|
-
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(
|
|
2487
|
+
/* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: a, list: i, onChange: s }) }),
|
|
2490
2488
|
/* @__PURE__ */ l("div", { className: He.menu_main, children: o })
|
|
2491
2489
|
] });
|
|
2492
2490
|
}
|
|
2493
|
-
const
|
|
2494
|
-
editor:
|
|
2495
|
-
editor_render:
|
|
2496
|
-
},
|
|
2497
|
-
flexCenter:
|
|
2491
|
+
const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
|
|
2492
|
+
editor: ma,
|
|
2493
|
+
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", ka = "_moveItem_box_selected_1kt3d_72", Ia = "_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", za = "_dragPoint_bottom_left_1kt3d_162", Ta = "_dragPoint_bottom_right_1kt3d_175", ja = "_dragPoint_left_1kt3d_188", $a = "_dragPoint_right_1kt3d_201", ie = {
|
|
2495
|
+
flexCenter: ya,
|
|
2498
2496
|
"theme-text": "_theme-text_1kt3d_34",
|
|
2499
2497
|
"theme-color": "_theme-color_1kt3d_38",
|
|
2500
2498
|
"text-ellipsis": "_text-ellipsis_1kt3d_41",
|
|
2501
2499
|
"border-right": "_border-right_1kt3d_46",
|
|
2502
|
-
icon_clickable:
|
|
2503
|
-
icon_selected:
|
|
2504
|
-
moveItem_box:
|
|
2505
|
-
moveItem_box_lock:
|
|
2506
|
-
moveItem_box_selected:
|
|
2507
|
-
moveItem_box_hover:
|
|
2508
|
-
dragPointCommon:
|
|
2509
|
-
p_top:
|
|
2510
|
-
p_left:
|
|
2511
|
-
p_right:
|
|
2512
|
-
p_bottom:
|
|
2513
|
-
p_horizontal_mid:
|
|
2514
|
-
p_vertical_mid:
|
|
2515
|
-
dragPoint_top:
|
|
2516
|
-
dragPoint_top_left:
|
|
2517
|
-
dragPoint_top_right:
|
|
2518
|
-
dragPoint_bottom:
|
|
2519
|
-
dragPoint_bottom_left:
|
|
2520
|
-
dragPoint_bottom_right:
|
|
2521
|
-
dragPoint_left:
|
|
2522
|
-
dragPoint_right:
|
|
2523
|
-
},
|
|
2500
|
+
icon_clickable: va,
|
|
2501
|
+
icon_selected: ba,
|
|
2502
|
+
moveItem_box: Ca,
|
|
2503
|
+
moveItem_box_lock: xa,
|
|
2504
|
+
moveItem_box_selected: ka,
|
|
2505
|
+
moveItem_box_hover: Ia,
|
|
2506
|
+
dragPointCommon: Sa,
|
|
2507
|
+
p_top: Na,
|
|
2508
|
+
p_left: wa,
|
|
2509
|
+
p_right: Ea,
|
|
2510
|
+
p_bottom: Aa,
|
|
2511
|
+
p_horizontal_mid: La,
|
|
2512
|
+
p_vertical_mid: Da,
|
|
2513
|
+
dragPoint_top: Oa,
|
|
2514
|
+
dragPoint_top_left: Pa,
|
|
2515
|
+
dragPoint_top_right: Ma,
|
|
2516
|
+
dragPoint_bottom: Ba,
|
|
2517
|
+
dragPoint_bottom_left: za,
|
|
2518
|
+
dragPoint_bottom_right: Ta,
|
|
2519
|
+
dragPoint_left: ja,
|
|
2520
|
+
dragPoint_right: $a
|
|
2521
|
+
}, Ra = [
|
|
2524
2522
|
"top",
|
|
2525
2523
|
"top_left",
|
|
2526
2524
|
"top_right",
|
|
@@ -2529,7 +2527,7 @@ const ya = "_editor_82kko_59", va = "_editor_render_82kko_65", Bt = {
|
|
|
2529
2527
|
"bottom_right",
|
|
2530
2528
|
"left",
|
|
2531
2529
|
"right"
|
|
2532
|
-
],
|
|
2530
|
+
], Fa = {
|
|
2533
2531
|
top: "n-resize",
|
|
2534
2532
|
top_left: "nw-resize",
|
|
2535
2533
|
top_right: "ne-resize",
|
|
@@ -2539,7 +2537,7 @@ const ya = "_editor_82kko_59", va = "_editor_render_82kko_65", Bt = {
|
|
|
2539
2537
|
left: "w-resize",
|
|
2540
2538
|
right: "e-resize"
|
|
2541
2539
|
};
|
|
2542
|
-
function
|
|
2540
|
+
function Ha(e, t, n) {
|
|
2543
2541
|
const i = {
|
|
2544
2542
|
dx: 0,
|
|
2545
2543
|
dy: 0,
|
|
@@ -2586,14 +2584,14 @@ function qa(e, t, n) {
|
|
|
2586
2584
|
}
|
|
2587
2585
|
return i;
|
|
2588
2586
|
}
|
|
2589
|
-
function
|
|
2587
|
+
function Ka(e, t, n) {
|
|
2590
2588
|
let i = {
|
|
2591
2589
|
x: 0,
|
|
2592
2590
|
y: 0,
|
|
2593
2591
|
width: t.offsetWidth,
|
|
2594
2592
|
height: t.offsetHeight
|
|
2595
2593
|
};
|
|
2596
|
-
const c =
|
|
2594
|
+
const c = I.getActiveEngine();
|
|
2597
2595
|
if (c)
|
|
2598
2596
|
return {
|
|
2599
2597
|
onStart() {
|
|
@@ -2602,10 +2600,10 @@ function Ua(e, t, n) {
|
|
|
2602
2600
|
y: e.y,
|
|
2603
2601
|
width: e.width,
|
|
2604
2602
|
height: e.height
|
|
2605
|
-
}, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(
|
|
2603
|
+
}, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
|
|
2606
2604
|
},
|
|
2607
2605
|
onMove(a, d) {
|
|
2608
|
-
const o =
|
|
2606
|
+
const o = Ha(n, a, d), s = i.width + o.dw, r = i.height + o.dh;
|
|
2609
2607
|
s < 0 || r < 0 || c.componentNode.update(e.id, {
|
|
2610
2608
|
x: Math.round(i.x + o.dx),
|
|
2611
2609
|
y: Math.round(i.y + o.dy),
|
|
@@ -2618,7 +2616,7 @@ function Ua(e, t, n) {
|
|
|
2618
2616
|
}
|
|
2619
2617
|
};
|
|
2620
2618
|
}
|
|
2621
|
-
const
|
|
2619
|
+
const Ua = Cn((e, t) => {
|
|
2622
2620
|
const { componentNode: n } = e, i = B(null), [c, a] = S(!1), d = Ee((o) => o.scale);
|
|
2623
2621
|
return xn(t, () => ({
|
|
2624
2622
|
// 经过实例
|
|
@@ -2649,7 +2647,7 @@ const Ja = Cn((e, t) => {
|
|
|
2649
2647
|
c && ie.moveItem_box_selected,
|
|
2650
2648
|
n.lock && ie.moveItem_box_lock
|
|
2651
2649
|
),
|
|
2652
|
-
children: c && !n.lock &&
|
|
2650
|
+
children: c && !n.lock && Ra.map((o) => /* @__PURE__ */ l(
|
|
2653
2651
|
"div",
|
|
2654
2652
|
{
|
|
2655
2653
|
style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
|
|
@@ -2661,7 +2659,7 @@ const Ja = Cn((e, t) => {
|
|
|
2661
2659
|
}
|
|
2662
2660
|
), [n.lock, c, d]);
|
|
2663
2661
|
});
|
|
2664
|
-
function
|
|
2662
|
+
function qa(e) {
|
|
2665
2663
|
var d;
|
|
2666
2664
|
const { engine: t } = N(), [n, i] = S(
|
|
2667
2665
|
e == null ? void 0 : e.componentNode
|
|
@@ -2673,9 +2671,9 @@ function Wa(e) {
|
|
|
2673
2671
|
i({ ...o });
|
|
2674
2672
|
})), mt(() => {
|
|
2675
2673
|
i(e == null ? void 0 : e.componentNode);
|
|
2676
|
-
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(
|
|
2674
|
+
}, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
|
|
2677
2675
|
}
|
|
2678
|
-
function
|
|
2676
|
+
function Ja(e) {
|
|
2679
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), u = _i({
|
|
2680
2678
|
id: n.id,
|
|
2681
2679
|
// 经过实例
|
|
@@ -2737,7 +2735,7 @@ function Va(e) {
|
|
|
2737
2735
|
u.handleUnHover();
|
|
2738
2736
|
},
|
|
2739
2737
|
children: [
|
|
2740
|
-
/* @__PURE__ */ l(
|
|
2738
|
+
/* @__PURE__ */ l(jt, { children: /* @__PURE__ */ l(
|
|
2741
2739
|
t.component,
|
|
2742
2740
|
{
|
|
2743
2741
|
useExpose: s,
|
|
@@ -2749,17 +2747,17 @@ function Va(e) {
|
|
|
2749
2747
|
componentNode: n
|
|
2750
2748
|
}
|
|
2751
2749
|
) }),
|
|
2752
|
-
/* @__PURE__ */ l(
|
|
2750
|
+
/* @__PURE__ */ l(Ua, { ref: r, componentNode: n })
|
|
2753
2751
|
]
|
|
2754
2752
|
}
|
|
2755
2753
|
);
|
|
2756
2754
|
}
|
|
2757
|
-
function
|
|
2758
|
-
const t =
|
|
2755
|
+
function Wa(e) {
|
|
2756
|
+
const t = I.getActiveEngine();
|
|
2759
2757
|
t && Ae(e) && t.instance.getAllSelected().length && (t.instance.unselectAll(), O("取消选中组件"));
|
|
2760
2758
|
}
|
|
2761
|
-
function
|
|
2762
|
-
const n = Ae(t), i = Pe("shift"), c =
|
|
2759
|
+
function Va(e, t) {
|
|
2760
|
+
const n = Ae(t), i = Pe("shift"), c = I.getActiveEngine();
|
|
2763
2761
|
if (!c || e.lock && n && !i)
|
|
2764
2762
|
return;
|
|
2765
2763
|
t.stopPropagation();
|
|
@@ -2773,7 +2771,7 @@ function Xa(e, t) {
|
|
|
2773
2771
|
c.instance.select(d, !i), O("选中组件");
|
|
2774
2772
|
}
|
|
2775
2773
|
}
|
|
2776
|
-
function
|
|
2774
|
+
function Ga(e) {
|
|
2777
2775
|
var s;
|
|
2778
2776
|
const t = e.getComponentNode();
|
|
2779
2777
|
if (!t || t != null && t.lock)
|
|
@@ -2787,10 +2785,10 @@ function Ya(e) {
|
|
|
2787
2785
|
return {
|
|
2788
2786
|
onStart() {
|
|
2789
2787
|
return ae.set("move"), setTimeout(() => {
|
|
2790
|
-
let { list: r, showCount: u } =
|
|
2788
|
+
let { list: r, showCount: u } = Za();
|
|
2791
2789
|
i = r, c = u < 300, o = Zt(
|
|
2792
2790
|
(h, _) => {
|
|
2793
|
-
|
|
2791
|
+
Xa(i, c, h, _);
|
|
2794
2792
|
},
|
|
2795
2793
|
u < 100 ? 0 : 20,
|
|
2796
2794
|
{
|
|
@@ -2803,11 +2801,11 @@ function Ya(e) {
|
|
|
2803
2801
|
d || (n.style.pointerEvents = "none", d = !0), o == null || o(r, u);
|
|
2804
2802
|
},
|
|
2805
2803
|
onEnd(r, u) {
|
|
2806
|
-
ae.revoke(), d && (n.style.pointerEvents = a,
|
|
2804
|
+
ae.revoke(), d && (n.style.pointerEvents = a, Ya(i, c, r, u), i != null && i.length && O("移动组件"), d = !1, o = void 0);
|
|
2807
2805
|
}
|
|
2808
2806
|
};
|
|
2809
2807
|
}
|
|
2810
|
-
function
|
|
2808
|
+
function Xa(e, t, n, i) {
|
|
2811
2809
|
e.forEach((c) => {
|
|
2812
2810
|
if (!c.show) return;
|
|
2813
2811
|
const a = c.containerDom;
|
|
@@ -2819,8 +2817,8 @@ function Za(e, t, n, i) {
|
|
|
2819
2817
|
}
|
|
2820
2818
|
});
|
|
2821
2819
|
}
|
|
2822
|
-
function
|
|
2823
|
-
const c =
|
|
2820
|
+
function Ya(e, t, n, i) {
|
|
2821
|
+
const c = I.getActiveEngine();
|
|
2824
2822
|
c && e.forEach((a) => {
|
|
2825
2823
|
a != null && a.show && t && a.containerDom.style.removeProperty("transform");
|
|
2826
2824
|
const d = a == null ? void 0 : a.componentNode;
|
|
@@ -2830,8 +2828,8 @@ function Qa(e, t, n, i) {
|
|
|
2830
2828
|
});
|
|
2831
2829
|
});
|
|
2832
2830
|
}
|
|
2833
|
-
function
|
|
2834
|
-
const e =
|
|
2831
|
+
function Za() {
|
|
2832
|
+
const e = I.getActiveEngine();
|
|
2835
2833
|
return e ? Oe().reduce(
|
|
2836
2834
|
(n, i) => {
|
|
2837
2835
|
var d, o, s, r;
|
|
@@ -2854,10 +2852,10 @@ function pa() {
|
|
|
2854
2852
|
list: []
|
|
2855
2853
|
};
|
|
2856
2854
|
}
|
|
2857
|
-
const
|
|
2858
|
-
rangeBox:
|
|
2859
|
-
},
|
|
2860
|
-
const n =
|
|
2855
|
+
const Qa = "_rangeBox_12c3t_59", pa = {
|
|
2856
|
+
rangeBox: Qa
|
|
2857
|
+
}, zt = Zt((e, t) => {
|
|
2858
|
+
const n = I.getActiveEngine();
|
|
2861
2859
|
if (!n) return;
|
|
2862
2860
|
const i = n.componentNode.getAll().reduce((c, a) => {
|
|
2863
2861
|
const d = {
|
|
@@ -2871,12 +2869,12 @@ const eo = "_rangeBox_12c3t_59", to = {
|
|
|
2871
2869
|
x2: e.x + e.width,
|
|
2872
2870
|
y2: e.y + e.height
|
|
2873
2871
|
};
|
|
2874
|
-
return
|
|
2872
|
+
return Ii(d, o) && (!a.lock || a.lock && Pe("shift")) && c.push(a.id), c;
|
|
2875
2873
|
}, []);
|
|
2876
2874
|
n.instance.select(i, !0), t == null || t(i);
|
|
2877
2875
|
}, 100);
|
|
2878
2876
|
let F;
|
|
2879
|
-
function
|
|
2877
|
+
function eo(e) {
|
|
2880
2878
|
let t = { x: 0, y: 0 }, n = 1;
|
|
2881
2879
|
function i(a = 0, d = 0) {
|
|
2882
2880
|
const o = a * n, s = d * n, r = t.x + o, u = t.y + s, h = {
|
|
@@ -2892,41 +2890,41 @@ function no(e) {
|
|
|
2892
2890
|
}
|
|
2893
2891
|
return {
|
|
2894
2892
|
onStart(a, d, o) {
|
|
2895
|
-
const s =
|
|
2893
|
+
const s = I.getActiveEngine();
|
|
2896
2894
|
if (!s)
|
|
2897
2895
|
return;
|
|
2898
2896
|
c();
|
|
2899
2897
|
const { x: r = 0, y: u = 0 } = o || {};
|
|
2900
2898
|
n = s.config.getConfig().scale;
|
|
2901
2899
|
const h = e.getBoundingClientRect();
|
|
2902
|
-
t.x = r - h.x, t.y = u - h.y, F = document.createElement("div"), F.classList.add(
|
|
2900
|
+
t.x = r - h.x, t.y = u - h.y, F = document.createElement("div"), F.classList.add(pa.rangeBox), F.style.zIndex = `${s.componentNode.getMaxLevel()}`, e.appendChild(F), ae.set("default");
|
|
2903
2901
|
},
|
|
2904
2902
|
onMove(a, d) {
|
|
2905
2903
|
if (!F) return;
|
|
2906
2904
|
const o = i(a, d);
|
|
2907
|
-
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",
|
|
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", zt(o);
|
|
2908
2906
|
},
|
|
2909
2907
|
onEnd(a, d) {
|
|
2910
2908
|
c(), ae.revoke();
|
|
2911
2909
|
const o = i(a, d);
|
|
2912
|
-
(o.width || o.height) &&
|
|
2910
|
+
(o.width || o.height) && zt(o, (s) => {
|
|
2913
2911
|
s.length && O("范围选中组件");
|
|
2914
2912
|
});
|
|
2915
2913
|
}
|
|
2916
2914
|
};
|
|
2917
2915
|
}
|
|
2918
|
-
function
|
|
2916
|
+
function to(e, t) {
|
|
2919
2917
|
return {
|
|
2920
2918
|
onEnd(n, i, c) {
|
|
2921
2919
|
setTimeout(() => {
|
|
2922
2920
|
var h;
|
|
2923
|
-
const a =
|
|
2921
|
+
const a = I.getActiveEngine();
|
|
2924
2922
|
if (!a)
|
|
2925
2923
|
return;
|
|
2926
2924
|
const d = a.config.getConfig().scale, o = e.getComponentNode(), s = e.getContainerDom();
|
|
2927
2925
|
if (!o || o != null && o.lock || !s)
|
|
2928
2926
|
return;
|
|
2929
|
-
const r = ((h = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : h.call(s)) || { x: 0, y: 0 }, u =
|
|
2927
|
+
const r = ((h = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : h.call(s)) || { x: 0, y: 0 }, u = io(o, {
|
|
2930
2928
|
x: (c.x - r.x) / d + o.x,
|
|
2931
2929
|
// 鼠标在编辑器上的虚拟坐标
|
|
2932
2930
|
y: (c.y - r.y) / d + o.y
|
|
@@ -2936,8 +2934,8 @@ function io(e, t) {
|
|
|
2936
2934
|
}
|
|
2937
2935
|
};
|
|
2938
2936
|
}
|
|
2939
|
-
function
|
|
2940
|
-
const n =
|
|
2937
|
+
function no(e, t) {
|
|
2938
|
+
const n = I.getActiveEngine();
|
|
2941
2939
|
if (!n)
|
|
2942
2940
|
return;
|
|
2943
2941
|
const i = n.componentNode.getAll().reduce((d, o) => {
|
|
@@ -2948,11 +2946,11 @@ function lo(e, t) {
|
|
|
2948
2946
|
}, {}), c = Object.values(i), a = c[c.length - 1];
|
|
2949
2947
|
return a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2950
2948
|
}
|
|
2951
|
-
function
|
|
2952
|
-
const n =
|
|
2949
|
+
function io(e, t) {
|
|
2950
|
+
const n = I.getActiveEngine();
|
|
2953
2951
|
if (!n)
|
|
2954
2952
|
return;
|
|
2955
|
-
const i =
|
|
2953
|
+
const i = no(e, {
|
|
2956
2954
|
x: t.x,
|
|
2957
2955
|
y: t.y
|
|
2958
2956
|
});
|
|
@@ -2961,7 +2959,7 @@ function co(e, t) {
|
|
|
2961
2959
|
if (!a || n.componentNode.isInPanel(a, e))
|
|
2962
2960
|
return;
|
|
2963
2961
|
const d = n.componentNode.getPanelName(a) || "目标";
|
|
2964
|
-
return
|
|
2962
|
+
return It({
|
|
2965
2963
|
title: "移入提醒",
|
|
2966
2964
|
content: `确定放入面板“${d}”?`,
|
|
2967
2965
|
onOk(o) {
|
|
@@ -2975,7 +2973,7 @@ function co(e, t) {
|
|
|
2975
2973
|
const c = e.panelId;
|
|
2976
2974
|
if (c) {
|
|
2977
2975
|
const a = n.componentNode.getPanelName(c) || "目标";
|
|
2978
|
-
return
|
|
2976
|
+
return It({
|
|
2979
2977
|
title: "移出提醒",
|
|
2980
2978
|
content: `是否移出面板“${a}”?`,
|
|
2981
2979
|
onOk(d) {
|
|
@@ -2987,7 +2985,7 @@ function co(e, t) {
|
|
|
2987
2985
|
});
|
|
2988
2986
|
}
|
|
2989
2987
|
}
|
|
2990
|
-
function
|
|
2988
|
+
function lo(e) {
|
|
2991
2989
|
const t = B([]), { engine: n } = N();
|
|
2992
2990
|
function i() {
|
|
2993
2991
|
var c, a;
|
|
@@ -3001,7 +2999,7 @@ function ao(e) {
|
|
|
3001
2999
|
i();
|
|
3002
3000
|
const d = Ae(c), o = Xt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0), u = n.instance.get(r), h = (m = u == null ? void 0 : u.getComponentNode) == null ? void 0 : m.call(u), _ = o ? !0 : h != null && h.lock ? d && s : d;
|
|
3003
3001
|
if (u && h && _) {
|
|
3004
|
-
if (
|
|
3002
|
+
if (Va(h, c), !(h != null && h.lock) && d) {
|
|
3005
3003
|
const y = ct(
|
|
3006
3004
|
c.target,
|
|
3007
3005
|
oe.dragDirection
|
|
@@ -3014,11 +3012,11 @@ function ao(e) {
|
|
|
3014
3012
|
scale: n.config.getConfig().scale,
|
|
3015
3013
|
hookQueue: [
|
|
3016
3014
|
// 监听拖拽大小
|
|
3017
|
-
y &&
|
|
3015
|
+
y && Ka(h, c.target, y),
|
|
3018
3016
|
// 监听拖拽移动
|
|
3019
|
-
!y &&
|
|
3017
|
+
!y && Ga(u),
|
|
3020
3018
|
// 监听是否放置到 layout 组件
|
|
3021
|
-
|
|
3019
|
+
to(u, (C) => {
|
|
3022
3020
|
t.current.push(C);
|
|
3023
3021
|
})
|
|
3024
3022
|
]
|
|
@@ -3027,7 +3025,7 @@ function ao(e) {
|
|
|
3027
3025
|
}
|
|
3028
3026
|
return;
|
|
3029
3027
|
}
|
|
3030
|
-
|
|
3028
|
+
Wa(c), t.current.push(
|
|
3031
3029
|
St({
|
|
3032
3030
|
startX: c.x,
|
|
3033
3031
|
startY: c.y,
|
|
@@ -3035,7 +3033,7 @@ function ao(e) {
|
|
|
3035
3033
|
scale: n.config.getConfig().scale,
|
|
3036
3034
|
hookQueue: [
|
|
3037
3035
|
// 监听创建范围多选框(左键按住范围框选)
|
|
3038
|
-
d &&
|
|
3036
|
+
d && eo(a)
|
|
3039
3037
|
]
|
|
3040
3038
|
})
|
|
3041
3039
|
);
|
|
@@ -3044,7 +3042,7 @@ function ao(e) {
|
|
|
3044
3042
|
i();
|
|
3045
3043
|
});
|
|
3046
3044
|
}
|
|
3047
|
-
function
|
|
3045
|
+
function co(e) {
|
|
3048
3046
|
const { engine: t } = N();
|
|
3049
3047
|
un(e, {
|
|
3050
3048
|
accept: ["create-component"],
|
|
@@ -3067,17 +3065,17 @@ function oo(e) {
|
|
|
3067
3065
|
}
|
|
3068
3066
|
});
|
|
3069
3067
|
}
|
|
3070
|
-
function
|
|
3068
|
+
function ao(e) {
|
|
3071
3069
|
const { engine: t } = N();
|
|
3072
3070
|
un(e, {
|
|
3073
3071
|
accept: ["create-favorite"],
|
|
3074
3072
|
onDrop: (n, i) => {
|
|
3075
|
-
var b,
|
|
3073
|
+
var b, k;
|
|
3076
3074
|
const c = e.current;
|
|
3077
3075
|
if (!c)
|
|
3078
3076
|
throw new Error("dom must be exist.");
|
|
3079
3077
|
const a = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
|
|
3080
|
-
(
|
|
3078
|
+
(k = d.children) != null && k.length || E.warn("收藏元素为空");
|
|
3081
3079
|
const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x: u, y: h } = d.children.reduce(
|
|
3082
3080
|
(f, v) => (f.x = Math.min(f.x, v.x), f.y = Math.min(f.y, v.y), f),
|
|
3083
3081
|
{
|
|
@@ -3095,11 +3093,11 @@ function ro(e) {
|
|
|
3095
3093
|
}
|
|
3096
3094
|
});
|
|
3097
3095
|
}
|
|
3098
|
-
const
|
|
3096
|
+
const oo = () => {
|
|
3099
3097
|
const { engine: e } = N(), t = B(null), n = B(null), i = Gt(), c = Vt(), a = A(() => {
|
|
3100
3098
|
if (i.length)
|
|
3101
3099
|
return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
|
|
3102
|
-
|
|
3100
|
+
qa,
|
|
3103
3101
|
{
|
|
3104
3102
|
componentNode: d,
|
|
3105
3103
|
packages: i
|
|
@@ -3107,7 +3105,7 @@ const so = () => {
|
|
|
3107
3105
|
d.id
|
|
3108
3106
|
));
|
|
3109
3107
|
}, [c, i]);
|
|
3110
|
-
return
|
|
3108
|
+
return lo(n), _n(t), co(n), ao(n), w(() => e.componentNode.onDelete((d) => {
|
|
3111
3109
|
e.page.removeGlobalComponentNode(d);
|
|
3112
3110
|
}), []), /* @__PURE__ */ l(
|
|
3113
3111
|
"div",
|
|
@@ -3118,19 +3116,19 @@ const so = () => {
|
|
|
3118
3116
|
children: /* @__PURE__ */ l(mi, { ref: n, className: Bt.editor_render, children: a })
|
|
3119
3117
|
}
|
|
3120
3118
|
);
|
|
3121
|
-
},
|
|
3122
|
-
attributes:
|
|
3123
|
-
},
|
|
3124
|
-
singleInstanceAttributesBase_description:
|
|
3125
|
-
singleInstanceAttributesBase_body:
|
|
3126
|
-
singleInstanceAttributesBase_label:
|
|
3127
|
-
singleInstanceAttributesBase:
|
|
3128
|
-
},
|
|
3129
|
-
opacity0:
|
|
3130
|
-
editText:
|
|
3131
|
-
editText_text:
|
|
3119
|
+
}, ro = "_attributes_esabd_59", so = {
|
|
3120
|
+
attributes: ro
|
|
3121
|
+
}, uo = "_singleInstanceAttributesBase_description_x66dv_59", ho = "_singleInstanceAttributesBase_body_x66dv_64", go = "_singleInstanceAttributesBase_label_x66dv_67", _o = "_singleInstanceAttributesBase_x66dv_59", Y = {
|
|
3122
|
+
singleInstanceAttributesBase_description: uo,
|
|
3123
|
+
singleInstanceAttributesBase_body: ho,
|
|
3124
|
+
singleInstanceAttributesBase_label: go,
|
|
3125
|
+
singleInstanceAttributesBase: _o
|
|
3126
|
+
}, mo = "_opacity0_1lvzj_59", fo = "_editText_1lvzj_62", yo = "_editText_text_1lvzj_69", Xe = {
|
|
3127
|
+
opacity0: mo,
|
|
3128
|
+
editText: fo,
|
|
3129
|
+
editText_text: yo
|
|
3132
3130
|
};
|
|
3133
|
-
function
|
|
3131
|
+
function vo(e) {
|
|
3134
3132
|
const [t, n] = S(!1), [i, c] = S("");
|
|
3135
3133
|
function a() {
|
|
3136
3134
|
c((e == null ? void 0 : e.value) || ""), n(!0);
|
|
@@ -3147,7 +3145,7 @@ function Co(e) {
|
|
|
3147
3145
|
n(!1);
|
|
3148
3146
|
}, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: Xe.editText, children: [
|
|
3149
3147
|
t ? /* @__PURE__ */ l(
|
|
3150
|
-
|
|
3148
|
+
p,
|
|
3151
3149
|
{
|
|
3152
3150
|
value: i,
|
|
3153
3151
|
style: { width: "100%" },
|
|
@@ -3157,8 +3155,8 @@ function Co(e) {
|
|
|
3157
3155
|
}
|
|
3158
3156
|
}
|
|
3159
3157
|
) : /* @__PURE__ */ l("b", { className: Xe.editText_text, title: `${(e == null ? void 0 : e.value) || ""}`, children: e == null ? void 0 : e.value }),
|
|
3160
|
-
t ? /* @__PURE__ */ l(
|
|
3161
|
-
|
|
3158
|
+
t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
|
|
3159
|
+
Ut,
|
|
3162
3160
|
{
|
|
3163
3161
|
className: $(Xe.opacity0, "icon_clickable"),
|
|
3164
3162
|
onClick: a
|
|
@@ -3166,7 +3164,7 @@ function Co(e) {
|
|
|
3166
3164
|
)
|
|
3167
3165
|
] });
|
|
3168
3166
|
}
|
|
3169
|
-
function
|
|
3167
|
+
function bo() {
|
|
3170
3168
|
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm(), i = A(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
|
|
3171
3169
|
function a(d) {
|
|
3172
3170
|
d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
|
|
@@ -3180,15 +3178,15 @@ function xo() {
|
|
|
3180
3178
|
M,
|
|
3181
3179
|
{
|
|
3182
3180
|
form: n,
|
|
3183
|
-
className:
|
|
3181
|
+
className: Y.singleInstanceAttributesBase,
|
|
3184
3182
|
onValuesChange: (d) => {
|
|
3185
3183
|
let o = "修改组件";
|
|
3186
3184
|
d.hasOwnProperty("isAllPage") && (a(d.isAllPage), o = d.isAllPage ? "设置组件全页面" : "取消组件全页面"), e.componentNode.update(t == null ? void 0 : t.id, d), O(o);
|
|
3187
3185
|
},
|
|
3188
3186
|
children: [
|
|
3189
|
-
/* @__PURE__ */ l("div", { className:
|
|
3187
|
+
/* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
|
|
3190
3188
|
/* @__PURE__ */ l(H, { span: 24, style: { marginBottom: 6 }, children: /* @__PURE__ */ l(
|
|
3191
|
-
|
|
3189
|
+
vo,
|
|
3192
3190
|
{
|
|
3193
3191
|
emptyMessage: "请填写名称",
|
|
3194
3192
|
value: t == null ? void 0 : t.name,
|
|
@@ -3212,24 +3210,24 @@ function xo() {
|
|
|
3212
3210
|
(t == null ? void 0 : t.cName) || "-"
|
|
3213
3211
|
] })
|
|
3214
3212
|
] }) }),
|
|
3215
|
-
/* @__PURE__ */ g("div", { className:
|
|
3213
|
+
/* @__PURE__ */ g("div", { className: Y.singleInstanceAttributesBase_body, children: [
|
|
3216
3214
|
/* @__PURE__ */ g("div", { children: [
|
|
3217
3215
|
/* @__PURE__ */ g(nt, { gutter: [8, 8], style: { fontSize: 12 }, children: [
|
|
3218
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3216
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "X轴" }),
|
|
3219
3217
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3220
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3218
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "Y轴" }),
|
|
3221
3219
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3222
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3220
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "宽度" }),
|
|
3223
3221
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3224
|
-
/* @__PURE__ */ l(H, { span: 3, className:
|
|
3222
|
+
/* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "高度" }),
|
|
3225
3223
|
/* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
|
|
3226
3224
|
] }),
|
|
3227
3225
|
/* @__PURE__ */ g(Le, { labelSpan: 4, children: [
|
|
3228
|
-
/* @__PURE__ */ l(
|
|
3229
|
-
/* @__PURE__ */ l(
|
|
3226
|
+
/* @__PURE__ */ l(T, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
|
|
3227
|
+
/* @__PURE__ */ l(T, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
|
|
3230
3228
|
] })
|
|
3231
3229
|
] }),
|
|
3232
|
-
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(
|
|
3230
|
+
t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(jt, { children: /* @__PURE__ */ l(
|
|
3233
3231
|
c,
|
|
3234
3232
|
{
|
|
3235
3233
|
componentNode: t,
|
|
@@ -3252,13 +3250,13 @@ function xo() {
|
|
|
3252
3250
|
}
|
|
3253
3251
|
);
|
|
3254
3252
|
}
|
|
3255
|
-
const
|
|
3256
|
-
dataSource:
|
|
3257
|
-
},
|
|
3258
|
-
requestDataSource:
|
|
3253
|
+
const Co = "_dataSource_1t8uf_59", xo = {
|
|
3254
|
+
dataSource: Co
|
|
3255
|
+
}, ko = "_requestDataSource_147st_59", Io = {
|
|
3256
|
+
requestDataSource: ko
|
|
3259
3257
|
};
|
|
3260
|
-
function
|
|
3261
|
-
const t =
|
|
3258
|
+
function So(e) {
|
|
3259
|
+
const t = I.getActiveEngine(), { componentNode: n } = he(), i = A(() => {
|
|
3262
3260
|
var r, u;
|
|
3263
3261
|
return (u = (r = t == null ? void 0 : t.instance) == null ? void 0 : r.get) == null ? void 0 : u.call(r, n == null ? void 0 : n.id);
|
|
3264
3262
|
}, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
|
|
@@ -3283,8 +3281,8 @@ function wo(e) {
|
|
|
3283
3281
|
}
|
|
3284
3282
|
}));
|
|
3285
3283
|
}
|
|
3286
|
-
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className:
|
|
3287
|
-
/* @__PURE__ */ l(
|
|
3284
|
+
return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: Io.requestDataSource, children: [
|
|
3285
|
+
/* @__PURE__ */ l(T, { label: "请求类型", children: /* @__PURE__ */ l(
|
|
3288
3286
|
Ce,
|
|
3289
3287
|
{
|
|
3290
3288
|
allowClear: !1,
|
|
@@ -3301,8 +3299,8 @@ function wo(e) {
|
|
|
3301
3299
|
}
|
|
3302
3300
|
}
|
|
3303
3301
|
) }),
|
|
3304
|
-
/* @__PURE__ */ l(
|
|
3305
|
-
|
|
3302
|
+
/* @__PURE__ */ l(T, { label: "请求地址", children: /* @__PURE__ */ l(
|
|
3303
|
+
p,
|
|
3306
3304
|
{
|
|
3307
3305
|
value: c == null ? void 0 : c.url,
|
|
3308
3306
|
onChange: (r) => {
|
|
@@ -3311,7 +3309,7 @@ function wo(e) {
|
|
|
3311
3309
|
}
|
|
3312
3310
|
) }),
|
|
3313
3311
|
/* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
|
|
3314
|
-
/* @__PURE__ */ l(
|
|
3312
|
+
/* @__PURE__ */ l(T, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
3315
3313
|
/* @__PURE__ */ l(
|
|
3316
3314
|
we,
|
|
3317
3315
|
{
|
|
@@ -3335,7 +3333,7 @@ function wo(e) {
|
|
|
3335
3333
|
/* @__PURE__ */ l("span", { children: "毫秒" })
|
|
3336
3334
|
] })
|
|
3337
3335
|
] }) }),
|
|
3338
|
-
/* @__PURE__ */ l(
|
|
3336
|
+
/* @__PURE__ */ l(T, { label: "初次请求", children: /* @__PURE__ */ l(
|
|
3339
3337
|
we,
|
|
3340
3338
|
{
|
|
3341
3339
|
checked: (c == null ? void 0 : c.first) ?? !1,
|
|
@@ -3346,8 +3344,8 @@ function wo(e) {
|
|
|
3346
3344
|
) }),
|
|
3347
3345
|
/* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3348
3346
|
/* @__PURE__ */ l("b", { children: "数据结果" }),
|
|
3349
|
-
/* @__PURE__ */ l(
|
|
3350
|
-
|
|
3347
|
+
/* @__PURE__ */ l(j, { title: "请求数据", children: /* @__PURE__ */ l(
|
|
3348
|
+
Z,
|
|
3351
3349
|
{
|
|
3352
3350
|
className: "icon_clickable",
|
|
3353
3351
|
onClick: () => {
|
|
@@ -3357,7 +3355,7 @@ function wo(e) {
|
|
|
3357
3355
|
) })
|
|
3358
3356
|
] }),
|
|
3359
3357
|
/* @__PURE__ */ l(
|
|
3360
|
-
|
|
3358
|
+
X,
|
|
3361
3359
|
{
|
|
3362
3360
|
readOnly: !0,
|
|
3363
3361
|
minimap: !1,
|
|
@@ -3368,10 +3366,10 @@ function wo(e) {
|
|
|
3368
3366
|
)
|
|
3369
3367
|
] });
|
|
3370
3368
|
}
|
|
3371
|
-
const
|
|
3372
|
-
staticDataSource:
|
|
3369
|
+
const No = "_staticDataSource_1p3pl_59", wo = {
|
|
3370
|
+
staticDataSource: No
|
|
3373
3371
|
};
|
|
3374
|
-
function
|
|
3372
|
+
function Eo(e) {
|
|
3375
3373
|
const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
|
|
3376
3374
|
function a() {
|
|
3377
3375
|
if (!i)
|
|
@@ -3389,10 +3387,10 @@ function Lo(e) {
|
|
|
3389
3387
|
c(
|
|
3390
3388
|
n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
|
|
3391
3389
|
);
|
|
3392
|
-
}, [n]), /* @__PURE__ */ g("div", { className:
|
|
3393
|
-
/* @__PURE__ */ l(
|
|
3390
|
+
}, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
|
|
3391
|
+
/* @__PURE__ */ l(T, { label: "配置数据", children: /* @__PURE__ */ l(j, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: a }) }) }),
|
|
3394
3392
|
/* @__PURE__ */ l(
|
|
3395
|
-
|
|
3393
|
+
X,
|
|
3396
3394
|
{
|
|
3397
3395
|
minimap: !1,
|
|
3398
3396
|
language: "json",
|
|
@@ -3406,20 +3404,20 @@ function Lo(e) {
|
|
|
3406
3404
|
)
|
|
3407
3405
|
] });
|
|
3408
3406
|
}
|
|
3409
|
-
const
|
|
3407
|
+
const Ao = [
|
|
3410
3408
|
{ label: "静态数据", value: "static" },
|
|
3411
3409
|
{ label: "请求接口", value: "request" }
|
|
3412
3410
|
];
|
|
3413
|
-
function
|
|
3411
|
+
function Lo() {
|
|
3414
3412
|
const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
|
|
3415
|
-
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className:
|
|
3416
|
-
/* @__PURE__ */ l(
|
|
3413
|
+
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
|
|
3414
|
+
/* @__PURE__ */ l(T, { label: "数据源", children: /* @__PURE__ */ l(
|
|
3417
3415
|
Ce,
|
|
3418
3416
|
{
|
|
3419
3417
|
value: n,
|
|
3420
3418
|
allowClear: !1,
|
|
3421
3419
|
style: { width: "100%" },
|
|
3422
|
-
requestFn: async () =>
|
|
3420
|
+
requestFn: async () => Ao,
|
|
3423
3421
|
onChange: (i) => {
|
|
3424
3422
|
e.componentNode.update(t == null ? void 0 : t.id, {
|
|
3425
3423
|
dataSourceType: i
|
|
@@ -3427,14 +3425,14 @@ function Oo() {
|
|
|
3427
3425
|
}
|
|
3428
3426
|
}
|
|
3429
3427
|
) }),
|
|
3430
|
-
n === "static" && /* @__PURE__ */ l(
|
|
3431
|
-
n === "request" && /* @__PURE__ */ l(
|
|
3428
|
+
n === "static" && /* @__PURE__ */ l(Eo, { style: { flex: 1, overflow: "hidden" } }),
|
|
3429
|
+
n === "request" && /* @__PURE__ */ l(So, { style: { flex: 1, overflow: "hidden" } })
|
|
3432
3430
|
] }) });
|
|
3433
3431
|
}
|
|
3434
|
-
const
|
|
3435
|
-
interactive:
|
|
3432
|
+
const Do = "_interactive_1j74j_59", Oo = {
|
|
3433
|
+
interactive: Do
|
|
3436
3434
|
};
|
|
3437
|
-
function
|
|
3435
|
+
function Po(e) {
|
|
3438
3436
|
const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), a = A(
|
|
3439
3437
|
() => n.component.get(t == null ? void 0 : t.cId),
|
|
3440
3438
|
[t == null ? void 0 : t.cId]
|
|
@@ -3467,25 +3465,25 @@ function Bo(e) {
|
|
|
3467
3465
|
}
|
|
3468
3466
|
);
|
|
3469
3467
|
}
|
|
3470
|
-
const
|
|
3471
|
-
eventList:
|
|
3472
|
-
eventList_head:
|
|
3473
|
-
eventList_body:
|
|
3474
|
-
eventList_item:
|
|
3475
|
-
eventList_item_body:
|
|
3476
|
-
eventList_item_opt:
|
|
3477
|
-
eventList_item_opt_clickable:
|
|
3478
|
-
},
|
|
3479
|
-
editEventDialog:
|
|
3480
|
-
editEventDialog_menu:
|
|
3481
|
-
editEventDialog_body:
|
|
3482
|
-
},
|
|
3483
|
-
eventOptions_main:
|
|
3468
|
+
const Mo = "_eventList_19gi2_59", Bo = "_eventList_head_19gi2_62", zo = "_eventList_body_19gi2_68", To = "_eventList_item_19gi2_74", jo = "_eventList_item_body_19gi2_84", $o = "_eventList_item_opt_19gi2_90", Ro = "_eventList_item_opt_clickable_19gi2_95", G = {
|
|
3469
|
+
eventList: Mo,
|
|
3470
|
+
eventList_head: Bo,
|
|
3471
|
+
eventList_body: zo,
|
|
3472
|
+
eventList_item: To,
|
|
3473
|
+
eventList_item_body: jo,
|
|
3474
|
+
eventList_item_opt: $o,
|
|
3475
|
+
eventList_item_opt_clickable: Ro
|
|
3476
|
+
}, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
|
|
3477
|
+
editEventDialog: Fo,
|
|
3478
|
+
editEventDialog_menu: Ho,
|
|
3479
|
+
editEventDialog_body: Ko
|
|
3480
|
+
}, Uo = "_eventOptions_main_16n1f_59", Me = {
|
|
3481
|
+
eventOptions_main: Uo
|
|
3484
3482
|
};
|
|
3485
|
-
function
|
|
3483
|
+
function qo(e) {
|
|
3486
3484
|
var t;
|
|
3487
|
-
return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(
|
|
3488
|
-
|
|
3485
|
+
return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(T, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3486
|
+
qt,
|
|
3489
3487
|
{
|
|
3490
3488
|
size: "small",
|
|
3491
3489
|
checked: (t = e == null ? void 0 : e.value) == null ? void 0 : t.visible,
|
|
@@ -3499,8 +3497,8 @@ function Wo(e) {
|
|
|
3499
3497
|
}
|
|
3500
3498
|
) }) });
|
|
3501
3499
|
}
|
|
3502
|
-
const
|
|
3503
|
-
const [t, n] =
|
|
3500
|
+
const Jo = ue((e) => {
|
|
3501
|
+
const [t, n] = Tt.useState();
|
|
3504
3502
|
return w(() => {
|
|
3505
3503
|
var i;
|
|
3506
3504
|
e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
|
|
@@ -3541,7 +3539,7 @@ const Vo = ue((e) => {
|
|
|
3541
3539
|
children: [
|
|
3542
3540
|
/* @__PURE__ */ l("h3", { children: "转换函数" }),
|
|
3543
3541
|
/* @__PURE__ */ l(
|
|
3544
|
-
|
|
3542
|
+
X,
|
|
3545
3543
|
{
|
|
3546
3544
|
language: "javascript",
|
|
3547
3545
|
style: { height: 450 },
|
|
@@ -3554,12 +3552,12 @@ const Vo = ue((e) => {
|
|
|
3554
3552
|
);
|
|
3555
3553
|
});
|
|
3556
3554
|
function mn(e) {
|
|
3557
|
-
const t =
|
|
3555
|
+
const t = Jo({
|
|
3558
3556
|
onOk(i) {
|
|
3559
3557
|
var c;
|
|
3560
3558
|
(c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
|
|
3561
3559
|
}
|
|
3562
|
-
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(
|
|
3560
|
+
}), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(j, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
|
|
3563
3561
|
return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
|
|
3564
3562
|
"span",
|
|
3565
3563
|
{
|
|
@@ -3574,11 +3572,11 @@ function mn(e) {
|
|
|
3574
3572
|
}
|
|
3575
3573
|
) });
|
|
3576
3574
|
}
|
|
3577
|
-
const
|
|
3575
|
+
const Wo = /* @__PURE__ */ g("div", { children: [
|
|
3578
3576
|
/* @__PURE__ */ l("div", { children: "格式参考:" }),
|
|
3579
3577
|
/* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
|
|
3580
3578
|
] });
|
|
3581
|
-
function
|
|
3579
|
+
function Vo(e) {
|
|
3582
3580
|
var o, s, r;
|
|
3583
3581
|
const t = ((o = e == null ? void 0 : e.value) == null ? void 0 : o.type) || "default", [n, i] = S(), [c, a] = S("");
|
|
3584
3582
|
function d() {
|
|
@@ -3605,7 +3603,7 @@ function Xo(e) {
|
|
|
3605
3603
|
i((u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc);
|
|
3606
3604
|
}, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Me.eventOptions_main, children: [
|
|
3607
3605
|
/* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3608
|
-
/* @__PURE__ */ l(
|
|
3606
|
+
/* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3 }),
|
|
3609
3607
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3610
3608
|
/* @__PURE__ */ l(
|
|
3611
3609
|
Ce,
|
|
@@ -3644,9 +3642,9 @@ function Xo(e) {
|
|
|
3644
3642
|
] })
|
|
3645
3643
|
] }),
|
|
3646
3644
|
t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
|
|
3647
|
-
/* @__PURE__ */ l(
|
|
3645
|
+
/* @__PURE__ */ l(T, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(j, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
|
|
3648
3646
|
/* @__PURE__ */ l(
|
|
3649
|
-
|
|
3647
|
+
X,
|
|
3650
3648
|
{
|
|
3651
3649
|
value: c,
|
|
3652
3650
|
language: "json",
|
|
@@ -3659,7 +3657,7 @@ function Xo(e) {
|
|
|
3659
3657
|
] })
|
|
3660
3658
|
] });
|
|
3661
3659
|
}
|
|
3662
|
-
function
|
|
3660
|
+
function Go(e) {
|
|
3663
3661
|
var a;
|
|
3664
3662
|
const [t, n] = S();
|
|
3665
3663
|
function i(d) {
|
|
@@ -3676,7 +3674,7 @@ function Yo(e) {
|
|
|
3676
3674
|
var d;
|
|
3677
3675
|
n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
|
|
3678
3676
|
}, [(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: [
|
|
3679
|
-
/* @__PURE__ */ l(
|
|
3677
|
+
/* @__PURE__ */ l(T, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
|
|
3680
3678
|
"div",
|
|
3681
3679
|
{
|
|
3682
3680
|
style: {
|
|
@@ -3685,11 +3683,11 @@ function Yo(e) {
|
|
|
3685
3683
|
alignItems: "center",
|
|
3686
3684
|
justifyContent: "space-between"
|
|
3687
3685
|
},
|
|
3688
|
-
children: /* @__PURE__ */ l(
|
|
3686
|
+
children: /* @__PURE__ */ l(j, { title: "重置", children: /* @__PURE__ */ l(Yn, { onClick: c, className: "icon_clickable" }) })
|
|
3689
3687
|
}
|
|
3690
3688
|
) }),
|
|
3691
3689
|
/* @__PURE__ */ l(
|
|
3692
|
-
|
|
3690
|
+
X,
|
|
3693
3691
|
{
|
|
3694
3692
|
value: t ?? Bi,
|
|
3695
3693
|
language: "javascript",
|
|
@@ -3701,14 +3699,14 @@ function Yo(e) {
|
|
|
3701
3699
|
)
|
|
3702
3700
|
] }) });
|
|
3703
3701
|
}
|
|
3704
|
-
const
|
|
3702
|
+
const Xo = {
|
|
3705
3703
|
default: void 0,
|
|
3706
3704
|
number: 0,
|
|
3707
3705
|
text: "",
|
|
3708
3706
|
json: {}
|
|
3709
3707
|
};
|
|
3710
|
-
function
|
|
3711
|
-
var r, u, h, _, m, y, C, b,
|
|
3708
|
+
function Yo(e) {
|
|
3709
|
+
var r, u, h, _, m, y, C, b, k, f, v;
|
|
3712
3710
|
const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((u = e == null ? void 0 : e.value) == null ? void 0 : u.type) === "json", [c, a] = S(), [d, o] = S();
|
|
3713
3711
|
function s() {
|
|
3714
3712
|
var x;
|
|
@@ -3732,7 +3730,7 @@ function Qo(e) {
|
|
|
3732
3730
|
((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) === "json" && o(JSON.stringify(((L = e == null ? void 0 : e.value) == null ? void 0 : L.value) || {}, null, " "));
|
|
3733
3731
|
}, [(_ = e == null ? void 0 : e.value) == null ? void 0 : _.type, (m = e == null ? void 0 : e.value) == null ? void 0 : m.value]), /* @__PURE__ */ g("div", { className: Me.eventOptions_main, children: [
|
|
3734
3732
|
/* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3735
|
-
/* @__PURE__ */ l(
|
|
3733
|
+
/* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
|
|
3736
3734
|
/* @__PURE__ */ g(D, { children: [
|
|
3737
3735
|
/* @__PURE__ */ l(
|
|
3738
3736
|
Ce,
|
|
@@ -3748,7 +3746,7 @@ function Qo(e) {
|
|
|
3748
3746
|
],
|
|
3749
3747
|
onChange: (x) => t({
|
|
3750
3748
|
...e == null ? void 0 : e.value,
|
|
3751
|
-
value:
|
|
3749
|
+
value: Xo[x],
|
|
3752
3750
|
type: x
|
|
3753
3751
|
})
|
|
3754
3752
|
}
|
|
@@ -3770,14 +3768,14 @@ function Qo(e) {
|
|
|
3770
3768
|
] })
|
|
3771
3769
|
] }),
|
|
3772
3770
|
((y = e == null ? void 0 : e.value) == null ? void 0 : y.type) && ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
|
|
3773
|
-
/* @__PURE__ */ l(
|
|
3771
|
+
/* @__PURE__ */ l(T, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(j, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
|
|
3774
3772
|
/* @__PURE__ */ g(W, { children: [
|
|
3775
3773
|
((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
|
|
3776
3774
|
_t,
|
|
3777
3775
|
{
|
|
3778
3776
|
min: void 0,
|
|
3779
3777
|
style: { width: Ne * 2 },
|
|
3780
|
-
value: (
|
|
3778
|
+
value: (k = e == null ? void 0 : e.value) == null ? void 0 : k.value,
|
|
3781
3779
|
onChange: (x) => {
|
|
3782
3780
|
t({
|
|
3783
3781
|
...e == null ? void 0 : e.value,
|
|
@@ -3801,7 +3799,7 @@ function Qo(e) {
|
|
|
3801
3799
|
}
|
|
3802
3800
|
),
|
|
3803
3801
|
i && /* @__PURE__ */ l(
|
|
3804
|
-
|
|
3802
|
+
X,
|
|
3805
3803
|
{
|
|
3806
3804
|
language: "javascript",
|
|
3807
3805
|
style: { height: 375 },
|
|
@@ -3816,7 +3814,7 @@ function Qo(e) {
|
|
|
3816
3814
|
] });
|
|
3817
3815
|
}
|
|
3818
3816
|
const Ne = 200;
|
|
3819
|
-
function
|
|
3817
|
+
function Zo(e) {
|
|
3820
3818
|
var i, c, a, d, o;
|
|
3821
3819
|
const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
|
|
3822
3820
|
function n(s) {
|
|
@@ -3826,22 +3824,22 @@ function po(e) {
|
|
|
3826
3824
|
option: s
|
|
3827
3825
|
}));
|
|
3828
3826
|
}
|
|
3829
|
-
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) ===
|
|
3827
|
+
return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === je.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === je.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === je.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
|
|
3830
3828
|
}
|
|
3831
|
-
const
|
|
3832
|
-
targetList:
|
|
3833
|
-
targetList_body:
|
|
3834
|
-
targetList_item:
|
|
3835
|
-
targetList_item_clickable:
|
|
3836
|
-
targetList_item_selected:
|
|
3837
|
-
},
|
|
3838
|
-
addComponentNodeButton:
|
|
3839
|
-
addComponentNodeButton_body:
|
|
3840
|
-
addComponentNodeButton_item:
|
|
3841
|
-
addComponentNodeButton_item_text:
|
|
3842
|
-
dropdown_overlay:
|
|
3829
|
+
const Qo = "_targetList_17cmb_59", po = "_targetList_body_17cmb_66", ed = "_targetList_item_17cmb_74", td = "_targetList_item_clickable_17cmb_82", nd = "_targetList_item_selected_17cmb_89", me = {
|
|
3830
|
+
targetList: Qo,
|
|
3831
|
+
targetList_body: po,
|
|
3832
|
+
targetList_item: ed,
|
|
3833
|
+
targetList_item_clickable: td,
|
|
3834
|
+
targetList_item_selected: nd
|
|
3835
|
+
}, id = "_addComponentNodeButton_xm0lb_59", ld = "_addComponentNodeButton_body_xm0lb_68", cd = "_addComponentNodeButton_item_xm0lb_73", ad = "_addComponentNodeButton_item_text_xm0lb_84", od = "_dropdown_overlay_xm0lb_93", fe = {
|
|
3836
|
+
addComponentNodeButton: id,
|
|
3837
|
+
addComponentNodeButton_body: ld,
|
|
3838
|
+
addComponentNodeButton_item: cd,
|
|
3839
|
+
addComponentNodeButton_item_text: ad,
|
|
3840
|
+
dropdown_overlay: od
|
|
3843
3841
|
};
|
|
3844
|
-
function
|
|
3842
|
+
function dd(e) {
|
|
3845
3843
|
const { componentNode: t } = e;
|
|
3846
3844
|
return /* @__PURE__ */ g(D, { direction: "vertical", style: { fontSize: 12 }, className: "theme-color", size: 6, children: [
|
|
3847
3845
|
/* @__PURE__ */ g("div", { children: [
|
|
@@ -3862,11 +3860,11 @@ function sd(e) {
|
|
|
3862
3860
|
/* @__PURE__ */ g("div", { children: [
|
|
3863
3861
|
/* @__PURE__ */ l("b", { children: "show" }),
|
|
3864
3862
|
":",
|
|
3865
|
-
/* @__PURE__ */ l(
|
|
3863
|
+
/* @__PURE__ */ l(qt, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
|
|
3866
3864
|
] })
|
|
3867
3865
|
] });
|
|
3868
3866
|
}
|
|
3869
|
-
function
|
|
3867
|
+
function rd(e) {
|
|
3870
3868
|
var _;
|
|
3871
3869
|
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B();
|
|
3872
3870
|
w(() => {
|
|
@@ -3880,8 +3878,8 @@ function ud(e) {
|
|
|
3880
3878
|
var y;
|
|
3881
3879
|
const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
|
|
3882
3880
|
return c.filter((C) => {
|
|
3883
|
-
var b,
|
|
3884
|
-
return (v = (f = (
|
|
3881
|
+
var b, k, f, v;
|
|
3882
|
+
return (v = (f = (k = (b = C == null ? void 0 : C.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : k.call(b)) == null ? void 0 : f.includes) == null ? void 0 : v.call(f, m);
|
|
3885
3883
|
});
|
|
3886
3884
|
}, [d, c]);
|
|
3887
3885
|
function u() {
|
|
@@ -3902,15 +3900,15 @@ function ud(e) {
|
|
|
3902
3900
|
{
|
|
3903
3901
|
key: "body",
|
|
3904
3902
|
label: /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton, children: [
|
|
3905
|
-
/* @__PURE__ */ l(
|
|
3903
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: o }),
|
|
3906
3904
|
/* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
|
|
3907
|
-
!(r != null && r.length) && /* @__PURE__ */ l(
|
|
3905
|
+
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
3908
3906
|
(_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
|
|
3909
3907
|
const y = t.component.get(m == null ? void 0 : m.cId);
|
|
3910
3908
|
return /* @__PURE__ */ l(
|
|
3911
3909
|
st,
|
|
3912
3910
|
{
|
|
3913
|
-
content: /* @__PURE__ */ l(
|
|
3911
|
+
content: /* @__PURE__ */ l(dd, { componentNode: m }),
|
|
3914
3912
|
placement: "right",
|
|
3915
3913
|
children: /* @__PURE__ */ g(
|
|
3916
3914
|
"div",
|
|
@@ -3957,7 +3955,7 @@ function ud(e) {
|
|
|
3957
3955
|
}
|
|
3958
3956
|
);
|
|
3959
3957
|
}
|
|
3960
|
-
function
|
|
3958
|
+
function sd(e) {
|
|
3961
3959
|
var d;
|
|
3962
3960
|
const t = ht(), { engine: n } = N(), i = A(() => {
|
|
3963
3961
|
var o, s;
|
|
@@ -3985,8 +3983,8 @@ function hd(e) {
|
|
|
3985
3983
|
let s;
|
|
3986
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)) || [], u = ((y = s == null ? void 0 : s.opts) == null ? void 0 : y.length) || 0;
|
|
3987
3985
|
function h() {
|
|
3988
|
-
var C, b,
|
|
3989
|
-
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((
|
|
3986
|
+
var C, b, k;
|
|
3987
|
+
(C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((k = e == null ? void 0 : e.onChange) == null || k.call(e, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.id));
|
|
3990
3988
|
}
|
|
3991
3989
|
if (u) {
|
|
3992
3990
|
t({
|
|
@@ -4002,7 +4000,7 @@ function hd(e) {
|
|
|
4002
4000
|
}
|
|
4003
4001
|
return /* @__PURE__ */ g("div", { className: $(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4004
4002
|
/* @__PURE__ */ l(
|
|
4005
|
-
|
|
4003
|
+
rd,
|
|
4006
4004
|
{
|
|
4007
4005
|
style: { margin: -1 },
|
|
4008
4006
|
beforeVisible: (o) => o.filter((s) => {
|
|
@@ -4042,29 +4040,29 @@ function hd(e) {
|
|
|
4042
4040
|
o == null ? void 0 : o.value
|
|
4043
4041
|
);
|
|
4044
4042
|
}) }),
|
|
4045
|
-
!(i != null && i.length) && /* @__PURE__ */ l(
|
|
4043
|
+
!(i != null && i.length) && /* @__PURE__ */ l(U, {})
|
|
4046
4044
|
] });
|
|
4047
4045
|
}
|
|
4048
|
-
const
|
|
4049
|
-
targetList:
|
|
4050
|
-
targetList_body:
|
|
4051
|
-
targetList_item:
|
|
4052
|
-
targetList_item_clickable:
|
|
4053
|
-
targetList_item_selected:
|
|
4054
|
-
},
|
|
4055
|
-
addExposesButton:
|
|
4056
|
-
addExposesButton_body:
|
|
4057
|
-
addExposesButton_item:
|
|
4058
|
-
addExposesButton_item_text:
|
|
4046
|
+
const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targetList_item_17cmb_74", _d = "_targetList_item_clickable_17cmb_82", md = "_targetList_item_selected_17cmb_89", ye = {
|
|
4047
|
+
targetList: ud,
|
|
4048
|
+
targetList_body: hd,
|
|
4049
|
+
targetList_item: gd,
|
|
4050
|
+
targetList_item_clickable: _d,
|
|
4051
|
+
targetList_item_selected: md
|
|
4052
|
+
}, fd = "_addExposesButton_1t3fz_59", yd = "_addExposesButton_body_1t3fz_68", vd = "_addExposesButton_item_1t3fz_73", bd = "_addExposesButton_item_text_1t3fz_84", Se = {
|
|
4053
|
+
addExposesButton: fd,
|
|
4054
|
+
addExposesButton_body: yd,
|
|
4055
|
+
addExposesButton_item: vd,
|
|
4056
|
+
addExposesButton_item_text: bd
|
|
4059
4057
|
};
|
|
4060
|
-
function
|
|
4058
|
+
function Cd(e) {
|
|
4061
4059
|
var h;
|
|
4062
4060
|
const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B(), r = A(() => {
|
|
4063
4061
|
var m;
|
|
4064
4062
|
const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
|
|
4065
4063
|
return c.filter((y) => {
|
|
4066
|
-
var C, b,
|
|
4067
|
-
return (f = (
|
|
4064
|
+
var C, b, k, f;
|
|
4065
|
+
return (f = (k = (b = (C = y == null ? void 0 : y.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : b.call(C)) == null ? void 0 : k.includes) == null ? void 0 : f.call(k, _);
|
|
4068
4066
|
});
|
|
4069
4067
|
}, [d, c]);
|
|
4070
4068
|
function u() {
|
|
@@ -4090,9 +4088,9 @@ function Id(e) {
|
|
|
4090
4088
|
visible: n,
|
|
4091
4089
|
onClose: u,
|
|
4092
4090
|
overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
|
|
4093
|
-
/* @__PURE__ */ l(
|
|
4091
|
+
/* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: o }),
|
|
4094
4092
|
/* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
|
|
4095
|
-
!(r != null && r.length) && /* @__PURE__ */ l(
|
|
4093
|
+
!(r != null && r.length) && /* @__PURE__ */ l(U, {}),
|
|
4096
4094
|
(h = r == null ? void 0 : r.map) == null ? void 0 : h.call(r, (_) => /* @__PURE__ */ l(
|
|
4097
4095
|
"div",
|
|
4098
4096
|
{
|
|
@@ -4121,7 +4119,7 @@ function Id(e) {
|
|
|
4121
4119
|
}
|
|
4122
4120
|
);
|
|
4123
4121
|
}
|
|
4124
|
-
function
|
|
4122
|
+
function xd(e) {
|
|
4125
4123
|
var d;
|
|
4126
4124
|
const { engine: t } = N(), n = A(() => {
|
|
4127
4125
|
var s, r;
|
|
@@ -4156,7 +4154,7 @@ function kd(e) {
|
|
|
4156
4154
|
}
|
|
4157
4155
|
return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
|
|
4158
4156
|
/* @__PURE__ */ l(
|
|
4159
|
-
|
|
4157
|
+
Cd,
|
|
4160
4158
|
{
|
|
4161
4159
|
style: { margin: -1 },
|
|
4162
4160
|
cId: e == null ? void 0 : e.cId,
|
|
@@ -4165,7 +4163,7 @@ function kd(e) {
|
|
|
4165
4163
|
}
|
|
4166
4164
|
),
|
|
4167
4165
|
/* @__PURE__ */ g("div", { className: ye.targetList_body, children: [
|
|
4168
|
-
!(i != null && i.length) && /* @__PURE__ */ l(
|
|
4166
|
+
!(i != null && i.length) && /* @__PURE__ */ l(U, {}),
|
|
4169
4167
|
(d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
|
|
4170
4168
|
const s = (o == null ? void 0 : o.value) === (e == null ? void 0 : e.value);
|
|
4171
4169
|
return /* @__PURE__ */ g(
|
|
@@ -4198,15 +4196,15 @@ function kd(e) {
|
|
|
4198
4196
|
] })
|
|
4199
4197
|
] });
|
|
4200
4198
|
}
|
|
4201
|
-
const
|
|
4199
|
+
const kd = ue((e) => {
|
|
4202
4200
|
const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [a, d] = S(), [o, s] = S(), [r, u] = S(), h = A(() => {
|
|
4203
4201
|
var f;
|
|
4204
4202
|
return (f = t.componentNode.get(o == null ? void 0 : o.id)) == null ? void 0 : f.cId;
|
|
4205
4203
|
}, [o]);
|
|
4206
4204
|
function _(f) {
|
|
4207
|
-
var x, L,
|
|
4205
|
+
var x, L, z;
|
|
4208
4206
|
const v = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
|
|
4209
|
-
s(v), u((
|
|
4207
|
+
s(v), u((z = v == null ? void 0 : v.opts) == null ? void 0 : z[0]);
|
|
4210
4208
|
}
|
|
4211
4209
|
function m(f) {
|
|
4212
4210
|
var v, x;
|
|
@@ -4227,11 +4225,11 @@ const Sd = ue((e) => {
|
|
|
4227
4225
|
function b(f) {
|
|
4228
4226
|
var v, x;
|
|
4229
4227
|
(x = (v = a == null ? void 0 : a.targets) == null ? void 0 : v.find) == null || x.call(v, (L) => {
|
|
4230
|
-
var
|
|
4231
|
-
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (
|
|
4228
|
+
var z, R;
|
|
4229
|
+
return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (z = L.opts) == null ? void 0 : z.find) == null || R.call(z, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
|
|
4232
4230
|
}), d({ ...a });
|
|
4233
4231
|
}
|
|
4234
|
-
function
|
|
4232
|
+
function k() {
|
|
4235
4233
|
var f;
|
|
4236
4234
|
(f = e == null ? void 0 : e.onOk) == null || f.call(e, a);
|
|
4237
4235
|
}
|
|
@@ -4242,12 +4240,12 @@ const Sd = ue((e) => {
|
|
|
4242
4240
|
E.error("triggerId不存在");
|
|
4243
4241
|
return;
|
|
4244
4242
|
}
|
|
4245
|
-
let
|
|
4246
|
-
|
|
4247
|
-
const R = (x =
|
|
4243
|
+
let z = (v = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : v.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
|
|
4244
|
+
z = Yt(z || {}), d(z);
|
|
4245
|
+
const R = (x = z == null ? void 0 : z.targets) == null ? void 0 : x[0];
|
|
4248
4246
|
s(R);
|
|
4249
|
-
const
|
|
4250
|
-
u(
|
|
4247
|
+
const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
|
|
4248
|
+
u(q);
|
|
4251
4249
|
} else
|
|
4252
4250
|
d(void 0), s(void 0), u(void 0);
|
|
4253
4251
|
}, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
|
|
@@ -4263,11 +4261,11 @@ const Sd = ue((e) => {
|
|
|
4263
4261
|
bodyStyle: { height: 500, display: "flex", padding: 16, userSelect: "none" },
|
|
4264
4262
|
afterClose: e == null ? void 0 : e.afterClose,
|
|
4265
4263
|
onCancel: e == null ? void 0 : e.onCancel,
|
|
4266
|
-
onOk:
|
|
4264
|
+
onOk: k,
|
|
4267
4265
|
children: [
|
|
4268
4266
|
/* @__PURE__ */ g("div", { className: Ye.editEventDialog_menu, children: [
|
|
4269
4267
|
/* @__PURE__ */ l(
|
|
4270
|
-
|
|
4268
|
+
sd,
|
|
4271
4269
|
{
|
|
4272
4270
|
className: "border-right",
|
|
4273
4271
|
value: o == null ? void 0 : o.id,
|
|
@@ -4281,7 +4279,7 @@ const Sd = ue((e) => {
|
|
|
4281
4279
|
}
|
|
4282
4280
|
),
|
|
4283
4281
|
/* @__PURE__ */ l(
|
|
4284
|
-
|
|
4282
|
+
xd,
|
|
4285
4283
|
{
|
|
4286
4284
|
value: r == null ? void 0 : r.operateId,
|
|
4287
4285
|
onChange: (f) => {
|
|
@@ -4296,7 +4294,7 @@ const Sd = ue((e) => {
|
|
|
4296
4294
|
)
|
|
4297
4295
|
] }),
|
|
4298
4296
|
/* @__PURE__ */ l("div", { className: Ye.editEventDialog_body, children: /* @__PURE__ */ l(
|
|
4299
|
-
|
|
4297
|
+
Zo,
|
|
4300
4298
|
{
|
|
4301
4299
|
value: r,
|
|
4302
4300
|
onChange: (f) => {
|
|
@@ -4308,9 +4306,9 @@ const Sd = ue((e) => {
|
|
|
4308
4306
|
}
|
|
4309
4307
|
);
|
|
4310
4308
|
});
|
|
4311
|
-
function
|
|
4309
|
+
function Id(e) {
|
|
4312
4310
|
var u;
|
|
4313
|
-
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a =
|
|
4311
|
+
const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a = kd({
|
|
4314
4312
|
onOk(h) {
|
|
4315
4313
|
t.componentNode.update(n == null ? void 0 : n.id, (_) => {
|
|
4316
4314
|
var m, y;
|
|
@@ -4357,33 +4355,33 @@ function Nd(e) {
|
|
|
4357
4355
|
E.warn("triggerId不存在");
|
|
4358
4356
|
return;
|
|
4359
4357
|
}
|
|
4360
|
-
const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (
|
|
4358
|
+
const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (k) => (k == null ? void 0 : k.triggerId) === h);
|
|
4361
4359
|
(C = _ == null ? void 0 : _.targets) != null && C.length ? c({
|
|
4362
4360
|
title: "提醒",
|
|
4363
4361
|
content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
|
|
4364
|
-
onOk(
|
|
4365
|
-
s(h),
|
|
4362
|
+
onOk(k) {
|
|
4363
|
+
s(h), k();
|
|
4366
4364
|
}
|
|
4367
4365
|
}) : s(h);
|
|
4368
4366
|
}
|
|
4369
|
-
return /* @__PURE__ */ g("div", { className:
|
|
4370
|
-
/* @__PURE__ */ l("div", { className:
|
|
4371
|
-
/* @__PURE__ */ g("div", { className:
|
|
4372
|
-
!(d != null && d.length) && /* @__PURE__ */ l(
|
|
4373
|
-
(u = d == null ? void 0 : d.map) == null ? void 0 : u.call(d, (h) => /* @__PURE__ */ g("div", { className:
|
|
4374
|
-
/* @__PURE__ */ l("div", { className:
|
|
4375
|
-
/* @__PURE__ */ g("div", { className:
|
|
4367
|
+
return /* @__PURE__ */ g("div", { className: G.eventList, children: [
|
|
4368
|
+
/* @__PURE__ */ l("div", { className: G.eventList_head, children: "绑定事件:" }),
|
|
4369
|
+
/* @__PURE__ */ g("div", { className: G.eventList_body, children: [
|
|
4370
|
+
!(d != null && d.length) && /* @__PURE__ */ l(U, {}),
|
|
4371
|
+
(u = d == null ? void 0 : d.map) == null ? void 0 : u.call(d, (h) => /* @__PURE__ */ g("div", { className: G.eventList_item, children: [
|
|
4372
|
+
/* @__PURE__ */ l("div", { className: G.eventList_item_body, children: h.label }),
|
|
4373
|
+
/* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
|
|
4376
4374
|
/* @__PURE__ */ l(
|
|
4377
4375
|
Ft,
|
|
4378
4376
|
{
|
|
4379
|
-
className:
|
|
4377
|
+
className: G.eventList_item_opt_clickable,
|
|
4380
4378
|
onClick: () => o(h)
|
|
4381
4379
|
}
|
|
4382
4380
|
),
|
|
4383
4381
|
/* @__PURE__ */ l(
|
|
4384
4382
|
de,
|
|
4385
4383
|
{
|
|
4386
|
-
className:
|
|
4384
|
+
className: G.eventList_item_opt_clickable,
|
|
4387
4385
|
onClick: () => r(h == null ? void 0 : h.value)
|
|
4388
4386
|
}
|
|
4389
4387
|
)
|
|
@@ -4392,11 +4390,11 @@ function Nd(e) {
|
|
|
4392
4390
|
] })
|
|
4393
4391
|
] });
|
|
4394
4392
|
}
|
|
4395
|
-
function
|
|
4393
|
+
function Sd() {
|
|
4396
4394
|
const { engine: e } = N(), { componentNode: t } = he();
|
|
4397
|
-
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className:
|
|
4395
|
+
return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: Oo.interactive, children: [
|
|
4398
4396
|
/* @__PURE__ */ l(
|
|
4399
|
-
|
|
4397
|
+
Po,
|
|
4400
4398
|
{
|
|
4401
4399
|
componentNode: t,
|
|
4402
4400
|
onSelect: (n) => {
|
|
@@ -4412,15 +4410,15 @@ function wd() {
|
|
|
4412
4410
|
}
|
|
4413
4411
|
}
|
|
4414
4412
|
),
|
|
4415
|
-
/* @__PURE__ */ l(
|
|
4413
|
+
/* @__PURE__ */ l(Id, { componentNode: t })
|
|
4416
4414
|
] }) });
|
|
4417
4415
|
}
|
|
4418
|
-
const
|
|
4419
|
-
json:
|
|
4420
|
-
json_head:
|
|
4421
|
-
json_body:
|
|
4416
|
+
const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_76", Ze = {
|
|
4417
|
+
json: Nd,
|
|
4418
|
+
json_head: wd,
|
|
4419
|
+
json_body: Ed
|
|
4422
4420
|
};
|
|
4423
|
-
function
|
|
4421
|
+
function Ad() {
|
|
4424
4422
|
const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm();
|
|
4425
4423
|
function i() {
|
|
4426
4424
|
n.setFieldsValue({
|
|
@@ -4446,12 +4444,12 @@ function Dd() {
|
|
|
4446
4444
|
/* @__PURE__ */ g("div", { className: Ze.json_head, children: [
|
|
4447
4445
|
/* @__PURE__ */ g("span", { children: [
|
|
4448
4446
|
/* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
|
|
4449
|
-
/* @__PURE__ */ l(
|
|
4447
|
+
/* @__PURE__ */ l(j, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
|
|
4450
4448
|
] }),
|
|
4451
|
-
/* @__PURE__ */ l(
|
|
4449
|
+
/* @__PURE__ */ l(j, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
|
|
4452
4450
|
] }),
|
|
4453
4451
|
/* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
|
|
4454
|
-
|
|
4452
|
+
X,
|
|
4455
4453
|
{
|
|
4456
4454
|
language: "json",
|
|
4457
4455
|
minimap: !1,
|
|
@@ -4467,9 +4465,9 @@ function Dd() {
|
|
|
4467
4465
|
) }) })
|
|
4468
4466
|
] });
|
|
4469
4467
|
}
|
|
4470
|
-
const
|
|
4471
|
-
singleAttributes:
|
|
4472
|
-
}, fn =
|
|
4468
|
+
const Ld = "_singleAttributes_109pm_59", Dd = {
|
|
4469
|
+
singleAttributes: Ld
|
|
4470
|
+
}, fn = kn({}), he = () => In(fn);
|
|
4473
4471
|
function yn(e) {
|
|
4474
4472
|
const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = nn(c);
|
|
4475
4473
|
return w(() => {
|
|
@@ -4483,36 +4481,36 @@ function yn(e) {
|
|
|
4483
4481
|
}), []), A(() => a ? /* @__PURE__ */ l(fn.Provider, { value: { instance: c, componentNode: a }, children: /* @__PURE__ */ l(
|
|
4484
4482
|
ei,
|
|
4485
4483
|
{
|
|
4486
|
-
className:
|
|
4484
|
+
className: Dd.singleAttributes,
|
|
4487
4485
|
defaultActiveKey: "1",
|
|
4488
4486
|
size: "small",
|
|
4489
4487
|
items: [
|
|
4490
|
-
{ key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(
|
|
4488
|
+
{ key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(bo, {}) },
|
|
4491
4489
|
{
|
|
4492
4490
|
key: "2",
|
|
4493
4491
|
label: t("attributes.dataSource.title"),
|
|
4494
|
-
children: /* @__PURE__ */ l(
|
|
4492
|
+
children: /* @__PURE__ */ l(Lo, {})
|
|
4495
4493
|
},
|
|
4496
4494
|
{
|
|
4497
4495
|
key: "3",
|
|
4498
4496
|
label: t("attributes.interactive.title"),
|
|
4499
|
-
children: /* @__PURE__ */ l(
|
|
4497
|
+
children: /* @__PURE__ */ l(Sd, {})
|
|
4500
4498
|
},
|
|
4501
4499
|
{
|
|
4502
4500
|
key: "4",
|
|
4503
4501
|
label: "json",
|
|
4504
|
-
children: /* @__PURE__ */ l(
|
|
4502
|
+
children: /* @__PURE__ */ l(Ad, {})
|
|
4505
4503
|
}
|
|
4506
4504
|
]
|
|
4507
4505
|
}
|
|
4508
4506
|
) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, a, n.language]);
|
|
4509
4507
|
}
|
|
4510
|
-
const
|
|
4511
|
-
multipleInstanceAttributes:
|
|
4512
|
-
multipleInstanceAttributes_header:
|
|
4513
|
-
multipleInstanceAttributes_body:
|
|
4508
|
+
const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Md = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
|
|
4509
|
+
multipleInstanceAttributes: Od,
|
|
4510
|
+
multipleInstanceAttributes_header: Pd,
|
|
4511
|
+
multipleInstanceAttributes_body: Md
|
|
4514
4512
|
};
|
|
4515
|
-
function
|
|
4513
|
+
function Bd(e) {
|
|
4516
4514
|
const t = yt();
|
|
4517
4515
|
return /* @__PURE__ */ l(
|
|
4518
4516
|
Ce,
|
|
@@ -4529,13 +4527,13 @@ function zd(e) {
|
|
|
4529
4527
|
}
|
|
4530
4528
|
);
|
|
4531
4529
|
}
|
|
4532
|
-
function
|
|
4530
|
+
function zd(e) {
|
|
4533
4531
|
const { instances: t } = e, [n, i] = S();
|
|
4534
4532
|
return w(() => {
|
|
4535
4533
|
i(t[0]);
|
|
4536
4534
|
}, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
|
|
4537
4535
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
|
|
4538
|
-
|
|
4536
|
+
Bd,
|
|
4539
4537
|
{
|
|
4540
4538
|
allowClear: !1,
|
|
4541
4539
|
style: { width: "100%" },
|
|
@@ -4548,12 +4546,12 @@ function Td(e) {
|
|
|
4548
4546
|
/* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(yn, { instance: n }) })
|
|
4549
4547
|
] });
|
|
4550
4548
|
}
|
|
4551
|
-
const
|
|
4552
|
-
pageAttributes:
|
|
4553
|
-
pageAttributes_description:
|
|
4554
|
-
pageAttributes_body:
|
|
4549
|
+
const Td = "_pageAttributes_u2l2i_59", jd = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
|
|
4550
|
+
pageAttributes: Td,
|
|
4551
|
+
pageAttributes_description: jd,
|
|
4552
|
+
pageAttributes_body: $d
|
|
4555
4553
|
};
|
|
4556
|
-
function
|
|
4554
|
+
function Rd() {
|
|
4557
4555
|
const { engine: e } = N(), [t] = se(), n = yi(), { id: i, options: c } = n || {};
|
|
4558
4556
|
function a(d) {
|
|
4559
4557
|
e.page.update(i, {
|
|
@@ -4577,7 +4575,7 @@ function Hd() {
|
|
|
4577
4575
|
] }) }),
|
|
4578
4576
|
/* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
|
|
4579
4577
|
/* @__PURE__ */ g(
|
|
4580
|
-
|
|
4578
|
+
T,
|
|
4581
4579
|
{
|
|
4582
4580
|
label: "页面背景",
|
|
4583
4581
|
labelTip: "设置当前页背景颜色",
|
|
@@ -4593,8 +4591,8 @@ function Hd() {
|
|
|
4593
4591
|
}
|
|
4594
4592
|
}
|
|
4595
4593
|
),
|
|
4596
|
-
/* @__PURE__ */ l(
|
|
4597
|
-
|
|
4594
|
+
/* @__PURE__ */ l(j, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4595
|
+
Z,
|
|
4598
4596
|
{
|
|
4599
4597
|
className: "icon_clickable",
|
|
4600
4598
|
onClick: () => {
|
|
@@ -4606,7 +4604,7 @@ function Hd() {
|
|
|
4606
4604
|
}
|
|
4607
4605
|
),
|
|
4608
4606
|
/* @__PURE__ */ g(
|
|
4609
|
-
|
|
4607
|
+
T,
|
|
4610
4608
|
{
|
|
4611
4609
|
label: "白板背景",
|
|
4612
4610
|
labelTip: "页面所处白板的背景颜色",
|
|
@@ -4622,8 +4620,8 @@ function Hd() {
|
|
|
4622
4620
|
}
|
|
4623
4621
|
}
|
|
4624
4622
|
),
|
|
4625
|
-
/* @__PURE__ */ l(
|
|
4626
|
-
|
|
4623
|
+
/* @__PURE__ */ l(j, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4624
|
+
Z,
|
|
4627
4625
|
{
|
|
4628
4626
|
className: "icon_clickable",
|
|
4629
4627
|
onClick: () => {
|
|
@@ -4635,7 +4633,7 @@ function Hd() {
|
|
|
4635
4633
|
}
|
|
4636
4634
|
),
|
|
4637
4635
|
/* @__PURE__ */ g(
|
|
4638
|
-
|
|
4636
|
+
T,
|
|
4639
4637
|
{
|
|
4640
4638
|
label: "边框",
|
|
4641
4639
|
childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
|
|
@@ -4663,8 +4661,8 @@ function Hd() {
|
|
|
4663
4661
|
}
|
|
4664
4662
|
}
|
|
4665
4663
|
),
|
|
4666
|
-
/* @__PURE__ */ l(
|
|
4667
|
-
|
|
4664
|
+
/* @__PURE__ */ l(j, { title: t("reset"), children: /* @__PURE__ */ l(
|
|
4665
|
+
Z,
|
|
4668
4666
|
{
|
|
4669
4667
|
className: "icon_clickable",
|
|
4670
4668
|
onClick: () => {
|
|
@@ -4679,50 +4677,36 @@ function Hd() {
|
|
|
4679
4677
|
] }) })
|
|
4680
4678
|
] });
|
|
4681
4679
|
}
|
|
4682
|
-
function
|
|
4680
|
+
function Fd() {
|
|
4683
4681
|
const e = yt(), t = A(() => !!e.length, [e]), n = A(() => e.length === 1, [e]);
|
|
4684
|
-
return /* @__PURE__ */ l("div", { className:
|
|
4682
|
+
return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
|
|
4685
4683
|
// 选中组件实例配置
|
|
4686
4684
|
/* @__PURE__ */ g(W, { children: [
|
|
4687
4685
|
n && /* @__PURE__ */ l(yn, { instance: e[0] }),
|
|
4688
|
-
!n && /* @__PURE__ */ l(
|
|
4686
|
+
!n && /* @__PURE__ */ l(zd, { instances: e })
|
|
4689
4687
|
] })
|
|
4690
4688
|
) : (
|
|
4691
4689
|
// 默认页面配置
|
|
4692
|
-
/* @__PURE__ */ l(
|
|
4690
|
+
/* @__PURE__ */ l(Rd, {})
|
|
4693
4691
|
) });
|
|
4694
4692
|
}
|
|
4695
|
-
function
|
|
4693
|
+
function Cr(e) {
|
|
4696
4694
|
const { engine: t, json: n } = e;
|
|
4697
|
-
return pi(),
|
|
4695
|
+
return pi(), Tt.useEffect(() => {
|
|
4698
4696
|
t.loadJSON(n).then(() => {
|
|
4699
4697
|
var i;
|
|
4700
4698
|
(i = e == null ? void 0 : e.onJSONLoad) == null || i.call(e);
|
|
4701
4699
|
});
|
|
4702
|
-
}, []), /* @__PURE__ */ g("div", { className:
|
|
4703
|
-
/* @__PURE__ */ l("div", { className:
|
|
4704
|
-
/* @__PURE__ */ g("div", { className:
|
|
4705
|
-
/* @__PURE__ */ l("div", { className:
|
|
4706
|
-
/* @__PURE__ */ l("div", { className:
|
|
4707
|
-
/* @__PURE__ */ l("div", { className:
|
|
4700
|
+
}, []), /* @__PURE__ */ g("div", { className: te.page, children: [
|
|
4701
|
+
/* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, {}) }),
|
|
4702
|
+
/* @__PURE__ */ g("div", { className: te.page_body, children: [
|
|
4703
|
+
/* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
|
|
4704
|
+
/* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
|
|
4705
|
+
/* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
|
|
4708
4706
|
] }),
|
|
4709
|
-
|
|
4710
|
-
/* @__PURE__ */ g("div", { className: G.page_footer_beian, children: [
|
|
4711
|
-
/* @__PURE__ */ l("img", { src: "/beian.png" }),
|
|
4712
|
-
/* @__PURE__ */ l(
|
|
4713
|
-
"a",
|
|
4714
|
-
{
|
|
4715
|
-
href: "https://beian.mps.gov.cn/#/query/webSearch?code=33010602013871",
|
|
4716
|
-
rel: "noreferrer",
|
|
4717
|
-
target: "_blank",
|
|
4718
|
-
children: "浙公网安备33010602013871号"
|
|
4719
|
-
}
|
|
4720
|
-
)
|
|
4721
|
-
] }),
|
|
4722
|
-
/* @__PURE__ */ l("a", { href: "https://beian.miit.gov.cn", target: "_blank", rel: "noreferrer", children: "浙ICP备2024117433号-2" })
|
|
4723
|
-
] })
|
|
4707
|
+
e == null ? void 0 : e.footer
|
|
4724
4708
|
] });
|
|
4725
4709
|
}
|
|
4726
4710
|
export {
|
|
4727
|
-
|
|
4711
|
+
Cr as default
|
|
4728
4712
|
};
|