@wibetter/json-schema-editor 5.1.8 → 5.1.10

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/sdk/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-schema-editor v5.1.8
2
+ * @wibetter/json-schema-editor v5.1.10
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Sun Jan 12 2025 22:27:26 GMT+0800 (中国标准时间)
5
+ * build time: Thu Jan 16 2025 14:25:03 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -54260,11 +54260,16 @@ var AdvanceConfig = /*#__PURE__*/function (_React$PureComponent) {
54260
54260
  });
54261
54261
  };
54262
54262
  _this.state = {
54263
- isShowWarn: false,
54263
+ optionsWarn: false,
54264
54264
  // 用于判断是否显示错误信息
54265
- warnText: '',
54265
+ optionsWarnText: '',
54266
54266
  // 错误内容
54267
- curJSONDataTemp: undefined // 用于记录当前不合规范的json数据
54267
+ optionsTemp: undefined,
54268
+ // 用于记录当前不合规范的json数据
54269
+
54270
+ titleStyleTemp: undefined,
54271
+ titleStyleWarn: false,
54272
+ titleStyleWarnText: true
54268
54273
  };
54269
54274
 
54270
54275
  // 这边绑定是必要的,这样 `this` 才能在回调函数中使用
@@ -54283,9 +54288,13 @@ var AdvanceConfig = /*#__PURE__*/function (_React$PureComponent) {
54283
54288
  indexRoute = _this$props2.indexRoute,
54284
54289
  targetJsonSchema = _this$props2.targetJsonSchema;
54285
54290
  var _this$state = this.state,
54286
- isShowWarn = _this$state.isShowWarn,
54287
- warnText = _this$state.warnText,
54288
- curJSONDataTemp = _this$state.curJSONDataTemp;
54291
+ optionsWarn = _this$state.optionsWarn,
54292
+ optionsWarnText = _this$state.optionsWarnText,
54293
+ optionsTemp = _this$state.optionsTemp;
54294
+ var _this$state2 = this.state,
54295
+ titleStyleTemp = _this$state2.titleStyleTemp,
54296
+ titleStyleWarn = _this$state2.titleStyleWarn,
54297
+ titleStyleWarnText = _this$state2.titleStyleWarnText;
54289
54298
  var curType = targetJsonSchema.type;
54290
54299
  // 获取对应的keyRoute
54291
54300
  var curKeyRoute = indexRoute2keyRoute(indexRoute);
@@ -54424,15 +54433,15 @@ var AdvanceConfig = /*#__PURE__*/function (_React$PureComponent) {
54424
54433
  className: "title-text"
54425
54434
  }, "options \u914D\u7F6E"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54426
54435
  className: "content-item"
54427
- }, isShowWarn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54436
+ }, optionsWarn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54428
54437
  className: "warning-box code-area-item"
54429
54438
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54430
54439
  className: "warning-img"
54431
54440
  }, "X"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54432
54441
  className: "warning-text"
54433
- }, warnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_ace__WEBPACK_IMPORTED_MODULE_7__["default"], {
54442
+ }, optionsWarnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_ace__WEBPACK_IMPORTED_MODULE_7__["default"], {
54434
54443
  id: nodeKey + "-json_area_ace",
54435
- value: (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.hasProperties)(curJSONDataTemp) ? curJSONDataTemp : JSON.stringify(targetJsonSchema.options, null, 2),
54444
+ value: (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.hasProperties)(optionsTemp) ? optionsTemp : JSON.stringify(targetJsonSchema.options, null, 2),
54436
54445
  className: "json-view-ace",
54437
54446
  mode: "json",
54438
54447
  theme: "solarized_light",
@@ -54451,16 +54460,16 @@ var AdvanceConfig = /*#__PURE__*/function (_React$PureComponent) {
54451
54460
  // 更新jsonData
54452
54461
  _this2.handleValueChange('options', newJsonDataTemp);
54453
54462
  _this2.setState({
54454
- isShowWarn: false,
54455
- curJSONDataTemp: undefined // 重置
54463
+ optionsWarn: false,
54464
+ optionsTemp: undefined // 重置
54456
54465
  });
54457
54466
  } catch (err) {
54458
54467
  // 更新jsonData
54459
54468
  _this2.setState({
54460
- curJSONDataTemp: newJsonData,
54469
+ optionsTemp: newJsonData,
54461
54470
  // 记录当前格式不正确的json数据
54462
- warnText: err.message,
54463
- isShowWarn: true
54471
+ optionsWarnText: err.message,
54472
+ optionsWarn: true
54464
54473
  });
54465
54474
  }
54466
54475
  },
@@ -54699,7 +54708,62 @@ var AdvanceConfig = /*#__PURE__*/function (_React$PureComponent) {
54699
54708
  var value = event.target.value;
54700
54709
  _this2.handleValueChange('onShow', value);
54701
54710
  }
54702
- })))));
54711
+ })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54712
+ className: "wide-screen-element-warp",
54713
+ key: nodeKey + "-titleStyle"
54714
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54715
+ className: "element-title"
54716
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
54717
+ title: '可用于设置标题展示样式。',
54718
+ placement: "top"
54719
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
54720
+ className: "title-text"
54721
+ }, "\u6807\u9898\u6837\u5F0F"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54722
+ className: "content-item"
54723
+ }, titleStyleWarn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54724
+ className: "warning-box code-area-item"
54725
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54726
+ className: "warning-img"
54727
+ }, "X"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
54728
+ className: "warning-text"
54729
+ }, titleStyleWarnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_ace__WEBPACK_IMPORTED_MODULE_7__["default"], {
54730
+ id: nodeKey + "-json_area_ace",
54731
+ value: (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.hasProperties)(titleStyleTemp) ? titleStyleTemp : JSON.stringify(targetJsonSchema.titleStyle, null, 2),
54732
+ className: "json-view-ace",
54733
+ mode: "json",
54734
+ theme: "solarized_light",
54735
+ name: "JSON_CODE_EDIT",
54736
+ fontSize: 14,
54737
+ showPrintMargin: true,
54738
+ showGutter: true,
54739
+ highlightActiveLine: true,
54740
+ readOnly: false,
54741
+ minLines: 3,
54742
+ maxLines: 6,
54743
+ width: '100%',
54744
+ onChange: function onChange(newJsonData) {
54745
+ try {
54746
+ var newTitleStyleTemp = JSON.parse(newJsonData);
54747
+ _this2.handleValueChange('titleStyle', newTitleStyleTemp);
54748
+ _this2.setState({
54749
+ titleStyleWarn: false,
54750
+ titleStyleTemp: undefined
54751
+ });
54752
+ } catch (err) {
54753
+ _this2.setState({
54754
+ titleStyleTemp: newJsonData,
54755
+ // 记录当前格式不正确的json数据
54756
+ titleStyleWarnText: err.message,
54757
+ titleStyleWarn: true
54758
+ });
54759
+ }
54760
+ },
54761
+ setOptions: {
54762
+ useWorker: false,
54763
+ showLineNumbers: true,
54764
+ tabSize: 2
54765
+ }
54766
+ }))));
54703
54767
  };
