@wibetter/json-editor 5.3.1 → 6.0.1

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/lib/index.js CHANGED
@@ -10,79 +10,6 @@
10
10
  })(this, function () {
11
11
  return (function () {
12
12
  var __webpack_modules__ = {
13
- 2187: function (e, t, n) {
14
- 'use strict';
15
- n.d(t, {
16
- A$: function () {
17
- return u;
18
- },
19
- A4: function () {
20
- return s;
21
- },
22
- Jd: function () {
23
- return l;
24
- },
25
- Sd: function () {
26
- return p;
27
- },
28
- TS: function () {
29
- return c;
30
- },
31
- });
32
- var a = n(6031),
33
- o = n.n(a),
34
- r = n(7102),
35
- i = n(252),
36
- l = {};
37
- function s(e) {
38
- return function (t) {
39
- return c(o()({}, e, { component: t })).component;
40
- };
41
- }
42
- function c(e) {
43
- if (e.type)
44
- if (e.component) {
45
- if (
46
- (e.type &&
47
- 'string' == typeof e.type &&
48
- (e.type = e.type.toLowerCase()),
49
- !l[e.type])
50
- ) {
51
- var t = (0, i.A)(e.component);
52
- return (l[e.type] = t), e;
53
- }
54
- console.warn(
55
- '[json-editor]:注册渲染器失败,当前存在重名渲染器(' +
56
- e.type +
57
- '),请尝试换一个 type。',
58
- );
59
- } else
60
- console.warn(
61
- '[json-editor]:注册渲染器失败,请设置渲染器对应的 component。',
62
- );
63
- else
64
- console.warn(
65
- '[json-editor]:注册渲染器失败,请设置渲染器对应的 type。',
66
- );
67
- }
68
- function u(e) {
69
- var t = (0, r.Gv)(e) ? e.type : e;
70
- delete l[t];
71
- }
72
- function p(e, t) {
73
- return React.createElement(
74
- 'div',
75
- { className: 'RuntimeError' },
76
- React.createElement('p', null, 'Error: 找不到对应的渲染器'),
77
- React.createElement('p', null, 'Path: ', t),
78
- React.createElement(
79
- 'pre',
80
- null,
81
- React.createElement('code', null, JSON.stringify(e, null, 2)),
82
- ),
83
- );
84
- }
85
- },
86
13
  252: function (e, t, n) {
87
14
  'use strict';
88
15
  n.d(t, {
@@ -100,50 +27,634 @@
100
27
  })((0, a.observer)(e));
101
28
  }
102
29
  },
103
- 8852: function (e, t, n) {
30
+ 405: function () {},
31
+ 611: function (e, t, n) {
104
32
  'use strict';
33
+ function a(e, t) {
34
+ for (var n = [], a = {}, o = 0; o < t.length; o++) {
35
+ var r = t[o],
36
+ i = r[0],
37
+ l = {
38
+ id: e + ':' + o,
39
+ css: r[1],
40
+ media: r[2],
41
+ sourceMap: r[3],
42
+ };
43
+ a[i]
44
+ ? a[i].parts.push(l)
45
+ : n.push((a[i] = { id: i, parts: [l] }));
46
+ }
47
+ return n;
48
+ }
105
49
  n.d(t, {
106
- x: function () {
107
- return o;
50
+ A: function () {
51
+ return y;
108
52
  },
109
53
  });
110
- var a = n(1635);
111
- function o(e) {
112
- var t = this.props.targetJsonSchema,
113
- n = this.props.jsonStore || {},
114
- o = n.getJSONDataByKeyRoute,
115
- r = n.getInitJsonDataByKeyRoute,
116
- i = n.updateFormValueData,
117
- l = t.type,
118
- s = e || this.props.keyRoute,
119
- c = (0, a.TA)(s + '-' + l);
120
- if (c) {
121
- var u = o(c);
122
- u || (u = r(c)), u && ((0, a.CP)(s + '-' + l), i(s, u));
54
+ var o = 'undefined' != typeof document;
55
+ if ('undefined' != typeof DEBUG && DEBUG && !o)
56
+ throw new Error(
57
+ "vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.",
58
+ );
59
+ var r = {},
60
+ i =
61
+ o && (document.head || document.getElementsByTagName('head')[0]),
62
+ l = null,
63
+ s = 0,
64
+ c = !1,
65
+ u = function () {},
66
+ p = null,
67
+ m = 'data-vue-ssr-id',
68
+ d =
69
+ 'undefined' != typeof navigator &&
70
+ /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
71
+ function y(e, t, n, o) {
72
+ (c = n), (p = o || {});
73
+ var i = a(e, t);
74
+ return (
75
+ h(i),
76
+ function (t) {
77
+ for (var n = [], o = 0; o < i.length; o++) {
78
+ var l = i[o];
79
+ (s = r[l.id]).refs--, n.push(s);
80
+ }
81
+ for (
82
+ t ? h((i = a(e, t))) : (i = []), o = 0;
83
+ o < n.length;
84
+ o++
85
+ ) {
86
+ var s;
87
+ if (0 === (s = n[o]).refs) {
88
+ for (var c = 0; c < s.parts.length; c++) s.parts[c]();
89
+ delete r[s.id];
90
+ }
91
+ }
92
+ }
93
+ );
94
+ }
95
+ function h(e) {
96
+ for (var t = 0; t < e.length; t++) {
97
+ var n = e[t],
98
+ a = r[n.id];
99
+ if (a) {
100
+ a.refs++;
101
+ for (var o = 0; o < a.parts.length; o++) a.parts[o](n.parts[o]);
102
+ for (; o < n.parts.length; o++) a.parts.push(S(n.parts[o]));
103
+ a.parts.length > n.parts.length &&
104
+ (a.parts.length = n.parts.length);
105
+ } else {
106
+ var i = [];
107
+ for (o = 0; o < n.parts.length; o++) i.push(S(n.parts[o]));
108
+ r[n.id] = { id: n.id, refs: 1, parts: i };
109
+ }
110
+ }
111
+ }
112
+ function g() {
113
+ var e = document.createElement('style');
114
+ return (e.type = 'text/css'), i.appendChild(e), e;
115
+ }
116
+ function S(e) {
117
+ var t,
118
+ n,
119
+ a = document.querySelector('style[' + m + '~="' + e.id + '"]');
120
+ if (a) {
121
+ if (c) return u;
122
+ a.parentNode.removeChild(a);
123
+ }
124
+ if (d) {
125
+ var o = s++;
126
+ (a = l || (l = g())),
127
+ (t = b.bind(null, a, o, !1)),
128
+ (n = b.bind(null, a, o, !0));
129
+ } else
130
+ (a = g()),
131
+ (t = v.bind(null, a)),
132
+ (n = function () {
133
+ a.parentNode.removeChild(a);
134
+ });
135
+ return (
136
+ t(e),
137
+ function (a) {
138
+ if (a) {
139
+ if (
140
+ a.css === e.css &&
141
+ a.media === e.media &&
142
+ a.sourceMap === e.sourceMap
143
+ )
144
+ return;
145
+ t((e = a));
146
+ } else n();
147
+ }
148
+ );
149
+ }
150
+ var _,
151
+ f =
152
+ ((_ = []),
153
+ function (e, t) {
154
+ return (_[e] = t), _.filter(Boolean).join('\n');
155
+ });
156
+ function b(e, t, n, a) {
157
+ var o = n ? '' : a.css;
158
+ if (e.styleSheet) e.styleSheet.cssText = f(t, o);
159
+ else {
160
+ var r = document.createTextNode(o),
161
+ i = e.childNodes;
162
+ i[t] && e.removeChild(i[t]),
163
+ i.length ? e.insertBefore(r, i[t]) : e.appendChild(r);
164
+ }
165
+ }
166
+ function v(e, t) {
167
+ var n = t.css,
168
+ a = t.media,
169
+ o = t.sourceMap;
170
+ if (
171
+ (a && e.setAttribute('media', a),
172
+ p.ssrId && e.setAttribute(m, t.id),
173
+ o &&
174
+ ((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
175
+ (n +=
176
+ '\n/*# sourceMappingURL=data:application/json;base64,' +
177
+ btoa(unescape(encodeURIComponent(JSON.stringify(o)))) +
178
+ ' */')),
179
+ e.styleSheet)
180
+ )
181
+ e.styleSheet.cssText = n;
182
+ else {
183
+ for (; e.firstChild; ) e.removeChild(e.firstChild);
184
+ e.appendChild(document.createTextNode(n));
123
185
  }
124
186
  }
125
187
  },
126
- 9566: function (
127
- __unused_webpack_module,
128
- __unused_webpack___webpack_exports__,
129
- __webpack_require__,
130
- ) {
131
- 'use strict';
132
- var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ =
133
- __webpack_require__(5820),
134
- _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default =
135
- __webpack_require__.n(
136
- _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__,
137
- ),
138
- react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2015),
139
- react__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(
140
- react__WEBPACK_IMPORTED_MODULE_1__,
141
- ),
142
- $core_factory__WEBPACK_IMPORTED_MODULE_2__ =
143
- __webpack_require__(2187),
144
- mobx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7222),
145
- mobx__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(
146
- mobx__WEBPACK_IMPORTED_MODULE_3__,
188
+ 632: function (e, t, n) {
189
+ var a = n(4396);
190
+ a.__esModule && (a = a.default),
191
+ 'string' == typeof a && (a = [[e.id, a, '']]),
192
+ a.locals && (e.exports = a.locals),
193
+ (0, n(611).A)('54a7813a', a, !1, { sourceMap: !1 });
194
+ },
195
+ 641: function () {},
196
+ 1147: function (e, t, n) {
197
+ var a = n(1422);
198
+ a.__esModule && (a = a.default),
199
+ 'string' == typeof a && (a = [[e.id, a, '']]),
200
+ a.locals && (e.exports = a.locals),
201
+ (0, n(611).A)('2c3d6896', a, !1, { sourceMap: !1 });
202
+ },
203
+ 1422: function () {},
204
+ 1635: function (e, t, n) {
205
+ 'use strict';
206
+ n.d(t, {
207
+ K8: function () {
208
+ return l;
209
+ },
210
+ CP: function () {
211
+ return d;
212
+ },
213
+ or: function () {
214
+ return y;
215
+ },
216
+ TA: function () {
217
+ return m;
218
+ },
219
+ GT: function () {
220
+ return u;
221
+ },
222
+ n4: function () {
223
+ return c;
224
+ },
225
+ y8: function () {
226
+ return p;
227
+ },
228
+ bQ: function () {
229
+ return s;
230
+ },
231
+ });
232
+ var a = n(5085),
233
+ o = require('lodash/camelCase'),
234
+ r = n.n(o),
235
+ i = n(8951);
236
+ function l(e) {
237
+ var t = {};
238
+ return (
239
+ e &&
240
+ Object.keys(e).forEach(function (n) {
241
+ n.indexOf('-') > 0 ? (t[r()(n)] = e[n]) : (t[n] = e[n]);
242
+ }),
243
+ t
244
+ );
245
+ }
246
+ function s(e) {
247
+ return (0, a.objClone)(e);
248
+ }
249
+ function c(e, t) {
250
+ return (0, a.isEqual)(e, t);
251
+ }
252
+ function u(e) {
253
+ var t = !1;
254
+ return null != e && (t = !0), t;
255
+ }
256
+ function p(e) {
257
+ var t = !1;
258
+ return (
259
+ ('boolean' !== e &&
260
+ 'date' !== e &&
261
+ 'date-time' !== e &&
262
+ 'time' !== e &&
263
+ 'number' !== e &&
264
+ 'color' !== e &&
265
+ 'quantity' !== e &&
266
+ 'select' !== e) ||
267
+ (t = !0),
268
+ t
269
+ );
270
+ }
271
+ function m(e) {
272
+ return (0, i.Gz)(e, 'json-editor-formData');
273
+ }
274
+ function d(e) {
275
+ (0, i.tU)(e, 'json-editor-formData');
276
+ }
277
+ function y(e) {
278
+ var t = [],
279
+ n = {};
280
+ if ((0, a.isArray)(e))
281
+ e.forEach(function (e) {
282
+ if ((0, a.isObject)(e.value)) {
283
+ var o = JSON.stringify(e.value);
284
+ t.push({ label: e.label || e.name, value: o }),
285
+ (n[o] = e.value);
286
+ } else t.push(e);
287
+ });
288
+ else if ((0, a.isString)(e))
289
+ try {
290
+ var o = y((t = JSON.parse(e)));
291
+ (t = o.options), (n = o.optionValue);
292
+ } catch (t) {
293
+ console.warn('options 异常数据格式转换失败:', e);
294
+ }
295
+ return { options: t, optionValue: n };
296
+ }
297
+ },
298
+ 2015: function (e) {
299
+ 'use strict';
300
+ e.exports = require('react');
301
+ },
302
+ 2187: function (e, t, n) {
303
+ 'use strict';
304
+ n.d(t, {
305
+ A$: function () {
306
+ return u;
307
+ },
308
+ A4: function () {
309
+ return s;
310
+ },
311
+ Jd: function () {
312
+ return l;
313
+ },
314
+ Sd: function () {
315
+ return p;
316
+ },
317
+ TS: function () {
318
+ return c;
319
+ },
320
+ });
321
+ var a = n(6031),
322
+ o = n.n(a),
323
+ r = n(7102),
324
+ i = n(252),
325
+ l = {};
326
+ function s(e) {
327
+ return function (t) {
328
+ return c(o()({}, e, { component: t })).component;
329
+ };
330
+ }
331
+ function c(e) {
332
+ if (e.type)
333
+ if (e.component) {
334
+ if (
335
+ (e.type &&
336
+ 'string' == typeof e.type &&
337
+ (e.type = e.type.toLowerCase()),
338
+ !l[e.type])
339
+ ) {
340
+ var t = (0, i.A)(e.component);
341
+ return (l[e.type] = t), e;
342
+ }
343
+ console.warn(
344
+ '[json-editor]:注册渲染器失败,当前存在重名渲染器(' +
345
+ e.type +
346
+ '),请尝试换一个 type。',
347
+ );
348
+ } else
349
+ console.warn(
350
+ '[json-editor]:注册渲染器失败,请设置渲染器对应的 component。',
351
+ );
352
+ else
353
+ console.warn(
354
+ '[json-editor]:注册渲染器失败,请设置渲染器对应的 type。',
355
+ );
356
+ }
357
+ function u(e) {
358
+ var t = (0, r.Gv)(e) ? e.type : e;
359
+ delete l[t];
360
+ }
361
+ function p(e, t) {
362
+ return React.createElement(
363
+ 'div',
364
+ { className: 'RuntimeError' },
365
+ React.createElement('p', null, 'Error: 找不到对应的渲染器'),
366
+ React.createElement('p', null, 'Path: ', t),
367
+ React.createElement(
368
+ 'pre',
369
+ null,
370
+ React.createElement('code', null, JSON.stringify(e, null, 2)),
371
+ ),
372
+ );
373
+ }
374
+ },
375
+ 2347: function (e) {
376
+ 'use strict';
377
+ e.exports = require('@ant-design/icons');
378
+ },
379
+ 2523: function () {},
380
+ 2595: function (e, t, n) {
381
+ var a = n(7766);
382
+ a.__esModule && (a = a.default),
383
+ 'string' == typeof a && (a = [[e.id, a, '']]),
384
+ a.locals && (e.exports = a.locals),
385
+ (0, n(611).A)('56ceba47', a, !1, { sourceMap: !1 });
386
+ },
387
+ 2597: function () {},
388
+ 2657: function (e, t, n) {
389
+ var a = n(8006);
390
+ a.__esModule && (a = a.default),
391
+ 'string' == typeof a && (a = [[e.id, a, '']]),
392
+ a.locals && (e.exports = a.locals),
393
+ (0, n(611).A)('91732ad6', a, !1, { sourceMap: !1 });
394
+ },
395
+ 2813: function (e) {
396
+ 'use strict';
397
+ e.exports = require('react-ace');
398
+ },
399
+ 2961: function () {},
400
+ 3512: function (e, t, n) {
401
+ var a = n(5465);
402
+ a.__esModule && (a = a.default),
403
+ 'string' == typeof a && (a = [[e.id, a, '']]),
404
+ a.locals && (e.exports = a.locals),
405
+ (0, n(611).A)('07ba8918', a, !1, { sourceMap: !1 });
406
+ },
407
+ 3794: function (e, t, n) {
408
+ var a = n(8985);
409
+ a.__esModule && (a = a.default),
410
+ 'string' == typeof a && (a = [[e.id, a, '']]),
411
+ a.locals && (e.exports = a.locals),
412
+ (0, n(611).A)('4f50bcf6', a, !1, { sourceMap: !1 });
413
+ },
414
+ 3997: function () {},
415
+ 4020: function (e) {
416
+ 'use strict';
417
+ e.exports = require('mobx-react');
418
+ },
419
+ 4396: function () {},
420
+ 4410: function (e, t, n) {
421
+ var a = n(3997);
422
+ a.__esModule && (a = a.default),
423
+ 'string' == typeof a && (a = [[e.id, a, '']]),
424
+ a.locals && (e.exports = a.locals),
425
+ (0, n(611).A)('220f768b', a, !1, { sourceMap: !1 });
426
+ },
427
+ 4505: function () {},
428
+ 5040: function (e, t, n) {
429
+ var a = n(2961);
430
+ a.__esModule && (a = a.default),
431
+ 'string' == typeof a && (a = [[e.id, a, '']]),
432
+ a.locals && (e.exports = a.locals),
433
+ (0, n(611).A)('5c4a563c', a, !1, { sourceMap: !1 });
434
+ },
435
+ 5085: function (e) {
436
+ 'use strict';
437
+ e.exports = require('@wibetter/json-utils');
438
+ },
439
+ 5465: function () {},
440
+ 5820: function (e) {
441
+ 'use strict';
442
+ e.exports = require('@babel/runtime/helpers/inheritsLoose');
443
+ },
444
+ 6031: function (e) {
445
+ 'use strict';
446
+ e.exports = require('@babel/runtime/helpers/extends');
447
+ },
448
+ 6220: function (e, t, n) {
449
+ var a = n(2597);
450
+ a.__esModule && (a = a.default),
451
+ 'string' == typeof a && (a = [[e.id, a, '']]),
452
+ a.locals && (e.exports = a.locals),
453
+ (0, n(611).A)('f7862348', a, !1, { sourceMap: !1 });
454
+ },
455
+ 6375: function (e) {
456
+ 'use strict';
457
+ e.exports = require('antd');
458
+ },
459
+ 6953: function (e) {
460
+ 'use strict';
461
+ e.exports = require('ace-builds/src-noconflict/theme-monokai');
462
+ },
463
+ 7102: function (e, t, n) {
464
+ 'use strict';
465
+ function a(e) {
466
+ return /^http[s]?:\/\/.*/.test(e);
467
+ }
468
+ function o(e) {
469
+ return 'String' === Object.prototype.toString.call(e).slice(8, -1);
470
+ }
471
+ function r(e) {
472
+ var t = !1;
473
+ return (
474
+ 'Array' === Object.prototype.toString.call(e).slice(8, -1) &&
475
+ (t = !0),
476
+ t
477
+ );
478
+ }
479
+ function i(e) {
480
+ var t = !1;
481
+ return (
482
+ 'Object' === Object.prototype.toString.call(e).slice(8, -1) &&
483
+ (t = !0),
484
+ t
485
+ );
486
+ }
487
+ function l(e) {
488
+ return /^#[0-9a-f]{3,6}$/.test(e);
489
+ }
490
+ function s(e) {
491
+ var t = !1;
492
+ return (
493
+ 'Function' === Object.prototype.toString.call(e).slice(8, -1) &&
494
+ (t = !0),
495
+ t
496
+ );
497
+ }
498
+ n.d(t, {
499
+ Gv: function () {
500
+ return i;
501
+ },
502
+ Kg: function () {
503
+ return o;
504
+ },
505
+ Tn: function () {
506
+ return s;
507
+ },
508
+ _o: function () {
509
+ return l;
510
+ },
511
+ cy: function () {
512
+ return r;
513
+ },
514
+ mv: function () {
515
+ return a;
516
+ },
517
+ }),
518
+ n(5085);
519
+ },
520
+ 7222: function (e) {
521
+ 'use strict';
522
+ e.exports = require('mobx');
523
+ },
524
+ 7232: function () {},
525
+ 7258: function () {},
526
+ 7546: function (e, t, n) {
527
+ var a = n(4505);
528
+ a.__esModule && (a = a.default),
529
+ 'string' == typeof a && (a = [[e.id, a, '']]),
530
+ a.locals && (e.exports = a.locals),
531
+ (0, n(611).A)('e6602b10', a, !1, { sourceMap: !1 });
532
+ },
533
+ 7551: function () {},
534
+ 7766: function () {},
535
+ 8006: function () {},
536
+ 8104: function (e, t, n) {
537
+ var a = n(641);
538
+ a.__esModule && (a = a.default),
539
+ 'string' == typeof a && (a = [[e.id, a, '']]),
540
+ a.locals && (e.exports = a.locals),
541
+ (0, n(611).A)('1fb1d0ec', a, !1, { sourceMap: !1 });
542
+ },
543
+ 8426: function (e) {
544
+ 'use strict';
545
+ e.exports = require('ace-builds/src-noconflict/mode-javascript');
546
+ },
547
+ 8678: function (e, t, n) {
548
+ var a = n(7551);
549
+ a.__esModule && (a = a.default),
550
+ 'string' == typeof a && (a = [[e.id, a, '']]),
551
+ a.locals && (e.exports = a.locals),
552
+ (0, n(611).A)('aed4b9b0', a, !1, { sourceMap: !1 });
553
+ },
554
+ 8819: function (e, t, n) {
555
+ var a = n(7232);
556
+ a.__esModule && (a = a.default),
557
+ 'string' == typeof a && (a = [[e.id, a, '']]),
558
+ a.locals && (e.exports = a.locals),
559
+ (0, n(611).A)('1b6af5a2', a, !1, { sourceMap: !1 });
560
+ },
561
+ 8852: function (e, t, n) {
562
+ 'use strict';
563
+ n.d(t, {
564
+ x: function () {
565
+ return o;
566
+ },
567
+ });
568
+ var a = n(1635);
569
+ function o(e) {
570
+ var t = this.props.targetJsonSchema,
571
+ n = this.props.jsonStore || {},
572
+ o = n.getJSONDataByKeyRoute,
573
+ r = n.getInitJsonDataByKeyRoute,
574
+ i = n.updateFormValueData,
575
+ l = t.type,
576
+ s = e || this.props.keyRoute,
577
+ c = (0, a.TA)(s + '-' + l);
578
+ if (c) {
579
+ var u = o(c);
580
+ u || (u = r(c)), u && ((0, a.CP)(s + '-' + l), i(s, u));
581
+ }
582
+ }
583
+ },
584
+ 8951: function (e, t, n) {
585
+ 'use strict';
586
+ function a(e, t, n) {
587
+ if (
588
+ (void 0 === n && (n = 'json-editor-cache'), window.sessionStorage)
589
+ ) {
590
+ var a = {},
591
+ o = window.sessionStorage.getItem(n);
592
+ o && (a = JSON.parse(o)),
593
+ e && (a[e] = t),
594
+ window.sessionStorage.setItem(n, JSON.stringify(a));
595
+ }
596
+ }
597
+ function o(e, t) {
598
+ var n;
599
+ if (
600
+ (void 0 === t && (t = 'json-editor-cache'), window.sessionStorage)
601
+ ) {
602
+ var a = {},
603
+ o = window.sessionStorage.getItem(t);
604
+ o && (a = JSON.parse(o)), e && (n = a[e]);
605
+ }
606
+ return n;
607
+ }
608
+ function r(e, t) {
609
+ if (
610
+ (void 0 === t && (t = 'json-editor-cache'), window.sessionStorage)
611
+ ) {
612
+ var n = {},
613
+ a = window.sessionStorage.getItem(t);
614
+ a && (n = JSON.parse(a)), e && (n[e] = void 0);
615
+ }
616
+ }
617
+ n.d(t, {
618
+ Gz: function () {
619
+ return o;
620
+ },
621
+ PM: function () {
622
+ return a;
623
+ },
624
+ tU: function () {
625
+ return r;
626
+ },
627
+ });
628
+ },
629
+ 8985: function () {},
630
+ 9346: function (e, t, n) {
631
+ var a = n(405);
632
+ a.__esModule && (a = a.default),
633
+ 'string' == typeof a && (a = [[e.id, a, '']]),
634
+ a.locals && (e.exports = a.locals),
635
+ (0, n(611).A)('6e510ca0', a, !1, { sourceMap: !1 });
636
+ },
637
+ 9566: function (
638
+ __unused_webpack_module,
639
+ __unused_webpack___webpack_exports__,
640
+ __webpack_require__,
641
+ ) {
642
+ 'use strict';
643
+ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ =
644
+ __webpack_require__(5820),
645
+ _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0___default =
646
+ __webpack_require__.n(
647
+ _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__,
648
+ ),
649
+ react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2015),
650
+ react__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(
651
+ react__WEBPACK_IMPORTED_MODULE_1__,
652
+ ),
653
+ $core_factory__WEBPACK_IMPORTED_MODULE_2__ =
654
+ __webpack_require__(2187),
655
+ mobx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7222),
656
+ mobx__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(
657
+ mobx__WEBPACK_IMPORTED_MODULE_3__,
147
658
  ),
148
659
  prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9825),
149
660
  prop_types__WEBPACK_IMPORTED_MODULE_4___default =
@@ -343,393 +854,68 @@
343
854
  warnText,
344
855
  ),
345
856
  ),
346
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(
347
- react_ace__WEBPACK_IMPORTED_MODULE_6___default(),
348
- {
349
- id: 'code_area_ace',
350
- key: nodeKey + '-ace',
351
- className: 'code-area-item',
352
- value: curJsonData,
353
- mode: 'javascript',
354
- theme: 'monokai',
355
- name: 'JS_CODE_EDIT',
356
- fontSize: 14,
357
- showPrintMargin: !0,
358
- showGutter: !0,
359
- highlightActiveLine: !0,
360
- readOnly: readOnly,
361
- minLines: 5,
362
- maxLines: 30,
363
- width: '100%',
364
- onChange: function onChange(newJsonData) {
365
- try {
366
- eval(newJsonData),
367
- _this2.handleValueChange(newJsonData),
368
- _this2.setState({ isShowWarn: !1 });
369
- } catch (e) {
370
- _this2.handleValueChange(newJsonData),
371
- _this2.setState({
372
- warnText: e.message,
373
- isShowWarn: !0,
374
- });
375
- }
376
- },
377
- setOptions: {
378
- useWorker: !1,
379
- showLineNumbers: !0,
380
- tabSize: 2,
381
- },
382
- },
383
- ),
384
- ),
385
- );
386
- }),
387
- CodeAreaFormSchema
388
- );
389
- })(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
390
- (CodeAreaFormSchema.propTypes = {
391
- isIgnoreWarn: prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
392
- isReadOnly: prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
393
- parentType:
394
- prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
395
- jsonKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
396
- indexRoute:
397
- prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
398
- keyRoute: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
399
- nodeKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
400
- targetJsonSchema:
401
- prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
402
- }),
403
- (0, $core_factory__WEBPACK_IMPORTED_MODULE_2__.TS)({
404
- type: 'codearea',
405
- component: CodeAreaFormSchema,
406
- });
407
- var __WEBPACK_DEFAULT_EXPORT__ = CodeAreaFormSchema;
408
- },
409
- 1635: function (e, t, n) {
410
- 'use strict';
411
- n.d(t, {
412
- K8: function () {
413
- return l;
414
- },
415
- CP: function () {
416
- return d;
417
- },
418
- or: function () {
419
- return y;
420
- },
421
- TA: function () {
422
- return m;
423
- },
424
- n2: function () {
425
- return g;
426
- },
427
- GT: function () {
428
- return u;
429
- },
430
- n4: function () {
431
- return c;
432
- },
433
- y8: function () {
434
- return p;
435
- },
436
- bQ: function () {
437
- return s;
438
- },
439
- });
440
- var a = n(5085),
441
- o = require('lodash/camelCase'),
442
- r = n.n(o),
443
- i = n(8951);
444
- function l(e) {
445
- var t = {};
446
- return (
447
- e &&
448
- Object.keys(e).forEach(function (n) {
449
- n.indexOf('-') > 0 ? (t[r()(n)] = e[n]) : (t[n] = e[n]);
450
- }),
451
- t
452
- );
453
- }
454
- function s(e) {
455
- return (0, a.objClone)(e);
456
- }
457
- function c(e, t) {
458
- return (0, a.isEqual)(e, t);
459
- }
460
- function u(e) {
461
- var t = !1;
462
- return null != e && (t = !0), t;
463
- }
464
- function p(e) {
465
- var t = !1;
466
- return (
467
- ('boolean' !== e &&
468
- 'date' !== e &&
469
- 'date-time' !== e &&
470
- 'time' !== e &&
471
- 'number' !== e &&
472
- 'color' !== e &&
473
- 'quantity' !== e &&
474
- 'select' !== e) ||
475
- (t = !0),
476
- t
477
- );
478
- }
479
- function m(e) {
480
- return (0, i.Gz)(e, 'json-editor-formData');
481
- }
482
- function d(e) {
483
- (0, i.tU)(e, 'json-editor-formData');
484
- }
485
- function y(e) {
486
- var t = [],
487
- n = {};
488
- if ((0, a.isArray)(e))
489
- e.forEach(function (e) {
490
- if ((0, a.isObject)(e.value)) {
491
- var o = JSON.stringify(e.value);
492
- t.push({ label: e.label || e.name, value: o }),
493
- (n[o] = e.value);
494
- } else t.push(e);
495
- });
496
- else if ((0, a.isString)(e))
497
- try {
498
- var o = y((t = JSON.parse(e)));
499
- (t = o.options), (n = o.optionValue);
500
- } catch (t) {
501
- console.warn('options 异常数据格式转换失败:', e);
502
- }
503
- return { options: t, optionValue: n };
504
- }
505
- function h(e) {
506
- if (!e || !(0, a.isObject)(e)) return e;
507
- var t = e.label || e.title || e.description || e.desc;
508
- if (t) return t;
509
- for (var n = Object.keys(e), o = 0, r = n.length; o < r; o++) {
510
- var i = e[n[o]];
511
- if (
512
- i &&
513
- (0, a.isString)(i) &&
514
- !(0, a.isURL)(i) &&
515
- !(0, a.isColor)(i)
516
- )
517
- return i;
518
- }
519
- }
520
- function g(e) {
521
- var t = [];
522
- return (
523
- (0, a.isArray)(e) &&
524
- e.forEach(function (e) {
525
- t.push({ label: h(e), value: e });
857
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
858
+ react_ace__WEBPACK_IMPORTED_MODULE_6___default(),
859
+ {
860
+ id: 'code_area_ace',
861
+ key: nodeKey + '-ace',
862
+ className: 'code-area-item',
863
+ value: curJsonData,
864
+ mode: 'javascript',
865
+ theme: 'monokai',
866
+ name: 'JS_CODE_EDIT',
867
+ fontSize: 14,
868
+ showPrintMargin: !0,
869
+ showGutter: !0,
870
+ highlightActiveLine: !0,
871
+ readOnly: readOnly,
872
+ minLines: 5,
873
+ maxLines: 30,
874
+ width: '100%',
875
+ onChange: function onChange(newJsonData) {
876
+ try {
877
+ eval(newJsonData),
878
+ _this2.handleValueChange(newJsonData),
879
+ _this2.setState({ isShowWarn: !1 });
880
+ } catch (e) {
881
+ _this2.handleValueChange(newJsonData),
882
+ _this2.setState({
883
+ warnText: e.message,
884
+ isShowWarn: !0,
885
+ });
886
+ }
887
+ },
888
+ setOptions: {
889
+ useWorker: !1,
890
+ showLineNumbers: !0,
891
+ tabSize: 2,
892
+ },
893
+ },
894
+ ),
895
+ ),
896
+ );
526
897
  }),
