@wibetter/json-editor 5.1.1 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sdk/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @wibetter/json-editor v5.1.1
2
+ * @wibetter/json-editor v5.1.3
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Thu Jan 09 2025 11:34:04 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 10 2025 17:39:17 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -67128,18 +67128,19 @@ __webpack_require__.r(__webpack_exports__);
67128
67128
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
67129
67129
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
67130
67130
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67131
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67131
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67132
67132
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
67133
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67134
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
67133
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67134
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);
67135
67135
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
67136
67136
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
67137
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popconfirm/index.js");
67138
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
67139
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
67140
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/PlusOutlined.js");
67141
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/ArrowUpOutlined.js");
67142
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js");
67137
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popconfirm/index.js");
67138
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
67139
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
67140
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
67141
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/PlusOutlined.js");
67142
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/ArrowUpOutlined.js");
67143
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js");
67143
67144
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
67144
67145
  /* harmony import */ var $utils_webCache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $utils/webCache */ "./src/utils/webCache.js");
67145
67146
  /* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
@@ -67359,14 +67360,19 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67359
67360
  className: "element-title",
67360
67361
  style: titleStyle
67361
67362
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67362
- title: targetJsonSchema.description,
67363
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
67363
67364
  placement: "top"
67364
67365
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
67365
67366
  className: "title-text",
67366
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
67367
+ title: targetJsonSchema.title
67367
67368
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
67368
67369
  length: 15
67369
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67370
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67371
+ title: targetJsonSchema.description,
67372
+ placement: "top"
67373
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_16__["default"], {
67374
+ className: "info-icon"
67375
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67370
67376
  className: "array-schema-box content-item",
67371
67377
  style: contentStyle
67372
67378
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -67374,9 +67380,9 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67374
67380
  onClick: this.collapseChange
67375
67381
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
67376
67382
  className: "title-text"
67377
- }, "\u6570\u7EC4\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_16__["default"], {
67383
+ }, "\u6570\u7EC4\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__["default"], {
67378
67384
  className: "close-operate-btn"
67379
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__["default"], {
67385
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_18__["default"], {
67380
67386
  className: "close-operate-btn"
67381
67387
  }), showCodeViewBtn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67382
67388
  className: "display-source-btn",
@@ -67393,7 +67399,7 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67393
67399
  className: jsonView ? 'info-icon active' : 'info-icon'
67394
67400
  }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67395
67401
  title: "\u6DFB\u52A0\u6570\u636E\u9879"
67396
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_18__["default"]
67402
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_19__["default"]
67397
67403
  // src={addElemIcon}
67398
67404
  , {
67399
67405
  className: "array-add-child-btn",
@@ -67427,13 +67433,13 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67427
67433
  className: "array-title-text"
67428
67434
  }, arrTitle ? arrTitle : arrayItemsDataObj.title + "/" + (arrIndex + 1)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67429
67435
  className: "array-operate-box"
67430
- }, currentActiveArrIndex !== arrIndex ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_16__["default"], {
67436
+ }, currentActiveArrIndex !== arrIndex ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__["default"], {
67431
67437
  className: "close-operate-btn array-operate-btn"
67432
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__["default"], {
67438
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_18__["default"], {
67433
67439
  className: "close-operate-btn array-operate-btn"
67434
67440
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67435
67441
  title: "\u5220\u9664" + arrayItemsDataObj.title + "/" + (arrIndex + 1)
67436
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_19__["default"], {
67442
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_20__["default"], {
67437
67443
  placement: "top",
67438
67444
  title: "\u786E\u5B9A\u8981\u5220\u9664" + arrayItemsDataObj.title + "/" + (arrIndex + 1) + "\u5417\uFF1F",
67439
67445
  onCancel: function onCancel(event) {
@@ -67468,7 +67474,7 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67468
67474
  }
67469
67475
  })), arrIndex !== 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67470
67476
  title: "\u5411\u4E0A\u79FB\u52A8"
67471
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_20__["default"], {
67477
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__["default"], {
67472
67478
  className: "array-operate-btn",
67473
67479
  onClick: function onClick(event) {
67474
67480
  sortArrayItem(keyRoute, arrIndex, 'up');
@@ -67477,7 +67483,7 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67477
67483
  }
67478
67484
  })), arrIndex !== curJsonData.length - 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__["default"], {
67479
67485
  title: "\u5411\u4E0B\u79FB\u52A8"
67480
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__["default"], {
67486
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_22__["default"], {
67481
67487
  className: "array-operate-btn",
67482
67488
  onClick: function onClick(event) {
67483
67489
  sortArrayItem(keyRoute, arrIndex, 'down');
@@ -67505,19 +67511,19 @@ var ArraySchema = /*#__PURE__*/function (_React$PureComponent) {
67505
67511
  return ArraySchema;
67506
67512
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
67507
67513
  ArraySchema.propTypes = {
67508
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
67509
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
67510
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
67511
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
67512
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
67513
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().any)
67514
- };
67515
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_23__.inject)(function (stores) {
67514
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
67515
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
67516
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
67517
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
67518
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
67519
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().any)
67520
+ };
67521
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_24__.inject)(function (stores) {
67516
67522
  return {
67517
67523
  schemaStore: stores.JSONSchemaStore,
67518
67524
  jsonStore: stores.JSONEditorStore
67519
67525
  };
67520
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_23__.observer)(ArraySchema)));
67526
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_24__.observer)(ArraySchema)));
67521
67527
 
67522
67528
  /***/ }),
67523
67529
 
@@ -67532,12 +67538,13 @@ __webpack_require__.r(__webpack_exports__);
67532
67538
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
67533
67539
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
67534
67540
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67535
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67541
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67536
67542
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
67537
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67538
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
67543
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67544
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
67539
67545
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
67540
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/switch/index.js");
67546
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/switch/index.js");
67547
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
67541
67548
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
67542
67549
  /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
67543
67550
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
@@ -67550,6 +67557,7 @@ __webpack_require__.r(__webpack_exports__);
67550
67557
 
67551
67558
 
67552
67559
 
67560
+
67553
67561
  var BooleanFormSchema = /*#__PURE__*/function (_React$PureComponent) {
67554
67562
  function BooleanFormSchema(props) {
67555
67563
  var _this;
@@ -67595,6 +67603,7 @@ var BooleanFormSchema = /*#__PURE__*/function (_React$PureComponent) {
67595
67603
  // 从jsonData中获取对应的数值
67596
67604
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
67597
67605
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
67606
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
67598
67607
 
67599
67608
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
67600
67609
  var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
@@ -67609,19 +67618,24 @@ var BooleanFormSchema = /*#__PURE__*/function (_React$PureComponent) {
67609
67618
  className: "element-title",
67610
67619
  style: titleStyle
67611
67620
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
67612
- title: targetJsonSchema.description,
67621
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
67613
67622
  placement: "top"
67614
67623
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
67615
67624
  className: "title-text",
67616
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
67625
+ title: targetJsonSchema.title
67617
67626
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
67618
67627
  length: 15
67619
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67628
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
67629
+ title: targetJsonSchema.description,
67630
+ placement: "top"
67631
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__["default"], {
67632
+ className: "info-icon"
67633
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67620
67634
  className: "content-item",
67621
67635
  style: contentStyle
67622
67636
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67623
67637
  className: "form-item-box"
67624
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
67638
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
67625
67639
  style: {
67626
67640
  display: 'inline-block'
67627
67641
  },
@@ -67635,19 +67649,19 @@ var BooleanFormSchema = /*#__PURE__*/function (_React$PureComponent) {
67635
67649
  return BooleanFormSchema;
67636
67650
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
67637
67651
  BooleanFormSchema.propTypes = {
67638
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67639
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67640
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67641
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67642
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67643
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().any)
67644
- };
67645
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.inject)(function (stores) {
67652
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67653
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67654
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67655
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67656
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67657
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any)
67658
+ };
67659
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.inject)(function (stores) {
67646
67660
  return {
67647
67661
  schemaStore: stores.JSONSchemaStore,
67648
67662
  jsonStore: stores.JSONEditorStore
67649
67663
  };
67650
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.observer)(BooleanFormSchema)));
67664
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.observer)(BooleanFormSchema)));
67651
67665
 
67652
67666
  /***/ }),
67653
67667
 
@@ -67662,12 +67676,13 @@ __webpack_require__.r(__webpack_exports__);
67662
67676
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
67663
67677
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
67664
67678
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67665
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67679
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
67666
67680
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
67667
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67668
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
67681
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
67682
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
67669
67683
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
67670
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
67684
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
67685
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
67671
67686
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
67672
67687
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
67673
67688
  /* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index.scss */ "./src/renderers/BoxStyleSchema/index.scss");
