@wibetter/json-editor 5.0.29 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.css +322 -2
- package/lib/index.js +577 -48
- package/package.json +1 -1
- package/sdk/index.css +322 -2
- package/sdk/index.js +632 -51
package/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.
|
|
2
|
+
* @wibetter/json-editor v5.1.1
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Thu Jan 09 2025 11:34:04 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -66857,26 +66857,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66857
66857
|
/* harmony import */ var $renderers_EventSchema_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! $renderers/EventSchema/index */ "./src/renderers/EventSchema/index.js");
|
|
66858
66858
|
/* harmony import */ var $renderers_QuantitySchema_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! $renderers/QuantitySchema/index */ "./src/renderers/QuantitySchema/index.js");
|
|
66859
66859
|
/* harmony import */ var $renderers_BoxStyleSchema_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! $renderers/BoxStyleSchema/index */ "./src/renderers/BoxStyleSchema/index.js");
|
|
66860
|
-
/* harmony import */ var $
|
|
66861
|
-
/* harmony import */ var $
|
|
66862
|
-
/* harmony import */ var $
|
|
66863
|
-
/* harmony import */ var $
|
|
66864
|
-
/* harmony import */ var $
|
|
66865
|
-
/* harmony import */ var $
|
|
66866
|
-
/* harmony import */ var $
|
|
66867
|
-
/* harmony import */ var $
|
|
66868
|
-
/* harmony import */ var $
|
|
66869
|
-
/* harmony import */ var $
|
|
66870
|
-
/* harmony import */ var $
|
|
66871
|
-
/* harmony import */ var $
|
|
66872
|
-
/* harmony import */ var $
|
|
66873
|
-
/* harmony import */ var $
|
|
66874
|
-
/* harmony import */ var $
|
|
66875
|
-
/* harmony import */ var $
|
|
66876
|
-
/* harmony import */ var $
|
|
66877
|
-
/* harmony import */ var $
|
|
66878
|
-
/* harmony import */ var $
|
|
66879
|
-
/* harmony import */ var $
|
|
66860
|
+
/* harmony import */ var $renderers_PaddingAndMarginSchema_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! $renderers/PaddingAndMarginSchema/index */ "./src/renderers/PaddingAndMarginSchema/index.js");
|
|
66861
|
+
/* harmony import */ var $renderers_RadioSchema_index__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! $renderers/RadioSchema/index */ "./src/renderers/RadioSchema/index.js");
|
|
66862
|
+
/* harmony import */ var $renderers_CheckboxSchema_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! $renderers/CheckboxSchema/index */ "./src/renderers/CheckboxSchema/index.js");
|
|
66863
|
+
/* harmony import */ var $renderers_InputFormSchema_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! $renderers/InputFormSchema/index */ "./src/renderers/InputFormSchema/index.js");
|
|
66864
|
+
/* harmony import */ var $renderers_TextAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! $renderers/TextAreaFormSchema/index */ "./src/renderers/TextAreaFormSchema/index.js");
|
|
66865
|
+
/* harmony import */ var $renderers_TextEditorSchema_index__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! $renderers/TextEditorSchema/index */ "./src/renderers/TextEditorSchema/index.js");
|
|
66866
|
+
/* harmony import */ var $renderers_NumberFormSchema_index__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! $renderers/NumberFormSchema/index */ "./src/renderers/NumberFormSchema/index.js");
|
|
66867
|
+
/* harmony import */ var $renderers_BooleanFormSchema_index__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! $renderers/BooleanFormSchema/index */ "./src/renderers/BooleanFormSchema/index.js");
|
|
66868
|
+
/* harmony import */ var $renderers_SelectSchema_index__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! $renderers/SelectSchema/index */ "./src/renderers/SelectSchema/index.js");
|
|
66869
|
+
/* harmony import */ var $renderers_CascaderSchema_index__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! $renderers/CascaderSchema/index */ "./src/renderers/CascaderSchema/index.js");
|
|
66870
|
+
/* harmony import */ var $renderers_InputImageSchema_index__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! $renderers/InputImageSchema/index */ "./src/renderers/InputImageSchema/index.js");
|
|
66871
|
+
/* harmony import */ var $renderers_DateTimeFormSchema_index__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! $renderers/DateTimeFormSchema/index */ "./src/renderers/DateTimeFormSchema/index.js");
|
|
66872
|
+
/* harmony import */ var $renderers_TimeFormSchema_index__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! $renderers/TimeFormSchema/index */ "./src/renderers/TimeFormSchema/index.js");
|
|
66873
|
+
/* harmony import */ var $renderers_URLFormSchema_index__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! $renderers/URLFormSchema/index */ "./src/renderers/URLFormSchema/index.js");
|
|
66874
|
+
/* harmony import */ var $renderers_ColorFormSchemaV3_index__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! $renderers/ColorFormSchemaV3/index */ "./src/renderers/ColorFormSchemaV3/index.js");
|
|
66875
|
+
/* harmony import */ var $renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! $renderers/JsonFormSchema/index */ "./src/renderers/JsonFormSchema/index.js");
|
|
66876
|
+
/* harmony import */ var $renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! $renderers/CodeAreaFormSchema/index */ "./src/renderers/CodeAreaFormSchema/index.js");
|
|
66877
|
+
/* harmony import */ var $renderers_HtmlAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! $renderers/HtmlAreaFormSchema/index */ "./src/renderers/HtmlAreaFormSchema/index.js");
|
|
66878
|
+
/* harmony import */ var $renderers_DynamicConfigSchema_index__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! $renderers/DynamicConfigSchema/index */ "./src/renderers/DynamicConfigSchema/index.js");
|
|
66879
|
+
/* harmony import */ var $renderers_SohuDataSourceSchema_index__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! $renderers/SohuDataSourceSchema/index */ "./src/renderers/SohuDataSourceSchema/index.js");
|
|
66880
|
+
/* harmony import */ var $renderers_SohuEventSchema_index__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! $renderers/SohuEventSchema/index */ "./src/renderers/SohuEventSchema/index.js");
|
|
66880
66881
|
|
|
66881
66882
|
|
|
66882
66883
|
|
|
@@ -66908,6 +66909,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66908
66909
|
|
|
66909
66910
|
|
|
66910
66911
|
|
|
66912
|
+
|
|
66911
66913
|
|
|
66912
66914
|
|
|
66913
66915
|
/** 根据当前类型选择对应的组件进行渲染 */
|
|
@@ -66951,15 +66953,15 @@ var MappingRender = function MappingRender(props) {
|
|
|
66951
66953
|
key: curNodeKey
|
|
66952
66954
|
}));
|
|
66953
66955
|
case 'dynamic-config':
|
|
66954
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
66956
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_DynamicConfigSchema_index__WEBPACK_IMPORTED_MODULE_29__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66955
66957
|
key: curNodeKey
|
|
66956
66958
|
}));
|
|
66957
66959
|
case 'sohu-source':
|
|
66958
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
66960
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_SohuDataSourceSchema_index__WEBPACK_IMPORTED_MODULE_30__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66959
66961
|
key: curNodeKey
|
|
66960
66962
|
}));
|
|
66961
66963
|
case 'sohu-event':
|
|
66962
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
66964
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_SohuEventSchema_index__WEBPACK_IMPORTED_MODULE_31__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66963
66965
|
key: curNodeKey
|
|
66964
66966
|
}));
|
|
66965
66967
|
case 'array':
|
|
@@ -66986,78 +66988,82 @@ var MappingRender = function MappingRender(props) {
|
|
|
66986
66988
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_BoxStyleSchema_index__WEBPACK_IMPORTED_MODULE_10__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66987
66989
|
key: curNodeKey
|
|
66988
66990
|
}));
|
|
66991
|
+
case 'padding-margin':
|
|
66992
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_PaddingAndMarginSchema_index__WEBPACK_IMPORTED_MODULE_11__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66993
|
+
key: curNodeKey
|
|
66994
|
+
}));
|
|
66989
66995
|
case 'radio':
|
|
66990
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
66996
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_RadioSchema_index__WEBPACK_IMPORTED_MODULE_12__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66991
66997
|
key: curNodeKey
|
|
66992
66998
|
}));
|
|
66993
66999
|
case 'select':
|
|
66994
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67000
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_SelectSchema_index__WEBPACK_IMPORTED_MODULE_19__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66995
67001
|
key: curNodeKey
|
|
66996
67002
|
}));
|
|
66997
67003
|
case 'cascader':
|
|
66998
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67004
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_CascaderSchema_index__WEBPACK_IMPORTED_MODULE_20__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
66999
67005
|
key: curNodeKey
|
|
67000
67006
|
}));
|
|
67001
67007
|
case 'checkboxes':
|
|
67002
67008
|
// 多选
|
|
67003
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67009
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_CheckboxSchema_index__WEBPACK_IMPORTED_MODULE_13__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67004
67010
|
key: curNodeKey
|
|
67005
67011
|
}));
|
|
67006
67012
|
case 'input':
|
|
67007
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67013
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_InputFormSchema_index__WEBPACK_IMPORTED_MODULE_14__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67008
67014
|
key: curNodeKey
|
|
67009
67015
|
}));
|
|
67010
67016
|
case 'textarea':
|
|
67011
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67017
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_TextAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_15__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67012
67018
|
key: curNodeKey
|
|
67013
67019
|
}));
|
|
67014
67020
|
case 'text-editor':
|
|
67015
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67021
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_TextEditorSchema_index__WEBPACK_IMPORTED_MODULE_16__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67016
67022
|
key: curNodeKey
|
|
67017
67023
|
}));
|
|
67018
67024
|
case 'number':
|
|
67019
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67025
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_NumberFormSchema_index__WEBPACK_IMPORTED_MODULE_17__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67020
67026
|
key: curNodeKey
|
|
67021
67027
|
}));
|
|
67022
67028
|
case 'boolean':
|
|
67023
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67029
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_BooleanFormSchema_index__WEBPACK_IMPORTED_MODULE_18__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67024
67030
|
key: curNodeKey
|
|
67025
67031
|
}));
|
|
67026
67032
|
case 'date':
|
|
67027
67033
|
case 'date-time':
|
|
67028
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67034
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_DateTimeFormSchema_index__WEBPACK_IMPORTED_MODULE_22__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67029
67035
|
key: curNodeKey
|
|
67030
67036
|
}));
|
|
67031
67037
|
case 'time':
|
|
67032
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67038
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_TimeFormSchema_index__WEBPACK_IMPORTED_MODULE_23__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67033
67039
|
key: curNodeKey
|
|
67034
67040
|
}));
|
|
67035
67041
|
case 'url':
|
|
67036
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67042
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_URLFormSchema_index__WEBPACK_IMPORTED_MODULE_24__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67037
67043
|
key: curNodeKey
|
|
67038
67044
|
}));
|
|
67039
67045
|
case 'color':
|
|
67040
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67046
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_ColorFormSchemaV3_index__WEBPACK_IMPORTED_MODULE_25__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67041
67047
|
key: curNodeKey
|
|
67042
67048
|
}));
|
|
67043
67049
|
case 'input-image':
|
|
67044
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67050
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_InputImageSchema_index__WEBPACK_IMPORTED_MODULE_21__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67045
67051
|
key: curNodeKey
|
|
67046
67052
|
}));
|
|
67047
67053
|
case 'json':
|
|
67048
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67054
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_JsonFormSchema_index__WEBPACK_IMPORTED_MODULE_26__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67049
67055
|
key: curNodeKey
|
|
67050
67056
|
}));
|
|
67051
67057
|
case 'codearea':
|
|
67052
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67058
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_CodeAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_27__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67053
67059
|
key: curNodeKey
|
|
67054
67060
|
}));
|
|
67055
67061
|
case 'htmlarea':
|
|
67056
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67062
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_HtmlAreaFormSchema_index__WEBPACK_IMPORTED_MODULE_28__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67057
67063
|
key: curNodeKey
|
|
67058
67064
|
}));
|
|
67059
67065
|
default:
|
|
67060
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($
|
|
67066
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement($renderers_InputFormSchema_index__WEBPACK_IMPORTED_MODULE_14__["default"], (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newProps, {
|
|
67061
67067
|
key: curNodeKey
|
|
67062
67068
|
}));
|
|
67063
67069
|
}
|
|
@@ -67697,9 +67703,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
67697
67703
|
targetJsonSchema = _this$props.targetJsonSchema;
|
|
67698
67704
|
// 从jsonData中获取对应的数值
|
|
67699
67705
|
var curJsonData = getJSONDataByKeyRoute(keyRoute);
|
|
67700
|
-
|
|
67701
|
-
var unitJsonKey = targetJsonSchema.propertyOrder[0];
|
|
67702
|
-
var unitJsonSchema = targetJsonSchema.properties[unitJsonKey];
|
|
67706
|
+
var unitJsonSchema = targetJsonSchema.properties['unit'];
|
|
67703
67707
|
var quantity = curJsonData.quantity; // 获取数值单位
|
|
67704
67708
|
var unitStr = curJsonData.unit || unitJsonSchema.default; // 获取数值
|
|
67705
67709
|
// 重置数值
|
|
@@ -67708,7 +67712,7 @@ var BoxStyleSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
67708
67712
|
right: '',
|
|
67709
67713
|
bottom: '',
|
|
67710
67714
|
left: '',
|
|
67711
|
-
quantity: quantity
|
|
67715
|
+
quantity: quantity
|
|
67712
67716
|
};
|
|
67713
67717
|
// 设置盒子模型数值
|
|
67714
67718
|
if (unitStr) {
|
|
@@ -71104,6 +71108,490 @@ ObjectSchema.propTypes = {
|
|
|
71104
71108
|
|
|
71105
71109
|
/***/ }),
|
|
71106
71110
|
|
|
71111
|
+
/***/ "./src/renderers/PaddingAndMarginSchema/index.js":
|
|
71112
|
+
/*!*******************************************************!*\
|
|
71113
|
+
!*** ./src/renderers/PaddingAndMarginSchema/index.js ***!
|
|
71114
|
+
\*******************************************************/
|
|
71115
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
71116
|
+
|
|
71117
|
+
"use strict";
|
|
71118
|
+
__webpack_require__.r(__webpack_exports__);
|
|
71119
|
+
/* 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
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
71121
|
+
/* 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");
|
|
71123
|
+
/* 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__);
|
|
71126
|
+
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd */ "../../node_modules/antd/es/select/index.js");
|
|
71127
|
+
/* 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");
|
|
71130
|
+
/* harmony import */ var _wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wibetter/json-utils */ "../json-utils/dist/index.esm.js");
|
|
71131
|
+
/* harmony import */ var $utils_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! $utils/index */ "./src/utils/index.js");
|
|
71132
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.scss */ "./src/renderers/PaddingAndMarginSchema/index.scss");
|
|
71133
|
+
/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
71134
|
+
|
|
71135
|
+
|
|
71136
|
+
|
|
71137
|
+
|
|
71138
|
+
|
|
71139
|
+
|
|
71140
|
+
var Option = antd__WEBPACK_IMPORTED_MODULE_3__["default"].Option;
|
|
71141
|
+
|
|
71142
|
+
|
|
71143
|
+
|
|
71144
|
+
var PaddingAndMarginSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
71145
|
+
function PaddingAndMarginSchema(props) {
|
|
71146
|
+
var _this;
|
|
71147
|
+
_this = _React$PureComponent.call(this, props) || this;
|
|
71148
|
+
// 记录box-style的数值(无需实时响应)
|
|
71149
|
+
_this.boxStyle = {
|
|
71150
|
+
margin: {
|
|
71151
|
+
top: '',
|
|
71152
|
+
right: '',
|
|
71153
|
+
bottom: '',
|
|
71154
|
+
left: ''
|
|
71155
|
+
},
|
|
71156
|
+
padding: {
|
|
71157
|
+
top: '',
|
|
71158
|
+
right: '',
|
|
71159
|
+
bottom: '',
|
|
71160
|
+
left: ''
|
|
71161
|
+
},
|
|
71162
|
+
quantity: 'px'
|
|
71163
|
+
};
|
|
71164
|
+
/** 初始化boxStyle的数值 */
|
|
71165
|
+
_this.initBoxStyle = function () {
|
|
71166
|
+
var jsonStore = _this.props.jsonStore;
|
|
71167
|
+
var _ref = jsonStore || {},
|
|
71168
|
+
getJSONDataByKeyRoute = _ref.getJSONDataByKeyRoute;
|
|
71169
|
+
var _this$props = _this.props,
|
|
71170
|
+
keyRoute = _this$props.keyRoute,
|
|
71171
|
+
targetJsonSchema = _this$props.targetJsonSchema;
|
|
71172
|
+
// 从jsonData中获取对应的数值
|
|
71173
|
+
var curJsonData = getJSONDataByKeyRoute(keyRoute);
|
|
71174
|
+
var marginSchema = targetJsonSchema.properties['margin'];
|
|
71175
|
+
var paddingSchema = targetJsonSchema.properties['padding'];
|
|
71176
|
+
var quantitySchema = targetJsonSchema.properties['quantity'];
|
|
71177
|
+
var quantity = curJsonData.quantity || quantitySchema.default; // 获取数值单位
|
|
71178
|
+
var marginValue = curJsonData.margin || marginSchema.default;
|
|
71179
|
+
var paddingValue = curJsonData.padding || paddingSchema.default;
|
|
71180
|
+
marginValue = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isNumber)(marginValue) ? marginValue.toString() : marginValue || 'auto';
|
|
71181
|
+
paddingValue = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isNumber)(paddingValue) ? paddingValue.toString() : paddingValue || 'auto';
|
|
71182
|
+
|
|
71183
|
+
// 重置数值
|
|
71184
|
+
_this.boxStyle.quantity = quantity;
|
|
71185
|
+
var marginValueArr = marginValue.split(' ');
|
|
71186
|
+
_this.boxStyle.margin.top = _this.getStyleValText(marginValueArr[0]);
|
|
71187
|
+
_this.boxStyle.margin.right = _this.getStyleValText(marginValueArr[1], paddingValue);
|
|
71188
|
+
_this.boxStyle.margin.bottom = _this.getStyleValText(marginValueArr[2] || marginValueArr[0]);
|
|
71189
|
+
_this.boxStyle.margin.left = _this.getStyleValText(marginValueArr[3] || marginValueArr[1], paddingValue);
|
|
71190
|
+
var paddingValueArr = paddingValue.split(' ');
|
|
71191
|
+
_this.boxStyle.padding.top = _this.getStyleValText(paddingValueArr[0]);
|
|
71192
|
+
_this.boxStyle.padding.right = _this.getStyleValText(paddingValueArr[1], paddingValue);
|
|
71193
|
+
_this.boxStyle.padding.bottom = _this.getStyleValText(paddingValueArr[2] || paddingValueArr[0]);
|
|
71194
|
+
_this.boxStyle.padding.left = _this.getStyleValText(paddingValueArr[3] || paddingValueArr[1], paddingValue);
|
|
71195
|
+
};
|
|
71196
|
+
_this.getStyleValText = function (valStr, defaultValue) {
|
|
71197
|
+
var curValue = 'auto';
|
|
71198
|
+
if (valStr === 'auto' || valStr === 0 || valStr === '' || valStr === '0') {
|
|
71199
|
+
curValue = valStr;
|
|
71200
|
+
} else if (/^\$/.test(valStr)) {
|
|
71201
|
+
// 识别特殊字符串数值: 保留以 $ 开头的数值
|
|
71202
|
+
curValue = valStr;
|
|
71203
|
+
} else if (valStr) {
|
|
71204
|
+
curValue = parseInt(valStr);
|
|
71205
|
+
curValue = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isNumber)(curValue) ? curValue : 'auto';
|
|
71206
|
+
} else if (defaultValue !== undefined) {
|
|
71207
|
+
curValue = defaultValue;
|
|
71208
|
+
}
|
|
71209
|
+
return curValue;
|
|
71210
|
+
};
|
|
71211
|
+
_this.getStyleVal = function (valStr) {
|
|
71212
|
+
var curValue = '';
|
|
71213
|
+
if (valStr === 'auto' || valStr === 0) {
|
|
71214
|
+
curValue = valStr;
|
|
71215
|
+
} else if (/^\$/.test(valStr)) {
|
|
71216
|
+
// 识别特殊字符串数值: 保留以 $ 开头的数值
|
|
71217
|
+
return valStr;
|
|
71218
|
+
} else if (valStr === '') {
|
|
71219
|
+
curValue = 'auto';
|
|
71220
|
+
} else if (valStr) {
|
|
71221
|
+
curValue = parseInt(valStr);
|
|
71222
|
+
curValue = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isNumber)(curValue) ? curValue : 'auto';
|
|
71223
|
+
}
|
|
71224
|
+
if (curValue === 'auto' || curValue === 0) {
|
|
71225
|
+
return curValue;
|
|
71226
|
+
}
|
|
71227
|
+
return "" + curValue + _this.boxStyle.quantity;
|
|
71228
|
+
};
|
|
71229
|
+
/** 设置布局容器的盒子模型数值 */
|
|
71230
|
+
_this.setLayoutBoxStyle = function (newVal, layoutStyleLock, styleKey, propKey) {
|
|
71231
|
+
if (layoutStyleLock) {
|
|
71232
|
+
_this.linkLayoutBoxStyle(newVal, styleKey);
|
|
71233
|
+
} else {
|
|
71234
|
+
var curValue = _this.getStyleValText(newVal);
|
|
71235
|
+
if (curValue !== undefined) {
|
|
71236
|
+
_this.boxStyle[styleKey][propKey] = curValue;
|
|
71237
|
+
} else {
|
|
71238
|
+
_this.boxStyle[styleKey][propKey] = '';
|
|
71239
|
+
}
|
|
71240
|
+
_this.updateBoxStyleState();
|
|
71241
|
+
}
|
|
71242
|
+
};
|
|
71243
|
+
/** 布局容器的盒子模型数值联动设值 */
|
|
71244
|
+
_this.linkLayoutBoxStyle = function (newVal, styleKey) {
|
|
71245
|
+
var curValue = _this.getStyleValText(newVal);
|
|
71246
|
+
if (curValue !== undefined) {
|
|
71247
|
+
_this.boxStyle[styleKey]['top'] = curValue;
|
|
71248
|
+
_this.boxStyle[styleKey]['right'] = curValue;
|
|
71249
|
+
_this.boxStyle[styleKey]['bottom'] = curValue;
|
|
71250
|
+
_this.boxStyle[styleKey]['left'] = curValue;
|
|
71251
|
+
} else {
|
|
71252
|
+
_this.boxStyle[styleKey]['top'] = '';
|
|
71253
|
+
_this.boxStyle[styleKey]['right'] = '';
|
|
71254
|
+
_this.boxStyle[styleKey]['bottom'] = '';
|
|
71255
|
+
_this.boxStyle[styleKey]['left'] = '';
|
|
71256
|
+
}
|
|
71257
|
+
_this.updateBoxStyleState();
|
|
71258
|
+
};
|
|
71259
|
+
/** 数值变动事件处理器 */
|
|
71260
|
+
_this.updateBoxStyleState = function () {
|
|
71261
|
+
var _this$props2 = _this.props,
|
|
71262
|
+
keyRoute = _this$props2.keyRoute,
|
|
71263
|
+
jsonStore = _this$props2.jsonStore;
|
|
71264
|
+
var _ref2 = jsonStore || {},
|
|
71265
|
+
updateFormValueData = _ref2.updateFormValueData;
|
|
71266
|
+
var renderAction = _this.state.renderAction;
|
|
71267
|
+
/** 获取布局容器的盒子模型数值 */
|
|
71268
|
+
var curBoxValue = {
|
|
71269
|
+
margin: _this.getMarginValue(),
|
|
71270
|
+
padding: _this.getPaddingValue(),
|
|
71271
|
+
quantity: _this.boxStyle.quantity
|
|
71272
|
+
};
|
|
71273
|
+
updateFormValueData(keyRoute, curBoxValue); // 更新单位数值
|
|
71274
|
+
_this.setState({
|
|
71275
|
+
renderAction: !renderAction
|
|
71276
|
+
});
|
|
71277
|
+
};
|
|
71278
|
+
_this.getSelectAfter = function (curJsonData) {
|
|
71279
|
+
var targetJsonSchema = _this.props.targetJsonSchema;
|
|
71280
|
+
var quantitySchema = targetJsonSchema.properties['quantity'];
|
|
71281
|
+
var quantity = curJsonData.quantity || quantitySchema.default;
|
|
71282
|
+
|
|
71283
|
+
/*
|
|
71284
|
+
// 暂时不支持单位切换
|
|
71285
|
+
const selectAfter = (
|
|
71286
|
+
<Select defaultValue={quantity} onChange={this.quantityChange}>
|
|
71287
|
+
{quantitySchema.options &&
|
|
71288
|
+
quantitySchema.options.length > 0 &&
|
|
71289
|
+
quantitySchema.options.map((option) => (
|
|
71290
|
+
<Option value={option.value}>{option.label}</Option>
|
|
71291
|
+
))}
|
|
71292
|
+
</Select>
|
|
71293
|
+
);
|
|
71294
|
+
*/
|
|
71295
|
+
var selectAfter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, quantity);
|
|
71296
|
+
return selectAfter;
|
|
71297
|
+
};
|
|
71298
|
+
_this.quantityChange = function (newVal) {
|
|
71299
|
+
var _this$props3 = _this.props,
|
|
71300
|
+
keyRoute = _this$props3.keyRoute,
|
|
71301
|
+
jsonStore = _this$props3.jsonStore;
|
|
71302
|
+
var _ref3 = jsonStore || {},
|
|
71303
|
+
updateFormValueData = _ref3.updateFormValueData;
|
|
71304
|
+
var curBoxValue = {
|
|
71305
|
+
margin: _this.getMarginValue(),
|
|
71306
|
+
padding: _this.getPaddingValue(),
|
|
71307
|
+
quantity: newVal
|
|
71308
|
+
};
|
|
71309
|
+
updateFormValueData(keyRoute, curBoxValue);
|
|
71310
|
+
};
|
|
71311
|
+
_this.setType = function (newVal) {
|
|
71312
|
+
_this.setState({
|
|
71313
|
+
type: newVal
|
|
71314
|
+
});
|
|
71315
|
+
};
|
|
71316
|
+
_this.getMarginValue = function () {
|
|
71317
|
+
return _this.getStyleVal(_this.boxStyle.margin.top) + " " + _this.getStyleVal(_this.boxStyle.margin.right) + " " + _this.getStyleVal(_this.boxStyle.margin.bottom) + " " + _this.getStyleVal(_this.boxStyle.margin.left);
|
|
71318
|
+
};
|
|
71319
|
+
_this.getPaddingValue = function () {
|
|
71320
|
+
return _this.getStyleVal(_this.boxStyle.padding.top) + " " + _this.getStyleVal(_this.boxStyle.padding.right) + " " + _this.getStyleVal(_this.boxStyle.padding.bottom) + " " + _this.getStyleVal(_this.boxStyle.padding.left);
|
|
71321
|
+
};
|
|
71322
|
+
_this.state = {
|
|
71323
|
+
type: 'all',
|
|
71324
|
+
// 设置类型,支持 自定义设值(custom)、统一设值(all)
|
|
71325
|
+
layoutStyleLock: false,
|
|
71326
|
+
// 是否锁住容器数值值的设置,默认为false,设置为true后4个数值同时联动
|
|
71327
|
+
renderAction: false // 用于主动触发render的临时变量
|
|
71328
|
+
};
|
|
71329
|
+
// 这边绑定是必要的,这样 `this` 才能在回调函数中使用
|
|
71330
|
+
_this.updateBoxStyleState = _this.updateBoxStyleState.bind(_this);
|
|
71331
|
+
_this.initBoxStyle = _this.initBoxStyle.bind(_this);
|
|
71332
|
+
_this.getStyleValText = _this.getStyleValText.bind(_this);
|
|
71333
|
+
_this.getSelectAfter = _this.getSelectAfter.bind(_this);
|
|
71334
|
+
_this.setLayoutBoxStyle = _this.setLayoutBoxStyle.bind(_this);
|
|
71335
|
+
_this.linkLayoutBoxStyle = _this.linkLayoutBoxStyle.bind(_this);
|
|
71336
|
+
_this.getSelectAfter = _this.getSelectAfter.bind(_this);
|
|
71337
|
+
_this.quantityChange = _this.quantityChange.bind(_this);
|
|
71338
|
+
return _this;
|
|
71339
|
+
}
|
|
71340
|
+
(0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(PaddingAndMarginSchema, _React$PureComponent);
|
|
71341
|
+
var _proto = PaddingAndMarginSchema.prototype;
|
|
71342
|
+
_proto.componentWillMount = function componentWillMount() {
|
|
71343
|
+
this.initBoxStyle();
|
|
71344
|
+
};
|
|
71345
|
+
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
71346
|
+
this.initBoxStyle();
|
|
71347
|
+
};
|
|
71348
|
+
_proto.render = function render() {
|
|
71349
|
+
var _this2 = this;
|
|
71350
|
+
var _this$props4 = this.props,
|
|
71351
|
+
nodeKey = _this$props4.nodeKey,
|
|
71352
|
+
jsonKey = _this$props4.jsonKey,
|
|
71353
|
+
targetJsonSchema = _this$props4.targetJsonSchema,
|
|
71354
|
+
keyRoute = _this$props4.keyRoute;
|
|
71355
|
+
var _this$props5 = this.props,
|
|
71356
|
+
schemaStore = _this$props5.schemaStore,
|
|
71357
|
+
jsonStore = _this$props5.jsonStore;
|
|
71358
|
+
var _ref4 = schemaStore || {},
|
|
71359
|
+
pageScreen = _ref4.pageScreen;
|
|
71360
|
+
var _ref5 = jsonStore || {},
|
|
71361
|
+
getJSONDataByKeyRoute = _ref5.getJSONDataByKeyRoute;
|
|
71362
|
+
var _this$state = this.state,
|
|
71363
|
+
renderAction = _this$state.renderAction,
|
|
71364
|
+
layoutStyleLock = _this$state.layoutStyleLock,
|
|
71365
|
+
type = _this$state.type;
|
|
71366
|
+
var readOnly = targetJsonSchema.readOnly || false; // 是否只读(默认可编辑)
|
|
71367
|
+
|
|
71368
|
+
// 从jsonData中获取对应的数值
|
|
71369
|
+
var curJsonData = getJSONDataByKeyRoute(keyRoute) || {};
|
|
71370
|
+
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
|
|
71371
|
+
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
71372
|
+
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_5__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
71373
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71374
|
+
className: (pageScreen === 'wideScreen' ? 'wide-screen-element-warp' : "mobile-screen-element-warp") + " " + (renderAction ? 'render-mark' : ''),
|
|
71375
|
+
id: nodeKey,
|
|
71376
|
+
key: nodeKey,
|
|
71377
|
+
style: style
|
|
71378
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71379
|
+
className: "element-title",
|
|
71380
|
+
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,
|
|
71385
|
+
placement: "top"
|
|
71386
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
|
|
71387
|
+
className: "title-text",
|
|
71388
|
+
title: pageScreen === 'wideScreen' && targetJsonSchema.title.length > (readOnly ? 4 : 6) ? targetJsonSchema.title : ''
|
|
71389
|
+
}, 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
|
+
length: 15
|
|
71391
|
+
}), "\uFF09")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71392
|
+
className: "content-item Style-PaddingAndMargin",
|
|
71393
|
+
style: contentStyle
|
|
71394
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71395
|
+
className: "Style-PaddingAndMargin-inner"
|
|
71396
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71397
|
+
className: "Style-PaddingAndMargin-label Style-PaddingAndMargin-label--custom"
|
|
71398
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71399
|
+
className: "\n Style-PaddingAndMargin-label-all\n " + (type === 'all' ? 'Style-PaddingAndMargin-label-all--active' : ''),
|
|
71400
|
+
onClick: function onClick() {
|
|
71401
|
+
return _this2.setType('all');
|
|
71402
|
+
}
|
|
71403
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71404
|
+
className: "\n Style-PaddingAndMargin-label-custom\n " + (type === 'custom' ? 'Style-PaddingAndMargin-label-custom--active' : ''),
|
|
71405
|
+
onClick: function onClick() {
|
|
71406
|
+
return _this2.setType('custom');
|
|
71407
|
+
}
|
|
71408
|
+
}, /*#__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
|
+
className: "Style-PaddingAndMargin-input"
|
|
71410
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71411
|
+
name: "layoutMargin",
|
|
71412
|
+
addonAfter: this.getSelectAfter(curJsonData),
|
|
71413
|
+
className: "layout-item-margin",
|
|
71414
|
+
size: "small",
|
|
71415
|
+
defaultValue: this.boxStyle['margin'].top,
|
|
71416
|
+
onChange: function onChange(event) {
|
|
71417
|
+
var newVal = event.target.value;
|
|
71418
|
+
_this2.setLayoutBoxStyle(newVal, true, 'margin');
|
|
71419
|
+
}
|
|
71420
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71421
|
+
className: "Style-PaddingAndMargin-input-label"
|
|
71422
|
+
}, "\u5916\u8FB9\u8DDD")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71423
|
+
className: "Style-PaddingAndMargin-input"
|
|
71424
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71425
|
+
name: "layoutPadding",
|
|
71426
|
+
addonAfter: this.getSelectAfter(curJsonData),
|
|
71427
|
+
className: "layout-item-padding",
|
|
71428
|
+
size: "small",
|
|
71429
|
+
defaultValue: this.boxStyle['padding'].top,
|
|
71430
|
+
onChange: function onChange(event) {
|
|
71431
|
+
var newVal = event.target.value;
|
|
71432
|
+
_this2.setLayoutBoxStyle(newVal, true, 'padding');
|
|
71433
|
+
}
|
|
71434
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71435
|
+
className: "Style-PaddingAndMargin-input-label"
|
|
71436
|
+
}, "\u5185\u8FB9\u8DDD")))), type !== 'all' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71437
|
+
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"], {
|
|
71439
|
+
content: function content() {
|
|
71440
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71441
|
+
name: "layoutPaddingTop",
|
|
71442
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71443
|
+
className: "layout-item-padding",
|
|
71444
|
+
size: "small",
|
|
71445
|
+
defaultValue: _this2.boxStyle['padding'].top,
|
|
71446
|
+
onChange: function onChange(event) {
|
|
71447
|
+
var newVal = event.target.value;
|
|
71448
|
+
_this2.setLayoutBoxStyle(newVal, false, 'padding', 'top');
|
|
71449
|
+
}
|
|
71450
|
+
});
|
|
71451
|
+
},
|
|
71452
|
+
title: ""
|
|
71453
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71454
|
+
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"], {
|
|
71456
|
+
content: function content() {
|
|
71457
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71458
|
+
name: "layoutPaddingTop",
|
|
71459
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71460
|
+
className: "layout-item-padding",
|
|
71461
|
+
size: "small",
|
|
71462
|
+
defaultValue: _this2.boxStyle['padding'].right,
|
|
71463
|
+
onChange: function onChange(event) {
|
|
71464
|
+
var newVal = event.target.value;
|
|
71465
|
+
_this2.setLayoutBoxStyle(newVal, false, 'padding', 'right');
|
|
71466
|
+
}
|
|
71467
|
+
});
|
|
71468
|
+
},
|
|
71469
|
+
title: ""
|
|
71470
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71471
|
+
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"], {
|
|
71473
|
+
content: function content() {
|
|
71474
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71475
|
+
name: "layoutPaddingBottom",
|
|
71476
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71477
|
+
className: "layout-item-padding",
|
|
71478
|
+
size: "small",
|
|
71479
|
+
defaultValue: _this2.boxStyle['padding'].bottom,
|
|
71480
|
+
onChange: function onChange(event) {
|
|
71481
|
+
var newVal = event.target.value;
|
|
71482
|
+
_this2.setLayoutBoxStyle(newVal, false, 'padding', 'bottom');
|
|
71483
|
+
}
|
|
71484
|
+
});
|
|
71485
|
+
},
|
|
71486
|
+
title: ""
|
|
71487
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71488
|
+
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"], {
|
|
71490
|
+
content: function content() {
|
|
71491
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71492
|
+
name: "layoutPaddingLeft",
|
|
71493
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71494
|
+
className: "layout-item-padding",
|
|
71495
|
+
size: "small",
|
|
71496
|
+
defaultValue: _this2.boxStyle['padding'].left,
|
|
71497
|
+
onChange: function onChange(event) {
|
|
71498
|
+
var newVal = event.target.value;
|
|
71499
|
+
_this2.setLayoutBoxStyle(newVal, false, 'padding', 'left');
|
|
71500
|
+
}
|
|
71501
|
+
});
|
|
71502
|
+
},
|
|
71503
|
+
title: ""
|
|
71504
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71505
|
+
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"], {
|
|
71507
|
+
content: function content() {
|
|
71508
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71509
|
+
name: "layoutMarginTop",
|
|
71510
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71511
|
+
className: "layout-item-margin",
|
|
71512
|
+
size: "small",
|
|
71513
|
+
defaultValue: _this2.boxStyle['margin'].top,
|
|
71514
|
+
onChange: function onChange(event) {
|
|
71515
|
+
var newVal = event.target.value;
|
|
71516
|
+
_this2.setLayoutBoxStyle(newVal, false, 'margin', 'top');
|
|
71517
|
+
}
|
|
71518
|
+
});
|
|
71519
|
+
},
|
|
71520
|
+
title: ""
|
|
71521
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71522
|
+
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"], {
|
|
71524
|
+
content: function content() {
|
|
71525
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71526
|
+
name: "layoutMarginRight",
|
|
71527
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71528
|
+
className: "layout-item-margin",
|
|
71529
|
+
size: "small",
|
|
71530
|
+
defaultValue: _this2.boxStyle['margin'].right,
|
|
71531
|
+
onChange: function onChange(event) {
|
|
71532
|
+
var newVal = event.target.value;
|
|
71533
|
+
_this2.setLayoutBoxStyle(newVal, false, 'margin', 'right');
|
|
71534
|
+
}
|
|
71535
|
+
});
|
|
71536
|
+
},
|
|
71537
|
+
title: ""
|
|
71538
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71539
|
+
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"], {
|
|
71541
|
+
content: function content() {
|
|
71542
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71543
|
+
name: "layoutMarginBottom",
|
|
71544
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71545
|
+
className: "layout-item-margin",
|
|
71546
|
+
size: "small",
|
|
71547
|
+
defaultValue: _this2.boxStyle['margin'].bottom,
|
|
71548
|
+
onChange: function onChange(event) {
|
|
71549
|
+
var newVal = event.target.value;
|
|
71550
|
+
_this2.setLayoutBoxStyle(newVal, false, 'margin', 'bottom');
|
|
71551
|
+
}
|
|
71552
|
+
});
|
|
71553
|
+
},
|
|
71554
|
+
title: ""
|
|
71555
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71556
|
+
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"], {
|
|
71558
|
+
content: function content() {
|
|
71559
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(antd__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
71560
|
+
name: "layoutMarginLeft",
|
|
71561
|
+
addonAfter: _this2.getSelectAfter(curJsonData),
|
|
71562
|
+
className: "layout-item-margin",
|
|
71563
|
+
size: "small",
|
|
71564
|
+
defaultValue: _this2.boxStyle['margin'].left,
|
|
71565
|
+
onChange: function onChange(event) {
|
|
71566
|
+
var newVal = event.target.value;
|
|
71567
|
+
_this2.setLayoutBoxStyle(newVal, false, 'margin', 'left');
|
|
71568
|
+
}
|
|
71569
|
+
});
|
|
71570
|
+
},
|
|
71571
|
+
title: ""
|
|
71572
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
|
71573
|
+
className: "Style-PaddingAndMargin-custom-marginLeft"
|
|
71574
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, this.getStyleVal(this.boxStyle['margin'].left) || '-'))))));
|
|
71575
|
+
};
|
|
71576
|
+
return PaddingAndMarginSchema;
|
|
71577
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent);
|
|
71578
|
+
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)
|
|
71585
|
+
};
|
|
71586
|
+
/* harmony default export */ __webpack_exports__["default"] = ((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.inject)(function (stores) {
|
|
71587
|
+
return {
|
|
71588
|
+
schemaStore: stores.JSONSchemaStore,
|
|
71589
|
+
jsonStore: stores.JSONEditorStore
|
|
71590
|
+
};
|
|
71591
|
+
})((0,mobx_react__WEBPACK_IMPORTED_MODULE_11__.observer)(PaddingAndMarginSchema)));
|
|
71592
|
+
|
|
71593
|
+
/***/ }),
|
|
71594
|
+
|
|
71107
71595
|
/***/ "./src/renderers/QuantitySchema/index.js":
|
|
71108
71596
|
/*!***********************************************!*\
|
|
71109
71597
|
!*** ./src/renderers/QuantitySchema/index.js ***!
|
|
@@ -71844,19 +72332,24 @@ var SohuDataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
71844
72332
|
jsonStore = _this$props.jsonStore;
|
|
71845
72333
|
var _ref = schemaStore || {},
|
|
71846
72334
|
pageScreen = _ref.pageScreen;
|
|
71847
|
-
|
|
72335
|
+
var _ref2 = jsonStore || {},
|
|
72336
|
+
getJSONDataByKeyRoute = _ref2.getJSONDataByKeyRoute,
|
|
72337
|
+
JSONEditorObj = _ref2.JSONEditorObj;
|
|
71848
72338
|
var _this$props2 = this.props,
|
|
71849
72339
|
indexRoute = _this$props2.indexRoute,
|
|
71850
72340
|
jsonKey = _this$props2.jsonKey,
|
|
71851
72341
|
nodeKey = _this$props2.nodeKey,
|
|
71852
72342
|
keyRoute = _this$props2.keyRoute,
|
|
71853
72343
|
targetJsonSchema = _this$props2.targetJsonSchema;
|
|
72344
|
+
|
|
71854
72345
|
// 获取前端缓存中的折叠数据
|
|
71855
72346
|
var collapseData = ['mainConfig'];
|
|
71856
72347
|
var collapseCacheData = (0,$utils_webCache__WEBPACK_IMPORTED_MODULE_7__.getJSONEditorCache)(keyRoute);
|
|
71857
72348
|
if (collapseCacheData && (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isArray)(collapseCacheData)) {
|
|
71858
72349
|
collapseData = collapseCacheData;
|
|
71859
72350
|
}
|
|
72351
|
+
var curData = getJSONDataByKeyRoute(keyRoute) || {};
|
|
72352
|
+
curData = Object.assign({}, JSONEditorObj, curData);
|
|
71860
72353
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_8__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
|
|
71861
72354
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_8__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
71862
72355
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_8__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -71899,6 +72392,9 @@ var SohuDataSourceSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
71899
72392
|
/** 5. 获取当前元素的id,用于做唯一标识 */
|
|
71900
72393
|
var childNodeKey = nodeKey + "-" + curType + "-" + currentJsonKey;
|
|
71901
72394
|
if (currentSchemaData.propertyOrder && currentSchemaData.propertyOrder.length > 0) {
|
|
72395
|
+
if ((0,$utils_index__WEBPACK_IMPORTED_MODULE_8__.hasProperties)(currentSchemaData.onShow) && currentSchemaData.onShow !== '' && ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isBoolean)(currentSchemaData.onShow) && !currentSchemaData.onShow || (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.isString)(currentSchemaData.onShow) && !(0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_4__.evalExpression)(currentSchemaData.onShow, curData))) {
|
|
72396
|
+
return;
|
|
72397
|
+
}
|
|
71902
72398
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Panel, {
|
|
71903
72399
|
header: currentSchemaData.title,
|
|
71904
72400
|
key: currentJsonKey
|
|
@@ -156196,6 +156692,16 @@ module.exports = Math.pow;
|
|
|
156196
156692
|
|
|
156197
156693
|
/***/ }),
|
|
156198
156694
|
|
|
156695
|
+
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/PaddingAndMarginSchema/index.scss":
|
|
156696
|
+
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156697
|
+
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/PaddingAndMarginSchema/index.scss ***!
|
|
156698
|
+
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
156699
|
+
/***/ (function() {
|
|
156700
|
+
|
|
156701
|
+
// extracted by mini-css-extract-plugin
|
|
156702
|
+
|
|
156703
|
+
/***/ }),
|
|
156704
|
+
|
|
156199
156705
|
/***/ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/RemoteDynamicDataSchema/index.scss":
|
|
156200
156706
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
156201
156707
|
!*** ../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/RemoteDynamicDataSchema/index.scss ***!
|
|
@@ -266798,6 +267304,27 @@ if(false) {}
|
|
|
266798
267304
|
|
|
266799
267305
|
/***/ }),
|
|
266800
267306
|
|
|
267307
|
+
/***/ "./src/renderers/PaddingAndMarginSchema/index.scss":
|
|
267308
|
+
/*!*********************************************************!*\
|
|
267309
|
+
!*** ./src/renderers/PaddingAndMarginSchema/index.scss ***!
|
|
267310
|
+
\*********************************************************/
|
|
267311
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
267312
|
+
|
|
267313
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
267314
|
+
|
|
267315
|
+
// load the styles
|
|
267316
|
+
var content = __webpack_require__(/*! !!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../../../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./index.scss */ "../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-11.use[1]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[4]!../../node_modules/sass-resources-loader/lib/loader.js??clonedRuleSet-11.use[5]!./src/renderers/PaddingAndMarginSchema/index.scss");
|
|
267317
|
+
if(content.__esModule) content = content.default;
|
|
267318
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
267319
|
+
if(content.locals) module.exports = content.locals;
|
|
267320
|
+
// add the styles to the DOM
|
|
267321
|
+
var add = (__webpack_require__(/*! !../../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "../../node_modules/vue-style-loader/lib/addStylesClient.js")["default"])
|
|
267322
|
+
var update = add("6e510ca0", content, false, {"sourceMap":false});
|
|
267323
|
+
// Hot Module Replacement
|
|
267324
|
+
if(false) {}
|
|
267325
|
+
|
|
267326
|
+
/***/ }),
|
|
267327
|
+
|
|
266801
267328
|
/***/ "./src/renderers/RemoteDynamicDataSchema/index.scss":
|
|
266802
267329
|
/*!**********************************************************!*\
|
|
266803
267330
|
!*** ./src/renderers/RemoteDynamicDataSchema/index.scss ***!
|
|
@@ -267574,7 +268101,6 @@ var initJSONSchemaData = {
|
|
|
267574
268101
|
func: {
|
|
267575
268102
|
type: 'object',
|
|
267576
268103
|
title: '功能设置',
|
|
267577
|
-
isContainer: false,
|
|
267578
268104
|
properties: {
|
|
267579
268105
|
a: {
|
|
267580
268106
|
title: '单文本框',
|
|
@@ -267593,7 +268119,6 @@ var initJSONSchemaData = {
|
|
|
267593
268119
|
style: {
|
|
267594
268120
|
type: 'object',
|
|
267595
268121
|
title: '样式设置',
|
|
267596
|
-
isContainer: false,
|
|
267597
268122
|
properties: {
|
|
267598
268123
|
b: {
|
|
267599
268124
|
title: '单文本框',
|
|
@@ -267610,7 +268135,6 @@ var initJSONSchemaData = {
|
|
|
267610
268135
|
data: {
|
|
267611
268136
|
type: 'data',
|
|
267612
268137
|
title: '数据设置',
|
|
267613
|
-
isContainer: false,
|
|
267614
268138
|
properties: {
|
|
267615
268139
|
c: {
|
|
267616
268140
|
title: '单文本框',
|
|
@@ -268191,6 +268715,61 @@ var initBoxStyleData = {
|
|
|
268191
268715
|
propertyOrder: ['unit', 'quantity'],
|
|
268192
268716
|
};
|
|
268193
268717
|
|
|
268718
|
+
/** padding-margin 字段项
|
|
268719
|
+
* 【字段属性说明】
|
|
268720
|
+
* title:字段项的label值
|
|
268721
|
+
* properties:存放所有的子字段数据内容
|
|
268722
|
+
* type:用于标识字段项的展示类型(input、date、data-time、url、textarea 等)
|
|
268723
|
+
* readOnly:字段项可设置是否可编辑
|
|
268724
|
+
* required:存放所有子字段的key值,用于验证子字段项是否存在,同时required可充当排序功能
|
|
268725
|
+
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
268726
|
+
* */
|
|
268727
|
+
var initPaddingMarginData = {
|
|
268728
|
+
type: 'padding-margin',
|
|
268729
|
+
title: '边距设置',
|
|
268730
|
+
isContainer: false,
|
|
268731
|
+
properties: {
|
|
268732
|
+
margin: {
|
|
268733
|
+
title: '外边距',
|
|
268734
|
+
type: 'input',
|
|
268735
|
+
default: '0',
|
|
268736
|
+
// 默认值为'0':'0px 0px 0px 0px';为'5px': '5px 5px 5px 5px'
|
|
268737
|
+
description: '',
|
|
268738
|
+
},
|
|
268739
|
+
padding: {
|
|
268740
|
+
title: '内边距',
|
|
268741
|
+
type: 'input',
|
|
268742
|
+
default: '0',
|
|
268743
|
+
description: '',
|
|
268744
|
+
},
|
|
268745
|
+
quantity: {
|
|
268746
|
+
type: 'select',
|
|
268747
|
+
// 选择列表
|
|
268748
|
+
default: 'px',
|
|
268749
|
+
options: [
|
|
268750
|
+
{
|
|
268751
|
+
label: 'px',
|
|
268752
|
+
value: 'px',
|
|
268753
|
+
},
|
|
268754
|
+
{
|
|
268755
|
+
label: 'rem',
|
|
268756
|
+
value: 'rem',
|
|
268757
|
+
},
|
|
268758
|
+
{
|
|
268759
|
+
label: 'em',
|
|
268760
|
+
value: 'em',
|
|
268761
|
+
},
|
|
268762
|
+
{
|
|
268763
|
+
label: '%',
|
|
268764
|
+
value: '%',
|
|
268765
|
+
},
|
|
268766
|
+
],
|
|
268767
|
+
title: '单位类型',
|
|
268768
|
+
},
|
|
268769
|
+
},
|
|
268770
|
+
propertyOrder: ['margin', 'padding', 'quantity'],
|
|
268771
|
+
};
|
|
268772
|
+
|
|
268194
268773
|
/* json类型字段
|
|
268195
268774
|
* 【字段属性说明】
|
|
268196
268775
|
* title:字段项的label值
|
|
@@ -269652,6 +270231,7 @@ var TypeDataList = {
|
|
|
269652
270231
|
time: initTimeData,
|
|
269653
270232
|
quantity: initQuantityData,
|
|
269654
270233
|
'box-style': initBoxStyleData,
|
|
270234
|
+
'padding-margin': initPaddingMarginData,
|
|
269655
270235
|
radio: initRadioData,
|
|
269656
270236
|
select: initSelectData,
|
|
269657
270237
|
cascader: initCascaderSchema,
|
|
@@ -274708,6 +275288,7 @@ var valExpectType =
|
|
|
274708
275288
|
array: 'array',
|
|
274709
275289
|
boolean: 'boolean',
|
|
274710
275290
|
'box-style': 'object',
|
|
275291
|
+
'padding-margin': 'object',
|
|
274711
275292
|
codearea: 'string',
|
|
274712
275293
|
color: 'string',
|
|
274713
275294
|
datasource: 'object',
|