54704
54768
  return AdvanceConfig;
54705
54769
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
@@ -54775,7 +54839,7 @@ var BaseFormSchema = /*#__PURE__*/function (_React$PureComponent) {
54775
54839
  var _this;
54776
54840
  _this = _React$PureComponent.call(this, props) || this;
54777
54841
  /** select类型变动事件处理器 */
54778
- _this.selectHandleChange = function (newType) {
54842
+ _this.handleTypeChange = function (newType) {
54779
54843
  var _ref = _this.props.schemaStore || {},
54780
54844
  changeType = _ref.changeType;
54781
54845
  var _this$props = _this.props,
@@ -54786,7 +54850,7 @@ var BaseFormSchema = /*#__PURE__*/function (_React$PureComponent) {
54786
54850
 
54787
54851
  // 根据当前新的类型获取初始化的对象数据
54788
54852
  var newTypeData = _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.TypeDataList[newType];
54789
- changeType(indexRoute, jsonKey, newTypeData);
54853
+ changeType(indexRoute, jsonKey, newTypeData, targetJsonSchema);
54790
54854
  };
54791
54855
  /** jsonKey类型输入值变动事件处理器 */
54792
54856
  _this.handleJsonKeyChange = function (event) {
@@ -54901,7 +54965,7 @@ var BaseFormSchema = /*#__PURE__*/function (_React$PureComponent) {
54901
54965
  _this.onDeleteBtnEvent = _this.onDeleteBtnEvent.bind(_this);
54902
54966
  _this.handleJsonKeyChange = _this.handleJsonKeyChange.bind(_this);
54903
54967
  _this.handleTitleChange = _this.handleTitleChange.bind(_this);
54904
- _this.selectHandleChange = _this.selectHandleChange.bind(_this);
54968
+ _this.handleTypeChange = _this.handleTypeChange.bind(_this);
54905
54969
  _this.childElemSort = _this.childElemSort.bind(_this);
54906
54970
  return _this;
54907
54971
  }
@@ -54960,7 +55024,7 @@ var BaseFormSchema = /*#__PURE__*/function (_React$PureComponent) {
54960
55024
  style: {
54961
55025
  width: 150
54962
55026
  },
54963
- onChange: this.selectHandleChange,
55027
+ onChange: this.handleTypeChange,
54964
55028
  disabled: typeIsFixed
54965
55029
  }, currentTypeList.map(function (item) {
54966
55030
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Option, {
@@ -55669,7 +55733,7 @@ var _TypeList;
55669
55733
  var BASE_TYPE = ['input', 'boolean', 'number', 'color', 'url', 'textarea', 'radio', 'select', 'cascader', 'checkboxes', 'date', 'date-time', 'time', 'input-image'];
55670
55734
 
55671
55735
  // 固有容器类型
55672
- var Fixed_CONTAINER_TYPE = ['datasource', 'event', 'dynamic-data', 'dynamic-config', 'sohu-source', 'sohu-event'];
55736
+ var Fixed_CONTAINER_TYPE = ['datasource', 'event', 'dynamic-data', 'dynamic-config', 'dynamic-object', 'dynamic-array', 'sohu-source', 'sohu-event'];
55673
55737
 
55674
55738
  // 当前容器类型
55675
55739
  var CONTAINER_TYPE = ['object'].concat(Fixed_CONTAINER_TYPE);
@@ -56274,6 +56338,8 @@ var MappingRender = function MappingRender(props) {
56274
56338
  case 'style':
56275
56339
  case 'data':
56276
56340
  case 'dynamic-config':
56341
+ case 'dynamic-object':
56342
+ case 'dynamic-array':
56277
56343
  case 'sohu-source':
56278
56344
  case 'sohu-event':
56279
56345
  case 'padding-margin':
@@ -56587,10 +56653,12 @@ __webpack_require__.r(__webpack_exports__);
56587
56653
  /* harmony import */ var _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/applyDecoratedDescriptor */ "../../node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js");
56588
56654
  /* harmony import */ var _babel_runtime_helpers_initializerWarningHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/initializerWarningHelper */ "../../node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js");
56589
56655
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
56590
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
56591
- /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
56592
- /* harmony import */ var $data_TypeList__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $data/TypeList */ "./src/data/TypeList.js");
56593
- /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
56656
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
56657
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ "../../node_modules/lodash/lodash.js");
56658
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
56659
+ /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
56660
+ /* harmony import */ var $data_TypeList__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $data/TypeList */ "./src/data/TypeList.js");
56661
+ /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
56594
56662
 
56595
56663
 
56596
56664
 
@@ -56602,8 +56670,9 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
56602
56670
 
56603
56671
 
56604
56672
 
56605
- var _initJSONSchemaData = _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.TypeDataList.jsonschema;
56606
- var initInputData = _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.TypeDataList.input;
56673
+
56674
+ var _initJSONSchemaData = _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.TypeDataList.jsonschema;
56675
+ var initInputData = _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.TypeDataList.input;
56607
56676
  var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec2 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec3 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec4 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec5 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec6 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec7 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec8 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec9 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec10 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec11 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec12 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec13 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec14 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec15 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec16 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec17 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec18 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec19 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec20 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec21 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec22 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec23 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec24 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec25 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec26 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec27 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec28 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec29 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec30 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec31 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec32 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec33 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec34 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec35 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec36 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec37 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec38 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec39 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _dec40 = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _class = /*#__PURE__*/function () {
56608
56677
  function JSONSchemaStore() {
56609
56678
  /** 主要用于自动生成jsonKey中的index */
@@ -56642,7 +56711,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56642
56711
  var _this = this;
56643
56712
  if (!typeListOption || JSON.stringify(typeListOption) === '{}') {
56644
56713
  // 直接使用原有的TypeList数据
56645
- } else if (!(0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isEqual)(typeListOption, this.SchemaTypeList)) {
56714
+ } else if (!(0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.isEqual)(typeListOption, this.SchemaTypeList)) {
56646
56715
  if (typeListOption) {
56647
56716
  Object.keys(typeListOption).map(function (key) {
56648
56717
  _this.SchemaTypeList[key] = typeListOption[key];
@@ -56655,21 +56724,21 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56655
56724
  _proto.initJSONSchemaData = function initJSONSchemaData(jsonSchemaData) {
56656
56725
  if (!jsonSchemaData || JSON.stringify(jsonSchemaData) === '{}') {
56657
56726
  // 使用默认的jsonschema数据进行初始化
56658
- this.jsonSchema = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(_initJSONSchemaData);
56659
- } else if (!(0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isEqual)(jsonSchemaData, this.JSONSchemaObj)) {
56660
- if (jsonSchemaData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.isNewSchemaData)(jsonSchemaData)) {
56727
+ this.jsonSchema = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(_initJSONSchemaData);
56728
+ } else if (!(0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.isEqual)(jsonSchemaData, this.JSONSchemaObj)) {
56729
+ if (jsonSchemaData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.isNewSchemaData)(jsonSchemaData)) {
56661
56730
  // 如果有lastUpdateTime则说明是新版jsonSchema数据,无需转换直接进行赋值
56662
56731
  this.jsonSchema = jsonSchemaData;
56663
56732
  } else {
56664
56733
  // 进行一次转换,以便兼容旧版数据
56665
- var newJSONSchema = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.oldSchemaToNewSchema)(jsonSchemaData);
56734
+ var newJSONSchema = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.oldSchemaToNewSchema)(jsonSchemaData);
56666
56735
  this.jsonSchema = newJSONSchema;
56667
56736
  }
56668
56737
  }
56669
56738
  };
56670
56739
  /** 初始化jsonData */
56671
56740
  _proto.initOnChange = function initOnChange(newOnChangeFunc) {
56672
- if (newOnChangeFunc || (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isFunction)(newOnChangeFunc)) {
56741
+ if (newOnChangeFunc || (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.isFunction)(newOnChangeFunc)) {
56673
56742
  this.onChange = newOnChangeFunc;
56674
56743
  }
56675
56744
  }
@@ -56686,22 +56755,22 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56686
56755
 
56687
56756
  /** 根据索引路径获取对应的key值路径 */;
56688
56757
  _proto.indexRoute2keyRoute = function indexRoute2keyRoute(indexRoute) {
56689
- return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.indexRoute2keyRoute)(indexRoute, this.jsonSchema);
56758
+ return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.indexRoute2keyRoute)(indexRoute, this.jsonSchema);
56690
56759
  }
56691
56760
 
56692
56761
  /** 根据key值路径获取对应的index索引路径 */;
56693
56762
  _proto.keyRoute2indexRoute = function keyRoute2indexRoute(keyRoute) {
56694
- return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.keyRoute2indexRoute)(keyRoute, this.jsonSchema);
56763
+ return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.keyRoute2indexRoute)(keyRoute, this.jsonSchema);
56695
56764
  }
56696
56765
 
56697
56766
  /** 根据索引路径获取对应的schema数据[非联动式数据获取] */;
56698
56767
  _proto.getSchemaByIndexRoute = function getSchemaByIndexRoute(indexRoute) {
56699
- return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema, true); // useObjClone: true 避免后续产生数据联动
56768
+ return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema, true); // useObjClone: true 避免后续产生数据联动
56700
56769
  }
56701
56770
 
56702
56771
  /** 根据key值路径获取对应的schema数据[非联动式数据获取] */;
56703
56772
  _proto.getSchemaByKeyRoute = function getSchemaByKeyRoute(keyRoute) {
56704
- return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByKeyRoute)(keyRoute, this.jsonSchema, true); // useObjClone: true 避免后续产生数据联动
56773
+ return (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByKeyRoute)(keyRoute, this.jsonSchema, true); // useObjClone: true 避免后续产生数据联动
56705
56774
  }