@@ -67681,6 +67696,7 @@ __webpack_require__.r(__webpack_exports__);
67681
67696
 
67682
67697
 
67683
67698
 
67699
+
67684
67700
  var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67685
67701
  function BoxStyleSchema(props) {
67686
67702
  var _this;
@@ -67853,7 +67869,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67853
67869
  var _this$state = this.state,
67854
67870
  renderAction = _this$state.renderAction,
67855
67871
  layoutStyleLock = _this$state.layoutStyleLock;
67856
- var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
67872
+ // const readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
67857
67873
 
67858
67874
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_4__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
67859
67875
  var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_4__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
@@ -67867,17 +67883,20 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67867
67883
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67868
67884
  className: "element-title",
67869
67885
  style: titleStyle
67870
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
67871
- className: "title-text warning-text"
67872
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
67873
- title: targetJsonSchema.description,
67886
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
67887
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
67874
67888
  placement: "top"
67875
67889
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
67876
67890
  className: "title-text",
67877
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
67891
+ title: targetJsonSchema.title
67878
67892
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
67879
67893
  length: 15
67880
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67894
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
67895
+ title: targetJsonSchema.description,
67896
+ placement: "top"
67897
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__["default"], {
67898
+ className: "info-icon"
67899
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
67881
67900
  className: "content-item layout-box-style-container",
67882
67901
  style: contentStyle
67883
67902
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -67892,7 +67911,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67892
67911
  layoutStyleLock: !layoutStyleLock
67893
67912
  });
67894
67913
  }
67895
- }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
67914
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
67896
67915
  name: "layoutPaddingTop",
67897
67916
  className: "layout-input-number layout-item layout-item-top\n " + (this.layoutStyleObj.quantity === '%' ? 'percent' : this.layoutStyleObj.quantity) + "-quantity-box",
67898
67917
  size: "small",
@@ -67905,7 +67924,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67905
67924
  var newVal = event.target.value;
67906
67925
  _this2.setLayoutBoxStyle(newVal, layoutStyleLock, 'top');
67907
67926
  }
67908
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
67927
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
67909
67928
  name: "layoutPaddingRight",
67910
67929
  className: "layout-input-number layout-item layout-item-right\n " + (this.layoutStyleObj.quantity === '%' ? 'percent' : this.layoutStyleObj.quantity) + "-quantity-box",
67911
67930
  size: "small",
@@ -67918,7 +67937,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67918
67937
  var newVal = event.target.value;
67919
67938
  _this2.setLayoutBoxStyle(newVal, layoutStyleLock, 'right');
67920
67939
  }
67921
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
67940
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
67922
67941
  name: "layoutPaddingBottom",
67923
67942
  className: "layout-input-number layout-item layout-item-bottom\n " + (this.layoutStyleObj.quantity === '%' ? 'percent' : this.layoutStyleObj.quantity) + "-quantity-box",
67924
67943
  size: "small",
@@ -67931,7 +67950,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67931
67950
  var newVal = event.target.value;
67932
67951
  _this2.setLayoutBoxStyle(newVal, layoutStyleLock, 'bottom');
67933
67952
  }
67934
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
67953
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
67935
67954
  name: "layoutPaddingLeft",
67936
67955
  className: "layout-input-number layout-item layout-item-left\n " + (this.layoutStyleObj.quantity === '%' ? 'percent' : this.layoutStyleObj.quantity) + "-quantity-box",
67937
67956
  size: "small",
@@ -67949,19 +67968,19 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
67949
67968
  return BoxStyleSchema;
67950
67969
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
67951
67970
  BoxStyleSchema.propTypes = {
67952
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67953
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67954
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67955
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67956
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
67957
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().any)
67958
- };
67959
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.inject)(function (stores) {
67971
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67972
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67973
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67974
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67975
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
67976
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any)
67977
+ };
67978
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.inject)(function (stores) {
67960
67979
  return {
67961
67980
  schemaStore: stores.JSONSchemaStore,
67962
67981
  jsonStore: stores.JSONEditorStore
67963
67982
  };
67964
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.observer)(BoxStyleSchema)));
67983
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.observer)(BoxStyleSchema)));
67965
67984
 
67966
67985
  /***/ }),
67967
67986
 
@@ -68051,6 +68070,7 @@ var CascaderSchema = /*#__PURE__*/function (_React$PureComponent) {
68051
68070
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
68052
68071
  var options = targetJsonSchema.options || [];
68053
68072
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
68073
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
68054
68074
 
68055
68075
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
68056
68076
  var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
@@ -68069,7 +68089,7 @@ var CascaderSchema = /*#__PURE__*/function (_React$PureComponent) {
68069
68089
  placement: "top"
68070
68090
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68071
68091
  className: "title-text",
68072
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
68092
+ title: targetJsonSchema.title
68073
68093
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
68074
68094
  length: 15
68075
68095
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
@@ -68188,6 +68208,7 @@ var CheckboxSchema = /*#__PURE__*/function (_React$PureComponent) {
68188
68208
  jsonKey = _this$props3.jsonKey,
68189
68209
  keyRoute = _this$props3.keyRoute,
68190
68210
  targetJsonSchema = _this$props3.targetJsonSchema;
68211
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
68191
68212
  // 从jsonData中获取对应的数值
68192
68213
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
68193
68214
  var options = targetJsonSchema.options;
@@ -68208,7 +68229,7 @@ var CheckboxSchema = /*#__PURE__*/function (_React$PureComponent) {
68208
68229
  placement: "top"
68209
68230
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68210
68231
  className: "title-text",
68211
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
68232
+ title: targetJsonSchema.title
68212
68233
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
68213
68234
  length: 15
68214
68235
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
@@ -68351,7 +68372,7 @@ var CodeAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68351
68372
  isShowWarn = _this$state.isShowWarn,
68352
68373
  warnText = _this$state.warnText;
68353
68374
  var readOnly = isReadOnly || targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
68354
- // const isRequired = targetJsonSchema.isRequired || false; // 是否必填(默认非必填)
68375
+ var isRequired = targetJsonSchema.isRequired || false; // 是否必填(默认非必填)
68355
68376
  // 从jsonData中获取对应的数值
68356
68377
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
68357
68378
  // 格式化JSON数据
@@ -68372,14 +68393,12 @@ var CodeAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68372
68393
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68373
68394
  className: "element-title",
68374
68395
  style: titleStyle
68375
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68376
- className: "title-text warning-text"
68377
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
68396
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
68378
68397
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
68379
68398
  placement: "top"
68380
68399
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68381
68400
  className: "title-text",
68382
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
68401
+ title: targetJsonSchema.title
68383
68402
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
68384
68403
  length: 15
68385
68404
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
@@ -68468,15 +68487,16 @@ __webpack_require__.r(__webpack_exports__);
68468
68487
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
68469
68488
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
68470
68489
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
68471
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
68490
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
68472
68491
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
68473
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
68474
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
68492
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
68493
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
68475
68494
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
68476
68495
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
68477
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popover/index.js");
68496
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popover/index.js");
68478
68497
  /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-color */ "../../node_modules/react-color/es/index.js");
68479
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.js");
68498
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
68499
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/CloseOutlined.js");
68480
68500
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
68481
68501
  /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
68482
68502
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
@@ -68570,6 +68590,7 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68570
68590
  var _this$state = this.state,
68571
68591
  renderState = _this$state.renderState,
68572
68592
  displayColorPicker = _this$state.displayColorPicker;
68593
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
68573
68594
  // 从jsonData中获取对应的数值
68574
68595
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
68575
68596
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
@@ -68593,26 +68614,37 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68593
68614
  className: "element-title",
68594
68615
  style: titleStyle
68595
68616
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
68596
- title: targetJsonSchema.description,
68617
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
68597
68618
  placement: "top"
68598
68619
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68599
68620
  className: "title-text",
68600
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
68621
+ title: targetJsonSchema.title
68601
68622
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
68602
68623
  length: 15
68603
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68624
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
68625
+ title: targetJsonSchema.description,
68626
+ placement: "top"
68627
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__["default"], {
68628
+ className: "info-icon"
68629
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68604
68630
  className: "content-item",
68605
68631
  style: contentStyle
68606
68632
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68607
68633
  className: "form-item-box render-dom-" + renderState
68608
68634
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68609
- className: "color-btn-wrap color-item-form " + (displayColorPicker ? 'selected' : ''),
68635
+ className: "color-btn-wrap color-item-form " + (displayColorPicker ? 'selected' : '') + " " + (readOnly ? 'disabled' : ''),
68610
68636
  onClick: function onClick() {
68637
+ if (readOnly) return;
68611
68638
  _this2.setState({
68612
68639
  displayColorPicker: !displayColorPicker
68613
68640
  });
68614
68641
  }
68615
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
68642
+ }, readOnly && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
68643
+ className: "ant-input color-btn",
68644
+ style: {
68645
+ backgroundColor: curJsonData || targetJsonSchema.default
68646
+ }
68647
+ }), !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"], {
68616
68648
  content: SketchPickerContent,
68617
68649
  title: "\u989C\u8272\u9009\u62E9\u5668",
68618
68650
  trigger: "click"
@@ -68624,31 +68656,31 @@ var ColorFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68624
68656
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
68625
68657
  title: "\u70B9\u51FB\u79FB\u9664\u5F53\u524D\u989C\u8272\u503C",
68626
68658
  placement: "top"
68627
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], {
68659
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
68628
68660
  className: "delete-bgColor-btn",
68629
68661
  onClick: function onClick() {
68630
68662
  _this2.deleteColor();
68631
68663
  }
68632
68664
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68633
68665
  className: "arrow"
68634
- })))));
68666
+ }))))));
68635
68667
  };