527
- t
528
- );
529
- }
530
- },
531
- 7102: function (e, t, n) {
532
- 'use strict';
533
- function a(e) {
534
- return /^http[s]?:\/\/.*/.test(e);
535
- }
536
- function o(e) {
537
- return 'String' === Object.prototype.toString.call(e).slice(8, -1);
538
- }
539
- function r(e) {
540
- var t = !1;
541
- return (
542
- 'Array' === Object.prototype.toString.call(e).slice(8, -1) &&
543
- (t = !0),
544
- t
545
- );
546
- }
547
- function i(e) {
548
- var t = !1;
549
- return (
550
- 'Object' === Object.prototype.toString.call(e).slice(8, -1) &&
551
- (t = !0),
552
- t
553
- );
554
- }
555
- function l(e) {
556
- return /^#[0-9a-f]{3,6}$/.test(e);
557
- }
558
- function s(e) {
559
- var t = !1;
560
- return (
561
- 'Function' === Object.prototype.toString.call(e).slice(8, -1) &&
562
- (t = !0),
563
- t
564
- );
565
- }
566
- n.d(t, {
567
- Gv: function () {
568
- return i;
569
- },
570
- Kg: function () {
571
- return o;
572
- },
573
- Tn: function () {
574
- return s;
575
- },
576
- _o: function () {
577
- return l;
578
- },
579
- cy: function () {
580
- return r;
581
- },
582
- mv: function () {
583
- return a;
584
- },
898
+ CodeAreaFormSchema
899
+ );
900
+ })(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
901
+ (CodeAreaFormSchema.propTypes = {
902
+ isIgnoreWarn: prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
903
+ isReadOnly: prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
904
+ parentType:
905
+ prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
906
+ jsonKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
907
+ indexRoute:
908
+ prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
909
+ keyRoute: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
910
+ nodeKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,
911
+ targetJsonSchema:
912
+ prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,
585
913
  }),
586
- n(5085);
587
- },
588
- 8951: function (e, t, n) {
589
- 'use strict';
590
- function a(e, t, n) {
591
- if (
592
- (void 0 === n && (n = 'json-editor-cache'), window.sessionStorage)
593
- ) {
594
- var a = {},
595
- o = window.sessionStorage.getItem(n);
596
- o && (a = JSON.parse(o)),
597
- e && (a[e] = t),
598
- window.sessionStorage.setItem(n, JSON.stringify(a));
599
- }
600
- }
601
- function o(e, t) {
602
- var n;
603
- if (
604
- (void 0 === t && (t = 'json-editor-cache'), window.sessionStorage)
605
- ) {
606
- var a = {},
607
- o = window.sessionStorage.getItem(t);
608
- o && (a = JSON.parse(o)), e && (n = a[e]);
609
- }
610
- return n;
611
- }
612
- function r(e, t) {
613
- if (
614
- (void 0 === t && (t = 'json-editor-cache'), window.sessionStorage)
615
- ) {
616
- var n = {},
617
- a = window.sessionStorage.getItem(t);
618
- a && (n = JSON.parse(a)), e && (n[e] = void 0);
619
- }
620
- }
621
- n.d(t, {
622
- Gz: function () {
623
- return o;
624
- },
625
- PM: function () {
626
- return a;
627
- },
628
- tU: function () {
629
- return r;
630
- },
631
- });
632
- },
633
- 641: function () {},
634
- 2961: function () {},
635
- 1422: function () {},
636
- 7551: function () {},
637
- 6221: function () {},
638
- 3997: function () {},
639
- 7766: function () {},
640
- 5465: function () {},
641
- 2523: function () {},
642
- 8985: function () {},
643
- 2597: function () {},
644
- 7232: function () {},
645
- 7258: function () {},
646
- 8006: function () {},
647
- 405: function () {},
648
- 4505: function () {},
649
- 4396: function () {},
650
- 8104: function (e, t, n) {
651
- var a = n(641);
652
- a.__esModule && (a = a.default),
653
- 'string' == typeof a && (a = [[e.id, a, '']]),
654
- a.locals && (e.exports = a.locals),
655
- (0, n(611).A)('1fb1d0ec', a, !1, { sourceMap: !1 });
656
- },
657
- 5040: function (e, t, n) {
658
- var a = n(2961);
659
- a.__esModule && (a = a.default),
660
- 'string' == typeof a && (a = [[e.id, a, '']]),
661
- a.locals && (e.exports = a.locals),
662
- (0, n(611).A)('5c4a563c', a, !1, { sourceMap: !1 });
663
- },
664
- 1147: function (e, t, n) {
665
- var a = n(1422);
666
- a.__esModule && (a = a.default),
667
- 'string' == typeof a && (a = [[e.id, a, '']]),
668
- a.locals && (e.exports = a.locals),
669
- (0, n(611).A)('2c3d6896', a, !1, { sourceMap: !1 });
670
- },
671
- 8678: function (e, t, n) {
672
- var a = n(7551);
673
- a.__esModule && (a = a.default),
674
- 'string' == typeof a && (a = [[e.id, a, '']]),
675
- a.locals && (e.exports = a.locals),
676
- (0, n(611).A)('aed4b9b0', a, !1, { sourceMap: !1 });
677
- },
678
- 9612: function (e, t, n) {
679
- var a = n(6221);
680
- a.__esModule && (a = a.default),
681
- 'string' == typeof a && (a = [[e.id, a, '']]),
682
- a.locals && (e.exports = a.locals),
683
- (0, n(611).A)('728b4280', a, !1, { sourceMap: !1 });
684
- },
685
- 4410: function (e, t, n) {
686
- var a = n(3997);
687
- a.__esModule && (a = a.default),
688
- 'string' == typeof a && (a = [[e.id, a, '']]),
689
- a.locals && (e.exports = a.locals),
690
- (0, n(611).A)('220f768b', a, !1, { sourceMap: !1 });
691
- },
692
- 2595: function (e, t, n) {
693
- var a = n(7766);
694
- a.__esModule && (a = a.default),
695
- 'string' == typeof a && (a = [[e.id, a, '']]),
696
- a.locals && (e.exports = a.locals),
697
- (0, n(611).A)('56ceba47', a, !1, { sourceMap: !1 });
698
- },
699
- 3512: function (e, t, n) {
700
- var a = n(5465);
701
- a.__esModule && (a = a.default),
702
- 'string' == typeof a && (a = [[e.id, a, '']]),
703
- a.locals && (e.exports = a.locals),
704
- (0, n(611).A)('07ba8918', a, !1, { sourceMap: !1 });
705
- },
706
- 9928: function (e, t, n) {
707
- var a = n(2523);
708
- a.__esModule && (a = a.default),
709
- 'string' == typeof a && (a = [[e.id, a, '']]),
710
- a.locals && (e.exports = a.locals),
711
- (0, n(611).A)('31b3938e', a, !1, { sourceMap: !1 });
712
- },
713
- 3794: function (e, t, n) {
714
- var a = n(8985);
715
- a.__esModule && (a = a.default),
716
- 'string' == typeof a && (a = [[e.id, a, '']]),
717
- a.locals && (e.exports = a.locals),
718
- (0, n(611).A)('4f50bcf6', a, !1, { sourceMap: !1 });
719
- },
720
- 6220: function (e, t, n) {
721
- var a = n(2597);
722
- a.__esModule && (a = a.default),
723
- 'string' == typeof a && (a = [[e.id, a, '']]),
724
- a.locals && (e.exports = a.locals),
725
- (0, n(611).A)('f7862348', a, !1, { sourceMap: !1 });
726
- },
727
- 8819: function (e, t, n) {
728
- var a = n(7232);
729
- a.__esModule && (a = a.default),
730
- 'string' == typeof a && (a = [[e.id, a, '']]),
731
- a.locals && (e.exports = a.locals),
732
- (0, n(611).A)('1b6af5a2', a, !1, { sourceMap: !1 });
914
+ (0, $core_factory__WEBPACK_IMPORTED_MODULE_2__.TS)({
915
+ type: 'codearea',
916
+ component: CodeAreaFormSchema,
917
+ });
918
+ var __WEBPACK_DEFAULT_EXPORT__ = CodeAreaFormSchema;
733
919
  },
