@wibetter/json-schema-editor 7.0.1 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -13
- package/lib/index.css +2 -2
- package/lib/index.js +227 -277
- package/lib/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# json-schema-editor
|
|
2
2
|
|
|
3
|
-
> JSON数据可视化/
|
|
3
|
+
> JSON数据可视化/SchemaEditor,以表单的形式编辑 schema 数据,可用于在线设计页面/组件的配置面板。
|
|
4
4
|
|
|
5
5
|
### 技术栈
|
|
6
6
|
React/Mobx/Ant Design
|
|
@@ -8,16 +8,15 @@ React/Mobx/Ant Design
|
|
|
8
8
|
### 特点
|
|
9
9
|
1. 支持14种基础类型组件(input、boolean、 date、date-time、 time、 url、
|
|
10
10
|
textarea、number、color、radio、 checkboxes、select、cascader、input-image)
|
|
11
|
-
2. 支持
|
|
12
|
-
3.
|
|
13
|
-
4.
|
|
14
|
-
5.
|
|
15
|
-
6.
|
|
16
|
-
7.
|
|
17
|
-
8. 支持添加自定义 Schema
|
|
11
|
+
2. 支持8种特殊类型组件(object、array、json、codearea、htmlarea、text-editor([使用说明](https://github.com/wibetter/json-editor/blob/master/docs/TextEditor.md))、quantity、padding-margin)
|
|
12
|
+
3. 支持拖拽排序、删除、复制、高级配置等功能
|
|
13
|
+
4. 支持无限嵌套
|
|
14
|
+
5. 支持通过表达式进行配置联动
|
|
15
|
+
6. 支持源码模式切换(开启源码模式后可以开启编辑模式)
|
|
16
|
+
7. 支持添加自定义类型
|
|
18
17
|
|
|
19
18
|
### 特别说明
|
|
20
|
-
|
|
19
|
+
SchemaEditor仅用于生成结构化的json数据,还需要配合JSONEditor([git地址](https://github.com/wibetter/json-editor))渲染其内容。
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
## 安装
|
|
@@ -71,7 +70,7 @@ class IndexDemo extends React.PureComponent {
|
|
|
71
70
|
| `data` | object | {} | 必填项,json schema(带结构的json数据) |
|
|
72
71
|
| `onChange` | function | () => {} | schemaData内容变动时会触发onChange |
|
|
73
72
|
|
|
74
|
-
##
|
|
73
|
+
## 如何添加自定义类型?
|
|
75
74
|
|
|
76
75
|
从 v7.0.0 起,支持通过 `SchemaDescriptor` 描述文件注册自定义 Schema 类型。注册后,自定义类型会出现在类型选择下拉列表中,并在编辑区以自定义渲染器或通用渲染器呈现。
|
|
77
76
|
|
|
@@ -91,9 +90,9 @@ class IndexDemo extends React.PureComponent {
|
|
|
91
90
|
| `readOnly` | boolean | ❌ | 是否只读(不可编辑) |
|
|
92
91
|
| `hideOperaBtn` | boolean | ❌ | 是否隐藏操作按钮(增删复制拖拽) |
|
|
93
92
|
|
|
94
|
-
###
|
|
93
|
+
### 注册自定义类型 示例
|
|
95
94
|
|
|
96
|
-
以下示例展示如何注册一个 `
|
|
95
|
+
以下示例展示如何注册一个 `color-picker`(颜色选择器)类型的自定义类型:
|
|
97
96
|
|
|
98
97
|
**第一步:创建描述文件 `colorPickerPlugin.ts`**
|
|
99
98
|
|
|
@@ -123,7 +122,7 @@ registerSchema(colorPickerDescriptor);
|
|
|
123
122
|
**第二步:在入口文件中引入插件(确保注册在 `JSONSchemaEditor` 渲染前执行)**
|
|
124
123
|
|
|
125
124
|
```js
|
|
126
|
-
import './
|
|
125
|
+
import './colorPickerPlugin'; // 引入即触发注册
|
|
127
126
|
import JSONSchemaEditor from '@wibetter/json-schema-editor';
|
|
128
127
|
```
|
|
129
128
|
|
package/lib/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v7.0.
|
|
2
|
+
* @wibetter/json-schema-editor v7.0.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Mar 22 2026 19:15:58 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/.base-schema-box{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;min-height:35px;position:relative}.base-schema-box .warn-text{color:#ad4e00;width:100%}.base-schema-box .key-input-item{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 200px;-ms-flex:1 1 200px;flex:1 1 200px;padding-right:8px}.base-schema-box .type-select-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 120px;-ms-flex:0 1 120px;flex:0 1 120px;padding-right:8px}.base-schema-box .title-input-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 200px;-ms-flex:0 1 200px;flex:0 1 200px}.base-schema-box .operate-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:0 1 110px;-ms-flex:0 1 110px;flex:0 1 110px;-webkit-justify-content:flex-start;justify-content:flex-start;padding-left:10px}.base-schema-box .operate-item .operate-btn{-webkit-box-flex:0;-moz-box-flex:0;color:#2395f1;cursor:pointer!important;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:8px;width:15px}.base-schema-box .operate-item .delete-operate{color:#ff561b}.base-schema-box .operate-item .drag-btn{color:#8a8a8a}.base-schema-box .operate-item .drag-btn:hover{color:#2395f1}.json-view-box{position:relative}.json-view-box .json-view-ace{width:100%}.json-view-box .readOnly-btn{color:#ad6800;position:absolute;right:8px;top:0;z-index:100}.json-schema-container{padding:8px 10px;position:relative}.json-schema-container .schema-item-form{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;min-height:35px;position:relative}.json-schema-empty{height:50px;line-height:50px;position:relative}.ant-tree-list-holder-inner{-webkit-box-align:stretch;-moz-box-align:stretch;-ms-flex-align:stretch;-webkit-align-items:stretch;align-items:stretch}.ant-tree-switcher{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.ant-tree-node-content-wrapper{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.ant-modal-close-x,.ant-tree .ant-tree-switcher,.option-schema-box{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.option-schema-box{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;min-height:35px;position:relative}.option-schema-box .key-input-item{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 200px;-ms-flex:1 1 200px;flex:1 1 200px;padding-right:8px}.option-schema-box .type-select-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 120px;-ms-flex:0 1 120px;flex:0 1 120px;padding-right:8px}.option-schema-box .title-input-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 200px;-ms-flex:0 1 200px;flex:0 1 200px}.option-schema-box .operate-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:0 1 110px;-ms-flex:0 1 110px;flex:0 1 110px;-webkit-justify-content:flex-start;justify-content:flex-start;padding-left:10px}.option-schema-box .operate-item .operate-btn{-webkit-box-flex:0;-moz-box-flex:0;color:#2395f1;cursor:pointer!important;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:8px;width:15px}.option-schema-box .operate-item .delete-operate{color:#ff561b}.typeSelect-schema-box{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;min-height:35px;position:relative}.typeSelect-schema-box .key-input-item{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 200px;-ms-flex:1 1 200px;flex:1 1 200px;padding-right:8px}.typeSelect-schema-box .key-input-item .ant-select{display:block}.typeSelect-schema-box .type-select-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 120px;-ms-flex:0 1 120px;flex:0 1 120px;padding-right:8px}.typeSelect-schema-box .title-input-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 1 200px;-ms-flex:0 1 200px;flex:0 1 200px}.typeSelect-schema-box .operate-item{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:0 1 110px;-ms-flex:0 1 110px;flex:0 1 110px;-webkit-justify-content:flex-start;justify-content:flex-start;padding-left:10px}.typeSelect-schema-box .operate-item .operate-btn{-webkit-box-flex:0;-moz-box-flex:0;color:#2395f1;cursor:pointer!important;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:8px;width:15px}.typeSelect-schema-box .operate-item .delete-operate{color:#ff561b}.typeSelect-schema-box .operate-item .drag-btn{background-image:url(//storage.jd.local/cdnnpm/jdw-web/img/drag-default.svg);background-size:contain;color:#8a8a8a;display:inline-block;height:18px;width:18px}
|
package/lib/index.js
CHANGED
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
s = null,
|
|
62
62
|
l = 0,
|
|
63
63
|
d = !1,
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
c = function () {},
|
|
65
|
+
p = null,
|
|
66
66
|
u = 'data-vue-ssr-id',
|
|
67
67
|
h =
|
|
68
68
|
'undefined' != typeof navigator &&
|
|
69
69
|
/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
|
|
70
70
|
function m(e, t, n, o) {
|
|
71
|
-
((d = n), (
|
|
71
|
+
((d = n), (p = o || {}));
|
|
72
72
|
var i = a(e, t);
|
|
73
73
|
return (
|
|
74
74
|
y(i),
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
n,
|
|
118
118
|
a = document.querySelector('style[' + u + '~="' + e.id + '"]');
|
|
119
119
|
if (a) {
|
|
120
|
-
if (d) return
|
|
120
|
+
if (d) return c;
|
|
121
121
|
a.parentNode.removeChild(a);
|
|
122
122
|
}
|
|
123
123
|
if (h) {
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
o = t.sourceMap;
|
|
169
169
|
if (
|
|
170
170
|
(a && e.setAttribute('media', a),
|
|
171
|
-
|
|
171
|
+
p.ssrId && e.setAttribute(u, t.id),
|
|
172
172
|
o &&
|
|
173
173
|
((n += '\n/*# sourceURL=' + o.sources[0] + ' */'),
|
|
174
174
|
(n +=
|
|
@@ -251,13 +251,13 @@
|
|
|
251
251
|
return I;
|
|
252
252
|
},
|
|
253
253
|
default: function () {
|
|
254
|
-
return
|
|
254
|
+
return Fe;
|
|
255
255
|
},
|
|
256
256
|
registerSchema: function () {
|
|
257
|
-
return
|
|
257
|
+
return E;
|
|
258
258
|
},
|
|
259
259
|
schemaRegistry: function () {
|
|
260
|
-
return
|
|
260
|
+
return O;
|
|
261
261
|
},
|
|
262
262
|
}));
|
|
263
263
|
var e = require('@babel/runtime/helpers/extends'),
|
|
@@ -268,9 +268,9 @@
|
|
|
268
268
|
s = n.n(i),
|
|
269
269
|
l = require('react-dom'),
|
|
270
270
|
d = n.n(l),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
u = n.n(
|
|
271
|
+
c = require('mobx-react'),
|
|
272
|
+
p = require('@babel/runtime/helpers/createClass'),
|
|
273
|
+
u = n.n(p),
|
|
274
274
|
h = require('tslib'),
|
|
275
275
|
m = require('mobx'),
|
|
276
276
|
y = require('antd'),
|
|
@@ -325,17 +325,17 @@
|
|
|
325
325
|
);
|
|
326
326
|
})();
|
|
327
327
|
x.instance = void 0;
|
|
328
|
-
var
|
|
329
|
-
|
|
328
|
+
var O = x.getInstance(),
|
|
329
|
+
E = function (e, t) {
|
|
330
330
|
(void 0 === t && (t = !1),
|
|
331
|
-
!
|
|
332
|
-
?
|
|
331
|
+
!O.has(e.type) || t
|
|
332
|
+
? O.register(e)
|
|
333
333
|
: console.warn(
|
|
334
334
|
'[JSONSchemaEditor] 已存在 ' + e.type + ' 类型的描述:',
|
|
335
335
|
e,
|
|
336
336
|
));
|
|
337
337
|
},
|
|
338
|
-
|
|
338
|
+
C = {
|
|
339
339
|
description: {
|
|
340
340
|
type: 'input',
|
|
341
341
|
title: '字段描述',
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
description: '可用于设置标题展示样式',
|
|
362
362
|
},
|
|
363
363
|
},
|
|
364
|
-
j = Object.keys(
|
|
364
|
+
j = Object.keys(C),
|
|
365
365
|
R = {
|
|
366
366
|
readOnly: {
|
|
367
367
|
type: 'boolean',
|
|
@@ -374,12 +374,6 @@
|
|
|
374
374
|
description:
|
|
375
375
|
'当前属性设置为必填项后,如果用户没有给其设置数值,则会进行标红提示',
|
|
376
376
|
},
|
|
377
|
-
isConditionProp: {
|
|
378
|
-
type: 'boolean',
|
|
379
|
-
title: '条件字段',
|
|
380
|
-
description:
|
|
381
|
-
'设置为条件字段后,其他字段可根据其数值变化进行实时联动',
|
|
382
|
-
},
|
|
383
377
|
};
|
|
384
378
|
function I(e) {
|
|
385
379
|
void 0 === e && (e = {});
|
|
@@ -387,13 +381,13 @@
|
|
|
387
381
|
return {
|
|
388
382
|
type: 'object',
|
|
389
383
|
wrapWithPanel: !1,
|
|
390
|
-
properties: t()({}, e,
|
|
384
|
+
properties: t()({}, e, C),
|
|
391
385
|
propertyOrder: [].concat(n, j),
|
|
392
386
|
};
|
|
393
387
|
}
|
|
394
388
|
var N = g.TypeDataList.jsonschema;
|
|
395
389
|
function _() {
|
|
396
|
-
return
|
|
390
|
+
return O.getDefaultSchema('input');
|
|
397
391
|
}
|
|
398
392
|
var K = (function () {
|
|
399
393
|
function e() {
|
|
@@ -413,8 +407,8 @@
|
|
|
413
407
|
s = [],
|
|
414
408
|
l = [],
|
|
415
409
|
d = [],
|
|
416
|
-
p = [],
|
|
417
410
|
c = [],
|
|
411
|
+
p = [],
|
|
418
412
|
u = 0,
|
|
419
413
|
h = a.length;
|
|
420
414
|
u < h;
|
|
@@ -452,13 +446,13 @@
|
|
|
452
446
|
break;
|
|
453
447
|
case 'object':
|
|
454
448
|
case 'array':
|
|
455
|
-
|
|
449
|
+
c.push(m);
|
|
456
450
|
break;
|
|
457
451
|
default:
|
|
458
|
-
|
|
452
|
+
p.push(m);
|
|
459
453
|
}
|
|
460
454
|
}
|
|
461
|
-
((n.propertyOrder = [].concat(o, r, i, s, d, l,
|
|
455
|
+
((n.propertyOrder = [].concat(o, r, i, s, d, l, c, p)),
|
|
462
456
|
e.jsonSchemaChange(!1));
|
|
463
457
|
}),
|
|
464
458
|
(0, m.makeObservable)(this));
|
|
@@ -541,7 +535,7 @@
|
|
|
541
535
|
(n.addChildJson = function (e, t) {
|
|
542
536
|
var n = (0, g.getSchemaByIndexRoute)(e, this.jsonSchema, !1),
|
|
543
537
|
a = null == n ? void 0 : n.type,
|
|
544
|
-
o = a ?
|
|
538
|
+
o = a ? O.get(a) : void 0;
|
|
545
539
|
if (null != o && o.isContainer) {
|
|
546
540
|
var r = this.getNewJsonKeyIndex(n);
|
|
547
541
|
(n.propertyOrder.push(r),
|
|
@@ -558,7 +552,6 @@
|
|
|
558
552
|
(0, f.pick)(a, [
|
|
559
553
|
'title',
|
|
560
554
|
'description',
|
|
561
|
-
'isConditionProp',
|
|
562
555
|
'showKey',
|
|
563
556
|
'showCodeViewBtn',
|
|
564
557
|
'onShow',
|
|
@@ -598,10 +591,10 @@
|
|
|
598
591
|
l = (0, g.getSchemaByIndexRoute)(i, this.jsonSchema, !1);
|
|
599
592
|
l.properties[t] = n;
|
|
600
593
|
var d = l.propertyOrder,
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
u = d.slice(
|
|
604
|
-
((l.propertyOrder = [].concat(
|
|
594
|
+
c = 'before' === a ? Number(s) : Number(s) + 1,
|
|
595
|
+
p = d.slice(0, c),
|
|
596
|
+
u = d.slice(c);
|
|
597
|
+
((l.propertyOrder = [].concat(p, [t], u)),
|
|
605
598
|
this.jsonSchemaChange(o));
|
|
606
599
|
}),
|
|
607
600
|
(n.deleteJsonByIndex_CurKey = function (e, t, n) {
|
|
@@ -665,9 +658,9 @@
|
|
|
665
658
|
l = i.enum.slice(0, s),
|
|
666
659
|
d = i.enum.slice(s);
|
|
667
660
|
i.enum = [].concat(l, [n], d);
|
|
668
|
-
var
|
|
669
|
-
|
|
670
|
-
i.enumextra = [].concat(
|
|
661
|
+
var c = i.enumextra.slice(0, s),
|
|
662
|
+
p = i.enumextra.slice(s);
|
|
663
|
+
i.enumextra = [].concat(c, [a], p);
|
|
671
664
|
}
|
|
672
665
|
this.jsonSchemaChange(r);
|
|
673
666
|
}),
|
|
@@ -744,8 +737,8 @@
|
|
|
744
737
|
var s = 'before' === o ? Number(t) : Number(t) + 1,
|
|
745
738
|
l = i.options.slice(0, s),
|
|
746
739
|
d = i.options.slice(s),
|
|
747
|
-
|
|
748
|
-
i.options = [].concat(l, [
|
|
740
|
+
c = { label: n, value: a };
|
|
741
|
+
i.options = [].concat(l, [c], d);
|
|
749
742
|
}
|
|
750
743
|
this.jsonSchemaChange(r);
|
|
751
744
|
}),
|
|
@@ -1046,7 +1039,7 @@
|
|
|
1046
1039
|
{ className: 'advance-config-empty' },
|
|
1047
1040
|
'暂无高级配置',
|
|
1048
1041
|
);
|
|
1049
|
-
var s =
|
|
1042
|
+
var s = O.get(r),
|
|
1050
1043
|
l = null == s ? void 0 : s.propsSchema;
|
|
1051
1044
|
return l && 0 !== Object.keys(l.properties || {}).length
|
|
1052
1045
|
? i.createElement(
|
|
@@ -1078,11 +1071,11 @@
|
|
|
1078
1071
|
t
|
|
1079
1072
|
);
|
|
1080
1073
|
})(i.PureComponent),
|
|
1081
|
-
|
|
1074
|
+
A = (0, c.inject)(function (e) {
|
|
1082
1075
|
return { schemaStore: e.schemaStore };
|
|
1083
|
-
})((0,
|
|
1084
|
-
|
|
1085
|
-
|
|
1076
|
+
})((0, c.observer)(D)),
|
|
1077
|
+
L = (n(915), y.Select.Option),
|
|
1078
|
+
F = (function (e) {
|
|
1086
1079
|
function t(t) {
|
|
1087
1080
|
var n;
|
|
1088
1081
|
return (
|
|
@@ -1092,7 +1085,7 @@
|
|
|
1092
1085
|
o = a.indexRoute,
|
|
1093
1086
|
r = a.jsonKey,
|
|
1094
1087
|
i = a.targetJsonSchema;
|
|
1095
|
-
i.type !== e && t(o, r,
|
|
1088
|
+
i.type !== e && t(o, r, O.getDefaultSchema(e), i);
|
|
1096
1089
|
}),
|
|
1097
1090
|
(n.handleJsonKeyChange = function (e) {
|
|
1098
1091
|
var t = n.props.schemaStore || {},
|
|
@@ -1115,7 +1108,7 @@
|
|
|
1115
1108
|
o.targetJsonSchema.title !== a && t(r, i, { title: a });
|
|
1116
1109
|
}),
|
|
1117
1110
|
(n.getAllTypeList = function () {
|
|
1118
|
-
return
|
|
1111
|
+
return O.getAllTypes();
|
|
1119
1112
|
}),
|
|
1120
1113
|
(n.onAddBtnEvent = function () {
|
|
1121
1114
|
var e = n.props.schemaStore || {},
|
|
@@ -1125,7 +1118,7 @@
|
|
|
1125
1118
|
r = o.indexRoute,
|
|
1126
1119
|
i = o.targetJsonSchema,
|
|
1127
1120
|
s = null == i ? void 0 : i.type,
|
|
1128
|
-
l = s ?
|
|
1121
|
+
l = s ? O.get(s) : void 0;
|
|
1129
1122
|
null != l && l.isContainer ? t(r) : a(r);
|
|
1130
1123
|
}),
|
|
1131
1124
|
(n.onCopyBtnEvent = function () {
|
|
@@ -1138,11 +1131,11 @@
|
|
|
1138
1131
|
s = r.indexRoute2keyRoute,
|
|
1139
1132
|
l = r.insertJsonData,
|
|
1140
1133
|
d = r.getNewJsonKeyIndex,
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
u = d(i(
|
|
1134
|
+
c = v(a),
|
|
1135
|
+
p = (0, g.getParentIndexRoute)(t),
|
|
1136
|
+
u = d(i(p), o),
|
|
1144
1137
|
h = a.type;
|
|
1145
|
-
(b(s(
|
|
1138
|
+
(b(s(p) + '-' + u + '-' + h, s(t)), l(t, u, c));
|
|
1146
1139
|
}),
|
|
1147
1140
|
(n.onDeleteBtnEvent = function () {
|
|
1148
1141
|
var e = n.props,
|
|
@@ -1183,12 +1176,12 @@
|
|
|
1183
1176
|
s = o.jsonKey,
|
|
1184
1177
|
l = o.nodeKey,
|
|
1185
1178
|
d = o.targetJsonSchema,
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
u =
|
|
1179
|
+
c = this.state.showAdvanceConfig,
|
|
1180
|
+
p = r ? (0, g.getParentIndexRoute)(r) : '',
|
|
1181
|
+
u = p ? a(p) : {},
|
|
1189
1182
|
h = null === (e = u && u.isContainer) || void 0 === e || e,
|
|
1190
1183
|
m = null == d ? void 0 : d.type,
|
|
1191
|
-
f = m ?
|
|
1184
|
+
f = m ? O.get(m) : void 0,
|
|
1192
1185
|
v = (null == f ? void 0 : f.isFixed) || !1,
|
|
1193
1186
|
S =
|
|
1194
1187
|
(null == f || f.readOnly,
|
|
@@ -1209,13 +1202,13 @@
|
|
|
1209
1202
|
: void 0 !== (null == f ? void 0 : f.titleIsFixed)
|
|
1210
1203
|
? f.titleIsFixed
|
|
1211
1204
|
: v,
|
|
1212
|
-
|
|
1205
|
+
E =
|
|
1213
1206
|
void 0 !== this.props.hideOperaBtn
|
|
1214
1207
|
? this.props.hideOperaBtn
|
|
1215
1208
|
: void 0 !== (null == f ? void 0 : f.hideOperaBtn)
|
|
1216
1209
|
? f.hideOperaBtn
|
|
1217
1210
|
: !h,
|
|
1218
|
-
|
|
1211
|
+
C =
|
|
1219
1212
|
void 0 !== this.props.showAdvanceBtn
|
|
1220
1213
|
? this.props.showAdvanceBtn
|
|
1221
1214
|
: void 0 === (null == f ? void 0 : f.showAdvanceBtn) ||
|
|
@@ -1270,9 +1263,9 @@
|
|
|
1270
1263
|
j.map(function (e) {
|
|
1271
1264
|
var t;
|
|
1272
1265
|
return i.createElement(
|
|
1273
|
-
|
|
1266
|
+
L,
|
|
1274
1267
|
{ key: e, value: e },
|
|
1275
|
-
(null === (t =
|
|
1268
|
+
(null === (t = O.get(e)) || void 0 === t
|
|
1276
1269
|
? void 0
|
|
1277
1270
|
: t.label) || e,
|
|
1278
1271
|
);
|
|
@@ -1295,7 +1288,7 @@
|
|
|
1295
1288
|
i.createElement(
|
|
1296
1289
|
'div',
|
|
1297
1290
|
{ className: 'operate-item' },
|
|
1298
|
-
!
|
|
1291
|
+
!E &&
|
|
1299
1292
|
i.createElement(
|
|
1300
1293
|
i.Fragment,
|
|
1301
1294
|
null,
|
|
@@ -1346,7 +1339,7 @@
|
|
|
1346
1339
|
),
|
|
1347
1340
|
),
|
|
1348
1341
|
),
|
|
1349
|
-
|
|
1342
|
+
C &&
|
|
1350
1343
|
i.createElement(
|
|
1351
1344
|
y.Tooltip,
|
|
1352
1345
|
{ title: '高级设置' },
|
|
@@ -1358,7 +1351,7 @@
|
|
|
1358
1351
|
}),
|
|
1359
1352
|
),
|
|
1360
1353
|
),
|
|
1361
|
-
|
|
1354
|
+
c &&
|
|
1362
1355
|
i.createElement(
|
|
1363
1356
|
y.Modal,
|
|
1364
1357
|
{
|
|
@@ -1383,7 +1376,7 @@
|
|
|
1383
1376
|
),
|
|
1384
1377
|
],
|
|
1385
1378
|
},
|
|
1386
|
-
i.createElement(
|
|
1379
|
+
i.createElement(A, {
|
|
1387
1380
|
indexRoute: r,
|
|
1388
1381
|
jsonKey: s,
|
|
1389
1382
|
targetJsonSchema: d,
|
|
@@ -1406,12 +1399,12 @@
|
|
|
1406
1399
|
t
|
|
1407
1400
|
);
|
|
1408
1401
|
})(i.PureComponent),
|
|
1409
|
-
|
|
1402
|
+
P = (0, c.inject)(function (e) {
|
|
1410
1403
|
return { schemaStore: e.schemaStore };
|
|
1411
|
-
})((0,
|
|
1404
|
+
})((0, c.observer)(F)),
|
|
1412
1405
|
V = y.Tree.TreeNode,
|
|
1413
1406
|
M = function (e) {
|
|
1414
|
-
return s().createElement(
|
|
1407
|
+
return s().createElement(P, t()({}, e));
|
|
1415
1408
|
},
|
|
1416
1409
|
W = function (e) {
|
|
1417
1410
|
var t = e.jsonKey,
|
|
@@ -1430,7 +1423,7 @@
|
|
|
1430
1423
|
U = function (e) {
|
|
1431
1424
|
var t = e.targetJsonSchema,
|
|
1432
1425
|
n = t.type,
|
|
1433
|
-
a =
|
|
1426
|
+
a = O.get(n);
|
|
1434
1427
|
return a && a.renderer
|
|
1435
1428
|
? a.renderer(e)
|
|
1436
1429
|
: t.properties && Object.keys(t.properties).length > 0
|
|
@@ -1447,7 +1440,7 @@
|
|
|
1447
1440
|
],
|
|
1448
1441
|
G = y.Tree.TreeNode,
|
|
1449
1442
|
H = function (e) {
|
|
1450
|
-
return s().createElement(
|
|
1443
|
+
return s().createElement(P, t()({}, e));
|
|
1451
1444
|
},
|
|
1452
1445
|
Z = function (e) {
|
|
1453
1446
|
var n,
|
|
@@ -1457,19 +1450,19 @@
|
|
|
1457
1450
|
i,
|
|
1458
1451
|
l,
|
|
1459
1452
|
d,
|
|
1460
|
-
|
|
1461
|
-
|
|
1453
|
+
c = e.jsonKey,
|
|
1454
|
+
p = e.indexRoute,
|
|
1462
1455
|
u = e.nodeKey,
|
|
1463
1456
|
h = e.targetJsonSchema,
|
|
1464
1457
|
m = e.isOnlyShowChild,
|
|
1465
1458
|
y = h.type,
|
|
1466
|
-
f =
|
|
1459
|
+
f = O.get(y),
|
|
1467
1460
|
g = null == f ? void 0 : f.isFixed,
|
|
1468
1461
|
v =
|
|
1469
1462
|
((a = (n = t()({}, e, {
|
|
1470
1463
|
propertyOrder: h.propertyOrder,
|
|
1471
1464
|
properties: h.properties,
|
|
1472
|
-
parentIndexRoute:
|
|
1465
|
+
parentIndexRoute: p,
|
|
1473
1466
|
parentNodeKey: u,
|
|
1474
1467
|
parentType: y,
|
|
1475
1468
|
isOnlyShowChild: m,
|
|
@@ -1483,9 +1476,9 @@
|
|
|
1483
1476
|
a.map(function (e, n) {
|
|
1484
1477
|
var a = r ? r + '-' + n : '' + n,
|
|
1485
1478
|
s = e,
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
u = (i ? i + '-' : '') +
|
|
1479
|
+
c = o[s],
|
|
1480
|
+
p = c.type,
|
|
1481
|
+
u = (i ? i + '-' : '') + p + '-' + s;
|
|
1489
1482
|
return U(
|
|
1490
1483
|
t()({}, d, {
|
|
1491
1484
|
parentType: l,
|
|
@@ -1493,7 +1486,7 @@
|
|
|
1493
1486
|
indexRoute: a,
|
|
1494
1487
|
key: u,
|
|
1495
1488
|
nodeKey: u,
|
|
1496
|
-
targetJsonSchema:
|
|
1489
|
+
targetJsonSchema: c,
|
|
1497
1490
|
}),
|
|
1498
1491
|
);
|
|
1499
1492
|
})),
|
|
@@ -1503,8 +1496,8 @@
|
|
|
1503
1496
|
className: y + '-schema schema-item-form',
|
|
1504
1497
|
id: u,
|
|
1505
1498
|
key: u,
|
|
1506
|
-
'data-indexRoute':
|
|
1507
|
-
'data-jsonKey':
|
|
1499
|
+
'data-indexRoute': p,
|
|
1500
|
+
'data-jsonKey': c,
|
|
1508
1501
|
disabled: g,
|
|
1509
1502
|
title: H(t()({}, e)),
|
|
1510
1503
|
},
|
|
@@ -1550,7 +1543,7 @@
|
|
|
1550
1543
|
s = this.state,
|
|
1551
1544
|
l = s.isShowWarn,
|
|
1552
1545
|
d = s.warnText,
|
|
1553
|
-
|
|
1546
|
+
c = (s.curJSONDataTemp, a || !1);
|
|
1554
1547
|
return (
|
|
1555
1548
|
(r = void 0 !== r ? r : r || '{}'),
|
|
1556
1549
|
((0, g.isObject)(r) || (0, g.isArray)(r)) &&
|
|
@@ -1558,7 +1551,7 @@
|
|
|
1558
1551
|
i.createElement(
|
|
1559
1552
|
'div',
|
|
1560
1553
|
{ className: 'json-view-box' },
|
|
1561
|
-
|
|
1554
|
+
c &&
|
|
1562
1555
|
i.createElement(
|
|
1563
1556
|
'div',
|
|
1564
1557
|
{ className: 'readOnly-btn' },
|
|
@@ -1590,7 +1583,7 @@
|
|
|
1590
1583
|
showPrintMargin: !0,
|
|
1591
1584
|
showGutter: !0,
|
|
1592
1585
|
highlightActiveLine: !0,
|
|
1593
|
-
readOnly:
|
|
1586
|
+
readOnly: c,
|
|
1594
1587
|
minLines: 5,
|
|
1595
1588
|
maxLines: o || 10,
|
|
1596
1589
|
width: '100%',
|
|
@@ -1631,7 +1624,7 @@
|
|
|
1631
1624
|
var t = (n.props.schemaStore || {}).getSchemaByIndexRoute,
|
|
1632
1625
|
a = e.node,
|
|
1633
1626
|
o = t(a.indexRoute || a['data-indexRoute']),
|
|
1634
|
-
r =
|
|
1627
|
+
r = O.get(o.type);
|
|
1635
1628
|
null != r &&
|
|
1636
1629
|
r.isFixed &&
|
|
1637
1630
|
y.message.warning('当前元素不支持拖拽哦。');
|
|
@@ -1645,42 +1638,42 @@
|
|
|
1645
1638
|
s = o.insertJsonData,
|
|
1646
1639
|
l = o.deleteJsonByIndex,
|
|
1647
1640
|
d = o.isExitJsonKey,
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
u = r(
|
|
1651
|
-
h =
|
|
1641
|
+
c = t.indexRoute || t['data-indexRoute'],
|
|
1642
|
+
p = t.jsonKey || t['data-jsonKey'],
|
|
1643
|
+
u = r(c),
|
|
1644
|
+
h = O.get(u.type);
|
|
1652
1645
|
if (null == h || !h.isFixed) {
|
|
1653
1646
|
var m = a.indexRoute || a['data-indexRoute'],
|
|
1654
|
-
f = (0, g.isSameParent)(
|
|
1655
|
-
v = (0, g.getCurPosition)(
|
|
1647
|
+
f = (0, g.isSameParent)(c, m),
|
|
1648
|
+
v = (0, g.getCurPosition)(c, m);
|
|
1656
1649
|
if (f)
|
|
1657
|
-
(l(
|
|
1650
|
+
(l(c, !0),
|
|
1658
1651
|
'before' === v && (m = (0, g.moveForward)(m)),
|
|
1659
1652
|
a.dragOverGapTop
|
|
1660
|
-
? s(m,
|
|
1653
|
+
? s(m, p, u, 'before')
|
|
1661
1654
|
: (a.dragOver || a.dragOverGapBottom) &&
|
|
1662
|
-
s(m,
|
|
1655
|
+
s(m, p, u));
|
|
1663
1656
|
else {
|
|
1664
|
-
if (d(m,
|
|
1657
|
+
if (d(m, p))
|
|
1665
1658
|
return void y.message.warning(
|
|
1666
1659
|
'目标位置中有重名的元素',
|
|
1667
1660
|
);
|
|
1668
1661
|
var S = u.type,
|
|
1669
|
-
x = i(
|
|
1670
|
-
|
|
1671
|
-
|
|
1662
|
+
x = i(c),
|
|
1663
|
+
E = (0, g.getParentIndexRoute)(m),
|
|
1664
|
+
C = (function (e) {
|
|
1672
1665
|
if (window.sessionStorage)
|
|
1673
1666
|
return window.sessionStorage.getItem(e);
|
|
1674
1667
|
})(x + '-' + S);
|
|
1675
|
-
(b(i(
|
|
1668
|
+
(b(i(E) + '-' + p + '-' + S, C || x),
|
|
1676
1669
|
a.dragOverGapTop
|
|
1677
1670
|
? 'after' === v
|
|
1678
|
-
? (l(
|
|
1679
|
-
: (s(m,
|
|
1671
|
+
? (l(c, !0), s(m, p, u, 'before'))
|
|
1672
|
+
: (s(m, p, u, 'before', !0), l(c))
|
|
1680
1673
|
: (a.dragOver || a.dragOverGapBottom) &&
|
|
1681
1674
|
('after' === v
|
|
1682
|
-
? (l(
|
|
1683
|
-
: (s(m,
|
|
1675
|
+
? (l(c, !0), s(m, p, u))
|
|
1676
|
+
: (s(m, p, u, '', !0), l(c))));
|
|
1684
1677
|
}
|
|
1685
1678
|
}
|
|
1686
1679
|
}),
|
|
@@ -1786,9 +1779,9 @@
|
|
|
1786
1779
|
n
|
|
1787
1780
|
);
|
|
1788
1781
|
})(i.PureComponent)),
|
|
1789
|
-
ee = (0,
|
|
1782
|
+
ee = (0, c.inject)(function (e) {
|
|
1790
1783
|
return { schemaStore: e.schemaStore };
|
|
1791
|
-
})((0,
|
|
1784
|
+
})((0, c.observer)($)),
|
|
1792
1785
|
te = {
|
|
1793
1786
|
type: 'input',
|
|
1794
1787
|
label: '字符串/单行文本',
|
|
@@ -1805,7 +1798,6 @@
|
|
|
1805
1798
|
renderer: W,
|
|
1806
1799
|
propsSchema: I(
|
|
1807
1800
|
t()({}, R, {
|
|
1808
|
-
isConditionProp: R.isConditionProp,
|
|
1809
1801
|
default: {
|
|
1810
1802
|
type: 'input',
|
|
1811
1803
|
title: '默认值',
|
|
@@ -1832,7 +1824,7 @@
|
|
|
1832
1824
|
}),
|
|
1833
1825
|
),
|
|
1834
1826
|
};
|
|
1835
|
-
|
|
1827
|
+
O.register(te);
|
|
1836
1828
|
var ne = {
|
|
1837
1829
|
type: 'boolean',
|
|
1838
1830
|
label: 'Boolean/开关',
|
|
@@ -1845,13 +1837,12 @@
|
|
|
1845
1837
|
},
|
|
1846
1838
|
renderer: W,
|
|
1847
1839
|
propsSchema: I({
|
|
1848
|
-
isConditionProp: R.isConditionProp,
|
|
1849
1840
|
readOnly: R.readOnly,
|
|
1850
1841
|
isRequired: R.isRequired,
|
|
1851
1842
|
default: { type: 'boolean', title: '默认值' },
|
|
1852
1843
|
}),
|
|
1853
1844
|
};
|
|
1854
|
-
|
|
1845
|
+
O.register(ne);
|
|
1855
1846
|
var ae = {
|
|
1856
1847
|
type: 'number',
|
|
1857
1848
|
label: 'Number数值',
|
|
@@ -1865,7 +1856,6 @@
|
|
|
1865
1856
|
},
|
|
1866
1857
|
renderer: W,
|
|
1867
1858
|
propsSchema: I({
|
|
1868
|
-
isConditionProp: R.isConditionProp,
|
|
1869
1859
|
readOnly: R.readOnly,
|
|
1870
1860
|
isRequired: R.isRequired,
|
|
1871
1861
|
default: {
|
|
@@ -1890,7 +1880,7 @@
|
|
|
1890
1880
|
},
|
|
1891
1881
|
}),
|
|
1892
1882
|
};
|
|
1893
|
-
|
|
1883
|
+
O.register(ae);
|
|
1894
1884
|
var oe = {
|
|
1895
1885
|
type: 'color',
|
|
1896
1886
|
label: '颜色数值',
|
|
@@ -1903,13 +1893,12 @@
|
|
|
1903
1893
|
},
|
|
1904
1894
|
renderer: W,
|
|
1905
1895
|
propsSchema: I({
|
|
1906
|
-
isConditionProp: R.isConditionProp,
|
|
1907
1896
|
readOnly: R.readOnly,
|
|
1908
1897
|
isRequired: R.isRequired,
|
|
1909
1898
|
default: { type: 'color', title: '默认颜色值' },
|
|
1910
1899
|
}),
|
|
1911
1900
|
};
|
|
1912
|
-
|
|
1901
|
+
O.register(oe);
|
|
1913
1902
|
var re = {
|
|
1914
1903
|
type: 'url',
|
|
1915
1904
|
label: 'URL数值',
|
|
@@ -1923,7 +1912,6 @@
|
|
|
1923
1912
|
},
|
|
1924
1913
|
renderer: W,
|
|
1925
1914
|
propsSchema: I({
|
|
1926
|
-
isConditionProp: R.isConditionProp,
|
|
1927
1915
|
readOnly: R.readOnly,
|
|
1928
1916
|
isRequired: R.isRequired,
|
|
1929
1917
|
default: {
|
|
@@ -1938,7 +1926,7 @@
|
|
|
1938
1926
|
},
|
|
1939
1927
|
}),
|
|
1940
1928
|
};
|
|
1941
|
-
|
|
1929
|
+
O.register(re);
|
|
1942
1930
|
var ie = {
|
|
1943
1931
|
type: 'textarea',
|
|
1944
1932
|
label: '多行文本',
|
|
@@ -1966,7 +1954,7 @@
|
|
|
1966
1954
|
},
|
|
1967
1955
|
}),
|
|
1968
1956
|
};
|
|
1969
|
-
|
|
1957
|
+
O.register(ie);
|
|
1970
1958
|
var se = {
|
|
1971
1959
|
type: 'text-editor',
|
|
1972
1960
|
label: '富文本内容',
|
|
@@ -1994,7 +1982,7 @@
|
|
|
1994
1982
|
},
|
|
1995
1983
|
}),
|
|
1996
1984
|
};
|
|
1997
|
-
|
|
1985
|
+
O.register(se);
|
|
1998
1986
|
var le = function (e) {
|
|
1999
1987
|
return (
|
|
2000
1988
|
void 0 === e && (e = 'textarea'),
|
|
@@ -2028,7 +2016,7 @@
|
|
|
2028
2016
|
renderer: W,
|
|
2029
2017
|
propsSchema: le('json'),
|
|
2030
2018
|
},
|
|
2031
|
-
|
|
2019
|
+
ce = {
|
|
2032
2020
|
type: 'codearea',
|
|
2033
2021
|
label: 'code内容',
|
|
2034
2022
|
isContainer: !1,
|
|
@@ -2042,7 +2030,7 @@
|
|
|
2042
2030
|
renderer: W,
|
|
2043
2031
|
propsSchema: le('codearea'),
|
|
2044
2032
|
},
|
|
2045
|
-
|
|
2033
|
+
pe = {
|
|
2046
2034
|
type: 'htmlarea',
|
|
2047
2035
|
label: 'html内容',
|
|
2048
2036
|
isContainer: !1,
|
|
@@ -2056,12 +2044,11 @@
|
|
|
2056
2044
|
renderer: W,
|
|
2057
2045
|
propsSchema: le('htmlarea'),
|
|
2058
2046
|
};
|
|
2059
|
-
|
|
2047
|
+
O.registerAll([de, ce, pe]);
|
|
2060
2048
|
var ue = function (e) {
|
|
2061
2049
|
return (
|
|
2062
2050
|
void 0 === e && (e = 'date'),
|
|
2063
2051
|
I({
|
|
2064
|
-
isConditionProp: R.isConditionProp,
|
|
2065
2052
|
readOnly: R.readOnly,
|
|
2066
2053
|
isRequired: R.isRequired,
|
|
2067
2054
|
default: {
|
|
@@ -2119,7 +2106,7 @@
|
|
|
2119
2106
|
renderer: W,
|
|
2120
2107
|
propsSchema: ue('time'),
|
|
2121
2108
|
};
|
|
2122
|
-
|
|
2109
|
+
O.registerAll([he, me, ye]);
|
|
2123
2110
|
var fe = {
|
|
2124
2111
|
type: 'input-image',
|
|
2125
2112
|
label: '图片上传',
|
|
@@ -2132,7 +2119,6 @@
|
|
|
2132
2119
|
},
|
|
2133
2120
|
renderer: W,
|
|
2134
2121
|
propsSchema: I({
|
|
2135
|
-
isConditionProp: R.isConditionProp,
|
|
2136
2122
|
readOnly: R.readOnly,
|
|
2137
2123
|
isRequired: R.isRequired,
|
|
2138
2124
|
default: {
|
|
@@ -2142,7 +2128,7 @@
|
|
|
2142
2128
|
},
|
|
2143
2129
|
}),
|
|
2144
2130
|
};
|
|
2145
|
-
(
|
|
2131
|
+
(O.register(fe), n(617));
|
|
2146
2132
|
var ge = y.Select.Option,
|
|
2147
2133
|
ve = (function (e) {
|
|
2148
2134
|
function t(t) {
|
|
@@ -2285,14 +2271,14 @@
|
|
|
2285
2271
|
t
|
|
2286
2272
|
);
|
|
2287
2273
|
})(i.PureComponent),
|
|
2288
|
-
Se = (0,
|
|
2274
|
+
Se = (0, c.inject)(function (e) {
|
|
2289
2275
|
return { schemaStore: e.schemaStore };
|
|
2290
|
-
})((0,
|
|
2276
|
+
})((0, c.observer)(ve)),
|
|
2291
2277
|
be = y.Tree.TreeNode,
|
|
2292
2278
|
xe = function (e) {
|
|
2293
2279
|
return s().createElement(Se, t()({}, e));
|
|
2294
2280
|
},
|
|
2295
|
-
|
|
2281
|
+
Oe = function (e) {
|
|
2296
2282
|
var n,
|
|
2297
2283
|
a = e.jsonKey,
|
|
2298
2284
|
o = e.indexRoute,
|
|
@@ -2300,7 +2286,7 @@
|
|
|
2300
2286
|
i = e.targetJsonSchema,
|
|
2301
2287
|
l = i.type,
|
|
2302
2288
|
d = i.options,
|
|
2303
|
-
|
|
2289
|
+
c = o || '0';
|
|
2304
2290
|
return s().createElement(
|
|
2305
2291
|
be,
|
|
2306
2292
|
{
|
|
@@ -2309,7 +2295,7 @@
|
|
|
2309
2295
|
key: r,
|
|
2310
2296
|
'data-indexRoute': o || '0',
|
|
2311
2297
|
'data-jsonKey': a,
|
|
2312
|
-
title: ((n = t()({}, e)), s().createElement(
|
|
2298
|
+
title: ((n = t()({}, e)), s().createElement(P, t()({}, n))),
|
|
2313
2299
|
},
|
|
2314
2300
|
d &&
|
|
2315
2301
|
d.length > 0 &&
|
|
@@ -2321,10 +2307,10 @@
|
|
|
2321
2307
|
className: 'enum-item-schema schema-item-form',
|
|
2322
2308
|
id: o,
|
|
2323
2309
|
key: o,
|
|
2324
|
-
'data-indexRoute':
|
|
2310
|
+
'data-indexRoute': c,
|
|
2325
2311
|
disabled: !0,
|
|
2326
2312
|
title: xe({
|
|
2327
|
-
indexRoute:
|
|
2313
|
+
indexRoute: c,
|
|
2328
2314
|
optionIndex: t,
|
|
2329
2315
|
optionLabel: n,
|
|
2330
2316
|
optionValue: a,
|
|
@@ -2334,7 +2320,7 @@
|
|
|
2334
2320
|
}),
|
|
2335
2321
|
);
|
|
2336
2322
|
},
|
|
2337
|
-
|
|
2323
|
+
Ee = {
|
|
2338
2324
|
type: 'radio',
|
|
2339
2325
|
label: '单选',
|
|
2340
2326
|
isContainer: !1,
|
|
@@ -2349,9 +2335,8 @@
|
|
|
2349
2335
|
default: '',
|
|
2350
2336
|
description: '',
|
|
2351
2337
|
},
|
|
2352
|
-
renderer:
|
|
2338
|
+
renderer: Oe,
|
|
2353
2339
|
propsSchema: I({
|
|
2354
|
-
isConditionProp: R.isConditionProp,
|
|
2355
2340
|
readOnly: R.readOnly,
|
|
2356
2341
|
isRequired: R.isRequired,
|
|
2357
2342
|
defaultActiveFirstOption: {
|
|
@@ -2366,8 +2351,8 @@
|
|
|
2366
2351
|
},
|
|
2367
2352
|
}),
|
|
2368
2353
|
};
|
|
2369
|
-
|
|
2370
|
-
var
|
|
2354
|
+
O.register(Ee);
|
|
2355
|
+
var Ce = {
|
|
2371
2356
|
type: 'select',
|
|
2372
2357
|
label: '下拉选择/多选',
|
|
2373
2358
|
isContainer: !1,
|
|
@@ -2381,9 +2366,8 @@
|
|
|
2381
2366
|
],
|
|
2382
2367
|
description: '',
|
|
2383
2368
|
},
|
|
2384
|
-
renderer:
|
|
2369
|
+
renderer: Oe,
|
|
2385
2370
|
propsSchema: I({
|
|
2386
|
-
isConditionProp: R.isConditionProp,
|
|
2387
2371
|
readOnly: R.readOnly,
|
|
2388
2372
|
isRequired: R.isRequired,
|
|
2389
2373
|
multiple: {
|
|
@@ -2409,7 +2393,7 @@
|
|
|
2409
2393
|
},
|
|
2410
2394
|
}),
|
|
2411
2395
|
};
|
|
2412
|
-
|
|
2396
|
+
O.register(Ce);
|
|
2413
2397
|
var je = {
|
|
2414
2398
|
type: 'cascader',
|
|
2415
2399
|
label: '级联选择',
|
|
@@ -2467,7 +2451,7 @@
|
|
|
2467
2451
|
},
|
|
2468
2452
|
}),
|
|
2469
2453
|
};
|
|
2470
|
-
|
|
2454
|
+
O.register(je);
|
|
2471
2455
|
var Re = {
|
|
2472
2456
|
type: 'checkboxes',
|
|
2473
2457
|
label: '多选框',
|
|
@@ -2483,7 +2467,7 @@
|
|
|
2483
2467
|
default: ['a'],
|
|
2484
2468
|
description: '',
|
|
2485
2469
|
},
|
|
2486
|
-
renderer:
|
|
2470
|
+
renderer: Oe,
|
|
2487
2471
|
propsSchema: I({
|
|
2488
2472
|
readOnly: R.readOnly,
|
|
2489
2473
|
isRequired: R.isRequired,
|
|
@@ -2494,7 +2478,7 @@
|
|
|
2494
2478
|
},
|
|
2495
2479
|
}),
|
|
2496
2480
|
};
|
|
2497
|
-
(
|
|
2481
|
+
(O.register(Re), n(790));
|
|
2498
2482
|
var Ie = y.Select.Option,
|
|
2499
2483
|
Ne = (function (e) {
|
|
2500
2484
|
function t(t) {
|
|
@@ -2566,72 +2550,14 @@
|
|
|
2566
2550
|
t
|
|
2567
2551
|
);
|
|
2568
2552
|
})(i.PureComponent),
|
|
2569
|
-
_e = (0,
|
|
2553
|
+
_e = (0, c.inject)(function (e) {
|
|
2570
2554
|
return { schemaStore: e.schemaStore };
|
|
2571
|
-
})((0,
|
|
2555
|
+
})((0, c.observer)(Ne)),
|
|
2572
2556
|
Ke = y.Tree.TreeNode,
|
|
2573
2557
|
we = function (e) {
|
|
2574
|
-
return s().createElement(
|
|
2558
|
+
return s().createElement(P, t()({}, e));
|
|
2575
2559
|
},
|
|
2576
|
-
Je =
|
|
2577
|
-
var n,
|
|
2578
|
-
a = e.jsonKey,
|
|
2579
|
-
o = e.indexRoute,
|
|
2580
|
-
r = e.nodeKey,
|
|
2581
|
-
i = e.targetJsonSchema,
|
|
2582
|
-
l = i.type,
|
|
2583
|
-
d = i.propertyOrder[0],
|
|
2584
|
-
p = i.properties[d];
|
|
2585
|
-
return s().createElement(
|
|
2586
|
-
Ke,
|
|
2587
|
-
{
|
|
2588
|
-
className: l + '-schema schema-item-form',
|
|
2589
|
-
id: r,
|
|
2590
|
-
key: r,
|
|
2591
|
-
'data-indexRoute': o,
|
|
2592
|
-
'data-jsonKey': a,
|
|
2593
|
-
title: we(t()({}, e)),
|
|
2594
|
-
},
|
|
2595
|
-
s().createElement(Ke, {
|
|
2596
|
-
className: 'quantity-unit-item-schema schema-item-form',
|
|
2597
|
-
id: r + '-' + d,
|
|
2598
|
-
key: r + '-' + d,
|
|
2599
|
-
'data-indexRoute': o ? o + '-0' : '0',
|
|
2600
|
-
'data-jsonKey': d,
|
|
2601
|
-
disabled: !0,
|
|
2602
|
-
title: we(
|
|
2603
|
-
t()({}, e, {
|
|
2604
|
-
indexRoute: o ? o + '-0' : '0',
|
|
2605
|
-
jsonKey: d,
|
|
2606
|
-
targetJsonSchema: p,
|
|
2607
|
-
parentType: l,
|
|
2608
|
-
nodeKey: r + '-' + d,
|
|
2609
|
-
hideOperaBtn: !0,
|
|
2610
|
-
showAdvanceBtn: !0,
|
|
2611
|
-
typeIsFixed: !0,
|
|
2612
|
-
}),
|
|
2613
|
-
),
|
|
2614
|
-
}),
|
|
2615
|
-
s().createElement(Ke, {
|
|
2616
|
-
className: 'quantity-typeSelect-item-schema schema-item-form',
|
|
2617
|
-
id: r + '-quantity',
|
|
2618
|
-
key: r + '-quantity',
|
|
2619
|
-
'data-indexRoute': o ? o + '-1' : '1',
|
|
2620
|
-
'data-jsonKey': 'quantity',
|
|
2621
|
-
disabled: !0,
|
|
2622
|
-
title:
|
|
2623
|
-
((n = t()({}, e, {
|
|
2624
|
-
indexRoute: o ? o + '-1' : '1',
|
|
2625
|
-
jsonKey: 'quantity',
|
|
2626
|
-
targetJsonSchema: i.properties.quantity,
|
|
2627
|
-
parentType: l,
|
|
2628
|
-
nodeKey: r + '-quantity',
|
|
2629
|
-
})),
|
|
2630
|
-
s().createElement(_e, t()({}, n))),
|
|
2631
|
-
}),
|
|
2632
|
-
);
|
|
2633
|
-
},
|
|
2634
|
-
Be = {
|
|
2560
|
+
Je = {
|
|
2635
2561
|
type: 'quantity',
|
|
2636
2562
|
label: '数值单位设置',
|
|
2637
2563
|
isContainer: !1,
|
|
@@ -2656,7 +2582,64 @@
|
|
|
2656
2582
|
propertyOrder: ['unit', 'quantity'],
|
|
2657
2583
|
},
|
|
2658
2584
|
showAdvanceBtn: !1,
|
|
2659
|
-
renderer:
|
|
2585
|
+
renderer: function (e) {
|
|
2586
|
+
var n,
|
|
2587
|
+
a = e.jsonKey,
|
|
2588
|
+
o = e.indexRoute,
|
|
2589
|
+
r = e.nodeKey,
|
|
2590
|
+
i = e.targetJsonSchema,
|
|
2591
|
+
l = i.type,
|
|
2592
|
+
d = i.propertyOrder[0],
|
|
2593
|
+
c = i.properties[d];
|
|
2594
|
+
return s().createElement(
|
|
2595
|
+
Ke,
|
|
2596
|
+
{
|
|
2597
|
+
className: l + '-schema schema-item-form',
|
|
2598
|
+
id: r,
|
|
2599
|
+
key: r,
|
|
2600
|
+
'data-indexRoute': o,
|
|
2601
|
+
'data-jsonKey': a,
|
|
2602
|
+
title: we(t()({}, e)),
|
|
2603
|
+
},
|
|
2604
|
+
s().createElement(Ke, {
|
|
2605
|
+
className: 'quantity-unit-item-schema schema-item-form',
|
|
2606
|
+
id: r + '-' + d,
|
|
2607
|
+
key: r + '-' + d,
|
|
2608
|
+
'data-indexRoute': o ? o + '-0' : '0',
|
|
2609
|
+
'data-jsonKey': d,
|
|
2610
|
+
disabled: !0,
|
|
2611
|
+
title: we(
|
|
2612
|
+
t()({}, e, {
|
|
2613
|
+
indexRoute: o ? o + '-0' : '0',
|
|
2614
|
+
jsonKey: d,
|
|
2615
|
+
targetJsonSchema: c,
|
|
2616
|
+
parentType: l,
|
|
2617
|
+
nodeKey: r + '-' + d,
|
|
2618
|
+
hideOperaBtn: !0,
|
|
2619
|
+
showAdvanceBtn: !0,
|
|
2620
|
+
typeIsFixed: !0,
|
|
2621
|
+
}),
|
|
2622
|
+
),
|
|
2623
|
+
}),
|
|
2624
|
+
s().createElement(Ke, {
|
|
2625
|
+
className: 'quantity-typeSelect-item-schema schema-item-form',
|
|
2626
|
+
id: r + '-quantity',
|
|
2627
|
+
key: r + '-quantity',
|
|
2628
|
+
'data-indexRoute': o ? o + '-1' : '1',
|
|
2629
|
+
'data-jsonKey': 'quantity',
|
|
2630
|
+
disabled: !0,
|
|
2631
|
+
title:
|
|
2632
|
+
((n = t()({}, e, {
|
|
2633
|
+
indexRoute: o ? o + '-1' : '1',
|
|
2634
|
+
jsonKey: 'quantity',
|
|
2635
|
+
targetJsonSchema: i.properties.quantity,
|
|
2636
|
+
parentType: l,
|
|
2637
|
+
nodeKey: r + '-quantity',
|
|
2638
|
+
})),
|
|
2639
|
+
s().createElement(_e, t()({}, n))),
|
|
2640
|
+
}),
|
|
2641
|
+
);
|
|
2642
|
+
},
|
|
2660
2643
|
propsSchema: I({
|
|
2661
2644
|
readOnly: R.readOnly,
|
|
2662
2645
|
isRequired: R.isRequired,
|
|
@@ -2673,41 +2656,8 @@
|
|
|
2673
2656
|
},
|
|
2674
2657
|
}),
|
|
2675
2658
|
};
|
|
2676
|
-
|
|
2677
|
-
var
|
|
2678
|
-
type: 'box-style',
|
|
2679
|
-
label: '盒子模型/边距设置',
|
|
2680
|
-
isContainer: !1,
|
|
2681
|
-
defaultSchema: {
|
|
2682
|
-
type: 'box-style',
|
|
2683
|
-
title: '盒子模型',
|
|
2684
|
-
description: '',
|
|
2685
|
-
properties: {
|
|
2686
|
-
unit: {
|
|
2687
|
-
title: '单位数值',
|
|
2688
|
-
type: 'input',
|
|
2689
|
-
default: '0',
|
|
2690
|
-
description: '',
|
|
2691
|
-
},
|
|
2692
|
-
quantity: {
|
|
2693
|
-
type: 'select',
|
|
2694
|
-
title: '单位类型',
|
|
2695
|
-
options: [
|
|
2696
|
-
{ label: 'px', value: 'px' },
|
|
2697
|
-
{ label: 'rem', value: 'rem' },
|
|
2698
|
-
{ label: 'em', value: 'em' },
|
|
2699
|
-
{ label: '%', value: '%' },
|
|
2700
|
-
],
|
|
2701
|
-
default: 'px',
|
|
2702
|
-
},
|
|
2703
|
-
},
|
|
2704
|
-
propertyOrder: ['unit', 'quantity'],
|
|
2705
|
-
},
|
|
2706
|
-
propsSchema: I(),
|
|
2707
|
-
renderer: Je,
|
|
2708
|
-
};
|
|
2709
|
-
C.register(Te);
|
|
2710
|
-
var ke = {
|
|
2659
|
+
O.register(Je);
|
|
2660
|
+
var Be = {
|
|
2711
2661
|
type: 'padding-margin',
|
|
2712
2662
|
label: '边距设置',
|
|
2713
2663
|
isContainer: !1,
|
|
@@ -2751,8 +2701,8 @@
|
|
|
2751
2701
|
}),
|
|
2752
2702
|
renderer: Z,
|
|
2753
2703
|
};
|
|
2754
|
-
|
|
2755
|
-
var
|
|
2704
|
+
O.register(Be);
|
|
2705
|
+
var Te = {
|
|
2756
2706
|
type: 'object',
|
|
2757
2707
|
label: '对象(Object)',
|
|
2758
2708
|
isContainer: !0,
|
|
@@ -2781,12 +2731,12 @@
|
|
|
2781
2731
|
}),
|
|
2782
2732
|
renderer: Z,
|
|
2783
2733
|
};
|
|
2784
|
-
|
|
2785
|
-
var
|
|
2786
|
-
|
|
2787
|
-
return s().createElement(
|
|
2734
|
+
O.register(Te);
|
|
2735
|
+
var ke = y.Tree.TreeNode,
|
|
2736
|
+
qe = function (e) {
|
|
2737
|
+
return s().createElement(P, t()({}, e));
|
|
2788
2738
|
},
|
|
2789
|
-
|
|
2739
|
+
De = {
|
|
2790
2740
|
type: 'array',
|
|
2791
2741
|
label: '数组(Array)',
|
|
2792
2742
|
isContainer: !1,
|
|
@@ -2835,17 +2785,17 @@
|
|
|
2835
2785
|
i = r.type,
|
|
2836
2786
|
l = a ? a + '-0' : '0',
|
|
2837
2787
|
d = 'items',
|
|
2838
|
-
|
|
2839
|
-
|
|
2788
|
+
c = o ? o + '-' + d : d,
|
|
2789
|
+
p = r[d] || {};
|
|
2840
2790
|
return s().createElement(
|
|
2841
|
-
|
|
2791
|
+
ke,
|
|
2842
2792
|
{
|
|
2843
2793
|
className: i + '-schema schema-item-form',
|
|
2844
2794
|
id: o,
|
|
2845
2795
|
key: o,
|
|
2846
2796
|
'data-indexRoute': a,
|
|
2847
2797
|
'data-jsonKey': n,
|
|
2848
|
-
title:
|
|
2798
|
+
title: qe(t()({}, e)),
|
|
2849
2799
|
},
|
|
2850
2800
|
(function (e) {
|
|
2851
2801
|
var n = e.parentType,
|
|
@@ -2854,14 +2804,14 @@
|
|
|
2854
2804
|
r = e.nodeKey,
|
|
2855
2805
|
i = e.targetJsonSchema;
|
|
2856
2806
|
return s().createElement(
|
|
2857
|
-
|
|
2807
|
+
ke,
|
|
2858
2808
|
{
|
|
2859
2809
|
className: 'array-item-schema schema-item-form',
|
|
2860
2810
|
id: r,
|
|
2861
2811
|
key: r,
|
|
2862
2812
|
'data-jsonKey': a,
|
|
2863
2813
|
disabled: !0,
|
|
2864
|
-
title:
|
|
2814
|
+
title: qe(
|
|
2865
2815
|
t()({}, e, {
|
|
2866
2816
|
indexRoute: o,
|
|
2867
2817
|
jsonKey: a,
|
|
@@ -2883,9 +2833,9 @@
|
|
|
2883
2833
|
return n.map(function (n, s) {
|
|
2884
2834
|
var l = o ? o + '-' + s : '' + s,
|
|
2885
2835
|
d = n,
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
u = (r ? r + '-' : '') +
|
|
2836
|
+
c = a[d],
|
|
2837
|
+
p = c.type,
|
|
2838
|
+
u = (r ? r + '-' : '') + p + '-' + d;
|
|
2889
2839
|
return U(
|
|
2890
2840
|
t()({}, e, {
|
|
2891
2841
|
parentType: i,
|
|
@@ -2893,7 +2843,7 @@
|
|
|
2893
2843
|
indexRoute: l,
|
|
2894
2844
|
key: u,
|
|
2895
2845
|
nodeKey: u,
|
|
2896
|
-
targetJsonSchema:
|
|
2846
|
+
targetJsonSchema: c,
|
|
2897
2847
|
}),
|
|
2898
2848
|
);
|
|
2899
2849
|
});
|
|
@@ -2912,16 +2862,16 @@
|
|
|
2912
2862
|
parentType: 'array',
|
|
2913
2863
|
jsonKey: d,
|
|
2914
2864
|
indexRoute: l,
|
|
2915
|
-
nodeKey:
|
|
2916
|
-
targetJsonSchema:
|
|
2865
|
+
nodeKey: c,
|
|
2866
|
+
targetJsonSchema: p,
|
|
2917
2867
|
}),
|
|
2918
2868
|
),
|
|
2919
2869
|
);
|
|
2920
2870
|
},
|
|
2921
2871
|
};
|
|
2922
|
-
|
|
2923
|
-
var
|
|
2924
|
-
|
|
2872
|
+
O.register(De);
|
|
2873
|
+
var Ae = y.Tree.TreeNode,
|
|
2874
|
+
Le = {
|
|
2925
2875
|
type: 'api',
|
|
2926
2876
|
label: 'API 配置',
|
|
2927
2877
|
isContainer: !1,
|
|
@@ -2975,26 +2925,26 @@
|
|
|
2975
2925
|
i = r.type,
|
|
2976
2926
|
l = r.properties.url || {},
|
|
2977
2927
|
d = r.properties.method || {},
|
|
2978
|
-
|
|
2979
|
-
|
|
2928
|
+
c = r.properties.headers || {},
|
|
2929
|
+
p = r.properties.data || {};
|
|
2980
2930
|
return s().createElement(
|
|
2981
|
-
|
|
2931
|
+
Ae,
|
|
2982
2932
|
{
|
|
2983
2933
|
className: i + '-schema schema-item-form',
|
|
2984
2934
|
id: o,
|
|
2985
2935
|
key: o,
|
|
2986
2936
|
'data-indexRoute': a,
|
|
2987
2937
|
'data-jsonKey': n,
|
|
2988
|
-
title: s().createElement(
|
|
2938
|
+
title: s().createElement(P, t()({}, e)),
|
|
2989
2939
|
},
|
|
2990
|
-
s().createElement(
|
|
2940
|
+
s().createElement(Ae, {
|
|
2991
2941
|
className: 'api-url-item-schema schema-item-form',
|
|
2992
2942
|
id: o + '-url',
|
|
2993
2943
|
key: o + '-url',
|
|
2994
2944
|
'data-indexRoute': a ? a + '-0' : '0',
|
|
2995
2945
|
'data-jsonKey': 'url',
|
|
2996
2946
|
title: s().createElement(
|
|
2997
|
-
|
|
2947
|
+
P,
|
|
2998
2948
|
t()({}, e, {
|
|
2999
2949
|
indexRoute: a ? a + '-0' : '0',
|
|
3000
2950
|
jsonKey: 'url',
|
|
@@ -3007,13 +2957,13 @@
|
|
|
3007
2957
|
}),
|
|
3008
2958
|
),
|
|
3009
2959
|
}),
|
|
3010
|
-
s().createElement(
|
|
2960
|
+
s().createElement(Ae, {
|
|
3011
2961
|
className: 'api-method-item-schema schema-item-form',
|
|
3012
2962
|
id: o + '-method',
|
|
3013
2963
|
key: o + '-method',
|
|
3014
2964
|
'data-indexRoute': a ? a + '-1' : '1',
|
|
3015
2965
|
title: s().createElement(
|
|
3016
|
-
|
|
2966
|
+
P,
|
|
3017
2967
|
t()({}, e, {
|
|
3018
2968
|
indexRoute: a ? a + '-1' : '1',
|
|
3019
2969
|
jsonKey: 'method',
|
|
@@ -3026,18 +2976,18 @@
|
|
|
3026
2976
|
}),
|
|
3027
2977
|
),
|
|
3028
2978
|
}),
|
|
3029
|
-
s().createElement(
|
|
2979
|
+
s().createElement(Ae, {
|
|
3030
2980
|
className: 'api-headers-item-schema schema-item-form',
|
|
3031
2981
|
id: o + '-headers',
|
|
3032
2982
|
key: o + '-headers',
|
|
3033
2983
|
'data-indexRoute': a ? a + '-2' : '2',
|
|
3034
2984
|
'data-jsonKey': 'headers',
|
|
3035
2985
|
title: s().createElement(
|
|
3036
|
-
|
|
2986
|
+
P,
|
|
3037
2987
|
t()({}, e, {
|
|
3038
2988
|
indexRoute: a ? a + '-2' : '2',
|
|
3039
2989
|
jsonKey: 'headers',
|
|
3040
|
-
targetJsonSchema:
|
|
2990
|
+
targetJsonSchema: c,
|
|
3041
2991
|
parentType: i,
|
|
3042
2992
|
nodeKey: o + '-headers',
|
|
3043
2993
|
hideOperaBtn: !0,
|
|
@@ -3046,18 +2996,18 @@
|
|
|
3046
2996
|
}),
|
|
3047
2997
|
),
|
|
3048
2998
|
}),
|
|
3049
|
-
s().createElement(
|
|
2999
|
+
s().createElement(Ae, {
|
|
3050
3000
|
className: 'api-data-item-schema schema-item-form',
|
|
3051
3001
|
id: o + '-data',
|
|
3052
3002
|
key: o + '-data',
|
|
3053
3003
|
'data-indexRoute': a ? a + '-3' : '3',
|
|
3054
3004
|
'data-jsonKey': 'data',
|
|
3055
3005
|
title: s().createElement(
|
|
3056
|
-
|
|
3006
|
+
P,
|
|
3057
3007
|
t()({}, e, {
|
|
3058
3008
|
indexRoute: a ? a + '-3' : '3',
|
|
3059
3009
|
jsonKey: 'data',
|
|
3060
|
-
targetJsonSchema:
|
|
3010
|
+
targetJsonSchema: p,
|
|
3061
3011
|
parentType: i,
|
|
3062
3012
|
nodeKey: o + '-data',
|
|
3063
3013
|
hideOperaBtn: !0,
|
|
@@ -3069,8 +3019,8 @@
|
|
|
3069
3019
|
);
|
|
3070
3020
|
},
|
|
3071
3021
|
};
|
|
3072
|
-
|
|
3073
|
-
var
|
|
3022
|
+
O.register(Le);
|
|
3023
|
+
var Fe = (function (e) {
|
|
3074
3024
|
function n(t) {
|
|
3075
3025
|
var n;
|
|
3076
3026
|
return (
|
|
@@ -3086,7 +3036,7 @@
|
|
|
3086
3036
|
var e = this.props.element,
|
|
3087
3037
|
n = this.state.schemaStore,
|
|
3088
3038
|
a = i.createElement(
|
|
3089
|
-
|
|
3039
|
+
c.Provider,
|
|
3090
3040
|
{ schemaStore: n },
|
|
3091
3041
|
i.createElement(ee, t()({}, this.props)),
|
|
3092
3042
|
);
|
package/lib/index.js.LICENSE.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v7.0.
|
|
2
|
+
* @wibetter/json-schema-editor v7.0.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Mar 22 2026 19:15:58 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|