68636
68668
  return ColorFormSchema;
68637
68669
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
68638
68670
  ColorFormSchema.propTypes = {
68639
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
68640
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
68641
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
68642
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
68643
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
68644
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any)
68671
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
68672
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
68673
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
68674
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
68675
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
68676
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any)
68645
68677
  };
68646
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_13__.inject)(function (stores) {
68678
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.inject)(function (stores) {
68647
68679
  return {
68648
68680
  schemaStore: stores.JSONSchemaStore,
68649
68681
  jsonStore: stores.JSONEditorStore
68650
68682
  };
68651
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_13__.observer)(ColorFormSchema)));
68683
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.observer)(ColorFormSchema)));
68652
68684
 
68653
68685
  /***/ }),
68654
68686
 
@@ -68751,6 +68783,7 @@ var DataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
68751
68783
  isClosed = _this$state.isClosed,
68752
68784
  isShowFilter = _this$state.isShowFilter;
68753
68785
  var curType = targetJsonSchema.type;
68786
+ // const readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
68754
68787
 
68755
68788
  // 获取DataSource中各类数据对象
68756
68789
  var typeDataObj = targetJsonSchema.properties.type || {}; // type中记录了数据源类型:local or remote
@@ -68772,12 +68805,15 @@ var DataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
68772
68805
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68773
68806
  className: "element-title",
68774
68807
  style: titleStyle
68808
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_12__["default"], {
68809
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
68810
+ placement: "top"
68775
68811
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68776
68812
  className: "title-text",
68777
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
68813
+ title: targetJsonSchema.title
68778
68814
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
68779
68815
  length: 15
68780
- }), "\uFF09")), targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_12__["default"], {
68816
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_12__["default"], {
68781
68817
  title: targetJsonSchema.description,
68782
68818
  placement: "top"
68783
68819
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__["default"], {
@@ -68895,14 +68931,15 @@ __webpack_require__.r(__webpack_exports__);
68895
68931
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
68896
68932
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
68897
68933
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
68898
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
68934
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
68899
68935
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
68900
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
68901
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
68936
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
68937
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
68902
68938
  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "../../node_modules/moment/moment.js");
68903
68939
  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
68904
68940
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
68905
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/date-picker/index.js");
68941
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/date-picker/index.js");
68942
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
68906
68943
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
68907
68944
  /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
68908
68945
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
@@ -68916,6 +68953,7 @@ __webpack_require__.r(__webpack_exports__);
68916
68953
 
68917
68954
 
68918
68955
 
68956
+
68919
68957
  var DateTypeList = {
68920
68958
  'date-time': 'YYYY-MM-DD HH:mm',
68921
68959
  date: 'YYYY-MM-DD',
@@ -68984,22 +69022,25 @@ var DateTimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
68984
69022
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68985
69023
  className: "element-title",
68986
69024
  style: titleStyle
68987
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68988
- className: "title-text warning-text"
68989
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
68990
- title: targetJsonSchema.description,
69025
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
69026
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
68991
69027
  placement: "top"
68992
69028
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
68993
69029
  className: "title-text",
68994
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
69030
+ title: targetJsonSchema.title
68995
69031
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
68996
69032
  length: 15
68997
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
69033
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
69034
+ title: targetJsonSchema.description,
69035
+ placement: "top"
69036
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__["default"], {
69037
+ className: "info-icon"
69038
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
68998
69039
  className: "content-item",
68999
69040
  style: contentStyle
69000
69041
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
69001
69042
  className: "form-item-box"
69002
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
69043
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
69003
69044
  style: {
69004
69045
  display: 'inline-block'
69005
69046
  },
@@ -69015,19 +69056,19 @@ var DateTimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
69015
69056
  return DateTimeFormSchema;
69016
69057
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
69017
69058
  DateTimeFormSchema.propTypes = {
69018
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
69019
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
69020
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
69021
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
69022
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
69023
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any)
69059
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
69060
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
69061
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
69062
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
69063
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
69064
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any)
69024
69065
  };
69025
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.inject)(function (stores) {
69066
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
69026
69067
  return {
69027
69068
  schemaStore: stores.JSONSchemaStore,
69028
69069
  jsonStore: stores.JSONEditorStore
69029
69070
  };
69030
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.observer)(DateTimeFormSchema)));
69071
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(DateTimeFormSchema)));
69031
69072
 
69032
69073
  /***/ }),
69033
69074
 
@@ -69042,13 +69083,14 @@ __webpack_require__.r(__webpack_exports__);
69042
69083
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
69043
69084
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
69044
69085
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
69045
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
69086
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
69046
69087
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
69047
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
69048
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
69088
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
69089
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
69049
69090
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
69050
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
69051
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
69091
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
69092
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
69093
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
69052
69094
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
69053
69095
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
69054
69096
  /* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
@@ -69160,14 +69202,19 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
69160
69202
  className: "element-title",
69161
69203
  style: titleStyle
69162
69204
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
69163
- title: targetJsonSchema.description,
69205
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
69164
69206
  placement: "top"
69165
69207
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
69166
69208
  className: "title-text",
69167
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
69209
+ title: targetJsonSchema.title
69168
69210
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
69169
69211
  length: 15
69170
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69212
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
69213
+ title: targetJsonSchema.description,
69214
+ placement: "top"
69215
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], {
69216
+ className: "info-icon"
69217
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69171
69218
  className: "element-title-card-warp content-item",
69172
69219
  style: contentStyle
69173
69220
  }, !isStructured && !isArrayItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
@@ -69175,9 +69222,9 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
69175
69222
  onClick: this.collapseChange
69176
69223
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
69177
69224
  className: "title-text"
69178
- }, "\u52A8\u6001\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], {
69225
+ }, "\u52A8\u6001\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
69179
69226
  className: "close-operate-btn"
69180
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
69227
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__["default"], {
69181
69228
  className: "close-operate-btn"
69182
69229
  }), showCodeViewBtn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
69183
69230
  className: "display-source-btn",
@@ -69250,24 +69297,24 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
69250
69297
  return ObjectSchema;
69251
69298
  }((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
69252
69299
  ObjectSchema.propTypes = {
69253
- isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
69300
+ isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
69254
69301
  // 如果是数组项,title会进行特殊显示
69255
- arrIndex: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
69302
+ arrIndex: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
69256
69303
  // 当前数组项
69257
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
69258
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
69259
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
69260
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
69261
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
69262
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
69263
- isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
69304
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
69305
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
69306
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
69307
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
69308
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
69309
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
69310
+ isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)
69264
69311
  };
69265
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.inject)(function (stores) {
69312
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_15__.inject)(function (stores) {
69266
69313
  return {
69267
69314
  schemaStore: stores.JSONSchemaStore,
69268
69315
  jsonStore: stores.JSONEditorStore
69269
69316
  };
69270
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.observer)(ObjectSchema)));
69317
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_15__.observer)(ObjectSchema)));
69271
69318
 
69272
69319
  /***/ }),
69273
69320
 