734
920
  9741: function (e, t, n) {
735
921
  var a = n(7258);
@@ -738,238 +924,16 @@
738
924
  a.locals && (e.exports = a.locals),
739
925
  (0, n(611).A)('ae856a32', a, !1, { sourceMap: !1 });
740
926
  },
741
- 2657: function (e, t, n) {
742
- var a = n(8006);
743
- a.__esModule && (a = a.default),
744
- 'string' == typeof a && (a = [[e.id, a, '']]),
745
- a.locals && (e.exports = a.locals),
746
- (0, n(611).A)('91732ad6', a, !1, { sourceMap: !1 });
747
- },
748
- 9346: function (e, t, n) {
749
- var a = n(405);
750
- a.__esModule && (a = a.default),
751
- 'string' == typeof a && (a = [[e.id, a, '']]),
752
- a.locals && (e.exports = a.locals),
753
- (0, n(611).A)('6e510ca0', a, !1, { sourceMap: !1 });
754
- },
755
- 7546: function (e, t, n) {
756
- var a = n(4505);
757
- a.__esModule && (a = a.default),
758
- 'string' == typeof a && (a = [[e.id, a, '']]),
759
- a.locals && (e.exports = a.locals),
760
- (0, n(611).A)('e6602b10', a, !1, { sourceMap: !1 });
761
- },
762
- 632: function (e, t, n) {
763
- var a = n(4396);
764
- a.__esModule && (a = a.default),
765
- 'string' == typeof a && (a = [[e.id, a, '']]),
766
- a.locals && (e.exports = a.locals),
767
- (0, n(611).A)('54a7813a', a, !1, { sourceMap: !1 });
768
- },
769
- 611: function (e, t, n) {
770
- 'use strict';
771
- function a(e, t) {
772
- for (var n = [], a = {}, o = 0; o < t.length; o++) {
773
- var r = t[o],
774
- i = r[0],
775
- l = {
776
- id: e + ':' + o,
777
- css: r[1],
778
- media: r[2],
779
- sourceMap: r[3],
780
- };
781
- a[i]
782
- ? a[i].parts.push(l)
783
- : n.push((a[i] = { id: i, parts: [l] }));
784
- }
785
- return n;
786
- }
787
- n.d(t, {
788
- A: function () {
789
- return y;
790
- },
791
- });
792
- var o = 'undefined' != typeof document;
793
- if ('undefined' != typeof DEBUG && DEBUG && !o)
794
- throw new Error(
795
- "vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.",
796
- );
797
- var r = {},
798
- i =
799
- o && (document.head || document.getElementsByTagName('head')[0]),
800
- l = null,
801
- s = 0,
802
- c = !1,
803
- u = function () {},
804
- p = null,
805
- m = 'data-vue-ssr-id',
806
- d =
807
- 'undefined' != typeof navigator &&
808
- /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
809
- function y(e, t, n, o) {
810
- (c = n), (p = o || {});
811
- var i = a(e, t);
812
- return (
813
- h(i),
814
- function (t) {
815
- for (var n = [], o = 0; o < i.length; o++) {
816
- var l = i[o];
817
- (s = r[l.id]).refs--, n.push(s);
818
- }
819
- for (
820
- t ? h((i = a(e, t))) : (i = []), o = 0;
821
- o < n.length;
822
- o++
823
- ) {
824
- var s;
825
- if (0 === (s = n[o]).refs) {
826
- for (var c = 0; c < s.parts.length; c++) s.parts[c]();
827
- delete r[s.id];
828
- }
829
- }
830
- }
831
- );
832
- }
833
- function h(e) {
834
- for (var t = 0; t < e.length; t++) {
835
- var n = e[t],
836
- a = r[n.id];
837
- if (a) {
838
- a.refs++;
839
- for (var o = 0; o < a.parts.length; o++) a.parts[o](n.parts[o]);
840
- for (; o < n.parts.length; o++) a.parts.push(S(n.parts[o]));
841
- a.parts.length > n.parts.length &&
842
- (a.parts.length = n.parts.length);
843
- } else {
844
- var i = [];
845
- for (o = 0; o < n.parts.length; o++) i.push(S(n.parts[o]));
846
- r[n.id] = { id: n.id, refs: 1, parts: i };
847
- }
848
- }
849
- }
850
- function g() {
851
- var e = document.createElement('style');
852
- return (e.type = 'text/css'), i.appendChild(e), e;
853
- }
854
- function S(e) {
855
- var t,
856
- n,
857
- a = document.querySelector('style[' + m + '~="' + e.id + '"]');
858
- if (a) {
859
- if (c) return u;
860
- a.parentNode.removeChild(a);
861
- }
862
- if (d) {
863
- var o = s++;
864
- (a = l || (l = g())),
865
- (t = v.bind(null, a, o, !1)),
866
- (n = v.bind(null, a, o, !0));
867
- } else
868
- (a = g()),
869
- (t = b.bind(null, a)),
870
- (n = function () {
871
- a.parentNode.removeChild(a);
872
- });
873
- return (
874
- t(e),
875
- function (a) {
876
- if (a) {
877
- if (
878
- a.css === e.css &&
879
- a.media === e.media &&
880
- a.sourceMap === e.sourceMap
881
- )
882
- return;
883
- t((e = a));
884
- } else n();
885
- }
886
- );
887
- }
888
- var _,
889
- f =
890
- ((_ = []),
891
- function (e, t) {
892
- return (_[e] = t), _.filter(Boolean).join('\n');
893
- });
894
- function v(e, t, n, a) {
895
- var o = n ? '' : a.css;
896
- if (e.styleSheet) e.styleSheet.cssText = f(t, o);
897
- else {
898
- var r = document.createTextNode(o),
899
- i = e.childNodes;
900
- i[t] && e.removeChild(i[t]),
901
- i.length ? e.insertBefore(r, i[t]) : e.appendChild(r);
902
- }
903
- }
904
- function b(e, t) {
905
- var n = t.css,
906
- a = t.media,
907
- o = t.sourceMap;
908
- if (
909
- (a && e.setAttribute('media', a),
910
- p.ssrId && e.setAttribute(m, t.id),
911
- o &&
912
- ((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
913
- (n +=
914
- '\n/*# sourceMappingURL=data:application/json;base64,' +
915
- btoa(unescape(encodeURIComponent(JSON.stringify(o)))) +
916
- ' */')),
917
- e.styleSheet)
918
- )
919
- e.styleSheet.cssText = n;
920
- else {
921
- for (; e.firstChild; ) e.removeChild(e.firstChild);
922
- e.appendChild(document.createTextNode(n));
923
- }
924
- }
925
- },
926
- 2347: function (e) {
927
- 'use strict';
928
- e.exports = require('@ant-design/icons');
929
- },
930
- 6031: function (e) {
931
- 'use strict';
932
- e.exports = require('@babel/runtime/helpers/extends');
933
- },
934
- 5820: function (e) {
935
- 'use strict';
936
- e.exports = require('@babel/runtime/helpers/inheritsLoose');
937
- },
938
- 5085: function (e) {
939
- 'use strict';
940
- e.exports = require('@wibetter/json-utils');
941
- },
942
- 8426: function (e) {
943
- 'use strict';
944
- e.exports = require('ace-builds/src-noconflict/mode-javascript');
945
- },
946
- 6953: function (e) {
947
- 'use strict';
948
- e.exports = require('ace-builds/src-noconflict/theme-monokai');
949
- },
950
- 6375: function (e) {
951
- 'use strict';
952
- e.exports = require('antd');
953
- },
954
- 7222: function (e) {
955
- 'use strict';
956
- e.exports = require('mobx');
957
- },
958
- 4020: function (e) {
959
- 'use strict';
960
- e.exports = require('mobx-react');
961
- },
962
927
  9825: function (e) {
963
928
  'use strict';
964
929
  e.exports = require('prop-types');
965
930
  },
966
- 2015: function (e) {
967
- 'use strict';
968
- e.exports = require('react');
969
- },
970
- 2813: function (e) {
971
- 'use strict';
972
- e.exports = require('react-ace');
931
+ 9928: function (e, t, n) {
932
+ var a = n(2523);
933
+ a.__esModule && (a = a.default),
934
+ 'string' == typeof a && (a = [[e.id, a, '']]),
935
+ a.locals && (e.exports = a.locals),
936
+ (0, n(611).A)('31b3938e', a, !1, { sourceMap: !1 });
973
937
  },
974
938
  },
975
939
  __webpack_module_cache__ = {};
@@ -1014,16 +978,16 @@
1014
978
  __webpack_require__.r(__webpack_exports__),
1015
979
  __webpack_require__.d(__webpack_exports__, {
1016
980
  AddJSONCustomRenderer: function () {
1017
- return kt;
981
+ return wt;
1018
982
  },
1019
983
  Renderer: function () {
1020
984
  return le.A4;
1021
985
  },
1022
986
  default: function () {
1023
- return Kt;
987
+ return xt;
1024
988
  },
1025
989
  getJSONCustomRenderer: function () {
1026
- return jt;
990
+ return Ct;
1027
991
  },
1028
992
  loadRenderer: function () {
1029
993
  return le.Sd;
@@ -1035,7 +999,7 @@
1035
999
  return le.A$;
1036
1000
  },
1037
1001
  withStore: function () {
1038
- return Dt.A;
1002
+ return Ot.A;
1039
1003
  },
1040
1004
  });
1041
1005
  var e,
@@ -1058,8 +1022,8 @@
1058
1022
  S,
1059
1023
  _,
1060
1024
  f,
1061
- v,
1062
1025
  b,
1026
+ v,
1063
1027
  E,
1064
1028
  w,
1065
1029
  C,
@@ -1067,8 +1031,8 @@
1067
1031
  x,
1068
1032
  N,
1069
1033
  R,
1070
- k,
1071
1034
  j,
1035
+ k,
1072
1036
  D,
1073
1037
  K,
1074
1038
  T,
@@ -1082,8 +1046,8 @@
1082
1046
  L = __webpack_require__(4020),
1083
1047
  q = __webpack_require__(9825),
1084
1048
  W = __webpack_require__.n(q),
1085
- F = require('@babel/runtime/helpers/initializerDefineProperty'),
1086
- U = __webpack_require__.n(F),
1049
+ U = require('@babel/runtime/helpers/initializerDefineProperty'),
1050
+ F = __webpack_require__.n(U),
1087
1051
  z = require('@babel/runtime/helpers/createClass'),
1088
1052
  G = __webpack_require__.n(z),
1089
1053
  $ = require('@babel/runtime/helpers/applyDecoratedDescriptor'),
@@ -1103,8 +1067,8 @@
1103
1067
  (i = Q.action.bound),
1104
1068
  (l = (function () {
1105
1069
  function e(e) {
1106
- U()(this, 'pageScreen', s, this),
1107
- U()(this, 'jsonSchema', c, this),
1070
+ F()(this, 'pageScreen', s, this),
1071
+ F()(this, 'jsonSchema', c, this),
1108
1072
  (this.state = { rootJSONStore: e });
1109
1073
  }
1110
1074
  var t = e.prototype;
@@ -1279,22 +1243,22 @@
1279
1243
  (S = Q.action.bound),
1280
1244
  (_ = Q.action.bound),
1281
1245
  (f = Q.action.bound),
1282
- (v = Q.action.bound),
1283
1246
  (b = Q.action.bound),
1247
+ (v = Q.action.bound),
1284
1248
  (E = Q.action.bound),
1285
1249
  (w = Q.action.bound),
1286
1250
  (C = (function () {
1287
1251
  function e(e) {
1288
- U()(this, 'rootJSONStore', O, this),
1289
- U()(this, 'triggerChange', x, this),
1290
- U()(this, 'lastUpdateTime', N, this),
1291
- U()(this, 'jsonData', R, this),
1292
- U()(this, 'initJsonData', k, this),
1293
- U()(this, 'dynamicDataList', j, this),
1294
- U()(this, 'dynamicDataObj', D, this),
1295
- U()(this, 'options', K, this),
1296
- U()(this, 'dynamicDataApiScopeList', T, this),
1297
- U()(this, 'onChange', P, this),
1252
+ F()(this, 'rootJSONStore', O, this),
1253
+ F()(this, 'triggerChange', x, this),
1254
+ F()(this, 'lastUpdateTime', N, this),
1255
+ F()(this, 'jsonData', R, this),
1256
+ F()(this, 'initJsonData', j, this),
1257
+ F()(this, 'dynamicDataList', k, this),
1258
+ F()(this, 'dynamicDataObj', D, this),
1259
+ F()(this, 'options', K, this),
1260
+ F()(this, 'dynamicDataApiScopeList', T, this),
1261
+ F()(this, 'onChange', P, this),
1298
1262
  (this.state = { rootJSONStore: e });
1299
1263
  }
1300
1264
  var t = e.prototype;
@@ -1476,7 +1440,7 @@
1476
1440
  return null;
1477
1441
  },
1478
1442
  })),
1479
- (k = H()(C.prototype, 'initJsonData', [Q.observable], {
1443
+ (j = H()(C.prototype, 'initJsonData', [Q.observable], {
1480
1444
  configurable: !0,
1481
1445
  enumerable: !0,
1482
1446
  writable: !0,
@@ -1484,7 +1448,7 @@
1484
1448
  return {};
1485
1449
  },
1486
1450
  })),
1487
- (j = H()(C.prototype, 'dynamicDataList', [Q.observable], {
1451
+ (k = H()(C.prototype, 'dynamicDataList', [Q.observable], {
1488
1452
  configurable: !0,
1489
1453
  enumerable: !0,
1490
1454
  writable: !0,
@@ -1624,7 +1588,7 @@
1624
1588
  H()(
1625
1589
  C.prototype,
1626
1590
  'updateFormValueData',
1627
- [v],
1591
+ [b],
1628
1592
  Object.getOwnPropertyDescriptor(
1629
1593
  C.prototype,
1630
1594
  'updateFormValueData',
@@ -1634,7 +1598,7 @@
1634
1598
  H()(
1635
1599
  C.prototype,
1636
1600
  'deleteArrayIndex',
1637
- [b],
1601
+ [v],
1638
1602
  Object.getOwnPropertyDescriptor(C.prototype, 'deleteArrayIndex'),
1639
1603
  C.prototype,
1640
1604
  ),
@@ -1827,8 +1791,8 @@
1827
1791
  fe.apply(null, arguments)
1828
1792
  );
1829
1793
  }
1830
- var ve,
1831
- be = function (e) {
1794
+ var be,
1795
+ ve = function (e) {
1832
1796
  return M.createElement(
1833
1797
  'svg',
1834
1798
  fe(
@@ -1868,8 +1832,8 @@
1868
1832
  },
1869
1833
  e,
1870
1834
  ),
1871
- ve ||
1872
- (ve = M.createElement('path', {
1835
+ be ||
1836
+ (be = M.createElement('path', {
1873
1837
  d: 'M293.069 755.2c-12.083 0-24.269-4.25-33.997-12.902L0 512l273.46-243.098c21.094-18.688 53.452-16.896 72.242 4.25 18.79 21.146 16.896 53.504-4.25 72.294L154.113 512l172.954 153.702c21.145 18.79 23.04 51.15 4.25 72.295-10.087 11.417-24.167 17.203-38.247 17.203zm457.984-.102L1024.512 512 765.44 281.702c-21.146-18.79-53.504-16.896-72.243 4.25-18.79 21.146-16.896 53.504 4.25 72.294L870.4 512 683.06 678.502c-21.146 18.79-23.04 51.15-4.25 72.295C688.896 762.214 702.976 768 717.056 768c12.083 0 24.269-4.25 33.997-12.902zm-239.514 72.55 102.4-614.4c4.66-27.904-14.182-54.272-42.086-58.931-28.007-4.71-54.323 14.182-58.88 42.086l-102.4 614.4c-4.66 27.904 14.182 54.272 42.086 58.931a52.65 52.65 0 0 0 8.448.666c24.576 0 46.285-17.766 50.432-42.752z',
1874
1838
  fill: 'currentColor',
1875
1839
  })),
@@ -1982,8 +1946,8 @@
1982
1946
  S = this.state,
1983
1947
  _ = S.jsonView,
1984
1948
  f = S.isClosed,
1985
- v = (S.hoverIndex, S.currentActiveArrIndex),
1986
- b = h.type,
1949
+ b = (S.hoverIndex, S.currentActiveArrIndex),
1950
+ v = h.type,
1987
1951
  E = null == (e = h.showCodeViewBtn) || e,
1988
1952
  w = s(p);
1989
1953
  (w && 0 !== w.length && (0, ne.cy)(w)) || (w = [{}]);
@@ -1991,11 +1955,11 @@
1991
1955
  O = f,
1992
1956
  x = (0, ce.Gz)(p);
1993
1957
  void 0 !== x && (O = x);
1994
- var N = v,
1958
+ var N = b,
1995
1959
  R = (0, ce.Gz)(p + '-activeArrIndex');
1996
1960
  void 0 !== R && (N = R);
1997
- var k = null != (t = h.boxTitle) ? t : '数据配置',
1998
- j = h.style ? (0, te.K8)((0, Q.toJS)(h.style)) : {},
1961
+ var j = null != (t = h.boxTitle) ? t : '数据配置',
1962
+ k = h.style ? (0, te.K8)((0, Q.toJS)(h.style)) : {},
1999
1963
  D = h.titleStyle ? (0, te.K8)((0, Q.toJS)(h.titleStyle)) : {},
2000
1964
  K = h.contentStyle
2001
1965
  ? (0, te.K8)((0, Q.toJS)(h.contentStyle))
@@ -2008,7 +1972,7 @@
2008
1972
  ? 'wide-screen-element-warp'
2009
1973
  : 'mobile-screen-element-warp',
2010
1974
  id: d,
2011
- style: j,
1975
+ style: k,
2012
1976
  },
2013
1977
  M.createElement(
2014
1978
  'div',
@@ -2055,7 +2019,7 @@
2055
2019
  M.createElement(
2056
2020
  'span',
2057
2021
  { className: 'title-text' },
2058
- k,
2022
+ j,
2059
2023
  ' ',
2060
2024
  ),
2061
2025
  O
@@ -2183,7 +2147,7 @@
2183
2147
  M.createElement(
2184
2148
  ee.Tooltip,
2185
2149
  { title: '复制' + C.title + '/' + (t + 1) },
2186
- M.createElement(be, {
2150
+ M.createElement(ve, {
2187
2151
  className: 'array-operate-btn',
2188
2152
  onClick: function (e) {
2189
2153
  n.addArrayItem(p, w, t),
@@ -2228,7 +2192,7 @@
2228
2192
  (N === t ? 'open' : 'closed'),
2229
2193
  },
2230
2194
  g({
2231
- parentType: b,
2195
+ parentType: v,
2232
2196
  jsonKey: 'items',
2233
2197
  indexRoute: o,
2234
2198
  keyRoute: r,
@@ -2308,9 +2272,9 @@
2308
2272
  S = h.isClosed,
2309
2273
  _ = d,
2310
2274
  f = null == (e = p.showCodeViewBtn) || e,
2311
- v = S,
2312
- b = (0, ce.Gz)(u);
2313
- void 0 !== b && (v = b);
2275
+ b = S,
2276
+ v = (0, ce.Gz)(u);
2277
+ void 0 !== v && (b = v);
2314
2278
  var E = null != (t = p.boxTitle) ? t : '对象配置',
2315
2279
  w = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {},
2316
2280
  C = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
@@ -2382,7 +2346,7 @@
2382
2346
  E,
2383
2347
  ' ',
2384
2348
  ),
2385
- v
2349
+ b
2386
2350
  ? V().createElement(se.RightOutlined, {
2387
2351
  className: 'close-operate-btn',
2388
2352
  })
@@ -2418,7 +2382,7 @@
2418
2382
  ' ' +
2419
2383
  (g ? 'json-view-array' : '') +
2420
2384
  ' ' +
2421
- (v ? 'closed' : ''),
2385
+ (b ? 'closed' : ''),
2422
2386
  },
2423
2387
  !g &&
2424
2388
  p.propertyOrder &&
@@ -2505,8 +2469,8 @@
2505
2469
  S = p.properties.type || {},
2506
2470
  _ = p.properties.data || {},
2507
2471
  f = p.properties.filter || {},
2508
- v = S.default,
2509
- b = null == (e = p.showCodeViewBtn) || e,
2472
+ b = S.default,
2473
+ v = null == (e = p.showCodeViewBtn) || e,
2510
2474
  E = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {},
2511
2475
  w = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
2512
2476
  C = p.contentStyle
@@ -2583,7 +2547,7 @@
2583
2547
  : M.createElement(se.DownOutlined, {
2584
2548
  className: 'close-operate-btn',
2585
2549
  }),
2586
- b &&
2550
+ v &&
2587
2551
  M.createElement(
2588
2552
  'div',
2589
2553
  {
@@ -2613,7 +2577,7 @@
2613
2577
  (y ? 'closed' : ''),
2614
2578
  },
2615
2579
  !d &&
2616
- 'local' === v &&
2580
+ 'local' === b &&
2617
2581
  M.createElement(
2618
2582
  M.Fragment,
2619
2583
  null,
@@ -2656,7 +2620,7 @@
2656
2620
  }),
2657
2621
  ),
2658
2622
  !d &&
2659
- 'remote' === v &&
2623
+ 'remote' === b &&
2660
2624
  M.createElement(
2661
2625
  M.Fragment,
2662
2626
  null,
@@ -2734,6 +2698,36 @@
2734
2698
  r = a ? a + '-unit' : 'unit';
2735
2699
  n.props.onChange ? n.props.onChange(e) : o(r, e);
2736
2700
  }),
2701
+ (n.handleUnitChange = function (e) {
2702
+ var t = n.props,
2703
+ a = t.keyRoute,
2704
+ o = (t.jsonStore || {}).updateFormValueData,
2705
+ r = a ? a + '-quantity' : 'quantity';
2706
+ n.props.onChange ? n.props.onChange(e) : o(r, e);
2707
+ }),
2708
+ (n.getUnitSelect = function () {
2709
+ var e = n.props.targetJsonSchema.properties.quantity,
2710
+ t = [{ label: 'px', value: 'px' }];
2711
+ return (
2712
+ e.options && (t = e.options),
2713
+ M.createElement(
2714
+ ee.Select,
2715
+ {
2716
+ className: 'autoComplete-unit-suffix',
2717
+ style: { display: 'inline-block' },
2718
+ defaultValue: e.default || 'px',
2719
+ onChange: n.handleUnitChange,
2720
+ },
2721
+ t.map(function (e) {
2722
+ return M.createElement(
2723
+ Ne,
2724
+ { value: e.value, key: e.value },
2725
+ e.label,
2726
+ );
2727
+ }),
2728
+ )
2729
+ );
2730
+ }),
2737
2731
  (n.handleInputChange = n.handleInputChange.bind(n)),
2738
2732
  n
2739
2733
  );
@@ -2764,20 +2758,17 @@
2764
2758
  m = i(s),
2765
2759
  d = p.readOnly || !1,
2766
2760
  y = p.properties.unit,
2767
- h = m.quantity,
2768
- g = 'percent' === h ? '%' : h,
2769
- S = M.createElement('span', null, g),
2770
- _ = (0, te.y8)(p.type),
2771
- f = p.autoComplete || !1,
2772
- v = r || {},
2773
- b = [];
2774
- v.GlobalOptions &&
2775
- (0, Z.isArray)(v.GlobalOptions) &&
2776
- (b = v.GlobalOptions);
2777
- var E = p.options || b,
2778
- w = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {},
2779
- C = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
2780
- O = p.contentStyle
2761
+ h = (0, te.y8)(p.type),
2762
+ g = p.autoComplete || !1,
2763
+ S = r || {},
2764
+ _ = [];
2765
+ S.GlobalOptions &&
2766
+ (0, Z.isArray)(S.GlobalOptions) &&
2767
+ (_ = S.GlobalOptions);
2768
+ var f = p.options || _,
2769
+ b = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {},
2770
+ v = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
2771
+ E = p.contentStyle
2781
2772
  ? (0, te.K8)((0, Q.toJS)(p.contentStyle))
2782
2773
  : {};
2783
2774
  return M.createElement(
@@ -2787,13 +2778,13 @@
2787
2778
  'wideScreen' === a
2788
2779
  ? 'wide-screen-element-warp'
2789
2780
  : 'mobile-screen-element-warp ' +
2790
- (_ ? 'two-col-element-warp' : ''),
2781
+ (h ? 'two-col-element-warp' : ''),
2791
2782
  id: u,
2792
- style: w,
2783
+ style: b,
2793
2784
  },
2794
2785
  M.createElement(
2795
2786
  'div',
2796
- { className: 'element-title', style: C },
2787
+ { className: 'element-title', style: v },
2797
2788
  M.createElement(
2798
2789
  ee.Tooltip,
2799
2790
  {
@@ -2826,18 +2817,18 @@
2826
2817
  ),
2827
2818
  M.createElement(
2828
2819
  'div',
2829
- { className: 'content-item', style: O },
2820
+ { className: 'content-item', style: E },
2830
2821
  M.createElement(
2831
2822
  'div',
2832
2823
  { className: 'form-item-box' },
2833
- f &&
2824
+ g &&
2834
2825
  M.createElement(
2835
2826
  M.Fragment,
2836
2827
  null,
2837
2828
  M.createElement(ee.AutoComplete, {
2838
2829
  className: 'ant-input autoComplete-unit',
2839
2830
  style: { display: 'inline-block' },
2840
- options: E,
2831
+ options: f,
2841
2832
  disabled: d,
2842
2833
  allowClear: !0,
2843
2834
  placeholder:
@@ -2848,20 +2839,12 @@
2848
2839
  defaultValue: m.unit || y.default,
2849
2840
  onChange: this.handleValueChange,
2850
2841
  }),
2851
- M.createElement(
2852
- ee.Select,
2853
- {
2854
- className: 'autoComplete-unit-suffix',
2855
- style: { display: 'inline-block' },
2856
- defaultValue: g || 'px',
2857
- },
2858
- M.createElement(Ne, { value: g, key: g }, g),
2859
- ),
2842
+ this.getUnitSelect(),
2860
2843
  ),
2861
- !f &&
2844
+ !g &&
2862
2845
  M.createElement(ee.InputNumber, {
2863
2846
  style: { display: 'inline-block', width: '120px' },
2864
- addonAfter: S,
2847
+ addonAfter: this.getUnitSelect(),
2865
2848
  disabled: d,
2866
2849
  placeholder:
2867
2850
  y.placeholder ||
@@ -2889,7 +2872,7 @@
2889
2872
  }),
2890
2873
  (0, le.TS)({ type: 'quantity', component: Re }),
2891
2874
  __webpack_require__(9928);
2892
- var ke = (function (e) {
2875
+ var je = (function (e) {
2893
2876
  function t(t) {
2894
2877
  var n;
2895
2878
  return (
@@ -3188,7 +3171,7 @@
3188
3171
  t
3189
3172
  );
3190
3173
  })(M.PureComponent);
3191
- (ke.propTypes = {
3174
+ (je.propTypes = {
3192
3175
  parentType: W().string,
3193
3176
  jsonKey: W().string,
3194
3177
  indexRoute: W().string,
@@ -3196,9 +3179,9 @@
3196
3179
  nodeKey: W().string,
3197
3180
  targetJsonSchema: W().any,
3198
3181
  }),
3199
- (0, le.TS)({ type: 'box-style', component: ke }),
3182
+ (0, le.TS)({ type: 'box-style', component: je }),
3200
3183
  __webpack_require__(9346);
3201
- var je = ee.Select.Option,
3184
+ var ke = ee.Select.Option,
3202
3185
  De = (function (e) {
3203
3186
  function t(t) {
3204
3187
  var n;
@@ -3391,11 +3374,11 @@
3391
3374
  S = o.autoComplete || !1,
3392
3375
  _ = this.getQuantity(g),
3393
3376
  f = p || {},
3394
- v = [];
3377
+ b = [];
3395
3378
  f.GlobalOptions &&
3396
3379
  (0, Z.isArray)(f.GlobalOptions) &&
3397
- (v = f.GlobalOptions);
3398
- var b = o.options || v,
3380
+ (b = f.GlobalOptions);
3381
+ var v = o.options || b,
3399
3382
  E = o.style ? (0, te.K8)((0, Q.toJS)(o.style)) : {},
3400
3383
  w = o.titleStyle ? (0, te.K8)((0, Q.toJS)(o.titleStyle)) : {},
3401
3384
  C = o.contentStyle
@@ -3502,7 +3485,7 @@
3502
3485
  className:
3503
3486
  'ant-input layout-item-margin autoComplete-unit',
3504
3487
  style: { display: 'inline-block' },
3505
- options: b,
3488
+ options: v,
3506
3489
  allowClear: !0,
3507
3490
  defaultValue: this.boxStyle.margin.top,
3508
3491
  onChange: function (t) {
@@ -3516,7 +3499,7 @@
3516
3499
  style: { display: 'inline-block' },
3517
3500
  defaultValue: _ || 'px',
3518
3501
  },
3519
- M.createElement(je, { value: _ }, _),
3502
+ M.createElement(ke, { value: _ }, _),
3520
3503
  ),
3521
3504
  ),
3522
3505
  !S &&
@@ -3550,7 +3533,7 @@
3550
3533
  className:
3551
3534
  'ant-input layout-item-padding autoComplete-unit',
3552
3535
  style: { display: 'inline-block' },
3553
- options: b,
3536
+ options: v,
3554
3537
  allowClear: !0,
3555
3538
  defaultValue: this.boxStyle.padding.top,
3556
3539
  onChange: function (t) {
@@ -3564,7 +3547,7 @@
3564
3547
  style: { display: 'inline-block' },
3565
3548
  defaultValue: _ || 'px',
3566
3549
  },
3567
- M.createElement(je, { value: _ }, _),
3550
+ M.createElement(ke, { value: _ }, _),
3568
3551
  ),
3569
3552
  ),
3570
3553
  !S &&
@@ -3616,7 +3599,7 @@
3616
3599
  className:
3617
3600
  'ant-input layout-item-padding autoComplete-unit',
3618
3601
  style: { display: 'inline-block' },
3619
- options: b,
3602
+ options: v,
3620
3603
  allowClear: !0,
3621
3604
  defaultValue: e.boxStyle.padding.top,
3622
3605
  onChange: function (t) {
@@ -3635,7 +3618,7 @@
3635
3618
  style: { display: 'inline-block' },
3636
3619
  defaultValue: _ || 'px',
3637
3620
  },
3638
- M.createElement(je, { value: _ }, _),
3621
+ M.createElement(ke, { value: _ }, _),
3639
3622
  ),
3640
3623
  ),
3641
3624
  !S &&
@@ -3693,7 +3676,7 @@
3693
3676
  className:
3694
3677
  'ant-input layout-item-padding autoComplete-unit',
3695
3678
  style: { display: 'inline-block' },
3696
- options: b,
3679
+ options: v,
3697
3680
  allowClear: !0,
3698
3681
  defaultValue: e.boxStyle.padding.right,
3699
3682
  onChange: function (t) {
@@ -3712,7 +3695,7 @@
3712
3695
  style: { display: 'inline-block' },
3713
3696
  defaultValue: _ || 'px',
3714
3697
  },
3715
- M.createElement(je, { value: _ }, _),
3698
+ M.createElement(ke, { value: _ }, _),
3716
3699
  ),
3717
3700
  ),
3718
3701
  !S &&
@@ -3770,7 +3753,7 @@
3770
3753
  className:
3771
3754
  'ant-input layout-item-padding autoComplete-unit',
3772
3755
  style: { display: 'inline-block' },
3773
- options: b,
3756
+ options: v,
3774
3757
  allowClear: !0,
3775
3758
  defaultValue: e.boxStyle.padding.bottom,
3776
3759
  onChange: function (t) {
@@ -3789,7 +3772,7 @@
3789
3772
  style: { display: 'inline-block' },
3790
3773
  defaultValue: _ || 'px',
3791
3774
  },
3792
- M.createElement(je, { value: _ }, _),
3775
+ M.createElement(ke, { value: _ }, _),
3793
3776
  ),
3794
3777
  ),
3795
3778
  !S &&
@@ -3847,7 +3830,7 @@
3847
3830
  className:
3848
3831
  'ant-input layout-item-padding autoComplete-unit',
3849
3832
  style: { display: 'inline-block' },
3850
- options: b,
3833
+ options: v,
3851
3834
  allowClear: !0,
3852
3835
  defaultValue: e.boxStyle.padding.left,
3853
3836
  onChange: function (t) {
@@ -3866,7 +3849,7 @@
3866
3849
  style: { display: 'inline-block' },
3867
3850
  defaultValue: _ || 'px',
3868
3851
  },
3869
- M.createElement(je, { value: _ }, _),
3852
+ M.createElement(ke, { value: _ }, _),
3870
3853
  ),
3871
3854
  ),
3872
3855
  !S &&
@@ -3924,7 +3907,7 @@
3924
3907
  className:
3925
3908
  'ant-input layout-item-margin autoComplete-unit',
3926
3909
  style: { display: 'inline-block' },
3927
- options: b,
3910
+ options: v,
3928
3911
  allowClear: !0,
3929
3912
  defaultValue: e.boxStyle.margin.top,
3930
3913
  onChange: function (t) {
@@ -3943,7 +3926,7 @@
3943
3926
  style: { display: 'inline-block' },
3944
3927
  defaultValue: _ || 'px',
3945
3928
  },
3946
- M.createElement(je, { value: _ }, _),
3929
+ M.createElement(ke, { value: _ }, _),
3947
3930
  ),
3948
3931
  ),
3949
3932
  !S &&
@@ -4000,7 +3983,7 @@
4000
3983
  className:
4001
3984
  'ant-input layout-item-margin autoComplete-unit',
4002
3985
  style: { display: 'inline-block' },
4003
- options: b,
3986
+ options: v,
4004
3987
  allowClear: !0,
4005
3988
  defaultValue: e.boxStyle.margin.right,
4006
3989
  onChange: function (t) {
@@ -4019,7 +4002,7 @@
4019
4002
  style: { display: 'inline-block' },
4020
4003
  defaultValue: _ || 'px',
4021
4004
  },
4022
- M.createElement(je, { value: _ }, _),
4005
+ M.createElement(ke, { value: _ }, _),
4023
4006
  ),
4024
4007
  ),
4025
4008
  !S &&
@@ -4077,7 +4060,7 @@
4077
4060
  className:
4078
4061
  'ant-input layout-item-margin autoComplete-unit',
4079
4062
  style: { display: 'inline-block' },
4080
- options: b,
4063
+ options: v,
4081
4064
  allowClear: !0,
4082
4065
  defaultValue: e.boxStyle.margin.bottom,
4083
4066
  onChange: function (t) {
@@ -4096,7 +4079,7 @@
4096
4079
  style: { display: 'inline-block' },
4097
4080
  defaultValue: _ || 'px',
4098
4081
  },
4099
- M.createElement(je, { value: _ }, _),
4082
+ M.createElement(ke, { value: _ }, _),
4100
4083
  ),
4101
4084
  ),
4102
4085
  !S &&
@@ -4154,7 +4137,7 @@
4154
4137
  className:
4155
4138
  'ant-input layout-item-margin autoComplete-unit',
4156
4139
  style: { display: 'inline-block' },
4157
- options: b,
4140
+ options: v,
4158
4141
  allowClear: !0,
4159
4142
  defaultValue: e.boxStyle.margin.left,
4160
4143
  onChange: function (t) {
@@ -4173,7 +4156,7 @@
4173
4156
  style: { display: 'inline-block' },
4174
4157
  defaultValue: _ || 'px',
4175
4158
  },
4176
- M.createElement(je, { value: _ }, _),
4159
+ M.createElement(ke, { value: _ }, _),
4177
4160
  ),
4178
4161
  ),
4179
4162
  !S &&
@@ -4528,8 +4511,8 @@
4528
4511
  (S = g.GlobalOptions);
4529
4512
  var _ = p.options || S,
4530
4513
  f = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {},
4531
- v = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
4532
- b = p.contentStyle
4514
+ b = p.titleStyle ? (0, te.K8)((0, Q.toJS)(p.titleStyle)) : {},
4515
+ v = p.contentStyle
4533
4516
  ? (0, te.K8)((0, Q.toJS)(p.contentStyle))
4534
4517
  : {};
4535
4518
  return M.createElement(
@@ -4544,7 +4527,7 @@
4544
4527
  },
4545
4528
  M.createElement(
4546
4529
  'div',
4547
- { className: 'element-title', style: v },
4530
+ { className: 'element-title', style: b },
4548
4531
  M.createElement(
4549
4532
  ee.Tooltip,
4550
4533
  {
@@ -4577,7 +4560,7 @@
4577
4560
  ),
4578
4561
  M.createElement(
4579
4562
  'div',
4580
- { className: 'content-item', style: b },
4563
+ { className: 'content-item', style: v },
4581
4564
  M.createElement(
4582
4565
  'div',
4583
4566
  { className: 'form-item-box' },
@@ -4766,7 +4749,7 @@
4766
4749
  exportAttrString: 'border="1" style="border-collapse: collapse"',
4767
4750
  }),
4768
4751
  );
4769
- var Fe = (function (e) {
4752
+ var Ue = (function (e) {
4770
4753
  function t(t) {
4771
4754
  var n;
4772
4755
  return (
@@ -4958,7 +4941,7 @@
4958
4941
  t
4959
4942
  );
4960
4943
  })(M.PureComponent);
4961
- (Fe.propTypes = {
4944
+ (Ue.propTypes = {
4962
4945
  parentType: W().string,
4963
4946
  jsonKey: W().string,
4964
4947
  indexRoute: W().string,
@@ -4967,9 +4950,9 @@
4967
4950
  targetJsonSchema: W().any,
4968
4951
  pageScreen: W().any,
4969
4952
  }),
4970
- (0, le.TS)({ type: 'text-editor', component: Fe }),
4953
+ (0, le.TS)({ type: 'text-editor', component: Ue }),
4971
4954
  __webpack_require__(9741);
4972
- var Ue = (function (e) {
4955
+ var Fe = (function (e) {
4973
4956
  function t(t) {
4974
4957
  var n;
4975
4958
  return (
@@ -5134,7 +5117,7 @@
5134
5117
  t
5135
5118
  );
5136
5119
  })(M.PureComponent);
5137
- (Ue.propTypes = {
5120
+ (Fe.propTypes = {
5138
5121
  parentType: W().string,
5139
5122
  jsonKey: W().string,
5140
5123
  indexRoute: W().string,
@@ -5142,7 +5125,7 @@
5142
5125
  nodeKey: W().string,
5143
5126
  targetJsonSchema: W().any,
5144
5127
  }),
5145
- (0, le.TS)({ type: 'number', component: Ue });
5128
+ (0, le.TS)({ type: 'number', component: Fe });
5146
5129
  var ze = require('rc-switch'),
5147
5130
  Ge = __webpack_require__.n(ze),
5148
5131
  $e =
@@ -5355,8 +5338,8 @@
5355
5338
  }
5356
5339
  var f = null != y ? y : m.default;
5357
5340
  (0, Z.isObject)(f) && (f = JSON.stringify(f));
5358
- var v = m.style ? (0, te.K8)((0, Q.toJS)(m.style)) : {},
5359
- b = m.titleStyle ? (0, te.K8)((0, Q.toJS)(m.titleStyle)) : {},
5341
+ var b = m.style ? (0, te.K8)((0, Q.toJS)(m.style)) : {},
5342
+ v = m.titleStyle ? (0, te.K8)((0, Q.toJS)(m.titleStyle)) : {},
5360
5343
  E = m.contentStyle
5361
5344
  ? (0, te.K8)((0, Q.toJS)(m.contentStyle))
5362
5345
  : {};
@@ -5369,11 +5352,11 @@
5369
5352
  : 'mobile-screen-element-warp ' +
5370
5353
  (g ? 'two-col-element-warp' : ''),
5371
5354
  id: c,
5372
- style: v,
5355
+ style: b,
5373
5356
  },
5374
5357
  M.createElement(
5375
5358
  'div',
5376
- { className: 'element-title', style: b },
5359
+ { className: 'element-title', style: v },
5377
5360
  M.createElement(
5378
5361
  ee.Tooltip,
5379
5362
  {
@@ -5648,8 +5631,8 @@
5648
5631
  onRemove: this.handleDeleteChange,
5649
5632
  },
5650
5633
  f = m.style ? (0, te.K8)((0, Q.toJS)(m.style)) : {},
5651
- v = m.titleStyle ? (0, te.K8)((0, Q.toJS)(m.titleStyle)) : {},
5652
- b = m.contentStyle
5634
+ b = m.titleStyle ? (0, te.K8)((0, Q.toJS)(m.titleStyle)) : {},
5635
+ v = m.contentStyle
5653
5636
  ? (0, te.K8)((0, Q.toJS)(m.contentStyle))
5654
5637
  : {};
5655
5638
  return M.createElement(
@@ -5664,7 +5647,7 @@
5664
5647
  },
5665
5648
  M.createElement(
5666
5649
  'div',
5667
- { className: 'element-title', style: v },
5650
+ { className: 'element-title', style: b },
5668
5651
  M.createElement(
5669
5652
  ee.Tooltip,
5670
5653
  {
@@ -5697,7 +5680,7 @@
5697
5680
  ),
5698
5681
  M.createElement(
5699
5682
  'div',
5700
- { className: 'content-item', style: b },
5683
+ { className: 'content-item', style: v },
5701
5684
  M.createElement(
5702
5685
  'div',
5703
5686
  { className: 'form-item-box' },
@@ -6176,7 +6159,7 @@
6176
6159
  f = u.contentStyle
6177
6160
  ? (0, te.K8)((0, Q.toJS)(u.contentStyle))
6178
6161
  : {},
6179
- v = M.createElement(rt.SketchPicker, {
6162
+ b = M.createElement(rt.SketchPicker, {
6180
6163
  className: 'color-sketch-picker',
6181
6164
  key: c + '-SketchPicker',
6182
6165
  color: null != h ? h : u.default,
@@ -6258,7 +6241,7 @@
6258
6241
  M.createElement(
6259
6242
  ee.Popover,
6260
6243
  {
6261
- content: v,
6244
+ content: b,
6262
6245
  title: '颜色选择器',
6263
6246
  trigger: 'click',
6264
6247
  },
@@ -7053,10 +7036,10 @@
7053
7036
  S = p.renderChild,
7054
7037
  _ = this.state.isShowFilter,
7055
7038
  f = g.type,
7056
- v = i(m) || {},
7057
- b = g.properties.type || {},
7058
- E = v.type || b.default,
7059
- w = v.config || {},
7039
+ b = i(m) || {},
7040
+ v = g.properties.type || {},
7041
+ E = b.type || v.default,
7042
+ w = b.config || {},
7060
7043
  C = w.dataName,
7061
7044
  O = w.dataRoute,
7062
7045
  x = w.body || {};
@@ -7068,8 +7051,8 @@
7068
7051
  }
7069
7052
  var N = s[C] || {},
7070
7053
  R = g.properties.data || {},
7071
- k = g.style ? (0, te.K8)((0, Q.toJS)(g.style)) : {},
7072
- j = g.titleStyle ? (0, te.K8)((0, Q.toJS)(g.titleStyle)) : {},
7054
+ j = g.style ? (0, te.K8)((0, Q.toJS)(g.style)) : {},
7055
+ k = g.titleStyle ? (0, te.K8)((0, Q.toJS)(g.titleStyle)) : {},
7073
7056
  D = g.contentStyle
7074
7057
  ? (0, te.K8)((0, Q.toJS)(g.contentStyle))
7075
7058
  : {};
@@ -7079,11 +7062,11 @@
7079
7062
  className: 'mobile-screen-element-warp dynamic-data-schema',
7080
7063
  key: y + '-' + u,
7081
7064
  id: y,
7082
- style: k,
7065
+ style: j,
7083
7066
  },
7084
7067
  M.createElement(
7085
7068
  'div',
7086
- { className: 'element-title', style: j },
7069
+ { className: 'element-title', style: k },
7087
7070
  M.createElement(
7088
7071
  ee.Tooltip,
7089
7072
  {
@@ -7349,261 +7332,43 @@
7349
7332
  onChange: this.dataRouteChange,
7350
7333
  key: y + '-config-dataRoute',
7351
7334
  }),
7352
- C &&
7353
- S({
7354
- rendererType: 'codearea',
7355
- isReadOnly: !0,
7356
- isIgnoreWarn: !0,
7357
- parentType: f,
7358
- jsonKey: 'filter',
7359
- indexRoute: h ? h + '-1-2' : '1-2',
7360
- keyRoute: m
7361
- ? m + '-config-filter'
7362
- : 'config-filter',
7363
- nodeKey: y + '-config-filter-' + O,
7364
- targetJsonSchema:
7365
- g.properties.config &&
7366
- g.properties.config.properties.filter,
7367
- }),
7368
- ),
7369
- ),
7370
- ),
7371
- );
7372
- }),
7373
- t
7374
- );
7375
- })(M.PureComponent);
7376
- (ht.propTypes = {
7377
- parentType: W().string,
7378
- jsonKey: W().string,
7379
- indexRoute: W().string,
7380
- keyRoute: W().string,
7381
- nodeKey: W().string,
7382
- targetJsonSchema: W().any,
7383
- dynamicDataList: W().array,
7384
- dynamicDataObj: W().object,
7385
- dynamicDataApiScopeList: W().object,
7386
- }),
7387
- (0, le.TS)({ type: 'dynamic-data', component: ht });
7388
- var gt = (function (e) {
7389
- function t(t) {
7390
- var n;
7391
- return (
7392
- ((n = e.call(this, t) || this).state = {
7393
- jsonView: !1,
7394
- isClosed: !1,
7395
- }),
7396
- n
7397
- );
7398
- }
7399
- A()(t, e);
7400
- var n = t.prototype;
7401
- return (
7402
- (n.componentWillMount = function () {
7403
- he.x.call(this);
7404
- }),
7405
- (n.componentWillReceiveProps = function (e) {
7406
- e.keyRoute !== this.props.keyRoute && he.x.call(this, e.keyRoute);
7407
- }),
7408
- (n.render = function () {
7409
- var e,
7410
- t = this,
7411
- n = this.props,
7412
- a = n.schemaStore,
7413
- o = (n.jsonStore, (a || {}).pageScreen),
7414
- r = this.props,
7415
- i = r.keyRoute,
7416
- l = r.jsonKey,
7417
- s = r.nodeKey,
7418
- c = r.indexRoute,
7419
- u = r.targetJsonSchema,
7420
- p = r.renderChild,
7421
- m = u.type,
7422
- d = this.state,
7423
- y = d.jsonView,
7424
- h = d.isClosed,
7425
- g = u.properties.type || {},
7426
- S = u.properties.register || {},
7427
- _ = u.properties.actionFunc || {},
7428
- f = u.properties.trigger || {},
7429
- v = u.properties.eventData || {},
7430
- b = g.default,
7431
- E = null == (e = u.showCodeViewBtn) || e,
7432
- w = u.style ? (0, te.K8)((0, Q.toJS)(u.style)) : {},
7433
- C = u.titleStyle ? (0, te.K8)((0, Q.toJS)(u.titleStyle)) : {},
7434
- O = u.contentStyle
7435
- ? (0, te.K8)((0, Q.toJS)(u.contentStyle))
7436
- : {};
7437
- return M.createElement(
7438
- 'div',
7439
- {
7440
- className:
7441
- 'wideScreen' === o
7442
- ? 'wide-screen-element-warp'
7443
- : 'mobile-screen-element-warp',
7444
- id: s,
7445
- style: w,
7446
- },
7447
- M.createElement(
7448
- 'div',
7449
- { className: 'element-title', style: C },
7450
- M.createElement(
7451
- ee.Tooltip,
7452
- {
7453
- title: 'wideScreen' === o ? u.description : '',
7454
- placement: 'top',
7455
- },
7456
- M.createElement(
7457
- 'span',
7458
- { className: 'title-text', title: u.title },
7459
- u.title,
7460
- u.showKey &&
7461
- M.createElement(
7462
- 'span',
7463
- null,
7464
- '(',
7465
- (0, Z.truncate)(l, { length: 15 }),
7466
- ')',
7467
- ),
7468
- ),
7469
- ),
7470
- 'mobileScreen' === o &&
7471
- u.description &&
7472
- M.createElement(
7473
- ee.Tooltip,
7474
- { title: u.description, placement: 'top' },
7475
- M.createElement(se.InfoCircleOutlined, {
7476
- className: 'info-icon',
7477
- }),
7478
- ),
7479
- ),
7480
- M.createElement(
7481
- 'div',
7482
- {
7483
- className: 'element-title-card-warp content-item',
7484
- style: O,
7485
- },
7486
- M.createElement(
7487
- 'div',
7488
- {
7489
- className: 'element-title',
7490
- onClick: function (e) {
7491
- t.setState({ isClosed: !h }),
7492
- e.preventDefault(),
7493
- e.stopPropagation();
7494
- },
7495
- },
7496
- M.createElement(
7497
- 'span',
7498
- { className: 'title-text' },
7499
- '事件配置',
7500
- ),
7501
- h
7502
- ? M.createElement(se.RightOutlined, {
7503
- className: 'close-operate-btn',
7504
- })
7505
- : M.createElement(se.DownOutlined, {
7506
- className: 'close-operate-btn',
7507
- }),
7508
- E &&
7509
- M.createElement(
7510
- 'div',
7511
- {
7512
- className: 'display-source-btn',
7513
- onClick: function (e) {
7514
- t.setState({ jsonView: !y }),
7515
- e.preventDefault(),
7516
- e.stopPropagation();
7517
- },
7518
- },
7519
- M.createElement(
7520
- ee.Tooltip,
7521
- { title: y ? '关闭源码模式' : '开启源码模式' },
7522
- M.createElement(we, {
7523
- className: y ? 'info-icon active' : 'info-icon',
7524
- }),
7525
- ),
7526
- ),
7527
- ),
7528
- M.createElement(
7529
- 'div',
7530
- {
7531
- className:
7532
- 'content-item object-content ' +
7533
- (y ? 'json-view-array' : '') +
7534
- ' ' +
7535
- (h ? 'closed' : ''),
7536
- },
7537
- !y &&
7538
- 'on' === b &&
7539
- M.createElement(
7540
- M.Fragment,
7541
- null,
7542
- S &&
7543
- p({
7544
- rendererType: 'input',
7545
- parentType: m,
7546
- jsonKey: 'register',
7547
- indexRoute: c ? c + '-1' : '1',
7548
- keyRoute: i ? i + '-register' : 'register',
7549
- nodeKey: s + '-register',
7550
- targetJsonSchema: S,
7551
- }),
7552
- _ &&
7553
- p({
7554
- rendererType: 'codearea',
7555
- parentType: m,
7556
- jsonKey: 'actionFunc',
7557
- indexRoute: c ? c + '-2' : '2',
7558
- keyRoute: i ? i + '-actionFunc' : 'actionFunc',
7559
- nodeKey: s + '-actionFunc',
7560
- targetJsonSchema: _,
7561
- }),
7562
- ),
7563
- !y &&
7564
- 'emit' === b &&
7565
- M.createElement(
7566
- M.Fragment,
7567
- null,
7568
- f &&
7569
- p({
7570
- rendererType: 'input',
7571
- parentType: m,
7572
- jsonKey: 'trigger',
7573
- indexRoute: c ? c + '-1' : '1',
7574
- keyRoute: i ? i + '-trigger' : 'trigger',
7575
- nodeKey: s + '-trigger',
7576
- targetJsonSchema: f,
7577
- }),
7578
- v &&
7579
- p({
7580
- rendererType: 'json',
7581
- parentType: m,
7582
- jsonKey: 'eventData',
7583
- indexRoute: c ? c + '-2' : '2',
7584
- keyRoute: i ? i + '-eventData' : 'eventData',
7585
- nodeKey: s + '-eventData',
7586
- targetJsonSchema: v,
7335
+ C &&
7336
+ S({
7337
+ rendererType: 'codearea',
7338
+ isReadOnly: !0,
7339
+ isIgnoreWarn: !0,
7340
+ parentType: f,
7341
+ jsonKey: 'filter',
7342
+ indexRoute: h ? h + '-1-2' : '1-2',
7343
+ keyRoute: m
7344
+ ? m + '-config-filter'
7345
+ : 'config-filter',
7346
+ nodeKey: y + '-config-filter-' + O,
7347
+ targetJsonSchema:
7348
+ g.properties.config &&
7349
+ g.properties.config.properties.filter,
7587
7350
  }),
7588
7351
  ),
7589
- y && M.createElement(ye, this.props),
7352
+ ),
7590
7353
  ),
7591
- ),
7592
- );
7593
- }),
7594
- t
7595
- );
7596
- })(M.PureComponent);
7597
- (gt.propTypes = {
7354
+ );
7355
+ }),
7356
+ t
7357
+ );
7358
+ })(M.PureComponent);
7359
+ (ht.propTypes = {
7598
7360
  parentType: W().string,
7599
7361
  jsonKey: W().string,
7600
7362
  indexRoute: W().string,
7601
7363
  keyRoute: W().string,
7602
7364
  nodeKey: W().string,
7603
7365
  targetJsonSchema: W().any,
7366
+ dynamicDataList: W().array,
7367
+ dynamicDataObj: W().object,
7368
+ dynamicDataApiScopeList: W().object,
7604
7369
  }),
7605
- (0, le.TS)({ type: 'event', component: gt });
7606
- var St = (function (e) {
7370
+ (0, le.TS)({ type: 'dynamic-data', component: ht });
7371
+ var gt = (function (e) {
7607
7372
  function t(t) {
7608
7373
  var n;
7609
7374
  return (
@@ -7611,7 +7376,6 @@
7611
7376
  jsonView: !1,
7612
7377
  isClosed: !1,
7613
7378
  }),
7614
- (n.collapseChange = n.collapseChange.bind(n)),
7615
7379
  n
7616
7380
  );
7617
7381
  }
@@ -7624,651 +7388,205 @@
7624
7388
  (n.componentWillReceiveProps = function (e) {
7625
7389
  e.keyRoute !== this.props.keyRoute && he.x.call(this, e.keyRoute);
7626
7390
  }),
7627
- (n.collapseChange = function (e) {
7628
- var t = this.props.keyRoute,
7629
- n = this.state.isClosed;
7630
- this.setState({ isClosed: !n }),
7631
- e.preventDefault(),
7632
- e.stopPropagation(),
7633
- (0, ce.PM)(t, !n);
7634
- }),
7635
7391
  (n.render = function () {
7636
7392
  var e,
7637
- t,
7638
- n = this,
7639
- a = this.props,
7640
- o = a.schemaStore,
7641
- r = a.jsonStore,
7642
- i = (o || {}).pageScreen,
7643
- l = r || {},
7644
- s = l.options,
7645
- c = l.getJSONDataByKeyRoute,
7646
- u = this.props,
7647
- p = u.indexRoute,
7648
- m = u.jsonKey,
7649
- d = u.nodeKey,
7650
- y = u.keyRoute,
7651
- h = u.targetJsonSchema,
7652
- g = u.isArrayItem,
7653
- S = u.isStructuredSchema,
7654
- _ = u.renderChild,
7655
- f = this.state,
7656
- v = f.jsonView,
7657
- b = f.isClosed,
7658
- E = s || {},
7659
- w = S,
7660
- C = null == (e = h.showCodeViewBtn) || e,
7661
- O = c(y) || {},
7662
- x = (O.type, O.valueType, E.metaContentKeyList || []),
7663
- N = E.globalMetaConfig || [],
7664
- R = b,
7665
- k = (0, ce.Gz)(y);
7666
- void 0 !== k && (R = k);
7667
- var j = null != (t = h.boxTitle) ? t : '动态配置',
7668
- D = h.style ? (0, te.K8)((0, Q.toJS)(h.style)) : {},
7669
- K = h.titleStyle ? (0, te.K8)((0, Q.toJS)(h.titleStyle)) : {},
7670
- T = h.contentStyle
7671
- ? (0, te.K8)((0, Q.toJS)(h.contentStyle))
7393
+ t = this,
7394
+ n = this.props,
7395
+ a = n.schemaStore,
7396
+ o = (n.jsonStore, (a || {}).pageScreen),
7397
+ r = this.props,
7398
+ i = r.keyRoute,
7399
+ l = r.jsonKey,
7400
+ s = r.nodeKey,
7401
+ c = r.indexRoute,
7402
+ u = r.targetJsonSchema,
7403
+ p = r.renderChild,
7404
+ m = u.type,
7405
+ d = this.state,
7406
+ y = d.jsonView,
7407
+ h = d.isClosed,
7408
+ g = u.properties.type || {},
7409
+ S = u.properties.register || {},
7410
+ _ = u.properties.actionFunc || {},
7411
+ f = u.properties.trigger || {},
7412
+ b = u.properties.eventData || {},
7413
+ v = g.default,
7414
+ E = null == (e = u.showCodeViewBtn) || e,
7415
+ w = u.style ? (0, te.K8)((0, Q.toJS)(u.style)) : {},
7416
+ C = u.titleStyle ? (0, te.K8)((0, Q.toJS)(u.titleStyle)) : {},
7417
+ O = u.contentStyle
7418
+ ? (0, te.K8)((0, Q.toJS)(u.contentStyle))
7672
7419
  : {};
7673
- return V().createElement(
7420
+ return M.createElement(
7674
7421
  'div',
7675
7422
  {
7676
7423
  className:
7677
- 'wideScreen' === i
7678
- ? 'object-schema-warp wide-screen-element-warp'
7679
- : 'object-schema-warp mobile-screen-element-warp',
7680
- id: d,
7681
- style: D,
7424
+ 'wideScreen' === o
7425
+ ? 'wide-screen-element-warp'
7426
+ : 'mobile-screen-element-warp',
7427
+ id: s,
7428
+ style: w,
7682
7429
  },
7683
- !w &&
7684
- !g &&
7685
- V().createElement(
7686
- 'div',
7687
- { className: 'element-title', style: K },
7688
- V().createElement(
7689
- ee.Tooltip,
7690
- {
7691
- title: 'wideScreen' === i ? h.description : '',
7692
- placement: 'top',
7693
- },
7694
- V().createElement(
7695
- 'span',
7696
- { className: 'title-text', title: h.title },
7697
- h.title,
7698
- h.showKey &&
7699
- V().createElement(
7700
- 'span',
7701
- null,
7702
- '(',
7703
- (0, Z.truncate)(m, { length: 15 }),
7704
- ')',
7705
- ),
7706
- ),
7707
- ),
7708
- 'mobileScreen' === i &&
7709
- h.description &&
7710
- V().createElement(
7711
- ee.Tooltip,
7712
- { title: h.description, placement: 'top' },
7713
- V().createElement(se.InfoCircleOutlined, {
7714
- className: 'info-icon',
7715
- }),
7716
- ),
7717
- ),
7718
- V().createElement(
7430
+ M.createElement(
7719
7431
  'div',
7720
- {
7721
- className: 'element-title-card-warp content-item',
7722
- style: T,
7723
- },
7724
- !w &&
7725
- !g &&
7726
- V().createElement(
7727
- 'div',
7728
- {
7729
- className: 'element-title',
7730
- onClick: this.collapseChange,
7731
- },
7732
- V().createElement(
7733
- 'span',
7734
- { className: 'title-text' },
7735
- j,
7736
- ' ',
7737
- ),
7738
- R
7739
- ? V().createElement(se.RightOutlined, {
7740
- className: 'close-operate-btn',
7741
- })
7742
- : V().createElement(se.DownOutlined, {
7743
- className: 'close-operate-btn',
7744
- }),
7745
- C &&
7746
- V().createElement(
7747
- 'div',
7748
- {
7749
- className: 'display-source-btn',
7750
- onClick: function (e) {
7751
- n.setState({ jsonView: !v }),
7752
- e.preventDefault(),
7753
- e.stopPropagation();
7754
- },
7755
- },
7756
- V().createElement(
7757
- ee.Tooltip,
7758
- { title: v ? '关闭源码模式' : '开启源码模式' },
7759
- V().createElement(we, {
7760
- className: v ? 'info-icon active' : 'info-icon',
7761
- }),
7762
- ),
7763
- ),
7764
- ),
7765
- V().createElement(
7766
- 'div',
7432
+ { className: 'element-title', style: C },
7433
+ M.createElement(
7434
+ ee.Tooltip,
7767
7435
  {
7768
- className:
7769
- 'content-item ' +
7770
- (w || g ? '' : 'object-content') +
7771
- ' ' +
7772
- (v ? 'json-view-array' : '') +
7773
- ' ' +
7774
- (R ? 'closed' : ''),
7436
+ title: 'wideScreen' === o ? u.description : '',
7437
+ placement: 'top',
7775
7438
  },
7776
- !v &&
7777
- h.propertyOrder &&
7778
- h.propertyOrder.map(function (e, t) {
7779
- var n = p ? p + '-' + t : '' + t,
7780
- a = y ? y + '-' + e : '' + e,
7781
- o = e,
7782
- r = (0, Q.toJS)(h.properties[o]),
7783
- i = r.type,
7784
- l = d + '-' + i + '-' + o;
7785
- if (
7786
- 'valueType' === o &&
7787
- ('ContentStaticConfig' === O.type ||
7788
- 'ResourceCenter' === O.type)
7789
- ) {
7790
- var s = h.properties.value;
7791
- ['select', 'radio', 'checkboxes'].includes(s.type) ||
7792
- (r.default = 'string');
7793
- }
7794
- if (
7795
- 'range' === o &&
7796
- !(
7797
- (r.options && 0 !== r.options.length) ||
7798
- ('ContentStaticConfig' !== O.type &&
7799
- 'ResourceCenter' !== O.type)
7800
- )
7801
- ) {
7802
- var c = h.properties.value;
7803
- ['select', 'radio', 'checkboxes'].includes(c.type) &&
7804
- c.options &&
7805
- c.options.length > 0 &&
7806
- (r.options = (0, te.n2)(c.options));
7807
- }
7808
- return (
7809
- 'value' === o && 'Content' === O.type
7810
- ? ((r.type = 'select'), (r.options = (0, te.bQ)(x)))
7811
- : 'value' === o &&
7812
- 'RuntimeConst' === O.type &&
7813
- ((r.type = 'cascader'),
7814
- (r.options = (0, te.bQ)(N))),
7815
- _({
7816
- parentType: i,
7817
- jsonKey: o,
7818
- indexRoute: n,
7819
- keyRoute: a,
7820
- nodeKey: l,
7821
- targetJsonSchema: r,
7822
- })
7823
- );
7824
- }),
7825
- v && V().createElement(ye, this.props),
7826
- ),
7827
- ),
7828
- );
7829
- }),
7830
- t
7831
- );
7832
- })(V().PureComponent);
7833
- (St.propTypes = {
7834
- isArrayItem: W().any,
7835
- arrIndex: W().any,
7836
- parentType: W().string,
7837
- jsonKey: W().string,
7838
- indexRoute: W().any,
7839
- keyRoute: W().string,
7840
- nodeKey: W().string,
7841
- targetJsonSchema: W().any,
7842
- isStructuredSchema: W().bool,
7843
- }),
7844
- (0, le.TS)({ type: 'dynamic-array', component: St }),
7845
- (0, le.TS)({ type: 'dynamic-object', component: St }),
7846
- (0, le.TS)({ type: 'dynamic-config', component: St });
7847
- var _t = ee.Collapse.Panel,
7848
- ft = (function (e) {
7849
- function t(t) {
7850
- var n;
7851
- return (
7852
- ((n = e.call(this, t) || this).state = {
7853
- jsonView: !1,
7854
- isClosed: !1,
7855
- }),
7856
- (n.collapseChange = n.collapseChange.bind(n)),
7857
- n
7858
- );
7859
- }
7860
- A()(t, e);
7861
- var n = t.prototype;
7862
- return (
7863
- (n.componentWillMount = function () {
7864
- he.x.call(this);
7865
- }),
7866
- (n.componentWillReceiveProps = function (e) {
7867
- e.keyRoute !== this.props.keyRoute &&
7868
- he.x.call(this, e.keyRoute);
7869
- }),
7870
- (n.collapseChange = function (e) {
7871
- var t = this.props.keyRoute;
7872
- (0, ce.PM)(t, e);
7873
- }),
7874
- (n.render = function () {
7875
- var e = this.props,
7876
- t = e.schemaStore,
7877
- n = e.jsonStore,
7878
- a = (t || {}).pageScreen,
7879
- o = n || {},
7880
- r = o.getJSONDataByKeyRoute,
7881
- i = o.JSONEditorObj,
7882
- l = this.props,
7883
- s = l.indexRoute,
7884
- c = l.jsonKey,
7885
- u = l.nodeKey,
7886
- p = l.keyRoute,
7887
- m = l.targetJsonSchema,
7888
- d = l.renderChild,
7889
- y = ['mainConfig'],
7890
- h = (0, ce.Gz)(p);
7891
- h && (0, Z.isArray)(h) && (y = h);
7892
- var g = r(p) || {};
7893
- g = Object.assign({}, i, g);
7894
- var S = m.style ? (0, te.K8)((0, Q.toJS)(m.style)) : {},
7895
- _ = m.titleStyle ? (0, te.K8)((0, Q.toJS)(m.titleStyle)) : {},
7896
- f = m.contentStyle
7897
- ? (0, te.K8)((0, Q.toJS)(m.contentStyle))
7898
- : {};
7899
- return V().createElement(
7900
- 'div',
7901
- {
7902
- className:
7903
- 'wideScreen' === a
7904
- ? 'wide-screen-element-warp'
7905
- : 'mobile-screen-element-warp',
7906
- id: u,
7907
- style: S,
7908
- },
7909
- V().createElement(
7910
- 'div',
7911
- { className: 'element-title', style: _ },
7912
- V().createElement(
7913
- ee.Tooltip,
7914
- {
7915
- title: 'wideScreen' === a ? m.description : '',
7916
- placement: 'top',
7917
- },
7918
- V().createElement(
7919
- 'span',
7920
- { className: 'title-text', title: m.title },
7921
- m.title,
7922
- m.showKey &&
7923
- V().createElement(
7924
- 'span',
7925
- null,
7926
- '(',
7927
- (0, Z.truncate)(c, { length: 15 }),
7928
- ')',
7929
- ),
7930
- ),
7439
+ M.createElement(
7440
+ 'span',
7441
+ { className: 'title-text', title: u.title },
7442
+ u.title,
7443
+ u.showKey &&
7444
+ M.createElement(
7445
+ 'span',
7446
+ null,
7447
+ '',
7448
+ (0, Z.truncate)(l, { length: 15 }),
7449
+ '',
7450
+ ),
7931
7451
  ),
7932
- 'mobileScreen' === a &&
7933
- m.description &&
7934
- V().createElement(
7935
- ee.Tooltip,
7936
- { title: m.description, placement: 'top' },
7937
- V().createElement(se.InfoCircleOutlined, {
7938
- className: 'info-icon',
7939
- }),
7940
- ),
7941
7452
  ),
7942
- V().createElement(
7943
- 'div',
7944
- { className: 'array-schema-box', style: f },
7945
- V().createElement(
7946
- ee.Collapse,
7947
- {
7948
- defaultActiveKey: y,
7949
- expandIconPosition: 'end',
7950
- bordered: !1,
7951
- accordion: !0,
7952
- onChange: this.collapseChange,
7953
- },
7954
- m.propertyOrder.map(function (e, t) {
7955
- var n = s ? s + '-' + t : '' + t,
7956
- a = p ? p + '-' + e : '' + e,
7957
- o = e,
7958
- r = (0, Q.toJS)(m.properties[o]),
7959
- i = r.type,
7960
- l = u + '-' + i + '-' + o;
7961
- if (r.propertyOrder && r.propertyOrder.length > 0) {
7962
- if (
7963
- (0, te.GT)(r.onShow) &&
7964
- '' !== r.onShow &&
7965
- (((0, Z.isBoolean)(r.onShow) && !r.onShow) ||
7966
- ((0, Z.isString)(r.onShow) &&
7967
- !(0, Z.evalExpression)(r.onShow, g)))
7968
- )
7969
- return;
7970
- return V().createElement(
7971
- _t,
7972
- { header: r.title, key: e + '-' + t },
7973
- d({
7974
- parentType: i,
7975
- jsonKey: o,
7976
- indexRoute: n,
7977
- keyRoute: a,
7978
- nodeKey: l,
7979
- targetJsonSchema: r,
7980
- isArrayItem: !0,
7981
- }),
7982
- );
7983
- }
7453
+ 'mobileScreen' === o &&
7454
+ u.description &&
7455
+ M.createElement(
7456
+ ee.Tooltip,
7457
+ { title: u.description, placement: 'top' },
7458
+ M.createElement(se.InfoCircleOutlined, {
7459
+ className: 'info-icon',
7984
7460
  }),
7985
7461
  ),
7986
- ),
7987
- );
7988
- }),
7989
- t
7990
- );
7991
- })(V().PureComponent);
7992
- (ft.propTypes = {
7993
- isArrayItem: W().any,
7994
- parentType: W().string,
7995
- jsonKey: W().string,
7996
- indexRoute: W().any,
7997
- keyRoute: W().string,
7998
- nodeKey: W().string,
7999
- targetJsonSchema: W().any,
8000
- isStructuredSchema: W().bool,
8001
- }),
8002
- (0, le.TS)({ type: 'sohu-source', component: ft }),
8003
- __webpack_require__(9612);
8004
- var vt = ee.Select.Option,
8005
- bt = ee.Collapse.Panel,
8006
- Et = (function (e) {
8007
- function t(t) {
8008
- var n;
8009
- return (
8010
- ((n = e.call(this, t) || this).handleEventTitleChange =
8011
- function (e, t) {
8012
- var a = n.props,
8013
- o = a.keyRoute,
8014
- r = a.jsonStore || {},
8015
- i = r.updateFormValueData,
8016
- l = r.getJSONDataByKeyRoute,
8017
- s = (r.options, t.target.value),
8018
- c = l(o) || {},
8019
- u = Object.assign([], (0, Q.toJS)(c.event)),
8020
- p = Object.assign({}, (0, Q.toJS)(c.globalEventMap));
8021
- (p[e] = s),
8022
- u.forEach(function (t) {
8023
- t.code === e && void 0 !== t.desc && (t.desc = s);
8024
- }),
8025
- i(o, { event: u, globalEventMap: p });
8026
- }),
8027
- (n.handleSelectEventChange = function (e, t) {
8028
- var a = n.props,
8029
- o = a.keyRoute,
8030
- r = a.jsonStore || {},
8031
- i = r.updateFormValueData,
8032
- l = r.getJSONDataByKeyRoute,
8033
- s = r.options || {},
8034
- c = o + '-event',
8035
- u = l(o) || {},
8036
- p = [];
8037
- u.event && u.event.length > 0
8038
- ? (p = (0, Q.toJS)(u.event))
8039
- : s.eventListenConfig &&
8040
- s.eventListenConfig.length > 0 &&
8041
- (s.eventListenConfig || []).forEach(function (e) {
8042
- p.push({ name: e.name, listenName: e.code });
8043
- }),
8044
- p.forEach(function (n) {
8045
- n.name === e && (n.listenName = t);
8046
- }),
8047
- i(c, p);
8048
- }),
8049
- (n.state = { jsonView: !1, isClosed: !1 }),
8050
- (n.collapseChange = n.collapseChange.bind(n)),
8051
- n
8052
- );
8053
- }
8054
- A()(t, e);
8055
- var n = t.prototype;
8056
- return (
8057
- (n.componentWillMount = function () {
8058
- he.x.call(this);
8059
- }),
8060
- (n.componentWillReceiveProps = function (e) {
8061
- e.keyRoute !== this.props.keyRoute &&
8062
- he.x.call(this, e.keyRoute);
8063
- }),
8064
- (n.collapseChange = function (e) {
8065
- var t = this.props.keyRoute;
8066
- (0, ce.PM)(t, e);
8067
- }),
8068
- (n.render = function () {
8069
- var e = this,
8070
- t = this.props,
8071
- n = t.schemaStore,
8072
- a = t.jsonStore,
8073
- o = (n || {}).pageScreen,
8074
- r = a || {},
8075
- i = r.getJSONDataByKeyRoute,
8076
- l = r.options,
8077
- s = this.props,
8078
- c = (s.indexRoute, s.jsonKey, s.nodeKey),
8079
- u = s.keyRoute,
8080
- p = s.targetJsonSchema,
8081
- m = l || {},
8082
- d = i(u),
8083
- y = d.globalEventMap || {},
8084
- h = d.event || [],
8085
- g = m.widgetType,
8086
- S = m.eventEmitConfig || [],
8087
- _ = m.eventListenConfig || [],
8088
- f = m.allEmitEventList || [],
8089
- v = 'page' !== g && 0 === S.length && 0 === _.length,
8090
- b = [],
8091
- E = (0, ce.Gz)(u);
8092
- E && (0, Z.isArray)(E) && (b = E);
8093
- var w = p.style ? (0, te.K8)((0, Q.toJS)(p.style)) : {};
8094
- return V().createElement(
7462
+ ),
7463
+ M.createElement(
8095
7464
  'div',
8096
7465
  {
8097
- className:
8098
- 'wideScreen' === o
8099
- ? 'sohu-event-container array-schema-box wide-screen-element-warp'
8100
- : 'sohu-event-container array-schema-box mobile-screen-element-warp',
8101
- id: c,
8102
- style: w,
7466
+ className: 'element-title-card-warp content-item',
7467
+ style: O,
8103
7468
  },
8104
- V().createElement(
8105
- ee.Collapse,
7469
+ M.createElement(
7470
+ 'div',
8106
7471
  {
8107
- defaultActiveKey: b,
8108
- expandIconPosition: 'right',
8109
- bordered: !1,
8110
- onChange: this.collapseChange,
7472
+ className: 'element-title',
7473
+ onClick: function (e) {
7474
+ t.setState({ isClosed: !h }),
7475
+ e.preventDefault(),
7476
+ e.stopPropagation();
7477
+ },
8111
7478
  },
8112
- _ &&
8113
- _.length > 0 &&
8114
- V().createElement(
8115
- bt,
8116
- { header: '监听的事件', key: 'eventListenConfig' },
8117
- _.map(function (t, n) {
8118
- var a = c + '-eventListen-' + t.code,
8119
- o =
8120
- (
8121
- h.find(function (e) {
8122
- return e.name === t.name;
8123
- }) || {}
8124
- ).listenName || '';
8125
- return V().createElement(
8126
- 'div',
8127
- { key: a, className: 'listen-event-content' },
8128
- V().createElement(
8129
- 'div',
8130
- { className: 'title-text' },
8131
- t.desc || t.name,
8132
- ),
8133
- V().createElement(
8134
- 'div',
8135
- { className: 'form-item-box' },
8136
- V().createElement('span', null, '绑定事件:'),
8137
- V().createElement(
8138
- ee.Select,
8139
- {
8140
- showSearch: !0,
8141
- style: {
8142
- display: 'inline-block',
8143
- minWidth: '120px',
8144
- },
8145
- onChange: function (n) {
8146
- return e.handleSelectEventChange(t.name, n);
8147
- },
8148
- defaultValue: o,
8149
- },
8150
- f.map(function (e) {
8151
- var t = y[e.code] || e.desc || e.name,
8152
- n = c + '-allEmitEvent-' + t;
8153
- return V().createElement(
8154
- vt,
8155
- { value: e.code, key: n },
8156
- t,
8157
- );
8158
- }),
8159
- ),
8160
- ),
8161
- );
7479
+ M.createElement(
7480
+ 'span',
7481
+ { className: 'title-text' },
7482
+ '事件配置',
7483
+ ),
7484
+ h
7485
+ ? M.createElement(se.RightOutlined, {
7486
+ className: 'close-operate-btn',
7487
+ })
7488
+ : M.createElement(se.DownOutlined, {
7489
+ className: 'close-operate-btn',
8162
7490
  }),
7491
+ E &&
7492
+ M.createElement(
7493
+ 'div',
7494
+ {
7495
+ className: 'display-source-btn',
7496
+ onClick: function (e) {
7497
+ t.setState({ jsonView: !y }),
7498
+ e.preventDefault(),
7499
+ e.stopPropagation();
7500
+ },
7501
+ },
7502
+ M.createElement(
7503
+ ee.Tooltip,
7504
+ { title: y ? '关闭源码模式' : '开启源码模式' },
7505
+ M.createElement(we, {
7506
+ className: y ? 'info-icon active' : 'info-icon',
7507
+ }),
7508
+ ),
8163
7509
  ),
8164
- S &&
8165
- S.length > 0 &&
8166
- V().createElement(
8167
- bt,
8168
- { header: '触发的事件', key: 'eventEmitConfig' },
8169
- S.map(function (t, n) {
8170
- var a = c + '-eventEmit-' + t.code,
8171
- o = t.desc || t.name;
8172
- return V().createElement(
8173
- 'div',
8174
- {
8175
- key: a,
8176
- className: 'object-content emit-event-content',
8177
- },
8178
- V().createElement(
8179
- 'div',
8180
- { className: 'title-text' },
8181
- '事件名称',
8182
- ),
8183
- V().createElement(
8184
- 'div',
8185
- { className: 'form-item-box' },
8186
- o,
8187
- ),
8188
- V().createElement(
8189
- 'div',
8190
- { className: 'title-text' },
8191
- '事件code',
8192
- ),
8193
- V().createElement(
8194
- 'div',
8195
- { className: 'content-item' },
8196
- V().createElement(
8197
- 'div',
8198
- { className: 'form-item-box' },
8199
- (0, Z.truncate)(t.code, { length: 30 }),
8200
- ),
8201
- ),
8202
- V().createElement(
8203
- 'div',
8204
- { className: 'title-text' },
8205
- '自定义名称',
8206
- ),
8207
- V().createElement(
8208
- 'div',
8209
- { className: 'content-item' },
8210
- V().createElement(
8211
- 'div',
8212
- { className: 'form-item-box' },
8213
- V().createElement(ee.Input, {
8214
- style: { display: 'inline-block' },
8215
- defaultValue: y[t.code] || o,
8216
- onPressEnter: function (n) {
8217
- return e.handleEventTitleChange(t.code, n);
8218
- },
8219
- onBlur: function (n) {
8220
- return e.handleEventTitleChange(t.code, n);
8221
- },
8222
- }),
8223
- ),
8224
- ),
8225
- );
8226
- }),
7510
+ ),
7511
+ M.createElement(
7512
+ 'div',
7513
+ {
7514
+ className:
7515
+ 'content-item object-content ' +
7516
+ (y ? 'json-view-array' : '') +
7517
+ ' ' +
7518
+ (h ? 'closed' : ''),
7519
+ },
7520
+ !y &&
7521
+ 'on' === v &&
7522
+ M.createElement(
7523
+ M.Fragment,
7524
+ null,
7525
+ S &&
7526
+ p({
7527
+ rendererType: 'input',
7528
+ parentType: m,
7529
+ jsonKey: 'register',
7530
+ indexRoute: c ? c + '-1' : '1',
7531
+ keyRoute: i ? i + '-register' : 'register',
7532
+ nodeKey: s + '-register',
7533
+ targetJsonSchema: S,
7534
+ }),
7535
+ _ &&
7536
+ p({
7537
+ rendererType: 'codearea',
7538
+ parentType: m,
7539
+ jsonKey: 'actionFunc',
7540
+ indexRoute: c ? c + '-2' : '2',
7541
+ keyRoute: i ? i + '-actionFunc' : 'actionFunc',
7542
+ nodeKey: s + '-actionFunc',
7543
+ targetJsonSchema: _,
7544
+ }),
8227
7545
  ),
8228
- 'page' === g &&
8229
- V().createElement(
8230
- bt,
8231
- { header: '事件列表', key: 'AllEmitEventList' },
8232
- V().createElement(ee.List, {
8233
- itemLayout: 'horizontal',
8234
- dataSource: f,
8235
- renderItem: function (e, t) {
8236
- return V().createElement(
8237
- ee.List.Item,
8238
- null,
8239
- V().createElement(ee.List.Item.Meta, {
8240
- title: y[e.code] || e.desc || e.name,
8241
- description: (0, Z.truncate)(e.code || e.desc, {
8242
- length: 30,
8243
- }),
8244
- key: c + '-page-AllEmitEventList-' + t,
8245
- }),
8246
- );
8247
- },
8248
- }),
7546
+ !y &&
7547
+ 'emit' === v &&
7548
+ M.createElement(
7549
+ M.Fragment,
7550
+ null,
7551
+ f &&
7552
+ p({
7553
+ rendererType: 'input',
7554
+ parentType: m,
7555
+ jsonKey: 'trigger',
7556
+ indexRoute: c ? c + '-1' : '1',
7557
+ keyRoute: i ? i + '-trigger' : 'trigger',
7558
+ nodeKey: s + '-trigger',
7559
+ targetJsonSchema: f,
7560
+ }),
7561
+ b &&
7562
+ p({
7563
+ rendererType: 'json',
7564
+ parentType: m,
7565
+ jsonKey: 'eventData',
7566
+ indexRoute: c ? c + '-2' : '2',
7567
+ keyRoute: i ? i + '-eventData' : 'eventData',
7568
+ nodeKey: s + '-eventData',
7569
+ targetJsonSchema: b,
7570
+ }),
8249
7571
  ),
7572
+ y && M.createElement(ye, this.props),
8250
7573
  ),
8251
- v &&
8252
- V().createElement(ee.Empty, {
8253
- description: '暂无事件相关数据',
8254
- }),
8255
- );
8256
- }),
8257
- t
8258
- );
8259
- })(V().PureComponent);
8260
- (Et.propTypes = {
8261
- isArrayItem: W().any,
7574
+ ),
7575
+ );
7576
+ }),
7577
+ t
7578
+ );
7579
+ })(M.PureComponent);
7580
+ (gt.propTypes = {
8262
7581
  parentType: W().string,
8263
7582
  jsonKey: W().string,
8264
- indexRoute: W().any,
7583
+ indexRoute: W().string,
8265
7584
  keyRoute: W().string,
8266
7585
  nodeKey: W().string,
8267
7586
  targetJsonSchema: W().any,
8268
- isStructuredSchema: W().bool,
8269
7587
  }),
8270
- (0, le.TS)({ type: 'sohu-event', component: Et });
8271
- var wt = function (e) {
7588
+ (0, le.TS)({ type: 'event', component: gt });
7589
+ var St = function (e) {
8272
7590
  (e.schemaStore || {}).getSchemaByKeyRoute;
8273
7591
  var t = e.jsonStore || {},
8274
7592
  n = t.getJSONDataByKeyRoute,
@@ -8297,7 +7615,7 @@
8297
7615
  nodeKey: m,
8298
7616
  key: m,
8299
7617
  renderChild: function (t) {
8300
- return wt(
7618
+ return St(
8301
7619
  ie()({}, t, {
8302
7620
  schemaStore: e.schemaStore,
8303
7621
  jsonStore: e.jsonStore,
@@ -8309,10 +7627,10 @@
8309
7627
  return V().createElement(y, d);
8310
7628
  }
8311
7629
  },
8312
- Ct = wt,
8313
- Ot = (__webpack_require__(8104), ee.Collapse.Panel),
8314
- xt = ee.Tabs.TabPane,
8315
- Nt = (function (e) {
7630
+ _t = St,
7631
+ ft = (__webpack_require__(8104), ee.Collapse.Panel),
7632
+ bt = ee.Tabs.TabPane,
7633
+ vt = (function (e) {
8316
7634
  function t(t) {
8317
7635
  var n;
8318
7636
  ((n = e.call(this, t) || this).catchViewStyle = function (e) {
@@ -8444,12 +7762,12 @@
8444
7762
  return p.propertyOrder &&
8445
7763
  p.propertyOrder.length > 0
8446
7764
  ? M.createElement(
8447
- Ot,
7765
+ ft,
8448
7766
  {
8449
7767
  header: p.title || e.renderHeader(m),
8450
7768
  key: t + '-' + o,
8451
7769
  },
8452
- Ct({
7770
+ _t({
8453
7771
  parentType: m,
8454
7772
  jsonKey: c,
8455
7773
  indexRoute: r,
@@ -8483,14 +7801,14 @@
8483
7801
  return p.propertyOrder &&
8484
7802
  p.propertyOrder.length > 0
8485
7803
  ? M.createElement(
8486
- xt,
7804
+ bt,
8487
7805
  {
8488
7806
  tab: p.title || e.renderHeader(m),
8489
7807
  key: t + '-' + o,
8490
7808
  closable: !1,
8491
7809
  className: 'tabs-schema-item',
8492
7810
  },
8493
- Ct({
7811
+ _t({
8494
7812
  parentType: m,
8495
7813
  jsonKey: c,
8496
7814
  indexRoute: r,
@@ -8510,7 +7828,7 @@
8510
7828
  M.createElement(
8511
7829
  M.Fragment,
8512
7830
  null,
8513
- Ct({
7831
+ _t({
8514
7832
  parentType: '',
8515
7833
  jsonKey: '',
8516
7834
  indexRoute: '',
@@ -8535,7 +7853,7 @@
8535
7853
  t
8536
7854
  );
8537
7855
  })(M.PureComponent);
8538
- Nt.propTypes = {
7856
+ vt.propTypes = {
8539
7857
  viewStyle: W().any,
8540
7858
  wideScreen: W().any,
8541
7859
  onChange: W().func,
@@ -8546,13 +7864,13 @@
8546
7864
  dynamicDataList: W().any,
8547
7865
  options: W().any,
8548
7866
  };
8549
- var Rt = (0, L.inject)(function (e) {
7867
+ var Et = (0, L.inject)(function (e) {
8550
7868
  return {
8551
7869
  schemaStore: e.JSONSchemaStore,
8552
7870
  jsonStore: e.JSONEditorStore,
8553
7871
  };
8554
- })((0, L.observer)(Nt));
8555
- function kt(e, t) {
7872
+ })((0, L.observer)(vt));
7873
+ function wt(e, t) {
8556
7874
  if (
8557
7875
  (window &&
8558
7876
  !window.JSONEditorCustomRenderers &&
@@ -8564,7 +7882,7 @@
8564
7882
  '[json-editor]:注册渲染器失败,存在重名渲染器(' + e + ')。',
8565
7883
  );
8566
7884
  }
8567
- function jt(e) {
7885
+ function Ct(e) {
8568
7886
  if (
8569
7887
  window &&
8570
7888
  window.JSONEditorCustomRenderers &&
@@ -8604,15 +7922,15 @@
8604
7922
  );
8605
7923
  else {
8606
7924
  console.info('[json-editor]: 响应动态注册渲染器事件:', t);
8607
- var n = jt(t);
7925
+ var n = Ct(t);
8608
7926
  (0, le.TS)({ type: t, component: n });
8609
7927
  }
8610
7928
  }
8611
7929
  },
8612
7930
  !1,
8613
7931
  );
8614
- var Dt = __webpack_require__(252),
8615
- Kt = (function (e) {
7932
+ var Ot = __webpack_require__(252),
7933
+ xt = (function (e) {
8616
7934
  function t(t) {
8617
7935
  var n;
8618
7936
  return (
@@ -8633,14 +7951,14 @@
8633
7951
  JSONSchemaStore: t.JSONSchemaStore,
8634
7952
  JSONEditorStore: t.JSONEditorStore,
8635
7953
  },
8636
- M.createElement(Rt, this.props),
7954
+ M.createElement(Et, this.props),
8637
7955
  );
8638
7956
  return e ? (I().render(n, e), '') : n;
8639
7957
  }),
8640
7958
  t
8641
7959
  );
8642
7960
  })(M.PureComponent);
8643
- Kt.propTypes = {
7961
+ xt.propTypes = {
8644
7962
  viewStyle: W().any,
8645
7963
  wideScreen: W().any,
8646
7964
  onChange: W().func,