@aks-dev/easyui 1.0.101 → 1.0.102

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.
@@ -5,20 +5,20 @@ import Modal from 'react-native-modal'
5
5
  import { px2dp, deviceWidth } from '../../../screen/px2dp'
6
6
  import { px2sp } from '../../../screen/px2sp'
7
7
 
8
- import { AlertBottomViewOptions, AlertBottomViewCurrent } from '.'
8
+ import { AlertBottomOptions } from '.'
9
9
 
10
10
 
11
11
 
12
12
  type State = {
13
13
  visible: boolean;
14
14
 
15
- } & Omit<AlertBottomViewOptions, 'cancel' | 'confirm'>
15
+ } & Omit<AlertBottomOptions, 'cancel' | 'confirm'>
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
- export default React.forwardRef<AlertBottomViewCurrent, {}>((_, ref) => {
21
+ export default React.forwardRef<AlertBottomOptions.RefAttributes, {}>((_, ref) => {
22
22
 
23
23
 
24
24
  const defaultState: Partial<State> = {
@@ -32,8 +32,8 @@ export default React.forwardRef<AlertBottomViewCurrent, {}>((_, ref) => {
32
32
 
33
33
 
34
34
 
35
- React.useImperativeHandle<unknown, AlertBottomViewCurrent>(ref, () => ({
36
- show: async (options: Partial<AlertBottomViewOptions>) => {
35
+ React.useImperativeHandle<unknown, AlertBottomOptions.RefAttributes>(ref, () => ({
36
+ show: async (options: Partial<AlertBottomOptions>) => {
37
37
 
38
38
  setState(Object.assign({}, defaultState, { visible: true }, options))
39
39
  cancelCallbackRef.current = options.cancel;
@@ -130,11 +130,11 @@ export default React.forwardRef<AlertBottomViewCurrent, {}>((_, ref) => {
130
130
 
131
131
 
132
132
 
133
- export const alertBottomViewRef = React.createRef<AlertBottomViewCurrent>();
133
+ export const alertBottomViewRef = React.createRef<AlertBottomOptions.RefAttributes>();
134
134
 
135
135
 
136
136
 
137
- export const showAlertBottomModal = (props: Partial<AlertBottomViewOptions>) => {
137
+ export const showAlertBottomModal = (props: Partial<AlertBottomOptions>) => {
138
138
  alertBottomViewRef.current?.show(props)
139
139
  }
140
140
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-22 17:30:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-12 19:39:48
6
- * @FilePath: /@aks-dev/easyui/lib/Hud/AlertBottomView/index.ts
5
+ * @LastEditTime: 2022-09-09 10:52:55
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/AlertBottomView/index.d.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
 
@@ -11,7 +11,7 @@ import * as React from 'react'
11
11
  import { StyleProp, ViewStyle, TextStyle } from 'react-native'
12
12
 
13
13
 
14
- export declare type AlertBottomViewOptions = {
14
+ export declare type AlertBottomOptions = {
15
15
  title: string;
16
16
  wrapperStyle: StyleProp<ViewStyle>;
17
17
  content: string | React.ReactElement;
@@ -27,16 +27,16 @@ export declare type AlertBottomViewOptions = {
27
27
  }
28
28
 
29
29
 
30
- export declare const showAlertBottomModal: (props: Partial<AlertBottomViewOptions>) => void;
30
+ export declare const showAlertBottomModal: (props: Partial<AlertBottomOptions>) => void;
31
31
 
32
-
33
-
34
- export declare type AlertBottomViewCurrent = {
35
- show: (options: Partial<AlertBottomViewOptions>) => void;
36
- hide: () => void;
32
+ declare namespace AlertBottomOptions {
33
+ type RefAttributes = {
34
+ show: (options: Partial<AlertBottomOptions>) => void;
35
+ hide: () => void;
36
+ }
37
37
  }
38
38
 
39
39
 
40
- export declare const AlertBottomView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertBottomViewCurrent>>;
40
+ export declare const AlertBottomView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertBottomOptions.RefAttributes>>;
41
41
 
42
- export declare const AlertBottomViewRef: React.RefObject<AlertBottomViewCurrent>
42
+ export declare const AlertBottomViewRef: React.RefObject<AlertBottomOptions.RefAttributes>
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import { Dimensions, Platform, StatusBar, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
3
3
  import Modal from 'react-native-modal'
4
- import { AlertSheetViewOptions, AlertSheetViewRefAttributes } from '.'
4
+ import { AlertSheetViewOptions } from '.'
5
5
  import { px2dp } from '../../../screen/px2dp'
6
6
  import { px2sp } from '../../../screen/px2sp'
7
7
 
@@ -17,7 +17,7 @@ type State = {
17
17
 
18
18
 
19
19
 
20
- export default React.forwardRef<AlertSheetViewRefAttributes, {}>((_, ref) => {
20
+ export default React.forwardRef<AlertSheetViewOptions.RefAttributes, {}>((_, ref) => {
21
21
 
22
22
 
23
23
  const defaultState: Partial<State> = {
@@ -26,7 +26,7 @@ export default React.forwardRef<AlertSheetViewRefAttributes, {}>((_, ref) => {
26
26
  }
27
27
  const [state, setState] = React.useState<Partial<State>>(defaultState)
28
28
 
29
- React.useImperativeHandle<unknown, AlertSheetViewRefAttributes>(ref, () => ({
29
+ React.useImperativeHandle<unknown, AlertSheetViewOptions.RefAttributes>(ref, () => ({
30
30
  show: async (options: Partial<AlertSheetViewOptions>) => {
31
31
  setState(Object.assign({}, defaultState, { visible: true }, options))
32
32
  },
@@ -103,7 +103,7 @@ export default React.forwardRef<AlertSheetViewRefAttributes, {}>((_, ref) => {
103
103
 
104
104
 
105
105
 
106
- export const alertSheetViewRef = React.createRef<AlertSheetViewRefAttributes>();
106
+ export const alertSheetViewRef = React.createRef<AlertSheetViewOptions.RefAttributes>();
107
107
 
108
108
 
109
109
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-22 17:30:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-09-09 10:11:11
6
- * @FilePath: /cmwy-device-app/node_modules/@aks-dev/easyui/lib/Hud/AlertSheetView/index.ts
5
+ * @LastEditTime: 2022-09-09 10:51:19
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/AlertSheetView/index.d.ts
7
7
  */
8
8
  import * as React from 'react';
9
9
  import { ColorValue } from 'react-native';
@@ -23,13 +23,13 @@ export declare type AlertSheetViewOptions = {
23
23
  export declare const showAlertSheetModal: (props: Partial<AlertSheetViewOptions>) => void;
24
24
 
25
25
 
26
-
27
- export declare type AlertSheetViewRefAttributes = {
28
- show: (options: Partial<AlertSheetViewOptions>) => void;
29
- hide: () => void;
26
+ declare namespace AlertSheetViewOptions {
27
+ type RefAttributes = {
28
+ show: (options: Partial<AlertSheetViewOptions>) => void;
29
+ hide: () => void;
30
+ }
30
31
  }
31
32
 
33
+ export declare const AlertSheetView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertSheetViewOptions.RefAttributes>>;
32
34
 
33
- export declare const AlertSheetView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertSheetViewRefAttributes>>;
34
-
35
- export declare const AlertSheetViewRef: React.RefObject<AlertSheetViewRefAttributes>
35
+ export declare const AlertSheetViewRef: React.RefObject<AlertSheetViewOptions.RefAttributes>
@@ -5,7 +5,7 @@ import { View, Text, StyleSheet, Platform, Modal, StatusBar, TouchableOpacity, A
5
5
  import { px2dp, deviceWidth } from '../../../screen/px2dp'
6
6
  import { px2sp } from '../../../screen/px2sp'
7
7
 
8
- import { AlertViewOptions, AlertViewCurrent } from '.'
8
+ import { AlertViewOptions } from '.'
9
9
 
10
10
 
11
11
 
@@ -18,7 +18,7 @@ type State = {
18
18
 
19
19
 
20
20
 
21
- export default React.forwardRef<AlertViewCurrent, {}>((_, ref) => {
21
+ export default React.forwardRef<AlertViewOptions.RefAttributes, {}>((_, ref) => {
22
22
 
23
23
 
24
24
  const defaultState: Partial<State> = {
@@ -32,7 +32,7 @@ export default React.forwardRef<AlertViewCurrent, {}>((_, ref) => {
32
32
 
33
33
 
34
34
 
35
- React.useImperativeHandle<unknown, AlertViewCurrent>(ref, () => ({
35
+ React.useImperativeHandle<unknown, AlertViewOptions.RefAttributes>(ref, () => ({
36
36
  show: async (options: Partial<AlertViewOptions>) => {
37
37
 
38
38
  setState(Object.assign({}, defaultState, { visible: true }, options))
@@ -134,7 +134,7 @@ export default React.forwardRef<AlertViewCurrent, {}>((_, ref) => {
134
134
 
135
135
 
136
136
 
137
- export const alertViewRef = React.createRef<AlertViewCurrent>();
137
+ export const alertViewRef = React.createRef<AlertViewOptions.RefAttributes>();
138
138
 
139
139
 
140
140
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-22 17:30:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-12 19:06:29
6
- * @FilePath: /cmwy-device-app/node_modules/@aks-dev/easyui/lib/Hud/AlertView/index.ts
5
+ * @LastEditTime: 2022-09-09 10:53:51
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/AlertView/index.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
 
@@ -30,12 +30,16 @@ export declare const showAlertModal: (props: Partial<AlertViewOptions>) => void;
30
30
 
31
31
 
32
32
 
33
- export declare type AlertViewCurrent = {
34
- show: (options: Partial<AlertViewOptions>) => void;
35
- hide: () => void;
33
+ declare namespace AlertViewOptions {
34
+ type RefAttributes = {
35
+ show: (options: Partial<AlertViewOptions>) => void;
36
+ hide: () => void;
37
+ }
36
38
  }
37
39
 
38
40
 
39
- export declare const AlertView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertViewCurrent>>;
40
41
 
41
- export declare const alertViewRef: React.RefObject<AlertViewCurrent>
42
+
43
+ export declare const AlertView: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<AlertViewOptions.RefAttributes>>;
44
+
45
+ export declare const alertViewRef: React.RefObject<AlertViewOptions.RefAttributes>
@@ -2,19 +2,19 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 14:27:02
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-15 14:21:00
5
+ * @LastEditTime: 2022-09-09 10:55:48
6
6
  * @FilePath: /@aks-dev/easyui/lib/Hud/Loading/Loading.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState } from 'react';
9
9
  import { View, ActivityIndicator, StyleSheet, Text, Dimensions, TouchableOpacity, BackHandler } from 'react-native';
10
10
 
11
- import type { LoadingCurrent } from '.'
11
+ import { LoadingOptions } from '.'
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- export const Loading = React.forwardRef<LoadingCurrent, {}>((_, ref) => {
17
+ export const Loading = React.forwardRef<LoadingOptions.RefAttributes, {}>((_, ref) => {
18
18
  const [show, setShow] = useState(false);
19
19
  const [tipText, setTipText] = useState('加载中');
20
20
 
@@ -26,7 +26,7 @@ export const Loading = React.forwardRef<LoadingCurrent, {}>((_, ref) => {
26
26
  }, [show])
27
27
 
28
28
 
29
- useImperativeHandle<unknown, LoadingCurrent>(ref, () => ({
29
+ useImperativeHandle<unknown, LoadingOptions.RefAttributes>(ref, () => ({
30
30
  showLoading: (content?: string) => {
31
31
  setShow(true);
32
32
  setTipText(content || '加载中')
@@ -50,7 +50,7 @@ export const Loading = React.forwardRef<LoadingCurrent, {}>((_, ref) => {
50
50
  )
51
51
  })
52
52
 
53
- export const loadingRef = React.createRef<LoadingCurrent>();
53
+ export const loadingRef = React.createRef<LoadingOptions.RefAttributes>();
54
54
  export const showLoading = (content?: string) => loadingRef.current?.showLoading(content)
55
55
  export const hideLoading = () => loadingRef.current?.hideLoading()
56
56
 
@@ -0,0 +1,38 @@
1
+
2
+ /*
3
+ * @Author: shiguo
4
+ * @Date: 2022-04-24 14:27:02
5
+ * @LastEditors: shiguo
6
+ * @LastEditTime: 2022-09-09 10:55:28
7
+ * @FilePath: /@aks-dev/easyui/lib/Hud/Loading/index.ts
8
+ */
9
+ import * as React from 'react'
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ declare namespace LoadingOptions {
21
+ type RefAttributes = {
22
+ showLoading: (content?: string) => void;
23
+ hideLoading: () => void;
24
+ }
25
+ }
26
+
27
+
28
+
29
+ export declare const showLoading: (content?: string) => void;
30
+
31
+
32
+ export declare const hideLoading: () => void;
33
+
34
+
35
+ export declare const loadingRef: React.RefObject<LoadingOptions.RefAttributes>;
36
+
37
+ export declare const Loading: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<LoadingOptions.RefAttributes>>
38
+
@@ -2,19 +2,19 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 14:27:02
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-07-15 14:20:40
5
+ * @LastEditTime: 2022-09-09 10:57:45
6
6
  * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/PopoverView.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState } from 'react';
9
9
  import { StyleSheet, TouchableOpacity, BackHandler } from 'react-native';
10
- import type { PopoverViewCurrent, PopoverViewOptions } from '.';
10
+ import type {PopoverViewOptions } from '.';
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- export const PopoverView = React.forwardRef<PopoverViewCurrent, {}>((_, ref) => {
17
+ export const PopoverView = React.forwardRef<PopoverViewOptions.RefAttributes, {}>((_, ref) => {
18
18
  const [visible, setVisible] = useState<boolean>(false);
19
19
  const [options, setOptions] = useState<Partial<PopoverViewOptions> | undefined>()
20
20
 
@@ -25,7 +25,7 @@ export const PopoverView = React.forwardRef<PopoverViewCurrent, {}>((_, ref) =>
25
25
  }, [visible])
26
26
 
27
27
 
28
- useImperativeHandle<unknown, PopoverViewCurrent>(ref, () => ({
28
+ useImperativeHandle<unknown, PopoverViewOptions.RefAttributes>(ref, () => ({
29
29
  showPopoverView: (options: Partial<PopoverViewOptions>) => {
30
30
  setVisible(true);
31
31
  setOptions(options)
@@ -51,7 +51,7 @@ export const PopoverView = React.forwardRef<PopoverViewCurrent, {}>((_, ref) =>
51
51
  )
52
52
  })
53
53
 
54
- export const popoverViewRef = React.createRef<PopoverViewCurrent>();
54
+ export const popoverViewRef = React.createRef<PopoverViewOptions.RefAttributes>();
55
55
  export const showPopoverView = (options: Partial<PopoverViewOptions>) => popoverViewRef.current?.showPopoverView(options)
56
56
  export const hidePopoverView = () => popoverViewRef.current?.hidePopoverView()
57
57
 
@@ -3,8 +3,8 @@
3
3
  * @Author: shiguo
4
4
  * @Date: 2022-04-24 14:27:02
5
5
  * @LastEditors: shiguo
6
- * @LastEditTime: 2022-07-15 10:07:56
7
- * @FilePath: /cmwy-device-app/node_modules/@aks-dev/easyui/lib/Hud/PopoverView/index.ts
6
+ * @LastEditTime: 2022-09-09 10:57:07
7
+ * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/index.ts
8
8
  */
9
9
  import * as React from 'react'
10
10
 
@@ -18,21 +18,21 @@ export type PopoverViewOptions = {
18
18
 
19
19
 
20
20
 
21
- export declare type PopoverViewCurrent = {
22
- showPopoverView: (options:Partial<PopoverViewOptions>) => void;
23
- hidePopoverView: () => void;
21
+ declare namespace PopoverViewOptions {
22
+ type RefAttributes = {
23
+ showPopoverView: (options:Partial<PopoverViewOptions>) => void;
24
+ hidePopoverView: () => void;
25
+ }
24
26
  }
25
27
 
26
28
 
27
-
28
-
29
29
  export declare const showPopoverView: (options:Partial<PopoverViewOptions>) => void;
30
30
 
31
31
 
32
32
  export declare const hidePopoverView: () => void;
33
33
 
34
34
 
35
- export declare const popoverViewRef: React.RefObject<PopoverViewCurrent>;
35
+ export declare const popoverViewRef: React.RefObject<PopoverViewOptions.RefAttributes>;
36
36
 
37
- export declare const PopoverView: React.ForwardRefExoticComponent<React.PropsWithoutRef<PopoverViewOptions> & React.RefAttributes<PopoverViewCurrent>>
37
+ export declare const PopoverView: React.ForwardRefExoticComponent<React.PropsWithoutRef<PopoverViewOptions> & React.RefAttributes<PopoverViewOptions.RefAttributes>>
38
38
 
@@ -2,18 +2,18 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2021-04-27 10:38:04
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-12 11:33:40
6
- * @FilePath: /@aks/easyui/lib/Easy-Hud/Toast/Toast.tsx
5
+ * @LastEditTime: 2022-09-09 10:58:34
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/Toast/Toast.tsx
7
7
  */
8
8
  import React, { useImperativeHandle, useState, useRef } from 'react';
9
9
  import { View, StyleSheet, Text, Dimensions, Animated, Easing } from 'react-native';
10
10
 
11
11
 
12
- import type { ToastCurrent } from '.'
12
+ import type { ToastOptions } from '.'
13
13
 
14
14
  const errorMsg = '(^_^)∠※ 送你一束小花'
15
15
 
16
- export const Toast = React.forwardRef<ToastCurrent, {}>((_, ref) => {
16
+ export const Toast = React.forwardRef<ToastOptions.RefAttributes, {}>((_, ref) => {
17
17
  const [tipText, setTipText] = useState(errorMsg);
18
18
  const fade = useRef(new Animated.Value(0)).current;
19
19
 
@@ -33,7 +33,7 @@ export const Toast = React.forwardRef<ToastCurrent, {}>((_, ref) => {
33
33
  })
34
34
  ])
35
35
 
36
- useImperativeHandle<unknown, ToastCurrent>(ref, () => ({
36
+ useImperativeHandle<unknown, ToastOptions.RefAttributes>(ref, () => ({
37
37
  showToast: (content: string) => {
38
38
  setTipText(content || errorMsg)
39
39
  fadeAnimation.reset()
@@ -51,7 +51,7 @@ export const Toast = React.forwardRef<ToastCurrent, {}>((_, ref) => {
51
51
  )
52
52
  })
53
53
 
54
- export const toastRef = React.createRef<ToastCurrent>();
54
+ export const toastRef = React.createRef<ToastOptions.RefAttributes>();
55
55
 
56
56
  export const showToast = (content: string) => toastRef.current?.showToast(content)
57
57
 
@@ -0,0 +1,22 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-18 19:18:03
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-09-09 10:58:11
6
+ * @FilePath: /@aks-dev/easyui/lib/Hud/Toast/index.ts
7
+ */
8
+ import * as React from 'react'
9
+
10
+
11
+ declare namespace ToastOptions {
12
+ type RefAttributes = {
13
+ showToast: (content: string) => void;
14
+ }
15
+ }
16
+
17
+ export declare const showToast: (content: string) => void;
18
+
19
+
20
+ export declare const toastRef: React.RefObject<ToastOptions.RefAttributes>;
21
+
22
+ export declare const Toast: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<ToastOptions.RefAttributes>>;
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 13:56:47
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-09-07 18:37:00
5
+ * @LastEditTime: 2022-09-09 10:59:38
6
6
  * @FilePath: /@aks-dev/easyui/lib/TextInputArea/TextInputArea.tsx
7
7
  */
8
8
  import React from 'react'
@@ -11,9 +11,9 @@ import {px2dp} from '../../screen/px2dp'
11
11
  import {px2sp} from '../../screen/px2sp'
12
12
 
13
13
 
14
- import type { TextInputAreaProps ,TextInputAreaRefAttributes} from '.'
14
+ import type { TextInputAreaProps } from '.'
15
15
 
16
- export default React.forwardRef<TextInputAreaRefAttributes, Partial<TextInputAreaProps>>((props, ref) => {
16
+ export default React.forwardRef<TextInputAreaProps.RefAttributes, Partial<TextInputAreaProps>>((props, ref) => {
17
17
  const { defaultValue, placeholder, maxLength = 200, on, ...rest } = props
18
18
 
19
19
  const [value, setValue] = React.useState<string | undefined>(defaultValue)
@@ -23,7 +23,7 @@ export default React.forwardRef<TextInputAreaRefAttributes, Partial<TextInputAre
23
23
  }, [defaultValue])
24
24
 
25
25
 
26
- React.useImperativeHandle<unknown,TextInputAreaRefAttributes>(ref, () => ({
26
+ React.useImperativeHandle<unknown,TextInputAreaProps.RefAttributes>(ref, () => ({
27
27
  value: value,
28
28
  }), [value])
29
29
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-24 13:59:32
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-09-07 18:38:10
6
- * @FilePath: /@aks-dev/easyui/lib/TextInputArea/index.ts
5
+ * @LastEditTime: 2022-09-09 10:59:23
6
+ * @FilePath: /@aks-dev/easyui/lib/TextInputArea/index.d.ts
7
7
  */
8
8
  import * as React from 'react'
9
9
  import { ViewStyle, StyleProp, TextInputProps, TextStyle } from 'react-native'
@@ -21,11 +21,13 @@ export type TextInputAreaProps = {
21
21
  } & TextInputProps
22
22
 
23
23
 
24
- export type TextInputAreaRefAttributes = {
25
- value: string | undefined;
24
+ declare namespace TextInputAreaProps {
25
+ type RefAttributes = {
26
+ value: string | undefined;
27
+ }
26
28
  }
27
29
 
28
30
 
29
- export declare const TextInputArea: React.ForwardRefExoticComponent<React.PropsWithoutRef<Partial<TextInputAreaProps>> & React.RefAttributes<TextInputAreaRefAttributes>>;
31
+ export declare const TextInputArea: React.ForwardRefExoticComponent<React.PropsWithoutRef<Partial<TextInputAreaProps>> & React.RefAttributes<TextInputAreaProps.RefAttributes>>;
30
32
 
31
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "description": "移动端App开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
@@ -1,35 +0,0 @@
1
-
2
- /*
3
- * @Author: shiguo
4
- * @Date: 2022-04-24 14:27:02
5
- * @LastEditors: shiguo
6
- * @LastEditTime: 2022-05-12 11:32:41
7
- * @FilePath: /@aks/easyui/lib/Easy-Hud/Loading/index.ts
8
- */
9
- import * as React from 'react'
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
- export declare type LoadingCurrent = {
19
- showLoading: (content?: string) => void;
20
- hideLoading: () => void;
21
- }
22
-
23
-
24
-
25
-
26
- export declare const showLoading: (content?: string) => void;
27
-
28
-
29
- export declare const hideLoading: () => void;
30
-
31
-
32
- export declare const loadingRef: React.RefObject<LoadingCurrent>;
33
-
34
- export declare const Loading: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<LoadingCurrent>>
35
-
@@ -1,22 +0,0 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-04-18 19:18:03
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-12 11:33:32
6
- * @FilePath: /@aks/easyui/lib/Easy-Hud/Toast/index.ts
7
- */
8
- import * as React from 'react'
9
-
10
-
11
-
12
-
13
- export declare type ToastCurrent = {
14
- showToast: (content: string) => void;
15
- }
16
-
17
- export declare const showToast: (content: string) => void;
18
-
19
-
20
- export declare const toastRef: React.RefObject<ToastCurrent>;
21
-
22
- export declare const Toast: React.ForwardRefExoticComponent<React.PropsWithoutRef<{}> & React.RefAttributes<ToastCurrent>>;