@wibetter/json-editor 5.1.11 → 5.1.13

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.11
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Thu Jan 16 2025 17:05:08 GMT+0800 (中国标准时间)
5
+ * build time: Mon Jan 20 2025 16:58:20 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.11
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Thu Jan 16 2025 17:05:08 GMT+0800 (中国标准时间)
5
+ * build time: Mon Jan 20 2025 16:58:20 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -1678,7 +1678,7 @@ var CascaderSchema = /*#__PURE__*/function (_React$PureComponent) {
1678
1678
  },
1679
1679
  options: options,
1680
1680
  onChange: this.handleValueChange,
1681
- defaultValue: curJsonData || targetJsonSchema.default,
1681
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
1682
1682
  disabled: targetJsonSchema.readOnly,
1683
1683
  allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true,
1684
1684
  multiple: (_targetJsonSchema$mul = targetJsonSchema.multiple) != null ? _targetJsonSchema$mul : false
@@ -1820,7 +1820,7 @@ var CheckboxSchema = /*#__PURE__*/function (_React$PureComponent) {
1820
1820
  display: 'inline-block'
1821
1821
  },
1822
1822
  onChange: this.handleValueChange,
1823
- defaultValue: curJsonData || targetJsonSchema.default,
1823
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
1824
1824
  disabled: targetJsonSchema.readOnly
1825
1825
  }, options && options.length > 0 && options.map(function (item, optionIndex) {
1826
1826
  var optionLabel = item.label || item.name;
@@ -2185,7 +2185,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
2185
2185
  var SketchPickerContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_color__WEBPACK_IMPORTED_MODULE_6__.SketchPicker, {
2186
2186
  className: "color-sketch-picker",
2187
2187
  key: nodeKey + "-SketchPicker",
2188
- color: curJsonData || targetJsonSchema.default,
2188
+ color: curJsonData != null ? curJsonData : targetJsonSchema.default,
2189
2189
  onChange: this.handleValueChange
2190
2190
  });
2191
2191
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -2226,7 +2226,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
2226
2226
  }, readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
2227
2227
  className: "ant-input color-btn",
2228
2228
  style: {
2229
- backgroundColor: curJsonData || targetJsonSchema.default
2229
+ backgroundColor: curJsonData != null ? curJsonData : targetJsonSchema.default
2230
2230
  }
2231
2231
  }), !readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.Popover, {
2232
2232
  content: SketchPickerContent,
@@ -2235,7 +2235,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
2235
2235
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
2236
2236
  className: "ant-input color-btn",
2237
2237
  style: {
2238
- backgroundColor: curJsonData || targetJsonSchema.default
2238
+ backgroundColor: curJsonData != null ? curJsonData : targetJsonSchema.default
2239
2239
  }
2240
2240
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
2241
2241
  title: "\u70B9\u51FB\u79FB\u9664\u5F53\u524D\u989C\u8272\u503C",
@@ -2599,7 +2599,7 @@ var DateTimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
2599
2599
  var timeFormat = DateTypeList[curType] || DateTypeList[0];
2600
2600
  // 从jsonData中获取对应的数值
2601
2601
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
2602
- var defaultTime = curJsonData || targetJsonSchema.default;
2602
+ var defaultTime = curJsonData != null ? curJsonData : targetJsonSchema.default;
2603
2603
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_10__.isNeedTwoColWarpStyle)(curType); // 是否需要设置成两栏布局
2604
2604
 
2605
2605
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_10__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.style)) : {};
@@ -2863,7 +2863,8 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
2863
2863
  }
2864
2864
  }
2865
2865
  if (currentJsonKey === 'range') {
2866
- if (curJsonData.valueType === 'select' && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
2866
+ if (curJsonData.valueType === 'select' && (!currentSchemaData.options || currentSchemaData.options.length === 0) && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
2867
+ // 如果 range 没有可选项则从 value 中获取可选项
2867
2868
  var _valueSchema = targetJsonSchema.properties['value'];
2868
2869
  if (['select', 'radio', 'checkboxes'].includes(_valueSchema.type) && _valueSchema.options && _valueSchema.options.length > 0) {
2869
2870
  // range 和 value 复用 options
@@ -3848,7 +3849,7 @@ var InputFormSchema = /*#__PURE__*/function (_React$PureComponent) {
3848
3849
  disabled: readOnly,
3849
3850
  required: isRequired,
3850
3851
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
3851
- defaultValue: curJsonData || targetJsonSchema.default,
3852
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
3852
3853
  onPressEnter: this.handleValueChange,
3853
3854
  onBlur: this.handleValueChange
3854
3855
  }))));
