@aks-dev/easyui 1.0.76 → 1.0.79
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/lib/DottedLine/DottedLine.tsx +66 -0
- package/lib/DottedLine/index.ts +18 -0
- package/package.json +1 -1
- package/src/index.d.ts +2 -2
- package/src/index.ts +8 -12
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: shiguo
|
|
3
|
+
* @Date: 2022-07-12 15:30:19
|
|
4
|
+
* @LastEditors: shiguo
|
|
5
|
+
* @LastEditTime: 2022-07-12 15:33:06
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/lib/DottedLine/DottedLine.tsx
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react'
|
|
9
|
+
import { StyleSheet, View } from 'react-native'
|
|
10
|
+
import type { DottedLineProps } from '.'
|
|
11
|
+
export default (props: DottedLineProps) => {
|
|
12
|
+
const {
|
|
13
|
+
vertical = false,
|
|
14
|
+
dottedColor,
|
|
15
|
+
dottedCount = 200,
|
|
16
|
+
...rest
|
|
17
|
+
} = props
|
|
18
|
+
const arrs = Array.from({ length: dottedCount }, (k, v) => v)
|
|
19
|
+
return (
|
|
20
|
+
<View style={{ ...styles.container, flexDirection: vertical ? 'column' : 'row', ...rest.style as any }}>
|
|
21
|
+
{
|
|
22
|
+
arrs.map((item, index) => {
|
|
23
|
+
return <View
|
|
24
|
+
key={`dotted-${index}`}
|
|
25
|
+
style={{
|
|
26
|
+
...(vertical ? styles.dotted_vertical : styles.dotted_horizontal),
|
|
27
|
+
...(dottedColor && { backgroundColor: dottedColor })
|
|
28
|
+
}} />
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
</View>
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
flexGrow: 1,
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
flexDirection: 'row',
|
|
46
|
+
flexWrap: 'nowrap',
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
dotted_horizontal: {
|
|
50
|
+
flexGrow: 0,
|
|
51
|
+
flexShrink: 0,
|
|
52
|
+
width: 2,
|
|
53
|
+
height: 1,
|
|
54
|
+
marginRight: 2,
|
|
55
|
+
backgroundColor: '#cccccc',
|
|
56
|
+
},
|
|
57
|
+
dotted_vertical: {
|
|
58
|
+
flexGrow: 0,
|
|
59
|
+
flexShrink: 0,
|
|
60
|
+
width: 1,
|
|
61
|
+
height: 2,
|
|
62
|
+
marginBottom: 2,
|
|
63
|
+
backgroundColor: '#cccccc',
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: shiguo
|
|
3
|
+
* @Date: 2022-07-12 15:30:28
|
|
4
|
+
* @LastEditors: shiguo
|
|
5
|
+
* @LastEditTime: 2022-07-12 15:31:31
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/lib/DottedLine/index.ts
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react'
|
|
9
|
+
import { ViewProps } from 'react-native'
|
|
10
|
+
|
|
11
|
+
export type DottedLineProps = {
|
|
12
|
+
vertical?: boolean,
|
|
13
|
+
dottedColor?: string,
|
|
14
|
+
dottedCount?: number
|
|
15
|
+
} & ViewProps
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export declare const DottedLine: React.FC<DottedLineProps>
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-26 11:44:22
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-
|
|
5
|
+
* @LastEditTime: 2022-07-12 15:33:26
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/src/index.d.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -40,7 +40,7 @@ export * from '../screen'
|
|
|
40
40
|
export * from '../lib/RichText'
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
export * from '../lib/DottedLine'
|
|
44
44
|
|
|
45
45
|
/// 工具
|
|
46
46
|
import * as utils from '../utils'
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @Author: shiguo
|
|
4
4
|
* @Date: 2022-04-13 12:47:34
|
|
5
5
|
* @LastEditors: shiguo
|
|
6
|
-
* @LastEditTime: 2022-07-
|
|
6
|
+
* @LastEditTime: 2022-07-12 16:17:58
|
|
7
7
|
* @FilePath: /@aks-dev/easyui/src/index.ts
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
export * from '../lib/Badge/Badge'
|
|
16
|
-
export type { BadgeProps } from '../lib/Badge'
|
|
16
|
+
// export type { BadgeProps } from '../lib/Badge'
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
export { Hud, showLoading, hideLoading, showToast, showAlertModal } from '../lib/Hud/Hud'
|
|
@@ -25,32 +25,28 @@ export { default as MutiPictureView } from '../lib/MutiPictureView/MutiPictureVi
|
|
|
25
25
|
export { PictureViewer } from '../lib/PictureViewer/PictureViewer'
|
|
26
26
|
|
|
27
27
|
export { default as RefreshList } from '../lib/RefreshList/RefreshList'
|
|
28
|
-
export
|
|
28
|
+
export { RefreshState } from '../lib/RefreshList'
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
export { default as TableCell } from '../lib/TableCell/TableCell'
|
|
32
|
-
export type { TableCellProps } from '../lib/TableCell'
|
|
32
|
+
// export type { TableCellProps } from '../lib/TableCell'
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
export { default as TextInputArea } from '../lib/TextInputArea/TextInputArea'
|
|
36
|
-
export type { TextInputAreaCurrent, TextInputAreaProps } from '../lib/TextInputArea'
|
|
36
|
+
// export type { TextInputAreaCurrent, TextInputAreaProps } from '../lib/TextInputArea'
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
export { default as WithLoadingContainer } from '../lib/WithLoadingContainer/WithLoadingContainer'
|
|
40
40
|
export { WithLoadingContainerProps, Status } from '../lib/WithLoadingContainer'
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
export * from '../lib/StickHeaderView/StickHeaderView'
|
|
45
|
-
export type { StickHeaderViewProps } from '../lib/StickHeaderView'
|
|
46
|
-
|
|
43
|
+
export { default as StickHeaderView } from '../lib/StickHeaderView/StickHeaderView'
|
|
47
44
|
|
|
48
45
|
export { default as EchartsView } from '../lib/Echarts/EchartsView'
|
|
49
46
|
export { echarts } from '../lib/Echarts'
|
|
50
|
-
// export type { EchartsViewProps } from '../lib/Echarts'
|
|
51
|
-
|
|
52
|
-
export {default as RichText} from '../lib/RichText/RichText'
|
|
53
47
|
|
|
48
|
+
export { default as RichText } from '../lib/RichText/RichText'
|
|
49
|
+
export { default as DottedLine } from '../lib/DottedLine/DottedLine'
|
|
54
50
|
|
|
55
51
|
/// 全局适配
|
|
56
52
|
export * from '../screen/px2dp'
|