@aks-dev/easyui 1.0.163 → 1.1.5
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/dist/components/AnimationModal/AnimationModal.d.ts +27 -0
- package/dist/components/AnimationModal/AnimationModal.d.ts.map +1 -0
- package/dist/components/AnimationModal/AnimationModal.js +151 -0
- package/dist/components/Badge/Badge.d.ts +8 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +35 -0
- package/dist/components/DottedLine/DottedLine.d.ts +10 -0
- package/dist/components/DottedLine/DottedLine.d.ts.map +1 -0
- package/dist/components/DottedLine/DottedLine.js +50 -0
- package/dist/components/EchartsView/EchartsView.d.ts +10 -0
- package/dist/components/EchartsView/EchartsView.d.ts.map +1 -0
- package/{lib/Echarts/EchartsView.tsx → dist/components/EchartsView/EchartsView.js} +74 -113
- package/dist/components/EchartsView/helper.d.ts +10 -0
- package/dist/components/EchartsView/helper.d.ts.map +1 -0
- package/{lib/Echarts/helper.tsx → dist/components/EchartsView/helper.js} +17 -24
- package/dist/components/Hud/AlertBottomView/AlertBottomView.d.ts +25 -0
- package/dist/components/Hud/AlertBottomView/AlertBottomView.d.ts.map +1 -0
- package/dist/components/Hud/AlertBottomView/AlertBottomView.js +174 -0
- package/dist/components/Hud/AlertSheetView/AlertSheetView.d.ts +19 -0
- package/dist/components/Hud/AlertSheetView/AlertSheetView.d.ts.map +1 -0
- package/dist/components/Hud/AlertSheetView/AlertSheetView.js +117 -0
- package/dist/components/Hud/AlertView/AlertView.d.ts +25 -0
- package/dist/components/Hud/AlertView/AlertView.d.ts.map +1 -0
- package/dist/components/Hud/AlertView/AlertView.js +184 -0
- package/dist/components/Hud/Hud.d.ts +11 -0
- package/dist/components/Hud/Hud.d.ts.map +1 -0
- package/dist/components/Hud/Hud.js +29 -0
- package/dist/components/Hud/Loading/Loading.d.ts +11 -0
- package/dist/components/Hud/Loading/Loading.d.ts.map +1 -0
- package/dist/components/Hud/Loading/Loading.js +66 -0
- package/dist/components/Hud/PopoverView/PopoverView.d.ts +17 -0
- package/dist/components/Hud/PopoverView/PopoverView.d.ts.map +1 -0
- package/dist/components/Hud/PopoverView/PopoverView.js +47 -0
- package/dist/components/Hud/Scanner/Scanner.d.ts +12 -0
- package/dist/components/Hud/Scanner/Scanner.d.ts.map +1 -0
- package/dist/components/Hud/Scanner/Scanner.js +301 -0
- package/dist/components/Hud/Toast/Toast.d.ts +9 -0
- package/dist/components/Hud/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Hud/Toast/Toast.js +71 -0
- package/dist/components/MenuView/MenuView.d.ts +21 -0
- package/dist/components/MenuView/MenuView.d.ts.map +1 -0
- package/dist/components/MenuView/MenuView.js +184 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/{lib/Modal/Modal.tsx → dist/components/Modal/Modal.js} +1 -4
- package/{lib/MutiPictureView/index.ts → dist/components/MutiPictureView/MutiPictureView.d.ts} +18 -31
- package/dist/components/MutiPictureView/MutiPictureView.d.ts.map +1 -0
- package/dist/components/MutiPictureView/MutiPictureView.js +243 -0
- package/dist/components/PictureViewer/PictureViewer.d.ts +17 -0
- package/dist/components/PictureViewer/PictureViewer.d.ts.map +1 -0
- package/dist/components/PictureViewer/PictureViewer.js +54 -0
- package/dist/components/RefreshList/RefreshList.d.ts +45 -0
- package/dist/components/RefreshList/RefreshList.d.ts.map +1 -0
- package/dist/components/RefreshList/RefreshList.js +155 -0
- package/dist/components/RichText/RichText.d.ts +12 -0
- package/dist/components/RichText/RichText.d.ts.map +1 -0
- package/dist/components/RichText/RichText.js +56 -0
- package/dist/components/StickHeaderView/StickHeaderView.d.ts +15 -0
- package/dist/components/StickHeaderView/StickHeaderView.d.ts.map +1 -0
- package/dist/components/StickHeaderView/StickHeaderView.js +37 -0
- package/{lib/TableCell/index.ts → dist/components/TableCell/TableCell.d.ts} +8 -30
- package/dist/components/TableCell/TableCell.d.ts.map +1 -0
- package/dist/components/TableCell/TableCell.js +97 -0
- package/dist/components/TextInputArea/TextInputArea.d.ts +17 -0
- package/dist/components/TextInputArea/TextInputArea.d.ts.map +1 -0
- package/dist/components/TextInputArea/TextInputArea.js +65 -0
- package/dist/components/WithLoadingContainer/WithLoadingContainer.d.ts +23 -0
- package/dist/components/WithLoadingContainer/WithLoadingContainer.d.ts.map +1 -0
- package/dist/components/WithLoadingContainer/WithLoadingContainer.js +77 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/jsbridge/RNEasyui.d.ts +23 -0
- package/dist/jsbridge/RNEasyui.d.ts.map +1 -0
- package/dist/jsbridge/RNEasyui.js +46 -0
- package/dist/jsbridge/UpgradeModule.d.ts +26 -0
- package/dist/jsbridge/UpgradeModule.d.ts.map +1 -0
- package/{jsbridge/UpgradeModule.ts → dist/jsbridge/UpgradeModule.js} +25 -23
- package/dist/jsbridge/index.d.ts +3 -0
- package/dist/jsbridge/index.d.ts.map +1 -0
- package/{jsbridge/index.ts → dist/jsbridge/index.js} +2 -2
- package/dist/screen/index.d.ts +3 -0
- package/dist/screen/index.d.ts.map +1 -0
- package/{screen/index.ts → dist/screen/index.js} +2 -2
- package/{screen/index.d.ts → dist/screen/px2dp.d.ts} +6 -12
- package/dist/screen/px2dp.d.ts.map +1 -0
- package/dist/screen/px2dp.js +45 -0
- package/dist/screen/px2sp.d.ts +2 -0
- package/dist/screen/px2sp.d.ts.map +1 -0
- package/{screen/px2sp.ts → dist/screen/px2sp.js} +13 -20
- package/dist/screen/text-fit.d.ts +5 -0
- package/dist/screen/text-fit.d.ts.map +1 -0
- package/{screen/text-fit.ts → dist/screen/text-fit.js} +10 -20
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/{utils/index.ts → dist/utils/index.js} +2 -2
- package/{utils/index.d.ts → dist/utils/lazy.d.ts} +15 -53
- package/dist/utils/lazy.d.ts.map +1 -0
- package/{utils/lazy.ts → dist/utils/lazy.js} +164 -165
- package/dist/utils/mode.d.ts +24 -0
- package/dist/utils/mode.d.ts.map +1 -0
- package/dist/utils/mode.js +50 -0
- package/package.json +32 -22
- package/readme.md +3 -3
- package/android/.DS_Store +0 -0
- package/android/src/.DS_Store +0 -0
- package/android/src/main/.DS_Store +0 -0
- package/android/src/main/java/.DS_Store +0 -0
- package/android/src/main/java/com/.DS_Store +0 -0
- package/android/src/main/java/com/easyui/.DS_Store +0 -0
- package/i.sh +0 -23
- package/ios/.DS_Store +0 -0
- package/ios/assets/.DS_Store +0 -0
- package/ios/views/.DS_Store +0 -0
- package/jsbridge/RNEasyui.ts +0 -42
- package/jsbridge/index.d.ts +0 -67
- package/lib/.DS_Store +0 -0
- package/lib/AnimationModal/AnimationModal.tsx +0 -201
- package/lib/AnimationModal/index.d.ts +0 -41
- package/lib/Badge/Badge.tsx +0 -40
- package/lib/Badge/index.ts +0 -21
- package/lib/DottedLine/DottedLine.tsx +0 -66
- package/lib/DottedLine/index.ts +0 -18
- package/lib/Echarts/demo.tsx +0 -235
- package/lib/Echarts/index.ts +0 -29
- package/lib/Hud/.DS_Store +0 -0
- package/lib/Hud/AlertBottomView/AlertBottomView.tsx +0 -228
- package/lib/Hud/AlertBottomView/index.d.ts +0 -42
- package/lib/Hud/AlertSheetView/AlertSheetView.tsx +0 -179
- package/lib/Hud/AlertSheetView/index.d.ts +0 -35
- package/lib/Hud/AlertView/AlertView.tsx +0 -234
- package/lib/Hud/AlertView/index.d.ts +0 -46
- package/lib/Hud/Hud.tsx +0 -67
- package/lib/Hud/Loading/Loading.tsx +0 -87
- package/lib/Hud/Loading/index.d.ts +0 -38
- package/lib/Hud/PopoverView/PopoverView.tsx +0 -66
- package/lib/Hud/PopoverView/index.d.ts +0 -39
- package/lib/Hud/Scanner/Scanner.tsx +0 -250
- package/lib/Hud/Scanner/index.d.ts +0 -42
- package/lib/Hud/Toast/Toast.tsx +0 -86
- package/lib/Hud/Toast/index.d.ts +0 -22
- package/lib/Hud/index.ts +0 -20
- package/lib/MenuView/MenuView.tsx +0 -252
- package/lib/MenuView/index.ts +0 -31
- package/lib/Modal/index.ts +0 -10
- package/lib/MutiPictureView/MutiPictureView.tsx +0 -259
- package/lib/PictureViewer/PictureViewer.tsx +0 -80
- package/lib/PictureViewer/index.ts +0 -26
- package/lib/RefreshList/RefreshList.tsx +0 -235
- package/lib/RefreshList/demo.tsx +0 -30
- package/lib/RefreshList/demo1.tsx +0 -60
- package/lib/RefreshList/demo2.tsx +0 -46
- package/lib/RefreshList/index.ts +0 -84
- package/lib/RichText/RichText.tsx +0 -82
- package/lib/RichText/index.ts +0 -21
- package/lib/StickHeaderView/StickHeaderView.tsx +0 -65
- package/lib/StickHeaderView/demo.tsx +0 -104
- package/lib/StickHeaderView/index.ts +0 -26
- package/lib/TableCell/TableCell.tsx +0 -118
- package/lib/TextInputArea/TextInputArea.tsx +0 -89
- package/lib/TextInputArea/index.d.ts +0 -33
- package/lib/WithLoadingContainer/WithLoadingContainer.tsx +0 -93
- package/lib/WithLoadingContainer/index.ts +0 -36
- package/screen/px2dp.ts +0 -51
- package/src/index.d.ts +0 -42
- package/src/index.ts +0 -54
- package/utils/mode.ts +0 -48
- /package/{lib/Hud/Scanner → dist/components/Hud/Scanner/assets}/flashlight-blue.png +0 -0
- /package/{lib/Hud/Scanner → dist/components/Hud/Scanner/assets}/flashlight-white.png +0 -0
- /package/{lib/Hud/Scanner → dist/components/Hud/Scanner/assets}/icon_back_white.png +0 -0
- /package/{lib/MutiPictureView → dist/components/MutiPictureView/assets}/icon_add_image.png +0 -0
- /package/{lib/MutiPictureView → dist/components/MutiPictureView/assets}/icon_del_image.png +0 -0
- /package/{lib/TableCell → dist/components/TableCell/assets}/back.png +0 -0
- /package/{lib/WithLoadingContainer → dist/components/WithLoadingContainer/assets}/loading.gif +0 -0
- /package/{lib/WithLoadingContainer → dist/components/WithLoadingContainer/assets}/loading3.gif +0 -0
- /package/{lib → dist/components}/index.md +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-24 13:59:32
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-09-09 10:59:23
|
|
6
|
-
* @FilePath: /@aks-dev/easyui/lib/TextInputArea/index.d.ts
|
|
7
|
-
*/
|
|
8
|
-
import * as React from 'react'
|
|
9
|
-
import { ViewStyle, StyleProp, TextInputProps, TextStyle } from 'react-native'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type TextInputAreaProps = {
|
|
13
|
-
placeholder: string;
|
|
14
|
-
maxLength: number;
|
|
15
|
-
style: StyleProp<ViewStyle>;
|
|
16
|
-
textInputStyle: StyleProp<TextStyle>;
|
|
17
|
-
/**设置默认值 */
|
|
18
|
-
defaultValue: string;
|
|
19
|
-
/*监听content的变化*/
|
|
20
|
-
on: (content: string) => void;
|
|
21
|
-
} & TextInputProps
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
declare namespace TextInputAreaProps {
|
|
25
|
-
type RefAttributes = {
|
|
26
|
-
value: string | undefined;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const TextInputArea: React.ForwardRefExoticComponent<React.PropsWithoutRef<Partial<TextInputAreaProps>> & React.RefAttributes<TextInputAreaProps.RefAttributes>>;
|
|
32
|
-
|
|
33
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-20 14:56:47
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-05-09 14:35:04
|
|
6
|
-
* @FilePath: /@aks/easyui/lib/WithLoadingContainer/WithLoadingContainer.tsx
|
|
7
|
-
*/
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { View, Image, Text, StyleSheet, TouchableOpacity } from 'react-native'
|
|
10
|
-
const loading = require('./loading.gif')
|
|
11
|
-
const loading3 = require('./loading3.gif')
|
|
12
|
-
import { WithLoadingContainerProps, Status } from '.'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default (props: Partial<WithLoadingContainerProps>) => {
|
|
17
|
-
const {
|
|
18
|
-
status = Status.NONE,
|
|
19
|
-
renderFailComponent,
|
|
20
|
-
renderEmptyComponent,
|
|
21
|
-
renderNomoreComponent,
|
|
22
|
-
reload,
|
|
23
|
-
failText = '网络请求失败,点击重新加载~',
|
|
24
|
-
emptyText = '暂无数据',
|
|
25
|
-
nomoreText = '没有更多数据了~',
|
|
26
|
-
} = props
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<View style={props.style}>
|
|
32
|
-
<>
|
|
33
|
-
{(() => {
|
|
34
|
-
|
|
35
|
-
switch (status) {
|
|
36
|
-
case Status.NONE: return undefined;
|
|
37
|
-
case Status.SUCCESS: return props.children;
|
|
38
|
-
case Status.LOADING: return <Loading />;
|
|
39
|
-
case Status.FAIL:
|
|
40
|
-
if (renderFailComponent) return renderFailComponent();
|
|
41
|
-
return (
|
|
42
|
-
<TouchableOpacity disabled={!reload} onPress={reload} style={styles.container}>
|
|
43
|
-
<Text style={styles.text}>{failText}</Text>
|
|
44
|
-
</TouchableOpacity>
|
|
45
|
-
);
|
|
46
|
-
case Status.EMPTY:
|
|
47
|
-
if (renderEmptyComponent) return renderEmptyComponent();
|
|
48
|
-
return (
|
|
49
|
-
<TouchableOpacity disabled={!reload} onPress={reload} style={styles.container}>
|
|
50
|
-
<Text style={styles.text}>{emptyText}</Text>
|
|
51
|
-
</TouchableOpacity>
|
|
52
|
-
);
|
|
53
|
-
case Status.NOMORE:
|
|
54
|
-
return (
|
|
55
|
-
<>
|
|
56
|
-
{props.children}
|
|
57
|
-
{renderNomoreComponent ? renderNomoreComponent() : <Text style={styles.text}>{nomoreText}</Text>}
|
|
58
|
-
</>
|
|
59
|
-
);
|
|
60
|
-
default: return <Text style={[styles.text, { lineHeight: 44, }]}>(^_^)∠※ 送你一束小花</Text>;
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
})()}
|
|
64
|
-
</>
|
|
65
|
-
</View>
|
|
66
|
-
)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const Loading = () => {
|
|
72
|
-
return (
|
|
73
|
-
<View style={styles.container}>
|
|
74
|
-
<Image source={loading3} style={{ width: 20, height: 20 }} resizeMode='contain' />
|
|
75
|
-
</View>
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const styles = StyleSheet.create({
|
|
81
|
-
text: {
|
|
82
|
-
color: '#999999',
|
|
83
|
-
fontSize: 14,
|
|
84
|
-
// textAlign: 'center',
|
|
85
|
-
},
|
|
86
|
-
container: {
|
|
87
|
-
display: 'flex',
|
|
88
|
-
minHeight: 44,
|
|
89
|
-
justifyContent: 'center',
|
|
90
|
-
alignItems: 'center',
|
|
91
|
-
paddingHorizontal:15
|
|
92
|
-
}
|
|
93
|
-
})
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-20 15:33:30
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-04-29 10:54:37
|
|
6
|
-
* @FilePath: /@aks/easyui/lib/WithLoadingContainer/index.ts
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import React from 'react'
|
|
12
|
-
import { ViewProps, GestureResponderEvent } from 'react-native'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export enum Status {
|
|
16
|
-
NONE = 'NONE',
|
|
17
|
-
LOADING = 'LOADING',
|
|
18
|
-
FAIL = 'FAIL',
|
|
19
|
-
SUCCESS = 'SUCCESS',
|
|
20
|
-
EMPTY = 'EMPTY',
|
|
21
|
-
NOMORE = 'NOMORE',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type WithLoadingContainerProps = {
|
|
25
|
-
status: Status;
|
|
26
|
-
reload: (event: GestureResponderEvent) => void;
|
|
27
|
-
failText: string;
|
|
28
|
-
emptyText: string;
|
|
29
|
-
nomoreText: string;
|
|
30
|
-
renderEmptyComponent: () => React.ReactNode;
|
|
31
|
-
renderFailComponent: () => React.ReactNode;
|
|
32
|
-
renderNomoreComponent: () => React.ReactNode;
|
|
33
|
-
} & ViewProps
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare const WithLoadingContainer: React.FC<Partial<WithLoadingContainerProps>>
|
package/screen/px2dp.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-18 14:32:25
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-09-09 10:35:02
|
|
6
|
-
* @FilePath: /@aks-dev/easyui/screen/px2dp.ts
|
|
7
|
-
*/
|
|
8
|
-
import { Dimensions, Platform, StatusBar } from 'react-native';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// 设备宽度,单位 dp
|
|
12
|
-
export const deviceWidth = Dimensions.get('screen').width; //设备的宽度
|
|
13
|
-
export const deviceHeight = Dimensions.get('screen').height; //设备的高度
|
|
14
|
-
export const isAndroid = Platform.OS === "android"
|
|
15
|
-
export const isIos = Platform.OS === 'ios'
|
|
16
|
-
export const isiPhoneX = isIos && (deviceHeight > 736)
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 375px/667px
|
|
20
|
-
* */
|
|
21
|
-
const uiWidthPx = 375;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// const pixelRatio = PixelRatio.get()
|
|
26
|
-
// const deviceWidthPx = PixelRatio.getPixelSizeForLayoutSize(deviceWidth);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export const px2dp = (uiElePx: number) => {
|
|
31
|
-
return Math.round(uiElePx * deviceWidth / uiWidthPx);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export const statusBarHeight = (() => {
|
|
39
|
-
if (isAndroid) return StatusBar.currentHeight || 24
|
|
40
|
-
if (isiPhoneX) return 44
|
|
41
|
-
return 20
|
|
42
|
-
})()
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export const navigationBarHeight = ( () => {
|
|
47
|
-
if (isAndroid) return 56
|
|
48
|
-
return 44
|
|
49
|
-
})()
|
|
50
|
-
|
|
51
|
-
|
package/src/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-26 11:44:22
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2023-03-23 15:24:35
|
|
6
|
-
* @FilePath: /@aks-dev/easyui/src/index.d.ts
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/// 组件 easy-ui
|
|
12
|
-
|
|
13
|
-
export * from '../lib/Badge'
|
|
14
|
-
export * from '../lib/Hud'
|
|
15
|
-
export * from '../lib/Modal'
|
|
16
|
-
export * from '../lib/MutiPictureView'
|
|
17
|
-
export * from '../lib/PictureViewer'
|
|
18
|
-
export * from '../lib/RefreshList'
|
|
19
|
-
export * from '../lib/TableCell'
|
|
20
|
-
export * from '../lib/TextInputArea'
|
|
21
|
-
export * from '../lib/WithLoadingContainer'
|
|
22
|
-
export * from '../lib/StickHeaderView'
|
|
23
|
-
export * from '../lib/Echarts'
|
|
24
|
-
export * from '../lib/RichText'
|
|
25
|
-
export * from '../lib/DottedLine'
|
|
26
|
-
export * from '../lib/MenuView'
|
|
27
|
-
export * from '../lib/AnimationModal'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/// 全局适配
|
|
32
|
-
export * from '../screen/index.d'
|
|
33
|
-
/// 工具
|
|
34
|
-
export * as utils from '../utils/index.d'
|
|
35
|
-
export * as jsbridge from '../jsbridge/index.d'
|
|
36
|
-
|
|
37
|
-
//通用类型
|
|
38
|
-
export type ItemProps = {
|
|
39
|
-
item: any;
|
|
40
|
-
index: number
|
|
41
|
-
}
|
|
42
|
-
|
package/src/index.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/*
|
|
3
|
-
* @Author: shiguo
|
|
4
|
-
* @Date: 2022-04-13 12:47:34
|
|
5
|
-
* @LastEditors: shiguo
|
|
6
|
-
* @LastEditTime: 2023-03-23 15:26:14
|
|
7
|
-
* @FilePath: /@aks-dev/easyui/src/index.ts
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/// 组件
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export * from '../lib/Badge/Badge'
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
Hud,
|
|
19
|
-
showLoading, hideLoading,
|
|
20
|
-
showToast,
|
|
21
|
-
showAlertModal,
|
|
22
|
-
showAlertBottomModal,
|
|
23
|
-
showAlertSheetModal,
|
|
24
|
-
showPopoverView, hidePopoverView,
|
|
25
|
-
showScanner, hideScanner
|
|
26
|
-
} from '../lib/Hud/Hud'
|
|
27
|
-
export * from '../lib/Modal/Modal'
|
|
28
|
-
export { default as MutiPictureView } from '../lib/MutiPictureView/MutiPictureView'
|
|
29
|
-
export { PictureViewer } from '../lib/PictureViewer/PictureViewer'
|
|
30
|
-
export { default as RefreshList } from '../lib/RefreshList/RefreshList'
|
|
31
|
-
export { RefreshState } from '../lib/RefreshList'
|
|
32
|
-
export { default as TableCell } from '../lib/TableCell/TableCell'
|
|
33
|
-
export { default as TextInputArea } from '../lib/TextInputArea/TextInputArea'
|
|
34
|
-
export { default as WithLoadingContainer } from '../lib/WithLoadingContainer/WithLoadingContainer'
|
|
35
|
-
export { WithLoadingContainerProps, Status } from '../lib/WithLoadingContainer'
|
|
36
|
-
export { default as StickHeaderView } from '../lib/StickHeaderView/StickHeaderView'
|
|
37
|
-
export { default as EchartsView } from '../lib/Echarts/EchartsView'
|
|
38
|
-
export { echarts } from '../lib/Echarts'
|
|
39
|
-
export { default as RichText } from '../lib/RichText/RichText'
|
|
40
|
-
export { default as DottedLine } from '../lib/DottedLine/DottedLine'
|
|
41
|
-
export { default as MenuView } from '../lib/MenuView/MenuView'
|
|
42
|
-
export { AnimationModal } from '../lib/AnimationModal/AnimationModal'
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/// 全局适配
|
|
46
|
-
export * from '../screen'
|
|
47
|
-
/// 工具
|
|
48
|
-
import * as utils from '../utils'
|
|
49
|
-
/// 桥接
|
|
50
|
-
import * as jsbridge from '../jsbridge'
|
|
51
|
-
export {
|
|
52
|
-
utils,
|
|
53
|
-
jsbridge
|
|
54
|
-
}
|
package/utils/mode.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: shiguo
|
|
3
|
-
* @Date: 2022-04-18 18:40:07
|
|
4
|
-
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2023-03-23 15:07:57
|
|
6
|
-
* @FilePath: /@aks-dev/easyui/utils/mode.ts
|
|
7
|
-
*/
|
|
8
|
-
import type { CallBack } from './index.d'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { PanResponder, Keyboard, Linking } from 'react-native'
|
|
14
|
-
export const keyboardDismissHandlers = PanResponder.create({
|
|
15
|
-
onStartShouldSetPanResponder: () => true,
|
|
16
|
-
onPanResponderGrant: Keyboard.dismiss
|
|
17
|
-
}).panHandlers
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const panHandlersCallback = (props: { GrantCallback: CallBack, MoveCallback: CallBack, ReleaseCallback: CallBack }) => {
|
|
23
|
-
return PanResponder.create({
|
|
24
|
-
onStartShouldSetPanResponder: () => true,
|
|
25
|
-
onMoveShouldSetPanResponder: () => true,
|
|
26
|
-
onPanResponderGrant: props.GrantCallback,
|
|
27
|
-
onPanResponderMove: props.MoveCallback,
|
|
28
|
-
onPanResponderRelease: props.ReleaseCallback
|
|
29
|
-
}).panHandlers
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export const callTelephone = (phone: number | string) => {
|
|
35
|
-
|
|
36
|
-
let tel = 'tel:' + phone
|
|
37
|
-
Linking.canOpenURL(tel).then((supported) => {
|
|
38
|
-
if (supported) {
|
|
39
|
-
Linking.openURL(tel)
|
|
40
|
-
} else {
|
|
41
|
-
console.warn('[sg:callTelephone 不支持]', { supported, tel })
|
|
42
|
-
}
|
|
43
|
-
}).catch(error => {
|
|
44
|
-
console.warn('[sg:callTelephone catch]', { error, tel })
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{lib/WithLoadingContainer → dist/components/WithLoadingContainer/assets}/loading.gif
RENAMED
|
File without changes
|
/package/{lib/WithLoadingContainer → dist/components/WithLoadingContainer/assets}/loading3.gif
RENAMED
|
File without changes
|
|
File without changes
|