@@ -69486,11 +69533,15 @@ var DynamicDataSchema = /*#__PURE__*/function (_React$PureComponent) {
69486
69533
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
69487
69534
  className: "element-title",
69488
69535
  style: titleStyle
69536
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
69537
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
69538
+ placement: "top"
69489
69539
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
69490
- className: "title-text"
69540
+ className: "title-text",
69541
+ title: targetJsonSchema.title
69491
69542
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
69492
69543
  length: 15
69493
- }), "\uFF09")), targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
69544
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__["default"], {
69494
69545
  title: targetJsonSchema.description,
69495
69546
  placement: "top"
69496
69547
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_15__["default"], {
@@ -69762,12 +69813,15 @@ var EventSchema = /*#__PURE__*/function (_React$PureComponent) {
69762
69813
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
69763
69814
  className: "element-title",
69764
69815
  style: titleStyle
69816
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
69817
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
69818
+ placement: "top"
69765
69819
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
69766
69820
  className: "title-text",
69767
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
69821
+ title: targetJsonSchema.title
69768
69822
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
69769
69823
  length: 15
69770
- }), "\uFF09")), targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
69824
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
69771
69825
  title: targetJsonSchema.description,
69772
69826
  placement: "top"
69773
69827
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
@@ -69972,14 +70026,12 @@ var HtmlAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
69972
70026
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
69973
70027
  className: "element-title",
69974
70028
  style: titleStyle
69975
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
69976
- className: "title-text warning-text"
69977
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
70029
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
69978
70030
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
69979
70031
  placement: "top"
69980
70032
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
69981
70033
  className: "title-text",
69982
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
70034
+ title: targetJsonSchema.title
69983
70035
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
69984
70036
  length: 15
69985
70037
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
@@ -70153,14 +70205,12 @@ var InputFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70153
70205
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70154
70206
  className: "element-title",
70155
70207
  style: titleStyle
70156
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70157
- className: "title-text warning-text"
70158
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
70208
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
70159
70209
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
70160
70210
  placement: "top"
70161
70211
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70162
70212
  className: "title-text",
70163
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
70213
+ title: targetJsonSchema.title
70164
70214
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
70165
70215
  length: 15
70166
70216
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
@@ -70213,22 +70263,24 @@ InputFormSchema.propTypes = {
70213
70263
 
70214
70264
  "use strict";
70215
70265
  __webpack_require__.r(__webpack_exports__);
70216
- /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
70217
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
70218
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
70219
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70220
- /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
70221
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70222
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
70223
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
70224
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
70225
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/upload/index.js");
70226
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
70227
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js");
70228
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/PlusOutlined.js");
70229
- /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
70230
- /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
70231
- /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
70266
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
70267
+ /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
70268
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
70269
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
70270
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70271
+ /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
70272
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70273
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
70274
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
70275
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
70276
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/upload/index.js");
70277
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
70278
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js");
70279
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/PlusOutlined.js");
70280
+ /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
70281
+ /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
70282
+ /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
70283
+
70232
70284
 
70233
70285
 
70234
70286
 
@@ -70261,7 +70313,7 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
70261
70313
  updateFormValueData(keyRoute, responseData.url);
70262
70314
  }
70263
70315
  } else if (fileInfo.file.status === 'error') {
70264
- antd__WEBPACK_IMPORTED_MODULE_6__["default"].error(fileInfo.file.name + " \u56FE\u7247\u4E0A\u4F20\u5931\u8D25\u3002");
70316
+ antd__WEBPACK_IMPORTED_MODULE_7__["default"].error(fileInfo.file.name + " \u56FE\u7247\u4E0A\u4F20\u5931\u8D25\u3002");
70265
70317
  }
70266
70318
  _this.setState({
70267
70319
  loading: false
@@ -70286,16 +70338,16 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
70286
70338
 
70287
70339
  // 方式1:在class组件中声明静态属性static,且必须是contextType,确保当前组件可以使用全局context中的数据(this.context不为空)
70288
70340
  // static contextType = ThemeContext;
70289
- (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(InputImageSchema, _React$PureComponent);
70341
+ (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(InputImageSchema, _React$PureComponent);
70290
70342
  var _proto = InputImageSchema.prototype;
70291
70343
  _proto.componentWillMount = function componentWillMount() {
70292
70344
  // 从web缓存中获取数值
70293
- $mixins_index__WEBPACK_IMPORTED_MODULE_4__.catchJsonDataByWebCache.call(this);
70345
+ $mixins_index__WEBPACK_IMPORTED_MODULE_5__.catchJsonDataByWebCache.call(this);
70294
70346
  };
70295
70347
  _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
70296
70348
  if (nextProps.keyRoute !== this.props.keyRoute) {
70297
70349
  /** 当key值路径发生变化时重新从web缓存中获取数值 */
70298
- $mixins_index__WEBPACK_IMPORTED_MODULE_4__.catchJsonDataByWebCache.call(this, nextProps.keyRoute);
70350
+ $mixins_index__WEBPACK_IMPORTED_MODULE_5__.catchJsonDataByWebCache.call(this, nextProps.keyRoute);
70299
70351
  }
70300
70352
  };
70301
70353
  _proto.render = function render() {
@@ -70320,9 +70372,9 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
70320
70372
  var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
70321
70373
  var isRequired = targetJsonSchema.isRequired || false; // 是否必填(默认非必填)
70322
70374
  var defaultFileList = [];
70323
- if (curJsonData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isArray)(curJsonData)) {
70375
+ if (curJsonData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isArray)(curJsonData)) {
70324
70376
  defaultFileList = curJsonData;
70325
- } else if (curJsonData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isString)(curJsonData)) {
70377
+ } else if (curJsonData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isString)(curJsonData)) {
70326
70378
  defaultFileList.push(curJsonData);
70327
70379
  }
70328
70380
  var uploadProps = {
@@ -70341,68 +70393,68 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
70341
70393
  onChange: this.handleImageChange,
70342
70394
  onRemove: this.handleDeleteChange
70343
70395
  };
70344
- var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
70345
- var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
70346
- var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
70347
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70396
+ var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.style)) : {};
70397
+ var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.titleStyle)) : {};
70398
+ var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.contentStyle)) : {};
70399
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
70348
70400
  className: pageScreen === 'wideScreen' ? 'wide-screen-element-warp' : 'mobile-screen-element-warp'
70349
70401
  // key={nodeKey}
70350
70402
  ,
70351
70403
  id: nodeKey,
70352
70404
  style: style
70353
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70405
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
70354
70406
  className: "element-title",
70355
70407
  style: titleStyle
70356
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70357
- className: "title-text warning-text"
70358
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
70408
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
70359
70409
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
70360
70410
  placement: "top"
70361
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70411
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", {
70362
70412
  className: "title-text",
70363
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
70364
- }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
70413
+ title: targetJsonSchema.title
70414
+ }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
70365
70415
  length: 15
70366
- }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
70416
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
70367
70417
  title: targetJsonSchema.description,
70368
70418
  placement: "top"
70369
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__["default"], {
70419
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_9__["default"], {
70370
70420
  className: "info-icon"
70371
- }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70421
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
70372
70422
  className: "content-item",
70373
70423
  style: contentStyle
70374
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70424
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
70375
70425
  className: "form-item-box"
70376
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], uploadProps, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", {
70426
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, uploadProps, {
70427
+ disabled: readOnly
70428
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("button", {
70377
70429
  style: {
70378
70430
  border: 0,
70379
70431
  background: 'none',
70380
70432
  cursor: 'pointer'
70381
70433
  },
70382
70434
  type: "button"
70383
- }, loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70435
+ }, loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
70384
70436
  style: {
70385
70437
  marginTop: 8
70386
70438
  }
70387
70439
  }, "\u4E0A\u4F20\u56FE\u7247"))))));
70388
70440
  };
70389
70441
  return InputImageSchema;
70390
- }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
70442
+ }(react__WEBPACK_IMPORTED_MODULE_2__.PureComponent);
70391
70443
  InputImageSchema.propTypes = {
70392
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),
70393
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
70394
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),
70395
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),
70396
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string),
70397
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any),
70398
- onChange: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().any)
70444
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
70445
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
70446
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
70447
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
70448
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
70449
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any),
70450
+ onChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().any)
70399
70451
  };
70400
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_13__.inject)(function (stores) {
70452
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.inject)(function (stores) {
70401
70453
  return {
70402
70454
  schemaStore: stores.JSONSchemaStore,
70403
70455
  jsonStore: stores.JSONEditorStore
70404
70456
  };
70405
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_13__.observer)(InputImageSchema)));
70457
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_14__.observer)(InputImageSchema)));
70406
70458
 
70407
70459
  /***/ }),
