@wibetter/json-editor 5.1.25 → 5.1.26

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * @wibetter/json-editor v5.1.25
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 22:59:49 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @wibetter/json-editor v5.1.25
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:16 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 22:59:49 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -7445,7 +7445,9 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
7445
7445
  this.initJsonData = (0,$utils_index__WEBPACK_IMPORTED_MODULE_7__.objClone)(this.jsonData); // 备份过滤钱的数据对象
7446
7446
  // 判断当前schema是否为空
7447
7447
  if (jsonSchema) {
7448
- this.jsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.schema2json)(jsonSchema, jsonData || {});
7448
+ var newJsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_6__.schema2json)(jsonSchema, jsonData || {});
7449
+ this.jsonData = Object.assign({}, jsonData, newJsonData);
7450
+ // this.jsonData = newJsonData;
7449
7451
  // 记录当前初始化的时间
7450
7452
  this.updateLastTime();
7451
7453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibetter/json-editor",
3
- "version": "5.1.25",
3
+ "version": "5.1.26",
4
4
  "description": "JSON数据可视化/JSONEditor, 可视化界面编辑json数据",
5
5
  "keywords": [
6
6
  "json",
package/sdk/index.css CHANGED
@@ -2,7 +2,7 @@
2
2
  * @wibetter/json-editor v5.1.25
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:00:05 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
package/sdk/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @wibetter/json-editor v5.1.25
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Fri Jan 24 2025 18:27:30 GMT+0800 (中国标准时间)
5
+ * build time: Fri Jan 24 2025 23:00:05 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -73378,7 +73378,9 @@ var JSONEditorStore = (_dec = mobx__WEBPACK_IMPORTED_MODULE_4__.action.bound, _d
73378
73378
  this.initJsonData = (0,$utils_index__WEBPACK_IMPORTED_MODULE_6__.objClone)(this.jsonData); // 备份过滤钱的数据对象
73379
73379
  // 判断当前schema是否为空
73380
73380
  if (jsonSchema) {
73381
- this.jsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.schema2json)(jsonSchema, jsonData || {});
73381
+ var newJsonData = (0,_wibetter_json_utils__WEBPACK_IMPORTED_MODULE_5__.schema2json)(jsonSchema, jsonData || {});
73382
+ this.jsonData = Object.assign({}, jsonData, newJsonData);
73383
+ // this.jsonData = newJsonData;
73382
73384
  // 记录当前初始化的时间
73383
73385
  this.updateLastTime();
73384
73386
  }