@wibetter/json-schema-editor 5.1.0 → 5.1.2
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 +2 -2
- package/lib/index.js +61 -59
- package/lib/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
- package/sdk/index.css +2 -2
- package/sdk/index.js +134 -120
package/lib/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v5.1.
|
|
2
|
+
* @wibetter/json-schema-editor v5.1.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Jan 10 2025 16:30:12 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/.advance-config-model{padding:8px 10px;position:relative;text-align:center}.advance-config-model .mobile-screen-element-warp,.advance-config-model .small-screen-element-warp{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:38px;margin-bottom:12px;min-width:280px;position:relative}.advance-config-model .mobile-screen-element-warp .element-title,.advance-config-model .small-screen-element-warp .element-title{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-right:12px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all}.advance-config-model .mobile-screen-element-warp .content-item,.advance-config-model .small-screen-element-warp .content-item{position:relative;text-align:left}.advance-config-model .mobile-screen-element-warp .content-item>.mobile-screen-element-warp,.advance-config-model .mobile-screen-element-warp .content-item>.small-screen-element-warp,.advance-config-model .small-screen-element-warp .content-item>.mobile-screen-element-warp,.advance-config-model .small-screen-element-warp .content-item>.small-screen-element-warp{min-width:230px}.advance-config-model .mobile-screen-element-warp .content-item .color-item-form,.advance-config-model .small-screen-element-warp .content-item .color-item-form{width:60px}.advance-config-model .mobile-screen-element-warp .content-item .add-rule-condition-btn,.advance-config-model .small-screen-element-warp .content-item .add-rule-condition-btn{margin:3px 0}.advance-config-model .wide-screen-element-warp{-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-box-align:start;-moz-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start;-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:flex-start;justify-content:flex-start;line-height:30px;margin-bottom:6px;min-width:350px;position:relative}.advance-config-model .wide-screen-element-warp .element-title{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-flex:0 1 100px;-ms-flex:0 1 100px;flex:0 1 100px;margin-right:12px;max-width:100px;overflow:hidden;padding-left:12px;text-align:right;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all}.advance-config-model .wide-screen-element-warp .content-item{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 200px;-ms-flex:1 1 200px;flex:1 1 200px;text-align:left}.advance-config-model .wide-screen-element-warp .content-item .color-item-form{width:60px}.advance-config-model .wide-screen-element-warp .content-item .add-rule-condition-btn{margin:3px 0}.advance-config-model .code-area-item{max-width:600px;min-width:230px}.advance-config-model .hidden-rule-box{border-top:1px solid #ccc;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:10px auto 0;padding:8px 15px;width:450px}.advance-config-model .hidden-rule-box .rule-title{-webkit-box-pack:justify;-moz-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;justify-content:space-between;line-height:30px}.advance-config-model .hidden-rule-box .rule-condition-box{-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;background-color:#f8f8f8;-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;line-height:30px;min-height:30px;padding:8px 10px;position:relative}.advance-config-model .hidden-rule-box .rule-condition-box .condition-title{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 70px;-ms-flex:0 0 70px;flex:0 0 70px;text-align:center}.advance-config-model .hidden-rule-box .rule-condition-box .condition-equal{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 40px;-ms-flex:0 0 40px;flex:0 0 40px;text-align:center}.advance-config-model .hidden-rule-box .rule-condition-box .condition-prop,.advance-config-model .hidden-rule-box .rule-condition-box .condition-value{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1 1 100px;-ms-flex:1 1 100px;flex:1 1 100px;text-align:left}.advance-config-model .hidden-rule-box .rule-condition-box .ant-select-single{max-width:145px}.advance-config-model .warning-box{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-moz-box-orient:horizontal;-moz-box-direction:normal;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-ms-flex-align:center;background-color:#feeceb;color:red;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;font-size:12px;-webkit-justify-content:flex-start;justify-content:flex-start;padding:8px 0;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(0,1,.5,1);transition-timing-function:cubic-bezier(0,1,.5,1);width:100%}.advance-config-model .warning-box,.advance-config-model .warning-box .warning-img{-webkit-box-align:center;-moz-box-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.advance-config-model .warning-box .warning-img{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-ms-flex-align:center;-webkit-flex:0 1 60px;-ms-flex:0 1 60px;flex:0 1 60px;-webkit-justify-content:center;justify-content:center}.advance-config-model .warning-box .warning-text{-webkit-box-flex:1;-moz-box-flex:1;-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-flex:1 1 160px;-ms-flex:1 1 160px;flex:1 1 160px;-webkit-justify-content:flex-start;justify-content:flex-start;line-height:20px}.advance-config-model .form-item-box,.advance-config-model .warning-box .warning-text{-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}.advance-config-model .form-item-box{-webkit-box-pack:stretch;-moz-box-pack:stretch;-ms-flex-pack:stretch;-webkit-justify-content:stretch;justify-content:stretch;min-height:30px}.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}.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}.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;-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}.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}.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{-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}
|
package/lib/index.js
CHANGED
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
return (
|
|
701
701
|
a.options &&
|
|
702
702
|
a.options.find(function (e) {
|
|
703
|
-
return e.label === t
|
|
703
|
+
return e.label === t;
|
|
704
704
|
}) &&
|
|
705
705
|
(n = !0),
|
|
706
706
|
Oe.KeyWordList &&
|
|
@@ -2317,71 +2317,61 @@
|
|
|
2317
2317
|
onBlur: this.handleTitleChange,
|
|
2318
2318
|
}),
|
|
2319
2319
|
),
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
!y &&
|
|
2325
|
-
r.createElement(
|
|
2326
|
-
S.Tooltip,
|
|
2327
|
-
{ title: '删除' },
|
|
2328
|
-
r.createElement(we.CloseOutlined, {
|
|
2329
|
-
className: 'operate-btn delete-operate',
|
|
2330
|
-
onClick: this.onDeleteBtnEvent,
|
|
2331
|
-
}),
|
|
2332
|
-
),
|
|
2320
|
+
r.createElement(
|
|
2321
|
+
'div',
|
|
2322
|
+
{ className: 'operate-item' },
|
|
2323
|
+
!x &&
|
|
2333
2324
|
r.createElement(
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2325
|
+
r.Fragment,
|
|
2326
|
+
null,
|
|
2327
|
+
!y &&
|
|
2328
|
+
r.createElement(
|
|
2329
|
+
S.Tooltip,
|
|
2330
|
+
{ title: '删除' },
|
|
2331
|
+
r.createElement(we.CloseOutlined, {
|
|
2332
|
+
className: 'operate-btn delete-operate',
|
|
2333
|
+
onClick: this.onDeleteBtnEvent,
|
|
2334
|
+
}),
|
|
2335
|
+
),
|
|
2342
2336
|
r.createElement(
|
|
2343
2337
|
S.Tooltip,
|
|
2344
|
-
{ title: '
|
|
2345
|
-
r.createElement(we.
|
|
2338
|
+
{ title: C ? '新增子元素' : '新增同级元素' },
|
|
2339
|
+
r.createElement(we.PlusOutlined, {
|
|
2346
2340
|
className: 'operate-btn',
|
|
2347
|
-
onClick: this.
|
|
2341
|
+
onClick: this.onAddBtnEvent,
|
|
2348
2342
|
}),
|
|
2349
2343
|
),
|
|
2350
|
-
|
|
2351
|
-
r.createElement(
|
|
2352
|
-
r.Fragment,
|
|
2353
|
-
null,
|
|
2354
|
-
r.createElement(
|
|
2355
|
-
S.Tooltip,
|
|
2356
|
-
{ title: '复制' },
|
|
2357
|
-
r.createElement(we.CopyOutlined, {
|
|
2358
|
-
className: 'operate-btn',
|
|
2359
|
-
onClick: this.onCopyBtnEvent,
|
|
2360
|
-
}),
|
|
2361
|
-
),
|
|
2344
|
+
C &&
|
|
2362
2345
|
r.createElement(
|
|
2363
2346
|
S.Tooltip,
|
|
2364
|
-
{ title: '
|
|
2365
|
-
r.createElement(we.
|
|
2347
|
+
{ title: '数据项排序' },
|
|
2348
|
+
r.createElement(we.SortAscendingOutlined, {
|
|
2366
2349
|
className: 'operate-btn',
|
|
2367
|
-
onClick:
|
|
2368
|
-
n.setState({ showAdvanceConfig: !0 });
|
|
2369
|
-
},
|
|
2350
|
+
onClick: this.childElemSort,
|
|
2370
2351
|
}),
|
|
2371
2352
|
),
|
|
2353
|
+
!y &&
|
|
2372
2354
|
r.createElement(
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
r.createElement(
|
|
2376
|
-
|
|
2377
|
-
|
|
2355
|
+
r.Fragment,
|
|
2356
|
+
null,
|
|
2357
|
+
r.createElement(
|
|
2358
|
+
S.Tooltip,
|
|
2359
|
+
{ title: '复制' },
|
|
2360
|
+
r.createElement(we.CopyOutlined, {
|
|
2361
|
+
className: 'operate-btn',
|
|
2362
|
+
onClick: this.onCopyBtnEvent,
|
|
2363
|
+
}),
|
|
2364
|
+
),
|
|
2365
|
+
r.createElement(
|
|
2366
|
+
S.Tooltip,
|
|
2367
|
+
{ title: '按住进行拖拽' },
|
|
2368
|
+
r.createElement(we.DragOutlined, {
|
|
2369
|
+
className: 'operate-btn drag-btn',
|
|
2370
|
+
}),
|
|
2371
|
+
),
|
|
2378
2372
|
),
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
b &&
|
|
2382
|
-
r.createElement(
|
|
2383
|
-
'div',
|
|
2384
|
-
{ className: 'operate-item' },
|
|
2373
|
+
),
|
|
2374
|
+
b &&
|
|
2385
2375
|
r.createElement(
|
|
2386
2376
|
S.Tooltip,
|
|
2387
2377
|
{ title: '高级设置' },
|
|
@@ -2392,7 +2382,7 @@
|
|
|
2392
2382
|
},
|
|
2393
2383
|
}),
|
|
2394
2384
|
),
|
|
2395
|
-
|
|
2385
|
+
),
|
|
2396
2386
|
d &&
|
|
2397
2387
|
r.createElement(
|
|
2398
2388
|
S.Modal,
|
|
@@ -2701,8 +2691,18 @@
|
|
|
2701
2691
|
a = e.target.value,
|
|
2702
2692
|
o = n.props,
|
|
2703
2693
|
r = o.indexRoute,
|
|
2704
|
-
i = o.optionIndex
|
|
2705
|
-
|
|
2694
|
+
i = o.optionIndex,
|
|
2695
|
+
s = o.optionValue;
|
|
2696
|
+
if (a !== s) {
|
|
2697
|
+
var c = a;
|
|
2698
|
+
if ((0, Oe.isObject)(s) && (0, Oe.isString)(c))
|
|
2699
|
+
try {
|
|
2700
|
+
c = JSON.parse(c);
|
|
2701
|
+
} catch (e) {
|
|
2702
|
+
console.warn('option 数值转换失败:', c), (c = s);
|
|
2703
|
+
}
|
|
2704
|
+
t(r, i, c);
|
|
2705
|
+
}
|
|
2706
2706
|
}),
|
|
2707
2707
|
(n.onAddBtnEvent = function () {
|
|
2708
2708
|
var e = (n.props.schemaStore || {}).addOptionItem,
|
|
@@ -2739,9 +2739,11 @@
|
|
|
2739
2739
|
(t.prototype.render = function () {
|
|
2740
2740
|
var e = this.props,
|
|
2741
2741
|
t = e.optionLabel,
|
|
2742
|
-
n = e.optionValue
|
|
2742
|
+
n = e.optionValue,
|
|
2743
|
+
a = (e.optionNodeKey, n);
|
|
2743
2744
|
return (
|
|
2744
|
-
|
|
2745
|
+
((0, Oe.isObject)(n) || (0, Oe.isArray)(n)) &&
|
|
2746
|
+
(a = JSON.stringify(n)),
|
|
2745
2747
|
r.createElement(
|
|
2746
2748
|
'div',
|
|
2747
2749
|
{ className: 'option-schema-box', id: t },
|
|
@@ -2749,7 +2751,7 @@
|
|
|
2749
2751
|
'div',
|
|
2750
2752
|
{ className: 'key-input-item' },
|
|
2751
2753
|
r.createElement(S.Input, {
|
|
2752
|
-
defaultValue:
|
|
2754
|
+
defaultValue: a,
|
|
2753
2755
|
onPressEnter: this.handleValueChange,
|
|
2754
2756
|
onBlur: this.handleValueChange,
|
|
2755
2757
|
}),
|
package/lib/index.js.LICENSE.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v5.1.
|
|
2
|
+
* @wibetter/json-schema-editor v5.1.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Jan 10 2025 16:30:12 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v5.1.
|
|
2
|
+
* @wibetter/json-schema-editor v5.1.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Jan 10 2025 16:30:23 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
package/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-schema-editor v5.1.
|
|
2
|
+
* @wibetter/json-schema-editor v5.1.2
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Jan 10 2025 16:30:23 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -81212,11 +81212,11 @@ styles.join("\\n")
|
|
|
81212
81212
|
);
|
|
81213
81213
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_14__ =
|
|
81214
81214
|
__webpack_require__(
|
|
81215
|
-
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/
|
|
81215
|
+
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/DragOutlined.js',
|
|
81216
81216
|
);
|
|
81217
81217
|
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_15__ =
|
|
81218
81218
|
__webpack_require__(
|
|
81219
|
-
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/
|
|
81219
|
+
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/SettingOutlined.js',
|
|
81220
81220
|
);
|
|
81221
81221
|
/* harmony import */ var $components_AdvanceConfig_index__WEBPACK_IMPORTED_MODULE_3__ =
|
|
81222
81222
|
__webpack_require__(
|
|
@@ -81547,128 +81547,107 @@ styles.join("\\n")
|
|
|
81547
81547
|
},
|
|
81548
81548
|
),
|
|
81549
81549
|
),
|
|
81550
|
-
|
|
81551
|
-
|
|
81552
|
-
|
|
81553
|
-
|
|
81554
|
-
|
|
81555
|
-
|
|
81556
|
-
|
|
81557
|
-
|
|
81558
|
-
|
|
81559
|
-
|
|
81560
|
-
title: '\u5220\u9664',
|
|
81561
|
-
},
|
|
81550
|
+
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81551
|
+
'div',
|
|
81552
|
+
{
|
|
81553
|
+
className: 'operate-item',
|
|
81554
|
+
},
|
|
81555
|
+
!hideOperaBtn &&
|
|
81556
|
+
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81557
|
+
react__WEBPACK_IMPORTED_MODULE_1__.Fragment,
|
|
81558
|
+
null,
|
|
81559
|
+
!isFixed &&
|
|
81562
81560
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81563
|
-
|
|
81564
|
-
'default'
|
|
81565
|
-
],
|
|
81561
|
+
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81566
81562
|
{
|
|
81567
|
-
|
|
81568
|
-
onClick: this.onDeleteBtnEvent,
|
|
81563
|
+
title: '\u5220\u9664',
|
|
81569
81564
|
},
|
|
81565
|
+
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81566
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__[
|
|
81567
|
+
'default'
|
|
81568
|
+
],
|
|
81569
|
+
{
|
|
81570
|
+
className: 'operate-btn delete-operate',
|
|
81571
|
+
onClick: this.onDeleteBtnEvent,
|
|
81572
|
+
},
|
|
81573
|
+
),
|
|
81570
81574
|
),
|
|
81571
|
-
),
|
|
81572
|
-
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81573
|
-
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81574
|
-
{
|
|
81575
|
-
title: isContainerElem
|
|
81576
|
-
? '新增子元素'
|
|
81577
|
-
: '新增同级元素',
|
|
81578
|
-
},
|
|
81579
|
-
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81580
|
-
_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__[
|
|
81581
|
-
'default'
|
|
81582
|
-
],
|
|
81583
|
-
{
|
|
81584
|
-
className: 'operate-btn',
|
|
81585
|
-
onClick: this.onAddBtnEvent,
|
|
81586
|
-
},
|
|
81587
|
-
),
|
|
81588
|
-
),
|
|
81589
|
-
isContainerElem &&
|
|
81590
81575
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81591
81576
|
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81592
81577
|
{
|
|
81593
|
-
title:
|
|
81578
|
+
title: isContainerElem
|
|
81579
|
+
? '新增子元素'
|
|
81580
|
+
: '新增同级元素',
|
|
81594
81581
|
},
|
|
81595
81582
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81596
|
-
|
|
81583
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__[
|
|
81597
81584
|
'default'
|
|
81598
81585
|
],
|
|
81599
81586
|
{
|
|
81600
81587
|
className: 'operate-btn',
|
|
81601
|
-
onClick: this.
|
|
81588
|
+
onClick: this.onAddBtnEvent,
|
|
81602
81589
|
},
|
|
81603
81590
|
),
|
|
81604
81591
|
),
|
|
81605
|
-
|
|
81606
|
-
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81607
|
-
react__WEBPACK_IMPORTED_MODULE_1__.Fragment,
|
|
81608
|
-
null,
|
|
81592
|
+
isContainerElem &&
|
|
81609
81593
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81610
81594
|
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81611
81595
|
{
|
|
81612
|
-
title: '
|
|
81596
|
+
title: '数据项排序',
|
|
81613
81597
|
},
|
|
81614
81598
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81615
|
-
|
|
81599
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__[
|
|
81616
81600
|
'default'
|
|
81617
81601
|
],
|
|
81618
81602
|
{
|
|
81619
81603
|
className: 'operate-btn',
|
|
81620
|
-
onClick: this.
|
|
81604
|
+
onClick: this.childElemSort,
|
|
81621
81605
|
},
|
|
81622
81606
|
),
|
|
81623
81607
|
),
|
|
81608
|
+
!isFixed &&
|
|
81624
81609
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81625
|
-
|
|
81626
|
-
|
|
81627
|
-
title: '\u9AD8\u7EA7\u8BBE\u7F6E',
|
|
81628
|
-
},
|
|
81610
|
+
react__WEBPACK_IMPORTED_MODULE_1__.Fragment,
|
|
81611
|
+
null,
|
|
81629
81612
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81630
|
-
|
|
81631
|
-
'default'
|
|
81632
|
-
],
|
|
81613
|
+
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81633
81614
|
{
|
|
81634
|
-
|
|
81635
|
-
onClick: function onClick() {
|
|
81636
|
-
_this2.setState({
|
|
81637
|
-
showAdvanceConfig: true,
|
|
81638
|
-
});
|
|
81639
|
-
},
|
|
81615
|
+
title: '\u590D\u5236',
|
|
81640
81616
|
},
|
|
81617
|
+
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81618
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__[
|
|
81619
|
+
'default'
|
|
81620
|
+
],
|
|
81621
|
+
{
|
|
81622
|
+
className: 'operate-btn',
|
|
81623
|
+
onClick: this.onCopyBtnEvent,
|
|
81624
|
+
},
|
|
81625
|
+
),
|
|
81641
81626
|
),
|
|
81642
|
-
),
|
|
81643
|
-
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81644
|
-
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81645
|
-
{
|
|
81646
|
-
title: '\u6309\u4F4F\u8FDB\u884C\u62D6\u62FD',
|
|
81647
|
-
},
|
|
81648
81627
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81649
|
-
|
|
81650
|
-
'default'
|
|
81651
|
-
],
|
|
81628
|
+
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81652
81629
|
{
|
|
81653
|
-
|
|
81630
|
+
title: '\u6309\u4F4F\u8FDB\u884C\u62D6\u62FD',
|
|
81654
81631
|
},
|
|
81632
|
+
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81633
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_14__[
|
|
81634
|
+
'default'
|
|
81635
|
+
],
|
|
81636
|
+
{
|
|
81637
|
+
className: 'operate-btn drag-btn',
|
|
81638
|
+
},
|
|
81639
|
+
),
|
|
81655
81640
|
),
|
|
81656
81641
|
),
|
|
81657
|
-
|
|
81658
|
-
|
|
81659
|
-
showAdvanceBtn &&
|
|
81660
|
-
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81661
|
-
'div',
|
|
81662
|
-
{
|
|
81663
|
-
className: 'operate-item',
|
|
81664
|
-
},
|
|
81642
|
+
),
|
|
81643
|
+
showAdvanceBtn &&
|
|
81665
81644
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81666
81645
|
antd__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
81667
81646
|
{
|
|
81668
81647
|
title: '\u9AD8\u7EA7\u8BBE\u7F6E',
|
|
81669
81648
|
},
|
|
81670
81649
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81671
|
-
|
|
81650
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_15__[
|
|
81672
81651
|
'default'
|
|
81673
81652
|
],
|
|
81674
81653
|
{
|
|
@@ -81681,7 +81660,7 @@ styles.join("\\n")
|
|
|
81681
81660
|
},
|
|
81682
81661
|
),
|
|
81683
81662
|
),
|
|
81684
|
-
|
|
81663
|
+
),
|
|
81685
81664
|
showAdvanceConfig &&
|
|
81686
81665
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
81687
81666
|
antd__WEBPACK_IMPORTED_MODULE_16__['default'],
|
|
@@ -82215,53 +82194,57 @@ styles.join("\\n")
|
|
|
82215
82194
|
/*#__PURE__*/ __webpack_require__.n(
|
|
82216
82195
|
react__WEBPACK_IMPORTED_MODULE_1__,
|
|
82217
82196
|
);
|
|
82218
|
-
/* harmony import */ var
|
|
82197
|
+
/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_12__ =
|
|
82219
82198
|
__webpack_require__(
|
|
82220
82199
|
/*! mobx-react */ '../../node_modules/mobx-react/dist/mobxreact.esm.js',
|
|
82221
82200
|
);
|
|
82222
|
-
/* harmony import */ var
|
|
82201
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ =
|
|
82223
82202
|
__webpack_require__(
|
|
82224
82203
|
/*! prop-types */ '../../node_modules/prop-types/index.js',
|
|
82225
82204
|
);
|
|
82226
|
-
/* harmony import */ var
|
|
82205
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default =
|
|
82227
82206
|
/*#__PURE__*/ __webpack_require__.n(
|
|
82228
|
-
|
|
82207
|
+
prop_types__WEBPACK_IMPORTED_MODULE_11__,
|
|
82229
82208
|
);
|
|
82230
82209
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_2__ =
|
|
82231
82210
|
__webpack_require__(
|
|
82232
82211
|
/*! antd */ '../../node_modules/antd/es/select/index.js',
|
|
82233
82212
|
);
|
|
82234
|
-
/* harmony import */ var
|
|
82213
|
+
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ =
|
|
82235
82214
|
__webpack_require__(
|
|
82236
82215
|
/*! antd */ '../../node_modules/antd/es/message/index.js',
|
|
82237
82216
|
);
|
|
82238
|
-
/* harmony import */ var
|
|
82217
|
+
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ =
|
|
82239
82218
|
__webpack_require__(
|
|
82240
82219
|
/*! antd */ '../../node_modules/antd/es/input/index.js',
|
|
82241
82220
|
);
|
|
82242
|
-
/* harmony import */ var
|
|
82221
|
+
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ =
|
|
82243
82222
|
__webpack_require__(
|
|
82244
82223
|
/*! antd */ '../../node_modules/antd/es/tooltip/index.js',
|
|
82245
82224
|
);
|
|
82246
|
-
/* harmony import */ var
|
|
82225
|
+
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ =
|
|
82247
82226
|
__webpack_require__(
|
|
82248
82227
|
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/CloseOutlined.js',
|
|
82249
82228
|
);
|
|
82250
|
-
/* harmony import */ var
|
|
82229
|
+
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_9__ =
|
|
82251
82230
|
__webpack_require__(
|
|
82252
82231
|
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/PlusOutlined.js',
|
|
82253
82232
|
);
|
|
82254
|
-
/* harmony import */ var
|
|
82233
|
+
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ =
|
|
82255
82234
|
__webpack_require__(
|
|
82256
82235
|
/*! @ant-design/icons */ './node_modules/@ant-design/icons/es/icons/CopyOutlined.js',
|
|
82257
82236
|
);
|
|
82258
|
-
/* harmony import */ var
|
|
82237
|
+
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ =
|
|
82238
|
+
__webpack_require__(
|
|
82239
|
+
/*! @wibetter/json-utils */ '../json-utils/dist/index.esm.js',
|
|
82240
|
+
);
|
|
82241
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_4__ =
|
|
82259
82242
|
__webpack_require__(
|
|
82260
82243
|
/*! ./index.scss */ './src/components/OptionSchema/index.scss',
|
|
82261
82244
|
);
|
|
82262
|
-
/* harmony import */ var
|
|
82245
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_4___default =
|
|
82263
82246
|
/*#__PURE__*/ __webpack_require__.n(
|
|
82264
|
-
|
|
82247
|
+
_index_scss__WEBPACK_IMPORTED_MODULE_4__,
|
|
82265
82248
|
);
|
|
82266
82249
|
|
|
82267
82250
|
var Option = antd__WEBPACK_IMPORTED_MODULE_2__['default'].Option;
|
|
@@ -82283,7 +82266,7 @@ styles.join("\\n")
|
|
|
82283
82266
|
optionLabel = _this$props.optionLabel;
|
|
82284
82267
|
if (value !== optionLabel) {
|
|
82285
82268
|
if (isExitOptionLabel(indexRoute, value)) {
|
|
82286
|
-
|
|
82269
|
+
antd__WEBPACK_IMPORTED_MODULE_5__['default'].warning(
|
|
82287
82270
|
'对不起,存在相同的Label值,请重新设置。',
|
|
82288
82271
|
);
|
|
82289
82272
|
} else {
|
|
@@ -82301,7 +82284,25 @@ styles.join("\\n")
|
|
|
82301
82284
|
optionIndex = _this$props2.optionIndex,
|
|
82302
82285
|
optionValue = _this$props2.optionValue;
|
|
82303
82286
|
if (value !== optionValue) {
|
|
82304
|
-
|
|
82287
|
+
var curValue = value;
|
|
82288
|
+
if (
|
|
82289
|
+
(0,
|
|
82290
|
+
_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(
|
|
82291
|
+
optionValue,
|
|
82292
|
+
) &&
|
|
82293
|
+
(0,
|
|
82294
|
+
_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isString)(
|
|
82295
|
+
curValue,
|
|
82296
|
+
)
|
|
82297
|
+
) {
|
|
82298
|
+
try {
|
|
82299
|
+
curValue = JSON.parse(curValue);
|
|
82300
|
+
} catch (error) {
|
|
82301
|
+
console.warn('option 数值转换失败:', curValue);
|
|
82302
|
+
curValue = optionValue;
|
|
82303
|
+
}
|
|
82304
|
+
}
|
|
82305
|
+
updateOptionValue(indexRoute, optionIndex, curValue);
|
|
82305
82306
|
}
|
|
82306
82307
|
};
|
|
82307
82308
|
/** 新增选择项 */
|
|
@@ -82334,7 +82335,7 @@ styles.join("\\n")
|
|
|
82334
82335
|
if (itemJSONObj.options && itemJSONObj.options.length > 1) {
|
|
82335
82336
|
deleteOptionItem(indexRoute, optionIndex); // 删除指定位置的枚举值
|
|
82336
82337
|
} else {
|
|
82337
|
-
|
|
82338
|
+
antd__WEBPACK_IMPORTED_MODULE_5__['default'].warning(
|
|
82338
82339
|
'删除失败,至少保留一个可选项。',
|
|
82339
82340
|
);
|
|
82340
82341
|
}
|
|
@@ -82356,6 +82357,17 @@ styles.join("\\n")
|
|
|
82356
82357
|
optionLabel = _this$props6.optionLabel,
|
|
82357
82358
|
optionValue = _this$props6.optionValue,
|
|
82358
82359
|
optionNodeKey = _this$props6.optionNodeKey;
|
|
82360
|
+
var curOptionValue = optionValue;
|
|
82361
|
+
if (
|
|
82362
|
+
(0, _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(
|
|
82363
|
+
optionValue,
|
|
82364
|
+
) ||
|
|
82365
|
+
(0, _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isArray)(
|
|
82366
|
+
optionValue,
|
|
82367
|
+
)
|
|
82368
|
+
) {
|
|
82369
|
+
curOptionValue = JSON.stringify(optionValue);
|
|
82370
|
+
}
|
|
82359
82371
|
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82360
82372
|
'div',
|
|
82361
82373
|
{
|
|
@@ -82368,9 +82380,9 @@ styles.join("\\n")
|
|
|
82368
82380
|
className: 'key-input-item',
|
|
82369
82381
|
},
|
|
82370
82382
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82371
|
-
|
|
82383
|
+
antd__WEBPACK_IMPORTED_MODULE_6__['default'],
|
|
82372
82384
|
{
|
|
82373
|
-
defaultValue:
|
|
82385
|
+
defaultValue: curOptionValue,
|
|
82374
82386
|
onPressEnter: this.handleValueChange,
|
|
82375
82387
|
onBlur: this.handleValueChange,
|
|
82376
82388
|
},
|
|
@@ -82405,7 +82417,7 @@ styles.join("\\n")
|
|
|
82405
82417
|
className: 'title-input-item',
|
|
82406
82418
|
},
|
|
82407
82419
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82408
|
-
|
|
82420
|
+
antd__WEBPACK_IMPORTED_MODULE_6__['default'],
|
|
82409
82421
|
{
|
|
82410
82422
|
defaultValue: optionLabel,
|
|
82411
82423
|
onPressEnter: this.handleLabelChange,
|
|
@@ -82419,12 +82431,12 @@ styles.join("\\n")
|
|
|
82419
82431
|
className: 'operate-item',
|
|
82420
82432
|
},
|
|
82421
82433
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82422
|
-
|
|
82434
|
+
antd__WEBPACK_IMPORTED_MODULE_7__['default'],
|
|
82423
82435
|
{
|
|
82424
82436
|
title: '\u5220\u9664',
|
|
82425
82437
|
},
|
|
82426
82438
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82427
|
-
|
|
82439
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__['default'],
|
|
82428
82440
|
{
|
|
82429
82441
|
className: 'operate-btn delete-operate',
|
|
82430
82442
|
onClick: this.onDeleteBtnEvent,
|
|
@@ -82432,12 +82444,12 @@ styles.join("\\n")
|
|
|
82432
82444
|
),
|
|
82433
82445
|
),
|
|
82434
82446
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82435
|
-
|
|
82447
|
+
antd__WEBPACK_IMPORTED_MODULE_7__['default'],
|
|
82436
82448
|
{
|
|
82437
82449
|
title: '\u65B0\u589E\u53EF\u9009\u9879',
|
|
82438
82450
|
},
|
|
82439
82451
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82440
|
-
|
|
82452
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_9__['default'],
|
|
82441
82453
|
{
|
|
82442
82454
|
className: 'operate-btn',
|
|
82443
82455
|
onClick: this.onAddBtnEvent,
|
|
@@ -82445,12 +82457,14 @@ styles.join("\\n")
|
|
|
82445
82457
|
),
|
|
82446
82458
|
),
|
|
82447
82459
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82448
|
-
|
|
82460
|
+
antd__WEBPACK_IMPORTED_MODULE_7__['default'],
|
|
82449
82461
|
{
|
|
82450
82462
|
title: '\u590D\u5236',
|
|
82451
82463
|
},
|
|
82452
82464
|
/*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
82453
|
-
|
|
82465
|
+
_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__[
|
|
82466
|
+
'default'
|
|
82467
|
+
],
|
|
82454
82468
|
{
|
|
82455
82469
|
className: 'operate-btn',
|
|
82456
82470
|
onClick: this.onCopyBtnEvent,
|
|
@@ -82464,22 +82478,22 @@ styles.join("\\n")
|
|
|
82464
82478
|
})(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
82465
82479
|
OptionSchema.propTypes = {
|
|
82466
82480
|
indexRoute:
|
|
82467
|
-
|
|
82468
|
-
optionIndex:
|
|
82481
|
+
prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,
|
|
82482
|
+
optionIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().any,
|
|
82469
82483
|
optionLabel:
|
|
82470
|
-
|
|
82484
|
+
prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,
|
|
82471
82485
|
optionValue:
|
|
82472
|
-
|
|
82486
|
+
prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,
|
|
82473
82487
|
optionNodeKey:
|
|
82474
|
-
|
|
82488
|
+
prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,
|
|
82475
82489
|
};
|
|
82476
82490
|
/* harmony default export */ __webpack_exports__['default'] = (0,
|
|
82477
|
-
|
|
82491
|
+
mobx_react__WEBPACK_IMPORTED_MODULE_12__.inject)(function (stores) {
|
|
82478
82492
|
return {
|
|
82479
82493
|
schemaStore: stores.schemaStore,
|
|
82480
82494
|
};
|
|
82481
82495
|
})(
|
|
82482
|
-
(0,
|
|
82496
|
+
(0, mobx_react__WEBPACK_IMPORTED_MODULE_12__.observer)(
|
|
82483
82497
|
OptionSchema,
|
|
82484
82498
|
),
|
|
82485
82499
|
);
|
|
@@ -85079,11 +85093,11 @@ styles.join("\\n")
|
|
|
85079
85093
|
);
|
|
85080
85094
|
if (itemJSONObj.options) {
|
|
85081
85095
|
if (
|
|
85082
|
-
itemJSONObj.options.find(
|
|
85083
|
-
|
|
85084
|
-
item.label === optionLabel
|
|
85085
|
-
|
|
85086
|
-
|
|
85096
|
+
itemJSONObj.options.find(
|
|
85097
|
+
function (item) {
|
|
85098
|
+
return item.label === optionLabel;
|
|
85099
|
+
}, // || item.name === optionLabel
|
|
85100
|
+
)
|
|
85087
85101
|
) {
|
|
85088
85102
|
isExit = true;
|
|
85089
85103
|
}
|