56706
56775
 
56707
56776
  /** 根据parentJSONObj自动生成jsonKey */;
@@ -56718,25 +56787,25 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56718
56787
 
56719
56788
  /** 判断是否有重名key值 */;
56720
56789
  _proto.isExitJsonKey = function isExitJsonKey(indexRoute, jsonKey) {
56721
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(indexRoute);
56790
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(indexRoute);
56722
56791
  var parentJSONObj = this.getSchemaByIndexRoute(parentIndexRoute);
56723
56792
  if (parentJSONObj.propertyOrder && parentJSONObj.propertyOrder.indexOf(jsonKey) >= 0) {
56724
56793
  // 表示存在相同的jsonKey
56725
56794
  return true;
56726
56795
  }
56727
- if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList.indexOf(jsonKey) >= 0) {
56796
+ if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList.indexOf(jsonKey) >= 0) {
56728
56797
  // 表示当前jsonKey是JSONSchema的关键字
56729
- antd__WEBPACK_IMPORTED_MODULE_9__["default"].warning(jsonKey + "\u662FJSONSchema\u7684\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\uFF0C\u907F\u514D\u540E\u7EED\u51FA\u73B0\u6570\u636E\u5F02\u5E38\u3002");
56798
+ antd__WEBPACK_IMPORTED_MODULE_10__["default"].warning(jsonKey + "\u662FJSONSchema\u7684\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\uFF0C\u907F\u514D\u540E\u7EED\u51FA\u73B0\u6570\u636E\u5F02\u5E38\u3002");
56730
56799
  }
56731
56800
  if (jsonKey && jsonKey.indexOf('-') > -1) {
56732
- antd__WEBPACK_IMPORTED_MODULE_9__["default"].warning(jsonKey + "\u542B\u7279\u6B8A\u5B57\u7B26\uFF08\u2018-\u2019\uFF09\uFF0C\u4F1A\u5F71\u54CD\u540E\u7EED\u6570\u636E\u83B7\u53D6\u548C\u66F4\u65B0\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\u6570\u503C\u3002");
56801
+ antd__WEBPACK_IMPORTED_MODULE_10__["default"].warning(jsonKey + "\u542B\u7279\u6B8A\u5B57\u7B26\uFF08\u2018-\u2019\uFF09\uFF0C\u4F1A\u5F71\u54CD\u540E\u7EED\u6570\u636E\u83B7\u53D6\u548C\u66F4\u65B0\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\u6570\u503C\u3002");
56733
56802
  }