70408
70460
 
@@ -70526,14 +70578,15 @@ var JsonFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70526
70578
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70527
70579
  className: "element-title",
70528
70580
  style: titleStyle
70581
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
70582
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
70583
+ placement: "top"
70529
70584
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70530
- className: "title-text warning-text"
70531
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70532
70585
  className: "title-text",
70533
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
70586
+ title: targetJsonSchema.title
70534
70587
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
70535
70588
  length: 15
70536
- }), "\uFF09")), targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
70589
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
70537
70590
  title: targetJsonSchema.description,
70538
70591
  placement: "top"
70539
70592
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__["default"], {
@@ -70732,13 +70785,14 @@ __webpack_require__.r(__webpack_exports__);
70732
70785
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
70733
70786
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
70734
70787
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
70735
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70788
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70736
70789
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
70737
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70738
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
70790
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70791
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
70739
70792
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/message/index.js");
70740
70793
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
70741
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
70794
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
70795
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
70742
70796
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
70743
70797
  /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
70744
70798
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
@@ -70754,6 +70808,7 @@ __webpack_require__.r(__webpack_exports__);
70754
70808
 
70755
70809
 
70756
70810
 
70811
+
70757
70812
  var NumberFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70758
70813
  function NumberFormSchema(props) {
70759
70814
  var _this;
@@ -70842,17 +70897,20 @@ var NumberFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70842
70897
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70843
70898
  className: "element-title",
70844
70899
  style: titleStyle
70845
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70846
- className: "title-text warning-text"
70847
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
70848
- title: targetJsonSchema.description,
70900
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
70901
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
70849
70902
  placement: "top"
70850
70903
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
70851
70904
  className: "title-text",
70852
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
70905
+ title: targetJsonSchema.title
70853
70906
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
70854
70907
  length: 15
70855
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70908
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
70909
+ title: targetJsonSchema.description,
70910
+ placement: "top"
70911
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_9__["default"], {
70912
+ className: "info-icon"
70913
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
70856
70914
  className: "content-item",
70857
70915
  style: contentStyle
70858
70916
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -70865,7 +70923,7 @@ var NumberFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70865
70923
  onClick: function onClick() {
70866
70924
  _this2.numberChange('minus', (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.hasProperties)(curJsonData) ? curJsonData : targetJsonSchema.default);
70867
70925
  }
70868
- }, "-"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
70926
+ }, "-"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
70869
70927
  className: "number-cont",
70870
70928
  style: {
70871
70929
  display: 'inline-block'
@@ -70888,19 +70946,19 @@ var NumberFormSchema = /*#__PURE__*/function (_React$PureComponent) {
70888
70946
  return NumberFormSchema;
70889
70947
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
70890
70948
  NumberFormSchema.propTypes = {
70891
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
70892
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
70893
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
70894
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
70895
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
70896
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any)
70949
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
70950
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
70951
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
70952
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
70953
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
70954
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any)
70897
70955
  };
70898
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
70956
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.inject)(function (stores) {
70899
70957
  return {
70900
70958
  schemaStore: stores.JSONSchemaStore,
70901
70959
  jsonStore: stores.JSONEditorStore
70902
70960
  };
70903
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(NumberFormSchema)));
70961
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.observer)(NumberFormSchema)));
70904
70962
 
70905
70963
  /***/ }),
70906
70964
 
@@ -70915,13 +70973,14 @@ __webpack_require__.r(__webpack_exports__);
70915
70973
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
70916
70974
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
70917
70975
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
70918
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70976
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
70919
70977
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
70920
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70921
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
70978
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
70979
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
70922
70980
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
70923
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
70924
- /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
70981
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
70982
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/RightOutlined.js");
70983
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/DownOutlined.js");
70925
70984
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
70926
70985
  /* harmony import */ var $components_MappingRender__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $components/MappingRender */ "./src/components/MappingRender.js");
70927
70986
  /* harmony import */ var $renderers_JsonView_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $renderers/JsonView/index */ "./src/renderers/JsonView/index.js");
@@ -71026,14 +71085,19 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
71026
71085
  className: "element-title",
71027
71086
  style: titleStyle
71028
71087
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
71029
- title: targetJsonSchema.description,
71088
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
71030
71089
  placement: "top"
71031
71090
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
71032
71091
  className: "title-text",
71033
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
71092
+ title: targetJsonSchema.title
71034
71093
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
71035
71094
  length: 15
71036
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
71095
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_11__["default"], {
71096
+ title: targetJsonSchema.description,
71097
+ placement: "top"
71098
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
71099
+ className: "info-icon"
71100
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
71037
71101
  className: "element-title-card-warp content-item",
71038
71102
  style: contentStyle
71039
71103
  }, !isStructured && !isArrayItem && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
@@ -71041,9 +71105,9 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
71041
71105
  onClick: this.collapseChange
71042
71106
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
71043
71107
  className: "title-text"
71044
- }, "\u5BF9\u8C61\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__["default"], {
71108
+ }, "\u5BF9\u8C61\u914D\u7F6E"), isClosed ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__["default"], {
71045
71109
  className: "close-operate-btn"
71046
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_13__["default"], {
71110
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_14__["default"], {
71047
71111
  className: "close-operate-btn"
71048
71112
  }), showCodeViewBtn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
71049
71113
  className: "display-source-btn",
@@ -71087,24 +71151,24 @@ var ObjectSchema = /*#__PURE__*/function (_React$PureComponent) {
71087
71151
  return ObjectSchema;
71088
71152
  }((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
71089
71153
  ObjectSchema.propTypes = {
71090
- isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
71154
+ isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().any),
71091
71155
  // 如果是数组项,title会进行特殊显示
71092
- arrIndex: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
71156
+ arrIndex: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().any),
71093
71157
  // 当前数组项
71094
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
71095
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
71096
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
71097
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
71098
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
71099
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().any),
71100
- isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool)
71158
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
71159
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
71160
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().any),
71161
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
71162
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
71163
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().any),
71164
+ isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool)
71101
71165
  };
71102
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_15__.inject)(function (stores) {
71166
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_16__.inject)(function (stores) {
71103
71167
  return {
71104
71168
  schemaStore: stores.JSONSchemaStore,
71105
71169
  jsonStore: stores.JSONEditorStore
71106
71170
  };
71107
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_15__.observer)(ObjectSchema)));
71171
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_16__.observer)(ObjectSchema)));
71108
71172
 
71109
71173
  /***/ }),
71110
71174
 
@@ -71119,14 +71183,15 @@ __webpack_require__.r(__webpack_exports__);
71119
71183
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
71120
71184
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
71121
71185
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
71122
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
71186
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
71123
71187
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
71124
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
71125
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
71188
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
71189
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
71190
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
71126
71191
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/select/index.js");
71127
71192
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
71128
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input/index.js");
71129
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popover/index.js");
71193
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input/index.js");
71194
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/popover/index.js");
71130
71195
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
71131
71196
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
71132
71197
  /* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.scss */ "./src/renderers/PaddingAndMarginSchema/index.scss");
@@ -71137,6 +71202,7 @@ __webpack_require__.r(__webpack_exports__);
71137
71202
 
71138
71203
 
71139
71204
 
71205
+
71140
71206
  var Option = antd__WEBPACK_IMPORTED_MODULE_3__["default"].Option;
71141
71207
 
71142
71208
 
@@ -71322,8 +71388,6 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71322
71388
  _this.state = {
71323
71389
  type: 'all',
71324
71390
  // 设置类型,支持 自定义设值(custom)、统一设值(all)
71325
- layoutStyleLock: false,
71326
- // 是否锁住容器数值值的设置,默认为false,设置为true后4个数值同时联动
71327
71391
  renderAction: false // 用于主动触发render的临时变量
71328
71392
  };
71329
71393
  // 这边绑定是必要的,这样 `this` 才能在回调函数中使用
@@ -71361,9 +71425,8 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71361
71425
  getJSONDataByKeyRoute = _ref5.getJSONDataByKeyRoute;
71362
71426
  var _this$state = this.state,
71363
71427
  renderAction = _this$state.renderAction,
71364
- layoutStyleLock = _this$state.layoutStyleLock,
71365
71428
  type = _this$state.type;
71366
- var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
71429
+ // const readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
71367
71430
 
71368
71431
  // 从jsonData中获取对应的数值
71369
71432
  var curJsonData = getJSONDataByKeyRoute(keyRoute) || {};
@@ -71378,17 +71441,20 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71378
71441
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71379
71442
  className: "element-title",
71380
71443
  style: titleStyle
