@wibetter/json-schema-editor 5.0.16 → 5.0.21

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
@@ -86,8 +86,8 @@
86
86
  l = !1,
87
87
  p = function () {},
88
88
  d = null,
89
- u = 'data-vue-ssr-id',
90
- m =
89
+ m = 'data-vue-ssr-id',
90
+ u =
91
91
  'undefined' != typeof navigator &&
92
92
  /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
93
93
  function h(e, t, n, o) {
@@ -138,12 +138,12 @@
138
138
  function f(e) {
139
139
  var t,
140
140
  n,
141
- a = document.querySelector('style[' + u + '~="' + e.id + '"]');
141
+ a = document.querySelector('style[' + m + '~="' + e.id + '"]');
142
142
  if (a) {
143
143
  if (l) return p;
144
144
  a.parentNode.removeChild(a);
145
145
  }
146
- if (m) {
146
+ if (u) {
147
147
  var o = c++;
148
148
  (a = s || (s = g())),
149
149
  (t = b.bind(null, a, o, !1)),
@@ -191,7 +191,7 @@
191
191
  o = t.sourceMap;
192
192
  if (
193
193
  (a && e.setAttribute('media', a),
194
- d.ssrId && e.setAttribute(u, t.id),
194
+ d.ssrId && e.setAttribute(m, t.id),
195
195
  o &&
196
196
  ((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
197
197
  (n +=
@@ -248,7 +248,7 @@
248
248
  n.r(a),
249
249
  n.d(a, {
250
250
  default: function () {
251
- return ct;
251
+ return pt;
252
252
  },
253
253
  });
254
254
  var e,
@@ -261,8 +261,8 @@
261
261
  l = require('mobx-react'),
262
262
  p = require('prop-types'),
263
263
  d = n.n(p),
264
- u = require('@babel/runtime/helpers/extends'),
265
- m = n.n(u),
264
+ m = require('@babel/runtime/helpers/extends'),
265
+ u = n.n(m),
266
266
  h = require('@babel/runtime/helpers/initializerDefineProperty'),
267
267
  y = n.n(h),
268
268
  g = require('@babel/runtime/helpers/createClass'),
@@ -283,10 +283,10 @@
283
283
  function C(e, t) {
284
284
  window.sessionStorage && window.sessionStorage.setItem(e, t);
285
285
  }
286
- var j,
287
- N,
288
- I,
286
+ var N,
287
+ j,
289
288
  w,
289
+ I,
290
290
  R,
291
291
  K,
292
292
  k,
@@ -303,12 +303,12 @@
303
303
  _,
304
304
  M,
305
305
  W,
306
- G,
307
306
  z,
307
+ G,
308
308
  U,
309
309
  H,
310
- Q,
311
310
  X,
311
+ Q,
312
312
  Y,
313
313
  Z,
314
314
  $,
@@ -324,8 +324,8 @@
324
324
  le,
325
325
  pe,
326
326
  de,
327
- ue,
328
327
  me,
328
+ ue,
329
329
  he,
330
330
  ye,
331
331
  ge,
@@ -338,6 +338,7 @@
338
338
  'textarea',
339
339
  'radio',
340
340
  'select',
341
+ 'cascader',
341
342
  'checkboxes',
342
343
  'date',
343
344
  'date-time',
@@ -371,6 +372,7 @@
371
372
  'input',
372
373
  'number',
373
374
  'select',
375
+ 'cascader',
374
376
  'color',
375
377
  'url',
376
378
  'date',
@@ -385,13 +387,13 @@
385
387
  e),
386
388
  Oe = require('@wibetter/json-utils'),
387
389
  Ce = Oe.TypeDataList.jsonschema,
388
- je = Oe.TypeDataList.input,
389
- Ne = {
390
+ Ne = Oe.TypeDataList.input,
391
+ je = {
390
392
  schemaStore:
391
- ((j = b.action.bound),
392
- (N = b.action.bound),
393
- (I = b.action.bound),
393
+ ((N = b.action.bound),
394
+ (j = b.action.bound),
394
395
  (w = b.action.bound),
396
+ (I = b.action.bound),
395
397
  (R = b.action.bound),
396
398
  (K = b.action.bound),
397
399
  (k = b.action.bound),
@@ -408,12 +410,12 @@
408
410
  (_ = b.action.bound),
409
411
  (M = b.action.bound),
410
412
  (W = b.action.bound),
411
- (G = b.action.bound),
412
413
  (z = b.action.bound),
414
+ (G = b.action.bound),
413
415
  (U = b.action.bound),
414
416
  (H = b.action.bound),
415
- (Q = b.action.bound),
416
417
  (X = b.action.bound),
418
+ (Q = b.action.bound),
417
419
  (Y = b.action.bound),
418
420
  (Z = b.action.bound),
419
421
  ($ = b.action.bound),
@@ -431,8 +433,8 @@
431
433
  (de = (function () {
432
434
  function e() {
433
435
  (this.curJsonKeyIndex = 1),
434
- y()(this, 'triggerChange', ue, this),
435
- y()(this, 'jsonSchema', me, this),
436
+ y()(this, 'triggerChange', me, this),
437
+ y()(this, 'jsonSchema', ue, this),
436
438
  y()(this, 'SchemaTypeList', he, this),
437
439
  y()(this, 'onChange', ye, this),
438
440
  y()(this, 'childElemSort', ge, this);
@@ -535,7 +537,7 @@
535
537
  if ((0, Oe.isContainerSchema)(n)) {
536
538
  var a = this.getNewJsonKeyIndex(n);
537
539
  n.propertyOrder.push(a),
538
- (n.properties[a] = je),
540
+ (n.properties[a] = Ne),
539
541
  this.jsonSchemaChange(t);
540
542
  } else S.message.warning('非对象类型字段不允许插入子元素');
541
543
  }),
@@ -554,7 +556,7 @@
554
556
  (t.editSchemaData = function (e, t, n, a) {
555
557
  var o = (0, Oe.getParentIndexRoute)(e),
556
558
  r = (0, Oe.getSchemaByIndexRoute)(o, this.jsonSchema);
557
- (r.properties[t] = m()({}, E(r.properties[t]), n)),
559
+ (r.properties[t] = u()({}, E(r.properties[t]), n)),
558
560
  this.jsonSchemaChange(a);
559
561
  }),
560
562
  (t.editJsonKey = function (e, t, n) {
@@ -571,7 +573,7 @@
571
573
  var t = (0, Oe.getParentIndexRoute)(e),
572
574
  n = (0, Oe.getSchemaByIndexRoute)(t, this.jsonSchema),
573
575
  a = this.getNewJsonKeyIndex(n);
574
- this.insertJsonData(e, a, je);
576
+ this.insertJsonData(e, a, Ne);
575
577
  }),
576
578
  (t.insertJsonData = function (e, t, n, a, o) {
577
579
  var r = (0, Oe.getParentIndexRoute_CurIndex)(e),
@@ -582,8 +584,8 @@
582
584
  var l = c.propertyOrder,
583
585
  p = 'before' === a ? Number(s) : Number(s) + 1,
584
586
  d = l.slice(0, p),
585
- u = l.slice(p);
586
- (c.propertyOrder = [].concat(d, [t], u)),
587
+ m = l.slice(p);
588
+ (c.propertyOrder = [].concat(d, [t], m)),
587
589
  this.jsonSchemaChange(o);
588
590
  }),
589
591
  (t.deleteJsonByIndex_CurKey = function (e, t, n) {
@@ -766,7 +768,7 @@
766
768
  ])
767
769
  );
768
770
  })()),
769
- (ue = x()(de.prototype, 'triggerChange', [b.observable], {
771
+ (me = x()(de.prototype, 'triggerChange', [b.observable], {
770
772
  configurable: !0,
771
773
  enumerable: !0,
772
774
  writable: !0,
@@ -774,7 +776,7 @@
774
776
  return !1;
775
777
  },
776
778
  })),
777
- (me = x()(de.prototype, 'jsonSchema', [b.observable], {
779
+ (ue = x()(de.prototype, 'jsonSchema', [b.observable], {
778
780
  configurable: !0,
779
781
  enumerable: !0,
780
782
  writable: !0,
@@ -801,7 +803,7 @@
801
803
  x()(
802
804
  de.prototype,
803
805
  'triggerChangeAction',
804
- [j],
806
+ [N],
805
807
  Object.getOwnPropertyDescriptor(
806
808
  de.prototype,
807
809
  'triggerChangeAction',
@@ -811,7 +813,7 @@
811
813
  x()(
812
814
  de.prototype,
813
815
  'initSchemaTypeList',
814
- [N],
816
+ [j],
815
817
  Object.getOwnPropertyDescriptor(
816
818
  de.prototype,
817
819
  'initSchemaTypeList',
@@ -821,7 +823,7 @@
821
823
  x()(
822
824
  de.prototype,
823
825
  'initJSONSchemaData',
824
- [I],
826
+ [w],
825
827
  Object.getOwnPropertyDescriptor(
826
828
  de.prototype,
827
829
  'initJSONSchemaData',
@@ -838,7 +840,7 @@
838
840
  x()(
839
841
  de.prototype,
840
842
  'initOnChange',
841
- [w],
843
+ [I],
842
844
  Object.getOwnPropertyDescriptor(de.prototype, 'initOnChange'),
843
845
  de.prototype,
844
846
  ),
@@ -987,7 +989,7 @@
987
989
  x()(
988
990
  de.prototype,
989
991
  'deleteJsonByIndex',
990
- [G],
992
+ [z],
991
993
  Object.getOwnPropertyDescriptor(
992
994
  de.prototype,
993
995
  'deleteJsonByIndex',
@@ -997,7 +999,7 @@
997
999
  x()(
998
1000
  de.prototype,
999
1001
  'updateEnumItem',
1000
- [z],
1002
+ [G],
1001
1003
  Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumItem'),
1002
1004
  de.prototype,
1003
1005
  ),
@@ -1018,14 +1020,14 @@
1018
1020
  x()(
1019
1021
  de.prototype,
1020
1022
  'updateEnumText',
1021
- [Q],
1023
+ [X],
1022
1024
  Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumText'),
1023
1025
  de.prototype,
1024
1026
  ),
1025
1027
  x()(
1026
1028
  de.prototype,
1027
1029
  'deleteEnumItem',
1028
- [X],
1030
+ [Q],
1029
1031
  Object.getOwnPropertyDescriptor(de.prototype, 'deleteEnumItem'),
1030
1032
  de.prototype,
1031
1033
  ),
@@ -1159,12 +1161,12 @@
1159
1161
  l = [],
1160
1162
  p = [],
1161
1163
  d = [],
1162
- u = 0,
1163
- m = a.length;
1164
- u < m;
1165
- u++
1164
+ m = 0,
1165
+ u = a.length;
1166
+ m < u;
1167
+ m++
1166
1168
  ) {
1167
- var h = a[u];
1169
+ var h = a[m];
1168
1170
  switch (n.properties[h].type) {
1169
1171
  case 'input':
1170
1172
  case 'url':
@@ -1209,10 +1211,15 @@
1209
1211
  })),
1210
1212
  de),
1211
1213
  },
1212
- Ie = require('@ant-design/icons');
1213
- n(975);
1214
- var we = S.Input.TextArea,
1215
- Re =
1214
+ we = require('@ant-design/icons'),
1215
+ Ie = require('react-ace'),
1216
+ Re = n.n(Ie),
1217
+ Ke =
1218
+ (require('ace-builds/src-noconflict/mode-json'),
1219
+ require('ace-builds/src-noconflict/theme-solarized_light'),
1220
+ n(975),
1221
+ S.Input.TextArea),
1222
+ ke =
1216
1223
  (S.Select.Option,
1217
1224
  (function (e) {
1218
1225
  function t(t) {
@@ -1304,7 +1311,7 @@
1304
1311
  'codearea' === e ||
1305
1312
  'htmlarea' === e ||
1306
1313
  'json' === e
1307
- ? r.createElement(we, {
1314
+ ? r.createElement(Ke, {
1308
1315
  style: { display: 'inline-block' },
1309
1316
  rows: 4,
1310
1317
  placeholder: '请输入' + t.title + '的默认值',
@@ -1341,6 +1348,11 @@
1341
1348
  },
1342
1349
  });
1343
1350
  }),
1351
+ (n.state = {
1352
+ isShowWarn: !1,
1353
+ warnText: '',
1354
+ curJSONDataTemp: void 0,
1355
+ }),
1344
1356
  (n.handleValueChange = n.handleValueChange.bind(n)),
1345
1357
  n
1346
1358
  );
@@ -1355,8 +1367,12 @@
1355
1367
  o = a.nodeKey,
1356
1368
  i = a.indexRoute,
1357
1369
  s = a.targetJsonSchema,
1358
- c = s.type,
1359
- l = (n(i), s.isConditionProp);
1370
+ c = this.state,
1371
+ l = c.isShowWarn,
1372
+ p = c.warnText,
1373
+ d = c.curJSONDataTemp,
1374
+ m = s.type,
1375
+ u = (n(i), s.isConditionProp);
1360
1376
  return r.createElement(
1361
1377
  'div',
1362
1378
  { className: 'advance-config-model' },
@@ -1376,7 +1392,7 @@
1376
1392
  'input-image',
1377
1393
  ].indexOf(e) > -1
1378
1394
  );
1379
- })(c) &&
1395
+ })(m) &&
1380
1396
  r.createElement(
1381
1397
  'div',
1382
1398
  {
@@ -1411,7 +1427,7 @@
1411
1427
  },
1412
1428
  r.createElement(S.Switch, {
1413
1429
  style: { display: 'inline-block' },
1414
- defaultChecked: l,
1430
+ defaultChecked: u,
1415
1431
  checkedChildren: '是',
1416
1432
  unCheckedChildren: '否',
1417
1433
  onChange: function (e) {
@@ -1421,7 +1437,7 @@
1421
1437
  ),
1422
1438
  ),
1423
1439
  ),
1424
- 'select' === c &&
1440
+ ('select' === m || 'cascader' === m) &&
1425
1441
  r.createElement(
1426
1442
  'div',
1427
1443
  {
@@ -1478,7 +1494,7 @@
1478
1494
  ])
1479
1495
  .indexOf(e) > -1
1480
1496
  );
1481
- })(c) &&
1497
+ })(m) &&
1482
1498
  r.createElement(
1483
1499
  'div',
1484
1500
  {
@@ -1532,7 +1548,7 @@
1532
1548
  ])
1533
1549
  .indexOf(e) > -1
1534
1550
  );
1535
- })(c) &&
1551
+ })(m) &&
1536
1552
  r.createElement(
1537
1553
  'div',
1538
1554
  {
@@ -1580,7 +1596,7 @@
1580
1596
  .concat(fe, ['json', 'codearea', 'htmlarea'])
1581
1597
  .indexOf(e) > -1
1582
1598
  );
1583
- })(c) &&
1599
+ })(m) &&
1584
1600
  r.createElement(
1585
1601
  'div',
1586
1602
  {
@@ -1606,10 +1622,92 @@
1606
1622
  r.createElement(
1607
1623
  'div',
1608
1624
  { className: 'form-item-box' },
1609
- this.renderDefaultContent(c, s, o),
1625
+ this.renderDefaultContent(m, s, o),
1610
1626
  ),
1611
1627
  ),
1612
1628
  ),
1629
+ 'cascader' === m &&
1630
+ r.createElement(
1631
+ 'div',
1632
+ {
1633
+ className: 'wide-screen-element-warp',
1634
+ key: o + '-cascader-options',
1635
+ },
1636
+ r.createElement(
1637
+ 'div',
1638
+ { className: 'element-title' },
1639
+ r.createElement(
1640
+ S.Tooltip,
1641
+ {
1642
+ title: '用于添加 级联选择 组件的 options 数据。',
1643
+ placement: 'top',
1644
+ },
1645
+ r.createElement(
1646
+ 'span',
1647
+ { className: 'title-text' },
1648
+ 'options 配置',
1649
+ ),
1650
+ ),
1651
+ ),
1652
+ r.createElement(
1653
+ 'div',
1654
+ { className: 'content-item' },
1655
+ l &&
1656
+ r.createElement(
1657
+ 'div',
1658
+ { className: 'warning-box code-area-item' },
1659
+ r.createElement(
1660
+ 'div',
1661
+ { className: 'warning-img' },
1662
+ 'X',
1663
+ ),
1664
+ r.createElement(
1665
+ 'div',
1666
+ { className: 'warning-text' },
1667
+ p,
1668
+ ),
1669
+ ),
1670
+ r.createElement(Re(), {
1671
+ id: o + '-json_area_ace',
1672
+ value: (0, Oe.hasProperties)(d)
1673
+ ? d
1674
+ : JSON.stringify(s.options, null, 2),
1675
+ className: 'json-view-ace',
1676
+ mode: 'json',
1677
+ theme: 'solarized_light',
1678
+ name: 'JSON_CODE_EDIT',
1679
+ fontSize: 14,
1680
+ showPrintMargin: !0,
1681
+ showGutter: !0,
1682
+ highlightActiveLine: !0,
1683
+ readOnly: !1,
1684
+ minLines: 3,
1685
+ maxLines: 6,
1686
+ width: '100%',
1687
+ onChange: function (e) {
1688
+ try {
1689
+ var n = JSON.parse(e);
1690
+ t.handleValueChange('options', n),
1691
+ t.setState({
1692
+ isShowWarn: !1,
1693
+ curJSONDataTemp: void 0,
1694
+ });
1695
+ } catch (n) {
1696
+ t.setState({
1697
+ curJSONDataTemp: e,
1698
+ warnText: n.message,
1699
+ isShowWarn: !0,
1700
+ });
1701
+ }
1702
+ },
1703
+ setOptions: {
1704
+ useWorker: !1,
1705
+ showLineNumbers: !0,
1706
+ tabSize: 2,
1707
+ },
1708
+ }),
1709
+ ),
1710
+ ),
1613
1711
  r.createElement(
1614
1712
  'div',
1615
1713
  {
@@ -1711,7 +1809,7 @@
1711
1809
  'htmlarea',
1712
1810
  ].indexOf(e) > -1
1713
1811
  );
1714
- })(c) &&
1812
+ })(m) &&
1715
1813
  r.createElement(
1716
1814
  'div',
1717
1815
  {
@@ -1759,7 +1857,7 @@
1759
1857
  ),
1760
1858
  (function (e) {
1761
1859
  return [].concat(ve, ['array']).indexOf(e) > -1;
1762
- })(c) &&
1860
+ })(m) &&
1763
1861
  r.createElement(
1764
1862
  'div',
1765
1863
  {
@@ -1802,7 +1900,7 @@
1802
1900
  ),
1803
1901
  ),
1804
1902
  ),
1805
- 'number' === (0, Oe.getExpectType)(c) &&
1903
+ 'number' === (0, Oe.getExpectType)(m) &&
1806
1904
  r.createElement(
1807
1905
  r.Fragment,
1808
1906
  null,
@@ -1895,7 +1993,7 @@
1895
1993
  ),
1896
1994
  ),
