@aks-dev/easyui 1.0.80 → 1.0.81
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,8 +2,8 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-24 13:56:47
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-
|
|
6
|
-
* @FilePath: /@aks/easyui/lib/TextInputArea/TextInputArea.tsx
|
|
5
|
+
* @LastEditTime: 2022-07-14 11:56:11
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/lib/TextInputArea/TextInputArea.tsx
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react'
|
|
9
9
|
import { View, Text, TextInput, StyleSheet } from 'react-native'
|
|
@@ -33,7 +33,7 @@ export default React.forwardRef<TextInputAreaCurrent, Partial<TextInputAreaProps
|
|
|
33
33
|
|
|
34
34
|
<TextInput
|
|
35
35
|
{...rest}
|
|
36
|
-
style={styles.textInput}
|
|
36
|
+
style={[styles.textInput,rest.textInputStyle]}
|
|
37
37
|
value={value}
|
|
38
38
|
onChangeText={txt => {
|
|
39
39
|
setValue(txt);
|
|
@@ -70,6 +70,7 @@ const styles = StyleSheet.create({
|
|
|
70
70
|
flex: 1,
|
|
71
71
|
margin: px2dp(15),
|
|
72
72
|
marginBottom: px2dp(8),
|
|
73
|
+
fontSize:px2sp(14)
|
|
73
74
|
// backgroundColor: 'red'
|
|
74
75
|
},
|
|
75
76
|
corner: {
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-24 13:59:32
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-
|
|
6
|
-
* @FilePath: /@aks/
|
|
5
|
+
* @LastEditTime: 2022-07-14 11:56:00
|
|
6
|
+
* @FilePath: /@aks-dev/easyui/lib/TextInputArea/index.ts
|
|
7
7
|
*/
|
|
8
8
|
import * as React from 'react'
|
|
9
|
-
import { ViewStyle, StyleProp, TextInputProps } from 'react-native'
|
|
9
|
+
import { ViewStyle, StyleProp, TextInputProps, TextStyle } from 'react-native'
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
export type TextInputAreaProps = {
|
|
13
|
-
placeholder: string
|
|
14
|
-
maxLength: number
|
|
15
|
-
style: StyleProp<ViewStyle
|
|
13
|
+
placeholder: string;
|
|
14
|
+
maxLength: number;
|
|
15
|
+
style: StyleProp<ViewStyle>;
|
|
16
|
+
textInputStyle: StyleProp<TextStyle>;
|
|
16
17
|
/**设置默认值 */
|
|
17
|
-
defaultValue: string
|
|
18
|
+
defaultValue: string;
|
|
18
19
|
/*监听content的变化*/
|
|
19
|
-
on: (content: string) => void
|
|
20
|
+
on: (content: string) => void;
|
|
20
21
|
} & TextInputProps
|
|
21
22
|
|
|
22
23
|
|
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
* @Author: shiguo
|
|
3
3
|
* @Date: 2022-04-19 10:25:43
|
|
4
4
|
* @LastEditors: shiguo
|
|
5
|
-
* @LastEditTime: 2022-07-11
|
|
5
|
+
* @LastEditTime: 2022-07-13 11:27:24
|
|
6
6
|
* @FilePath: /@aks-dev/easyui/utils/index.ts
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import * as rn from 'react-native'
|
|
9
|
+
import * as rn from 'react-native';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* @description: 睡眠时间
|