-
Notifications
You must be signed in to change notification settings - Fork 2
/
overWriteStyle.js
59 lines (57 loc) · 1.33 KB
/
overWriteStyle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const LabelWidth = 130;//表单左侧文字的宽度
const ErrorTxtWrapHeight = 25;//错误提示文字容器的高度
const labelPaddingRight = 10;
export default {
//formItem相关样式====================
formItemWrap: {
position: "relative",
marginBottom: 20,
paddingBottom: ErrorTxtWrapHeight
},
formItemInnerWrap: {
flexDirection: "row",
alignItems: "center",
},
formItemLeftTextWrap: {
textAlign: "right"
},
formItemRequired: {
color: "orange",
letterSpacing:10
},
formItemErrWrap: {
position: "absolute",
left: 0,
bottom: 0,
height: ErrorTxtWrapHeight,
justifyContent: "center",
paddingLeft: LabelWidth + labelPaddingRight
},
formItemErrorTxt: {
color: "orange"
},
formItemLeftWrap: {
width: LabelWidth,
paddingRight: labelPaddingRight
},
formItemLeftText: {
fontSize: 14,
color: "#999"
},
//封装的input标签样式
elInput: {
height: 40,
borderColor: '#333',
borderWidth: 1,
borderRadius: 8,
paddingHorizontal: 5,
paddingLeft:40
},
elInputError: {
borderColor: 'orange',
color: "orange"
},
elInputPass: {
borderColor: 'blue',
}
}