@wibetter/json-editor 5.1.7 → 5.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.css +2 -2
- package/lib/index.js +7 -3
- package/package.json +1 -1
- package/sdk/index.css +2 -2
- package/sdk/index.js +7 -3
package/lib/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.8
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Jan 12 2025 20:46:54 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.8
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Jan 12 2025 20:46:54 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -5963,6 +5963,10 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
5963
5963
|
});
|
|
5964
5964
|
curJsonData = valueArray;
|
|
5965
5965
|
}
|
|
5966
|
+
var curValue = curJsonData || targetJsonSchema.default;
|
|
5967
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(curValue)) {
|
|
5968
|
+
curValue = JSON.stringify(curValue);
|
|
5969
|
+
}
|
|
5966
5970
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.style)) : {};
|
|
5967
5971
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
5968
5972
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -6001,7 +6005,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
6001
6005
|
minWidth: '120px'
|
|
6002
6006
|
},
|
|
6003
6007
|
onChange: this.handleValueChange,
|
|
6004
|
-
defaultValue:
|
|
6008
|
+
defaultValue: curValue,
|
|
6005
6009
|
disabled: readOnly,
|
|
6006
6010
|
allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true
|
|
6007
6011
|
}, options && options.length > 0 && options.map(function (item, optionIndex) {
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.8
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Jan 12 2025 20:46:39 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
package/sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.8
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Sun Jan 12 2025 20:46:39 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -72307,6 +72307,10 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72307
72307
|
});
|
|
72308
72308
|
curJsonData = valueArray;
|
|
72309
72309
|
}
|
|
72310
|
+
var curValue = curJsonData || targetJsonSchema.default;
|
|
72311
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(curValue)) {
|
|
72312
|
+
curValue = JSON.stringify(curValue);
|
|
72313
|
+
}
|
|
72310
72314
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
|
|
72311
72315
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
72312
72316
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -72345,7 +72349,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72345
72349
|
minWidth: '120px'
|
|
72346
72350
|
},
|
|
72347
72351
|
onChange: this.handleValueChange,
|
|
72348
|
-
defaultValue:
|
|
72352
|
+
defaultValue: curValue,
|
|
72349
72353
|
disabled: readOnly,
|
|
72350
72354
|
allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true
|
|
72351
72355
|
}, options && options.length > 0 && options.map(function (item, optionIndex) {
|