@wibetter/json-editor 5.1.7 → 5.1.9
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 +11 -5
- package/package.json +1 -1
- package/sdk/index.css +2 -2
- package/sdk/index.js +13 -7
package/lib/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.1.
|
|
2
|
+
* @wibetter/json-editor v5.1.9
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 13 2025 19:32:30 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.9
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 13 2025 19:32:30 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -4000,14 +4000,16 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
4000
4000
|
name: 'file',
|
|
4001
4001
|
// targetJsonSchema.name || jsonKey || 'imgFile',
|
|
4002
4002
|
action: targetJsonSchema.uploadAction || options.uploadAction,
|
|
4003
|
-
accept: targetJsonSchema.accept || options.uploadAccept,
|
|
4003
|
+
accept: targetJsonSchema.accept || options.uploadAccept || '.jpeg,.jpg,.png',
|
|
4004
4004
|
// multiple: targetJsonSchema.multiple ?? false,
|
|
4005
4005
|
maxCount: targetJsonSchema.multiple ? targetJsonSchema.maxCount || 1 : 1,
|
|
4006
4006
|
defaultFileList: defaultFileList,
|
|
4007
4007
|
// showUploadList: false,
|
|
4008
4008
|
listType: (_targetJsonSchema$lis = targetJsonSchema.listType) != null ? _targetJsonSchema$lis : 'picture-card',
|
|
4009
|
+
withCredentials: true,
|
|
4010
|
+
method: targetJsonSchema.uploadMethod || options.uploadMethod || 'POST',
|
|
4009
4011
|
headers: {
|
|
4010
|
-
authorization: targetJsonSchema.authorization || 'authorization-content'
|
|
4012
|
+
// authorization: targetJsonSchema.authorization || 'authorization-content', // 会影响默认的图片上传
|
|
4011
4013
|
},
|
|
4012
4014
|
onChange: this.handleImageChange,
|
|
4013
4015
|
onRemove: this.handleDeleteChange
|
|
@@ -5963,6 +5965,10 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
5963
5965
|
});
|
|
5964
5966
|
curJsonData = valueArray;
|
|
5965
5967
|
}
|
|
5968
|
+
var curValue = curJsonData || targetJsonSchema.default;
|
|
5969
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.isObject)(curValue)) {
|
|
5970
|
+
curValue = JSON.stringify(curValue);
|
|
5971
|
+
}
|
|
5966
5972
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.style)) : {};
|
|
5967
5973
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
5968
5974
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_9__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_3__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -6001,7 +6007,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
6001
6007
|
minWidth: '120px'
|
|
6002
6008
|
},
|
|
6003
6009
|
onChange: this.handleValueChange,
|
|
6004
|
-
defaultValue:
|
|
6010
|
+
defaultValue: curValue,
|
|
6005
6011
|
disabled: readOnly,
|
|
6006
6012
|
allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true
|
|
6007
6013
|
}, 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.9
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 13 2025 19:32:50 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.9
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Jan 13 2025 19:32:50 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -70385,14 +70385,16 @@ var InputImageSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
70385
70385
|
name: 'file',
|
|
70386
70386
|
// targetJsonSchema.name || jsonKey || 'imgFile',
|
|
70387
70387
|
action: targetJsonSchema.uploadAction || options.uploadAction,
|
|
70388
|
-
accept: targetJsonSchema.accept || options.uploadAccept,
|
|
70388
|
+
accept: targetJsonSchema.accept || options.uploadAccept || '.jpeg,.jpg,.png',
|
|
70389
70389
|
// multiple: targetJsonSchema.multiple ?? false,
|
|
70390
70390
|
maxCount: targetJsonSchema.multiple ? targetJsonSchema.maxCount || 1 : 1,
|
|
70391
70391
|
defaultFileList: defaultFileList,
|
|
70392
70392
|
// showUploadList: false,
|
|
70393
70393
|
listType: (_targetJsonSchema$lis = targetJsonSchema.listType) != null ? _targetJsonSchema$lis : 'picture-card',
|
|
70394
|
+
withCredentials: true,
|
|
70395
|
+
method: targetJsonSchema.uploadMethod || options.uploadMethod || 'POST',
|
|
70394
70396
|
headers: {
|
|
70395
|
-
authorization: targetJsonSchema.authorization || 'authorization-content'
|
|
70397
|
+
// authorization: targetJsonSchema.authorization || 'authorization-content', // 会影响默认的图片上传
|
|
70396
70398
|
},
|
|
70397
70399
|
onChange: this.handleImageChange,
|
|
70398
70400
|
onRemove: this.handleDeleteChange
|
|
@@ -72307,6 +72309,10 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72307
72309
|
});
|
|
72308
72310
|
curJsonData = valueArray;
|
|
72309
72311
|
}
|
|
72312
|
+
var curValue = curJsonData || targetJsonSchema.default;
|
|
72313
|
+
if ((0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_3__.isObject)(curValue)) {
|
|
72314
|
+
curValue = JSON.stringify(curValue);
|
|
72315
|
+
}
|
|
72310
72316
|
var style = targetJsonSchema.style ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.style)) : {};
|
|
72311
72317
|
var titleStyle = targetJsonSchema.titleStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.titleStyle)) : {};
|
|
72312
72318
|
var contentStyle = targetJsonSchema.contentStyle ? (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.buildStyle)((0,mobx__WEBPACK_IMPORTED_MODULE_2__.toJS)(targetJsonSchema.contentStyle)) : {};
|
|
@@ -72345,7 +72351,7 @@ var SelectSchema = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
72345
72351
|
minWidth: '120px'
|
|
72346
72352
|
},
|
|
72347
72353
|
onChange: this.handleValueChange,
|
|
72348
|
-
defaultValue:
|
|
72354
|
+
defaultValue: curValue,
|
|
72349
72355
|
disabled: readOnly,
|
|
72350
72356
|
allowClear: (_targetJsonSchema$all = targetJsonSchema.allowClear) != null ? _targetJsonSchema$all : true
|
|
72351
72357
|
}, options && options.length > 0 && options.map(function (item, optionIndex) {
|
|
@@ -269402,7 +269408,7 @@ var initDynamicConfig = {
|
|
|
269402
269408
|
],
|
|
269403
269409
|
default: 'string',
|
|
269404
269410
|
isConditionProp: true,
|
|
269405
|
-
description: '',
|
|
269411
|
+
description: '在MP后台或资源中心配置时的交互方式,推荐使用"选择"',
|
|
269406
269412
|
onShow: 'type === "ContentStaticConfig" || type === "ResourceCenter"',
|
|
269407
269413
|
},
|
|
269408
269414
|
range: {
|
|
@@ -269693,7 +269699,7 @@ var initSohuSourceData = {
|
|
|
269693
269699
|
default: 1,
|
|
269694
269700
|
minimum: 0,
|
|
269695
269701
|
maximum: 1000,
|
|
269696
|
-
description: '',
|
|
269702
|
+
description: '该位置区块需要的内容条数',
|
|
269697
269703
|
},
|
|
269698
269704
|
TITLE: {
|
|
269699
269705
|
title: '标题',
|