@@ -5573,7 +5574,7 @@ var RadioSchema = /*#__PURE__*/function (_React$PureComponent) {
5573
5574
  display: 'inline-block'
5574
5575
  },
5575
5576
  onChange: this.handleValueChange,
5576
- defaultValue: curJsonData || targetJsonSchema.default,
5577
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
5577
5578
  disabled: targetJsonSchema.readOnly
5578
5579
  }, options && options.length > 0 && options.map(function (item, optionIndex) {
5579
5580
  var optionLabel = item.label || item.name;
@@ -5934,7 +5935,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
5934
5935
  }
5935
5936
  };
5936
5937
  _proto.render = function render() {
5937
- var _targetJsonSchema$sho, _targetJsonSchema$def, _targetJsonSchema$all;
5938
+ var _curJsonData, _targetJsonSchema$sho, _targetJsonSchema$def, _targetJsonSchema$all;
5938
5939
  var _this$props2 = this.props,
5939
5940
  schemaStore = _this$props2.schemaStore,
5940
5941
  jsonStore = _this$props2.jsonStore;
@@ -5967,7 +5968,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
5967
5968
  });
5968
5969
  curJsonData = valueArray;
5969
5970
  }
5970
- var curValue = curJsonData || targetJsonSchema.default;
5971
+ var curValue = (_curJsonData = curJsonData) != null ? _curJsonData : targetJsonSchema.default;
5971
5972
  if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(curValue)) {
5972
5973
  curValue = JSON.stringify(curValue);
5973
5974
  }
@@ -6635,7 +6636,7 @@ var TextAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
6635
6636
  disabled: readOnly,
6636
6637
  required: isRequired,
6637
6638
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
6638
- defaultValue: curJsonData || targetJsonSchema.default,
6639
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
6639
6640
  onPressEnter: this.handleValueChange,
6640
6641
  onBlur: this.handleValueChange
6641
6642
  }))));
@@ -6978,7 +6979,7 @@ var TimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
6978
6979
  targetJsonSchema = _this$props3.targetJsonSchema;
6979
6980
  // 从jsonData中获取对应的数值
6980
6981
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
6981
- var defaultTime = curJsonData || targetJsonSchema.default;
6982
+ var defaultTime = curJsonData != null ? curJsonData : targetJsonSchema.default;
6982
6983
  var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
6983
6984
  var isRequired = targetJsonSchema.isRequired || false; // 是否必填(默认非必填)
6984
6985
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_10__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
@@ -7276,7 +7277,7 @@ var URLFormSchema = /*#__PURE__*/function (_React$PureComponent) {
7276
7277
  disabled: readOnly,
7277
7278
  required: isRequired,
7278
7279
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
7279
- defaultValue: curJsonData || targetJsonSchema.default,
7280
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
7280
7281
  onPressEnter: this.handleValueChange,
7281
7282
  onBlur: this.handleValueChange
7282
7283
  }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibetter/json-editor",
3
- "version": "5.1.11",
3
+ "version": "5.1.13",
4
4
  "description": "JSON数据可视化/JSONEditor, 可视化界面编辑json数据",
5
5
  "keywords": [
6
6
  "json",
package/sdk/index.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.11
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Thu Jan 16 2025 17:05:40 GMT+0800 (中国标准时间)
5
+ * build time: Mon Jan 20 2025 16:57:33 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-editor v5.1.11
2
+ * @wibetter/json-editor v5.1.13
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Thu Jan 16 2025 17:05:40 GMT+0800 (中国标准时间)
5
+ * build time: Mon Jan 20 2025 16:57:33 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -68114,7 +68114,7 @@ var CascaderSchema = /*#__PURE__*/function (_React$PureComponent) {
68114
68114
  },
68115
68115
  options: options,
68116
68116
  onChange: this.handleValueChange,
68117
- defaultValue: curJsonData || targetJsonSchema.default,
68117
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
68118
68118
  disabled: targetJsonSchema.readOnly,
68119
68119
  allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true,
68120
68120
  multiple: (_targetJsonSchema$mul = targetJsonSchema.multiple) != null ? _targetJsonSchema$mul : false
@@ -68251,7 +68251,7 @@ var CheckboxSchema = /*#__PURE__*/function (_React$PureComponent) {
68251
68251
  display: 'inline-block'
68252
68252
  },
68253
68253
  onChange: this.handleValueChange,
68254
- defaultValue: curJsonData || targetJsonSchema.default,
68254
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
68255
68255
  disabled: targetJsonSchema.readOnly
68256
68256
  }, options && options.length > 0 && options.map(function (item, optionIndex) {
68257
68257
  var optionLabel = item.label || item.name;
@@ -68605,7 +68605,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68605
68605
  var SketchPickerContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_color__WEBPACK_IMPORTED_MODULE_3__.SketchPicker, {
68606
68606
  className: "color-sketch-picker",
68607
68607
  key: nodeKey + "-SketchPicker",
68608
- color: curJsonData || targetJsonSchema.default,
68608
+ color: curJsonData != null ? curJsonData : targetJsonSchema.default,
68609
68609
  onChange: this.handleValueChange
68610
68610
  });
68611
68611
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -68646,7 +68646,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68646
68646
  }, readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