71381
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
71382
- className: "title-text warning-text"
71383
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
71384
- title: targetJsonSchema.description,
71444
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
71445
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
71385
71446
  placement: "top"
71386
71447
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
71387
71448
  className: "title-text",
71388
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
71449
+ title: targetJsonSchema.title
71389
71450
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
71390
71451
  length: 15
71391
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71452
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
71453
+ title: targetJsonSchema.description,
71454
+ placement: "top"
71455
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__["default"], {
71456
+ className: "info-icon"
71457
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71392
71458
  className: "content-item Style-PaddingAndMargin",
71393
71459
  style: contentStyle
71394
71460
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
@@ -71407,7 +71473,7 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71407
71473
  }
71408
71474
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null))), type === 'all' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71409
71475
  className: "Style-PaddingAndMargin-input"
71410
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71476
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71411
71477
  name: "layoutMargin",
71412
71478
  addonAfter: this.getSelectAfter(curJsonData),
71413
71479
  className: "layout-item-margin",
@@ -71421,7 +71487,7 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71421
71487
  className: "Style-PaddingAndMargin-input-label"
71422
71488
  }, "\u5916\u8FB9\u8DDD")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71423
71489
  className: "Style-PaddingAndMargin-input"
71424
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71490
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71425
71491
  name: "layoutPadding",
71426
71492
  addonAfter: this.getSelectAfter(curJsonData),
71427
71493
  className: "layout-item-padding",
@@ -71435,9 +71501,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71435
71501
  className: "Style-PaddingAndMargin-input-label"
71436
71502
  }, "\u5185\u8FB9\u8DDD")))), type !== 'all' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71437
71503
  className: "Style-PaddingAndMargin-custom Style-PaddingAndMargin-custom--padding Style-PaddingAndMargin-custom--margin"
71438
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71504
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71439
71505
  content: function content() {
71440
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71506
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71441
71507
  name: "layoutPaddingTop",
71442
71508
  addonAfter: _this2.getSelectAfter(curJsonData),
71443
71509
  className: "layout-item-padding",
@@ -71452,9 +71518,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71452
71518
  title: ""
71453
71519
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71454
71520
  className: "Style-PaddingAndMargin-custom-paddingTop"
71455
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].top) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71521
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].top) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71456
71522
  content: function content() {
71457
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71523
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71458
71524
  name: "layoutPaddingTop",
71459
71525
  addonAfter: _this2.getSelectAfter(curJsonData),
71460
71526
  className: "layout-item-padding",
@@ -71469,9 +71535,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71469
71535
  title: ""
71470
71536
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71471
71537
  className: "Style-PaddingAndMargin-custom-paddingRight"
71472
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].right) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71538
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].right) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71473
71539
  content: function content() {
71474
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71540
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71475
71541
  name: "layoutPaddingBottom",
71476
71542
  addonAfter: _this2.getSelectAfter(curJsonData),
71477
71543
  className: "layout-item-padding",
@@ -71486,9 +71552,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71486
71552
  title: ""
71487
71553
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71488
71554
  className: "Style-PaddingAndMargin-custom-paddingBottom"
71489
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].bottom) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71555
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].bottom) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71490
71556
  content: function content() {
71491
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71557
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71492
71558
  name: "layoutPaddingLeft",
71493
71559
  addonAfter: _this2.getSelectAfter(curJsonData),
71494
71560
  className: "layout-item-padding",
@@ -71503,9 +71569,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71503
71569
  title: ""
71504
71570
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71505
71571
  className: "Style-PaddingAndMargin-custom-paddingLeft"
71506
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].left) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71572
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['padding'].left) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71507
71573
  content: function content() {
71508
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71574
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71509
71575
  name: "layoutMarginTop",
71510
71576
  addonAfter: _this2.getSelectAfter(curJsonData),
71511
71577
  className: "layout-item-margin",
@@ -71520,9 +71586,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71520
71586
  title: ""
71521
71587
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71522
71588
  className: "Style-PaddingAndMargin-custom-marginTop"
71523
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].top) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71589
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].top) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71524
71590
  content: function content() {
71525
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71591
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71526
71592
  name: "layoutMarginRight",
71527
71593
  addonAfter: _this2.getSelectAfter(curJsonData),
71528
71594
  className: "layout-item-margin",
@@ -71537,9 +71603,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71537
71603
  title: ""
71538
71604
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71539
71605
  className: "Style-PaddingAndMargin-custom-marginRight"
71540
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].right) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71606
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].right) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71541
71607
  content: function content() {
71542
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71608
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71543
71609
  name: "layoutMarginBottom",
71544
71610
  addonAfter: _this2.getSelectAfter(curJsonData),
71545
71611
  className: "layout-item-margin",
@@ -71554,9 +71620,9 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71554
71620
  title: ""
71555
71621
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71556
71622
  className: "Style-PaddingAndMargin-custom-marginBottom"
71557
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].bottom) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71623
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].bottom) || '-'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_10__["default"], {
71558
71624
  content: function content() {
71559
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71625
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
71560
71626
  name: "layoutMarginLeft",
71561
71627
  addonAfter: _this2.getSelectAfter(curJsonData),
71562
71628
  className: "layout-item-margin",
@@ -71576,19 +71642,19 @@ var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
71576
71642
  return PaddingAndMarginSchema;
71577
71643
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
71578
71644
  PaddingAndMarginSchema.propTypes = {
71579
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
71580
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
71581
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
71582
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
71583
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
71584
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any)
71645
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
71646
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
71647
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
71648
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
71649
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
71650
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any)
71585
71651
  };
71586
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
71652
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.inject)(function (stores) {
71587
71653
  return {
71588
71654
  schemaStore: stores.JSONSchemaStore,
71589
71655
  jsonStore: stores.JSONEditorStore
71590
71656
  };
71591
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(PaddingAndMarginSchema)));
71657
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.observer)(PaddingAndMarginSchema)));
71592
71658
 
71593
71659
  /***/ }),
71594
71660
 
@@ -71603,12 +71669,13 @@ __webpack_require__.r(__webpack_exports__);
71603
71669
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
71604
71670
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
71605
71671
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
71606
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
71672
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
71607
71673
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
71608
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
71609
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
71674
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
71675
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
71610
71676
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
71611
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
71677
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/input-number/index.js");
71678
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
71612
71679
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
71613
71680
  /* harmony import */ var $mixins_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! $mixins/index */ "./src/mixins/index.js");
71614
71681
  /* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
@@ -71621,6 +71688,7 @@ __webpack_require__.r(__webpack_exports__);
71621
71688
 
71622
71689
 
71623
71690
 
71691
+
71624
71692
  var QuantitySchema = /*#__PURE__*/function (_React$PureComponent) {
71625
71693
  function QuantitySchema(props) {
71626
71694
  var _this;
@@ -71686,22 +71754,25 @@ var QuantitySchema = /*#__PURE__*/function (_React$PureComponent) {
71686
71754
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71687
71755
  className: "element-title",
71688
71756
  style: titleStyle
71689
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
71690
- className: "title-text warning-text"
71691
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
71692
- title: targetJsonSchema.description,
71757
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
71758
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
71693
71759
  placement: "top"
71694
71760
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
71695
71761
  className: "title-text",
71696
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
71762
+ title: targetJsonSchema.title
71697
71763
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
71698
71764
  length: 15
71699
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71765
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
71766
+ title: targetJsonSchema.description,
71767
+ placement: "top"
71768
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_7__["default"], {
71769
+ className: "info-icon"
71770
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71700
71771
  className: "content-item",
71701
71772
  style: contentStyle
71702
71773
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
71703
71774
  className: "form-item-box"
71704
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
71775
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
71705
71776
  style: {
71706
71777
  display: 'inline-block',
71707
71778
  width: '120px'
@@ -71717,19 +71788,19 @@ var QuantitySchema = /*#__PURE__*/function (_React$PureComponent) {
71717
71788
  return QuantitySchema;
71718
71789
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
71719
71790
  QuantitySchema.propTypes = {
71720
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
71721
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
71722
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
71723
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
71724
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
71725
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().any)
71726
- };
71727
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.inject)(function (stores) {
71791
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
71792
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
71793
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
71794
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
71795
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
71796
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any)
71797
+ };
71798
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.inject)(function (stores) {
71728
71799
  return {
71729
71800
  schemaStore: stores.JSONSchemaStore,
71730
71801
  jsonStore: stores.JSONEditorStore
71731
71802
  };
71732
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_9__.observer)(QuantitySchema)));
71803
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.observer)(QuantitySchema)));
71733
71804
 