1897
1995
  ),
1898
- 'array' === (0, Oe.getExpectType)(c) &&
1996
+ 'array' === (0, Oe.getExpectType)(m) &&
1899
1997
  r.createElement(
1900
1998
  r.Fragment,
1901
1999
  null,
@@ -2026,17 +2124,17 @@
2026
2124
  t
2027
2125
  );
2028
2126
  })(r.PureComponent));
2029
- Re.propTypes = {
2127
+ ke.propTypes = {
2030
2128
  jsonKey: d().string,
2031
2129
  indexRoute: d().string,
2032
2130
  nodeKey: d().string,
2033
2131
  targetJsonSchema: d().any,
2034
2132
  };
2035
- var Ke = (0, l.inject)(function (e) {
2133
+ var Te = (0, l.inject)(function (e) {
2036
2134
  return { schemaStore: e.schemaStore };
2037
- })((0, l.observer)(Re)),
2038
- ke = (n(915), S.Select.Option),
2039
- Te = (function (e) {
2135
+ })((0, l.observer)(ke)),
2136
+ Je = (n(915), S.Select.Option),
2137
+ De = (function (e) {
2040
2138
  function t(t) {
2041
2139
  var n;
2042
2140
  return (
@@ -2095,9 +2193,9 @@
2095
2193
  l = r.getNewJsonKeyIndex,
2096
2194
  p = E(a),
2097
2195
  d = (0, Oe.getParentIndexRoute)(t),
2098
- u = l(i(d), o),
2099
- m = a.type;
2100
- C(s(d) + '-' + u + '-' + m, s(t)), c(t, u, p);
2196
+ m = l(i(d), o),
2197
+ u = a.type;
2198
+ C(s(d) + '-' + m + '-' + u, s(t)), c(t, m, p);
2101
2199
  }),
2102
2200
  (n.onDeleteBtnEvent = function () {
2103
2201
  var e = n.props,
@@ -2140,14 +2238,14 @@
2140
2238
  l = a.targetJsonSchema,
2141
2239
  p = this.state.showAdvanceConfig,
2142
2240
  d = i ? (0, Oe.getParentIndexRoute)(i) : '',
2143
- u = d ? n(d) : {},
2144
- m = null == (e = u && u.isContainer) || e,
2241
+ m = d ? n(d) : {},
2242
+ u = null == (e = m && m.isContainer) || e,
2145
2243
  h = l.isFixed || this.props.isFixed || !1,
2146
2244
  y =
2147
2245
  (this.props.readOnly || l.readOnly,
2148
2246
  void 0 !== this.props.keyIsFixed
2149
2247
  ? this.props.keyIsFixed
2150
- : !m || h),
2248
+ : !u || h),
2151
2249
  g =
2152
2250
  void 0 !== this.props.typeIsFixed
2153
2251
  ? this.props.typeIsFixed
@@ -2156,7 +2254,7 @@
2156
2254
  void 0 !== this.props.titleIsFixed
2157
2255
  ? this.props.titleIsFixed
2158
2256
  : h,
2159
- v = this.props.hideOperaBtn || !m,
2257
+ v = this.props.hideOperaBtn || !u,
2160
2258
  x = !!v && this.props.showAdvanceBtn,
2161
2259
  b = this.getCurrentTypeList(o),
2162
2260
  E = l.type,
@@ -2199,7 +2297,7 @@
2199
2297
  disabled: g,
2200
2298
  },
2201
2299
  b.map(function (e) {
2202
- return r.createElement(ke, { key: e, value: e }, e);
2300
+ return r.createElement(Je, { key: e, value: e }, e);
2203
2301
  }),
2204
2302
  ),
2205
2303
  ),
@@ -2225,7 +2323,7 @@
2225
2323
  r.createElement(
2226
2324
  S.Tooltip,
2227
2325
  { title: '删除' },
2228
- r.createElement(Ie.CloseOutlined, {
2326
+ r.createElement(we.CloseOutlined, {
2229
2327
  className: 'operate-btn delete-operate',
2230
2328
  onClick: this.onDeleteBtnEvent,
2231
2329
  }),
@@ -2233,7 +2331,7 @@
2233
2331
  r.createElement(
2234
2332
  S.Tooltip,
2235
2333
  { title: O ? '新增子元素' : '新增同级元素' },
2236
- r.createElement(Ie.PlusOutlined, {
2334
+ r.createElement(we.PlusOutlined, {
2237
2335
  className: 'operate-btn',
2238
2336
  onClick: this.onAddBtnEvent,
2239
2337
  }),
@@ -2242,7 +2340,7 @@
2242
2340
  r.createElement(
2243
2341
  S.Tooltip,
2244
2342
  { title: '数据项排序' },
2245
- r.createElement(Ie.SortAscendingOutlined, {
2343
+ r.createElement(we.SortAscendingOutlined, {
2246
2344
  className: 'operate-btn',
2247
2345
  onClick: this.childElemSort,
2248
2346
  }),
@@ -2254,7 +2352,7 @@
2254
2352
  r.createElement(
2255
2353
  S.Tooltip,
2256
2354
  { title: '复制' },
2257
- r.createElement(Ie.CopyOutlined, {
2355
+ r.createElement(we.CopyOutlined, {
2258
2356
  className: 'operate-btn',
2259
2357
  onClick: this.onCopyBtnEvent,
2260
2358
  }),
@@ -2262,7 +2360,7 @@
2262
2360
  r.createElement(
2263
2361
  S.Tooltip,
2264
2362
  { title: '高级设置' },
2265
- r.createElement(Ie.SettingOutlined, {
2363
+ r.createElement(we.SettingOutlined, {
2266
2364
  className: 'operate-btn',
2267
2365
  onClick: function () {
2268
2366
  t.setState({ showAdvanceConfig: !0 });
@@ -2272,7 +2370,7 @@
2272
2370
  r.createElement(
2273
2371
  S.Tooltip,
2274
2372
  { title: '按住进行拖拽' },
2275
- r.createElement(Ie.DragOutlined, {
2373
+ r.createElement(we.DragOutlined, {
2276
2374
  className: 'operate-btn drag-btn',
2277
2375
  }),
2278
2376
  ),
@@ -2285,7 +2383,7 @@
2285
2383
  r.createElement(
2286
2384
  S.Tooltip,
2287
2385
  { title: '高级设置' },
2288
- r.createElement(Ie.SettingOutlined, {
2386
+ r.createElement(we.SettingOutlined, {
2289
2387
  className: 'operate-btn',
2290
2388
  onClick: function () {
2291
2389
  t.setState({ showAdvanceConfig: !0 });
@@ -2317,7 +2415,7 @@
2317
2415
  ),
2318
2416
  ],
2319
2417
  },
2320
- r.createElement(Ke, {
2418
+ r.createElement(Te, {
2321
2419
  indexRoute: i,
2322
2420
  jsonKey: s,
2323
2421
  targetJsonSchema: l,
@@ -2340,7 +2438,7 @@
2340
2438
  t
2341
2439
  );
2342
2440
  })(r.PureComponent);
2343
- Te.propTypes = {
2441
+ De.propTypes = {
2344
2442
  parentType: d().string,
2345
2443
  jsonKey: d().string,
2346
2444
  indexRoute: d().string,
@@ -2353,14 +2451,14 @@
2353
2451
  typeIsFixed: d().bool,
2354
2452
  titleIsFixed: d().bool,
2355
2453
  };
2356
- var Je = (0, l.inject)(function (e) {
2454
+ var Be = (0, l.inject)(function (e) {
2357
2455
  return { schemaStore: e.schemaStore };
2358
- })((0, l.observer)(Te)),
2359
- De = S.Tree.TreeNode,
2360
- Be = function (e) {
2361
- return i().createElement(Je, e);
2456
+ })((0, l.observer)(De)),
2457
+ Pe = S.Tree.TreeNode,
2458
+ Ve = function (e) {
2459
+ return i().createElement(Be, e);
2362
2460
  },
2363
- Pe = function (e) {
2461
+ Le = function (e) {
2364
2462
  var t = e.jsonKey,
2365
2463
  n = e.indexRoute,
2366
2464
  a = e.nodeKey,
@@ -2371,14 +2469,14 @@
2371
2469
  l = a ? a + '-' + c : c,
2372
2470
  p = o[c] || {};
2373
2471
  return i().createElement(
2374
- De,
2472
+ Pe,
2375
2473
  {
2376
2474
  className: r + '-schema schema-item-form',
2377
2475
  id: a,
2378
2476
  key: a,
2379
2477
  indexRoute: n,
2380
2478
  jsonKey: t,
2381
- title: Be(m()({}, e)),
2479
+ title: Ve(u()({}, e)),
2382
2480
  },
2383
2481
  (function (e) {
2384
2482
  var t = e.parentType,
@@ -2387,7 +2485,7 @@
2387
2485
  o = e.nodeKey,
2388
2486
  r = e.targetJsonSchema;
2389
2487
  return i().createElement(
2390
- De,
2488
+ Pe,
2391
2489
  {
2392
2490
  className: 'array-item-schema schema-item-form',
2393
2491
  id: o,
@@ -2395,7 +2493,7 @@
2395
2493
  indexRoute: a,
2396
2494
  jsonKey: n,
2397
2495
  disabled: !0,
2398
- title: Be({
2496
+ title: Ve({
2399
2497
  indexRoute: a,
2400
2498
  jsonKey: n,
2401
2499
  targetJsonSchema: r,
@@ -2417,7 +2515,7 @@
2417
2515
  c = t[s],
2418
2516
  l = c.type,
2419
2517
  p = (a ? a + '-' : '') + l + '-' + s;
2420
- return nt({
2518
+ return ot({
2421
2519
  parentType: o,
2422
2520
  jsonKey: s,
2423
2521
  indexRoute: i,
@@ -2443,8 +2541,8 @@
2443
2541
  }),
2444
2542
  );
2445
2543
  },
2446
- Ve = (n(790), S.Select.Option),
2447
- Le = (function (e) {
2544
+ Fe = (n(790), S.Select.Option),
2545
+ qe = (function (e) {
2448
2546
  function t(t) {
2449
2547
  var n;
2450
2548
  return (
@@ -2498,7 +2596,7 @@
2498
2596
  },
2499
2597
  o.map(function (e, t) {
2500
2598
  return r.createElement(
2501
- Ve,
2599
+ Fe,
2502
2600
  { key: t, value: e.value },
2503
2601
  e.label || e.name,
2504
2602
  );
@@ -2511,7 +2609,7 @@
2511
2609
  r.createElement(
2512
2610
  S.Select,
2513
2611
  { defaultValue: a, style: { width: 120 }, disabled: !0 },
2514
- r.createElement(Ve, { key: a, value: a }, a),
2612
+ r.createElement(Fe, { key: a, value: a }, a),
2515
2613
  ),
2516
2614
  ),
2517
2615
  r.createElement(
@@ -2528,7 +2626,7 @@
2528
2626
  t
2529
2627
  );
2530
2628
  })(r.PureComponent);
2531
- Le.propTypes = {
2629
+ qe.propTypes = {
2532
2630
  parentType: d().string,
2533
2631
  jsonKey: d().string,
2534
2632
  indexRoute: d().string,
@@ -2537,14 +2635,14 @@
2537
2635
  typeSelectData: d().any,
2538
2636
  isFixed: d().any,
2539
2637
  };
2540
- var Fe = (0, l.inject)(function (e) {
2638
+ var Ae = (0, l.inject)(function (e) {
2541
2639
  return { schemaStore: e.schemaStore };
2542
- })((0, l.observer)(Le)),
2543
- qe = S.Tree.TreeNode,
2544
- Ae = function (e) {
2545
- return i().createElement(Je, e);
2640
+ })((0, l.observer)(qe)),
2641
+ _e = S.Tree.TreeNode,
2642
+ Me = function (e) {
2643
+ return i().createElement(Be, e);
2546
2644
  },
2547
- _e = {
2645
+ We = {
2548
2646
  local: {
2549
2647
  type: 'json',
2550
2648
  title: '本地json数据',
@@ -2562,20 +2660,20 @@
2562
2660
  description: '用于设置获取元素数据的请求地址',
2563
2661
  },
2564
2662
  },
2565
- Me = S.Tree.TreeNode,
2566
- We = function (e) {
2567
- return i().createElement(Je, e);
2568
- },
2569
- Ge = S.Tree.TreeNode,
2570
- ze = function (e) {
2571
- return i().createElement(Je, e);
2663
+ ze = S.Tree.TreeNode,
2664
+ Ge = function (e) {
2665
+ return i().createElement(Be, e);
2572
2666
  },
2573
2667
  Ue = S.Tree.TreeNode,
2574
2668
  He = function (e) {
2575
- return i().createElement(Je, e);
2669
+ return i().createElement(Be, e);
2670
+ },
2671
+ Xe = S.Tree.TreeNode,
2672
+ Qe = function (e) {
2673
+ return i().createElement(Be, e);
2576
2674
  },
2577
- Qe = (n(617), S.Select.Option),
2578
- Xe = (function (e) {
2675
+ Ye = (n(617), S.Select.Option),
2676
+ Ze = (function (e) {
2579
2677
  function t(t) {
2580
2678
  var n;
2581
2679
  return (
@@ -2661,7 +2759,7 @@
2661
2759
  S.Select,
2662
2760
  { defaultValue: 'string', style: { width: 120 } },
2663
2761
  r.createElement(
2664
- Qe,
2762
+ Ye,
2665
2763
  { key: 'string', value: 'string' },
2666
2764
  'string',
2667
2765
  ),
@@ -2682,7 +2780,7 @@
2682
2780
  r.createElement(
2683
2781
  S.Tooltip,
2684
2782
  { title: '删除' },
2685
- r.createElement(Ie.CloseOutlined, {
2783
+ r.createElement(we.CloseOutlined, {
2686
2784
  className: 'operate-btn delete-operate',
2687
2785
  onClick: this.onDeleteBtnEvent,
2688
2786
  }),
@@ -2690,7 +2788,7 @@
2690
2788
  r.createElement(
2691
2789
  S.Tooltip,
2692
2790
  { title: '新增可选项' },
2693
- r.createElement(Ie.PlusOutlined, {
2791
+ r.createElement(we.PlusOutlined, {
2694
2792
  className: 'operate-btn',
2695
2793
  onClick: this.onAddBtnEvent,
2696
2794
  }),
@@ -2698,7 +2796,7 @@
2698
2796
  r.createElement(
2699
2797
  S.Tooltip,
2700
2798
  { title: '复制' },
2701
- r.createElement(Ie.CopyOutlined, {
2799
+ r.createElement(we.CopyOutlined, {
2702
2800
  className: 'operate-btn',
2703
2801
  onClick: this.onCopyBtnEvent,
2704
2802
  }),
@@ -2710,25 +2808,25 @@
2710
2808
  t
2711
2809
  );
2712
2810
  })(r.PureComponent);
2713
- Xe.propTypes = {
2811
+ Ze.propTypes = {
2714
2812
  indexRoute: d().string,
2715
2813
  optionIndex: d().any,
2716
2814
  optionLabel: d().string,
2717
2815
  optionValue: d().string,
2718
2816
  optionNodeKey: d().string,
2719
2817
  };
2720
- var Ye = (0, l.inject)(function (e) {
2818
+ var $e = (0, l.inject)(function (e) {
2721
2819
  return { schemaStore: e.schemaStore };
2722
- })((0, l.observer)(Xe)),
2723
- Ze = S.Tree.TreeNode,
2724
- $e = function (e) {
2725
- return i().createElement(Ye, e);
2726
- },
2820
+ })((0, l.observer)(Ze)),
2727
2821
  et = S.Tree.TreeNode,
2728
2822
  tt = function (e) {
2729
- return i().createElement(Je, e);
2823
+ return i().createElement($e, e);
2824
+ },
2825
+ nt = S.Tree.TreeNode,
2826
+ at = function (e) {
2827
+ return i().createElement(Be, e);
2730
2828
  },
2731
- nt = function (e) {
2829
+ ot = function (e) {
2732
2830
  switch (e.targetJsonSchema.type) {
2733
2831
  case 'object':
2734
2832
  case 'func':
@@ -2737,9 +2835,9 @@
2737
2835
  case 'dynamic-config':
2738
2836
  case 'sohu-source':
2739
2837
  case 'sohu-event':
2740
- return rt(e);
2838
+ return st(e);
2741
2839
  case 'array':
2742
- return Pe(e);
2840
+ return Le(e);
2743
2841
  case 'datasource':
2744
2842
  return (function (e) {
2745
2843
  var t,
@@ -2750,16 +2848,16 @@
2750
2848
  s = r.type,
2751
2849
  c = r.properties.data || {};
2752
2850
  return i().createElement(
2753
- qe,
2851
+ _e,
2754
2852
  {
2755
2853
  className: s + '-schema schema-item-form',
2756
2854
  id: o,
2757
2855
  key: o,
2758
2856
  indexRoute: a,
2759
2857
  jsonKey: n,
2760
- title: Ae(m()({}, e)),
2858
+ title: Me(u()({}, e)),
2761
2859
  },
2762
- i().createElement(qe, {
2860
+ i().createElement(_e, {
2763
2861
  className: 'dataSource-type-item-schema schema-item-form',
2764
2862
  id: o + '-type',
2765
2863
  key: o + '-type',
@@ -2773,18 +2871,18 @@
2773
2871
  targetJsonSchema: r.properties.type,
2774
2872
  parentType: s,
2775
2873
  nodeKey: o + '-type',
2776
- typeSelectData: _e,
2874
+ typeSelectData: We,
2777
2875
  }),
2778
- i().createElement(Fe, t)),
2876
+ i().createElement(Ae, t)),
2779
2877
  }),
2780
- i().createElement(qe, {
2878
+ i().createElement(_e, {
2781
2879
  className: 'dataSource-data-item-schema schema-item-form',
2782
2880
  id: o + '-data-' + c.type,
2783
2881
  key: o + '-data-' + c.type,
2784
2882
  indexRoute: a ? a + '-1' : '1',
2785
2883
  jsonKey: 'data',
2786
2884
  disabled: !0,
2787
- title: Ae({
2885
+ title: Me({
2788
2886
  indexRoute: a ? a + '-1' : '1',
2789
2887
  jsonKey: 'data',
2790
2888
  targetJsonSchema: c,
@@ -2795,7 +2893,7 @@
2795
2893
  typeIsFixed: !0,
2796
2894
  }),
2797
2895
  }),
2798
- i().createElement(qe, {
2896
+ i().createElement(_e, {
2799
2897
  className:
2800
2898
  'dataSource-filter-item-schema schema-item-form',
2801
2899
  id: o + '-filter',
@@ -2803,7 +2901,7 @@
2803
2901
  indexRoute: a ? a + '-2' : '2',
2804
2902
  jsonKey: 'filter',
2805
2903
  disabled: !0,
2806
- title: Ae({
2904
+ title: Me({
2807
2905
  indexRoute: a ? a + '-2' : '2',
2808
2906
  jsonKey: 'filter',
2809
2907
  targetJsonSchema: r.properties.filter,
@@ -2827,16 +2925,16 @@
2827
2925
  c = r.properties.config || {},
2828
2926
  l = r.properties.data || {};
2829
2927
  return i().createElement(
2830
- Me,
2928
+ ze,
2831
2929
  {
2832
2930
  className: s + '-schema schema-item-form',
2833
2931
  id: o,
2834
2932
  key: o,
2835
2933
  indexRoute: a,
2836
2934
  jsonKey: n,
2837
- title: We(m()({}, e)),
2935
+ title: Ge(u()({}, e)),
2838
2936
  },
2839
- i().createElement(Me, {
2937
+ i().createElement(ze, {
2840
2938
  className: 'dataSource-type-item-schema schema-item-form',
2841
2939
  id: o + '-type',
2842
2940
  key: o + '-type',
@@ -2851,9 +2949,9 @@
2851
2949
  parentType: s,
2852
2950
  nodeKey: o + '-type',
2853
2951
  }),
2854
- i().createElement(Fe, t)),
2952
+ i().createElement(Ae, t)),
2855
2953
  }),
2856
- i().createElement(Me, {
2954
+ i().createElement(ze, {
2857
2955
  className:
2858
2956
  'dataSource-config-item-schema schema-item-form',
2859
2957
  id: o + '-config-' + l.type,
@@ -2861,7 +2959,7 @@
2861
2959
  indexRoute: a ? a + '-1' : '1',
2862
2960
  jsonKey: 'config',
2863
2961
  disabled: !0,
2864
- title: We({
2962
+ title: Ge({
2865
2963
  indexRoute: a ? a + '-1' : '1',
2866
2964
  jsonKey: 'config',
2867
2965
  targetJsonSchema: c,
@@ -2872,14 +2970,14 @@
2872
2970
  typeIsFixed: !0,
2873
2971
  }),
2874
2972
  }),
2875
- i().createElement(Me, {
2973
+ i().createElement(ze, {
2876
2974
  className: 'dataSource-data-item-schema schema-item-form',
2877
2975
  id: o + '-data-' + l.type,
2878
2976
  key: o + '-data-' + l.type,
2879
2977
  indexRoute: a ? a + '-2' : '2',
2880
2978
  jsonKey: 'data',
2881
2979
  disabled: !0,
2882
- title: We({
2980
+ title: Ge({
2883
2981
  indexRoute: a ? a + '-2' : '2',
2884
2982
  jsonKey: 'data',
2885
2983
  targetJsonSchema: l,
@@ -2904,18 +3002,18 @@
2904
3002
  l = r.properties.register || {},
2905
3003
  p = r.properties.actionFunc || {},
2906
3004
  d = r.properties.trigger || {},
2907
- u = r.properties.eventData || {};
3005
+ m = r.properties.eventData || {};
2908
3006
  return i().createElement(
2909
- Ge,
3007
+ Ue,
2910
3008
  {
2911
3009
  className: s + '-schema schema-item-form',
2912
3010
  id: o,
2913
3011
  key: o,
2914
3012
  indexRoute: a,
2915
3013
  jsonKey: n,
2916
- title: ze(m()({}, e)),
3014
+ title: He(u()({}, e)),
2917
3015
  },
2918
- i().createElement(Ge, {
3016
+ i().createElement(Ue, {
2919
3017
  className: 'event-type-item-schema schema-item-form',
2920
3018
  id: o + '-type',
2921
3019
  key: o + '-type',
@@ -2930,11 +3028,11 @@
2930
3028
  parentType: s,
2931
3029
  nodeKey: o + '-type',
2932
3030
  }),
2933
- i().createElement(Fe, t)),
3031
+ i().createElement(Ae, t)),
2934
3032
  }),
2935
3033
  'on' === c.default &&
2936
3034
  l &&
2937
- i().createElement(Ge, {
3035
+ i().createElement(Ue, {
2938
3036
  className:
2939
3037
  'event-register-item-schema schema-item-form',
2940
3038
  id: o + '-register-' + c.default,
@@ -2942,7 +3040,7 @@
2942
3040
  indexRoute: a ? a + '-1' : '1',
2943
3041
  jsonKey: 'register',
2944
3042
  disabled: !0,
2945
- title: ze({
3043
+ title: He({
2946
3044
  indexRoute: a ? a + '-1' : '1',
2947
3045
  jsonKey: 'register',
2948
3046
  targetJsonSchema: l,
@@ -2955,7 +3053,7 @@
2955
3053
  }),
2956
3054
  'on' === c.default &&
2957
3055
  p &&
2958
- i().createElement(Ge, {
3056
+ i().createElement(Ue, {
2959
3057
  className:
2960
3058
  'event-actionFunc-item-schema schema-item-form',
2961
3059
  id: o + '-actionFunc-' + c.default,
@@ -2963,7 +3061,7 @@
2963
3061
  indexRoute: a ? a + '-2' : '2',
2964
3062
  jsonKey: 'actionFunc',
2965
3063
  disabled: !0,
2966
- title: ze({
3064
+ title: He({
2967
3065
  indexRoute: a ? a + '-2' : '2',
2968
3066
  jsonKey: 'actionFunc',
2969
3067
  targetJsonSchema: p,
@@ -2976,14 +3074,14 @@
2976
3074
  }),
2977
3075
  'emit' === c.default &&
2978
3076
  d &&
2979
- i().createElement(Ge, {
3077
+ i().createElement(Ue, {
2980
3078
  className: 'event-trigger-item-schema schema-item-form',
2981
3079
  id: o + '-trigger-' + c.default,
2982
3080
  key: o + '-trigger-' + c.default,
2983
3081
  indexRoute: a ? a + '-1' : '1',
2984
3082
  jsonKey: 'trigger',
2985
3083
  disabled: !0,
2986
- title: ze({
3084
+ title: He({
2987
3085
  indexRoute: a ? a + '-1' : '1',
2988
3086
  jsonKey: 'trigger',
2989
3087
  targetJsonSchema: d,
@@ -2995,8 +3093,8 @@
2995
3093
  }),
2996
3094
  }),
2997
3095
  'emit' === c.default &&
2998
- u &&
2999
- i().createElement(Ge, {
3096
+ m &&
3097
+ i().createElement(Ue, {
3000
3098
  className:
3001
3099
  'event-eventData-item-schema schema-item-form',
3002
3100
  id: o + '-eventData-' + c.default,
@@ -3004,10 +3102,10 @@
3004
3102
  indexRoute: a ? a + '-2' : '2',
3005
3103
  jsonKey: 'eventData',
3006
3104
  disabled: !0,
3007
- title: ze({
3105
+ title: He({
3008
3106
  indexRoute: a ? a + '-2' : '2',
3009
3107
  jsonKey: 'eventData',
3010
- targetJsonSchema: u,
3108
+ targetJsonSchema: m,
3011
3109
  parentType: s,
3012
3110
  nodeKey: o + '-eventData-' + c.default,
3013
3111
  hideOperaBtn: !0,
@@ -3029,23 +3127,23 @@
3029
3127
  c = r.propertyOrder[0],
3030
3128
  l = r.properties[c];
3031
3129
  return i().createElement(
3032
- Ue,
3130
+ Xe,
3033
3131
  {
3034
3132
  className: s + '-schema schema-item-form',
3035
3133
  id: o,
3036
3134
  key: o,
3037
3135
  indexRoute: a,
3038
3136
  jsonKey: n,
3039
- title: He(m()({}, e)),
3137
+ title: Qe(u()({}, e)),
3040
3138
  },
3041
- i().createElement(Ue, {
3139
+ i().createElement(Xe, {
3042
3140
  className: 'quantity-unit-item-schema schema-item-form',
3043
3141
  id: o + '-' + c,
3044
3142
  key: o + '-' + c,
3045
3143
  indexRoute: a ? a + '-0' : '0',
3046
3144
  jsonKey: c,
3047
3145
  disabled: !0,
3048
- title: He({
3146
+ title: Qe({
3049
3147
  indexRoute: a ? a + '-0' : '0',
3050
3148
  jsonKey: c,
3051
3149
  targetJsonSchema: l,
@@ -3056,7 +3154,7 @@
3056
3154
  typeIsFixed: !0,
3057
3155
  }),
3058
3156
  }),
3059
- i().createElement(Ue, {
3157
+ i().createElement(Xe, {
3060
3158
  className:
3061
3159
  'quantity-typeSelect-item-schema schema-item-form',
3062
3160
  id: o + '-quantity',
@@ -3072,7 +3170,7 @@
3072
3170
  parentType: s,
3073
3171
  nodeKey: o + '-quantity',
3074
3172
  }),
3075
- i().createElement(Fe, t)),
3173
+ i().createElement(Ae, t)),
3076
3174
  }),
3077
3175
  );
3078
3176
  })(e);
@@ -3089,14 +3187,14 @@
3089
3187
  c = r.options,
3090
3188
  l = a || '0';
3091
3189
  return i().createElement(
3092
- Ze,
3190
+ et,
3093
3191
  {
3094
3192
  className: s + '-schema schema-item-form',
3095
3193
  id: o,
3096
3194
  key: o,
3097
3195
  indexRoute: a,
3098
3196
  jsonKey: n,
3099
- title: ((t = m()({}, e)), i().createElement(Je, t)),
3197
+ title: ((t = u()({}, e)), i().createElement(Be, t)),
3100
3198
  },
3101
3199
  c &&
3102
3200
  c.length > 0 &&
@@ -3104,13 +3202,13 @@
3104
3202
  var n = e.label || e.name,
3105
3203
  a = e.value,
3106
3204
  r = '' + o + s + '-' + n;
3107
- return i().createElement(Ze, {
3205
+ return i().createElement(et, {
3108
3206
  className: 'enum-item-schema schema-item-form',
3109
3207
  id: r,
3110
3208
  key: r,
3111
3209
  indexRoute: l,
3112
3210
  disabled: !0,
3113
- title: $e({
3211
+ title: tt({
3114
3212
  indexRoute: l,
3115
3213
  optionIndex: t,
3116
3214
  optionLabel: n,
@@ -3127,22 +3225,22 @@
3127
3225
  n = e.indexRoute,
3128
3226
  a = e.nodeKey,
3129
3227
  o = e.targetJsonSchema.type;
3130
- return i().createElement(et, {
3228
+ return i().createElement(nt, {
3131
3229
  className: o + '-schema schema-item-form',
3132
3230
  id: a,
3133
3231
  key: a,
3134
3232
  indexRoute: n,
3135
3233
  jsonKey: t,
3136
- title: tt(e),
3234
+ title: at(e),
3137
3235
  });
3138
3236
  })(e);
3139
3237
  }
3140
3238
  },
3141
- at = S.Tree.TreeNode,
3142
- ot = function (e) {
3143
- return i().createElement(Je, e);
3239
+ rt = S.Tree.TreeNode,
3240
+ it = function (e) {
3241
+ return i().createElement(Be, e);
3144
3242
  },
3145
- rt = function (e) {
3243
+ st = function (e) {
3146
3244
  var t,
3147
3245
  n,
3148
3246
  a,
@@ -3153,7 +3251,7 @@
3153
3251
  l = e.nodeKey,
3154
3252
  p = e.targetJsonSchema,
3155
3253
  d = e.isOnlyShowChild,
3156
- u = p.type,
3254
+ m = p.type,
3157
3255
  h = p.isFixed,
3158
3256
  y =
3159
3257
  ((t = {
@@ -3161,7 +3259,7 @@
3161
3259
  properties: p.properties,
3162
3260
  parentIndexRoute: c,
3163
3261
  parentNodeKey: l,
3164
- parentType: u,
3262
+ parentType: m,
3165
3263
  isOnlyShowChild: d,
3166
3264
  }),
3167
3265
  (n = t.properties),
@@ -3174,7 +3272,7 @@
3174
3272
  c = n[s],
3175
3273
  l = c.type,
3176
3274
  p = (o ? o + '-' : '') + l + '-' + s;
3177
- return nt({
3275
+ return ot({
3178
3276
  parentType: r,
3179
3277
  jsonKey: s,
3180
3278
  indexRoute: i,
@@ -3184,21 +3282,21 @@
3184
3282
  });
3185
3283
  })),
3186
3284
  g = i().createElement(
3187
- at,
3285
+ rt,
3188
3286
  {
3189
- className: u + '-schema schema-item-form',
3287
+ className: m + '-schema schema-item-form',
3190
3288
  id: l,
3191
3289
  key: l,
3192
3290
  indexRoute: c,
3193
3291
  jsonKey: s,
3194
3292
  disabled: h,
3195
- title: ot(m()({}, e)),
3293
+ title: it(u()({}, e)),
3196
3294
  },
3197
3295
  y,
3198
3296
  );
3199
3297
  return d ? y : g;
3200
3298
  },
3201
- it =
3299
+ ct =
3202
3300
  (n(23),
3203
3301
  (function (e) {
3204
3302
  function t(t) {
@@ -3219,9 +3317,9 @@
3219
3317
  l = o.isExitJsonKey,
3220
3318
  p = o.isSupportCurType,
3221
3319
  d = t.indexRoute,
3222
- u = t.jsonKey,
3223
- m = r(d);
3224
- if (!m.isFixed) {
3320
+ m = t.jsonKey,
3321
+ u = r(d);
3322
+ if (!u.isFixed) {
3225
3323
  var h = a.indexRoute,
3226
3324
  y = (0, Oe.isSameParent)(d, h),
3227
3325
  g = (0, Oe.getCurPosition)(d, h);
@@ -3229,14 +3327,14 @@
3229
3327
  c(d, !0),
3230
3328
  'before' === g && (h = (0, Oe.moveForward)(h)),
3231
3329
  a.dragOverGapTop
3232
- ? s(h, u, m, 'before')
3233
- : (a.dragOver || a.dragOverGapBottom) && s(h, u, m);
3330
+ ? s(h, m, u, 'before')
3331
+ : (a.dragOver || a.dragOverGapBottom) && s(h, m, u);
3234
3332
  else {
3235
- if (l(h, u))
3333
+ if (l(h, m))
3236
3334
  return void S.message.warning(
3237
3335
  '目标位置中有重名的元素',
3238
3336
  );
3239
- var f = m.type;
3337
+ var f = u.type;
3240
3338
  if (!p(h, f))
3241
3339
  return void S.message.warning(
3242
3340
  '目标位置不支持' + f + '类型元素',
@@ -3247,15 +3345,15 @@
3247
3345
  if (window.sessionStorage)
3248
3346
  return window.sessionStorage.getItem(e);
3249
3347
  })(v + '-' + f);
3250
- C(i(x) + '-' + u + '-' + f, b || v),
3348
+ C(i(x) + '-' + m + '-' + f, b || v),
3251
3349
  a.dragOverGapTop
3252
3350
  ? 'after' === g
3253
- ? (c(d, !0), s(h, u, m, 'before'))
3254
- : (s(h, u, m, 'before', !0), c(d))
3351
+ ? (c(d, !0), s(h, m, u, 'before'))
3352
+ : (s(h, m, u, 'before', !0), c(d))
3255
3353
  : (a.dragOver || a.dragOverGapBottom) &&
3256
3354
  ('after' === g
3257
- ? (c(d, !0), s(h, u, m))
3258
- : (s(h, u, m, '', !0), c(d)));
3355
+ ? (c(d, !0), s(h, m, u))
3356
+ : (s(h, m, u, '', !0), c(d)));
3259
3357
  }
3260
3358
  }
3261
3359
  }),
@@ -3320,7 +3418,7 @@
3320
3418
  : this.catchExpandedKeys(e),
3321
3419
  },
3322
3420
  'object' === n &&
3323
- rt({
3421
+ st({
3324
3422
  parentType: '',
3325
3423
  jsonKey: '',
3326
3424
  indexRoute: '',
@@ -3329,7 +3427,7 @@
3329
3427
  isOnlyShowChild: !0,
3330
3428
  }),
3331
3429
  'object' !== n &&
3332
- nt({
3430
+ ot({
3333
3431
  parentType: '',
3334
3432
  jsonKey: '',
3335
3433
  indexRoute: '',
@@ -3351,20 +3449,20 @@
3351
3449
  t
3352
3450
  );
3353
3451
  })(r.PureComponent));
3354
- it.propTypes = {
3452
+ ct.propTypes = {
3355
3453
  onChange: d().func,
3356
3454
  data: d().object,
3357
3455
  typeList: d().object,
3358
3456
  };
3359
- var st = (0, l.inject)(function (e) {
3457
+ var lt = (0, l.inject)(function (e) {
3360
3458
  return { schemaStore: e.schemaStore };
3361
- })((0, l.observer)(it)),
3362
- ct = (function (e) {
3459
+ })((0, l.observer)(ct)),
3460
+ pt = (function (e) {
3363
3461
  function t(t) {
3364
3462
  var n;
3365
3463
  return (
3366
3464
  ((n = e.call(this, t) || this).state = {
3367
- schemaStore: new Ne.schemaStore(),
3465
+ schemaStore: new je.schemaStore(),
3368
3466
  }),
3369
3467
  n
3370
3468
  );
@@ -3382,7 +3480,7 @@
3382
3480
  p = r.createElement(
3383
3481
  l.Provider,
3384
3482
  { schemaStore: s },
3385
- r.createElement(st, {
3483
+ r.createElement(lt, {
3386
3484
  data: t,
3387
3485
  typeList: n,
3388
3486
  onChange: a,
@@ -3394,7 +3492,7 @@
3394
3492
  t
3395
3493
  );
3396
3494
  })(r.PureComponent);
3397
- ct.propTypes = {
3495
+ pt.propTypes = {
3398
3496
  wideScreen: d().any,
3399
3497
  onChange: d().func,
3400
3498
  data: d().any,