68647
68647
  className: "ant-input color-btn",
68648
68648
  style: {
68649
- backgroundColor: curJsonData || targetJsonSchema.default
68649
+ backgroundColor: curJsonData != null ? curJsonData : targetJsonSchema.default
68650
68650
  }
68651
68651
  }), !readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
68652
68652
  content: SketchPickerContent,
@@ -68655,7 +68655,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68655
68655
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
68656
68656
  className: "ant-input color-btn",
68657
68657
  style: {
68658
- backgroundColor: curJsonData || targetJsonSchema.default
68658
+ backgroundColor: curJsonData != null ? curJsonData : targetJsonSchema.default
68659
68659
  }
68660
68660
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
68661
68661
  title: "\u70B9\u51FB\u79FB\u9664\u5F53\u524D\u989C\u8272\u503C",
@@ -69011,7 +69011,7 @@ var DateTimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
69011
69011
  var timeFormat = DateTypeList[curType] || DateTypeList[0];
69012
69012
  // 从jsonData中获取对应的数值
69013
69013
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
69014
- var defaultTime = curJsonData || targetJsonSchema.default;
69014
+ var defaultTime = curJsonData != null ? curJsonData : targetJsonSchema.default;
69015
69015
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isNeedTwoColWarpStyle)(curType); // 是否需要设置成两栏布局
69016
69016
 
69017
69017
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
@@ -69271,7 +69271,8 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
69271
69271
  }
69272
69272
  }
69273
69273
  if (currentJsonKey === 'range') {
69274
- if (curJsonData.valueType === 'select' && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
69274
+ if (curJsonData.valueType === 'select' && (!currentSchemaData.options || currentSchemaData.options.length === 0) && (curJsonData.type === 'ContentStaticConfig' || curJsonData.type === 'ResourceCenter')) {
69275
+ // 如果 range 没有可选项则从 value 中获取可选项
69275
69276
  var _valueSchema = targetJsonSchema.properties['value'];
69276
69277
  if (['select', 'radio', 'checkboxes'].includes(_valueSchema.type) && _valueSchema.options && _valueSchema.options.length > 0) {
69277
69278
  // range 和 value 复用 options
@@ -70236,7 +70237,7 @@ var InputFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70236
70237
  disabled: readOnly,
70237
70238
  required: isRequired,
70238
70239
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
70239
- defaultValue: curJsonData || targetJsonSchema.default,
70240
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
70240
70241
  onPressEnter: this.handleValueChange,
70241
70242
  onBlur: this.handleValueChange
70242
70243
  }))));
@@ -71927,7 +71928,7 @@ var RadioSchema = /*#__PURE__*/function (_React$PureComponent) {
71927
71928
  display: 'inline-block'
71928
71929
  },
71929
71930
  onChange: this.handleValueChange,
71930
- defaultValue: curJsonData || targetJsonSchema.default,
71931
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
71931
71932
  disabled: targetJsonSchema.readOnly
71932
71933
  }, options && options.length > 0 && options.map(function (item, optionIndex) {
71933
71934
  var optionLabel = item.label || item.name;
@@ -72278,7 +72279,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72278
72279
  }
72279
72280
  };
72280
72281
  _proto.render = function render() {
72281
- var _targetJsonSchema$sho, _targetJsonSchema$def, _targetJsonSchema$all;
72282
+ var _curJsonData, _targetJsonSchema$sho, _targetJsonSchema$def, _targetJsonSchema$all;
72282
72283
  var _this$props2 = this.props,
72283
72284
  schemaStore = _this$props2.schemaStore,
72284
72285
  jsonStore = _this$props2.jsonStore;
@@ -72311,7 +72312,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72311
72312
  });
72312
72313
  curJsonData = valueArray;
72313
72314
  }
72314
- var curValue = curJsonData || targetJsonSchema.default;
72315
+ var curValue = (_curJsonData = curJsonData) != null ? _curJsonData : targetJsonSchema.default;
72315
72316
  if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(curValue)) {
72316
72317
  curValue = JSON.stringify(curValue);
72317
72318
  }
