@fairys/taro-tools-react 1.0.6 → 1.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.
|
@@ -26,6 +26,7 @@ class page_info_data_instance_PageInfoDataInstance extends ProxyInstanceObjectBa
|
|
|
26
26
|
'editFormData',
|
|
27
27
|
'loading'
|
|
28
28
|
];
|
|
29
|
+
this.defaultInital.editFormData = {};
|
|
29
30
|
this.store.editFormData = {};
|
|
30
31
|
}
|
|
31
32
|
if (options?.initialValues) this.main_page_store(options.initialValues);
|
package/lib/context/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __webpack_modules__ = {
|
|
|
6
6
|
"./global.data.instance": function(module) {
|
|
7
7
|
module.exports = require("./global.data.instance.js");
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"context/global.setting.data.instance": function(module) {
|
|
10
10
|
module.exports = require("./global.setting.data.instance.js");
|
|
11
11
|
},
|
|
12
12
|
"./page.data.instance": function(module) {
|
|
@@ -83,7 +83,7 @@ var __webpack_exports__ = {};
|
|
|
83
83
|
return _auth_data_instance__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
84
84
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
85
85
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
86
|
-
var _global_setting_data_instance__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("
|
|
86
|
+
var _global_setting_data_instance__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("context/global.setting.data.instance");
|
|
87
87
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
88
88
|
for(var __WEBPACK_IMPORT_KEY__ in _global_setting_data_instance__WEBPACK_IMPORTED_MODULE_4__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
89
89
|
return _global_setting_data_instance__WEBPACK_IMPORTED_MODULE_4__[key];
|
|
@@ -70,6 +70,7 @@ class page_info_data_instance_PageInfoDataInstance extends instance_js_namespace
|
|
|
70
70
|
'editFormData',
|
|
71
71
|
'loading'
|
|
72
72
|
];
|
|
73
|
+
this.defaultInital.editFormData = {};
|
|
73
74
|
this.store.editFormData = {};
|
|
74
75
|
}
|
|
75
76
|
if (options?.initialValues) this.main_page_store(options.initialValues);
|
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@ import { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
4
4
|
import navigate from '../utils/navigate';
|
|
5
5
|
import { globalDataInstance } from './global.data.instance';
|
|
6
6
|
import { globalSettingDataInstance } from './global.setting.data.instance';
|
|
7
|
-
import { PageDataInstance } from './page.data.instance';
|
|
8
7
|
import { useDidShow } from '@tarojs/taro';
|
|
9
8
|
import Taro from '@tarojs/taro';
|
|
10
9
|
|
|
@@ -73,6 +72,7 @@ export class PageInfoDataInstance<
|
|
|
73
72
|
ctor(options?: PageInfoDataOptions<T>) {
|
|
74
73
|
if (options?.isProxy) {
|
|
75
74
|
this.notRefFields = ['editFormData', 'loading'];
|
|
75
|
+
this.defaultInital.editFormData = {};
|
|
76
76
|
this.store.editFormData = {};
|
|
77
77
|
}
|
|
78
78
|
if (options?.initialValues) {
|