56734
56803
  return false;
56735
56804
  }
56736
56805
 
56737
56806
  /** 判断是否支持当前类型 */;
56738
56807
  _proto.isSupportCurType = function isSupportCurType(indexRoute, curType) {
56739
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(indexRoute);
56808
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(indexRoute);
56740
56809
  var parentJSONObj = this.getSchemaByIndexRoute(parentIndexRoute);
56741
56810
  var parentTypeList = this.SchemaTypeList[parentJSONObj.type];
56742
56811
  if (parentTypeList && parentTypeList.indexOf(curType) >= 0) {
@@ -56750,8 +56819,8 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56750
56819
  * 备注:关键字(childKey)自动生成,json数据对象(childJson)默认使用initInputData
56751
56820
  */;
56752
56821
  _proto.addChildJson = function addChildJson(curIndexRoute, ignoreOnChange) {
56753
- var curSchema = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema);
56754
- if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.isContainerSchema)(curSchema)) {
56822
+ var curSchema = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema);
56823
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.isContainerSchema)(curSchema)) {
56755
56824
  var childKey = this.getNewJsonKeyIndex(curSchema);
56756
56825
  curSchema.propertyOrder.push(childKey);
56757
56826
  curSchema.properties[childKey] = initInputData;
@@ -56759,21 +56828,23 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56759
56828
  this.jsonSchemaChange(ignoreOnChange);
56760
56829
  } else {
56761
56830
  // 注:非数组和对象类型字段不允许插入子元素
56762
- antd__WEBPACK_IMPORTED_MODULE_9__["default"].warning('非对象类型字段不允许插入子元素');
56831
+ antd__WEBPACK_IMPORTED_MODULE_10__["default"].warning('非对象类型字段不允许插入子元素');
56763
56832
  }
56764
56833
  }
56765
56834
 
56766
56835
  /** 根据索引路径值(indexRoute)更新对应的json数据对象
56767
56836
  * 备注:主要用于变更对应的type属性值
56768
56837
  * */;
56769
- _proto.changeType = function changeType(curIndexRoute, jsonKey, newSchemaData, ignoreOnChange) {
56770
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(curIndexRoute);
56771
- var parentSchemaData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56838
+ _proto.changeType = function changeType(curIndexRoute, jsonKey, newSchemaData, targetJsonSchema, ignoreOnChange) {
56839
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(curIndexRoute);
56840
+ var parentSchemaData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56841
+ // 保留已有的配置数据()
56842
+ var curNewSchemaData = Object.assign({}, newSchemaData, (0,lodash__WEBPACK_IMPORTED_MODULE_6__.pick)(targetJsonSchema, ['title', 'description', 'isConditionProp', 'showKey', 'showCodeViewBtn', 'onShow']));
56772
56843
  if (parentSchemaData.properties && parentSchemaData.properties[jsonKey]) {
56773
- parentSchemaData.properties[jsonKey] = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(newSchemaData);
56844
+ parentSchemaData.properties[jsonKey] = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(curNewSchemaData);
56774
56845
  } else if (parentSchemaData[jsonKey]) {
56775
56846
  // 支持Array/items 类型切换
56776
- parentSchemaData[jsonKey] = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(newSchemaData);
56847
+ parentSchemaData[jsonKey] = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(curNewSchemaData);
56777
56848
  }
56778
56849
 
56779
56850
  // 触发onChange事件
@@ -56784,8 +56855,8 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56784
56855
  * 备注:用于覆盖整个json对象
56785
56856
  * */;
56786
56857
  _proto.updateSchemaData = function updateSchemaData(curIndexRoute, newSchemaData, ignoreOnChange) {
56787
- var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema);
56788
- Object.assign(curJSONObj, (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(newSchemaData));
56858
+ var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema);
56859
+ Object.assign(curJSONObj, (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(newSchemaData));
56789
56860
  // 触发onChange事件
56790
56861
  this.jsonSchemaChange(ignoreOnChange);
56791
56862
  }
@@ -56794,9 +56865,9 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56794
56865
  * 备注:用于编辑对应的属性值(type、title、description、placeholder、isRequired、default、readOnly)
56795
56866
  * */;
56796
56867
  _proto.editSchemaData = function editSchemaData(curIndexRoute, jsonKey, newSchemaData, ignoreOnChange) {
56797
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(curIndexRoute);
56798
- var parentSchemaObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56799
- parentSchemaObj.properties[jsonKey] = (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(parentSchemaObj.properties[jsonKey]), newSchemaData);
56868
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(curIndexRoute);
56869
+ var parentSchemaObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56870
+ parentSchemaObj.properties[jsonKey] = (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(parentSchemaObj.properties[jsonKey]), newSchemaData);
56800
56871
  // 触发onChange事件
56801
56872
  this.jsonSchemaChange(ignoreOnChange);
56802
56873
  }
@@ -56804,7 +56875,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56804
56875
  * 备注:仅用于修改jsonKey值
56805
56876
  * */;
56806
56877
  _proto.editJsonKey = function editJsonKey(curIndexRoute, newJsonKey, ignoreOnChange) {
56807
- var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema, true); // 最后参数true用于避免数据关联
56878
+ var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(curIndexRoute, this.jsonSchema, true); // 最后参数true用于避免数据关联
56808
56879
  // 先插入对象值
56809
56880
  this.insertJsonData(curIndexRoute, newJsonKey, curJSONObj, '', true);
56810
56881
  // 再删除原有的json数据对象
@@ -56818,9 +56889,9 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56818
56889
  * */;
56819
56890
  _proto.addNextJsonData = function addNextJsonData(curIndexRoute) {
56820
56891
  // 1.获取当前元素的父元素路径值和最后一个路径值,以便定位插入的位置
56821
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(curIndexRoute);
56892
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(curIndexRoute);
56822
56893
  // 2.生成新的jsonKey值
56823
- var parentJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56894
+ var parentJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56824
56895
  /** 如果没有设置jsonKey,则自动生成一个新的jsonKey */
56825
56896
  var newJsonKey = this.getNewJsonKeyIndex(parentJSONObj);
56826
56897
  this.insertJsonData(curIndexRoute, newJsonKey, initInputData); // 默认新增input类型字段
@@ -56831,11 +56902,11 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56831
56902
  * */;
56832
56903
  _proto.insertJsonData = function insertJsonData(curIndexRoute, jsonKey, curJSONObj, position, ignoreOnChange) {
56833
56904
  // 1.获取当前元素的父元素路径值和最后一个路径值,以便定位插入的位置
56834
- var parentIndexRoute_CurIndex = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute_CurIndex)(curIndexRoute);
56905
+ var parentIndexRoute_CurIndex = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute_CurIndex)(curIndexRoute);
56835
56906
  var parentIndexRoute = parentIndexRoute_CurIndex[0];
56836
56907
  var curIndex = parentIndexRoute_CurIndex[1];
56837
56908
  // 2.获取父级元素
56838
- var parentJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56909
+ var parentJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56839
56910
  // 3.插入新增的对象数据
56840
56911
  parentJSONObj.properties[jsonKey] = curJSONObj;
56841
56912
  // 4.在propertyOrder的对应位置插入newJsonKey【有序插入newJsonKey】
@@ -56852,8 +56923,8 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56852
56923
  /** 根据索引路径值(indexRoute)和关键字(childKey)删除对应的json数据对象 */;
56853
56924
  _proto.deleteJsonByIndex_CurKey = function deleteJsonByIndex_CurKey(indexRoute, curKey, ignoreOnChange) {
56854
56925
  // 1.获取当前元素的父元素路径值
56855
- var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute)(indexRoute);
56856
- var parentJsonObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56926
+ var parentIndexRoute = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute)(indexRoute);
56927
+ var parentJsonObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56857
56928
  // 2.根据curKey删除在properties中删除对应的字段对象
56858
56929
  delete parentJsonObj.properties[curKey];
56859
56930
  // 3.删除propertyOrder中对应的curKey
@@ -56866,10 +56937,10 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56866
56937
  /** 根据索引路径值(indexRoute)删除对应的json数据对象 */;
56867
56938
  _proto.deleteJsonByIndex = function deleteJsonByIndex(indexRoute, ignoreOnChange) {
56868
56939
  // 1.获取当前元素的父元素路径值和最后一个路径值,以便定位插入的位置
56869
- var parentIndexRoute_CurIndex = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getParentIndexRoute_CurIndex)(indexRoute);
56940
+ var parentIndexRoute_CurIndex = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getParentIndexRoute_CurIndex)(indexRoute);
56870
56941
  var parentIndexRoute = parentIndexRoute_CurIndex[0];