@@ -72966,7 +72967,7 @@ var TextAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
72966
72967
  disabled: readOnly,
72967
72968
  required: isRequired,
72968
72969
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
72969
- defaultValue: curJsonData || targetJsonSchema.default,
72970
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
72970
72971
  onPressEnter: this.handleValueChange,
72971
72972
  onBlur: this.handleValueChange
72972
72973
  }))));
@@ -73300,7 +73301,7 @@ var TimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73300
73301
  targetJsonSchema = _this$props3.targetJsonSchema;
73301
73302
  // 从jsonData中获取对应的数值
73302
73303
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
73303
- var defaultTime = curJsonData || targetJsonSchema.default;
73304
+ var defaultTime = curJsonData != null ? curJsonData : targetJsonSchema.default;
73304
73305
  var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
73305
73306
  var isRequired = targetJsonSchema.isRequired || false; // 是否必填(默认非必填)
73306
73307
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
@@ -73586,7 +73587,7 @@ var URLFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73586
73587
  disabled: readOnly,
73587
73588
  required: isRequired,
73588
73589
  placeholder: targetJsonSchema.placeholder || "\u8BF7\u8F93\u5165" + targetJsonSchema.title,
73589
- defaultValue: curJsonData || targetJsonSchema.default,
73590
+ defaultValue: curJsonData != null ? curJsonData : targetJsonSchema.default,
73590
73591
  onPressEnter: this.handleValueChange,
73591
73592
  onBlur: this.handleValueChange
73592
73593
  }))));
@@ -268487,7 +268488,7 @@ var initRadioData = {
268487
268488
  label: '选项c',
268488
268489
  value: 'c'
268489
268490
  }],
268490
- default: 'a',
268491
+ // default: 'a',
268491
268492
  description: ''
268492
268493
  };
268493
268494
 
@@ -268513,7 +268514,7 @@ var initSelectData = {
268513
268514
  label: '选项c',
268514
268515
  value: 'c'
268515
268516
  }],
268516
- default: 'a',
268517
+ // default: 'a',
268517
268518
  description: ''
268518
268519
  };
268519
268520
 
