@fairys/taro-tools-react 1.0.4 → 1.0.6

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.
Files changed (50) hide show
  1. package/esm/context/auth.data.instance.d.ts +3 -3
  2. package/esm/context/auth.data.instance.js +6 -6
  3. package/esm/context/global.data.instance.d.ts +4 -0
  4. package/esm/context/global.data.instance.js +5 -0
  5. package/esm/context/page.info.data.instance.d.ts +1 -1
  6. package/lib/components/EnterLoading/index.d.ts +14 -0
  7. package/lib/components/EnterLoading/index.js +112 -0
  8. package/lib/components/MainPage/index.d.ts +10 -0
  9. package/lib/components/MainPage/index.js +102 -0
  10. package/lib/components/Mesage/index.d.ts +48 -0
  11. package/lib/components/Mesage/index.js +172 -0
  12. package/lib/components/Portal/index.d.ts +8 -0
  13. package/lib/components/Portal/index.js +45 -0
  14. package/lib/components/Toast/index.d.ts +1 -0
  15. package/lib/components/Toast/index.js +54 -0
  16. package/lib/components/connectToastMessage/index.d.ts +10 -0
  17. package/lib/components/connectToastMessage/index.js +62 -0
  18. package/lib/components/index.d.ts +6 -0
  19. package/lib/components/index.js +105 -0
  20. package/lib/context/auth.data.instance.d.ts +81 -0
  21. package/lib/context/auth.data.instance.js +155 -0
  22. package/lib/context/global.data.instance.d.ts +54 -0
  23. package/lib/context/global.data.instance.js +122 -0
  24. package/lib/context/global.setting.data.instance.d.ts +56 -0
  25. package/lib/context/global.setting.data.instance.js +79 -0
  26. package/lib/context/index.d.ts +5 -0
  27. package/lib/context/index.js +96 -0
  28. package/lib/context/page.data.instance.d.ts +151 -0
  29. package/lib/context/page.data.instance.js +382 -0
  30. package/lib/context/page.info.data.instance.d.ts +93 -0
  31. package/lib/context/page.info.data.instance.js +226 -0
  32. package/lib/index.d.ts +3 -0
  33. package/lib/styles/index.css +715 -0
  34. package/lib/utils/index.d.ts +4 -0
  35. package/lib/utils/index.js +87 -0
  36. package/lib/utils/navigate.d.ts +109 -0
  37. package/lib/utils/navigate.js +99 -0
  38. package/lib/utils/request.d.ts +179 -0
  39. package/lib/utils/request.js +358 -0
  40. package/lib/utils/useId.d.ts +2 -0
  41. package/lib/utils/useId.js +50 -0
  42. package/lib/utils/valtio/index.d.ts +9 -0
  43. package/lib/utils/valtio/index.js +99 -0
  44. package/lib/utils/valtio/instance.d.ts +17 -0
  45. package/lib/utils/valtio/instance.js +80 -0
  46. package/package.json +4 -3
  47. package/src/context/auth.data.instance.ts +6 -6
  48. package/src/context/global.data.instance.ts +11 -0
  49. package/src/context/page.info.data.instance.tsx +1 -1
  50. package/src/utils/navigate.ts +1 -0