56871
56942
  var curIndex = parentIndexRoute_CurIndex[1];
56872
- var parentJsonObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56943
+ var parentJsonObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(parentIndexRoute, this.jsonSchema);
56873
56944
  var curKey = parentJsonObj.propertyOrder[curIndex];
56874
56945
  // 2.根据curKey删除在properties中删除对应的字段对象
56875
56946
  delete parentJsonObj.properties[curKey];
@@ -56884,7 +56955,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56884
56955
  * */;
56885
56956
  _proto.updateEnumItem = function updateEnumItem(indexRoute, enumIndex, newEnumKey, newEnumText, ignoreOnChange) {
56886
56957
  // 1.获取当前元素的父元素
56887
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56958
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56888
56959
  if (itemJSONObj.enum && itemJSONObj.enumextra) {
56889
56960
  itemJSONObj.enum[enumIndex] = newEnumKey;
56890
56961
  itemJSONObj.enumextra[enumIndex] = newEnumText;
@@ -56898,10 +56969,10 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56898
56969
  _proto.isExitEnumKey = function isExitEnumKey(indexRoute, enumIndex, newEnumKey) {
56899
56970
  var isExit = false;
56900
56971
  // 1.获取当前元素的父元素
56901
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56972
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56902
56973
  if (itemJSONObj.enum) {
56903
56974
  // 2.获取对应的key清单
56904
- var enumKeys = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(itemJSONObj.enum);
56975
+ var enumKeys = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(itemJSONObj.enum);
56905
56976
  if (enumIndex >= 0) {
56906
56977
  // 3.剔除原有位置的key值
56907
56978
  enumKeys.splice(enumIndex, 1);
@@ -56911,9 +56982,9 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56911
56982
  isExit = true;
56912
56983
  }
56913
56984
  }
56914
- if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList.indexOf(newEnumKey) >= 0) {
56985
+ if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList.indexOf(newEnumKey) >= 0) {
56915
56986
  // 表示当前jsonKey是JSONSchema的关键字
56916
- antd__WEBPACK_IMPORTED_MODULE_9__["default"].warning(newEnumKey + "\u662FJSONSchema\u7684\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\uFF0C\u907F\u514D\u540E\u7EED\u51FA\u73B0\u6570\u636E\u5F02\u5E38\u3002");
56987
+ antd__WEBPACK_IMPORTED_MODULE_10__["default"].warning(newEnumKey + "\u662FJSONSchema\u7684\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\uFF0C\u907F\u514D\u540E\u7EED\u51FA\u73B0\u6570\u636E\u5F02\u5E38\u3002");
56917
56988
  }
56918
56989
  return isExit;
56919
56990
  }
@@ -56922,7 +56993,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56922
56993
  * */;
56923
56994
  _proto.updateEnumKey = function updateEnumKey(indexRoute, enumIndex, newEnumKey, ignoreOnChange) {
56924
56995
  // 1.获取当前元素的父元素
56925
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56996
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56926
56997
  if (itemJSONObj.enum) {
56927
56998
  // 2.更新对应的key
56928
56999
  itemJSONObj.enum[enumIndex] = newEnumKey;
@@ -56935,7 +57006,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56935
57006
  * */;
56936
57007
  _proto.updateEnumText = function updateEnumText(indexRoute, enumIndex, newEnumText, ignoreOnChange) {
56937
57008
  // 1.获取当前元素的父元素
56938
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57009
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56939
57010
  if (itemJSONObj.enumextra) {
56940
57011
  // 2.更新对应的text
56941
57012
  itemJSONObj.enumextra[enumIndex] = newEnumText;
@@ -56947,7 +57018,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56947
57018
  /** 根据索引路径值(indexRoute)和枚举值所在位置(enumIndex)删除对应的enum枚举元素
56948
57019
  * */;
56949
57020
  _proto.deleteEnumItem = function deleteEnumItem(indexRoute, enumIndex, ignoreOnChange) {
56950
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57021
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56951
57022
  if (itemJSONObj.enum && itemJSONObj.enumextra) {
56952
57023
  itemJSONObj.enum.splice(enumIndex, 1);
56953
57024
  itemJSONObj.enumextra.splice(enumIndex, 1);
@@ -56960,7 +57031,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56960
57031
  * position: 设置插入指定位置的前面还是后面,默认插入指定位置的后面
56961
57032
  * */;
56962
57033
  _proto.insertEnumItem = function insertEnumItem(indexRoute, enumIndex, newEnumKey, newEnumText, position, ignoreOnChange) {
56963
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57034
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56964
57035
  if (itemJSONObj.enum && itemJSONObj.enumextra) {
56965
57036
  var positionIndex = position === 'before' ? Number(enumIndex) : Number(enumIndex) + 1;
56966
57037
  // 在enum中的指定位置插入新的key值(newEnumKey)
@@ -56989,7 +57060,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
56989
57060
  /** 根据索引路径值(indexRoute)和枚举值所在位置(enumIndex)新增enum枚举值
56990
57061
  * */;
56991
57062
  _proto.addEnumItem = function addEnumItem(indexRoute, enumIndex) {
56992
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57063
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
56993
57064
  if (itemJSONObj.enum) {
56994
57065
  var newEnumKey = this.getNewEnumIndex(itemJSONObj.enum);
56995
57066
  var newEnumText = "\u9009\u9879" + (this.curJsonKeyIndex - 1);
@@ -57000,7 +57071,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57000
57071
  /** 根据索引路径值(indexRoute)和枚举值所在位置(enumIndex)复制对应的enum枚举值
57001
57072
  * */;
57002
57073
  _proto.copyEnumItem = function copyEnumItem(indexRoute, enumIndex) {
57003
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57074
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57004
57075
  if (itemJSONObj.enum) {
57005
57076
  var curEnumKey = itemJSONObj.enum[enumIndex];
57006
57077
  var curEnumText = itemJSONObj.enumextra[enumIndex];
@@ -57013,7 +57084,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57013
57084
  // 更新选项
57014
57085
  ;
57015
57086
  _proto.updateOptionItem = function updateOptionItem(indexRoute, optionIndex, optionLabel, optionValue, ignoreOnChange) {
57016
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57087
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57017
57088
  if (itemJSONObj.options && itemJSONObj.options[optionIndex]) {
57018
57089
  itemJSONObj.options[optionIndex].label = optionLabel;
57019
57090
  itemJSONObj.options[optionIndex].value = optionValue;
@@ -57026,7 +57097,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57026
57097
  ;
57027
57098
  _proto.isExitOptionLabel = function isExitOptionLabel(indexRoute, optionLabel) {
57028
57099
  var isExit = false;
57029
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57100
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57030
57101
  if (itemJSONObj.options) {
57031
57102
  if (itemJSONObj.options.find(function (item) {
57032
57103
  return item.label === optionLabel;
@@ -57035,9 +57106,9 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57035
57106
  isExit = true;
57036
57107
  }
57037
57108
  }
57038
- if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.KeyWordList.indexOf(optionLabel) >= 0) {
57109
+ if (_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList && _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.KeyWordList.indexOf(optionLabel) >= 0) {
57039
57110
  // 表示当前jsonKey是JSONSchema的关键字
57040
- antd__WEBPACK_IMPORTED_MODULE_9__["default"].warning(optionLabel + "\u662FJSONSchema\u7684\u4FDD\u7559\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\u540D\u79F0\u3002");
57111
+ antd__WEBPACK_IMPORTED_MODULE_10__["default"].warning(optionLabel + "\u662FJSONSchema\u7684\u4FDD\u7559\u5173\u952E\u5B57\uFF0C\u5EFA\u8BAE\u60A8\u6362\u4E00\u4E2A\u540D\u79F0\u3002");
57041
57112
  }
57042
57113
  return isExit;
57043
57114
  }
@@ -57045,7 +57116,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57045
57116
  // 更新选项Label
57046
57117
  ;
57047
57118
  _proto.updateOptionLabel = function updateOptionLabel(indexRoute, optionIndex, optionLabel, ignoreOnChange) {
57048
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57119
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57049
57120
  if (itemJSONObj.options && itemJSONObj.options[optionIndex]) {
57050
57121
  itemJSONObj.options[optionIndex].label = optionLabel;
57051
57122
  }
@@ -57055,7 +57126,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57055
57126
  // 更新选项数值
57056
57127
  ;
57057
57128
  _proto.updateOptionValue = function updateOptionValue(indexRoute, optionIndex, optionValue, ignoreOnChange) {
57058
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57129
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57059
57130
  if (itemJSONObj.options && itemJSONObj.options[optionIndex]) {
57060
57131
  itemJSONObj.options[optionIndex].value = optionValue;
57061
57132
  }
@@ -57065,7 +57136,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57065
57136
  // 删除选项
57066
57137
  ;
57067
57138
  _proto.deleteOptionItem = function deleteOptionItem(indexRoute, optionIndex, ignoreOnChange) {
57068
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57139
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57069
57140
  if (itemJSONObj.options && itemJSONObj.options[optionIndex]) {
57070
57141
  itemJSONObj.options.splice(optionIndex, 1);
57071
57142
  }
@@ -57075,7 +57146,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57075
57146
  // 在指定位置插入选项
57076
57147
  ;
57077
57148
  _proto.insertOption = function insertOption(indexRoute, optionIndex, newOptionLabel, newOptionValue, position, ignoreOnChange) {
57078
- var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57149
+ var curJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57079
57150
  if (curJSONObj.options) {
57080
57151
  var positionIndex = position === 'before' ? Number(optionIndex) : Number(optionIndex) + 1;
57081
57152
  // 在options指定位置插入新的选项
@@ -57099,7 +57170,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57099
57170
  // 添加选项
57100
57171
  ;
57101
57172
  _proto.addOptionItem = function addOptionItem(indexRoute, optionIndex) {
57102
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57173
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57103
57174
  if (itemJSONObj.options) {
57104
57175
  var optionValue = this.getNewOptionValue(itemJSONObj.options);
57105
57176
  var optionLabel = "\u9009\u9879" + (itemJSONObj.options.length + 1);
@@ -57110,7 +57181,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57110
57181
  // 复制选项
57111
57182
  ;
57112
57183
  _proto.copyOptionItem = function copyOptionItem(indexRoute, optionIndex) {
57113
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57184
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, this.jsonSchema);
57114
57185
  if (itemJSONObj.options) {
57115
57186
  var curOption = itemJSONObj.options[optionIndex];
57116
57187
  var optionValue = this.getNewOptionValue(itemJSONObj.options);
@@ -57143,7 +57214,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57143
57214
  enumerable: true,
57144
57215
  writable: true,
57145
57216
  initializer: function initializer() {
57146
- return $data_TypeList__WEBPACK_IMPORTED_MODULE_7__.TypeList;
57217
+ return $data_TypeList__WEBPACK_IMPORTED_MODULE_8__.TypeList;
57147
57218
  }
57148
57219
  }), _descriptor4 = (0,_babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_3__["default"])(_class.prototype, "onChange", [mobx__WEBPACK_IMPORTED_MODULE_5__.observable], {
57149
57220
  configurable: true,
@@ -57159,7 +57230,7 @@ var JSONSchemaStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_5__.action.bound, _d
57159
57230
  initializer: function initializer() {
57160
57231
  var _this2 = this;
57161
57232
  return function (indexRoute) {
57162
- var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_8__.getSchemaByIndexRoute)(indexRoute, _this2.jsonSchema);
57233
+ var itemJSONObj = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_9__.getSchemaByIndexRoute)(indexRoute, _this2.jsonSchema);
57163
57234
  var curPropertyOrder = itemJSONObj.propertyOrder; // 待排序的key值数组
57164
57235
  var baseElemArr = []; // 基础类型:input、url
57165
57236
  var numberElemArr = []; // 数字类型:quantity、number
@@ -142262,6 +142333,238 @@ var initDynamicConfig = {
142262
142333
  showCodeViewBtn: false
142263
142334
  };
142264
142335
 
142336
+ /** dynamic-object: 动态对象,支持在json-editor 中动态添加属性。
142337
+ * 【字段属性说明】
142338
+ * title:字段项的label值
142339
+ * properties:存放所有的子字段数据内容
142340
+ * type:用于标识字段项的展示类型(input、date、data-time、url、textarea 等)
142341
+ * readOnly:字段项可设置是否可编辑
142342
+ * propertyOrder:按序存放所有子字段的key值(排序功能)
142343
+ * */
142344
+ var initDynamicObject = {
142345
+ type: 'dynamic-object',
142346
+ title: '动态配置',
142347
+ description: '',
142348
+ isContainer: false,
142349
+ properties: {
142350
+ type: {
142351
+ type: 'select',
142352
+ title: '数据来源',
142353
+ options: [{
142354
+ label: '模板直接设置',
142355
+ value: 'DevDefaults'
142356
+ }, {
142357
+ label: 'mp后台配置',
142358
+ value: 'ContentStaticConfig'
142359
+ }, {
142360
+ label: '内容Meta数据',
142361
+ value: 'Content'
142362
+ }, {
142363
+ label: '全局配置数据',
142364
+ value: 'RuntimeConst'
142365
+ }, {
142366
+ label: '资源中心配置',
142367
+ value: 'ResourceCenter'
142368
+ }],
142369
+ default: 'DevDefaults',
142370
+ isConditionProp: true,
142371
+ description: '目前支持的数据来源包括: 1)模版直接设置: 在模版配置直接生效,支持直接输入或图片上传。 2)mp后台配置: 选择mp后台配置后,属性会出现在mp后台中,支持属性描述的输入。 3)内容meta数据: 支持内容meta数据的获取,页面meta数据。 4)全局配置数据: 目前支持的全局配置包括:全局Tab配置及主题包配置。相关属性会挂载至:window.globalConst'
142372
+ },
142373
+ value: {
142374
+ title: '数据值',
142375
+ type: 'input',
142376
+ default: '',
142377
+ description: '',
142378
+ placeholder: '',
142379
+ onShow: 'type === "Content" || type === "RuntimeConst"'
142380
+ },
142381
+ description: {
142382
+ title: '自定义配置名称',
142383
+ type: 'input',
142384
+ default: '主题包配置',
142385
+ description: '',
142386
+ placeholder: '',
142387
+ onShow: 'type === "ContentStaticConfig" || type === "ResourceCenter"'
142388
+ },
142389
+ attrs: {
142390
+ type: 'array',
142391
+ title: '属性列表',
142392
+ description: 'Tab需要配置的属性',
142393
+ items: {
142394
+ type: 'object',
142395
+ title: '数组项',
142396
+ description: '',
142397
+ properties: {
142398
+ attr: {
142399
+ type: 'input',
142400
+ title: '属性Key',
142401
+ default: '',
142402
+ description: '',
142403
+ placeholder: ''
142404
+ },
142405
+ description: {
142406
+ title: '描述',
142407
+ type: 'input',
142408
+ default: '',
142409
+ description: '',
142410
+ placeholder: ''
142411
+ },
142412
+ value: {
142413
+ title: '数值',
142414
+ typeOn: "type === 'image' ? 'input-image' : type === 'number' ? 'number' : 'input'",
142415
+ default: '',
142416
+ description: '',
142417
+ placeholder: ''
142418
+ },
142419
+ type: {
142420
+ type: 'select',
142421
+ title: '属性类型',
142422
+ options: [{
142423
+ label: '图片类型',
142424
+ value: 'image'
142425
+ }, {
142426
+ label: '字符串',
142427
+ value: 'string'
142428
+ }, {
142429
+ label: '数字',
142430
+ value: 'number'
142431
+ }],
142432
+ default: 'string',
142433
+ description: ''
142434
+ }
142435
+ },
142436
+ propertyOrder: ['attr', 'description', 'type', 'value']
142437
+ },
142438
+ 'minimum-child': 1,
142439
+ showCodeViewBtn: false,
142440
+ onShow: 'type === "DevDefaults" || type === "ContentStaticConfig" || type === "ResourceCenter"'
142441
+ }
142442
+ },
142443
+ propertyOrder: ['type', 'description', 'attrs', 'value'],
142444
+ showCodeViewBtn: false,
142445
+ showKey: true
142446
+ };
142447
+
142448
+ /** dynamic-array: 动态数组,其对象数值支持在json-editor 中动态添加子属性。
142449
+ * 【字段属性说明】
142450
+ * title:字段项的label值
142451
+ * properties:存放所有的子字段数据内容
142452
+ * type:用于标识字段项的展示类型(input、date、data-time、url、textarea 等)
142453
+ * readOnly:字段项可设置是否可编辑
142454
+ * propertyOrder:按序存放所有子字段的key值(排序功能)
142455
+ * */
142456
+ var initDynamicArray = {
142457
+ type: 'dynamic-array',
142458
+ title: '动态数组',
142459
+ description: '',
142460
+ isContainer: false,
142461
+ properties: {
142462
+ type: {
142463
+ type: 'select',
142464
+ title: '数据来源',
142465
+ options: [{
142466
+ label: '模板直接设置',
142467
+ value: 'DevDefaults'
142468
+ }, {
142469
+ label: 'mp后台配置',
142470
+ value: 'ContentStaticConfig'
142471
+ }, {
142472
+ label: '资源中心配置',
142473
+ value: 'ResourceCenter'
142474
+ }],
142475
+ default: 'DevDefaults',
142476
+ isConditionProp: true,
142477
+ description: '目前支持的数据来源包括: 1)模版直接设置:在模版配置直接生效,支持直接输入或图片上传。 2)mp后台配置:选择mp后台配置后,属性会出现在mp后台中,支持属性描述的输入。 3)内容meta数据:支持内容meta数据的获取,页面meta数据。 4)全局配置数据:目前支持的全局配置包括:全局Tab配置及主题包配置。相关属性会挂载至:window.globalConst'
142478
+ },
142479
+ description: {
142480
+ title: '自定义配置名称',
142481
+ type: 'input',
142482
+ default: 'Tab全局配置',
142483
+ description: '',
142484
+ placeholder: '',
142485
+ onShow: 'type === "ContentStaticConfig" || type === "ResourceCenter"'
142486
+ },
142487
+ tabNums: {
142488
+ title: 'Tab配置数',
142489
+ type: 'number',
142490
+ default: 1,
142491
+ description: '需要配置的Tab数量',
142492
+ placeholder: '',
142493
+ onShow: "type === 'ContentStaticConfig' || type === 'ResourceCenter'"
142494
+ },
142495
+ attrs: {
142496
+ type: 'array',
142497
+ title: 'Tab属性',
142498
+ description: 'Tab需要配置的属性',
142499
+ items: {
142500
+ type: 'object',
142501
+ title: '数组项',
142502
+ description: '',
142503
+ properties: {
142504
+ attr: {
142505
+ type: 'input',
142506
+ title: '属性Key',
142507
+ default: '',
142508
+ description: '',
142509
+ placeholder: ''
142510
+ },
142511
+ description: {
142512
+ title: '描述',
142513
+ type: 'input',
142514
+ default: '',
142515
+ description: '',
142516
+ placeholder: ''
142517
+ }
142518
+ },
142519
+ propertyOrder: ['attr', 'description']
142520
+ },
142521
+ 'minimum-child': 1,
142522
+ onShow: "type === 'ContentStaticConfig' || type === 'ResourceCenter'",
142523
+ showCodeViewBtn: false
142524
+ },
142525
+ value: {
142526
+ type: 'array',
142527
+ title: 'Tab配置',
142528
+ description: '',
142529
+ items: {
142530
+ type: 'object',
142531
+ title: '数组项',
142532
+ description: '',
142533
+ properties: {
142534
+ title: {
142535
+ type: 'input',
142536
+ title: '名称',
142537
+ default: '',
142538
+ description: '',
142539
+ placeholder: ''
142540
+ },
142541
+ id: {
142542
+ title: 'id',
142543
+ type: 'input',
142544
+ default: '',
142545
+ description: '',
142546
+ placeholder: ''
142547
+ },
142548
+ value: {
142549
+ title: '数值',
142550
+ type: 'input',
142551
+ default: '',
142552
+ description: '',
142553
+ placeholder: ''
142554
+ }
142555
+ },
142556
+ propertyOrder: ['title', 'value', 'id']
142557
+ },
142558
+ 'minimum-child': 1,
142559
+ onShow: "type === 'DevDefaults'",
142560
+ showCodeViewBtn: false
142561
+ }
142562
+ },
142563
+ propertyOrder: ['type', 'value', 'description', 'tabNums', 'attrs'],
142564
+ showCodeViewBtn: false,
142565
+ showKey: true
142566
+ };
142567
+
142265
142568
  var initSohuSourceData = {
142266
142569
  type: 'sohu-source',
142267
142570
  title: '组件动态数据',
@@ -143106,6 +143409,8 @@ var TypeDataList = {
143106
143409
  datasource: initDataSourceData,
143107
143410
  event: initEventData,
143108
143411
  'dynamic-config': initDynamicConfig,
143412
+ 'dynamic-object': initDynamicObject,
143413
+ 'dynamic-array': initDynamicArray,
143109
143414
  'sohu-source': initSohuSourceData,
143110
143415
  'sohu-event': initSohuEventConfig,
143111
143416
  'sohu-ad': initAdConfigSchema
@@ -147328,7 +147633,7 @@ var valExpectType = (_valExpectType = {
147328
147633
  quantity: 'object',
147329
147634
  radio: 'string',
147330
147635
  select: 'array'
147331
- }, _valExpectType["select"] = 'string', _valExpectType.textarea = 'string', _valExpectType['text-editor'] = 'string', _valExpectType.time = 'string', _valExpectType.url = 'string', _valExpectType['dynamic-config'] = 'object', _valExpectType['sohu-source'] = 'object', _valExpectType['sohu-event'] = 'object', _valExpectType);
147636
+ }, _valExpectType["select"] = 'string', _valExpectType.textarea = 'string', _valExpectType['text-editor'] = 'string', _valExpectType.time = 'string', _valExpectType.url = 'string', _valExpectType['dynamic-config'] = 'object', _valExpectType['dynamic-object'] = 'object', _valExpectType['dynamic-array'] = 'object', _valExpectType['sohu-source'] = 'object', _valExpectType['sohu-event'] = 'object', _valExpectType);
147332
147637
 
147333
147638
  // 根据type获取对应元素的期望类型值
147334
147639
  function getExpectType$1(type) {