@fairys/taro-tools-react 1.0.7 → 1.0.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/esm/context/page.data.instance.d.ts +1 -1
- package/esm/context/page.data.instance.js +1 -0
- package/esm/context/page.info.data.instance.d.ts +1 -1
- package/esm/context/page.info.data.instance.js +1 -0
- package/lib/context/index.js +2 -2
- package/lib/context/page.data.instance.d.ts +1 -1
- package/lib/context/page.data.instance.js +1 -0
- package/lib/context/page.info.data.instance.d.ts +1 -1
- package/lib/context/page.info.data.instance.js +1 -0
- package/package.json +1 -1
- package/src/context/page.data.instance.tsx +1 -0
- package/src/context/page.info.data.instance.tsx +1 -0
|
@@ -75,7 +75,7 @@ export declare class PageDataInstance<T extends PageDataInstanceState = PageData
|
|
|
75
75
|
/**默认值*/
|
|
76
76
|
defaultInital: T;
|
|
77
77
|
store: T;
|
|
78
|
-
ctor: (options?: PageDataOptions<T>) =>
|
|
78
|
+
ctor: (options?: PageDataOptions<T>) => this;
|
|
79
79
|
/**初始化状态值*/
|
|
80
80
|
main_page_store: (initalValues?: Partial<T>, file?: string[]) => this;
|
|
81
81
|
/**格式化请求参数*/
|
|
@@ -44,6 +44,7 @@ class page_data_instance_PageDataInstance extends ProxyInstanceObjectBase {
|
|
|
44
44
|
this.store.tabItems = external_valtio_ref(options.tabItems);
|
|
45
45
|
this.store.isTabs = Array.isArray(options.tabItems) && options.tabItems.length > 0;
|
|
46
46
|
}
|
|
47
|
+
return this;
|
|
47
48
|
};
|
|
48
49
|
main_page_store = (initalValues = {}, file)=>{
|
|
49
50
|
const newStore = {
|
|
@@ -48,7 +48,7 @@ export declare class PageInfoDataInstance<T extends PageInfoDataInstanceState =
|
|
|
48
48
|
/**是否显示成功提示*/
|
|
49
49
|
isShowSuccessMessage?: boolean;
|
|
50
50
|
};
|
|
51
|
-
ctor(options?: PageInfoDataOptions<T>):
|
|
51
|
+
ctor(options?: PageInfoDataOptions<T>): this;
|
|
52
52
|
store: T;
|
|
53
53
|
/**初始化状态值*/
|
|
54
54
|
main_page_store: (initalValues?: Partial<T>, file?: string[]) => this;
|
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
|
+
"./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__("./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];
|
|
@@ -75,7 +75,7 @@ export declare class PageDataInstance<T extends PageDataInstanceState = PageData
|
|
|
75
75
|
/**默认值*/
|
|
76
76
|
defaultInital: T;
|
|
77
77
|
store: T;
|
|
78
|
-
ctor: (options?: PageDataOptions<T>) =>
|
|
78
|
+
ctor: (options?: PageDataOptions<T>) => this;
|
|
79
79
|
/**初始化状态值*/
|
|
80
80
|
main_page_store: (initalValues?: Partial<T>, file?: string[]) => this;
|
|
81
81
|
/**格式化请求参数*/
|
|
@@ -87,6 +87,7 @@ class page_data_instance_PageDataInstance extends instance_js_namespaceObject.Pr
|
|
|
87
87
|
this.store.tabItems = (0, external_valtio_namespaceObject.ref)(options.tabItems);
|
|
88
88
|
this.store.isTabs = Array.isArray(options.tabItems) && options.tabItems.length > 0;
|
|
89
89
|
}
|
|
90
|
+
return this;
|
|
90
91
|
};
|
|
91
92
|
main_page_store = (initalValues = {}, file)=>{
|
|
92
93
|
const newStore = {
|
|
@@ -48,7 +48,7 @@ export declare class PageInfoDataInstance<T extends PageInfoDataInstanceState =
|
|
|
48
48
|
/**是否显示成功提示*/
|
|
49
49
|
isShowSuccessMessage?: boolean;
|
|
50
50
|
};
|
|
51
|
-
ctor(options?: PageInfoDataOptions<T>):
|
|
51
|
+
ctor(options?: PageInfoDataOptions<T>): this;
|
|
52
52
|
store: T;
|
|
53
53
|
/**初始化状态值*/
|
|
54
54
|
main_page_store: (initalValues?: Partial<T>, file?: string[]) => this;
|
|
@@ -74,6 +74,7 @@ class page_info_data_instance_PageInfoDataInstance extends instance_js_namespace
|
|
|
74
74
|
this.store.editFormData = {};
|
|
75
75
|
}
|
|
76
76
|
if (options?.initialValues) this.main_page_store(options.initialValues);
|
|
77
|
+
return this;
|
|
77
78
|
}
|
|
78
79
|
store = (0, external_valtio_namespaceObject.proxy)({
|
|
79
80
|
...this.defaultInital
|
package/package.json
CHANGED
|
@@ -117,6 +117,7 @@ export class PageDataInstance<
|
|
|
117
117
|
this.store.tabItems = ref(options.tabItems);
|
|
118
118
|
this.store.isTabs = Array.isArray(options.tabItems) && options.tabItems.length > 0;
|
|
119
119
|
}
|
|
120
|
+
return this;
|
|
120
121
|
};
|
|
121
122
|
/**初始化状态值*/
|
|
122
123
|
main_page_store = (initalValues: Partial<T> = {}, file?: string[]) => {
|