71734
71805
  /***/ }),
71735
71806
 
@@ -71807,6 +71878,7 @@ var RadioSchema = /*#__PURE__*/function (_React$PureComponent) {
71807
71878
  jsonKey = _this$props3.jsonKey,
71808
71879
  keyRoute = _this$props3.keyRoute,
71809
71880
  targetJsonSchema = _this$props3.targetJsonSchema;
71881
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
71810
71882
  // 从jsonData中获取对应的数值
71811
71883
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
71812
71884
  var options = targetJsonSchema.options;
@@ -71827,7 +71899,7 @@ var RadioSchema = /*#__PURE__*/function (_React$PureComponent) {
71827
71899
  placement: "top"
71828
71900
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
71829
71901
  className: "title-text",
71830
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
71902
+ title: targetJsonSchema.title
71831
71903
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
71832
71904
  length: 15
71833
71905
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
@@ -72147,10 +72219,13 @@ var Option = antd__WEBPACK_IMPORTED_MODULE_4__["default"].Option;
72147
72219
  * select下拉选择类型
72148
72220
  */
72149
72221
  var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72222
+ // 记录options中对象类型的value
72223
+
72150
72224
  function SelectSchema(props) {
72151
72225
  var _this;
72152
72226
  _this = _React$PureComponent.call(this, props) || this;
72153
72227
  // 这边绑定是必要的,这样 `this` 才能在回调函数中使用
72228
+ _this.optionValue = {};
72154
72229
  /** 数值变动事件处理器 */
72155
72230
  _this.handleValueChange = function (value) {
72156
72231
  var _this$props = _this.props,
@@ -72158,7 +72233,19 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72158
72233
  jsonStore = _this$props.jsonStore;
72159
72234
  var _ref = jsonStore || {},
72160
72235
  updateFormValueData = _ref.updateFormValueData;
72161
- updateFormValueData(keyRoute, value); // 更新数值
72236
+ var curValue = value;
72237
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isArray)(value)) {
72238
+ var valueArray = [];
72239
+ value.forEach(function (valItem) {
72240
+ var _this$optionValue$val;
72241
+ valueArray.push((_this$optionValue$val = _this.optionValue[valItem]) != null ? _this$optionValue$val : valItem);
72242
+ });
72243
+ curValue = valueArray;
72244
+ } else {
72245
+ var _this$optionValue$val2;
72246
+ curValue = (_this$optionValue$val2 = _this.optionValue[value]) != null ? _this$optionValue$val2 : value;
72247
+ }
72248
+ updateFormValueData(keyRoute, curValue); // 更新数值
72162
72249
  };
72163
72250
  _this.handleValueChange = _this.handleValueChange.bind(_this);
72164
72251
  return _this;
@@ -72189,11 +72276,15 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72189
72276
  jsonKey = _this$props3.jsonKey,
72190
72277
  keyRoute = _this$props3.keyRoute,
72191
72278
  targetJsonSchema = _this$props3.targetJsonSchema;
72279
+ var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
72192
72280
  // 从jsonData中获取对应的数值
72193
72281
  var curJsonData = getJSONDataByKeyRoute(keyRoute);
72194
72282
  var options = targetJsonSchema.options;
72195
72283
  var isNeedTwoCol = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.isNeedTwoColWarpStyle)(targetJsonSchema.type); // 是否需要设置成两栏布局
72196
72284
 
72285
+ var optionsFormat = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.formatOptions)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(options));
72286
+ options = optionsFormat.options;
72287
+ this.optionValue = optionsFormat.optionValue;
72197
72288
  var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
72198
72289
  var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
72199
72290
  var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
@@ -72211,7 +72302,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72211
72302
  placement: "top"
72212
72303
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
72213
72304
  className: "title-text",
72214
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
72305
+ title: targetJsonSchema.title
72215
72306
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
72216
72307
  length: 15
72217
72308
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
@@ -72233,7 +72324,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
72233
72324
  },
72234
72325
  onChange: this.handleValueChange,
72235
72326
  defaultValue: curJsonData || targetJsonSchema.default,
72236
- disabled: targetJsonSchema.readOnly,
72327
+ disabled: readOnly,
72237
72328
  allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true
72238
72329
  }, options && options.length > 0 && options.map(function (item, optionIndex) {
72239
72330
  var optionLabel = item.label || item.name;
@@ -72274,10 +72365,11 @@ __webpack_require__.r(__webpack_exports__);
72274
72365
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
72275
72366
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
72276
72367
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
72277
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
72368
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
72278
72369
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
72279
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
72280
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
72370
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
72371
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
72372
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
72281
72373
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/collapse/index.js");
72282
72374
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
72283
72375
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
@@ -72291,6 +72383,7 @@ __webpack_require__.r(__webpack_exports__);
72291
72383
 
72292
72384
 
72293
72385
 
72386
+
72294
72387
  var Panel = antd__WEBPACK_IMPORTED_MODULE_3__["default"].Panel;
72295
72388
 
72296
72389
 
@@ -72363,14 +72456,19 @@ var SohuDataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
72363
72456
  className: "element-title",
72364
72457
  style: titleStyle
72365
72458
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
72366
- title: targetJsonSchema.description,
72459
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
72367
72460
  placement: "top"
72368
72461
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", {
72369
72462
  className: "title-text",
72370
- title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > 6 ? targetJsonSchema.title : ''
72463
+ title: targetJsonSchema.title
72371
72464
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
72372
72465
  length: 15
72373
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
72466
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
72467
+ title: targetJsonSchema.description,
72468
+ placement: "top"
72469
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__["default"], {
72470
+ className: "info-icon"
72471
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
72374
72472
  className: "array-schema-box",
72375
72473
  style: contentStyle
72376
72474
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(antd__WEBPACK_IMPORTED_MODULE_3__["default"], {
@@ -72415,22 +72513,22 @@ var SohuDataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
72415
72513
  return SohuDataSourceSchema;
72416
72514
  }((react__WEBPACK_IMPORTED_MODULE_1___default().PureComponent));
72417
72515
  SohuDataSourceSchema.propTypes = {
72418
- isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any),
72516
+ isArrayItem: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
72419
72517
  // 如果是数组项,title会进行特殊显示
72420
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
72421
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
72422
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any),
72423
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
72424
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
72425
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any),
72426
- isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool)
72518
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
72519
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
72520
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
72521
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
72522
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
72523
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
72524
+ isStructuredSchema: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool)
72427
72525
  };
72428
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
72526
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.inject)(function (stores) {
72429
72527
  return {
72430
72528
  schemaStore: stores.JSONSchemaStore,
72431
72529
  jsonStore: stores.JSONEditorStore
72432
72530
  };
72433
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(SohuDataSourceSchema)));
72531
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_12__.observer)(SohuDataSourceSchema)));
72434
72532
 
72435
72533
  /***/ }),
72436
72534
 
@@ -72466,6 +72564,7 @@ __webpack_require__.r(__webpack_exports__);
72466
72564
 
72467
72565
 
72468
72566
 
72567
+
72469
72568
  var Option = antd__WEBPACK_IMPORTED_MODULE_3__["default"].Option;
72470
72569
  var Panel = antd__WEBPACK_IMPORTED_MODULE_4__["default"].Panel;
72471
72570
 
