@aks-dev/easyui 1.0.130 → 1.0.132

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.
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-05-17 15:22:06
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-12-21 22:05:02
5
+ * @LastEditTime: 2022-12-22 11:06:15
6
6
  * @FilePath: /@aks-dev/easyui/lib/AnimationModal/AnimationModal.tsx
7
7
  */
8
8
 
@@ -46,13 +46,15 @@ export const AnimationModal: React.ForwardRefExoticComponent<
46
46
  });
47
47
  };
48
48
 
49
- /**
50
- * h0: 父容器的高度
51
- * h1: 子容器的高度
52
- * @description:
53
- * @return {*}
54
- */
55
- const layoutRef = React.useRef<{ h0: number; h1: number; }>({ h0: 0, h1: 0 })
49
+
50
+
51
+ const layoutRef = React.useRef<{
52
+ /**:父容器的高度 */
53
+ h0: number;
54
+ /**:子容器的高度 */
55
+ h1: number;
56
+ }>({ h0: 0, h1: 0 })
57
+
56
58
 
57
59
  React.useImperativeHandle<unknown, AnimationModalProps.RefAttributes>(ref, () => ({
58
60
  show,
@@ -61,7 +63,8 @@ export const AnimationModal: React.ForwardRefExoticComponent<
61
63
  }), [])
62
64
  const targetRef = React.useRef<any>()
63
65
 
64
- const show = async () => {
66
+ const show = async (target?: any) => {
67
+ targetRef.current = target
65
68
  dispatch({ display: 'flex' })
66
69
  await utils.sleep(50)
67
70
  timing(-layoutRef.current?.h1)
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-05-18 17:26:41
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-12-21 18:13:47
6
- * @FilePath: /aks-fire-app/node_modules/@aks-dev/easyui/lib/AnimationModal/index.d.ts
5
+ * @LastEditTime: 2022-12-22 11:17:17
6
+ * @FilePath: /@aks-dev/easyui/lib/AnimationModal/index.d.ts
7
7
  */
8
8
  import { StyleProp, ViewStyle } from 'react-native';
9
9
 
@@ -13,6 +13,7 @@ export type AnimationModalProps = {
13
13
  /**
14
14
  * 动画方向,默认 'from-bottom'
15
15
  * center-in 动画暂未实现
16
+ * @deprecated
16
17
  */
17
18
  animationType?: 'from-bottom' | 'center-in';
18
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.130",
3
+ "version": "1.0.132",
4
4
  "description": "工具箱",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",