@@ -269590,9 +269591,15 @@ var initSohuSourceData = {
269590
269591
  type: 'select',
269591
269592
  title: '数据来源',
269592
269593
  isConditionProp: true,
269593
- options: [{
269594
+ options: [
269595
+ /*
269596
+ {
269594
269597
  label: '模板直接配置',
269595
- // value: "DevDefaults",
269598
+ value: "DevDefaults",
269599
+ },
269600
+ */
269601
+ {
269602
+ label: '模板自定义数据源',
269596
269603
  value: 'RuntimeDataSelfDefine'
269597
269604
  }, {
269598
269605
  label: 'mp后台配置',
@@ -269604,13 +269611,12 @@ var initSohuSourceData = {
269604
269611
  label: '资源中心配置',
269605
269612
  value: 'ResourceCenter'
269606
269613
  }],
269607
- default: 'ContentStaticConfig',
269614
+ default: 'RuntimeDataSelfDefine',
269608
269615
  description: ''
269609
269616
  },
269610
269617
  description: {
269611
269618
  title: '数据源名称',
269612
269619
  type: 'input',
269613
- default: '',
269614
269620
  description: '',
269615
269621
  placeholder: '',
269616
269622
  onShow: 'type === "ContentStaticConfig"'
@@ -269633,7 +269639,6 @@ var initSohuSourceData = {
269633
269639
  CONTENTID: {
269634
269640
  title: '数据源ID',
269635
269641
  type: 'input',
269636
- default: '',
269637
269642
  description: '',
269638
269643
  placeholder: '',
269639
269644
  onShow: 'type === "RuntimeDataSelfDefine"'
@@ -269772,7 +269777,6 @@ var initSohuSourceData = {
269772
269777
  CONTENTPARAMS: {
269773
269778
  title: '动态参数',
269774
269779
  type: 'json',
269775
- default: '{}',
269776
269780
  description: '请填写JSON格式的参数',
269777
269781
  placeholder: ''
269778
269782
  }
@@ -269789,7 +269793,6 @@ var initSohuSourceData = {
269789
269793
  SIZE: {
269790
269794
  type: 'number',
269791
269795
  title: '容量',
269792
- default: 1,
269793
269796
  minimum: 0,
269794
269797
  maximum: 1000,
269795
269798
  description: '该位置区块需要的内容条数'
@@ -269797,23 +269800,21 @@ var initSohuSourceData = {
269797
269800
  TITLE: {
269798
269801
  title: '标题',
269799
269802
  type: 'input',
269800
- default: '',
269801
- description: '',
269802
- placeholder: ''
269803
- },
269804
- CODE: {
269805
- title: 'Code参数',
269806
- type: 'input',
269807
- default: '',
269808
269803
  description: '',
269809
269804
  placeholder: ''
269810
269805
  },
269811
269806
  URL: {
269812
269807
  type: 'url',
269813
269808
  title: '跳转链接',
269814
- default: '',
269815
269809
  description: '',
269816
269810
  placeholder: ''
269811
+ },
269812
+ CODE: {
269813
+ title: 'Code参数',
269814
+ type: 'input',
269815
+ description: '',
269816
+ placeholder: '',
269817
+ onShow: false
269817
269818
  }
269818
269819
  },
269819
269820
  propertyOrder: ['SIZE', 'TITLE', 'URL', 'CODE'],
@@ -269850,7 +269851,6 @@ var initAdConfigSchema = {
269850
269851
  id: {
269851
269852
  title: '广告ID',
269852
269853
  type: 'number',
269853
- default: '',
269854
269854
  description: '',
269855
269855
  placeholder: ''
269856
269856
  },
@@ -269868,13 +269868,11 @@ var initAdConfigSchema = {
269868
269868
  label: '固定位置隔几出几',
269869
269869
  value: 3
269870
269870
  }],
269871
- default: 1,
269872
269871
  description: ''
269873
269872
  },
269874
269873
  fixArray: {
269875
269874
  type: 'select',
269876
269875
  title: '固定位置',
269877
- default: [1],
269878
269876
  description: '',
269879
269877
  multiple: true,
269880
269878
  onShow: 'rule === 1 || rule === 3',
@@ -270033,7 +270031,6 @@ var initAdConfigSchema = {
270033
270031
  begin: {
270034
270032
  type: 'number',
270035
270033
  title: '开始位置',
270036
- default: 1,
270037
270034
  minimum: '1',
270038
270035
  maximum: '50',
270039
270036
  description: '',
@@ -270042,7 +270039,6 @@ var initAdConfigSchema = {
270042
270039
  turn: {
270043
270040
  type: 'number',
270044
270041
  title: '间隔/隔',
270045
- default: 1,
270046
270042
  minimum: '1',
270047
270043
  maximum: '50',
270048
270044
  description: '',
@@ -270051,7 +270047,6 @@ var initAdConfigSchema = {
270051
270047
  number: {
270052
270048
  type: 'number',
270053
270049
  title: '间隔/出',
270054
- default: 1,
270055
270050
  minimum: '1',
270056
270051
  maximum: '50',
270057
270052
  description: '',
@@ -270067,7 +270062,6 @@ var initAdConfigSchema = {
270067
270062
  label: '插入',
270068
270063
  value: 1
270069
270064
  }],
270070
- default: 0,
270071
270065
  description: ''
270072
270066
  }
270073
270067
  },
@@ -270097,13 +270091,11 @@ var initAdConfigSchema = {
270097
270091
  label: '固定位置隔几出几',
270098
270092
  value: 3
270099
270093
  }],
270100
- default: 1,
270101
270094
  description: ''
270102
270095
  },
270103
270096
  fixArray: {
270104
270097
  type: 'select',
270105
270098
  title: '固定位置',
270106
- default: [1],
270107
270099
  description: '',
270108
270100
  onShow: 'rule === 1 || rule === 3',
270109
270101
  multiple: true,
@@ -270262,7 +270254,6 @@ var initAdConfigSchema = {
270262
270254
  begin: {
270263
270255
  type: 'number',
270264
270256
  title: '开始位置',
270265
- default: 1,
270266
270257
  minimum: '1',
270267
270258
  maximum: '50',
270268
270259
  description: '',
@@ -270271,7 +270262,6 @@ var initAdConfigSchema = {
270271
270262
  turn: {
270272
270263
  type: 'number',
270273
270264
  title: '间隔/隔',
270274
- default: 1,
270275
270265
  minimum: '1',
270276
270266
  maximum: '50',
270277
270267
  description: '',
@@ -270280,7 +270270,6 @@ var initAdConfigSchema = {
270280
270270
  number: {
270281
270271
  type: 'number',
270282
270272
  title: '间隔/出',
270283
- default: 1,
270284
270273
  minimum: '1',
270285
270274
  maximum: '50',
270286
270275
  description: '',
@@ -270296,7 +270285,6 @@ var initAdConfigSchema = {
270296
270285
  label: '插入',
270297
270286
  value: 1
270298
270287
  }],
270299
- default: 0,
270300
270288
  description: ''
270301
270289
  }
270302
270290
  },