@@ -0,0 +1,382 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.n = (module)=>{
5
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
6
+ __webpack_require__.d(getter, {
7
+ a: getter
8
+ });
9
+ return getter;
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.d = (exports1, definition)=>{
14
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
15
+ enumerable: true,
16
+ get: definition[key]
17
+ });
18
+ };
19
+ })();
20
+ (()=>{
21
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
+ })();
23
+ (()=>{
24
+ __webpack_require__.r = (exports1)=>{
25
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
+ value: 'Module'
27
+ });
28
+ Object.defineProperty(exports1, '__esModule', {
29
+ value: true
30
+ });
31
+ };
32
+ })();
33
+ var __webpack_exports__ = {};
34
+ __webpack_require__.r(__webpack_exports__);
35
+ __webpack_require__.d(__webpack_exports__, {
36
+ PageDataInstanceContextProvider: ()=>PageDataInstanceContextProvider,
37
+ usePageDataInstance: ()=>usePageDataInstance,
38
+ PageDataInstance: ()=>page_data_instance_PageDataInstance,
39
+ usePageDataInstanceContext: ()=>usePageDataInstanceContext,
40
+ usePageDataInstanceState: ()=>usePageDataInstanceState,
41
+ PageDataInstanceContext: ()=>PageDataInstanceContext
42
+ });
43
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
44
+ const external_valtio_namespaceObject = require("valtio");
45
+ const instance_js_namespaceObject = require("../utils/valtio/instance.js");
46
+ const external_react_namespaceObject = require("react");
47
+ const external_global_setting_data_instance_js_namespaceObject = require("./global.setting.data.instance.js");
48
+ const taro_namespaceObject = require("@tarojs/taro");
49
+ var taro_default = /*#__PURE__*/ __webpack_require__.n(taro_namespaceObject);
50
+ class page_data_instance_PageDataInstance extends instance_js_namespaceObject.ProxyInstanceObjectBase {
51
+ notRefFields = [
52
+ 'search',
53
+ 'loading'
54
+ ];
55
+ onBefore;
56
+ getList;
57
+ onAfter;
58
+ onExtraData;
59
+ onError;
60
+ getResetValues;
61
+ defaultQuery = {};
62
+ codeFields = [];
63
+ valueFields = [];
64
+ is_scroll_page = true;
65
+ defaultInital = {
66
+ page: 1,
67
+ pageSize: 10,
68
+ total: 0,
69
+ search: {},
70
+ dataList: (0, external_valtio_namespaceObject.ref)([]),
71
+ selectedRows: (0, external_valtio_namespaceObject.ref)([]),
72
+ selectedRowKeys: (0, external_valtio_namespaceObject.ref)([]),
73
+ loading: {
74
+ pageLoading: false
75
+ },
76
+ hasLastPage: false
77
+ };
78
+ store = (0, external_valtio_namespaceObject.proxy)({
79
+ ...this.defaultInital
80
+ });
81
+ ctor = (options)=>{
82
+ if (options?.initialValues) this.main_page_store(options.initialValues);
83
+ if (options.defaultPageSize) this.store.defaultPageSize = options.defaultPageSize;
84
+ if (options?.is_scroll_page !== void 0) this.is_scroll_page = options?.is_scroll_page;
85
+ if (options?.defaultTabKey) this.store.tabKey = options.defaultTabKey;
86
+ if (options?.tabItems) {
87
+ this.store.tabItems = (0, external_valtio_namespaceObject.ref)(options.tabItems);
88
+ this.store.isTabs = Array.isArray(options.tabItems) && options.tabItems.length > 0;
89
+ }
90
+ };
91
+ main_page_store = (initalValues = {}, file)=>{
92
+ const newStore = {
93
+ ...this.defaultInital,
94
+ ...initalValues
95
+ };
96
+ return this._ctor(newStore, [
97
+ ...file || [],
98
+ 'loading'
99
+ ]);
100
+ };
101
+ formateParams = (params)=>{
102
+ const _query = {};
103
+ const keys = Object.keys(params);
104
+ for(let index = 0; index < keys.length; index++){
105
+ const key = keys[index];
106
+ if ((this.valueFields || []).includes(key)) _query[key] = params[key]?.value;
107
+ else if ((this.codeFields || []).includes(key)) _query[key] = params[key]?.code;
108
+ else _query[key] = params[key];
109
+ }
110
+ return {
111
+ ..._query
112
+ };
113
+ };
114
+ updatedSearch = (value = {})=>{
115
+ const keys = Object.keys(value);
116
+ if (!this.store.search) this.store.search = {};
117
+ for(let index = 0; index < keys.length; index++){
118
+ const key = keys[index];
119
+ this.store.search[key] = value[key];
120
+ }
121
+ };
122
+ updatedPageLoading = (loading = true)=>{
123
+ if ('object' == typeof this.store?.loading) this.store.loading.pageLoading = loading;
124
+ else this.store.loading = {
125
+ pageLoading: loading
126
+ };
127
+ };
128
+ updatedLoading = (value)=>{
129
+ if ('object' == typeof this.store?.loading) this.store.loading = {
130
+ ...this.store.loading,
131
+ ...value
132
+ };
133
+ else this.store.loading = {
134
+ ...value
135
+ };
136
+ };
137
+ main_getList = async ()=>{
138
+ let pageField = 'page';
139
+ let pageSizeField = 'pageSize';
140
+ let dataListField = 'dataList';
141
+ let totalField = 'total';
142
+ let selectedRowsField = 'selectedRows';
143
+ let selectedRowKeysField = 'selectedRowKeys';
144
+ let _request = this.getList;
145
+ let defaultQuery = {};
146
+ if (this.store.isTabs) {
147
+ const tabKey = this.store.tabKey;
148
+ const findTab = this.store.tabItems?.find((item)=>item.key === tabKey);
149
+ if (findTab?.api) _request = findTab.api;
150
+ defaultQuery = findTab?.query || {};
151
+ pageField = `${tabKey}Page`;
152
+ pageSizeField = `${tabKey}PageSize`;
153
+ dataListField = `${tabKey}DataList`;
154
+ totalField = `${tabKey}Total`;
155
+ selectedRowsField = `${tabKey}SelectedRows`;
156
+ selectedRowKeysField = `${tabKey}SelectedRowKeys`;
157
+ }
158
+ if (!_request) return void console.error("\u672A\u914D\u7F6E getList \u8BF7\u6C42\u65B9\u6CD5,\u8BF7\u68C0\u67E5\u662F\u5426\u914D\u7F6E\u4E86 getList \u65B9\u6CD5");
159
+ taro_default().showLoading({
160
+ title: "\u52A0\u8F7D\u4E2D..."
161
+ });
162
+ try {
163
+ this.updatedPageLoading(true);
164
+ const payload = {
165
+ ...this.defaultQuery,
166
+ ...defaultQuery,
167
+ ...this.store.search,
168
+ page: this.store[pageField] || 1,
169
+ pageSize: this.store[pageSizeField] || this.store.defaultPageSize || 20
170
+ };
171
+ let newParams = this.formateParams({
172
+ ...payload
173
+ });
174
+ if (this.onBefore) newParams = this.onBefore(payload, this.store, this);
175
+ const result = await this.getList?.(newParams, this);
176
+ this.updatedPageLoading(false);
177
+ this.store.loading.loadMore = false;
178
+ if (result && result.code === external_global_setting_data_instance_js_namespaceObject.globalSettingDataInstance.store.requestSuccessCode) {
179
+ let saveData = {};
180
+ if (this.onAfter) saveData = this.onAfter(result, this);
181
+ else {
182
+ const dataList = result?.data?.list || result?.data?.rows || result?.data?.records || [];
183
+ let newDataList = [];
184
+ if (1 === this.store[pageField]) newDataList = dataList;
185
+ else if (this.is_scroll_page) newDataList = [
186
+ ...this.store[dataListField] || [],
187
+ ...dataList
188
+ ];
189
+ saveData = {
190
+ [dataListField]: newDataList,
191
+ [totalField]: result?.data?.total || 0
192
+ };
193
+ if (1 === this.store[pageField] || !this.is_scroll_page) {
194
+ saveData[selectedRowsField] = (0, external_valtio_namespaceObject.ref)([]);
195
+ saveData[selectedRowKeysField] = (0, external_valtio_namespaceObject.ref)([]);
196
+ }
197
+ }
198
+ if (this.onExtraData) {
199
+ const _temps = this.onExtraData(result, this);
200
+ saveData = {
201
+ ...saveData,
202
+ ..._temps || {}
203
+ };
204
+ }
205
+ if (saveData) this._setValues(saveData);
206
+ } else if (this.onError) this.onError(result, this);
207
+ } catch (error) {
208
+ console.log(error);
209
+ this.store.loading.loadMore = false;
210
+ this.updatedPageLoading(false);
211
+ }
212
+ taro_default().hideLoading();
213
+ };
214
+ main_onPageChange = (page)=>{
215
+ if (this.store.isTabs) {
216
+ const tabKey = this.store.tabKey;
217
+ this._setValues({
218
+ [`${tabKey}Page`]: 1
219
+ });
220
+ } else this._setValues({
221
+ page
222
+ });
223
+ this.main_getList();
224
+ };
225
+ main_onShowSizeChange = (_, pageSize)=>{
226
+ if (this.store.isTabs) {
227
+ const tabKey = this.store.tabKey;
228
+ this._setValues({
229
+ [`${tabKey}Page`]: 1,
230
+ [`${tabKey}PageSize`]: pageSize
231
+ });
232
+ } else this._setValues({
233
+ page: 1,
234
+ pageSize
235
+ });
236
+ this.main_getList();
237
+ };
238
+ main_onReset = ()=>{
239
+ if (this.getResetValues) {
240
+ const values = this.getResetValues(this);
241
+ if (values) this.updatedSearch({
242
+ ...values
243
+ });
244
+ } else {
245
+ const keys = Object.keys(this.store.search || {});
246
+ for(let index = 0; index < keys.length; index++){
247
+ const key = keys[index];
248
+ this.store.search[key] = void 0;
249
+ }
250
+ }
251
+ };
252
+ main_onSearch = ()=>{
253
+ this.main_onPageChange(1);
254
+ this.store.expandSearch = false;
255
+ };
256
+ main_onLoadMore = async ()=>{
257
+ if (this.store.loading?.pageLoading) return;
258
+ const isTabs = this.store.isTabs;
259
+ if (isTabs) {
260
+ const tabKey = this.store.tabKey;
261
+ const total = this.store[`${tabKey}Total`] || 0;
262
+ const page = this.store[`${tabKey}Page`] || 1;
263
+ const pageSize = this.store[`${tabKey}PageSize`] || this.store.defaultPageSize || 20;
264
+ const count = Math.ceil(total / pageSize);
265
+ let hasLastPage = false;
266
+ if (page >= count && total) {
267
+ hasLastPage = true;
268
+ this._setValues({
269
+ [`${tabKey}HasLastPage`]: hasLastPage
270
+ });
271
+ return;
272
+ }
273
+ const nextPage = page + 1;
274
+ if (nextPage >= count && total) hasLastPage = true;
275
+ this.updatedLoading({
276
+ [`${tabKey}LoadMore`]: true
277
+ });
278
+ this._setValues({
279
+ [`${tabKey}Page`]: nextPage
280
+ });
281
+ await this.main_getList();
282
+ this._setValues({
283
+ [`${tabKey}HasLastPage`]: hasLastPage
284
+ });
285
+ return;
286
+ }
287
+ const total = this.store.total || 0;
288
+ const page = this.store.page || 1;
289
+ const pageSize = this.store.pageSize || this.store.defaultPageSize || 20;
290
+ const count = Math.ceil(total / pageSize);
291
+ let hasLastPage = false;
292
+ if (page >= count && total) {
293
+ hasLastPage = true;
294
+ this._setValues({
295
+ hasLastPage
296
+ });
297
+ return;
298
+ }
299
+ const nextPage = page + 1;
300
+ if (nextPage >= count && total) hasLastPage = true;
301
+ this.store.loading.loadMore = true;
302
+ this._setValues({
303
+ page: nextPage
304
+ });
305
+ await this.main_getList();
306
+ this._setValues({
307
+ hasLastPage
308
+ });
309
+ };
310
+ }
311
+ function usePageDataInstance(instance) {
312
+ const ref = (0, external_react_namespaceObject.useRef)();
313
+ if (!ref.current) ref.current = instance || new page_data_instance_PageDataInstance();
314
+ return ref.current;
315
+ }
316
+ const PageDataInstanceContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(new page_data_instance_PageDataInstance());
317
+ const usePageDataInstanceContext = ()=>{
318
+ const PageDataInstance = (0, external_react_namespaceObject.useContext)(PageDataInstanceContext);
319
+ return PageDataInstance;
320
+ };
321
+ function PageDataInstanceContextProvider(props) {
322
+ const { instance, children, initialValues, is_scroll_page, defaultTabKey, tabItems, defaultPageSize, onBefore, getList, onAfter, onExtraData, onError, getResetValues, defaultQuery, codeFields, valueFields, isMountLoad, title } = props;
323
+ const pageInstance = usePageDataInstance(instance);
324
+ instance.onBefore = onBefore;
325
+ instance.getList = getList;
326
+ instance.onAfter = onAfter;
327
+ instance.onExtraData = onExtraData;
328
+ instance.onError = onError;
329
+ instance.getResetValues = getResetValues;
330
+ instance.codeFields = codeFields;
331
+ instance.valueFields = valueFields;
332
+ instance.defaultQuery = defaultQuery;
333
+ (0, external_react_namespaceObject.useMemo)(()=>pageInstance.ctor({
334
+ initialValues,
335
+ is_scroll_page,
336
+ defaultTabKey,
337
+ tabItems,
338
+ defaultPageSize
339
+ }), [
340
+ pageInstance
341
+ ]);
342
+ (0, external_react_namespaceObject.useEffect)(()=>{
343
+ if (isMountLoad) pageInstance.main_onSearch();
344
+ }, []);
345
+ (0, taro_namespaceObject.useDidShow)(()=>{
346
+ if (title) taro_default().setNavigationBarTitle({
347
+ title
348
+ });
349
+ });
350
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PageDataInstanceContext.Provider, {
351
+ value: pageInstance,
352
+ children: children
353
+ });
354
+ }
355
+ const usePageDataInstanceState = ()=>{
356
+ const PageMainDataInstance = usePageDataInstanceContext();
357
+ const store = (0, external_valtio_namespaceObject.useSnapshot)(PageMainDataInstance.store, {
358
+ sync: true
359
+ });
360
+ return [
361
+ store,
362
+ PageMainDataInstance,
363
+ store.__defaultValue
364
+ ];
365
+ };
366
+ exports.PageDataInstance = __webpack_exports__.PageDataInstance;
367
+ exports.PageDataInstanceContext = __webpack_exports__.PageDataInstanceContext;
368
+ exports.PageDataInstanceContextProvider = __webpack_exports__.PageDataInstanceContextProvider;
369
+ exports.usePageDataInstance = __webpack_exports__.usePageDataInstance;
370
+ exports.usePageDataInstanceContext = __webpack_exports__.usePageDataInstanceContext;
371
+ exports.usePageDataInstanceState = __webpack_exports__.usePageDataInstanceState;
372
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
373
+ "PageDataInstance",
374
+ "PageDataInstanceContext",
375
+ "PageDataInstanceContextProvider",
376
+ "usePageDataInstance",
377
+ "usePageDataInstanceContext",
378
+ "usePageDataInstanceState"
379
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
380
+ Object.defineProperty(exports, '__esModule', {
381
+ value: true
382
+ });
@@ -0,0 +1,93 @@
1
+ import { ProxyInstanceObjectBase } from '../utils/valtio/instance';
2
+ export interface PageInfoDataInstanceState extends Object {
3
+ /**loading存储*/
4
+ loading?: Record<string, boolean>;
5
+ /**编辑表单数据*/
6
+ editFormData?: Record<string, any>;
7
+ /**编辑类型*/
8
+ editType?: 'add' | 'edit' | 'info';
9
+ /**查询详情是否成功*/
10
+ isInfoSuccess?: boolean;
11
+ /**数据默认值不使用*/
12
+ __defaultValue?: string;
13
+ [s: string]: any;
14
+ }
15
+ export declare class PageInfoDataInstance<T extends PageInfoDataInstanceState = PageInfoDataInstanceState> extends ProxyInstanceObjectBase<T> {
16
+ notRefFields: string[];
17
+ /**默认值*/
18
+ defaultInital: T;
19
+ requestInfoConfig?: {
20
+ /**详情查询-请求之前处理参数*/
21
+ onBefore?: (store: T, instance: PageInfoDataInstance<T>) => Promise<Partial<T>> | Partial<T>;
22
+ /**详情查询-请求接口*/
23
+ getInfo?: (payload: any, instance: PageInfoDataInstance<T>) => Promise<{
24
+ code?: number;
25
+ data?: any;
26
+ message?: string;
27
+ }>;
28
+ /**详情查询-请求之后处理返回值进行存储*/
29
+ onAfter?: (data: Record<string, any>, instance: PageInfoDataInstance<T>) => Partial<T>;
30
+ /**详情查询-code!==1 时 触发*/
31
+ onError?: (data: Record<string, any>, instance: PageInfoDataInstance<T>) => void;
32
+ };
33
+ requestSaveInfoConfig?: {
34
+ /**详情保存-请求之前处理参数*/
35
+ onSaveBefore?: (store: T, instance: PageInfoDataInstance<T>) => Promise<Record<string, any>> | Record<string, any>;
36
+ /**详情保存接口*/
37
+ onSaveInfo?: (payload: any, instance: PageInfoDataInstance<T>) => Promise<{
38
+ code?: number;
39
+ data?: any;
40
+ message?: string;
41
+ }>;
42
+ /**详情保存-请求之后处理返回值进行存储*/
43
+ onSaveAfter?: (data: Record<string, any>, instance: PageInfoDataInstance<T>) => void;
44
+ /**详情查询-code!==1 时 触发*/
45
+ onSaveError?: (data: Record<string, any>, instance: PageInfoDataInstance<T>) => void;
46
+ /**保存成功-跳转页面*/
47
+ saveSuccessNavigate?: string | 'navigateBack' | number | ((data: any) => void);
48
+ /**是否显示成功提示*/
49
+ isShowSuccessMessage?: boolean;
50
+ };
51
+ ctor(options?: PageInfoDataOptions<T>): void;
52
+ store: T;
53
+ /**初始化状态值*/
54
+ main_page_store: (initalValues?: Partial<T>, file?: string[]) => this;
55
+ /**更新页面级的 pageLoading */
56
+ updatedLoading: (loading?: boolean) => void;
57
+ /**内置——查询详细信息*/
58
+ main_getInfo: () => Promise<void>;
59
+ /**保存数据*/
60
+ main_saveInfo: () => Promise<void>;
61
+ }
62
+ export interface PageInfoDataOptions<T extends PageInfoDataInstanceState = PageInfoDataInstanceState> {
63
+ /**详情查询请求配置*/
64
+ requestInfoConfig?: PageInfoDataInstance<T>['requestInfoConfig'];
65
+ /**详情保存请求配置*/
66
+ requestSaveInfoConfig?: PageInfoDataInstance<T>['requestSaveInfoConfig'];
67
+ /**初始值*/
68
+ initialValues?: Partial<T>;
69
+ /**editFormData是否使用valtio proxy 存储*/
70
+ isProxy?: boolean;
71
+ }
72
+ /**初始化实例*/
73
+ export declare const usePageInfoDataInstance: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(instance?: PageInfoDataInstance<T>) => PageInfoDataInstance<T>;
74
+ /**页面级数据状态管理上下文*/
75
+ export declare const PageInfoDataInstanceContext: import("react").Context<PageInfoDataInstance<PageInfoDataInstanceState>>;
76
+ /**获取上下文实例*/
77
+ export declare const usePageInfoDataInstanceContext: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>() => PageInfoDataInstance<T>;
78
+ export interface PageInfoDataInstanceContextProviderProps<T extends PageInfoDataInstanceState = PageInfoDataInstanceState> extends PageInfoDataOptions<T> {
79
+ instance?: PageInfoDataInstance<T>;
80
+ children: React.ReactNode;
81
+ /**页面标题*/
82
+ title?: string;
83
+ /**页面一加载是否请求详情接口*/
84
+ isMountRequestInfo?: boolean;
85
+ /**自定义hooks,挂载参数和设置完初始值后执行*/
86
+ useHooks?: (instance: PageInfoDataInstance<T>) => void;
87
+ }
88
+ /**页面级数据状态管理上下文提供者*/
89
+ export declare function PageInfoDataInstanceContextProvider<T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(props: PageInfoDataInstanceContextProviderProps<T>): import("react/jsx-runtime").JSX.Element;
90
+ /**
91
+ * 页面级数据状态管理
92
+ */
93
+ export declare const usePageInfoDataInstanceState: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>() => [T, PageInfoDataInstance<T>, string | undefined];