react-native-fxview 1.0.1 → 1.0.2-beta12
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/{FXViewCategoryController.d.ts → FXCategoryController.d.ts} +5 -5
- package/{FXViewCategoryController.js → FXCategoryController.js} +3 -3
- package/{FXViewCategoryController.ts → FXCategoryController.ts} +13 -10
- package/FXView.d.ts +2 -2
- package/FXView.js +1 -0
- package/FXView.tsx +3 -3
- package/FXViewController.d.ts +4 -4
- package/FXViewController.js +3 -2
- package/FXViewController.ts +14 -11
- package/FXViewManager.d.ts +8 -5
- package/FXViewManager.js +23 -13
- package/FXViewManager.ts +37 -19
- package/README.md +173 -25
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/index.ts +1 -1
- package/package.json +5 -1
- package/queue/PriorityQueue.d.ts +153 -0
- package/queue/PriorityQueue.js +325 -0
- package/queue/PriorityQueue.ts +367 -0
- package/types.d.ts +6 -2
- package/types.ts +7 -2
package/types.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type React from "react";
|
|
|
6
6
|
* 组件控制器接口
|
|
7
7
|
* 用于控制动态组件的显示、隐藏、更新等操作
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface FXComponentController {
|
|
10
10
|
/** 显示组件 */
|
|
11
11
|
show: () => void;
|
|
12
12
|
/** 隐藏组件 */
|
|
@@ -32,8 +32,13 @@ export interface ComponentController {
|
|
|
32
32
|
/**
|
|
33
33
|
* 组件项配置接口
|
|
34
34
|
*/
|
|
35
|
-
export interface
|
|
35
|
+
export interface FXComponentItem {
|
|
36
36
|
componentId: string; // 组件唯一标识(必填)
|
|
37
37
|
component?: React.ReactNode; // 组件内容
|
|
38
38
|
visible?: boolean; // 是否可见,默认为 true
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
export interface FXLifecycleCallbacks {
|
|
42
|
+
didMount: (fxViewId: string) => void;
|
|
43
|
+
willUnmount: (fxViewId: string) => void;
|
|
44
|
+
}
|