@@ -72809,14 +72908,12 @@ var TextAreaFormSchema = /*#__PURE__*/function (_React$PureComponent) {
72809
72908
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
72810
72909
  className: "element-title",
72811
72910
  style: titleStyle
72812
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
72813
- className: "title-text warning-text"
72814
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
72911
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
72815
72912
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
72816
72913
  placement: "top"
72817
72914
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
72818
72915
  className: "title-text",
72819
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
72916
+ title: targetJsonSchema.title
72820
72917
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
72821
72918
  length: 15
72822
72919
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
@@ -73031,14 +73128,15 @@ var TextEditorSchema = /*#__PURE__*/function (_React$PureComponent) {
73031
73128
  event.stopPropagation();
73032
73129
  },
73033
73130
  style: titleStyle
73131
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_13__["default"], {
73132
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
73133
+ placement: "top"
73034
73134
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73035
- className: "title-text warning-text"
73036
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73037
73135
  className: "title-text",
73038
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
73136
+ title: targetJsonSchema.title
73039
73137
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
73040
73138
  length: 15
73041
- }), "\uFF09")), targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_13__["default"], {
73139
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_13__["default"], {
73042
73140
  title: targetJsonSchema.description,
73043
73141
  placement: "top"
73044
73142
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_14__["default"], {
@@ -73103,12 +73201,13 @@ __webpack_require__.r(__webpack_exports__);
73103
73201
  /* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
73104
73202
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
73105
73203
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
73106
- /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
73204
+ /* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/dist/mobxreact.esm.js");
73107
73205
  /* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
73108
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
73109
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
73206
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
73207
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
73110
73208
  /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/tooltip/index.js");
73111
- /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/time-picker/index.js");
73209
+ /* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/time-picker/index.js");
73210
+ /* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ant-design/icons */ "../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.js");
73112
73211
  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "../../node_modules/moment/moment.js");
73113
73212
  /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
73114
73213
  /* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
@@ -73124,6 +73223,7 @@ __webpack_require__.r(__webpack_exports__);
73124
73223
 
73125
73224
 
73126
73225
 
73226
+
73127
73227
  var TimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73128
73228
  function TimeFormSchema(props) {
73129
73229
  var _this;
@@ -73185,22 +73285,25 @@ var TimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73185
73285
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
73186
73286
  className: "element-title",
73187
73287
  style: titleStyle
73188
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73189
- className: "title-text warning-text"
73190
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
73191
- title: targetJsonSchema.description,
73288
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
73289
+ title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
73192
73290
  placement: "top"
73193
73291
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73194
73292
  className: "title-text",
73195
- title: (isNeedTwoCol || pageScreen === 'wideScreen') && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
73293
+ title: targetJsonSchema.title
73196
73294
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.truncate)(jsonKey, {
73197
73295
  length: 15
73198
- }), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
73296
+ }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_7__["default"], {
73297
+ title: targetJsonSchema.description,
73298
+ placement: "top"
73299
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_8__["default"], {
73300
+ className: "info-icon"
73301
+ }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
73199
73302
  className: "content-item",
73200
73303
  style: contentStyle
73201
73304
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
73202
73305
  className: "form-item-box"
73203
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
73306
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_9__["default"], {
73204
73307
  style: {
73205
73308
  display: 'inline-block'
73206
73309
  },
@@ -73214,19 +73317,19 @@ var TimeFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73214
73317
  return TimeFormSchema;
73215
73318
  }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
73216
73319
  TimeFormSchema.propTypes = {
73217
- parentType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
73218
- jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
73219
- indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
73220
- keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
73221
- nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
73222
- targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().any)
73320
+ parentType: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
73321
+ jsonKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
73322
+ indexRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
73323
+ keyRoute: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
73324
+ nodeKey: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
73325
+ targetJsonSchema: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any)
73223
73326
  };
73224
- /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.inject)(function (stores) {
73327
+ /* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
73225
73328
  return {
73226
73329
  schemaStore: stores.JSONSchemaStore,
73227
73330
  jsonStore: stores.JSONEditorStore
73228
73331
  };
73229
- })((0,mobx_react__WEBPACK_IMPORTED_MODULE_10__.observer)(TimeFormSchema)));
73332
+ })((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(TimeFormSchema)));
73230
73333
 
73231
73334
  /***/ }),
73232
73335
 
@@ -73256,6 +73359,7 @@ __webpack_require__.r(__webpack_exports__);
73256
73359
 
73257
73360
 
73258
73361
 
73362
+
73259
73363
  var TreeSelectFromSchema = /*#__PURE__*/function (_React$PureComponent) {
73260
73364
  function TreeSelectFromSchema() {
73261
73365
  return _React$PureComponent.apply(this, arguments) || this;
@@ -73425,14 +73529,12 @@ var URLFormSchema = /*#__PURE__*/function (_React$PureComponent) {
73425
73529
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
73426
73530
  className: "element-title",
73427
73531
  style: titleStyle
73428
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73429
- className: "title-text warning-text"
73430
- }, readOnly ? '[只读]' : ''), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
73532
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
73431
73533
  title: pageScreen === 'wideScreen' ? targetJsonSchema.description : '',
73432
73534
  placement: "top"
73433
73535
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
73434
73536
  className: "title-text",
73435
- title: pageScreen === 'wideScreen' && targetJsonSchema.title && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
73537
+ title: targetJsonSchema.title
73436
73538
  }, targetJsonSchema.title, targetJsonSchema.showKey && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, "\uFF08", (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.truncate)(jsonKey, {
73437
73539
  length: 15
73438
73540
  }), "\uFF09"))), pageScreen === 'mobileScreen' && targetJsonSchema.description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_6__["default"], {
@@ -74058,6 +74160,8 @@ __webpack_require__.r(__webpack_exports__);
74058
74160
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74059
74161
  /* harmony export */ buildStyle: function() { return /* binding */ buildStyle; },
74060
74162
  /* harmony export */ deleteWebCacheData: function() { return /* binding */ deleteWebCacheData; },
74163
+ /* harmony export */ formatOptions: function() { return /* binding */ formatOptions; },
74164
+ /* harmony export */ formatOptions1: function() { return /* binding */ formatOptions1; },
74061
74165
  /* harmony export */ getExprProperties: function() { return /* binding */ getExprProperties; },
74062
74166
  /* harmony export */ getParams: function() { return /* binding */ getParams; },
74063
74167
  /* harmony export */ getURLParam: function() { return /* binding */ getURLParam; },
@@ -74250,6 +74354,91 @@ function getExprProperties(schema, data, ignoreList) {
74250
74354
  return schema;
74251
74355
  }
74252
74356
 
74357
+ // options 异常格式 处理,自动转成可用列表格式
74358
+ function formatOptions(options) {
74359
+ var curOptions = [];
74360
+ var optionValue = {}; // 记录对象类型的value
74361
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)) {
74362
+ // curOptions = options;
74363
+ options.forEach(function (option) {
74364
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value)) {
74365
+ var valueStr = JSON.stringify(option.value);
74366
+ curOptions.push({
74367
+ label: option.label || option.name,
74368
+ value: valueStr
74369
+ });
74370
+ optionValue[valueStr] = option.value;
74371
+ } else {
74372
+ curOptions.push(option);
74373
+ }
74374
+ });
74375
+ } else if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isString)(options)) {
74376
+ try {
74377
+ curOptions = JSON.parse(options);
74378
+ var formatResult = formatOptions(curOptions);
74379
+ curOptions = formatResult.options;
74380
+ optionValue = formatResult.optionValue;
74381
+ } catch (error) {
74382
+ console.warn('options 异常数据格式转换失败:', options);
74383
+ }
74384
+ }
74385
+ return {
74386
+ options: curOptions,
74387
+ optionValue: optionValue
74388
+ };
74389
+ }
74390
+ function formatOptions1(options) {
74391
+ var curOptions = [];
74392
+ var optionValue = {}; // 记录对象类型的value
74393
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)) {
74394
+ // curOptions = options;
74395
+ options.forEach(function (option) {
74396
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option)) {
74397
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(option.value)) {
74398
+ var valueStr = JSON.stringify(option.value);
74399
+ curOptions.push({
74400
+ label: option.label || option.name,
74401
+ value: valueStr
74402
+ });
74403
+ optionValue[valueStr] = option.value;
74404
+ } else {
74405
+ curOptions.push(option);
74406
+ }
74407
+ } else if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isString)(option)) {
74408
+ // 兼容异常 option 数据
74409
+ try {
74410
+ var curOption = JSON.parse(option);
74411
+ if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isObject)(curOption.value)) {
74412
+ var _valueStr = JSON.stringify(curOption.value);
74413
+ curOptions.push({
74414
+ label: curOption.label || curOption.name,
74415
+ value: _valueStr
74416
+ });
74417
+ optionValue[_valueStr] = curOption.value;
74418
+ } else {
74419
+ curOptions.push(curOption);
74420
+ }
74421
+ } catch (error) {
74422
+ console.warn('option 异常数据格式转换失败:', option);
74423
+ }
74424
+ }
74425
+ });
74426
+ } else if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_0__.isString)(options)) {
74427
+ try {
74428
+ curOptions = JSON.parse(options);
74429
+ var formatResult = formatOptions(curOptions);
74430
+ curOptions = formatResult.options;
74431
+ optionValue = formatResult.optionValue;
74432
+ } catch (error) {
74433
+ console.warn('options 异常数据格式转换失败:', options);
74434
+ }
74435
+ }
74436
+ return {
74437
+ options: curOptions,
74438
+ optionValue: optionValue
74439
+ };
74440
+ }
74441
+
74253
74442
  /***/ }),
74254
74443
 
74255
74444
  /***/ "./src/utils/typeof.js":