@wibetter/json-schema-editor 5.0.8 → 5.0.9
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.css +3 -3
- package/lib/index.js +1280 -1716
- package/lib/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -12,67 +12,59 @@
|
|
|
12
12
|
var e = {
|
|
13
13
|
264: function () {},
|
|
14
14
|
286: function () {},
|
|
15
|
-
804: function () {},
|
|
16
15
|
382: function () {},
|
|
17
16
|
80: function () {},
|
|
18
17
|
707: function () {},
|
|
19
18
|
975: function (e, t, n) {
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
'string' == typeof
|
|
23
|
-
|
|
24
|
-
(0, n(611).A)('b8de86ae',
|
|
19
|
+
var a = n(264);
|
|
20
|
+
a.__esModule && (a = a.default),
|
|
21
|
+
'string' == typeof a && (a = [[e.id, a, '']]),
|
|
22
|
+
a.locals && (e.exports = a.locals),
|
|
23
|
+
(0, n(611).A)('b8de86ae', a, !1, { sourceMap: !1 });
|
|
25
24
|
},
|
|
26
25
|
915: function (e, t, n) {
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
'string' == typeof
|
|
30
|
-
|
|
31
|
-
(0, n(611).A)('5e9c0933',
|
|
32
|
-
},
|
|
33
|
-
797: function (e, t, n) {
|
|
34
|
-
var o = n(804);
|
|
35
|
-
o.__esModule && (o = o.default),
|
|
36
|
-
'string' == typeof o && (o = [[e.id, o, '']]),
|
|
37
|
-
o.locals && (e.exports = o.locals),
|
|
38
|
-
(0, n(611).A)('c1e4665a', o, !1, { sourceMap: !1 });
|
|
26
|
+
var a = n(286);
|
|
27
|
+
a.__esModule && (a = a.default),
|
|
28
|
+
'string' == typeof a && (a = [[e.id, a, '']]),
|
|
29
|
+
a.locals && (e.exports = a.locals),
|
|
30
|
+
(0, n(611).A)('5e9c0933', a, !1, { sourceMap: !1 });
|
|
39
31
|
},
|
|
40
32
|
23: function (e, t, n) {
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
'string' == typeof
|
|
44
|
-
|
|
45
|
-
(0, n(611).A)('adbe60da',
|
|
33
|
+
var a = n(382);
|
|
34
|
+
a.__esModule && (a = a.default),
|
|
35
|
+
'string' == typeof a && (a = [[e.id, a, '']]),
|
|
36
|
+
a.locals && (e.exports = a.locals),
|
|
37
|
+
(0, n(611).A)('adbe60da', a, !1, { sourceMap: !1 });
|
|
46
38
|
},
|
|
47
39
|
617: function (e, t, n) {
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
'string' == typeof
|
|
51
|
-
|
|
52
|
-
(0, n(611).A)('9c82b91a',
|
|
40
|
+
var a = n(80);
|
|
41
|
+
a.__esModule && (a = a.default),
|
|
42
|
+
'string' == typeof a && (a = [[e.id, a, '']]),
|
|
43
|
+
a.locals && (e.exports = a.locals),
|
|
44
|
+
(0, n(611).A)('9c82b91a', a, !1, { sourceMap: !1 });
|
|
53
45
|
},
|
|
54
46
|
790: function (e, t, n) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
'string' == typeof
|
|
58
|
-
|
|
59
|
-
(0, n(611).A)('2b121068',
|
|
47
|
+
var a = n(707);
|
|
48
|
+
a.__esModule && (a = a.default),
|
|
49
|
+
'string' == typeof a && (a = [[e.id, a, '']]),
|
|
50
|
+
a.locals && (e.exports = a.locals),
|
|
51
|
+
(0, n(611).A)('2b121068', a, !1, { sourceMap: !1 });
|
|
60
52
|
},
|
|
61
53
|
611: function (e, t, n) {
|
|
62
54
|
'use strict';
|
|
63
|
-
function
|
|
64
|
-
for (var n = [],
|
|
65
|
-
var r = t[
|
|
55
|
+
function a(e, t) {
|
|
56
|
+
for (var n = [], a = {}, o = 0; o < t.length; o++) {
|
|
57
|
+
var r = t[o],
|
|
66
58
|
i = r[0],
|
|
67
59
|
s = {
|
|
68
|
-
id: e + ':' +
|
|
60
|
+
id: e + ':' + o,
|
|
69
61
|
css: r[1],
|
|
70
62
|
media: r[2],
|
|
71
63
|
sourceMap: r[3],
|
|
72
64
|
};
|
|
73
|
-
|
|
74
|
-
?
|
|
75
|
-
: n.push((
|
|
65
|
+
a[i]
|
|
66
|
+
? a[i].parts.push(s)
|
|
67
|
+
: n.push((a[i] = { id: i, parts: [s] }));
|
|
76
68
|
}
|
|
77
69
|
return n;
|
|
78
70
|
}
|
|
@@ -81,40 +73,40 @@
|
|
|
81
73
|
return h;
|
|
82
74
|
},
|
|
83
75
|
});
|
|
84
|
-
var
|
|
85
|
-
if ('undefined' != typeof DEBUG && DEBUG && !
|
|
76
|
+
var o = 'undefined' != typeof document;
|
|
77
|
+
if ('undefined' != typeof DEBUG && DEBUG && !o)
|
|
86
78
|
throw new Error(
|
|
87
79
|
"vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.",
|
|
88
80
|
);
|
|
89
81
|
var r = {},
|
|
90
82
|
i =
|
|
91
|
-
|
|
83
|
+
o && (document.head || document.getElementsByTagName('head')[0]),
|
|
92
84
|
s = null,
|
|
93
85
|
c = 0,
|
|
94
86
|
l = !1,
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
p = function () {},
|
|
88
|
+
d = null,
|
|
97
89
|
u = 'data-vue-ssr-id',
|
|
98
90
|
m =
|
|
99
91
|
'undefined' != typeof navigator &&
|
|
100
92
|
/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
|
|
101
|
-
function h(e, t, n,
|
|
102
|
-
(l = n), (
|
|
103
|
-
var i =
|
|
93
|
+
function h(e, t, n, o) {
|
|
94
|
+
(l = n), (d = o || {});
|
|
95
|
+
var i = a(e, t);
|
|
104
96
|
return (
|
|
105
97
|
y(i),
|
|
106
98
|
function (t) {
|
|
107
|
-
for (var n = [],
|
|
108
|
-
var s = i[
|
|
99
|
+
for (var n = [], o = 0; o < i.length; o++) {
|
|
100
|
+
var s = i[o];
|
|
109
101
|
(c = r[s.id]).refs--, n.push(c);
|
|
110
102
|
}
|
|
111
103
|
for (
|
|
112
|
-
t ? y((i =
|
|
113
|
-
|
|
114
|
-
|
|
104
|
+
t ? y((i = a(e, t))) : (i = []), o = 0;
|
|
105
|
+
o < n.length;
|
|
106
|
+
o++
|
|
115
107
|
) {
|
|
116
108
|
var c;
|
|
117
|
-
if (0 === (c = n[
|
|
109
|
+
if (0 === (c = n[o]).refs) {
|
|
118
110
|
for (var l = 0; l < c.parts.length; l++) c.parts[l]();
|
|
119
111
|
delete r[c.id];
|
|
120
112
|
}
|
|
@@ -125,16 +117,16 @@
|
|
|
125
117
|
function y(e) {
|
|
126
118
|
for (var t = 0; t < e.length; t++) {
|
|
127
119
|
var n = e[t],
|
|
128
|
-
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
for (var
|
|
132
|
-
for (;
|
|
133
|
-
|
|
134
|
-
(
|
|
120
|
+
a = r[n.id];
|
|
121
|
+
if (a) {
|
|
122
|
+
a.refs++;
|
|
123
|
+
for (var o = 0; o < a.parts.length; o++) a.parts[o](n.parts[o]);
|
|
124
|
+
for (; o < n.parts.length; o++) a.parts.push(f(n.parts[o]));
|
|
125
|
+
a.parts.length > n.parts.length &&
|
|
126
|
+
(a.parts.length = n.parts.length);
|
|
135
127
|
} else {
|
|
136
128
|
var i = [];
|
|
137
|
-
for (
|
|
129
|
+
for (o = 0; o < n.parts.length; o++) i.push(f(n.parts[o]));
|
|
138
130
|
r[n.id] = { id: n.id, refs: 1, parts: i };
|
|
139
131
|
}
|
|
140
132
|
}
|
|
@@ -146,65 +138,65 @@
|
|
|
146
138
|
function f(e) {
|
|
147
139
|
var t,
|
|
148
140
|
n,
|
|
149
|
-
|
|
150
|
-
if (
|
|
151
|
-
if (l) return
|
|
152
|
-
|
|
141
|
+
a = document.querySelector('style[' + u + '~="' + e.id + '"]');
|
|
142
|
+
if (a) {
|
|
143
|
+
if (l) return p;
|
|
144
|
+
a.parentNode.removeChild(a);
|
|
153
145
|
}
|
|
154
146
|
if (m) {
|
|
155
|
-
var
|
|
156
|
-
(
|
|
157
|
-
(t =
|
|
158
|
-
(n =
|
|
147
|
+
var o = c++;
|
|
148
|
+
(a = s || (s = g())),
|
|
149
|
+
(t = b.bind(null, a, o, !1)),
|
|
150
|
+
(n = b.bind(null, a, o, !0));
|
|
159
151
|
} else
|
|
160
|
-
(
|
|
161
|
-
(t =
|
|
152
|
+
(a = g()),
|
|
153
|
+
(t = S.bind(null, a)),
|
|
162
154
|
(n = function () {
|
|
163
|
-
|
|
155
|
+
a.parentNode.removeChild(a);
|
|
164
156
|
});
|
|
165
157
|
return (
|
|
166
158
|
t(e),
|
|
167
|
-
function (
|
|
168
|
-
if (
|
|
159
|
+
function (a) {
|
|
160
|
+
if (a) {
|
|
169
161
|
if (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
a.css === e.css &&
|
|
163
|
+
a.media === e.media &&
|
|
164
|
+
a.sourceMap === e.sourceMap
|
|
173
165
|
)
|
|
174
166
|
return;
|
|
175
|
-
t((e =
|
|
167
|
+
t((e = a));
|
|
176
168
|
} else n();
|
|
177
169
|
}
|
|
178
170
|
);
|
|
179
171
|
}
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
((
|
|
172
|
+
var v,
|
|
173
|
+
x =
|
|
174
|
+
((v = []),
|
|
183
175
|
function (e, t) {
|
|
184
|
-
return (
|
|
176
|
+
return (v[e] = t), v.filter(Boolean).join('\n');
|
|
185
177
|
});
|
|
186
|
-
function
|
|
187
|
-
var
|
|
188
|
-
if (e.styleSheet) e.styleSheet.cssText =
|
|
178
|
+
function b(e, t, n, a) {
|
|
179
|
+
var o = n ? '' : a.css;
|
|
180
|
+
if (e.styleSheet) e.styleSheet.cssText = x(t, o);
|
|
189
181
|
else {
|
|
190
|
-
var r = document.createTextNode(
|
|
182
|
+
var r = document.createTextNode(o),
|
|
191
183
|
i = e.childNodes;
|
|
192
184
|
i[t] && e.removeChild(i[t]),
|
|
193
185
|
i.length ? e.insertBefore(r, i[t]) : e.appendChild(r);
|
|
194
186
|
}
|
|
195
187
|
}
|
|
196
|
-
function
|
|
188
|
+
function S(e, t) {
|
|
197
189
|
var n = t.css,
|
|
198
|
-
|
|
199
|
-
|
|
190
|
+
a = t.media,
|
|
191
|
+
o = t.sourceMap;
|
|
200
192
|
if (
|
|
201
|
-
(
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
((n += '\n/*# sourceURL=' +
|
|
193
|
+
(a && e.setAttribute('media', a),
|
|
194
|
+
d.ssrId && e.setAttribute(u, t.id),
|
|
195
|
+
o &&
|
|
196
|
+
((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
|
|
205
197
|
(n +=
|
|
206
198
|
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
207
|
-
btoa(unescape(encodeURIComponent(JSON.stringify(
|
|
199
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(o)))) +
|
|
208
200
|
' */')),
|
|
209
201
|
e.styleSheet)
|
|
210
202
|
)
|
|
@@ -217,11 +209,11 @@
|
|
|
217
209
|
},
|
|
218
210
|
},
|
|
219
211
|
t = {};
|
|
220
|
-
function n(
|
|
221
|
-
var
|
|
222
|
-
if (void 0 !==
|
|
223
|
-
var r = (t[
|
|
224
|
-
return e[
|
|
212
|
+
function n(a) {
|
|
213
|
+
var o = t[a];
|
|
214
|
+
if (void 0 !== o) return o.exports;
|
|
215
|
+
var r = (t[a] = { id: a, exports: {} });
|
|
216
|
+
return e[a](r, r.exports, n), r.exports;
|
|
225
217
|
}
|
|
226
218
|
(n.n = function (e) {
|
|
227
219
|
var t =
|
|
@@ -235,10 +227,10 @@
|
|
|
235
227
|
return n.d(t, { a: t }), t;
|
|
236
228
|
}),
|
|
237
229
|
(n.d = function (e, t) {
|
|
238
|
-
for (var
|
|
239
|
-
n.o(t,
|
|
240
|
-
!n.o(e,
|
|
241
|
-
Object.defineProperty(e,
|
|
230
|
+
for (var a in t)
|
|
231
|
+
n.o(t, a) &&
|
|
232
|
+
!n.o(e, a) &&
|
|
233
|
+
Object.defineProperty(e, a, { enumerable: !0, get: t[a] });
|
|
242
234
|
}),
|
|
243
235
|
(n.o = function (e, t) {
|
|
244
236
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -249,60 +241,60 @@
|
|
|
249
241
|
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
|
|
250
242
|
Object.defineProperty(e, '__esModule', { value: !0 });
|
|
251
243
|
});
|
|
252
|
-
var
|
|
244
|
+
var a = {};
|
|
253
245
|
return (
|
|
254
246
|
(function () {
|
|
255
247
|
'use strict';
|
|
256
|
-
n.r(
|
|
257
|
-
n.d(
|
|
248
|
+
n.r(a),
|
|
249
|
+
n.d(a, {
|
|
258
250
|
default: function () {
|
|
259
|
-
return
|
|
251
|
+
return ct;
|
|
260
252
|
},
|
|
261
253
|
});
|
|
262
254
|
var e,
|
|
263
255
|
t = require('@babel/runtime/helpers/inheritsLoose'),
|
|
264
|
-
|
|
256
|
+
o = n.n(t),
|
|
265
257
|
r = require('react'),
|
|
266
258
|
i = n.n(r),
|
|
267
259
|
s = require('react-dom'),
|
|
268
260
|
c = n.n(s),
|
|
269
261
|
l = require('mobx-react'),
|
|
270
|
-
|
|
271
|
-
|
|
262
|
+
p = require('prop-types'),
|
|
263
|
+
d = n.n(p),
|
|
272
264
|
u = require('@babel/runtime/helpers/extends'),
|
|
273
265
|
m = n.n(u),
|
|
274
266
|
h = require('@babel/runtime/helpers/initializerDefineProperty'),
|
|
275
267
|
y = n.n(h),
|
|
276
268
|
g = require('@babel/runtime/helpers/createClass'),
|
|
277
269
|
f = n.n(g),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
270
|
+
v = require('@babel/runtime/helpers/applyDecoratedDescriptor'),
|
|
271
|
+
x = n.n(v),
|
|
272
|
+
b =
|
|
281
273
|
(require('@babel/runtime/helpers/initializerWarningHelper'),
|
|
282
274
|
require('mobx')),
|
|
283
|
-
|
|
275
|
+
S = require('antd');
|
|
284
276
|
function E(e) {
|
|
285
277
|
var t = JSON.stringify(e);
|
|
286
278
|
return JSON.parse(t);
|
|
287
279
|
}
|
|
288
|
-
function
|
|
280
|
+
function O(e, t) {
|
|
289
281
|
return JSON.stringify(e) === JSON.stringify(t);
|
|
290
282
|
}
|
|
291
|
-
function
|
|
283
|
+
function C(e, t) {
|
|
292
284
|
window.sessionStorage && window.sessionStorage.setItem(e, t);
|
|
293
285
|
}
|
|
294
|
-
var
|
|
295
|
-
R,
|
|
286
|
+
var j,
|
|
296
287
|
N,
|
|
297
288
|
I,
|
|
298
|
-
k,
|
|
299
289
|
w,
|
|
290
|
+
R,
|
|
300
291
|
K,
|
|
301
|
-
|
|
292
|
+
k,
|
|
293
|
+
T,
|
|
302
294
|
J,
|
|
303
295
|
D,
|
|
304
|
-
T,
|
|
305
296
|
B,
|
|
297
|
+
P,
|
|
306
298
|
V,
|
|
307
299
|
L,
|
|
308
300
|
F,
|
|
@@ -310,11 +302,11 @@
|
|
|
310
302
|
A,
|
|
311
303
|
_,
|
|
312
304
|
M,
|
|
313
|
-
H,
|
|
314
|
-
z,
|
|
315
|
-
G,
|
|
316
305
|
W,
|
|
306
|
+
G,
|
|
307
|
+
z,
|
|
317
308
|
U,
|
|
309
|
+
H,
|
|
318
310
|
Q,
|
|
319
311
|
X,
|
|
320
312
|
Y,
|
|
@@ -323,26 +315,21 @@
|
|
|
323
315
|
ee,
|
|
324
316
|
te,
|
|
325
317
|
ne,
|
|
326
|
-
oe,
|
|
327
318
|
ae,
|
|
319
|
+
oe,
|
|
328
320
|
re,
|
|
329
321
|
ie,
|
|
330
322
|
se,
|
|
331
323
|
ce,
|
|
332
324
|
le,
|
|
333
|
-
de,
|
|
334
325
|
pe,
|
|
326
|
+
de,
|
|
335
327
|
ue,
|
|
336
328
|
me,
|
|
337
329
|
he,
|
|
338
330
|
ye,
|
|
339
331
|
ge,
|
|
340
|
-
fe
|
|
341
|
-
Se,
|
|
342
|
-
ve,
|
|
343
|
-
xe,
|
|
344
|
-
be,
|
|
345
|
-
Ee = [
|
|
332
|
+
fe = [
|
|
346
333
|
'input',
|
|
347
334
|
'boolean',
|
|
348
335
|
'number',
|
|
@@ -357,7 +344,7 @@
|
|
|
357
344
|
'time',
|
|
358
345
|
'input-image',
|
|
359
346
|
],
|
|
360
|
-
|
|
347
|
+
ve = ['object'].concat([
|
|
361
348
|
'datasource',
|
|
362
349
|
'event',
|
|
363
350
|
'dynamic-data',
|
|
@@ -365,7 +352,7 @@
|
|
|
365
352
|
'sohu-source',
|
|
366
353
|
'sohu-event',
|
|
367
354
|
]),
|
|
368
|
-
|
|
355
|
+
xe = [
|
|
369
356
|
'quantity',
|
|
370
357
|
'box-style',
|
|
371
358
|
'text-editor',
|
|
@@ -373,12 +360,12 @@
|
|
|
373
360
|
'codearea',
|
|
374
361
|
'htmlarea',
|
|
375
362
|
'array',
|
|
376
|
-
].concat(
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
363
|
+
].concat(ve),
|
|
364
|
+
be = [].concat(fe, xe),
|
|
365
|
+
Se = ['string'],
|
|
366
|
+
Ee =
|
|
380
367
|
(((e = {
|
|
381
|
-
object:
|
|
368
|
+
object: be,
|
|
382
369
|
array: [
|
|
383
370
|
'object',
|
|
384
371
|
'input',
|
|
@@ -390,69 +377,64 @@
|
|
|
390
377
|
'time',
|
|
391
378
|
'input-image',
|
|
392
379
|
],
|
|
393
|
-
radio:
|
|
394
|
-
select:
|
|
380
|
+
radio: Se,
|
|
381
|
+
select: Se,
|
|
395
382
|
}).select = ['string']),
|
|
396
|
-
(e.all =
|
|
383
|
+
(e.all = be),
|
|
397
384
|
e),
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
((
|
|
404
|
-
(
|
|
405
|
-
(
|
|
406
|
-
(
|
|
407
|
-
(
|
|
408
|
-
(
|
|
409
|
-
(
|
|
410
|
-
(
|
|
411
|
-
(J =
|
|
412
|
-
(D =
|
|
413
|
-
(
|
|
414
|
-
(
|
|
415
|
-
(V =
|
|
416
|
-
(L =
|
|
417
|
-
(F =
|
|
418
|
-
(q =
|
|
419
|
-
(A =
|
|
420
|
-
(_ =
|
|
421
|
-
(M =
|
|
422
|
-
(
|
|
423
|
-
(
|
|
424
|
-
(
|
|
425
|
-
(
|
|
426
|
-
(
|
|
427
|
-
(Q =
|
|
428
|
-
(X =
|
|
429
|
-
(Y =
|
|
430
|
-
(Z =
|
|
431
|
-
($ =
|
|
432
|
-
(ee =
|
|
433
|
-
(te =
|
|
434
|
-
(ne =
|
|
435
|
-
(
|
|
436
|
-
(
|
|
437
|
-
(re =
|
|
438
|
-
(ie =
|
|
439
|
-
(se =
|
|
440
|
-
(ce =
|
|
441
|
-
(le =
|
|
442
|
-
(
|
|
443
|
-
(
|
|
444
|
-
(ue = x.action.bound),
|
|
445
|
-
(me = x.action.bound),
|
|
446
|
-
(he = x.action.bound),
|
|
447
|
-
(ye = x.action.bound),
|
|
448
|
-
(ge = (function () {
|
|
385
|
+
Oe = require('@wibetter/json-utils'),
|
|
386
|
+
Ce = Oe.TypeDataList.jsonschema,
|
|
387
|
+
je = Oe.TypeDataList.input,
|
|
388
|
+
Ne = {
|
|
389
|
+
schemaStore:
|
|
390
|
+
((j = b.action.bound),
|
|
391
|
+
(N = b.action.bound),
|
|
392
|
+
(I = b.action.bound),
|
|
393
|
+
(w = b.action.bound),
|
|
394
|
+
(R = b.action.bound),
|
|
395
|
+
(K = b.action.bound),
|
|
396
|
+
(k = b.action.bound),
|
|
397
|
+
(T = b.action.bound),
|
|
398
|
+
(J = b.action.bound),
|
|
399
|
+
(D = b.action.bound),
|
|
400
|
+
(B = b.action.bound),
|
|
401
|
+
(P = b.action.bound),
|
|
402
|
+
(V = b.action.bound),
|
|
403
|
+
(L = b.action.bound),
|
|
404
|
+
(F = b.action.bound),
|
|
405
|
+
(q = b.action.bound),
|
|
406
|
+
(A = b.action.bound),
|
|
407
|
+
(_ = b.action.bound),
|
|
408
|
+
(M = b.action.bound),
|
|
409
|
+
(W = b.action.bound),
|
|
410
|
+
(G = b.action.bound),
|
|
411
|
+
(z = b.action.bound),
|
|
412
|
+
(U = b.action.bound),
|
|
413
|
+
(H = b.action.bound),
|
|
414
|
+
(Q = b.action.bound),
|
|
415
|
+
(X = b.action.bound),
|
|
416
|
+
(Y = b.action.bound),
|
|
417
|
+
(Z = b.action.bound),
|
|
418
|
+
($ = b.action.bound),
|
|
419
|
+
(ee = b.action.bound),
|
|
420
|
+
(te = b.action.bound),
|
|
421
|
+
(ne = b.action.bound),
|
|
422
|
+
(ae = b.action.bound),
|
|
423
|
+
(oe = b.action.bound),
|
|
424
|
+
(re = b.action.bound),
|
|
425
|
+
(ie = b.action.bound),
|
|
426
|
+
(se = b.action.bound),
|
|
427
|
+
(ce = b.action.bound),
|
|
428
|
+
(le = b.action.bound),
|
|
429
|
+
(pe = b.action.bound),
|
|
430
|
+
(de = (function () {
|
|
449
431
|
function e() {
|
|
450
432
|
(this.curJsonKeyIndex = 1),
|
|
451
|
-
y()(this, 'triggerChange',
|
|
452
|
-
y()(this, 'jsonSchema',
|
|
453
|
-
y()(this, 'SchemaTypeList',
|
|
454
|
-
y()(this, 'onChange',
|
|
455
|
-
y()(this, 'childElemSort',
|
|
433
|
+
y()(this, 'triggerChange', ue, this),
|
|
434
|
+
y()(this, 'jsonSchema', me, this),
|
|
435
|
+
y()(this, 'SchemaTypeList', he, this),
|
|
436
|
+
y()(this, 'onChange', ye, this),
|
|
437
|
+
y()(this, 'childElemSort', ge, this);
|
|
456
438
|
}
|
|
457
439
|
var t = e.prototype;
|
|
458
440
|
return (
|
|
@@ -463,7 +445,7 @@
|
|
|
463
445
|
var t = this;
|
|
464
446
|
e &&
|
|
465
447
|
'{}' !== JSON.stringify(e) &&
|
|
466
|
-
(
|
|
448
|
+
(O(e, this.SchemaTypeList) ||
|
|
467
449
|
(e &&
|
|
468
450
|
Object.keys(e).map(function (n) {
|
|
469
451
|
t.SchemaTypeList[n] = e[n];
|
|
@@ -471,14 +453,14 @@
|
|
|
471
453
|
}),
|
|
472
454
|
(t.initJSONSchemaData = function (e) {
|
|
473
455
|
if (e && '{}' !== JSON.stringify(e)) {
|
|
474
|
-
if (!
|
|
475
|
-
if (e && (0,
|
|
456
|
+
if (!O(e, this.JSONSchemaObj))
|
|
457
|
+
if (e && (0, Oe.isNewSchemaData)(e))
|
|
476
458
|
this.jsonSchema = e;
|
|
477
459
|
else {
|
|
478
|
-
var t = (0,
|
|
460
|
+
var t = (0, Oe.oldSchemaToNewSchema)(e);
|
|
479
461
|
this.jsonSchema = t;
|
|
480
462
|
}
|
|
481
|
-
} else this.jsonSchema = E(
|
|
463
|
+
} else this.jsonSchema = E(Ce);
|
|
482
464
|
}),
|
|
483
465
|
(t.initOnChange = function (e) {
|
|
484
466
|
var t, n;
|
|
@@ -496,20 +478,20 @@
|
|
|
496
478
|
e || this.onChange(this.JSONSchemaObj);
|
|
497
479
|
}),
|
|
498
480
|
(t.indexRoute2keyRoute = function (e) {
|
|
499
|
-
return (0,
|
|
481
|
+
return (0, Oe.indexRoute2keyRoute)(e, this.jsonSchema);
|
|
500
482
|
}),
|
|
501
483
|
(t.keyRoute2indexRoute = function (e) {
|
|
502
|
-
return (0,
|
|
484
|
+
return (0, Oe.keyRoute2indexRoute)(e, this.jsonSchema);
|
|
503
485
|
}),
|
|
504
486
|
(t.getSchemaByIndexRoute = function (e) {
|
|
505
|
-
return (0,
|
|
487
|
+
return (0, Oe.getSchemaByIndexRoute)(
|
|
506
488
|
e,
|
|
507
489
|
this.jsonSchema,
|
|
508
490
|
!0,
|
|
509
491
|
);
|
|
510
492
|
}),
|
|
511
493
|
(t.getSchemaByKeyRoute = function (e) {
|
|
512
|
-
return (0,
|
|
494
|
+
return (0, Oe.getSchemaByKeyRoute)(e, this.jsonSchema, !0);
|
|
513
495
|
}),
|
|
514
496
|
(t.getNewJsonKeyIndex = function (e, t) {
|
|
515
497
|
var n = (t || 'field') + '_' + this.curJsonKeyIndex;
|
|
@@ -522,19 +504,19 @@
|
|
|
522
504
|
);
|
|
523
505
|
}),
|
|
524
506
|
(t.isExitJsonKey = function (e, t) {
|
|
525
|
-
var n = (0,
|
|
526
|
-
|
|
507
|
+
var n = (0, Oe.getParentIndexRoute)(e),
|
|
508
|
+
a = this.getSchemaByIndexRoute(n);
|
|
527
509
|
return (
|
|
528
|
-
!!(
|
|
529
|
-
(
|
|
530
|
-
|
|
531
|
-
|
|
510
|
+
!!(a.propertyOrder && a.propertyOrder.indexOf(t) >= 0) ||
|
|
511
|
+
(Oe.KeyWordList &&
|
|
512
|
+
Oe.KeyWordList.indexOf(t) >= 0 &&
|
|
513
|
+
S.message.warning(
|
|
532
514
|
t +
|
|
533
515
|
'是JSONSchema的关键字,建议您换一个,避免后续出现数据异常。',
|
|
534
516
|
),
|
|
535
517
|
t &&
|
|
536
518
|
t.indexOf('-') > -1 &&
|
|
537
|
-
|
|
519
|
+
S.message.warning(
|
|
538
520
|
t +
|
|
539
521
|
'含特殊字符(‘-’),会影响后续数据获取和更新,建议您换一个数值。',
|
|
540
522
|
),
|
|
@@ -542,134 +524,134 @@
|
|
|
542
524
|
);
|
|
543
525
|
}),
|
|
544
526
|
(t.isSupportCurType = function (e, t) {
|
|
545
|
-
var n = (0,
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
return !!(
|
|
527
|
+
var n = (0, Oe.getParentIndexRoute)(e),
|
|
528
|
+
a = this.getSchemaByIndexRoute(n),
|
|
529
|
+
o = this.SchemaTypeList[a.type];
|
|
530
|
+
return !!(o && o.indexOf(t) >= 0);
|
|
549
531
|
}),
|
|
550
532
|
(t.addChildJson = function (e, t) {
|
|
551
|
-
var n = (0,
|
|
552
|
-
if ((0,
|
|
553
|
-
var
|
|
554
|
-
n.propertyOrder.push(
|
|
555
|
-
(n.properties[
|
|
533
|
+
var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
534
|
+
if ((0, Oe.isContainerSchema)(n)) {
|
|
535
|
+
var a = this.getNewJsonKeyIndex(n);
|
|
536
|
+
n.propertyOrder.push(a),
|
|
537
|
+
(n.properties[a] = je),
|
|
556
538
|
this.jsonSchemaChange(t);
|
|
557
|
-
} else
|
|
539
|
+
} else S.message.warning('非对象类型字段不允许插入子元素');
|
|
558
540
|
}),
|
|
559
|
-
(t.changeType = function (e, t, n,
|
|
560
|
-
var
|
|
561
|
-
r = (0,
|
|
541
|
+
(t.changeType = function (e, t, n, a) {
|
|
542
|
+
var o = (0, Oe.getParentIndexRoute)(e),
|
|
543
|
+
r = (0, Oe.getSchemaByIndexRoute)(o, this.jsonSchema);
|
|
562
544
|
r.properties && r.properties[t]
|
|
563
545
|
? (r.properties[t] = E(n))
|
|
564
546
|
: r[t] && (r[t] = E(n)),
|
|
565
|
-
this.jsonSchemaChange(
|
|
547
|
+
this.jsonSchemaChange(a);
|
|
566
548
|
}),
|
|
567
549
|
(t.updateSchemaData = function (e, t, n) {
|
|
568
|
-
var
|
|
569
|
-
Object.assign(
|
|
550
|
+
var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
551
|
+
Object.assign(a, E(t)), this.jsonSchemaChange(n);
|
|
570
552
|
}),
|
|
571
|
-
(t.editSchemaData = function (e, t, n,
|
|
572
|
-
var
|
|
573
|
-
r = (0,
|
|
553
|
+
(t.editSchemaData = function (e, t, n, a) {
|
|
554
|
+
var o = (0, Oe.getParentIndexRoute)(e),
|
|
555
|
+
r = (0, Oe.getSchemaByIndexRoute)(o, this.jsonSchema);
|
|
574
556
|
(r.properties[t] = m()({}, E(r.properties[t]), n)),
|
|
575
|
-
this.jsonSchemaChange(
|
|
557
|
+
this.jsonSchemaChange(a);
|
|
576
558
|
}),
|
|
577
559
|
(t.editJsonKey = function (e, t, n) {
|
|
578
|
-
var
|
|
560
|
+
var a = (0, Oe.getSchemaByIndexRoute)(
|
|
579
561
|
e,
|
|
580
562
|
this.jsonSchema,
|
|
581
563
|
!0,
|
|
582
564
|
);
|
|
583
|
-
this.insertJsonData(e, t,
|
|
565
|
+
this.insertJsonData(e, t, a, '', !0),
|
|
584
566
|
this.deleteJsonByIndex(e, !0),
|
|
585
567
|
this.jsonSchemaChange(n);
|
|
586
568
|
}),
|
|
587
569
|
(t.addNextJsonData = function (e) {
|
|
588
|
-
var t = (0,
|
|
589
|
-
n = (0,
|
|
590
|
-
|
|
591
|
-
this.insertJsonData(e,
|
|
570
|
+
var t = (0, Oe.getParentIndexRoute)(e),
|
|
571
|
+
n = (0, Oe.getSchemaByIndexRoute)(t, this.jsonSchema),
|
|
572
|
+
a = this.getNewJsonKeyIndex(n);
|
|
573
|
+
this.insertJsonData(e, a, je);
|
|
592
574
|
}),
|
|
593
|
-
(t.insertJsonData = function (e, t, n,
|
|
594
|
-
var r = (0,
|
|
575
|
+
(t.insertJsonData = function (e, t, n, a, o) {
|
|
576
|
+
var r = (0, Oe.getParentIndexRoute_CurIndex)(e),
|
|
595
577
|
i = r[0],
|
|
596
578
|
s = r[1],
|
|
597
|
-
c = (0,
|
|
579
|
+
c = (0, Oe.getSchemaByIndexRoute)(i, this.jsonSchema);
|
|
598
580
|
c.properties[t] = n;
|
|
599
581
|
var l = c.propertyOrder,
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
u = l.slice(
|
|
603
|
-
(c.propertyOrder = [].concat(
|
|
604
|
-
this.jsonSchemaChange(
|
|
582
|
+
p = 'before' === a ? Number(s) : Number(s) + 1,
|
|
583
|
+
d = l.slice(0, p),
|
|
584
|
+
u = l.slice(p);
|
|
585
|
+
(c.propertyOrder = [].concat(d, [t], u)),
|
|
586
|
+
this.jsonSchemaChange(o);
|
|
605
587
|
}),
|
|
606
588
|
(t.deleteJsonByIndex_CurKey = function (e, t, n) {
|
|
607
|
-
var
|
|
608
|
-
|
|
609
|
-
delete
|
|
610
|
-
var r =
|
|
611
|
-
|
|
589
|
+
var a = (0, Oe.getParentIndexRoute)(e),
|
|
590
|
+
o = (0, Oe.getSchemaByIndexRoute)(a, this.jsonSchema);
|
|
591
|
+
delete o.properties[t];
|
|
592
|
+
var r = o.propertyOrder.indexOf(t);
|
|
593
|
+
o.propertyOrder.splice(r, 1), this.jsonSchemaChange(n);
|
|
612
594
|
}),
|
|
613
595
|
(t.deleteJsonByIndex = function (e, t) {
|
|
614
|
-
var n = (0,
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
r = (0,
|
|
618
|
-
i = r.propertyOrder[
|
|
596
|
+
var n = (0, Oe.getParentIndexRoute_CurIndex)(e),
|
|
597
|
+
a = n[0],
|
|
598
|
+
o = n[1],
|
|
599
|
+
r = (0, Oe.getSchemaByIndexRoute)(a, this.jsonSchema),
|
|
600
|
+
i = r.propertyOrder[o];
|
|
619
601
|
delete r.properties[i];
|
|
620
602
|
var s = r.propertyOrder.indexOf(i);
|
|
621
603
|
r.propertyOrder.splice(s, 1), this.jsonSchemaChange(t);
|
|
622
604
|
}),
|
|
623
|
-
(t.updateEnumItem = function (e, t, n,
|
|
624
|
-
var r = (0,
|
|
605
|
+
(t.updateEnumItem = function (e, t, n, a, o) {
|
|
606
|
+
var r = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
625
607
|
r.enum &&
|
|
626
608
|
r.enumextra &&
|
|
627
|
-
((r.enum[t] = n), (r.enumextra[t] =
|
|
628
|
-
this.jsonSchemaChange(
|
|
609
|
+
((r.enum[t] = n), (r.enumextra[t] = a)),
|
|
610
|
+
this.jsonSchemaChange(o);
|
|
629
611
|
}),
|
|
630
612
|
(t.isExitEnumKey = function (e, t, n) {
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
if (
|
|
634
|
-
var r = E(
|
|
635
|
-
t >= 0 && r.splice(t, 1), r.indexOf(n) >= 0 && (
|
|
613
|
+
var a = !1,
|
|
614
|
+
o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
615
|
+
if (o.enum) {
|
|
616
|
+
var r = E(o.enum);
|
|
617
|
+
t >= 0 && r.splice(t, 1), r.indexOf(n) >= 0 && (a = !0);
|
|
636
618
|
}
|
|
637
619
|
return (
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
620
|
+
Oe.KeyWordList &&
|
|
621
|
+
Oe.KeyWordList.indexOf(n) >= 0 &&
|
|
622
|
+
S.message.warning(
|
|
641
623
|
n +
|
|
642
624
|
'是JSONSchema的关键字,建议您换一个,避免后续出现数据异常。',
|
|
643
625
|
),
|
|
644
|
-
|
|
626
|
+
a
|
|
645
627
|
);
|
|
646
628
|
}),
|
|
647
|
-
(t.updateEnumKey = function (e, t, n,
|
|
648
|
-
var
|
|
649
|
-
|
|
629
|
+
(t.updateEnumKey = function (e, t, n, a) {
|
|
630
|
+
var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
631
|
+
o.enum && (o.enum[t] = n), this.jsonSchemaChange(a);
|
|
650
632
|
}),
|
|
651
|
-
(t.updateEnumText = function (e, t, n,
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
this.jsonSchemaChange(
|
|
633
|
+
(t.updateEnumText = function (e, t, n, a) {
|
|
634
|
+
var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
635
|
+
o.enumextra && (o.enumextra[t] = n),
|
|
636
|
+
this.jsonSchemaChange(a);
|
|
655
637
|
}),
|
|
656
638
|
(t.deleteEnumItem = function (e, t, n) {
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
(
|
|
639
|
+
var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
640
|
+
a.enum &&
|
|
641
|
+
a.enumextra &&
|
|
642
|
+
(a.enum.splice(t, 1), a.enumextra.splice(t, 1)),
|
|
661
643
|
this.jsonSchemaChange(n);
|
|
662
644
|
}),
|
|
663
|
-
(t.insertEnumItem = function (e, t, n,
|
|
664
|
-
var i = (0,
|
|
645
|
+
(t.insertEnumItem = function (e, t, n, a, o, r) {
|
|
646
|
+
var i = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
665
647
|
if (i.enum && i.enumextra) {
|
|
666
|
-
var s = 'before' ===
|
|
648
|
+
var s = 'before' === o ? Number(t) : Number(t) + 1,
|
|
667
649
|
c = i.enum.slice(0, s),
|
|
668
650
|
l = i.enum.slice(s);
|
|
669
651
|
i.enum = [].concat(c, [n], l);
|
|
670
|
-
var
|
|
671
|
-
|
|
672
|
-
i.enumextra = [].concat(
|
|
652
|
+
var p = i.enumextra.slice(0, s),
|
|
653
|
+
d = i.enumextra.slice(s);
|
|
654
|
+
i.enumextra = [].concat(p, [a], d);
|
|
673
655
|
}
|
|
674
656
|
this.jsonSchemaChange(r);
|
|
675
657
|
}),
|
|
@@ -684,70 +666,70 @@
|
|
|
684
666
|
);
|
|
685
667
|
}),
|
|
686
668
|
(t.addEnumItem = function (e, t) {
|
|
687
|
-
var n = (0,
|
|
669
|
+
var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
688
670
|
if (n.enum) {
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
this.insertEnumItem(e, t,
|
|
671
|
+
var a = this.getNewEnumIndex(n.enum),
|
|
672
|
+
o = '选项' + (this.curJsonKeyIndex - 1);
|
|
673
|
+
this.insertEnumItem(e, t, a, o);
|
|
692
674
|
}
|
|
693
675
|
}),
|
|
694
676
|
(t.copyEnumItem = function (e, t) {
|
|
695
|
-
var n = (0,
|
|
677
|
+
var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
696
678
|
if (n.enum) {
|
|
697
|
-
var
|
|
698
|
-
|
|
699
|
-
r = this.getNewEnumIndex(n.enum,
|
|
700
|
-
i =
|
|
679
|
+
var a = n.enum[t],
|
|
680
|
+
o = n.enumextra[t],
|
|
681
|
+
r = this.getNewEnumIndex(n.enum, a),
|
|
682
|
+
i = o + '_' + (this.curJsonKeyIndex - 1);
|
|
701
683
|
this.insertEnumItem(e, t, r, i);
|
|
702
684
|
}
|
|
703
685
|
}),
|
|
704
|
-
(t.updateOptionItem = function (e, t, n,
|
|
705
|
-
var r = (0,
|
|
686
|
+
(t.updateOptionItem = function (e, t, n, a, o) {
|
|
687
|
+
var r = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
706
688
|
r.options &&
|
|
707
689
|
r.options[t] &&
|
|
708
|
-
((r.options[t].label = n), (r.options[t].value =
|
|
709
|
-
this.jsonSchemaChange(
|
|
690
|
+
((r.options[t].label = n), (r.options[t].value = a)),
|
|
691
|
+
this.jsonSchemaChange(o);
|
|
710
692
|
}),
|
|
711
693
|
(t.isExitOptionLabel = function (e, t) {
|
|
712
694
|
var n = !1,
|
|
713
|
-
|
|
695
|
+
a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
714
696
|
return (
|
|
715
|
-
|
|
716
|
-
|
|
697
|
+
a.options &&
|
|
698
|
+
a.options.find(function (e) {
|
|
717
699
|
return e.label === t || e.name === t;
|
|
718
700
|
}) &&
|
|
719
701
|
(n = !0),
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
702
|
+
Oe.KeyWordList &&
|
|
703
|
+
Oe.KeyWordList.indexOf(t) >= 0 &&
|
|
704
|
+
S.message.warning(
|
|
723
705
|
t + '是JSONSchema的保留关键字,建议您换一个名称。',
|
|
724
706
|
),
|
|
725
707
|
n
|
|
726
708
|
);
|
|
727
709
|
}),
|
|
728
|
-
(t.updateOptionLabel = function (e, t, n,
|
|
729
|
-
var
|
|
730
|
-
|
|
731
|
-
this.jsonSchemaChange(
|
|
710
|
+
(t.updateOptionLabel = function (e, t, n, a) {
|
|
711
|
+
var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
712
|
+
o.options && o.options[t] && (o.options[t].label = n),
|
|
713
|
+
this.jsonSchemaChange(a);
|
|
732
714
|
}),
|
|
733
|
-
(t.updateOptionValue = function (e, t, n,
|
|
734
|
-
var
|
|
735
|
-
|
|
736
|
-
this.jsonSchemaChange(
|
|
715
|
+
(t.updateOptionValue = function (e, t, n, a) {
|
|
716
|
+
var o = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
717
|
+
o.options && o.options[t] && (o.options[t].value = n),
|
|
718
|
+
this.jsonSchemaChange(a);
|
|
737
719
|
}),
|
|
738
720
|
(t.deleteOptionItem = function (e, t, n) {
|
|
739
|
-
var
|
|
740
|
-
|
|
721
|
+
var a = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
722
|
+
a.options && a.options[t] && a.options.splice(t, 1),
|
|
741
723
|
this.jsonSchemaChange(n);
|
|
742
724
|
}),
|
|
743
|
-
(t.insertOption = function (e, t, n,
|
|
744
|
-
var i = (0,
|
|
725
|
+
(t.insertOption = function (e, t, n, a, o, r) {
|
|
726
|
+
var i = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
745
727
|
if (i.options) {
|
|
746
|
-
var s = 'before' ===
|
|
728
|
+
var s = 'before' === o ? Number(t) : Number(t) + 1,
|
|
747
729
|
c = i.options.slice(0, s),
|
|
748
730
|
l = i.options.slice(s),
|
|
749
|
-
|
|
750
|
-
i.options = [].concat(c, [
|
|
731
|
+
p = { label: n, value: a };
|
|
732
|
+
i.options = [].concat(c, [p], l);
|
|
751
733
|
}
|
|
752
734
|
this.jsonSchemaChange(r);
|
|
753
735
|
}),
|
|
@@ -757,72 +739,33 @@
|
|
|
757
739
|
: 'value1';
|
|
758
740
|
}),
|
|
759
741
|
(t.addOptionItem = function (e, t) {
|
|
760
|
-
var n = (0,
|
|
742
|
+
var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
761
743
|
if (n.options) {
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
this.insertOption(e, t,
|
|
744
|
+
var a = this.getNewOptionValue(n.options),
|
|
745
|
+
o = '选项' + (n.options.length + 1);
|
|
746
|
+
this.insertOption(e, t, o, a);
|
|
765
747
|
}
|
|
766
748
|
}),
|
|
767
749
|
(t.copyOptionItem = function (e, t) {
|
|
768
|
-
var n = (0,
|
|
750
|
+
var n = (0, Oe.getSchemaByIndexRoute)(e, this.jsonSchema);
|
|
769
751
|
if (n.options) {
|
|
770
752
|
n.options[t];
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
this.insertOption(e, t,
|
|
753
|
+
var a = this.getNewOptionValue(n.options),
|
|
754
|
+
o = (label, name + '_copy');
|
|
755
|
+
this.insertOption(e, t, o, a);
|
|
774
756
|
}
|
|
775
757
|
}),
|
|
776
|
-
(t.checkConditionProp = function (e) {
|
|
777
|
-
var t = !1;
|
|
778
|
-
return (
|
|
779
|
-
(this.jsonSchema && this.jsonSchema.conditionProps
|
|
780
|
-
? this.jsonSchema.conditionProps
|
|
781
|
-
: {})[e] && (t = !0),
|
|
782
|
-
t
|
|
783
|
-
);
|
|
784
|
-
}),
|
|
785
|
-
(t.addConditionProp = function (e) {
|
|
786
|
-
if (this.jsonSchema) {
|
|
787
|
-
this.jsonSchema.conditionProps ||
|
|
788
|
-
(this.jsonSchema.conditionProps = {});
|
|
789
|
-
var t = this.jsonSchema.conditionProps;
|
|
790
|
-
e &&
|
|
791
|
-
e.keyRoute &&
|
|
792
|
-
((t[e.keyRoute] = e), this.jsonSchemaChange());
|
|
793
|
-
} else b.message.error('当前schema为空');
|
|
794
|
-
}),
|
|
795
|
-
(t.removeConditionProp = function (e) {
|
|
796
|
-
if (this.jsonSchema) {
|
|
797
|
-
this.jsonSchema.conditionProps ||
|
|
798
|
-
(this.jsonSchema.conditionProps = {});
|
|
799
|
-
var t = this.jsonSchema.conditionProps;
|
|
800
|
-
e && t[e] && (delete t[e], this.jsonSchemaChange());
|
|
801
|
-
} else b.message.error('当前schema为空');
|
|
802
|
-
}),
|
|
803
|
-
(t.cancelConditionProp = function (e, t) {
|
|
804
|
-
if (this.jsonSchema) {
|
|
805
|
-
var n = this.getSchemaByKeyRoute(e);
|
|
806
|
-
n.isConditionProp = !1;
|
|
807
|
-
var o = this.keyRoute2indexRoute(e);
|
|
808
|
-
this.editSchemaData(o, t, n);
|
|
809
|
-
} else b.message.error('当前schema为空');
|
|
810
|
-
}),
|
|
811
|
-
(t.deleteSchemaProp = function (e, t, n) {
|
|
812
|
-
delete (0, Ie.getSchemaByIndexRoute)(e, this.jsonSchema)[t],
|
|
813
|
-
this.jsonSchemaChange(n);
|
|
814
|
-
}),
|
|
815
758
|
f()(e, [
|
|
816
759
|
{
|
|
817
760
|
key: 'JSONSchemaObj',
|
|
818
761
|
get: function () {
|
|
819
|
-
return (0,
|
|
762
|
+
return (0, b.toJS)(this.jsonSchema);
|
|
820
763
|
},
|
|
821
764
|
},
|
|
822
765
|
])
|
|
823
766
|
);
|
|
824
767
|
})()),
|
|
825
|
-
(
|
|
768
|
+
(ue = x()(de.prototype, 'triggerChange', [b.observable], {
|
|
826
769
|
configurable: !0,
|
|
827
770
|
enumerable: !0,
|
|
828
771
|
writable: !0,
|
|
@@ -830,7 +773,7 @@
|
|
|
830
773
|
return !1;
|
|
831
774
|
},
|
|
832
775
|
})),
|
|
833
|
-
(
|
|
776
|
+
(me = x()(de.prototype, 'jsonSchema', [b.observable], {
|
|
834
777
|
configurable: !0,
|
|
835
778
|
enumerable: !0,
|
|
836
779
|
writable: !0,
|
|
@@ -838,15 +781,15 @@
|
|
|
838
781
|
return {};
|
|
839
782
|
},
|
|
840
783
|
})),
|
|
841
|
-
(
|
|
784
|
+
(he = x()(de.prototype, 'SchemaTypeList', [b.observable], {
|
|
842
785
|
configurable: !0,
|
|
843
786
|
enumerable: !0,
|
|
844
787
|
writable: !0,
|
|
845
788
|
initializer: function () {
|
|
846
|
-
return
|
|
789
|
+
return Ee;
|
|
847
790
|
},
|
|
848
791
|
})),
|
|
849
|
-
(
|
|
792
|
+
(ye = x()(de.prototype, 'onChange', [b.observable], {
|
|
850
793
|
configurable: !0,
|
|
851
794
|
enumerable: !0,
|
|
852
795
|
writable: !0,
|
|
@@ -854,350 +797,350 @@
|
|
|
854
797
|
return function () {};
|
|
855
798
|
},
|
|
856
799
|
})),
|
|
857
|
-
|
|
858
|
-
|
|
800
|
+
x()(
|
|
801
|
+
de.prototype,
|
|
859
802
|
'triggerChangeAction',
|
|
860
|
-
[
|
|
803
|
+
[j],
|
|
861
804
|
Object.getOwnPropertyDescriptor(
|
|
862
|
-
|
|
805
|
+
de.prototype,
|
|
863
806
|
'triggerChangeAction',
|
|
864
807
|
),
|
|
865
|
-
|
|
808
|
+
de.prototype,
|
|
866
809
|
),
|
|
867
|
-
|
|
868
|
-
|
|
810
|
+
x()(
|
|
811
|
+
de.prototype,
|
|
869
812
|
'initSchemaTypeList',
|
|
870
|
-
[
|
|
813
|
+
[N],
|
|
871
814
|
Object.getOwnPropertyDescriptor(
|
|
872
|
-
|
|
815
|
+
de.prototype,
|
|
873
816
|
'initSchemaTypeList',
|
|
874
817
|
),
|
|
875
|
-
|
|
818
|
+
de.prototype,
|
|
876
819
|
),
|
|
877
|
-
|
|
878
|
-
|
|
820
|
+
x()(
|
|
821
|
+
de.prototype,
|
|
879
822
|
'initJSONSchemaData',
|
|
880
|
-
[
|
|
823
|
+
[I],
|
|
881
824
|
Object.getOwnPropertyDescriptor(
|
|
882
|
-
|
|
825
|
+
de.prototype,
|
|
883
826
|
'initJSONSchemaData',
|
|
884
827
|
),
|
|
885
|
-
|
|
828
|
+
de.prototype,
|
|
886
829
|
),
|
|
887
|
-
|
|
888
|
-
|
|
830
|
+
x()(
|
|
831
|
+
de.prototype,
|
|
889
832
|
'JSONSchemaObj',
|
|
890
|
-
[
|
|
891
|
-
Object.getOwnPropertyDescriptor(
|
|
892
|
-
|
|
833
|
+
[b.computed],
|
|
834
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'JSONSchemaObj'),
|
|
835
|
+
de.prototype,
|
|
893
836
|
),
|
|
894
|
-
|
|
895
|
-
|
|
837
|
+
x()(
|
|
838
|
+
de.prototype,
|
|
896
839
|
'initOnChange',
|
|
897
|
-
[
|
|
898
|
-
Object.getOwnPropertyDescriptor(
|
|
899
|
-
|
|
840
|
+
[w],
|
|
841
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'initOnChange'),
|
|
842
|
+
de.prototype,
|
|
900
843
|
),
|
|
901
|
-
|
|
902
|
-
|
|
844
|
+
x()(
|
|
845
|
+
de.prototype,
|
|
903
846
|
'jsonSchemaChange',
|
|
904
|
-
[
|
|
847
|
+
[R],
|
|
905
848
|
Object.getOwnPropertyDescriptor(
|
|
906
|
-
|
|
849
|
+
de.prototype,
|
|
907
850
|
'jsonSchemaChange',
|
|
908
851
|
),
|
|
909
|
-
|
|
852
|
+
de.prototype,
|
|
910
853
|
),
|
|
911
|
-
|
|
912
|
-
|
|
854
|
+
x()(
|
|
855
|
+
de.prototype,
|
|
913
856
|
'indexRoute2keyRoute',
|
|
914
|
-
[
|
|
857
|
+
[K],
|
|
915
858
|
Object.getOwnPropertyDescriptor(
|
|
916
|
-
|
|
859
|
+
de.prototype,
|
|
917
860
|
'indexRoute2keyRoute',
|
|
918
861
|
),
|
|
919
|
-
|
|
862
|
+
de.prototype,
|
|
920
863
|
),
|
|
921
|
-
|
|
922
|
-
|
|
864
|
+
x()(
|
|
865
|
+
de.prototype,
|
|
923
866
|
'keyRoute2indexRoute',
|
|
924
|
-
[
|
|
867
|
+
[k],
|
|
925
868
|
Object.getOwnPropertyDescriptor(
|
|
926
|
-
|
|
869
|
+
de.prototype,
|
|
927
870
|
'keyRoute2indexRoute',
|
|
928
871
|
),
|
|
929
|
-
|
|
872
|
+
de.prototype,
|
|
930
873
|
),
|
|
931
|
-
|
|
932
|
-
|
|
874
|
+
x()(
|
|
875
|
+
de.prototype,
|
|
933
876
|
'getSchemaByIndexRoute',
|
|
934
|
-
[
|
|
877
|
+
[T],
|
|
935
878
|
Object.getOwnPropertyDescriptor(
|
|
936
|
-
|
|
879
|
+
de.prototype,
|
|
937
880
|
'getSchemaByIndexRoute',
|
|
938
881
|
),
|
|
939
|
-
|
|
882
|
+
de.prototype,
|
|
940
883
|
),
|
|
941
|
-
|
|
942
|
-
|
|
884
|
+
x()(
|
|
885
|
+
de.prototype,
|
|
943
886
|
'getSchemaByKeyRoute',
|
|
944
887
|
[J],
|
|
945
888
|
Object.getOwnPropertyDescriptor(
|
|
946
|
-
|
|
889
|
+
de.prototype,
|
|
947
890
|
'getSchemaByKeyRoute',
|
|
948
891
|
),
|
|
949
|
-
|
|
892
|
+
de.prototype,
|
|
950
893
|
),
|
|
951
|
-
|
|
952
|
-
|
|
894
|
+
x()(
|
|
895
|
+
de.prototype,
|
|
953
896
|
'getNewJsonKeyIndex',
|
|
954
897
|
[D],
|
|
955
898
|
Object.getOwnPropertyDescriptor(
|
|
956
|
-
|
|
899
|
+
de.prototype,
|
|
957
900
|
'getNewJsonKeyIndex',
|
|
958
901
|
),
|
|
959
|
-
|
|
902
|
+
de.prototype,
|
|
960
903
|
),
|
|
961
|
-
|
|
962
|
-
|
|
904
|
+
x()(
|
|
905
|
+
de.prototype,
|
|
963
906
|
'isExitJsonKey',
|
|
964
|
-
[
|
|
965
|
-
Object.getOwnPropertyDescriptor(
|
|
966
|
-
|
|
907
|
+
[B],
|
|
908
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'isExitJsonKey'),
|
|
909
|
+
de.prototype,
|
|
967
910
|
),
|
|
968
|
-
|
|
969
|
-
|
|
911
|
+
x()(
|
|
912
|
+
de.prototype,
|
|
970
913
|
'isSupportCurType',
|
|
971
|
-
[
|
|
914
|
+
[P],
|
|
972
915
|
Object.getOwnPropertyDescriptor(
|
|
973
|
-
|
|
916
|
+
de.prototype,
|
|
974
917
|
'isSupportCurType',
|
|
975
918
|
),
|
|
976
|
-
|
|
919
|
+
de.prototype,
|
|
977
920
|
),
|
|
978
|
-
|
|
979
|
-
|
|
921
|
+
x()(
|
|
922
|
+
de.prototype,
|
|
980
923
|
'addChildJson',
|
|
981
924
|
[V],
|
|
982
|
-
Object.getOwnPropertyDescriptor(
|
|
983
|
-
|
|
925
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'addChildJson'),
|
|
926
|
+
de.prototype,
|
|
984
927
|
),
|
|
985
|
-
|
|
986
|
-
|
|
928
|
+
x()(
|
|
929
|
+
de.prototype,
|
|
987
930
|
'changeType',
|
|
988
931
|
[L],
|
|
989
|
-
Object.getOwnPropertyDescriptor(
|
|
990
|
-
|
|
932
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'changeType'),
|
|
933
|
+
de.prototype,
|
|
991
934
|
),
|
|
992
|
-
|
|
993
|
-
|
|
935
|
+
x()(
|
|
936
|
+
de.prototype,
|
|
994
937
|
'updateSchemaData',
|
|
995
938
|
[F],
|
|
996
939
|
Object.getOwnPropertyDescriptor(
|
|
997
|
-
|
|
940
|
+
de.prototype,
|
|
998
941
|
'updateSchemaData',
|
|
999
942
|
),
|
|
1000
|
-
|
|
943
|
+
de.prototype,
|
|
1001
944
|
),
|
|
1002
|
-
|
|
1003
|
-
|
|
945
|
+
x()(
|
|
946
|
+
de.prototype,
|
|
1004
947
|
'editSchemaData',
|
|
1005
948
|
[q],
|
|
1006
|
-
Object.getOwnPropertyDescriptor(
|
|
1007
|
-
|
|
949
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'editSchemaData'),
|
|
950
|
+
de.prototype,
|
|
1008
951
|
),
|
|
1009
|
-
|
|
1010
|
-
|
|
952
|
+
x()(
|
|
953
|
+
de.prototype,
|
|
1011
954
|
'editJsonKey',
|
|
1012
955
|
[A],
|
|
1013
|
-
Object.getOwnPropertyDescriptor(
|
|
1014
|
-
|
|
956
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'editJsonKey'),
|
|
957
|
+
de.prototype,
|
|
1015
958
|
),
|
|
1016
|
-
|
|
1017
|
-
|
|
959
|
+
x()(
|
|
960
|
+
de.prototype,
|
|
1018
961
|
'addNextJsonData',
|
|
1019
962
|
[_],
|
|
1020
963
|
Object.getOwnPropertyDescriptor(
|
|
1021
|
-
|
|
964
|
+
de.prototype,
|
|
1022
965
|
'addNextJsonData',
|
|
1023
966
|
),
|
|
1024
|
-
|
|
967
|
+
de.prototype,
|
|
1025
968
|
),
|
|
1026
|
-
|
|
1027
|
-
|
|
969
|
+
x()(
|
|
970
|
+
de.prototype,
|
|
1028
971
|
'insertJsonData',
|
|
1029
972
|
[M],
|
|
1030
|
-
Object.getOwnPropertyDescriptor(
|
|
1031
|
-
|
|
973
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'insertJsonData'),
|
|
974
|
+
de.prototype,
|
|
1032
975
|
),
|
|
1033
|
-
|
|
1034
|
-
|
|
976
|
+
x()(
|
|
977
|
+
de.prototype,
|
|
1035
978
|
'deleteJsonByIndex_CurKey',
|
|
1036
|
-
[
|
|
979
|
+
[W],
|
|
1037
980
|
Object.getOwnPropertyDescriptor(
|
|
1038
|
-
|
|
981
|
+
de.prototype,
|
|
1039
982
|
'deleteJsonByIndex_CurKey',
|
|
1040
983
|
),
|
|
1041
|
-
|
|
984
|
+
de.prototype,
|
|
1042
985
|
),
|
|
1043
|
-
|
|
1044
|
-
|
|
986
|
+
x()(
|
|
987
|
+
de.prototype,
|
|
1045
988
|
'deleteJsonByIndex',
|
|
1046
|
-
[
|
|
989
|
+
[G],
|
|
1047
990
|
Object.getOwnPropertyDescriptor(
|
|
1048
|
-
|
|
991
|
+
de.prototype,
|
|
1049
992
|
'deleteJsonByIndex',
|
|
1050
993
|
),
|
|
1051
|
-
|
|
994
|
+
de.prototype,
|
|
1052
995
|
),
|
|
1053
|
-
|
|
1054
|
-
|
|
996
|
+
x()(
|
|
997
|
+
de.prototype,
|
|
1055
998
|
'updateEnumItem',
|
|
1056
|
-
[
|
|
1057
|
-
Object.getOwnPropertyDescriptor(
|
|
1058
|
-
|
|
999
|
+
[z],
|
|
1000
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumItem'),
|
|
1001
|
+
de.prototype,
|
|
1059
1002
|
),
|
|
1060
|
-
|
|
1061
|
-
|
|
1003
|
+
x()(
|
|
1004
|
+
de.prototype,
|
|
1062
1005
|
'isExitEnumKey',
|
|
1063
|
-
[
|
|
1064
|
-
Object.getOwnPropertyDescriptor(
|
|
1065
|
-
|
|
1006
|
+
[U],
|
|
1007
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'isExitEnumKey'),
|
|
1008
|
+
de.prototype,
|
|
1066
1009
|
),
|
|
1067
|
-
|
|
1068
|
-
|
|
1010
|
+
x()(
|
|
1011
|
+
de.prototype,
|
|
1069
1012
|
'updateEnumKey',
|
|
1070
|
-
[
|
|
1071
|
-
Object.getOwnPropertyDescriptor(
|
|
1072
|
-
|
|
1013
|
+
[H],
|
|
1014
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumKey'),
|
|
1015
|
+
de.prototype,
|
|
1073
1016
|
),
|
|
1074
|
-
|
|
1075
|
-
|
|
1017
|
+
x()(
|
|
1018
|
+
de.prototype,
|
|
1076
1019
|
'updateEnumText',
|
|
1077
1020
|
[Q],
|
|
1078
|
-
Object.getOwnPropertyDescriptor(
|
|
1079
|
-
|
|
1021
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'updateEnumText'),
|
|
1022
|
+
de.prototype,
|
|
1080
1023
|
),
|
|
1081
|
-
|
|
1082
|
-
|
|
1024
|
+
x()(
|
|
1025
|
+
de.prototype,
|
|
1083
1026
|
'deleteEnumItem',
|
|
1084
1027
|
[X],
|
|
1085
|
-
Object.getOwnPropertyDescriptor(
|
|
1086
|
-
|
|
1028
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'deleteEnumItem'),
|
|
1029
|
+
de.prototype,
|
|
1087
1030
|
),
|
|
1088
|
-
|
|
1089
|
-
|
|
1031
|
+
x()(
|
|
1032
|
+
de.prototype,
|
|
1090
1033
|
'insertEnumItem',
|
|
1091
1034
|
[Y],
|
|
1092
|
-
Object.getOwnPropertyDescriptor(
|
|
1093
|
-
|
|
1035
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'insertEnumItem'),
|
|
1036
|
+
de.prototype,
|
|
1094
1037
|
),
|
|
1095
|
-
|
|
1096
|
-
|
|
1038
|
+
x()(
|
|
1039
|
+
de.prototype,
|
|
1097
1040
|
'getNewEnumIndex',
|
|
1098
1041
|
[Z],
|
|
1099
1042
|
Object.getOwnPropertyDescriptor(
|
|
1100
|
-
|
|
1043
|
+
de.prototype,
|
|
1101
1044
|
'getNewEnumIndex',
|
|
1102
1045
|
),
|
|
1103
|
-
|
|
1046
|
+
de.prototype,
|
|
1104
1047
|
),
|
|
1105
|
-
|
|
1106
|
-
|
|
1048
|
+
x()(
|
|
1049
|
+
de.prototype,
|
|
1107
1050
|
'addEnumItem',
|
|
1108
1051
|
[$],
|
|
1109
|
-
Object.getOwnPropertyDescriptor(
|
|
1110
|
-
|
|
1052
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'addEnumItem'),
|
|
1053
|
+
de.prototype,
|
|
1111
1054
|
),
|
|
1112
|
-
|
|
1113
|
-
|
|
1055
|
+
x()(
|
|
1056
|
+
de.prototype,
|
|
1114
1057
|
'copyEnumItem',
|
|
1115
1058
|
[ee],
|
|
1116
|
-
Object.getOwnPropertyDescriptor(
|
|
1117
|
-
|
|
1059
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'copyEnumItem'),
|
|
1060
|
+
de.prototype,
|
|
1118
1061
|
),
|
|
1119
|
-
|
|
1120
|
-
|
|
1062
|
+
x()(
|
|
1063
|
+
de.prototype,
|
|
1121
1064
|
'updateOptionItem',
|
|
1122
1065
|
[te],
|
|
1123
1066
|
Object.getOwnPropertyDescriptor(
|
|
1124
|
-
|
|
1067
|
+
de.prototype,
|
|
1125
1068
|
'updateOptionItem',
|
|
1126
1069
|
),
|
|
1127
|
-
|
|
1070
|
+
de.prototype,
|
|
1128
1071
|
),
|
|
1129
|
-
|
|
1130
|
-
|
|
1072
|
+
x()(
|
|
1073
|
+
de.prototype,
|
|
1131
1074
|
'isExitOptionLabel',
|
|
1132
1075
|
[ne],
|
|
1133
1076
|
Object.getOwnPropertyDescriptor(
|
|
1134
|
-
|
|
1077
|
+
de.prototype,
|
|
1135
1078
|
'isExitOptionLabel',
|
|
1136
1079
|
),
|
|
1137
|
-
|
|
1080
|
+
de.prototype,
|
|
1138
1081
|
),
|
|
1139
|
-
|
|
1140
|
-
|
|
1082
|
+
x()(
|
|
1083
|
+
de.prototype,
|
|
1141
1084
|
'updateOptionLabel',
|
|
1142
|
-
[
|
|
1085
|
+
[ae],
|
|
1143
1086
|
Object.getOwnPropertyDescriptor(
|
|
1144
|
-
|
|
1087
|
+
de.prototype,
|
|
1145
1088
|
'updateOptionLabel',
|
|
1146
1089
|
),
|
|
1147
|
-
|
|
1090
|
+
de.prototype,
|
|
1148
1091
|
),
|
|
1149
|
-
|
|
1150
|
-
|
|
1092
|
+
x()(
|
|
1093
|
+
de.prototype,
|
|
1151
1094
|
'updateOptionValue',
|
|
1152
|
-
[
|
|
1095
|
+
[oe],
|
|
1153
1096
|
Object.getOwnPropertyDescriptor(
|
|
1154
|
-
|
|
1097
|
+
de.prototype,
|
|
1155
1098
|
'updateOptionValue',
|
|
1156
1099
|
),
|
|
1157
|
-
|
|
1100
|
+
de.prototype,
|
|
1158
1101
|
),
|
|
1159
|
-
|
|
1160
|
-
|
|
1102
|
+
x()(
|
|
1103
|
+
de.prototype,
|
|
1161
1104
|
'deleteOptionItem',
|
|
1162
1105
|
[re],
|
|
1163
1106
|
Object.getOwnPropertyDescriptor(
|
|
1164
|
-
|
|
1107
|
+
de.prototype,
|
|
1165
1108
|
'deleteOptionItem',
|
|
1166
1109
|
),
|
|
1167
|
-
|
|
1110
|
+
de.prototype,
|
|
1168
1111
|
),
|
|
1169
|
-
|
|
1170
|
-
|
|
1112
|
+
x()(
|
|
1113
|
+
de.prototype,
|
|
1171
1114
|
'insertOption',
|
|
1172
1115
|
[ie],
|
|
1173
|
-
Object.getOwnPropertyDescriptor(
|
|
1174
|
-
|
|
1116
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'insertOption'),
|
|
1117
|
+
de.prototype,
|
|
1175
1118
|
),
|
|
1176
|
-
|
|
1177
|
-
|
|
1119
|
+
x()(
|
|
1120
|
+
de.prototype,
|
|
1178
1121
|
'getNewOptionValue',
|
|
1179
1122
|
[se],
|
|
1180
1123
|
Object.getOwnPropertyDescriptor(
|
|
1181
|
-
|
|
1124
|
+
de.prototype,
|
|
1182
1125
|
'getNewOptionValue',
|
|
1183
1126
|
),
|
|
1184
|
-
|
|
1127
|
+
de.prototype,
|
|
1185
1128
|
),
|
|
1186
|
-
|
|
1187
|
-
|
|
1129
|
+
x()(
|
|
1130
|
+
de.prototype,
|
|
1188
1131
|
'addOptionItem',
|
|
1189
1132
|
[ce],
|
|
1190
|
-
Object.getOwnPropertyDescriptor(
|
|
1191
|
-
|
|
1133
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'addOptionItem'),
|
|
1134
|
+
de.prototype,
|
|
1192
1135
|
),
|
|
1193
|
-
|
|
1194
|
-
|
|
1136
|
+
x()(
|
|
1137
|
+
de.prototype,
|
|
1195
1138
|
'copyOptionItem',
|
|
1196
1139
|
[le],
|
|
1197
|
-
Object.getOwnPropertyDescriptor(
|
|
1198
|
-
|
|
1140
|
+
Object.getOwnPropertyDescriptor(de.prototype, 'copyOptionItem'),
|
|
1141
|
+
de.prototype,
|
|
1199
1142
|
),
|
|
1200
|
-
(
|
|
1143
|
+
(ge = x()(de.prototype, 'childElemSort', [pe], {
|
|
1201
1144
|
configurable: !0,
|
|
1202
1145
|
enumerable: !0,
|
|
1203
1146
|
writable: !0,
|
|
@@ -1205,26 +1148,26 @@
|
|
|
1205
1148
|
var e = this;
|
|
1206
1149
|
return function (t) {
|
|
1207
1150
|
for (
|
|
1208
|
-
var n = (0,
|
|
1209
|
-
|
|
1210
|
-
|
|
1151
|
+
var n = (0, Oe.getSchemaByIndexRoute)(t, e.jsonSchema),
|
|
1152
|
+
a = n.propertyOrder,
|
|
1153
|
+
o = [],
|
|
1211
1154
|
r = [],
|
|
1212
1155
|
i = [],
|
|
1213
1156
|
s = [],
|
|
1214
1157
|
c = [],
|
|
1215
1158
|
l = [],
|
|
1216
|
-
d = [],
|
|
1217
1159
|
p = [],
|
|
1160
|
+
d = [],
|
|
1218
1161
|
u = 0,
|
|
1219
|
-
m =
|
|
1162
|
+
m = a.length;
|
|
1220
1163
|
u < m;
|
|
1221
1164
|
u++
|
|
1222
1165
|
) {
|
|
1223
|
-
var h =
|
|
1166
|
+
var h = a[u];
|
|
1224
1167
|
switch (n.properties[h].type) {
|
|
1225
1168
|
case 'input':
|
|
1226
1169
|
case 'url':
|
|
1227
|
-
|
|
1170
|
+
o.push(h);
|
|
1228
1171
|
break;
|
|
1229
1172
|
case 'number':
|
|
1230
1173
|
case 'quantity':
|
|
@@ -1252,259 +1195,117 @@
|
|
|
1252
1195
|
break;
|
|
1253
1196
|
case 'object':
|
|
1254
1197
|
case 'array':
|
|
1255
|
-
|
|
1198
|
+
p.push(h);
|
|
1256
1199
|
break;
|
|
1257
1200
|
default:
|
|
1258
|
-
|
|
1201
|
+
d.push(h);
|
|
1259
1202
|
}
|
|
1260
1203
|
}
|
|
1261
|
-
(n.propertyOrder = [].concat(
|
|
1204
|
+
(n.propertyOrder = [].concat(o, r, i, s, l, c, p, d)),
|
|
1262
1205
|
e.jsonSchemaChange();
|
|
1263
1206
|
};
|
|
1264
1207
|
},
|
|
1265
1208
|
})),
|
|
1266
|
-
|
|
1267
|
-
ge.prototype,
|
|
1268
|
-
'checkConditionProp',
|
|
1269
|
-
[pe],
|
|
1270
|
-
Object.getOwnPropertyDescriptor(
|
|
1271
|
-
ge.prototype,
|
|
1272
|
-
'checkConditionProp',
|
|
1273
|
-
),
|
|
1274
|
-
ge.prototype,
|
|
1275
|
-
),
|
|
1276
|
-
v()(
|
|
1277
|
-
ge.prototype,
|
|
1278
|
-
'addConditionProp',
|
|
1279
|
-
[ue],
|
|
1280
|
-
Object.getOwnPropertyDescriptor(
|
|
1281
|
-
ge.prototype,
|
|
1282
|
-
'addConditionProp',
|
|
1283
|
-
),
|
|
1284
|
-
ge.prototype,
|
|
1285
|
-
),
|
|
1286
|
-
v()(
|
|
1287
|
-
ge.prototype,
|
|
1288
|
-
'removeConditionProp',
|
|
1289
|
-
[me],
|
|
1290
|
-
Object.getOwnPropertyDescriptor(
|
|
1291
|
-
ge.prototype,
|
|
1292
|
-
'removeConditionProp',
|
|
1293
|
-
),
|
|
1294
|
-
ge.prototype,
|
|
1295
|
-
),
|
|
1296
|
-
v()(
|
|
1297
|
-
ge.prototype,
|
|
1298
|
-
'cancelConditionProp',
|
|
1299
|
-
[he],
|
|
1300
|
-
Object.getOwnPropertyDescriptor(
|
|
1301
|
-
ge.prototype,
|
|
1302
|
-
'cancelConditionProp',
|
|
1303
|
-
),
|
|
1304
|
-
ge.prototype,
|
|
1305
|
-
),
|
|
1306
|
-
v()(
|
|
1307
|
-
ge.prototype,
|
|
1308
|
-
'deleteSchemaProp',
|
|
1309
|
-
[ye],
|
|
1310
|
-
Object.getOwnPropertyDescriptor(
|
|
1311
|
-
ge.prototype,
|
|
1312
|
-
'deleteSchemaProp',
|
|
1313
|
-
),
|
|
1314
|
-
ge.prototype,
|
|
1315
|
-
),
|
|
1316
|
-
ge),
|
|
1209
|
+
de),
|
|
1317
1210
|
},
|
|
1318
|
-
|
|
1319
|
-
Je = b.Select.Option,
|
|
1320
|
-
De = (0, l.inject)(function (e) {
|
|
1321
|
-
return {
|
|
1322
|
-
getSchemaByKeyRoute: e.jsonSchemaStore.getSchemaByKeyRoute,
|
|
1323
|
-
};
|
|
1324
|
-
})(
|
|
1325
|
-
(0, l.observer)(function (e) {
|
|
1326
|
-
var t = e.conditionRule,
|
|
1327
|
-
n = e.hiddenRuleConditionValueChange,
|
|
1328
|
-
o = e.getSchemaByKeyRoute,
|
|
1329
|
-
a = {};
|
|
1330
|
-
if (t.conditionProp && t.conditionProp.keyRoute) {
|
|
1331
|
-
var r = o(t.conditionProp.keyRoute);
|
|
1332
|
-
r.items && (a = r.items);
|
|
1333
|
-
}
|
|
1334
|
-
return !t.conditionProp ||
|
|
1335
|
-
('radio' !== t.conditionProp.type &&
|
|
1336
|
-
'select' !== t.conditionProp.type)
|
|
1337
|
-
? t.conditionProp && 'boolean' === t.conditionProp.type
|
|
1338
|
-
? i().createElement(
|
|
1339
|
-
b.Radio.Group,
|
|
1340
|
-
{
|
|
1341
|
-
style: { display: 'inline-block' },
|
|
1342
|
-
onChange: function (e) {
|
|
1343
|
-
n(e.target.value);
|
|
1344
|
-
},
|
|
1345
|
-
defaultValue: t.conditionValue,
|
|
1346
|
-
},
|
|
1347
|
-
i().createElement(
|
|
1348
|
-
b.Radio,
|
|
1349
|
-
{ value: !0, key: !0 },
|
|
1350
|
-
'true',
|
|
1351
|
-
),
|
|
1352
|
-
i().createElement(
|
|
1353
|
-
b.Radio,
|
|
1354
|
-
{ value: !1, key: !1 },
|
|
1355
|
-
'false',
|
|
1356
|
-
),
|
|
1357
|
-
)
|
|
1358
|
-
: i().createElement(b.Input, {
|
|
1359
|
-
defaultValue: t.conditionValue,
|
|
1360
|
-
onPressEnter: function (e) {
|
|
1361
|
-
return n(e.target.value);
|
|
1362
|
-
},
|
|
1363
|
-
onBlur: function (e) {
|
|
1364
|
-
return n(e.target.value);
|
|
1365
|
-
},
|
|
1366
|
-
})
|
|
1367
|
-
: i().createElement(
|
|
1368
|
-
b.Select,
|
|
1369
|
-
{
|
|
1370
|
-
showSearch: !0,
|
|
1371
|
-
defaultValue: t.conditionValue,
|
|
1372
|
-
style: { width: 150 },
|
|
1373
|
-
onChange: function (e) {
|
|
1374
|
-
n(e);
|
|
1375
|
-
},
|
|
1376
|
-
},
|
|
1377
|
-
a &&
|
|
1378
|
-
a.enum &&
|
|
1379
|
-
a.enum.map(function (e, n) {
|
|
1380
|
-
return i().createElement(
|
|
1381
|
-
Je,
|
|
1382
|
-
{ key: e, value: e, select: e === t.conditionValue },
|
|
1383
|
-
a.enumextra[n],
|
|
1384
|
-
);
|
|
1385
|
-
}),
|
|
1386
|
-
);
|
|
1387
|
-
}),
|
|
1388
|
-
);
|
|
1211
|
+
Ie = require('@ant-design/icons');
|
|
1389
1212
|
n(975);
|
|
1390
|
-
var
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
e,
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
a =
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
style: { display: 'inline-block' },
|
|
1414
|
-
defaultChecked: t.default,
|
|
1415
|
-
checkedChildren: 'true',
|
|
1416
|
-
unCheckedChildren: 'false',
|
|
1417
|
-
onChange: function (e) {
|
|
1418
|
-
n.handleValueChange('default', e);
|
|
1419
|
-
},
|
|
1420
|
-
});
|
|
1421
|
-
if ('checkboxes' === e || ('select' === e && t.multiple)) {
|
|
1422
|
-
var a = t.options;
|
|
1423
|
-
return r.createElement(
|
|
1424
|
-
b.Checkbox.Group,
|
|
1425
|
-
{
|
|
1213
|
+
var we = S.Input.TextArea,
|
|
1214
|
+
Re =
|
|
1215
|
+
(S.Select.Option,
|
|
1216
|
+
(function (e) {
|
|
1217
|
+
function t(t) {
|
|
1218
|
+
var n;
|
|
1219
|
+
return (
|
|
1220
|
+
((n = e.call(this, t) || this).handleValueChange = function (
|
|
1221
|
+
e,
|
|
1222
|
+
t,
|
|
1223
|
+
) {
|
|
1224
|
+
var a = (n.props.schemaStore || {}).editSchemaData,
|
|
1225
|
+
o = n.props,
|
|
1226
|
+
r = o.indexRoute,
|
|
1227
|
+
i = o.jsonKey;
|
|
1228
|
+
if (o.targetJsonSchema[e] !== t) {
|
|
1229
|
+
var s = {};
|
|
1230
|
+
(s[e] = t), a(r, i, s);
|
|
1231
|
+
}
|
|
1232
|
+
}),
|
|
1233
|
+
(n.renderDefaultContent = function (e, t, a) {
|
|
1234
|
+
if ('boolean' === e)
|
|
1235
|
+
return r.createElement(S.Switch, {
|
|
1426
1236
|
style: { display: 'inline-block' },
|
|
1237
|
+
defaultChecked: t.default,
|
|
1238
|
+
checkedChildren: 'true',
|
|
1239
|
+
unCheckedChildren: 'false',
|
|
1427
1240
|
onChange: function (e) {
|
|
1428
1241
|
n.handleValueChange('default', e);
|
|
1429
1242
|
},
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
}),
|
|
1442
|
-
);
|
|
1443
|
-
}
|
|
1444
|
-
if ('radio' === e || 'select' === e) {
|
|
1445
|
-
var i = t.options;
|
|
1446
|
-
return r.createElement(
|
|
1447
|
-
b.Radio.Group,
|
|
1448
|
-
{
|
|
1449
|
-
style: { display: 'inline-block' },
|
|
1450
|
-
defaultValue: t.default,
|
|
1451
|
-
onChange: function (e) {
|
|
1452
|
-
var t = e.target.value;
|
|
1453
|
-
n.handleValueChange('default', t);
|
|
1454
|
-
},
|
|
1455
|
-
},
|
|
1456
|
-
i &&
|
|
1457
|
-
i.length > 0 &&
|
|
1458
|
-
i.map(function (e, t) {
|
|
1459
|
-
var n = o + '-options-' + t;
|
|
1460
|
-
return r.createElement(
|
|
1461
|
-
b.Radio,
|
|
1462
|
-
{ value: e.value, key: n },
|
|
1463
|
-
e.label || e.name,
|
|
1464
|
-
);
|
|
1465
|
-
}),
|
|
1466
|
-
);
|
|
1467
|
-
}
|
|
1468
|
-
return 'color' === e
|
|
1469
|
-
? r.createElement(b.Input, {
|
|
1470
|
-
style: { display: 'inline-block' },
|
|
1471
|
-
className: 'color-item-form',
|
|
1472
|
-
type: 'color',
|
|
1473
|
-
defaultValue: t.default,
|
|
1474
|
-
onChange: function (e) {
|
|
1475
|
-
var t = e.target.value;
|
|
1476
|
-
n.handleValueChange('default', t);
|
|
1243
|
+
});
|
|
1244
|
+
if ('checkboxes' === e || ('select' === e && t.multiple)) {
|
|
1245
|
+
var o = t.options;
|
|
1246
|
+
return r.createElement(
|
|
1247
|
+
S.Checkbox.Group,
|
|
1248
|
+
{
|
|
1249
|
+
style: { display: 'inline-block' },
|
|
1250
|
+
onChange: function (e) {
|
|
1251
|
+
n.handleValueChange('default', e);
|
|
1252
|
+
},
|
|
1253
|
+
defaultValue: t.default,
|
|
1477
1254
|
},
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1255
|
+
o &&
|
|
1256
|
+
o.length > 0 &&
|
|
1257
|
+
o.map(function (e, t) {
|
|
1258
|
+
var n = a + '-options-' + t;
|
|
1259
|
+
return r.createElement(
|
|
1260
|
+
S.Checkbox,
|
|
1261
|
+
{ value: e.value, key: n },
|
|
1262
|
+
e.label || e.name,
|
|
1263
|
+
);
|
|
1264
|
+
}),
|
|
1265
|
+
);
|
|
1266
|
+
}
|
|
1267
|
+
if ('radio' === e || 'select' === e) {
|
|
1268
|
+
var i = t.options;
|
|
1269
|
+
return r.createElement(
|
|
1270
|
+
S.Radio.Group,
|
|
1271
|
+
{
|
|
1484
1272
|
style: { display: 'inline-block' },
|
|
1485
|
-
rows: 4,
|
|
1486
|
-
placeholder: '请输入' + t.title + '的默认值',
|
|
1487
1273
|
defaultValue: t.default,
|
|
1488
|
-
|
|
1274
|
+
onChange: function (e) {
|
|
1489
1275
|
var t = e.target.value;
|
|
1490
1276
|
n.handleValueChange('default', t);
|
|
1491
1277
|
},
|
|
1492
|
-
|
|
1278
|
+
},
|
|
1279
|
+
i &&
|
|
1280
|
+
i.length > 0 &&
|
|
1281
|
+
i.map(function (e, t) {
|
|
1282
|
+
var n = a + '-options-' + t;
|
|
1283
|
+
return r.createElement(
|
|
1284
|
+
S.Radio,
|
|
1285
|
+
{ value: e.value, key: n },
|
|
1286
|
+
e.label || e.name,
|
|
1287
|
+
);
|
|
1288
|
+
}),
|
|
1289
|
+
);
|
|
1290
|
+
}
|
|
1291
|
+
return 'color' === e
|
|
1292
|
+
? r.createElement(S.Input, {
|
|
1293
|
+
style: { display: 'inline-block' },
|
|
1294
|
+
className: 'color-item-form',
|
|
1295
|
+
type: 'color',
|
|
1296
|
+
defaultValue: t.default,
|
|
1297
|
+
onChange: function (e) {
|
|
1493
1298
|
var t = e.target.value;
|
|
1494
1299
|
n.handleValueChange('default', t);
|
|
1495
1300
|
},
|
|
1496
1301
|
})
|
|
1497
|
-
: '
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
onChange: function (e) {
|
|
1503
|
-
n.handleValueChange('default', e);
|
|
1504
|
-
},
|
|
1505
|
-
})
|
|
1506
|
-
: r.createElement(b.Input, {
|
|
1302
|
+
: 'textarea' === e ||
|
|
1303
|
+
'codearea' === e ||
|
|
1304
|
+
'htmlarea' === e ||
|
|
1305
|
+
'json' === e
|
|
1306
|
+
? r.createElement(we, {
|
|
1507
1307
|
style: { display: 'inline-block' },
|
|
1308
|
+
rows: 4,
|
|
1508
1309
|
placeholder: '请输入' + t.title + '的默认值',
|
|
1509
1310
|
defaultValue: t.default,
|
|
1510
1311
|
onPressEnter: function (e) {
|
|
@@ -1515,79 +1316,47 @@
|
|
|
1515
1316
|
var t = e.target.value;
|
|
1516
1317
|
n.handleValueChange('default', t);
|
|
1517
1318
|
},
|
|
1518
|
-
})
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
(
|
|
1549
|
-
var
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
(o.conditionValue = e),
|
|
1560
|
-
n.handleValueChange('hiddenRule', o);
|
|
1561
|
-
}),
|
|
1562
|
-
(n.handleValueChange = n.handleValueChange.bind(n)),
|
|
1563
|
-
n
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
return (
|
|
1567
|
-
a()(t, e),
|
|
1568
|
-
(t.prototype.render = function () {
|
|
1569
|
-
var e,
|
|
1570
|
-
t,
|
|
1571
|
-
n = this,
|
|
1572
|
-
o = this.props,
|
|
1573
|
-
a = o.nodeKey,
|
|
1574
|
-
i = o.indexRoute,
|
|
1575
|
-
s = o.targetJsonSchema,
|
|
1576
|
-
c = o.checkConditionProp,
|
|
1577
|
-
l = o.jsonSchema,
|
|
1578
|
-
d = o.indexRoute2keyRoute,
|
|
1579
|
-
p = s.type,
|
|
1580
|
-
u = d(i);
|
|
1581
|
-
t = (0, Ie.hasProperties)(s.isConditionProp)
|
|
1582
|
-
? s.isConditionProp
|
|
1583
|
-
: c(u);
|
|
1584
|
-
var m = {};
|
|
1585
|
-
l.conditionProps && (m = l.conditionProps);
|
|
1586
|
-
var h = Object.keys(m),
|
|
1587
|
-
y = {};
|
|
1588
|
-
return (
|
|
1589
|
-
s.hiddenRule && (y = s.hiddenRule),
|
|
1590
|
-
r.createElement(
|
|
1319
|
+
})
|
|
1320
|
+
: 'number' === e
|
|
1321
|
+
? r.createElement(S.InputNumber, {
|
|
1322
|
+
style: { display: 'inline-block' },
|
|
1323
|
+
placeholder: '请输入' + t.title + '的默认值',
|
|
1324
|
+
defaultValue: t.default,
|
|
1325
|
+
onChange: function (e) {
|
|
1326
|
+
n.handleValueChange('default', e);
|
|
1327
|
+
},
|
|
1328
|
+
})
|
|
1329
|
+
: r.createElement(S.Input, {
|
|
1330
|
+
style: { display: 'inline-block' },
|
|
1331
|
+
placeholder: '请输入' + t.title + '的默认值',
|
|
1332
|
+
defaultValue: t.default,
|
|
1333
|
+
onPressEnter: function (e) {
|
|
1334
|
+
var t = e.target.value;
|
|
1335
|
+
n.handleValueChange('default', t);
|
|
1336
|
+
},
|
|
1337
|
+
onBlur: function (e) {
|
|
1338
|
+
var t = e.target.value;
|
|
1339
|
+
n.handleValueChange('default', t);
|
|
1340
|
+
},
|
|
1341
|
+
});
|
|
1342
|
+
}),
|
|
1343
|
+
(n.handleValueChange = n.handleValueChange.bind(n)),
|
|
1344
|
+
n
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
return (
|
|
1348
|
+
o()(t, e),
|
|
1349
|
+
(t.prototype.render = function () {
|
|
1350
|
+
var e,
|
|
1351
|
+
t = this,
|
|
1352
|
+
n = (this.props.schemaStore || {}).indexRoute2keyRoute,
|
|
1353
|
+
a = this.props,
|
|
1354
|
+
o = a.nodeKey,
|
|
1355
|
+
i = a.indexRoute,
|
|
1356
|
+
s = a.targetJsonSchema,
|
|
1357
|
+
c = s.type,
|
|
1358
|
+
l = (n(i), s.isConditionProp);
|
|
1359
|
+
return r.createElement(
|
|
1591
1360
|
'div',
|
|
1592
1361
|
{ className: 'advance-config-model' },
|
|
1593
1362
|
(function (e) {
|
|
@@ -1603,23 +1372,24 @@
|
|
|
1603
1372
|
'date',
|
|
1604
1373
|
'date-time',
|
|
1605
1374
|
'time',
|
|
1375
|
+
'input-image',
|
|
1606
1376
|
].indexOf(e) > -1
|
|
1607
1377
|
);
|
|
1608
|
-
})(
|
|
1378
|
+
})(c) &&
|
|
1609
1379
|
r.createElement(
|
|
1610
1380
|
'div',
|
|
1611
1381
|
{
|
|
1612
1382
|
className: 'wide-screen-element-warp',
|
|
1613
|
-
key:
|
|
1383
|
+
key: o + '-isConditionProp',
|
|
1614
1384
|
},
|
|
1615
1385
|
r.createElement(
|
|
1616
1386
|
'div',
|
|
1617
1387
|
{ className: 'element-title' },
|
|
1618
1388
|
r.createElement(
|
|
1619
|
-
|
|
1389
|
+
S.Tooltip,
|
|
1620
1390
|
{
|
|
1621
1391
|
title:
|
|
1622
|
-
'
|
|
1392
|
+
'设置为条件字段后,其他字段可根据其数值变化进行实时联动',
|
|
1623
1393
|
placement: 'top',
|
|
1624
1394
|
},
|
|
1625
1395
|
r.createElement(
|
|
@@ -1636,32 +1406,32 @@
|
|
|
1636
1406
|
'div',
|
|
1637
1407
|
{
|
|
1638
1408
|
className: 'form-item-box',
|
|
1639
|
-
key:
|
|
1409
|
+
key: o + '-isConditionProp-switch',
|
|
1640
1410
|
},
|
|
1641
|
-
r.createElement(
|
|
1411
|
+
r.createElement(S.Switch, {
|
|
1642
1412
|
style: { display: 'inline-block' },
|
|
1643
|
-
defaultChecked:
|
|
1413
|
+
defaultChecked: l,
|
|
1644
1414
|
checkedChildren: '是',
|
|
1645
1415
|
unCheckedChildren: '否',
|
|
1646
1416
|
onChange: function (e) {
|
|
1647
|
-
|
|
1417
|
+
t.handleValueChange('isConditionProp', e);
|
|
1648
1418
|
},
|
|
1649
1419
|
}),
|
|
1650
1420
|
),
|
|
1651
1421
|
),
|
|
1652
1422
|
),
|
|
1653
|
-
'select' ===
|
|
1423
|
+
'select' === c &&
|
|
1654
1424
|
r.createElement(
|
|
1655
1425
|
'div',
|
|
1656
1426
|
{
|
|
1657
1427
|
className: 'wide-screen-element-warp',
|
|
1658
|
-
key:
|
|
1428
|
+
key: o + '-selectConfig',
|
|
1659
1429
|
},
|
|
1660
1430
|
r.createElement(
|
|
1661
1431
|
'div',
|
|
1662
1432
|
{ className: 'element-title' },
|
|
1663
1433
|
r.createElement(
|
|
1664
|
-
|
|
1434
|
+
S.Tooltip,
|
|
1665
1435
|
{
|
|
1666
1436
|
title:
|
|
1667
1437
|
'开启多选后,select下拉列表支持选择多个选项。',
|
|
@@ -1681,15 +1451,15 @@
|
|
|
1681
1451
|
'div',
|
|
1682
1452
|
{
|
|
1683
1453
|
className: 'form-item-box',
|
|
1684
|
-
key:
|
|
1454
|
+
key: o + '-selectConfig-multiple',
|
|
1685
1455
|
},
|
|
1686
|
-
r.createElement(
|
|
1456
|
+
r.createElement(S.Switch, {
|
|
1687
1457
|
style: { display: 'inline-block' },
|
|
1688
1458
|
defaultChecked: s.multiple,
|
|
1689
1459
|
checkedChildren: '多选',
|
|
1690
1460
|
unCheckedChildren: '单选',
|
|
1691
1461
|
onChange: function (e) {
|
|
1692
|
-
|
|
1462
|
+
t.handleValueChange('multiple', e);
|
|
1693
1463
|
},
|
|
1694
1464
|
}),
|
|
1695
1465
|
),
|
|
@@ -1698,7 +1468,7 @@
|
|
|
1698
1468
|
(function (e) {
|
|
1699
1469
|
return (
|
|
1700
1470
|
[]
|
|
1701
|
-
.concat(
|
|
1471
|
+
.concat(fe, [
|
|
1702
1472
|
'quantity',
|
|
1703
1473
|
'text-editor',
|
|
1704
1474
|
'json',
|
|
@@ -1707,18 +1477,18 @@
|
|
|
1707
1477
|
])
|
|
1708
1478
|
.indexOf(e) > -1
|
|
1709
1479
|
);
|
|
1710
|
-
})(
|
|
1480
|
+
})(c) &&
|
|
1711
1481
|
r.createElement(
|
|
1712
1482
|
'div',
|
|
1713
1483
|
{
|
|
1714
1484
|
className: 'wide-screen-element-warp',
|
|
1715
|
-
key:
|
|
1485
|
+
key: o + '-readOnly-' + s.readOnly,
|
|
1716
1486
|
},
|
|
1717
1487
|
r.createElement(
|
|
1718
1488
|
'div',
|
|
1719
1489
|
{ className: 'element-title' },
|
|
1720
1490
|
r.createElement(
|
|
1721
|
-
|
|
1491
|
+
S.Tooltip,
|
|
1722
1492
|
{
|
|
1723
1493
|
title:
|
|
1724
1494
|
'当前属性设置为只读后,用户不能对其进行任何编辑操作',
|
|
@@ -1737,13 +1507,13 @@
|
|
|
1737
1507
|
r.createElement(
|
|
1738
1508
|
'div',
|
|
1739
1509
|
{ className: 'form-item-box' },
|
|
1740
|
-
r.createElement(
|
|
1510
|
+
r.createElement(S.Switch, {
|
|
1741
1511
|
style: { display: 'inline-block' },
|
|
1742
1512
|
defaultChecked: s.readOnly,
|
|
1743
1513
|
checkedChildren: 'true',
|
|
1744
1514
|
unCheckedChildren: 'false',
|
|
1745
1515
|
onChange: function (e) {
|
|
1746
|
-
|
|
1516
|
+
t.handleValueChange('readOnly', e);
|
|
1747
1517
|
},
|
|
1748
1518
|
}),
|
|
1749
1519
|
),
|
|
@@ -1752,7 +1522,7 @@
|
|
|
1752
1522
|
(function (e) {
|
|
1753
1523
|
return (
|
|
1754
1524
|
[]
|
|
1755
|
-
.concat(
|
|
1525
|
+
.concat(fe, [
|
|
1756
1526
|
'quantity',
|
|
1757
1527
|
'text-editor',
|
|
1758
1528
|
'json',
|
|
@@ -1761,18 +1531,18 @@
|
|
|
1761
1531
|
])
|
|
1762
1532
|
.indexOf(e) > -1
|
|
1763
1533
|
);
|
|
1764
|
-
})(
|
|
1534
|
+
})(c) &&
|
|
1765
1535
|
r.createElement(
|
|
1766
1536
|
'div',
|
|
1767
1537
|
{
|
|
1768
1538
|
className: 'wide-screen-element-warp',
|
|
1769
|
-
key:
|
|
1539
|
+
key: o + '-isRequired-' + s.isRequired,
|
|
1770
1540
|
},
|
|
1771
1541
|
r.createElement(
|
|
1772
1542
|
'div',
|
|
1773
1543
|
{ className: 'element-title' },
|
|
1774
1544
|
r.createElement(
|
|
1775
|
-
|
|
1545
|
+
S.Tooltip,
|
|
1776
1546
|
{
|
|
1777
1547
|
title:
|
|
1778
1548
|
'当前属性设置为必填项后,如果用户没有给其设置数值,则会进行标红提示。',
|
|
@@ -1791,13 +1561,13 @@
|
|
|
1791
1561
|
r.createElement(
|
|
1792
1562
|
'div',
|
|
1793
1563
|
{ className: 'form-item-box' },
|
|
1794
|
-
r.createElement(
|
|
1564
|
+
r.createElement(S.Switch, {
|
|
1795
1565
|
style: { display: 'inline-block' },
|
|
1796
1566
|
defaultChecked: s.isRequired,
|
|
1797
1567
|
checkedChildren: 'true',
|
|
1798
1568
|
unCheckedChildren: 'false',
|
|
1799
1569
|
onChange: function (e) {
|
|
1800
|
-
|
|
1570
|
+
t.handleValueChange('isRequired', e);
|
|
1801
1571
|
},
|
|
1802
1572
|
}),
|
|
1803
1573
|
),
|
|
@@ -1806,21 +1576,21 @@
|
|
|
1806
1576
|
(function (e) {
|
|
1807
1577
|
return (
|
|
1808
1578
|
[]
|
|
1809
|
-
.concat(
|
|
1579
|
+
.concat(fe, ['json', 'codearea', 'htmlarea'])
|
|
1810
1580
|
.indexOf(e) > -1
|
|
1811
1581
|
);
|
|
1812
|
-
})(
|
|
1582
|
+
})(c) &&
|
|
1813
1583
|
r.createElement(
|
|
1814
1584
|
'div',
|
|
1815
1585
|
{
|
|
1816
1586
|
className: 'wide-screen-element-warp',
|
|
1817
|
-
key:
|
|
1587
|
+
key: o + '-default',
|
|
1818
1588
|
},
|
|
1819
1589
|
r.createElement(
|
|
1820
1590
|
'div',
|
|
1821
1591
|
{ className: 'element-title' },
|
|
1822
1592
|
r.createElement(
|
|
1823
|
-
|
|
1593
|
+
S.Tooltip,
|
|
1824
1594
|
{ placement: 'top' },
|
|
1825
1595
|
r.createElement(
|
|
1826
1596
|
'span',
|
|
@@ -1835,7 +1605,7 @@
|
|
|
1835
1605
|
r.createElement(
|
|
1836
1606
|
'div',
|
|
1837
1607
|
{ className: 'form-item-box' },
|
|
1838
|
-
this.renderDefaultContent(
|
|
1608
|
+
this.renderDefaultContent(c, s, o),
|
|
1839
1609
|
),
|
|
1840
1610
|
),
|
|
1841
1611
|
),
|
|
@@ -1843,13 +1613,13 @@
|
|
|
1843
1613
|
'div',
|
|
1844
1614
|
{
|
|
1845
1615
|
className: 'wide-screen-element-warp',
|
|
1846
|
-
key:
|
|
1616
|
+
key: o + '-description',
|
|
1847
1617
|
},
|
|
1848
1618
|
r.createElement(
|
|
1849
1619
|
'div',
|
|
1850
1620
|
{ className: 'element-title' },
|
|
1851
1621
|
r.createElement(
|
|
1852
|
-
|
|
1622
|
+
S.Tooltip,
|
|
1853
1623
|
{
|
|
1854
1624
|
title:
|
|
1855
1625
|
'字段描述内容将作为Title的补充信息提供给用户',
|
|
@@ -1868,17 +1638,17 @@
|
|
|
1868
1638
|
r.createElement(
|
|
1869
1639
|
'div',
|
|
1870
1640
|
{ className: 'form-item-box' },
|
|
1871
|
-
r.createElement(
|
|
1641
|
+
r.createElement(S.Input, {
|
|
1872
1642
|
style: { display: 'inline-block' },
|
|
1873
1643
|
placeholder: '请输入' + s.title + '的字段描述',
|
|
1874
1644
|
defaultValue: s.description,
|
|
1875
1645
|
onPressEnter: function (e) {
|
|
1876
|
-
var
|
|
1877
|
-
|
|
1646
|
+
var n = e.target.value;
|
|
1647
|
+
t.handleValueChange('description', n);
|
|
1878
1648
|
},
|
|
1879
1649
|
onBlur: function (e) {
|
|
1880
|
-
var
|
|
1881
|
-
|
|
1650
|
+
var n = e.target.value;
|
|
1651
|
+
t.handleValueChange('description', n);
|
|
1882
1652
|
},
|
|
1883
1653
|
}),
|
|
1884
1654
|
),
|
|
@@ -1888,13 +1658,13 @@
|
|
|
1888
1658
|
'div',
|
|
1889
1659
|
{
|
|
1890
1660
|
className: 'wide-screen-element-warp',
|
|
1891
|
-
key:
|
|
1661
|
+
key: o + '-showKey',
|
|
1892
1662
|
},
|
|
1893
1663
|
r.createElement(
|
|
1894
1664
|
'div',
|
|
1895
1665
|
{ className: 'element-title' },
|
|
1896
1666
|
r.createElement(
|
|
1897
|
-
|
|
1667
|
+
S.Tooltip,
|
|
1898
1668
|
{
|
|
1899
1669
|
title:
|
|
1900
1670
|
'开启后,在JSONEditor端会展示当前Key值,以便增加辨识度。',
|
|
@@ -1913,13 +1683,13 @@
|
|
|
1913
1683
|
r.createElement(
|
|
1914
1684
|
'div',
|
|
1915
1685
|
{ className: 'form-item-box' },
|
|
1916
|
-
r.createElement(
|
|
1686
|
+
r.createElement(S.Switch, {
|
|
1917
1687
|
style: { display: 'inline-block' },
|
|
1918
1688
|
defaultChecked: s.showKey,
|
|
1919
1689
|
checkedChildren: 'true',
|
|
1920
1690
|
unCheckedChildren: 'false',
|
|
1921
1691
|
onChange: function (e) {
|
|
1922
|
-
|
|
1692
|
+
t.handleValueChange('showKey', e);
|
|
1923
1693
|
},
|
|
1924
1694
|
}),
|
|
1925
1695
|
),
|
|
@@ -1940,18 +1710,18 @@
|
|
|
1940
1710
|
'htmlarea',
|
|
1941
1711
|
].indexOf(e) > -1
|
|
1942
1712
|
);
|
|
1943
|
-
})(
|
|
1713
|
+
})(c) &&
|
|
1944
1714
|
r.createElement(
|
|
1945
1715
|
'div',
|
|
1946
1716
|
{
|
|
1947
1717
|
className: 'wide-screen-element-warp',
|
|
1948
|
-
key:
|
|
1718
|
+
key: o + '-placeholder',
|
|
1949
1719
|
},
|
|
1950
1720
|
r.createElement(
|
|
1951
1721
|
'div',
|
|
1952
1722
|
{ className: 'element-title' },
|
|
1953
1723
|
r.createElement(
|
|
1954
|
-
|
|
1724
|
+
S.Tooltip,
|
|
1955
1725
|
{
|
|
1956
1726
|
title:
|
|
1957
1727
|
'输入提示内容将作为输入区域的提示信息展示给用户',
|
|
@@ -1970,36 +1740,36 @@
|
|
|
1970
1740
|
r.createElement(
|
|
1971
1741
|
'div',
|
|
1972
1742
|
{ className: 'form-item-box' },
|
|
1973
|
-
r.createElement(
|
|
1743
|
+
r.createElement(S.Input, {
|
|
1974
1744
|
style: { display: 'inline-block' },
|
|
1975
1745
|
placeholder: '请输入' + s.title + '的输入提示',
|
|
1976
1746
|
defaultValue: s.placeholder,
|
|
1977
1747
|
onPressEnter: function (e) {
|
|
1978
|
-
var
|
|
1979
|
-
|
|
1748
|
+
var n = e.target.value;
|
|
1749
|
+
t.handleValueChange('placeholder', n);
|
|
1980
1750
|
},
|
|
1981
1751
|
onBlur: function (e) {
|
|
1982
|
-
var
|
|
1983
|
-
|
|
1752
|
+
var n = e.target.value;
|
|
1753
|
+
t.handleValueChange('placeholder', n);
|
|
1984
1754
|
},
|
|
1985
1755
|
}),
|
|
1986
1756
|
),
|
|
1987
1757
|
),
|
|
1988
1758
|
),
|
|
1989
1759
|
(function (e) {
|
|
1990
|
-
return [].concat(
|
|
1991
|
-
})(
|
|
1760
|
+
return [].concat(ve, ['array']).indexOf(e) > -1;
|
|
1761
|
+
})(c) &&
|
|
1992
1762
|
r.createElement(
|
|
1993
1763
|
'div',
|
|
1994
1764
|
{
|
|
1995
1765
|
className: 'wide-screen-element-warp',
|
|
1996
|
-
key:
|
|
1766
|
+
key: o + '-showCodeViewBtn-' + s.showCodeViewBtn,
|
|
1997
1767
|
},
|
|
1998
1768
|
r.createElement(
|
|
1999
1769
|
'div',
|
|
2000
1770
|
{ className: 'element-title' },
|
|
2001
1771
|
r.createElement(
|
|
2002
|
-
|
|
1772
|
+
S.Tooltip,
|
|
2003
1773
|
{
|
|
2004
1774
|
title:
|
|
2005
1775
|
'用于控制是否显示源码模式切换按钮,默认显示',
|
|
@@ -2018,20 +1788,20 @@
|
|
|
2018
1788
|
r.createElement(
|
|
2019
1789
|
'div',
|
|
2020
1790
|
{ className: 'form-item-box' },
|
|
2021
|
-
r.createElement(
|
|
1791
|
+
r.createElement(S.Switch, {
|
|
2022
1792
|
style: { display: 'inline-block' },
|
|
2023
1793
|
defaultChecked:
|
|
2024
1794
|
null == (e = s.showCodeViewBtn) || e,
|
|
2025
1795
|
checkedChildren: 'true',
|
|
2026
1796
|
unCheckedChildren: 'false',
|
|
2027
1797
|
onChange: function (e) {
|
|
2028
|
-
|
|
1798
|
+
t.handleValueChange('showCodeViewBtn', e);
|
|
2029
1799
|
},
|
|
2030
1800
|
}),
|
|
2031
1801
|
),
|
|
2032
1802
|
),
|
|
2033
1803
|
),
|
|
2034
|
-
'number' === (0,
|
|
1804
|
+
'number' === (0, Oe.getExpectType)(c) &&
|
|
2035
1805
|
r.createElement(
|
|
2036
1806
|
r.Fragment,
|
|
2037
1807
|
null,
|
|
@@ -2039,13 +1809,13 @@
|
|
|
2039
1809
|
'div',
|
|
2040
1810
|
{
|
|
2041
1811
|
className: 'wide-screen-element-warp',
|
|
2042
|
-
key:
|
|
1812
|
+
key: o + '-minimum-' + s.minimum,
|
|
2043
1813
|
},
|
|
2044
1814
|
r.createElement(
|
|
2045
1815
|
'div',
|
|
2046
1816
|
{ className: 'element-title' },
|
|
2047
1817
|
r.createElement(
|
|
2048
|
-
|
|
1818
|
+
S.Tooltip,
|
|
2049
1819
|
{
|
|
2050
1820
|
title:
|
|
2051
1821
|
'设置最小值后,用户输入的数值必须大于当前最小值',
|
|
@@ -2064,16 +1834,16 @@
|
|
|
2064
1834
|
r.createElement(
|
|
2065
1835
|
'div',
|
|
2066
1836
|
{ className: 'form-item-box' },
|
|
2067
|
-
r.createElement(
|
|
1837
|
+
r.createElement(S.InputNumber, {
|
|
2068
1838
|
style: { display: 'inline-block' },
|
|
2069
1839
|
defaultValue: s.minimum,
|
|
2070
1840
|
onPressEnter: function (e) {
|
|
2071
|
-
var
|
|
2072
|
-
|
|
1841
|
+
var n = e.target.value;
|
|
1842
|
+
t.handleValueChange('minimum', n);
|
|
2073
1843
|
},
|
|
2074
1844
|
onBlur: function (e) {
|
|
2075
|
-
var
|
|
2076
|
-
|
|
1845
|
+
var n = e.target.value;
|
|
1846
|
+
t.handleValueChange('minimum', n);
|
|
2077
1847
|
},
|
|
2078
1848
|
}),
|
|
2079
1849
|
),
|
|
@@ -2083,13 +1853,13 @@
|
|
|
2083
1853
|
'div',
|
|
2084
1854
|
{
|
|
2085
1855
|
className: 'wide-screen-element-warp',
|
|
2086
|
-
key:
|
|
1856
|
+
key: o + '-maximum-' + s.maximum,
|
|
2087
1857
|
},
|
|
2088
1858
|
r.createElement(
|
|
2089
1859
|
'div',
|
|
2090
1860
|
{ className: 'element-title' },
|
|
2091
1861
|
r.createElement(
|
|
2092
|
-
|
|
1862
|
+
S.Tooltip,
|
|
2093
1863
|
{
|
|
2094
1864
|
title:
|
|
2095
1865
|
'设置最大值后,用户输入的数值必须大于当前最大值',
|
|
@@ -2108,23 +1878,23 @@
|
|
|
2108
1878
|
r.createElement(
|
|
2109
1879
|
'div',
|
|
2110
1880
|
{ className: 'form-item-box' },
|
|
2111
|
-
r.createElement(
|
|
1881
|
+
r.createElement(S.InputNumber, {
|
|
2112
1882
|
style: { display: 'inline-block' },
|
|
2113
1883
|
defaultValue: s.maximum,
|
|
2114
1884
|
onPressEnter: function (e) {
|
|
2115
|
-
var
|
|
2116
|
-
|
|
1885
|
+
var n = e.target.value;
|
|
1886
|
+
t.handleValueChange('maximum', n);
|
|
2117
1887
|
},
|
|
2118
1888
|
onBlur: function (e) {
|
|
2119
|
-
var
|
|
2120
|
-
|
|
1889
|
+
var n = e.target.value;
|
|
1890
|
+
t.handleValueChange('maximum', n);
|
|
2121
1891
|
},
|
|
2122
1892
|
}),
|
|
2123
1893
|
),
|
|
2124
1894
|
),
|
|
2125
1895
|
),
|
|
2126
1896
|
),
|
|
2127
|
-
'array' === (0,
|
|
1897
|
+
'array' === (0, Oe.getExpectType)(c) &&
|
|
2128
1898
|
r.createElement(
|
|
2129
1899
|
r.Fragment,
|
|
2130
1900
|
null,
|
|
@@ -2132,13 +1902,13 @@
|
|
|
2132
1902
|
'div',
|
|
2133
1903
|
{
|
|
2134
1904
|
className: 'wide-screen-element-warp',
|
|
2135
|
-
key:
|
|
1905
|
+
key: o + '-minimum-child',
|
|
2136
1906
|
},
|
|
2137
1907
|
r.createElement(
|
|
2138
1908
|
'div',
|
|
2139
1909
|
{ className: 'element-title' },
|
|
2140
1910
|
r.createElement(
|
|
2141
|
-
|
|
1911
|
+
S.Tooltip,
|
|
2142
1912
|
{
|
|
2143
1913
|
title: '用于限制数据项最小个数',
|
|
2144
1914
|
placement: 'top',
|
|
@@ -2156,11 +1926,11 @@
|
|
|
2156
1926
|
r.createElement(
|
|
2157
1927
|
'div',
|
|
2158
1928
|
{ className: 'form-item-box' },
|
|
2159
|
-
r.createElement(
|
|
1929
|
+
r.createElement(S.InputNumber, {
|
|
2160
1930
|
style: { display: 'inline-block' },
|
|
2161
1931
|
defaultValue: s['minimum-child'],
|
|
2162
1932
|
onChange: function (e) {
|
|
2163
|
-
|
|
1933
|
+
t.handleValueChange('minimum-child', e);
|
|
2164
1934
|
},
|
|
2165
1935
|
}),
|
|
2166
1936
|
),
|
|
@@ -2170,13 +1940,13 @@
|
|
|
2170
1940
|
'div',
|
|
2171
1941
|
{
|
|
2172
1942
|
className: 'wide-screen-element-warp',
|
|
2173
|
-
key:
|
|
1943
|
+
key: o + '-maximum-child',
|
|
2174
1944
|
},
|
|
2175
1945
|
r.createElement(
|
|
2176
1946
|
'div',
|
|
2177
1947
|
{ className: 'element-title' },
|
|
2178
1948
|
r.createElement(
|
|
2179
|
-
|
|
1949
|
+
S.Tooltip,
|
|
2180
1950
|
{
|
|
2181
1951
|
title: '用于限制数据项最多个数',
|
|
2182
1952
|
placement: 'top',
|
|
@@ -2194,269 +1964,155 @@
|
|
|
2194
1964
|
r.createElement(
|
|
2195
1965
|
'div',
|
|
2196
1966
|
{ className: 'form-item-box' },
|
|
2197
|
-
r.createElement(
|
|
1967
|
+
r.createElement(S.InputNumber, {
|
|
2198
1968
|
style: { display: 'inline-block' },
|
|
2199
1969
|
defaultValue: s['maximum-child'],
|
|
2200
1970
|
onChange: function (e) {
|
|
2201
|
-
|
|
1971
|
+
t.handleValueChange('maximum-child', e);
|
|
2202
1972
|
},
|
|
2203
1973
|
}),
|
|
2204
1974
|
),
|
|
2205
1975
|
),
|
|
2206
1976
|
),
|
|
2207
1977
|
),
|
|
2208
|
-
|
|
1978
|
+
r.createElement(
|
|
1979
|
+
'div',
|
|
1980
|
+
{
|
|
1981
|
+
className: 'wide-screen-element-warp',
|
|
1982
|
+
key: o + '-onShow',
|
|
1983
|
+
},
|
|
2209
1984
|
r.createElement(
|
|
2210
1985
|
'div',
|
|
2211
|
-
{ className: '
|
|
1986
|
+
{ className: 'element-title' },
|
|
2212
1987
|
r.createElement(
|
|
2213
|
-
|
|
2214
|
-
{
|
|
1988
|
+
S.Tooltip,
|
|
1989
|
+
{
|
|
1990
|
+
title:
|
|
1991
|
+
'用于设置显隐表达式(onShow),比如设置 "dataType === 1",则表示当数据域中 dataType 为 1 时显示当前配置项。',
|
|
1992
|
+
placement: 'top',
|
|
1993
|
+
},
|
|
2215
1994
|
r.createElement(
|
|
2216
1995
|
'span',
|
|
2217
1996
|
{ className: 'title-text' },
|
|
2218
|
-
'
|
|
2219
|
-
),
|
|
2220
|
-
),
|
|
2221
|
-
r.createElement(
|
|
2222
|
-
'div',
|
|
2223
|
-
{ className: 'content-item' },
|
|
2224
|
-
r.createElement(
|
|
2225
|
-
b.Button,
|
|
2226
|
-
{
|
|
2227
|
-
size: 'small',
|
|
2228
|
-
className: 'add-rule-condition-btn',
|
|
2229
|
-
onClick: this.addHiddenRule,
|
|
2230
|
-
},
|
|
2231
|
-
'添加隐藏规则',
|
|
1997
|
+
'显隐表达式',
|
|
2232
1998
|
),
|
|
2233
1999
|
),
|
|
2234
2000
|
),
|
|
2235
|
-
s.hiddenRule &&
|
|
2236
2001
|
r.createElement(
|
|
2237
2002
|
'div',
|
|
2238
|
-
{
|
|
2239
|
-
className: 'wide-screen-element-warp',
|
|
2240
|
-
key:
|
|
2241
|
-
a + '-clearValueOnHidden-' + s.clearValueOnHidden,
|
|
2242
|
-
},
|
|
2003
|
+
{ className: 'content-item' },
|
|
2243
2004
|
r.createElement(
|
|
2244
2005
|
'div',
|
|
2245
|
-
{ className: '
|
|
2246
|
-
r.createElement(
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2006
|
+
{ className: 'form-item-box' },
|
|
2007
|
+
r.createElement(S.Input, {
|
|
2008
|
+
style: { display: 'inline-block' },
|
|
2009
|
+
placeholder: '请输入显隐表达式',
|
|
2010
|
+
defaultValue: s.onShow,
|
|
2011
|
+
onPressEnter: function (e) {
|
|
2012
|
+
var n = e.target.value;
|
|
2013
|
+
t.handleValueChange('onShow', n);
|
|
2252
2014
|
},
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
),
|
|
2259
|
-
),
|
|
2260
|
-
r.createElement(
|
|
2261
|
-
'div',
|
|
2262
|
-
{ className: 'content-item' },
|
|
2263
|
-
r.createElement(
|
|
2264
|
-
'div',
|
|
2265
|
-
{ className: 'form-item-box' },
|
|
2266
|
-
r.createElement(b.Switch, {
|
|
2267
|
-
style: { display: 'inline-block' },
|
|
2268
|
-
defaultChecked: s.clearValueOnHidden,
|
|
2269
|
-
checkedChildren: 'true',
|
|
2270
|
-
unCheckedChildren: 'false',
|
|
2271
|
-
onChange: function (e) {
|
|
2272
|
-
n.handleValueChange('clearValueOnHidden', e);
|
|
2273
|
-
},
|
|
2274
|
-
}),
|
|
2275
|
-
),
|
|
2276
|
-
),
|
|
2277
|
-
),
|
|
2278
|
-
s.hiddenRule &&
|
|
2279
|
-
r.createElement(
|
|
2280
|
-
'div',
|
|
2281
|
-
{ className: 'hidden-rule-box' },
|
|
2282
|
-
r.createElement(
|
|
2283
|
-
'div',
|
|
2284
|
-
{ className: 'rule-title' },
|
|
2285
|
-
r.createElement(
|
|
2286
|
-
'div',
|
|
2287
|
-
{ className: 'title' },
|
|
2288
|
-
'隐藏规则:',
|
|
2289
|
-
),
|
|
2290
|
-
r.createElement(
|
|
2291
|
-
'div',
|
|
2292
|
-
{ className: 'btn-box' },
|
|
2293
|
-
r.createElement(
|
|
2294
|
-
b.Button,
|
|
2295
|
-
{ size: 'small', onClick: this.deleteHiddenRule },
|
|
2296
|
-
'删除规则',
|
|
2297
|
-
),
|
|
2298
|
-
),
|
|
2299
|
-
),
|
|
2300
|
-
r.createElement(
|
|
2301
|
-
'div',
|
|
2302
|
-
{ className: 'rule-condition-box' },
|
|
2303
|
-
r.createElement(
|
|
2304
|
-
'div',
|
|
2305
|
-
{ className: 'condition-title' },
|
|
2306
|
-
'隐藏条件:',
|
|
2307
|
-
),
|
|
2308
|
-
r.createElement(
|
|
2309
|
-
'div',
|
|
2310
|
-
{ className: 'condition-prop' },
|
|
2311
|
-
r.createElement(
|
|
2312
|
-
b.Select,
|
|
2313
|
-
{
|
|
2314
|
-
showSearch: !0,
|
|
2315
|
-
defaultValue: y.conditionProp
|
|
2316
|
-
? y.conditionProp.keyRoute
|
|
2317
|
-
: null,
|
|
2318
|
-
style: { width: 150 },
|
|
2319
|
-
onChange: function (e) {
|
|
2320
|
-
var t = m[e];
|
|
2321
|
-
n.hiddenRuleConditionChange(t);
|
|
2322
|
-
},
|
|
2323
|
-
},
|
|
2324
|
-
h.map(function (e) {
|
|
2325
|
-
var t = m[e];
|
|
2326
|
-
return r.createElement(
|
|
2327
|
-
Be,
|
|
2328
|
-
{
|
|
2329
|
-
key: t.keyRoute,
|
|
2330
|
-
value: t.keyRoute,
|
|
2331
|
-
disabled: u === t.keyRoute,
|
|
2332
|
-
},
|
|
2333
|
-
t.title,
|
|
2334
|
-
'(',
|
|
2335
|
-
t.key,
|
|
2336
|
-
')',
|
|
2337
|
-
);
|
|
2338
|
-
}),
|
|
2339
|
-
),
|
|
2340
|
-
),
|
|
2341
|
-
r.createElement(
|
|
2342
|
-
'div',
|
|
2343
|
-
{ className: 'condition-equal' },
|
|
2344
|
-
'等于',
|
|
2345
|
-
),
|
|
2346
|
-
r.createElement(
|
|
2347
|
-
'div',
|
|
2348
|
-
{ className: 'condition-value' },
|
|
2349
|
-
r.createElement(De, {
|
|
2350
|
-
conditionRule: y,
|
|
2351
|
-
hiddenRuleConditionValueChange:
|
|
2352
|
-
this.hiddenRuleConditionValueChange,
|
|
2353
|
-
}),
|
|
2354
|
-
),
|
|
2015
|
+
onBlur: function (e) {
|
|
2016
|
+
var n = e.target.value;
|
|
2017
|
+
t.handleValueChange('onShow', n);
|
|
2018
|
+
},
|
|
2019
|
+
}),
|
|
2355
2020
|
),
|
|
2356
2021
|
),
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
jsonKey:
|
|
2365
|
-
indexRoute:
|
|
2366
|
-
nodeKey:
|
|
2367
|
-
targetJsonSchema:
|
|
2368
|
-
checkConditionProp: p().any,
|
|
2369
|
-
addConditionProp: p().any,
|
|
2370
|
-
removeConditionProp: p().any,
|
|
2371
|
-
jsonSchema: p().any,
|
|
2022
|
+
),
|
|
2023
|
+
);
|
|
2024
|
+
}),
|
|
2025
|
+
t
|
|
2026
|
+
);
|
|
2027
|
+
})(r.PureComponent));
|
|
2028
|
+
Re.propTypes = {
|
|
2029
|
+
jsonKey: d().string,
|
|
2030
|
+
indexRoute: d().string,
|
|
2031
|
+
nodeKey: d().string,
|
|
2032
|
+
targetJsonSchema: d().any,
|
|
2372
2033
|
};
|
|
2373
|
-
var
|
|
2374
|
-
return {
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
addConditionProp: e.jsonSchemaStore.addConditionProp,
|
|
2379
|
-
indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
|
|
2380
|
-
removeConditionProp: e.jsonSchemaStore.removeConditionProp,
|
|
2381
|
-
deleteSchemaProp: e.jsonSchemaStore.deleteSchemaProp,
|
|
2382
|
-
jsonSchema: e.jsonSchemaStore.jsonSchema,
|
|
2383
|
-
};
|
|
2384
|
-
})((0, l.observer)(Ve)),
|
|
2385
|
-
Fe = (n(915), b.Select.Option),
|
|
2386
|
-
qe = (function (e) {
|
|
2034
|
+
var Ke = (0, l.inject)(function (e) {
|
|
2035
|
+
return { schemaStore: e.schemaStore };
|
|
2036
|
+
})((0, l.observer)(Re)),
|
|
2037
|
+
ke = (n(915), S.Select.Option),
|
|
2038
|
+
Te = (function (e) {
|
|
2387
2039
|
function t(t) {
|
|
2388
2040
|
var n;
|
|
2389
2041
|
return (
|
|
2390
2042
|
((n = e.call(this, t) || this).selectHandleChange = function (
|
|
2391
2043
|
e,
|
|
2392
2044
|
) {
|
|
2393
|
-
var t = n.props,
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
r =
|
|
2397
|
-
|
|
2045
|
+
var t = (n.props.schemaStore || {}).changeType,
|
|
2046
|
+
a = n.props,
|
|
2047
|
+
o = a.indexRoute,
|
|
2048
|
+
r = a.jsonKey;
|
|
2049
|
+
a.targetJsonSchema.type !== e && t(o, r, Oe.TypeDataList[e]);
|
|
2398
2050
|
}),
|
|
2399
2051
|
(n.handleJsonKeyChange = function (e) {
|
|
2400
|
-
var t =
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
r =
|
|
2404
|
-
i =
|
|
2405
|
-
s =
|
|
2406
|
-
|
|
2407
|
-
(s
|
|
2408
|
-
?
|
|
2409
|
-
:
|
|
2052
|
+
var t = n.props.schemaStore || {},
|
|
2053
|
+
a = t.editJsonKey,
|
|
2054
|
+
o = t.isExitJsonKey,
|
|
2055
|
+
r = e.target.value,
|
|
2056
|
+
i = n.props,
|
|
2057
|
+
s = i.indexRoute;
|
|
2058
|
+
i.jsonKey !== r &&
|
|
2059
|
+
(o(s, r)
|
|
2060
|
+
? S.message.warning('当前key已存在,请换一个吧。')
|
|
2061
|
+
: a(s, r));
|
|
2410
2062
|
}),
|
|
2411
2063
|
(n.handleTitleChange = function (e) {
|
|
2412
|
-
var t =
|
|
2064
|
+
var t = (n.props.schemaStore || {}).editSchemaData,
|
|
2065
|
+
a = e.target.value,
|
|
2413
2066
|
o = n.props,
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
o.targetJsonSchema.title !== t && i(a, r, { title: t });
|
|
2067
|
+
r = o.indexRoute,
|
|
2068
|
+
i = o.jsonKey;
|
|
2069
|
+
o.targetJsonSchema.title !== a && t(r, i, { title: a });
|
|
2418
2070
|
}),
|
|
2419
2071
|
(n.getCurrentTypeList = function (e) {
|
|
2420
|
-
var t = n.props.SchemaTypeList,
|
|
2421
|
-
|
|
2422
|
-
return (
|
|
2072
|
+
var t = (n.props.schemaStore || {}).SchemaTypeList,
|
|
2073
|
+
a = t[e || 'all'];
|
|
2074
|
+
return (a && 0 !== a.length) || (a = t.all), a;
|
|
2423
2075
|
}),
|
|
2424
2076
|
(n.onAddBtnEvent = function () {
|
|
2425
|
-
var e = n.props,
|
|
2426
|
-
t = e.
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
r =
|
|
2430
|
-
|
|
2077
|
+
var e = n.props.schemaStore || {},
|
|
2078
|
+
t = e.addChildJson,
|
|
2079
|
+
a = e.addNextJsonData,
|
|
2080
|
+
o = n.props,
|
|
2081
|
+
r = o.indexRoute,
|
|
2082
|
+
i = o.targetJsonSchema;
|
|
2083
|
+
(0, Oe.isContainerSchema)(i) ? t(r) : a(r);
|
|
2431
2084
|
}),
|
|
2432
2085
|
(n.onCopyBtnEvent = function () {
|
|
2433
2086
|
var e = n.props,
|
|
2434
2087
|
t = e.indexRoute,
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
r =
|
|
2438
|
-
i =
|
|
2439
|
-
s =
|
|
2440
|
-
c =
|
|
2441
|
-
l =
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
u = o
|
|
2445
|
-
|
|
2088
|
+
a = e.targetJsonSchema,
|
|
2089
|
+
o = e.jsonKey,
|
|
2090
|
+
r = n.props.schemaStore || {},
|
|
2091
|
+
i = r.getSchemaByIndexRoute,
|
|
2092
|
+
s = r.indexRoute2keyRoute,
|
|
2093
|
+
c = r.insertJsonData,
|
|
2094
|
+
l = r.getNewJsonKeyIndex,
|
|
2095
|
+
p = E(a),
|
|
2096
|
+
d = (0, Oe.getParentIndexRoute)(t),
|
|
2097
|
+
u = l(i(d), o),
|
|
2098
|
+
m = a.type;
|
|
2099
|
+
C(s(d) + '-' + u + '-' + m, s(t)), c(t, u, p);
|
|
2446
2100
|
}),
|
|
2447
2101
|
(n.onDeleteBtnEvent = function () {
|
|
2448
2102
|
var e = n.props,
|
|
2449
2103
|
t = e.jsonKey,
|
|
2450
|
-
|
|
2451
|
-
(0,
|
|
2104
|
+
a = e.indexRoute;
|
|
2105
|
+
(0, (n.props.schemaStore || {}).deleteJsonByIndex_CurKey)(
|
|
2106
|
+
a,
|
|
2107
|
+
t,
|
|
2108
|
+
);
|
|
2452
2109
|
}),
|
|
2453
2110
|
(n.ignoreDragEvent = function (e) {
|
|
2454
2111
|
e.preventDefault(), e.stopPropagation();
|
|
2455
2112
|
}),
|
|
2456
2113
|
(n.childElemSort = function () {
|
|
2457
|
-
var e = n.props
|
|
2458
|
-
|
|
2459
|
-
(0, e.childElemSort)(t);
|
|
2114
|
+
var e = n.props.indexRoute;
|
|
2115
|
+
(0, (n.props.schemaStore || {}).childElemSort)(e);
|
|
2460
2116
|
}),
|
|
2461
2117
|
(n.state = { showAdvanceConfig: !1 }),
|
|
2462
2118
|
(n.onAddBtnEvent = n.onAddBtnEvent.bind(n)),
|
|
@@ -2470,24 +2126,24 @@
|
|
|
2470
2126
|
);
|
|
2471
2127
|
}
|
|
2472
2128
|
return (
|
|
2473
|
-
|
|
2129
|
+
o()(t, e),
|
|
2474
2130
|
(t.prototype.render = function () {
|
|
2475
2131
|
var e,
|
|
2476
2132
|
t = this,
|
|
2477
|
-
n = this.props,
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
i =
|
|
2481
|
-
s =
|
|
2482
|
-
c =
|
|
2483
|
-
l =
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
u =
|
|
2133
|
+
n = (this.props.schemaStore || {}).getSchemaByIndexRoute,
|
|
2134
|
+
a = this.props,
|
|
2135
|
+
o = a.parentType,
|
|
2136
|
+
i = a.indexRoute,
|
|
2137
|
+
s = a.jsonKey,
|
|
2138
|
+
c = a.nodeKey,
|
|
2139
|
+
l = a.targetJsonSchema,
|
|
2140
|
+
p = this.state.showAdvanceConfig,
|
|
2141
|
+
d = i ? (0, Oe.getParentIndexRoute)(i) : '',
|
|
2142
|
+
u = d ? n(d) : {},
|
|
2487
2143
|
m = null == (e = u && u.isContainer) || e,
|
|
2488
|
-
h =
|
|
2144
|
+
h = l.isFixed || this.props.isFixed || !1,
|
|
2489
2145
|
y =
|
|
2490
|
-
(this.props.readOnly ||
|
|
2146
|
+
(this.props.readOnly || l.readOnly,
|
|
2491
2147
|
void 0 !== this.props.keyIsFixed
|
|
2492
2148
|
? this.props.keyIsFixed
|
|
2493
2149
|
: !m || h),
|
|
@@ -2499,18 +2155,18 @@
|
|
|
2499
2155
|
void 0 !== this.props.titleIsFixed
|
|
2500
2156
|
? this.props.titleIsFixed
|
|
2501
2157
|
: h,
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
E =
|
|
2506
|
-
|
|
2158
|
+
v = this.props.hideOperaBtn || !m,
|
|
2159
|
+
x = !!v && this.props.showAdvanceBtn,
|
|
2160
|
+
b = this.getCurrentTypeList(o),
|
|
2161
|
+
E = l.type,
|
|
2162
|
+
O = (0, Oe.isContainerSchema)(l);
|
|
2507
2163
|
return r.createElement(
|
|
2508
2164
|
r.Fragment,
|
|
2509
2165
|
null,
|
|
2510
|
-
|
|
2166
|
+
l &&
|
|
2511
2167
|
r.createElement(
|
|
2512
2168
|
'div',
|
|
2513
|
-
{ className: 'base-schema-box', id:
|
|
2169
|
+
{ className: 'base-schema-box', id: c },
|
|
2514
2170
|
r.createElement(
|
|
2515
2171
|
'div',
|
|
2516
2172
|
{
|
|
@@ -2518,8 +2174,8 @@
|
|
|
2518
2174
|
draggable: 'true',
|
|
2519
2175
|
onDragStart: this.ignoreDragEvent,
|
|
2520
2176
|
},
|
|
2521
|
-
r.createElement(
|
|
2522
|
-
defaultValue:
|
|
2177
|
+
r.createElement(S.Input, {
|
|
2178
|
+
defaultValue: s || 'key值不存在',
|
|
2523
2179
|
disabled: y,
|
|
2524
2180
|
onPressEnter: this.handleJsonKeyChange,
|
|
2525
2181
|
onBlur: this.handleJsonKeyChange,
|
|
@@ -2533,7 +2189,7 @@
|
|
|
2533
2189
|
onDragStart: this.ignoreDragEvent,
|
|
2534
2190
|
},
|
|
2535
2191
|
r.createElement(
|
|
2536
|
-
|
|
2192
|
+
S.Select,
|
|
2537
2193
|
{
|
|
2538
2194
|
showSearch: !0,
|
|
2539
2195
|
defaultValue: E,
|
|
@@ -2541,8 +2197,8 @@
|
|
|
2541
2197
|
onChange: this.selectHandleChange,
|
|
2542
2198
|
disabled: g,
|
|
2543
2199
|
},
|
|
2544
|
-
|
|
2545
|
-
return r.createElement(
|
|
2200
|
+
b.map(function (e) {
|
|
2201
|
+
return r.createElement(ke, { key: e, value: e }, e);
|
|
2546
2202
|
}),
|
|
2547
2203
|
),
|
|
2548
2204
|
),
|
|
@@ -2553,39 +2209,39 @@
|
|
|
2553
2209
|
draggable: 'true',
|
|
2554
2210
|
onDragStart: this.ignoreDragEvent,
|
|
2555
2211
|
},
|
|
2556
|
-
r.createElement(
|
|
2557
|
-
defaultValue:
|
|
2212
|
+
r.createElement(S.Input, {
|
|
2213
|
+
defaultValue: l.title,
|
|
2558
2214
|
disabled: f,
|
|
2559
2215
|
onPressEnter: this.handleTitleChange,
|
|
2560
2216
|
onBlur: this.handleTitleChange,
|
|
2561
2217
|
}),
|
|
2562
2218
|
),
|
|
2563
|
-
!
|
|
2219
|
+
!v &&
|
|
2564
2220
|
r.createElement(
|
|
2565
2221
|
'div',
|
|
2566
2222
|
{ className: 'operate-item' },
|
|
2567
2223
|
!h &&
|
|
2568
2224
|
r.createElement(
|
|
2569
|
-
|
|
2225
|
+
S.Tooltip,
|
|
2570
2226
|
{ title: '删除' },
|
|
2571
|
-
r.createElement(
|
|
2227
|
+
r.createElement(Ie.CloseOutlined, {
|
|
2572
2228
|
className: 'operate-btn delete-operate',
|
|
2573
2229
|
onClick: this.onDeleteBtnEvent,
|
|
2574
2230
|
}),
|
|
2575
2231
|
),
|
|
2576
2232
|
r.createElement(
|
|
2577
|
-
|
|
2578
|
-
{ title:
|
|
2579
|
-
r.createElement(
|
|
2233
|
+
S.Tooltip,
|
|
2234
|
+
{ title: O ? '新增子元素' : '新增同级元素' },
|
|
2235
|
+
r.createElement(Ie.PlusOutlined, {
|
|
2580
2236
|
className: 'operate-btn',
|
|
2581
2237
|
onClick: this.onAddBtnEvent,
|
|
2582
2238
|
}),
|
|
2583
2239
|
),
|
|
2584
|
-
|
|
2240
|
+
O &&
|
|
2585
2241
|
r.createElement(
|
|
2586
|
-
|
|
2242
|
+
S.Tooltip,
|
|
2587
2243
|
{ title: '数据项排序' },
|
|
2588
|
-
r.createElement(
|
|
2244
|
+
r.createElement(Ie.SortAscendingOutlined, {
|
|
2589
2245
|
className: 'operate-btn',
|
|
2590
2246
|
onClick: this.childElemSort,
|
|
2591
2247
|
}),
|
|
@@ -2595,17 +2251,17 @@
|
|
|
2595
2251
|
r.Fragment,
|
|
2596
2252
|
null,
|
|
2597
2253
|
r.createElement(
|
|
2598
|
-
|
|
2254
|
+
S.Tooltip,
|
|
2599
2255
|
{ title: '复制' },
|
|
2600
|
-
r.createElement(
|
|
2256
|
+
r.createElement(Ie.CopyOutlined, {
|
|
2601
2257
|
className: 'operate-btn',
|
|
2602
2258
|
onClick: this.onCopyBtnEvent,
|
|
2603
2259
|
}),
|
|
2604
2260
|
),
|
|
2605
2261
|
r.createElement(
|
|
2606
|
-
|
|
2262
|
+
S.Tooltip,
|
|
2607
2263
|
{ title: '高级设置' },
|
|
2608
|
-
r.createElement(
|
|
2264
|
+
r.createElement(Ie.SettingOutlined, {
|
|
2609
2265
|
className: 'operate-btn',
|
|
2610
2266
|
onClick: function () {
|
|
2611
2267
|
t.setState({ showAdvanceConfig: !0 });
|
|
@@ -2613,22 +2269,22 @@
|
|
|
2613
2269
|
}),
|
|
2614
2270
|
),
|
|
2615
2271
|
r.createElement(
|
|
2616
|
-
|
|
2272
|
+
S.Tooltip,
|
|
2617
2273
|
{ title: '按住进行拖拽' },
|
|
2618
|
-
r.createElement(
|
|
2274
|
+
r.createElement(Ie.DragOutlined, {
|
|
2619
2275
|
className: 'operate-btn drag-btn',
|
|
2620
2276
|
}),
|
|
2621
2277
|
),
|
|
2622
2278
|
),
|
|
2623
2279
|
),
|
|
2624
|
-
|
|
2280
|
+
x &&
|
|
2625
2281
|
r.createElement(
|
|
2626
2282
|
'div',
|
|
2627
2283
|
{ className: 'operate-item' },
|
|
2628
2284
|
r.createElement(
|
|
2629
|
-
|
|
2285
|
+
S.Tooltip,
|
|
2630
2286
|
{ title: '高级设置' },
|
|
2631
|
-
r.createElement(
|
|
2287
|
+
r.createElement(Ie.SettingOutlined, {
|
|
2632
2288
|
className: 'operate-btn',
|
|
2633
2289
|
onClick: function () {
|
|
2634
2290
|
t.setState({ showAdvanceConfig: !0 });
|
|
@@ -2636,19 +2292,19 @@
|
|
|
2636
2292
|
}),
|
|
2637
2293
|
),
|
|
2638
2294
|
),
|
|
2639
|
-
|
|
2295
|
+
p &&
|
|
2640
2296
|
r.createElement(
|
|
2641
|
-
|
|
2297
|
+
S.Modal,
|
|
2642
2298
|
{
|
|
2643
2299
|
visible: !0,
|
|
2644
2300
|
title:
|
|
2645
|
-
'高级设置 / 当前字段:' +
|
|
2301
|
+
'高级设置 / 当前字段:' + l.title + '(' + s + ')',
|
|
2646
2302
|
onCancel: function () {
|
|
2647
2303
|
t.setState({ showAdvanceConfig: !1 });
|
|
2648
2304
|
},
|
|
2649
2305
|
footer: [
|
|
2650
2306
|
r.createElement(
|
|
2651
|
-
|
|
2307
|
+
S.Button,
|
|
2652
2308
|
{
|
|
2653
2309
|
key: 'submit',
|
|
2654
2310
|
type: 'primary',
|
|
@@ -2660,21 +2316,21 @@
|
|
|
2660
2316
|
),
|
|
2661
2317
|
],
|
|
2662
2318
|
},
|
|
2663
|
-
r.createElement(
|
|
2664
|
-
indexRoute:
|
|
2665
|
-
jsonKey:
|
|
2666
|
-
targetJsonSchema:
|
|
2319
|
+
r.createElement(Ke, {
|
|
2320
|
+
indexRoute: i,
|
|
2321
|
+
jsonKey: s,
|
|
2322
|
+
targetJsonSchema: l,
|
|
2667
2323
|
}),
|
|
2668
2324
|
),
|
|
2669
2325
|
),
|
|
2670
|
-
!
|
|
2326
|
+
!l &&
|
|
2671
2327
|
r.createElement(
|
|
2672
2328
|
'div',
|
|
2673
2329
|
{ className: 'base-schema-box' },
|
|
2674
2330
|
r.createElement(
|
|
2675
2331
|
'div',
|
|
2676
2332
|
{ className: 'warn-text' },
|
|
2677
|
-
|
|
2333
|
+
s,
|
|
2678
2334
|
':数据元素为空',
|
|
2679
2335
|
),
|
|
2680
2336
|
),
|
|
@@ -2683,82 +2339,67 @@
|
|
|
2683
2339
|
t
|
|
2684
2340
|
);
|
|
2685
2341
|
})(r.PureComponent);
|
|
2686
|
-
|
|
2687
|
-
parentType:
|
|
2688
|
-
jsonKey:
|
|
2689
|
-
indexRoute:
|
|
2690
|
-
nodeKey:
|
|
2691
|
-
targetJsonSchema:
|
|
2692
|
-
isFixed:
|
|
2693
|
-
hideOperaBtn:
|
|
2694
|
-
showAdvanceBtn:
|
|
2695
|
-
keyIsFixed:
|
|
2696
|
-
typeIsFixed:
|
|
2697
|
-
titleIsFixed:
|
|
2342
|
+
Te.propTypes = {
|
|
2343
|
+
parentType: d().string,
|
|
2344
|
+
jsonKey: d().string,
|
|
2345
|
+
indexRoute: d().string,
|
|
2346
|
+
nodeKey: d().string,
|
|
2347
|
+
targetJsonSchema: d().any,
|
|
2348
|
+
isFixed: d().bool,
|
|
2349
|
+
hideOperaBtn: d().bool,
|
|
2350
|
+
showAdvanceBtn: d().bool,
|
|
2351
|
+
keyIsFixed: d().bool,
|
|
2352
|
+
typeIsFixed: d().bool,
|
|
2353
|
+
titleIsFixed: d().bool,
|
|
2698
2354
|
};
|
|
2699
|
-
var
|
|
2700
|
-
return {
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
|
|
2706
|
-
indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
|
|
2707
|
-
addChildJson: e.jsonSchemaStore.addChildJson,
|
|
2708
|
-
addNextJsonData: e.jsonSchemaStore.addNextJsonData,
|
|
2709
|
-
insertJsonData: e.jsonSchemaStore.insertJsonData,
|
|
2710
|
-
childElemSort: e.jsonSchemaStore.childElemSort,
|
|
2711
|
-
editSchemaData: e.jsonSchemaStore.editSchemaData,
|
|
2712
|
-
editJsonKey: e.jsonSchemaStore.editJsonKey,
|
|
2713
|
-
changeType: e.jsonSchemaStore.changeType,
|
|
2714
|
-
isExitJsonKey: e.jsonSchemaStore.isExitJsonKey,
|
|
2715
|
-
};
|
|
2716
|
-
})((0, l.observer)(qe)),
|
|
2717
|
-
_e = b.Tree.TreeNode,
|
|
2718
|
-
Me = function (e) {
|
|
2719
|
-
return i().createElement(Ae, e);
|
|
2355
|
+
var Je = (0, l.inject)(function (e) {
|
|
2356
|
+
return { schemaStore: e.schemaStore };
|
|
2357
|
+
})((0, l.observer)(Te)),
|
|
2358
|
+
De = S.Tree.TreeNode,
|
|
2359
|
+
Be = function (e) {
|
|
2360
|
+
return i().createElement(Je, e);
|
|
2720
2361
|
},
|
|
2721
|
-
|
|
2362
|
+
Pe = function (e) {
|
|
2722
2363
|
var t = e.jsonKey,
|
|
2723
2364
|
n = e.indexRoute,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
r =
|
|
2365
|
+
a = e.nodeKey,
|
|
2366
|
+
o = e.targetJsonSchema,
|
|
2367
|
+
r = o.type,
|
|
2727
2368
|
s = n ? n + '-0' : '0',
|
|
2728
2369
|
c = 'items',
|
|
2729
|
-
l =
|
|
2730
|
-
|
|
2370
|
+
l = a ? a + '-' + c : c,
|
|
2371
|
+
p = o[c] || {};
|
|
2731
2372
|
return i().createElement(
|
|
2732
|
-
|
|
2373
|
+
De,
|
|
2733
2374
|
{
|
|
2734
2375
|
className: r + '-schema schema-item-form',
|
|
2735
|
-
id:
|
|
2736
|
-
key:
|
|
2376
|
+
id: a,
|
|
2377
|
+
key: a,
|
|
2737
2378
|
indexRoute: n,
|
|
2738
2379
|
jsonKey: t,
|
|
2739
|
-
title:
|
|
2380
|
+
title: Be(m()({}, e)),
|
|
2740
2381
|
},
|
|
2741
2382
|
(function (e) {
|
|
2742
2383
|
var t = e.parentType,
|
|
2743
2384
|
n = e.jsonKey,
|
|
2744
|
-
|
|
2745
|
-
|
|
2385
|
+
a = e.indexRoute,
|
|
2386
|
+
o = e.nodeKey,
|
|
2746
2387
|
r = e.targetJsonSchema;
|
|
2747
2388
|
return i().createElement(
|
|
2748
|
-
|
|
2389
|
+
De,
|
|
2749
2390
|
{
|
|
2750
2391
|
className: 'array-item-schema schema-item-form',
|
|
2751
|
-
id:
|
|
2752
|
-
key:
|
|
2753
|
-
indexRoute:
|
|
2392
|
+
id: o,
|
|
2393
|
+
key: o,
|
|
2394
|
+
indexRoute: a,
|
|
2754
2395
|
jsonKey: n,
|
|
2755
2396
|
disabled: !0,
|
|
2756
|
-
title:
|
|
2757
|
-
indexRoute:
|
|
2397
|
+
title: Be({
|
|
2398
|
+
indexRoute: a,
|
|
2758
2399
|
jsonKey: n,
|
|
2759
2400
|
targetJsonSchema: r,
|
|
2760
2401
|
parentType: t,
|
|
2761
|
-
nodeKey:
|
|
2402
|
+
nodeKey: o,
|
|
2762
2403
|
isFixed: !0,
|
|
2763
2404
|
typeIsFixed: !1,
|
|
2764
2405
|
}),
|
|
@@ -2767,28 +2408,28 @@
|
|
|
2767
2408
|
(function (e) {
|
|
2768
2409
|
var t = e.properties,
|
|
2769
2410
|
n = e.parentIndexRoute,
|
|
2770
|
-
|
|
2771
|
-
|
|
2411
|
+
a = e.parentNodeKey,
|
|
2412
|
+
o = e.parentType;
|
|
2772
2413
|
return e.propertyOrder.map(function (e, r) {
|
|
2773
2414
|
var i = n ? n + '-' + r : '' + r,
|
|
2774
2415
|
s = e,
|
|
2775
2416
|
c = t[s],
|
|
2776
2417
|
l = c.type,
|
|
2777
|
-
|
|
2778
|
-
return
|
|
2779
|
-
parentType:
|
|
2418
|
+
p = (a ? a + '-' : '') + l + '-' + s;
|
|
2419
|
+
return nt({
|
|
2420
|
+
parentType: o,
|
|
2780
2421
|
jsonKey: s,
|
|
2781
2422
|
indexRoute: i,
|
|
2782
|
-
key:
|
|
2783
|
-
nodeKey:
|
|
2423
|
+
key: p,
|
|
2424
|
+
nodeKey: p,
|
|
2784
2425
|
targetJsonSchema: c,
|
|
2785
2426
|
});
|
|
2786
2427
|
});
|
|
2787
2428
|
})({
|
|
2788
2429
|
propertyOrder: r.propertyOrder,
|
|
2789
2430
|
properties: r.properties,
|
|
2790
|
-
parentIndexRoute:
|
|
2791
|
-
parentNodeKey:
|
|
2431
|
+
parentIndexRoute: a,
|
|
2432
|
+
parentNodeKey: o,
|
|
2792
2433
|
parentType: t,
|
|
2793
2434
|
}),
|
|
2794
2435
|
);
|
|
@@ -2797,35 +2438,36 @@
|
|
|
2797
2438
|
jsonKey: c,
|
|
2798
2439
|
indexRoute: s,
|
|
2799
2440
|
nodeKey: l,
|
|
2800
|
-
targetJsonSchema:
|
|
2441
|
+
targetJsonSchema: p,
|
|
2801
2442
|
}),
|
|
2802
2443
|
);
|
|
2803
2444
|
},
|
|
2804
|
-
|
|
2805
|
-
|
|
2445
|
+
Ve = (n(790), S.Select.Option),
|
|
2446
|
+
Le = (function (e) {
|
|
2806
2447
|
function t(t) {
|
|
2807
2448
|
var n;
|
|
2808
2449
|
return (
|
|
2809
2450
|
((n = e.call(this, t) || this).typeChange = function (e) {
|
|
2810
|
-
var t = n.props,
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
r =
|
|
2814
|
-
i =
|
|
2815
|
-
s =
|
|
2816
|
-
c =
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
l
|
|
2821
|
-
|
|
2822
|
-
|
|
2451
|
+
var t = n.props.schemaStore || {},
|
|
2452
|
+
a = t.editSchemaData,
|
|
2453
|
+
o = t.updateSchemaData,
|
|
2454
|
+
r = n.props,
|
|
2455
|
+
i = r.indexRoute,
|
|
2456
|
+
s = r.jsonKey,
|
|
2457
|
+
c = r.targetJsonSchema,
|
|
2458
|
+
l = r.typeSelectData;
|
|
2459
|
+
if (c.default !== e) {
|
|
2460
|
+
if ((a(i, s, { default: e }), l)) {
|
|
2461
|
+
var p = l[e];
|
|
2462
|
+
p &&
|
|
2463
|
+
'数据源类型' === c.title &&
|
|
2464
|
+
a((0, Oe.getNextIndexRoute)(i), 'data', p);
|
|
2823
2465
|
}
|
|
2824
|
-
if (
|
|
2825
|
-
var d =
|
|
2826
|
-
'事件类型' ===
|
|
2466
|
+
if (Oe.EventTypeDataList) {
|
|
2467
|
+
var d = Oe.EventTypeDataList[e];
|
|
2468
|
+
'事件类型' === c.title &&
|
|
2827
2469
|
d &&
|
|
2828
|
-
|
|
2470
|
+
o((0, Oe.getParentIndexRoute)(i), d);
|
|
2829
2471
|
}
|
|
2830
2472
|
}
|
|
2831
2473
|
}),
|
|
@@ -2834,13 +2476,13 @@
|
|
|
2834
2476
|
);
|
|
2835
2477
|
}
|
|
2836
2478
|
return (
|
|
2837
|
-
|
|
2479
|
+
o()(t, e),
|
|
2838
2480
|
(t.prototype.render = function () {
|
|
2839
2481
|
var e = this.props,
|
|
2840
2482
|
t = e.nodeKey,
|
|
2841
2483
|
n = e.targetJsonSchema,
|
|
2842
|
-
|
|
2843
|
-
|
|
2484
|
+
a = n.type,
|
|
2485
|
+
o = n.options || [];
|
|
2844
2486
|
return r.createElement(
|
|
2845
2487
|
'div',
|
|
2846
2488
|
{ className: 'typeSelect-schema-box', id: t },
|
|
@@ -2848,14 +2490,14 @@
|
|
|
2848
2490
|
'div',
|
|
2849
2491
|
{ className: 'key-input-item' },
|
|
2850
2492
|
r.createElement(
|
|
2851
|
-
|
|
2493
|
+
S.Select,
|
|
2852
2494
|
{
|
|
2853
2495
|
defaultValue: n.default || 'local',
|
|
2854
2496
|
onChange: this.typeChange,
|
|
2855
2497
|
},
|
|
2856
|
-
|
|
2498
|
+
o.map(function (e, t) {
|
|
2857
2499
|
return r.createElement(
|
|
2858
|
-
|
|
2500
|
+
Ve,
|
|
2859
2501
|
{ key: t, value: e.value },
|
|
2860
2502
|
e.label || e.name,
|
|
2861
2503
|
);
|
|
@@ -2866,15 +2508,15 @@
|
|
|
2866
2508
|
'div',
|
|
2867
2509
|
{ className: 'type-select-item' },
|
|
2868
2510
|
r.createElement(
|
|
2869
|
-
|
|
2870
|
-
{ defaultValue:
|
|
2871
|
-
r.createElement(
|
|
2511
|
+
S.Select,
|
|
2512
|
+
{ defaultValue: a, style: { width: 120 }, disabled: !0 },
|
|
2513
|
+
r.createElement(Ve, { key: a, value: a }, a),
|
|
2872
2514
|
),
|
|
2873
2515
|
),
|
|
2874
2516
|
r.createElement(
|
|
2875
2517
|
'div',
|
|
2876
2518
|
{ className: 'title-input-item' },
|
|
2877
|
-
r.createElement(
|
|
2519
|
+
r.createElement(S.Input, {
|
|
2878
2520
|
defaultValue: n.title,
|
|
2879
2521
|
disabled: !0,
|
|
2880
2522
|
}),
|
|
@@ -2885,26 +2527,23 @@
|
|
|
2885
2527
|
t
|
|
2886
2528
|
);
|
|
2887
2529
|
})(r.PureComponent);
|
|
2888
|
-
|
|
2889
|
-
parentType:
|
|
2890
|
-
jsonKey:
|
|
2891
|
-
indexRoute:
|
|
2892
|
-
nodeKey:
|
|
2893
|
-
targetJsonSchema:
|
|
2894
|
-
typeSelectData:
|
|
2895
|
-
isFixed:
|
|
2530
|
+
Le.propTypes = {
|
|
2531
|
+
parentType: d().string,
|
|
2532
|
+
jsonKey: d().string,
|
|
2533
|
+
indexRoute: d().string,
|
|
2534
|
+
nodeKey: d().string,
|
|
2535
|
+
targetJsonSchema: d().any,
|
|
2536
|
+
typeSelectData: d().any,
|
|
2537
|
+
isFixed: d().any,
|
|
2896
2538
|
};
|
|
2897
|
-
var
|
|
2898
|
-
return {
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
Ue = b.Tree.TreeNode,
|
|
2904
|
-
Qe = function (e) {
|
|
2905
|
-
return i().createElement(Ae, e);
|
|
2539
|
+
var Fe = (0, l.inject)(function (e) {
|
|
2540
|
+
return { schemaStore: e.schemaStore };
|
|
2541
|
+
})((0, l.observer)(Le)),
|
|
2542
|
+
qe = S.Tree.TreeNode,
|
|
2543
|
+
Ae = function (e) {
|
|
2544
|
+
return i().createElement(Je, e);
|
|
2906
2545
|
},
|
|
2907
|
-
|
|
2546
|
+
_e = {
|
|
2908
2547
|
local: {
|
|
2909
2548
|
type: 'json',
|
|
2910
2549
|
title: '本地json数据',
|
|
@@ -2922,71 +2561,69 @@
|
|
|
2922
2561
|
description: '用于设置获取元素数据的请求地址',
|
|
2923
2562
|
},
|
|
2924
2563
|
},
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
return i().createElement(
|
|
2564
|
+
Me = S.Tree.TreeNode,
|
|
2565
|
+
We = function (e) {
|
|
2566
|
+
return i().createElement(Je, e);
|
|
2928
2567
|
},
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
return i().createElement(
|
|
2568
|
+
Ge = S.Tree.TreeNode,
|
|
2569
|
+
ze = function (e) {
|
|
2570
|
+
return i().createElement(Je, e);
|
|
2932
2571
|
},
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
return i().createElement(
|
|
2572
|
+
Ue = S.Tree.TreeNode,
|
|
2573
|
+
He = function (e) {
|
|
2574
|
+
return i().createElement(Je, e);
|
|
2936
2575
|
},
|
|
2937
|
-
|
|
2938
|
-
|
|
2576
|
+
Qe = (n(617), S.Select.Option),
|
|
2577
|
+
Xe = (function (e) {
|
|
2939
2578
|
function t(t) {
|
|
2940
2579
|
var n;
|
|
2941
2580
|
return (
|
|
2942
2581
|
((n = e.call(this, t) || this).handleLabelChange = function (
|
|
2943
2582
|
e,
|
|
2944
2583
|
) {
|
|
2945
|
-
var t =
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
r =
|
|
2949
|
-
i =
|
|
2950
|
-
s =
|
|
2951
|
-
c =
|
|
2952
|
-
|
|
2953
|
-
(s
|
|
2954
|
-
?
|
|
2584
|
+
var t = n.props.schemaStore || {},
|
|
2585
|
+
a = t.isExitOptionLabel,
|
|
2586
|
+
o = t.updateOptionLabel,
|
|
2587
|
+
r = e.target.value,
|
|
2588
|
+
i = n.props,
|
|
2589
|
+
s = i.indexRoute,
|
|
2590
|
+
c = i.optionIndex;
|
|
2591
|
+
r !== i.optionLabel &&
|
|
2592
|
+
(a(s, r)
|
|
2593
|
+
? S.message.warning(
|
|
2955
2594
|
'对不起,存在相同的Label值,请重新设置。',
|
|
2956
2595
|
)
|
|
2957
|
-
:
|
|
2596
|
+
: o(s, c, r));
|
|
2958
2597
|
}),
|
|
2959
2598
|
(n.handleValueChange = function (e) {
|
|
2960
|
-
var t =
|
|
2599
|
+
var t = (n.props.schemaStore || {}).updateOptionValue,
|
|
2600
|
+
a = e.target.value,
|
|
2961
2601
|
o = n.props,
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
s = o.updateOptionValue;
|
|
2966
|
-
t !== i && s(a, r, t);
|
|
2602
|
+
r = o.indexRoute,
|
|
2603
|
+
i = o.optionIndex;
|
|
2604
|
+
a !== o.optionValue && t(r, i, a);
|
|
2967
2605
|
}),
|
|
2968
2606
|
(n.onAddBtnEvent = function () {
|
|
2969
|
-
var e = n.props,
|
|
2970
|
-
t =
|
|
2971
|
-
|
|
2972
|
-
(0, e.addOptionItem)(t, o);
|
|
2607
|
+
var e = (n.props.schemaStore || {}).addOptionItem,
|
|
2608
|
+
t = n.props;
|
|
2609
|
+
e(t.indexRoute, t.optionIndex);
|
|
2973
2610
|
}),
|
|
2974
2611
|
(n.onCopyBtnEvent = function () {
|
|
2975
|
-
var e = n.props,
|
|
2976
|
-
t =
|
|
2977
|
-
|
|
2978
|
-
(0, e.copyOptionItem)(t, o);
|
|
2612
|
+
var e = (n.props.schemaStore || {}).copyOptionItem,
|
|
2613
|
+
t = n.props;
|
|
2614
|
+
e(t.indexRoute, t.optionIndex);
|
|
2979
2615
|
}),
|
|
2980
2616
|
(n.onDeleteBtnEvent = function () {
|
|
2981
|
-
var e = n.props,
|
|
2982
|
-
t = e.
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
r =
|
|
2986
|
-
i =
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2617
|
+
var e = n.props.schemaStore || {},
|
|
2618
|
+
t = e.getSchemaByIndexRoute,
|
|
2619
|
+
a = e.deleteOptionItem,
|
|
2620
|
+
o = n.props,
|
|
2621
|
+
r = o.indexRoute,
|
|
2622
|
+
i = o.optionIndex,
|
|
2623
|
+
s = t(r);
|
|
2624
|
+
s.options && s.options.length > 1
|
|
2625
|
+
? a(r, i)
|
|
2626
|
+
: S.message.warning('删除失败,至少保留一个可选项。');
|
|
2990
2627
|
}),
|
|
2991
2628
|
(n.onAddBtnEvent = n.onAddBtnEvent.bind(n)),
|
|
2992
2629
|
(n.onCopyBtnEvent = n.onCopyBtnEvent.bind(n)),
|
|
@@ -2997,7 +2634,7 @@
|
|
|
2997
2634
|
);
|
|
2998
2635
|
}
|
|
2999
2636
|
return (
|
|
3000
|
-
|
|
2637
|
+
o()(t, e),
|
|
3001
2638
|
(t.prototype.render = function () {
|
|
3002
2639
|
var e = this.props,
|
|
3003
2640
|
t = e.optionLabel,
|
|
@@ -3010,7 +2647,7 @@
|
|
|
3010
2647
|
r.createElement(
|
|
3011
2648
|
'div',
|
|
3012
2649
|
{ className: 'key-input-item' },
|
|
3013
|
-
r.createElement(
|
|
2650
|
+
r.createElement(S.Input, {
|
|
3014
2651
|
defaultValue: n,
|
|
3015
2652
|
onPressEnter: this.handleValueChange,
|
|
3016
2653
|
onBlur: this.handleValueChange,
|
|
@@ -3020,10 +2657,10 @@
|
|
|
3020
2657
|
'div',
|
|
3021
2658
|
{ className: 'type-select-item' },
|
|
3022
2659
|
r.createElement(
|
|
3023
|
-
|
|
2660
|
+
S.Select,
|
|
3024
2661
|
{ defaultValue: 'string', style: { width: 120 } },
|
|
3025
2662
|
r.createElement(
|
|
3026
|
-
|
|
2663
|
+
Qe,
|
|
3027
2664
|
{ key: 'string', value: 'string' },
|
|
3028
2665
|
'string',
|
|
3029
2666
|
),
|
|
@@ -3032,7 +2669,7 @@
|
|
|
3032
2669
|
r.createElement(
|
|
3033
2670
|
'div',
|
|
3034
2671
|
{ className: 'title-input-item' },
|
|
3035
|
-
r.createElement(
|
|
2672
|
+
r.createElement(S.Input, {
|
|
3036
2673
|
defaultValue: t,
|
|
3037
2674
|
onPressEnter: this.handleLabelChange,
|
|
3038
2675
|
onBlur: this.handleLabelChange,
|
|
@@ -3042,25 +2679,25 @@
|
|
|
3042
2679
|
'div',
|
|
3043
2680
|
{ className: 'operate-item' },
|
|
3044
2681
|
r.createElement(
|
|
3045
|
-
|
|
2682
|
+
S.Tooltip,
|
|
3046
2683
|
{ title: '删除' },
|
|
3047
|
-
r.createElement(
|
|
2684
|
+
r.createElement(Ie.CloseOutlined, {
|
|
3048
2685
|
className: 'operate-btn delete-operate',
|
|
3049
2686
|
onClick: this.onDeleteBtnEvent,
|
|
3050
2687
|
}),
|
|
3051
2688
|
),
|
|
3052
2689
|
r.createElement(
|
|
3053
|
-
|
|
2690
|
+
S.Tooltip,
|
|
3054
2691
|
{ title: '新增可选项' },
|
|
3055
|
-
r.createElement(
|
|
2692
|
+
r.createElement(Ie.PlusOutlined, {
|
|
3056
2693
|
className: 'operate-btn',
|
|
3057
2694
|
onClick: this.onAddBtnEvent,
|
|
3058
2695
|
}),
|
|
3059
2696
|
),
|
|
3060
2697
|
r.createElement(
|
|
3061
|
-
|
|
2698
|
+
S.Tooltip,
|
|
3062
2699
|
{ title: '复制' },
|
|
3063
|
-
r.createElement(
|
|
2700
|
+
r.createElement(Ie.CopyOutlined, {
|
|
3064
2701
|
className: 'operate-btn',
|
|
3065
2702
|
onClick: this.onCopyBtnEvent,
|
|
3066
2703
|
}),
|
|
@@ -3072,33 +2709,25 @@
|
|
|
3072
2709
|
t
|
|
3073
2710
|
);
|
|
3074
2711
|
})(r.PureComponent);
|
|
3075
|
-
|
|
3076
|
-
indexRoute:
|
|
3077
|
-
optionIndex:
|
|
3078
|
-
optionLabel:
|
|
3079
|
-
optionValue:
|
|
3080
|
-
optionNodeKey:
|
|
2712
|
+
Xe.propTypes = {
|
|
2713
|
+
indexRoute: d().string,
|
|
2714
|
+
optionIndex: d().any,
|
|
2715
|
+
optionLabel: d().string,
|
|
2716
|
+
optionValue: d().string,
|
|
2717
|
+
optionNodeKey: d().string,
|
|
3081
2718
|
};
|
|
3082
|
-
var
|
|
3083
|
-
return {
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
deleteOptionItem: e.jsonSchemaStore.deleteOptionItem,
|
|
3089
|
-
addOptionItem: e.jsonSchemaStore.addOptionItem,
|
|
3090
|
-
copyOptionItem: e.jsonSchemaStore.copyOptionItem,
|
|
3091
|
-
};
|
|
3092
|
-
})((0, l.observer)(at)),
|
|
3093
|
-
it = b.Tree.TreeNode,
|
|
3094
|
-
st = function (e) {
|
|
3095
|
-
return i().createElement(rt, e);
|
|
2719
|
+
var Ye = (0, l.inject)(function (e) {
|
|
2720
|
+
return { schemaStore: e.schemaStore };
|
|
2721
|
+
})((0, l.observer)(Xe)),
|
|
2722
|
+
Ze = S.Tree.TreeNode,
|
|
2723
|
+
$e = function (e) {
|
|
2724
|
+
return i().createElement(Ye, e);
|
|
3096
2725
|
},
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
return i().createElement(
|
|
2726
|
+
et = S.Tree.TreeNode,
|
|
2727
|
+
tt = function (e) {
|
|
2728
|
+
return i().createElement(Je, e);
|
|
3100
2729
|
},
|
|
3101
|
-
|
|
2730
|
+
nt = function (e) {
|
|
3102
2731
|
switch (e.targetJsonSchema.type) {
|
|
3103
2732
|
case 'object':
|
|
3104
2733
|
case 'func':
|
|
@@ -3107,78 +2736,78 @@
|
|
|
3107
2736
|
case 'dynamic-config':
|
|
3108
2737
|
case 'sohu-source':
|
|
3109
2738
|
case 'sohu-event':
|
|
3110
|
-
return
|
|
2739
|
+
return rt(e);
|
|
3111
2740
|
case 'array':
|
|
3112
|
-
return
|
|
2741
|
+
return Pe(e);
|
|
3113
2742
|
case 'datasource':
|
|
3114
2743
|
return (function (e) {
|
|
3115
2744
|
var t,
|
|
3116
2745
|
n = e.jsonKey,
|
|
3117
|
-
|
|
3118
|
-
|
|
2746
|
+
a = e.indexRoute,
|
|
2747
|
+
o = e.nodeKey,
|
|
3119
2748
|
r = e.targetJsonSchema,
|
|
3120
2749
|
s = r.type,
|
|
3121
2750
|
c = r.properties.data || {};
|
|
3122
2751
|
return i().createElement(
|
|
3123
|
-
|
|
2752
|
+
qe,
|
|
3124
2753
|
{
|
|
3125
2754
|
className: s + '-schema schema-item-form',
|
|
3126
|
-
id:
|
|
3127
|
-
key:
|
|
3128
|
-
indexRoute:
|
|
2755
|
+
id: o,
|
|
2756
|
+
key: o,
|
|
2757
|
+
indexRoute: a,
|
|
3129
2758
|
jsonKey: n,
|
|
3130
|
-
title:
|
|
2759
|
+
title: Ae(m()({}, e)),
|
|
3131
2760
|
},
|
|
3132
|
-
i().createElement(
|
|
2761
|
+
i().createElement(qe, {
|
|
3133
2762
|
className: 'dataSource-type-item-schema schema-item-form',
|
|
3134
|
-
id:
|
|
3135
|
-
key:
|
|
3136
|
-
indexRoute:
|
|
2763
|
+
id: o + '-type',
|
|
2764
|
+
key: o + '-type',
|
|
2765
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3137
2766
|
jsonKey: 'type',
|
|
3138
2767
|
disabled: !0,
|
|
3139
2768
|
title:
|
|
3140
2769
|
((t = {
|
|
3141
|
-
indexRoute:
|
|
2770
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3142
2771
|
jsonKey: 'type',
|
|
3143
2772
|
targetJsonSchema: r.properties.type,
|
|
3144
2773
|
parentType: s,
|
|
3145
|
-
nodeKey:
|
|
3146
|
-
typeSelectData:
|
|
2774
|
+
nodeKey: o + '-type',
|
|
2775
|
+
typeSelectData: _e,
|
|
3147
2776
|
}),
|
|
3148
|
-
i().createElement(
|
|
2777
|
+
i().createElement(Fe, t)),
|
|
3149
2778
|
}),
|
|
3150
|
-
i().createElement(
|
|
2779
|
+
i().createElement(qe, {
|
|
3151
2780
|
className: 'dataSource-data-item-schema schema-item-form',
|
|
3152
|
-
id:
|
|
3153
|
-
key:
|
|
3154
|
-
indexRoute:
|
|
2781
|
+
id: o + '-data-' + c.type,
|
|
2782
|
+
key: o + '-data-' + c.type,
|
|
2783
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3155
2784
|
jsonKey: 'data',
|
|
3156
2785
|
disabled: !0,
|
|
3157
|
-
title:
|
|
3158
|
-
indexRoute:
|
|
2786
|
+
title: Ae({
|
|
2787
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3159
2788
|
jsonKey: 'data',
|
|
3160
2789
|
targetJsonSchema: c,
|
|
3161
2790
|
parentType: s,
|
|
3162
|
-
nodeKey:
|
|
2791
|
+
nodeKey: o + '-data-' + c.type,
|
|
3163
2792
|
hideOperaBtn: !0,
|
|
3164
2793
|
keyIsFixed: !0,
|
|
3165
2794
|
typeIsFixed: !0,
|
|
3166
2795
|
}),
|
|
3167
2796
|
}),
|
|
3168
|
-
i().createElement(
|
|
2797
|
+
i().createElement(qe, {
|
|
3169
2798
|
className:
|
|
3170
2799
|
'dataSource-filter-item-schema schema-item-form',
|
|
3171
|
-
id:
|
|
3172
|
-
key:
|
|
3173
|
-
indexRoute:
|
|
2800
|
+
id: o + '-filter',
|
|
2801
|
+
key: o + '-filter',
|
|
2802
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3174
2803
|
jsonKey: 'filter',
|
|
3175
2804
|
disabled: !0,
|
|
3176
|
-
title:
|
|
3177
|
-
indexRoute:
|
|
2805
|
+
title: Ae({
|
|
2806
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3178
2807
|
jsonKey: 'filter',
|
|
3179
2808
|
targetJsonSchema: r.properties.filter,
|
|
3180
2809
|
parentType: s,
|
|
3181
|
-
nodeKey:
|
|
2810
|
+
nodeKey: o + '-filter',
|
|
3182
2811
|
hideOperaBtn: !0,
|
|
3183
2812
|
keyIsFixed: !0,
|
|
3184
2813
|
typeIsFixed: !0,
|
|
@@ -3190,71 +2819,71 @@
|
|
|
3190
2819
|
return (function (e) {
|
|
3191
2820
|
var t,
|
|
3192
2821
|
n = e.jsonKey,
|
|
3193
|
-
|
|
3194
|
-
|
|
2822
|
+
a = e.indexRoute,
|
|
2823
|
+
o = e.nodeKey,
|
|
3195
2824
|
r = e.targetJsonSchema,
|
|
3196
2825
|
s = r.type,
|
|
3197
2826
|
c = r.properties.config || {},
|
|
3198
2827
|
l = r.properties.data || {};
|
|
3199
2828
|
return i().createElement(
|
|
3200
|
-
|
|
2829
|
+
Me,
|
|
3201
2830
|
{
|
|
3202
2831
|
className: s + '-schema schema-item-form',
|
|
3203
|
-
id:
|
|
3204
|
-
key:
|
|
3205
|
-
indexRoute:
|
|
2832
|
+
id: o,
|
|
2833
|
+
key: o,
|
|
2834
|
+
indexRoute: a,
|
|
3206
2835
|
jsonKey: n,
|
|
3207
|
-
title:
|
|
2836
|
+
title: We(m()({}, e)),
|
|
3208
2837
|
},
|
|
3209
|
-
i().createElement(
|
|
2838
|
+
i().createElement(Me, {
|
|
3210
2839
|
className: 'dataSource-type-item-schema schema-item-form',
|
|
3211
|
-
id:
|
|
3212
|
-
key:
|
|
3213
|
-
indexRoute:
|
|
2840
|
+
id: o + '-type',
|
|
2841
|
+
key: o + '-type',
|
|
2842
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3214
2843
|
jsonKey: 'type',
|
|
3215
2844
|
disabled: !0,
|
|
3216
2845
|
title:
|
|
3217
2846
|
((t = {
|
|
3218
|
-
indexRoute:
|
|
2847
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3219
2848
|
jsonKey: 'type',
|
|
3220
2849
|
targetJsonSchema: r.properties.type,
|
|
3221
2850
|
parentType: s,
|
|
3222
|
-
nodeKey:
|
|
2851
|
+
nodeKey: o + '-type',
|
|
3223
2852
|
}),
|
|
3224
|
-
i().createElement(
|
|
2853
|
+
i().createElement(Fe, t)),
|
|
3225
2854
|
}),
|
|
3226
|
-
i().createElement(
|
|
2855
|
+
i().createElement(Me, {
|
|
3227
2856
|
className:
|
|
3228
2857
|
'dataSource-config-item-schema schema-item-form',
|
|
3229
|
-
id:
|
|
3230
|
-
key:
|
|
3231
|
-
indexRoute:
|
|
2858
|
+
id: o + '-config-' + l.type,
|
|
2859
|
+
key: o + '-config-' + l.type,
|
|
2860
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3232
2861
|
jsonKey: 'config',
|
|
3233
2862
|
disabled: !0,
|
|
3234
|
-
title:
|
|
3235
|
-
indexRoute:
|
|
2863
|
+
title: We({
|
|
2864
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3236
2865
|
jsonKey: 'config',
|
|
3237
2866
|
targetJsonSchema: c,
|
|
3238
2867
|
parentType: s,
|
|
3239
|
-
nodeKey:
|
|
2868
|
+
nodeKey: o + '-config-' + c.type,
|
|
3240
2869
|
hideOperaBtn: !0,
|
|
3241
2870
|
keyIsFixed: !0,
|
|
3242
2871
|
typeIsFixed: !0,
|
|
3243
2872
|
}),
|
|
3244
2873
|
}),
|
|
3245
|
-
i().createElement(
|
|
2874
|
+
i().createElement(Me, {
|
|
3246
2875
|
className: 'dataSource-data-item-schema schema-item-form',
|
|
3247
|
-
id:
|
|
3248
|
-
key:
|
|
3249
|
-
indexRoute:
|
|
2876
|
+
id: o + '-data-' + l.type,
|
|
2877
|
+
key: o + '-data-' + l.type,
|
|
2878
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3250
2879
|
jsonKey: 'data',
|
|
3251
2880
|
disabled: !0,
|
|
3252
|
-
title:
|
|
3253
|
-
indexRoute:
|
|
2881
|
+
title: We({
|
|
2882
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3254
2883
|
jsonKey: 'data',
|
|
3255
2884
|
targetJsonSchema: l,
|
|
3256
2885
|
parentType: s,
|
|
3257
|
-
nodeKey:
|
|
2886
|
+
nodeKey: o + '-data-' + l.type,
|
|
3258
2887
|
hideOperaBtn: !0,
|
|
3259
2888
|
keyIsFixed: !0,
|
|
3260
2889
|
typeIsFixed: !0,
|
|
@@ -3266,99 +2895,99 @@
|
|
|
3266
2895
|
return (function (e) {
|
|
3267
2896
|
var t,
|
|
3268
2897
|
n = e.jsonKey,
|
|
3269
|
-
|
|
3270
|
-
|
|
2898
|
+
a = e.indexRoute,
|
|
2899
|
+
o = e.nodeKey,
|
|
3271
2900
|
r = e.targetJsonSchema,
|
|
3272
2901
|
s = r.type,
|
|
3273
2902
|
c = r.properties.type || {},
|
|
3274
2903
|
l = r.properties.register || {},
|
|
3275
|
-
|
|
3276
|
-
|
|
2904
|
+
p = r.properties.actionFunc || {},
|
|
2905
|
+
d = r.properties.trigger || {},
|
|
3277
2906
|
u = r.properties.eventData || {};
|
|
3278
2907
|
return i().createElement(
|
|
3279
|
-
|
|
2908
|
+
Ge,
|
|
3280
2909
|
{
|
|
3281
2910
|
className: s + '-schema schema-item-form',
|
|
3282
|
-
id:
|
|
3283
|
-
key:
|
|
3284
|
-
indexRoute:
|
|
2911
|
+
id: o,
|
|
2912
|
+
key: o,
|
|
2913
|
+
indexRoute: a,
|
|
3285
2914
|
jsonKey: n,
|
|
3286
|
-
title:
|
|
2915
|
+
title: ze(m()({}, e)),
|
|
3287
2916
|
},
|
|
3288
|
-
i().createElement(
|
|
2917
|
+
i().createElement(Ge, {
|
|
3289
2918
|
className: 'event-type-item-schema schema-item-form',
|
|
3290
|
-
id:
|
|
3291
|
-
key:
|
|
3292
|
-
indexRoute:
|
|
2919
|
+
id: o + '-type',
|
|
2920
|
+
key: o + '-type',
|
|
2921
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3293
2922
|
jsonKey: 'type',
|
|
3294
2923
|
disabled: !0,
|
|
3295
2924
|
title:
|
|
3296
2925
|
((t = {
|
|
3297
|
-
indexRoute:
|
|
2926
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3298
2927
|
jsonKey: 'type',
|
|
3299
2928
|
targetJsonSchema: c,
|
|
3300
2929
|
parentType: s,
|
|
3301
|
-
nodeKey:
|
|
2930
|
+
nodeKey: o + '-type',
|
|
3302
2931
|
}),
|
|
3303
|
-
i().createElement(
|
|
2932
|
+
i().createElement(Fe, t)),
|
|
3304
2933
|
}),
|
|
3305
2934
|
'on' === c.default &&
|
|
3306
2935
|
l &&
|
|
3307
|
-
i().createElement(
|
|
2936
|
+
i().createElement(Ge, {
|
|
3308
2937
|
className:
|
|
3309
2938
|
'event-register-item-schema schema-item-form',
|
|
3310
|
-
id:
|
|
3311
|
-
key:
|
|
3312
|
-
indexRoute:
|
|
2939
|
+
id: o + '-register-' + c.default,
|
|
2940
|
+
key: o + '-register-' + c.default,
|
|
2941
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3313
2942
|
jsonKey: 'register',
|
|
3314
2943
|
disabled: !0,
|
|
3315
|
-
title:
|
|
3316
|
-
indexRoute:
|
|
2944
|
+
title: ze({
|
|
2945
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3317
2946
|
jsonKey: 'register',
|
|
3318
2947
|
targetJsonSchema: l,
|
|
3319
2948
|
parentType: s,
|
|
3320
|
-
nodeKey:
|
|
2949
|
+
nodeKey: o + '-register-' + c.default,
|
|
3321
2950
|
hideOperaBtn: !0,
|
|
3322
2951
|
keyIsFixed: !0,
|
|
3323
2952
|
typeIsFixed: !0,
|
|
3324
2953
|
}),
|
|
3325
2954
|
}),
|
|
3326
2955
|
'on' === c.default &&
|
|
3327
|
-
|
|
3328
|
-
i().createElement(
|
|
2956
|
+
p &&
|
|
2957
|
+
i().createElement(Ge, {
|
|
3329
2958
|
className:
|
|
3330
2959
|
'event-actionFunc-item-schema schema-item-form',
|
|
3331
|
-
id:
|
|
3332
|
-
key:
|
|
3333
|
-
indexRoute:
|
|
2960
|
+
id: o + '-actionFunc-' + c.default,
|
|
2961
|
+
key: o + '-actionFunc-' + c.default,
|
|
2962
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3334
2963
|
jsonKey: 'actionFunc',
|
|
3335
2964
|
disabled: !0,
|
|
3336
|
-
title:
|
|
3337
|
-
indexRoute:
|
|
2965
|
+
title: ze({
|
|
2966
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3338
2967
|
jsonKey: 'actionFunc',
|
|
3339
|
-
targetJsonSchema:
|
|
2968
|
+
targetJsonSchema: p,
|
|
3340
2969
|
parentType: s,
|
|
3341
|
-
nodeKey:
|
|
2970
|
+
nodeKey: o + '-actionFunc-' + c.default,
|
|
3342
2971
|
hideOperaBtn: !0,
|
|
3343
2972
|
keyIsFixed: !0,
|
|
3344
2973
|
typeIsFixed: !0,
|
|
3345
2974
|
}),
|
|
3346
2975
|
}),
|
|
3347
2976
|
'emit' === c.default &&
|
|
3348
|
-
|
|
3349
|
-
i().createElement(
|
|
2977
|
+
d &&
|
|
2978
|
+
i().createElement(Ge, {
|
|
3350
2979
|
className: 'event-trigger-item-schema schema-item-form',
|
|
3351
|
-
id:
|
|
3352
|
-
key:
|
|
3353
|
-
indexRoute:
|
|
2980
|
+
id: o + '-trigger-' + c.default,
|
|
2981
|
+
key: o + '-trigger-' + c.default,
|
|
2982
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3354
2983
|
jsonKey: 'trigger',
|
|
3355
2984
|
disabled: !0,
|
|
3356
|
-
title:
|
|
3357
|
-
indexRoute:
|
|
2985
|
+
title: ze({
|
|
2986
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3358
2987
|
jsonKey: 'trigger',
|
|
3359
|
-
targetJsonSchema:
|
|
2988
|
+
targetJsonSchema: d,
|
|
3360
2989
|
parentType: s,
|
|
3361
|
-
nodeKey:
|
|
2990
|
+
nodeKey: o + '-trigger-' + c.default,
|
|
3362
2991
|
hideOperaBtn: !0,
|
|
3363
2992
|
keyIsFixed: !0,
|
|
3364
2993
|
typeIsFixed: !0,
|
|
@@ -3366,20 +2995,20 @@
|
|
|
3366
2995
|
}),
|
|
3367
2996
|
'emit' === c.default &&
|
|
3368
2997
|
u &&
|
|
3369
|
-
i().createElement(
|
|
2998
|
+
i().createElement(Ge, {
|
|
3370
2999
|
className:
|
|
3371
3000
|
'event-eventData-item-schema schema-item-form',
|
|
3372
|
-
id:
|
|
3373
|
-
key:
|
|
3374
|
-
indexRoute:
|
|
3001
|
+
id: o + '-eventData-' + c.default,
|
|
3002
|
+
key: o + '-eventData-' + c.default,
|
|
3003
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3375
3004
|
jsonKey: 'eventData',
|
|
3376
3005
|
disabled: !0,
|
|
3377
|
-
title:
|
|
3378
|
-
indexRoute:
|
|
3006
|
+
title: ze({
|
|
3007
|
+
indexRoute: a ? a + '-2' : '2',
|
|
3379
3008
|
jsonKey: 'eventData',
|
|
3380
3009
|
targetJsonSchema: u,
|
|
3381
3010
|
parentType: s,
|
|
3382
|
-
nodeKey:
|
|
3011
|
+
nodeKey: o + '-eventData-' + c.default,
|
|
3383
3012
|
hideOperaBtn: !0,
|
|
3384
3013
|
keyIsFixed: !0,
|
|
3385
3014
|
typeIsFixed: !0,
|
|
@@ -3392,57 +3021,57 @@
|
|
|
3392
3021
|
return (function (e) {
|
|
3393
3022
|
var t,
|
|
3394
3023
|
n = e.jsonKey,
|
|
3395
|
-
|
|
3396
|
-
|
|
3024
|
+
a = e.indexRoute,
|
|
3025
|
+
o = e.nodeKey,
|
|
3397
3026
|
r = e.targetJsonSchema,
|
|
3398
3027
|
s = r.type,
|
|
3399
3028
|
c = r.propertyOrder[0],
|
|
3400
3029
|
l = r.properties[c];
|
|
3401
3030
|
return i().createElement(
|
|
3402
|
-
|
|
3031
|
+
Ue,
|
|
3403
3032
|
{
|
|
3404
3033
|
className: s + '-schema schema-item-form',
|
|
3405
|
-
id:
|
|
3406
|
-
key:
|
|
3407
|
-
indexRoute:
|
|
3034
|
+
id: o,
|
|
3035
|
+
key: o,
|
|
3036
|
+
indexRoute: a,
|
|
3408
3037
|
jsonKey: n,
|
|
3409
|
-
title:
|
|
3038
|
+
title: He(m()({}, e)),
|
|
3410
3039
|
},
|
|
3411
|
-
i().createElement(
|
|
3040
|
+
i().createElement(Ue, {
|
|
3412
3041
|
className: 'quantity-unit-item-schema schema-item-form',
|
|
3413
|
-
id:
|
|
3414
|
-
key:
|
|
3415
|
-
indexRoute:
|
|
3042
|
+
id: o + '-' + c,
|
|
3043
|
+
key: o + '-' + c,
|
|
3044
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3416
3045
|
jsonKey: c,
|
|
3417
3046
|
disabled: !0,
|
|
3418
|
-
title:
|
|
3419
|
-
indexRoute:
|
|
3047
|
+
title: He({
|
|
3048
|
+
indexRoute: a ? a + '-0' : '0',
|
|
3420
3049
|
jsonKey: c,
|
|
3421
3050
|
targetJsonSchema: l,
|
|
3422
3051
|
parentType: s,
|
|
3423
|
-
nodeKey:
|
|
3052
|
+
nodeKey: o + '-' + c,
|
|
3424
3053
|
hideOperaBtn: !0,
|
|
3425
3054
|
showAdvanceBtn: !0,
|
|
3426
3055
|
typeIsFixed: !0,
|
|
3427
3056
|
}),
|
|
3428
3057
|
}),
|
|
3429
|
-
i().createElement(
|
|
3058
|
+
i().createElement(Ue, {
|
|
3430
3059
|
className:
|
|
3431
3060
|
'quantity-typeSelect-item-schema schema-item-form',
|
|
3432
|
-
id:
|
|
3433
|
-
key:
|
|
3434
|
-
indexRoute:
|
|
3061
|
+
id: o + '-quantity',
|
|
3062
|
+
key: o + '-quantity',
|
|
3063
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3435
3064
|
jsonKey: 'quantity',
|
|
3436
3065
|
disabled: !0,
|
|
3437
3066
|
title:
|
|
3438
3067
|
((t = {
|
|
3439
|
-
indexRoute:
|
|
3068
|
+
indexRoute: a ? a + '-1' : '1',
|
|
3440
3069
|
jsonKey: 'quantity',
|
|
3441
3070
|
targetJsonSchema: r.properties.quantity,
|
|
3442
3071
|
parentType: s,
|
|
3443
|
-
nodeKey:
|
|
3072
|
+
nodeKey: o + '-quantity',
|
|
3444
3073
|
}),
|
|
3445
|
-
i().createElement(
|
|
3074
|
+
i().createElement(Fe, t)),
|
|
3446
3075
|
}),
|
|
3447
3076
|
);
|
|
3448
3077
|
})(e);
|
|
@@ -3452,39 +3081,39 @@
|
|
|
3452
3081
|
return (function (e) {
|
|
3453
3082
|
var t,
|
|
3454
3083
|
n = e.jsonKey,
|
|
3455
|
-
|
|
3456
|
-
|
|
3084
|
+
a = e.indexRoute,
|
|
3085
|
+
o = e.nodeKey,
|
|
3457
3086
|
r = e.targetJsonSchema,
|
|
3458
3087
|
s = r.type,
|
|
3459
3088
|
c = r.options,
|
|
3460
|
-
l =
|
|
3089
|
+
l = a || '0';
|
|
3461
3090
|
return i().createElement(
|
|
3462
|
-
|
|
3091
|
+
Ze,
|
|
3463
3092
|
{
|
|
3464
3093
|
className: s + '-schema schema-item-form',
|
|
3465
|
-
id:
|
|
3466
|
-
key:
|
|
3467
|
-
indexRoute:
|
|
3094
|
+
id: o,
|
|
3095
|
+
key: o,
|
|
3096
|
+
indexRoute: a,
|
|
3468
3097
|
jsonKey: n,
|
|
3469
|
-
title: ((t = m()({}, e)), i().createElement(
|
|
3098
|
+
title: ((t = m()({}, e)), i().createElement(Je, t)),
|
|
3470
3099
|
},
|
|
3471
3100
|
c &&
|
|
3472
3101
|
c.length > 0 &&
|
|
3473
3102
|
c.map(function (e, t) {
|
|
3474
3103
|
var n = e.label || e.name,
|
|
3475
|
-
|
|
3476
|
-
r = '' +
|
|
3477
|
-
return i().createElement(
|
|
3104
|
+
a = e.value,
|
|
3105
|
+
r = '' + o + s + '-' + n;
|
|
3106
|
+
return i().createElement(Ze, {
|
|
3478
3107
|
className: 'enum-item-schema schema-item-form',
|
|
3479
3108
|
id: r,
|
|
3480
3109
|
key: r,
|
|
3481
3110
|
indexRoute: l,
|
|
3482
3111
|
disabled: !0,
|
|
3483
|
-
title:
|
|
3112
|
+
title: $e({
|
|
3484
3113
|
indexRoute: l,
|
|
3485
3114
|
optionIndex: t,
|
|
3486
3115
|
optionLabel: n,
|
|
3487
|
-
optionValue:
|
|
3116
|
+
optionValue: a,
|
|
3488
3117
|
optionNodeKey: r,
|
|
3489
3118
|
}),
|
|
3490
3119
|
});
|
|
@@ -3495,66 +3124,66 @@
|
|
|
3495
3124
|
return (function (e) {
|
|
3496
3125
|
var t = e.jsonKey,
|
|
3497
3126
|
n = e.indexRoute,
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
return i().createElement(
|
|
3501
|
-
className:
|
|
3502
|
-
id:
|
|
3503
|
-
key:
|
|
3127
|
+
a = e.nodeKey,
|
|
3128
|
+
o = e.targetJsonSchema.type;
|
|
3129
|
+
return i().createElement(et, {
|
|
3130
|
+
className: o + '-schema schema-item-form',
|
|
3131
|
+
id: a,
|
|
3132
|
+
key: a,
|
|
3504
3133
|
indexRoute: n,
|
|
3505
3134
|
jsonKey: t,
|
|
3506
|
-
title:
|
|
3135
|
+
title: tt(e),
|
|
3507
3136
|
});
|
|
3508
3137
|
})(e);
|
|
3509
3138
|
}
|
|
3510
3139
|
},
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
return i().createElement(
|
|
3140
|
+
at = S.Tree.TreeNode,
|
|
3141
|
+
ot = function (e) {
|
|
3142
|
+
return i().createElement(Je, e);
|
|
3514
3143
|
},
|
|
3515
|
-
|
|
3144
|
+
rt = function (e) {
|
|
3516
3145
|
var t,
|
|
3517
3146
|
n,
|
|
3518
|
-
o,
|
|
3519
3147
|
a,
|
|
3148
|
+
o,
|
|
3520
3149
|
r,
|
|
3521
3150
|
s = e.jsonKey,
|
|
3522
3151
|
c = e.indexRoute,
|
|
3523
3152
|
l = e.nodeKey,
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
u =
|
|
3527
|
-
h =
|
|
3153
|
+
p = e.targetJsonSchema,
|
|
3154
|
+
d = e.isOnlyShowChild,
|
|
3155
|
+
u = p.type,
|
|
3156
|
+
h = p.isFixed,
|
|
3528
3157
|
y =
|
|
3529
3158
|
((t = {
|
|
3530
|
-
propertyOrder:
|
|
3531
|
-
properties:
|
|
3159
|
+
propertyOrder: p.propertyOrder,
|
|
3160
|
+
properties: p.properties,
|
|
3532
3161
|
parentIndexRoute: c,
|
|
3533
3162
|
parentNodeKey: l,
|
|
3534
3163
|
parentType: u,
|
|
3535
|
-
isOnlyShowChild:
|
|
3164
|
+
isOnlyShowChild: d,
|
|
3536
3165
|
}),
|
|
3537
3166
|
(n = t.properties),
|
|
3538
|
-
(
|
|
3539
|
-
(
|
|
3167
|
+
(a = t.parentIndexRoute),
|
|
3168
|
+
(o = t.parentNodeKey),
|
|
3540
3169
|
(r = t.parentType),
|
|
3541
3170
|
t.propertyOrder.map(function (e, t) {
|
|
3542
|
-
var i =
|
|
3171
|
+
var i = a ? a + '-' + t : '' + t,
|
|
3543
3172
|
s = e,
|
|
3544
3173
|
c = n[s],
|
|
3545
3174
|
l = c.type,
|
|
3546
|
-
|
|
3547
|
-
return
|
|
3175
|
+
p = (o ? o + '-' : '') + l + '-' + s;
|
|
3176
|
+
return nt({
|
|
3548
3177
|
parentType: r,
|
|
3549
3178
|
jsonKey: s,
|
|
3550
3179
|
indexRoute: i,
|
|
3551
|
-
key:
|
|
3552
|
-
nodeKey:
|
|
3180
|
+
key: p,
|
|
3181
|
+
nodeKey: p,
|
|
3553
3182
|
targetJsonSchema: c,
|
|
3554
3183
|
});
|
|
3555
3184
|
})),
|
|
3556
3185
|
g = i().createElement(
|
|
3557
|
-
|
|
3186
|
+
at,
|
|
3558
3187
|
{
|
|
3559
3188
|
className: u + '-schema schema-item-form',
|
|
3560
3189
|
id: l,
|
|
@@ -3562,128 +3191,70 @@
|
|
|
3562
3191
|
indexRoute: c,
|
|
3563
3192
|
jsonKey: s,
|
|
3564
3193
|
disabled: h,
|
|
3565
|
-
title:
|
|
3194
|
+
title: ot(m()({}, e)),
|
|
3566
3195
|
},
|
|
3567
3196
|
y,
|
|
3568
3197
|
);
|
|
3569
|
-
return
|
|
3198
|
+
return d ? y : g;
|
|
3570
3199
|
},
|
|
3571
|
-
|
|
3572
|
-
(n(797),
|
|
3573
|
-
(0, l.inject)(function (e) {
|
|
3574
|
-
return {
|
|
3575
|
-
jsonSchema: e.jsonSchemaStore.jsonSchema,
|
|
3576
|
-
removeConditionProp: e.jsonSchemaStore.removeConditionProp,
|
|
3577
|
-
cancelConditionProp: e.jsonSchemaStore.cancelConditionProp,
|
|
3578
|
-
};
|
|
3579
|
-
})(
|
|
3580
|
-
(0, l.observer)(function (e) {
|
|
3581
|
-
var t = e.jsonSchema,
|
|
3582
|
-
n = e.removeConditionProp,
|
|
3583
|
-
o = e.cancelConditionProp,
|
|
3584
|
-
a = {};
|
|
3585
|
-
t.conditionProps && (a = t.conditionProps);
|
|
3586
|
-
var r = Object.keys(a);
|
|
3587
|
-
return 0 === r.length
|
|
3588
|
-
? ''
|
|
3589
|
-
: i().createElement(
|
|
3590
|
-
'div',
|
|
3591
|
-
{ className: 'condition-props-box' },
|
|
3592
|
-
i().createElement(
|
|
3593
|
-
'div',
|
|
3594
|
-
{ className: 'title' },
|
|
3595
|
-
i().createElement(
|
|
3596
|
-
b.Tooltip,
|
|
3597
|
-
{
|
|
3598
|
-
title: '其他字段可根据条件字段的数值设置规则联动',
|
|
3599
|
-
placement: 'top',
|
|
3600
|
-
},
|
|
3601
|
-
'条件字段:',
|
|
3602
|
-
),
|
|
3603
|
-
),
|
|
3604
|
-
i().createElement(
|
|
3605
|
-
'div',
|
|
3606
|
-
{ className: 'tags-box' },
|
|
3607
|
-
r.map(function (e) {
|
|
3608
|
-
var t = a[e];
|
|
3609
|
-
return i().createElement(
|
|
3610
|
-
b.Tag,
|
|
3611
|
-
{
|
|
3612
|
-
key: t.keyRoute,
|
|
3613
|
-
color: 'geekblue',
|
|
3614
|
-
closable: !0,
|
|
3615
|
-
onClose: function () {
|
|
3616
|
-
n(t.keyRoute), o(t.keyRoute, t.key);
|
|
3617
|
-
},
|
|
3618
|
-
},
|
|
3619
|
-
t.key,
|
|
3620
|
-
'(',
|
|
3621
|
-
t.title,
|
|
3622
|
-
')',
|
|
3623
|
-
);
|
|
3624
|
-
}),
|
|
3625
|
-
),
|
|
3626
|
-
);
|
|
3627
|
-
}),
|
|
3628
|
-
)),
|
|
3629
|
-
yt =
|
|
3200
|
+
it =
|
|
3630
3201
|
(n(23),
|
|
3631
3202
|
(function (e) {
|
|
3632
3203
|
function t(t) {
|
|
3633
3204
|
var n;
|
|
3634
|
-
|
|
3635
|
-
((n
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3205
|
+
((n = e.call(this, t) || this).onDragStart = function (e) {
|
|
3206
|
+
(0, (n.props.schemaStore || {}).getSchemaByIndexRoute)(
|
|
3207
|
+
e.node.indexRoute,
|
|
3208
|
+
).isFixed && S.message.warning('当前元素不支持拖拽哦。');
|
|
3209
|
+
}),
|
|
3639
3210
|
(n.onDrop = function (e) {
|
|
3640
3211
|
var t = e.dragNode,
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
r =
|
|
3644
|
-
i =
|
|
3645
|
-
s =
|
|
3646
|
-
c =
|
|
3647
|
-
l =
|
|
3648
|
-
|
|
3649
|
-
|
|
3212
|
+
a = e.node,
|
|
3213
|
+
o = n.props.schemaStore || {},
|
|
3214
|
+
r = o.getSchemaByIndexRoute,
|
|
3215
|
+
i = o.indexRoute2keyRoute,
|
|
3216
|
+
s = o.insertJsonData,
|
|
3217
|
+
c = o.deleteJsonByIndex,
|
|
3218
|
+
l = o.isExitJsonKey,
|
|
3219
|
+
p = o.isSupportCurType,
|
|
3220
|
+
d = t.indexRoute,
|
|
3650
3221
|
u = t.jsonKey,
|
|
3651
|
-
m = r(
|
|
3222
|
+
m = r(d);
|
|
3652
3223
|
if (!m.isFixed) {
|
|
3653
|
-
var h =
|
|
3654
|
-
y = (0,
|
|
3655
|
-
g = (0,
|
|
3224
|
+
var h = a.indexRoute,
|
|
3225
|
+
y = (0, Oe.isSameParent)(d, h),
|
|
3226
|
+
g = (0, Oe.getCurPosition)(d, h);
|
|
3656
3227
|
if (y)
|
|
3657
|
-
c(
|
|
3658
|
-
'before' === g && (h = (0,
|
|
3659
|
-
|
|
3228
|
+
c(d, !0),
|
|
3229
|
+
'before' === g && (h = (0, Oe.moveForward)(h)),
|
|
3230
|
+
a.dragOverGapTop
|
|
3660
3231
|
? s(h, u, m, 'before')
|
|
3661
|
-
: (
|
|
3232
|
+
: (a.dragOver || a.dragOverGapBottom) && s(h, u, m);
|
|
3662
3233
|
else {
|
|
3663
3234
|
if (l(h, u))
|
|
3664
|
-
return void
|
|
3235
|
+
return void S.message.warning(
|
|
3665
3236
|
'目标位置中有重名的元素',
|
|
3666
3237
|
);
|
|
3667
3238
|
var f = m.type;
|
|
3668
|
-
if (!
|
|
3669
|
-
return void
|
|
3239
|
+
if (!p(h, f))
|
|
3240
|
+
return void S.message.warning(
|
|
3670
3241
|
'目标位置不支持' + f + '类型元素',
|
|
3671
3242
|
);
|
|
3672
|
-
var
|
|
3673
|
-
|
|
3674
|
-
|
|
3243
|
+
var v = i(d),
|
|
3244
|
+
x = (0, Oe.getParentIndexRoute)(h),
|
|
3245
|
+
b = (function (e) {
|
|
3675
3246
|
if (window.sessionStorage)
|
|
3676
3247
|
return window.sessionStorage.getItem(e);
|
|
3677
|
-
})(
|
|
3678
|
-
|
|
3679
|
-
|
|
3248
|
+
})(v + '-' + f);
|
|
3249
|
+
C(i(x) + '-' + u + '-' + f, b || v),
|
|
3250
|
+
a.dragOverGapTop
|
|
3680
3251
|
? 'after' === g
|
|
3681
|
-
? (c(
|
|
3682
|
-
: (s(h, u, m, 'before', !0), c(
|
|
3683
|
-
: (
|
|
3252
|
+
? (c(d, !0), s(h, u, m, 'before'))
|
|
3253
|
+
: (s(h, u, m, 'before', !0), c(d))
|
|
3254
|
+
: (a.dragOver || a.dragOverGapBottom) &&
|
|
3684
3255
|
('after' === g
|
|
3685
|
-
? (c(
|
|
3686
|
-
: (s(h, u, m, '', !0), c(
|
|
3256
|
+
? (c(d, !0), s(h, u, m))
|
|
3257
|
+
: (s(h, u, m, '', !0), c(d)));
|
|
3687
3258
|
}
|
|
3688
3259
|
}
|
|
3689
3260
|
}),
|
|
@@ -3693,34 +3264,40 @@
|
|
|
3693
3264
|
e &&
|
|
3694
3265
|
e.propertyOrder &&
|
|
3695
3266
|
e.properties &&
|
|
3696
|
-
e.propertyOrder.map(function (n,
|
|
3697
|
-
var
|
|
3698
|
-
r = e.properties[
|
|
3267
|
+
e.propertyOrder.map(function (n, a) {
|
|
3268
|
+
var o = n,
|
|
3269
|
+
r = e.properties[o].type + '-' + o;
|
|
3699
3270
|
t.push(r);
|
|
3700
3271
|
}),
|
|
3701
3272
|
t
|
|
3702
3273
|
);
|
|
3703
|
-
})
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3274
|
+
});
|
|
3275
|
+
var a = n.props.schemaStore || {},
|
|
3276
|
+
o = a.initJSONSchemaData,
|
|
3277
|
+
r = a.initOnChange,
|
|
3278
|
+
i = a.initSchemaTypeList;
|
|
3279
|
+
return (
|
|
3280
|
+
t.data && o(t.data),
|
|
3281
|
+
t.onChange && r(t.onChange),
|
|
3282
|
+
t.typeList && i(t.typeList),
|
|
3707
3283
|
n
|
|
3708
3284
|
);
|
|
3709
3285
|
}
|
|
3710
|
-
|
|
3286
|
+
o()(t, e);
|
|
3711
3287
|
var n = t.prototype;
|
|
3712
3288
|
return (
|
|
3713
3289
|
(n.componentWillReceiveProps = function (e) {
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3290
|
+
var t = this.props.schemaStore || {},
|
|
3291
|
+
n = t.initJSONSchemaData,
|
|
3292
|
+
a = t.initOnChange,
|
|
3293
|
+
o = t.initSchemaTypeList;
|
|
3294
|
+
O(e.data, this.props.data) || n(e.data),
|
|
3295
|
+
O(e.onChange, this.props.onChange) || a(e.onChange),
|
|
3296
|
+
O(e.typeList, this.props.typeList) || o(e.typeList);
|
|
3720
3297
|
}),
|
|
3721
3298
|
(n.render = function () {
|
|
3722
|
-
var e = this.props.jsonSchema,
|
|
3723
|
-
t = (0,
|
|
3299
|
+
var e = (this.props.schemaStore || {}).jsonSchema,
|
|
3300
|
+
t = (0, Oe.isEmptySchema)(e),
|
|
3724
3301
|
n = e.type;
|
|
3725
3302
|
return r.createElement(
|
|
3726
3303
|
'div',
|
|
@@ -3729,9 +3306,8 @@
|
|
|
3729
3306
|
r.createElement(
|
|
3730
3307
|
r.Fragment,
|
|
3731
3308
|
null,
|
|
3732
|
-
r.createElement(ht, null),
|
|
3733
3309
|
r.createElement(
|
|
3734
|
-
|
|
3310
|
+
S.Tree,
|
|
3735
3311
|
{
|
|
3736
3312
|
draggable: !0,
|
|
3737
3313
|
selectable: !1,
|
|
@@ -3743,7 +3319,7 @@
|
|
|
3743
3319
|
: this.catchExpandedKeys(e),
|
|
3744
3320
|
},
|
|
3745
3321
|
'object' === n &&
|
|
3746
|
-
|
|
3322
|
+
rt({
|
|
3747
3323
|
parentType: '',
|
|
3748
3324
|
jsonKey: '',
|
|
3749
3325
|
indexRoute: '',
|
|
@@ -3752,7 +3328,7 @@
|
|
|
3752
3328
|
isOnlyShowChild: !0,
|
|
3753
3329
|
}),
|
|
3754
3330
|
'object' !== n &&
|
|
3755
|
-
|
|
3331
|
+
nt({
|
|
3756
3332
|
parentType: '',
|
|
3757
3333
|
jsonKey: '',
|
|
3758
3334
|
indexRoute: '',
|
|
@@ -3774,70 +3350,58 @@
|
|
|
3774
3350
|
t
|
|
3775
3351
|
);
|
|
3776
3352
|
})(r.PureComponent));
|
|
3777
|
-
|
|
3778
|
-
onChange:
|
|
3779
|
-
data:
|
|
3780
|
-
typeList:
|
|
3353
|
+
it.propTypes = {
|
|
3354
|
+
onChange: d().func,
|
|
3355
|
+
data: d().object,
|
|
3356
|
+
typeList: d().object,
|
|
3781
3357
|
};
|
|
3782
|
-
var
|
|
3783
|
-
return {
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
initOnChange: e.jsonSchemaStore.initOnChange,
|
|
3787
|
-
initSchemaTypeList: e.jsonSchemaStore.initSchemaTypeList,
|
|
3788
|
-
setPageScreen: e.jsonSchemaStore.setPageScreen,
|
|
3789
|
-
getSchemaByIndexRoute: e.jsonSchemaStore.getSchemaByIndexRoute,
|
|
3790
|
-
indexRoute2keyRoute: e.jsonSchemaStore.indexRoute2keyRoute,
|
|
3791
|
-
insertJsonData: e.jsonSchemaStore.insertJsonData,
|
|
3792
|
-
deleteJsonByIndex: e.jsonSchemaStore.deleteJsonByIndex,
|
|
3793
|
-
isExitJsonKey: e.jsonSchemaStore.isExitJsonKey,
|
|
3794
|
-
isSupportCurType: e.jsonSchemaStore.isSupportCurType,
|
|
3795
|
-
};
|
|
3796
|
-
})((0, l.observer)(yt)),
|
|
3797
|
-
ft = (function (e) {
|
|
3358
|
+
var st = (0, l.inject)(function (e) {
|
|
3359
|
+
return { schemaStore: e.schemaStore };
|
|
3360
|
+
})((0, l.observer)(it)),
|
|
3361
|
+
ct = (function (e) {
|
|
3798
3362
|
function t(t) {
|
|
3799
3363
|
var n;
|
|
3800
3364
|
return (
|
|
3801
3365
|
((n = e.call(this, t) || this).state = {
|
|
3802
|
-
|
|
3366
|
+
schemaStore: new Ne.schemaStore(),
|
|
3803
3367
|
}),
|
|
3804
3368
|
n
|
|
3805
3369
|
);
|
|
3806
3370
|
}
|
|
3807
3371
|
return (
|
|
3808
|
-
|
|
3372
|
+
o()(t, e),
|
|
3809
3373
|
(t.prototype.render = function () {
|
|
3810
3374
|
var e = this.props,
|
|
3811
3375
|
t = e.data,
|
|
3812
3376
|
n = e.typeList,
|
|
3813
|
-
|
|
3814
|
-
|
|
3377
|
+
a = e.onChange,
|
|
3378
|
+
o = e.element,
|
|
3815
3379
|
i = e.wideScreen,
|
|
3816
|
-
s = this.state.
|
|
3817
|
-
|
|
3380
|
+
s = this.state.schemaStore,
|
|
3381
|
+
p = r.createElement(
|
|
3818
3382
|
l.Provider,
|
|
3819
|
-
{
|
|
3820
|
-
r.createElement(
|
|
3383
|
+
{ schemaStore: s },
|
|
3384
|
+
r.createElement(st, {
|
|
3821
3385
|
data: t,
|
|
3822
3386
|
typeList: n,
|
|
3823
|
-
onChange:
|
|
3387
|
+
onChange: a,
|
|
3824
3388
|
wideScreen: i,
|
|
3825
3389
|
}),
|
|
3826
3390
|
);
|
|
3827
|
-
return
|
|
3391
|
+
return o ? (c().render(p, o), '') : p;
|
|
3828
3392
|
}),
|
|
3829
3393
|
t
|
|
3830
3394
|
);
|
|
3831
3395
|
})(r.PureComponent);
|
|
3832
|
-
|
|
3833
|
-
wideScreen:
|
|
3834
|
-
onChange:
|
|
3835
|
-
data:
|
|
3836
|
-
typeList:
|
|
3837
|
-
element:
|
|
3396
|
+
ct.propTypes = {
|
|
3397
|
+
wideScreen: d().any,
|
|
3398
|
+
onChange: d().func,
|
|
3399
|
+
data: d().any,
|
|
3400
|
+
typeList: d().any,
|
|
3401
|
+
element: d().any,
|
|
3838
3402
|
};
|
|
3839
3403
|
})(),
|
|
3840
|
-
|
|
3404
|
+
a
|
|
3841
3405
|
);
|
|
3842
3406
|
})();
|
|
3843
3407
|
});
|