@wibetter/json-editor 5.0.5 → 5.0.7
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 +4 -12
- package/package.json +1 -1
- package/sdk/index.css +2 -2
- package/sdk/index.js +253304 -358977
package/lib/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.0.
|
|
2
|
+
* @wibetter/json-editor v5.0.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Dec 20 2024 23:28:02 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.0.
|
|
2
|
+
* @wibetter/json-editor v5.0.5
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Fri Dec 20 2024 23:28:02 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -4399,7 +4399,6 @@
|
|
|
4399
4399
|
pageScreen = _this$props.pageScreen,
|
|
4400
4400
|
targetJsonSchema = _this$props.targetJsonSchema,
|
|
4401
4401
|
isArrayItem = _this$props.isArrayItem,
|
|
4402
|
-
arrIndex = _this$props.arrIndex,
|
|
4403
4402
|
isStructuredSchema = _this$props.isStructuredSchema,
|
|
4404
4403
|
getJSONDataByKeyRoute = _this$props.getJSONDataByKeyRoute,
|
|
4405
4404
|
keyRoute2indexRoute = _this$props.keyRoute2indexRoute,
|
|
@@ -4416,7 +4415,7 @@
|
|
|
4416
4415
|
null
|
|
4417
4416
|
? _targetJsonSchema$sho
|
|
4418
4417
|
: true; // 从jsonData中获取对应的数值
|
|
4419
|
-
var curJsonData = getJSONDataByKeyRoute(keyRoute);
|
|
4418
|
+
var curJsonData = getJSONDataByKeyRoute(keyRoute) || {};
|
|
4420
4419
|
var curNodeKey =
|
|
4421
4420
|
nodeKey + '-' + curJsonData.type + '-' + curJsonData.valueType;
|
|
4422
4421
|
|
|
@@ -9057,12 +9056,6 @@
|
|
|
9057
9056
|
targetJsonSchema.properties['mainConfig']
|
|
9058
9057
|
.properties[currentJsonKey],
|
|
9059
9058
|
);
|
|
9060
|
-
console.log(
|
|
9061
|
-
'mainConfigJsonData:',
|
|
9062
|
-
currentSchemaData,
|
|
9063
|
-
currentJsonKey,
|
|
9064
|
-
mainConfigJsonData,
|
|
9065
|
-
);
|
|
9066
9059
|
/** 4. 判断是否是容器类型元素,如果是则禁止选中 */
|
|
9067
9060
|
var curType = currentSchemaData.type;
|
|
9068
9061
|
/** 5. 获取当前元素的id,用于做唯一标识 */
|
|
@@ -9461,7 +9454,6 @@
|
|
|
9461
9454
|
globalEventMap[event.code] ||
|
|
9462
9455
|
event.desc ||
|
|
9463
9456
|
event.name;
|
|
9464
|
-
console.log(event, eventTitle, globalEventMap);
|
|
9465
9457
|
var optionNodeKey =
|
|
9466
9458
|
nodeKey + '-allEmitEvent-' + eventTitle;
|
|
9467
9459
|
return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
@@ -12075,7 +12067,7 @@
|
|
|
12075
12067
|
this.state.rootJSONStore.JSONEditorStore.initJsonData = (0,
|
|
12076
12068
|
_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.objClone)(
|
|
12077
12069
|
curJsonData,
|
|
12078
|
-
); //
|
|
12070
|
+
); // 备份此前的数据对象
|
|
12079
12071
|
/** jsonSchema变动的时候触发一次jsonDataChange
|
|
12080
12072
|
* jsonSchema变动意味着jsonData也需要进行对应的结构更新
|
|
12081
12073
|
* */
|
package/package.json
CHANGED
package/sdk/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wibetter/json-editor v5.0.
|
|
2
|
+
* @wibetter/json-editor v5.0.7
|
|
3
3
|
* author: wibetter
|
|
4
4
|
* build tool: AKFun
|
|
5
|
-
* build time:
|
|
5
|
+
* build time: Mon Dec 23 2024 18:08:06 GMT+0800 (中国标准时间)
|
|
6
6
|
* build tool info: https://github.com/wibetter/akfun
|
|
7
7
|
*/
|
|
8
8
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|