@gm-mobile/c-react 3.9.3-beta.4 → 3.9.3-beta.9
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/package.json +5 -5
- package/src/component/button/button.tsx +1 -1
- package/src/component/calendar/index.ts +1 -0
- package/src/component/cell/style.less +8 -5
- package/src/component/popup/popup.tsx +2 -1
- package/src/component/popup/popup_v1.tsx +2 -1
- package/src/component/popup/types.ts +1 -0
- package/src/component/text_field/TextField.tsx +2 -0
- package/src/less/bg.less +7 -0
- package/src/less/distance.less +2 -0
- package/src/less/text.less +6 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-mobile/c-react",
|
|
3
|
-
"version": "3.9.3-beta.
|
|
3
|
+
"version": "3.9.3-beta.9",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "liyatang <liyatang@qq.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/gm-mobile#readme",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"url": "https://github.com/gmfe/gm-mobile/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@gm-mobile/c-font": "^3.9.3-beta.
|
|
25
|
-
"@gm-mobile/c-tool": "^3.9.3-beta.
|
|
26
|
-
"@gm-mobile/locales": "^3.9.3-beta.
|
|
24
|
+
"@gm-mobile/c-font": "^3.9.3-beta.9",
|
|
25
|
+
"@gm-mobile/c-tool": "^3.9.3-beta.9",
|
|
26
|
+
"@gm-mobile/locales": "^3.9.3-beta.9"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@tarojs/components": "3.0.18",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"prop-types": "^15.7.2",
|
|
34
34
|
"react": "^16.13.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "8a296c7fb7668d035feb60b3850cc5b724f556b6"
|
|
37
37
|
}
|
|
@@ -73,7 +73,7 @@ export const Button: FC<ButtonProps> = ({
|
|
|
73
73
|
onClick={handleClick}
|
|
74
74
|
>
|
|
75
75
|
{loadFlag && <Loading className='m-btn-loading' />}
|
|
76
|
-
<Flex alignCenter justifyCenter>
|
|
76
|
+
<Flex alignCenter justifyCenter style={{ display: 'inline-flex' }}>
|
|
77
77
|
{children}
|
|
78
78
|
</Flex>
|
|
79
79
|
</BaseButton>
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
background: var(--m-color-bg-white);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
.mCellBorderBottomAfter(15px, 0);
|
|
34
33
|
|
|
35
34
|
&.m-cell-access {
|
|
36
35
|
cursor: pointer;
|
|
@@ -41,10 +40,6 @@
|
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
&.m-cell-with-icon {
|
|
45
|
-
.mCellBorderBottomAfter(50px, 0);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
43
|
.m-cell-icon {
|
|
49
44
|
width: 35px;
|
|
50
45
|
}
|
|
@@ -105,4 +100,12 @@
|
|
|
105
100
|
.m-cell:not(.m-cell-form):last-child::after {
|
|
106
101
|
display: none;
|
|
107
102
|
}
|
|
103
|
+
|
|
104
|
+
.m-cell {
|
|
105
|
+
.mCellBorderBottomAfter(15px, 0);
|
|
106
|
+
|
|
107
|
+
&.m-cell-with-icon {
|
|
108
|
+
.mCellBorderBottomAfter(50px, 0);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
108
111
|
}
|
|
@@ -38,6 +38,7 @@ const PopupBase: FC<PopupProps> = ({
|
|
|
38
38
|
/** 动画有卡顿现象,先禁用 */
|
|
39
39
|
disabledAnimate = true,
|
|
40
40
|
children,
|
|
41
|
+
disableBottomSafeArea,
|
|
41
42
|
...rest
|
|
42
43
|
}) => {
|
|
43
44
|
devWarnForHook(() => {
|
|
@@ -90,7 +91,7 @@ const PopupBase: FC<PopupProps> = ({
|
|
|
90
91
|
</Flex>
|
|
91
92
|
)}
|
|
92
93
|
<View className='m-popup-content'>{children}</View>
|
|
93
|
-
<CustomTabbar />
|
|
94
|
+
{!disableBottomSafeArea && <CustomTabbar />}
|
|
94
95
|
</View>
|
|
95
96
|
</View>
|
|
96
97
|
)
|
|
@@ -51,6 +51,7 @@ const PopupBase: FC<PopupV1Props> = ({
|
|
|
51
51
|
titleClassName,
|
|
52
52
|
titleCenter,
|
|
53
53
|
clickMaskClose = true,
|
|
54
|
+
disableBottomSafeArea,
|
|
54
55
|
...rest
|
|
55
56
|
}) => {
|
|
56
57
|
devWarnForHook(() => {
|
|
@@ -128,7 +129,7 @@ const PopupBase: FC<PopupV1Props> = ({
|
|
|
128
129
|
</Flex>
|
|
129
130
|
)}
|
|
130
131
|
<View className='m-popup-content'>{children}</View>
|
|
131
|
-
<CustomTabbar />
|
|
132
|
+
{!disableBottomSafeArea && <CustomTabbar />}
|
|
132
133
|
</View>
|
|
133
134
|
</View>
|
|
134
135
|
)
|
|
@@ -170,6 +170,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
|
|
|
170
170
|
onClick,
|
|
171
171
|
onConfirm,
|
|
172
172
|
fractionDigits,
|
|
173
|
+
alwaysEmbed = true,
|
|
173
174
|
...rest
|
|
174
175
|
// 注意,不用传给input或area的props要在此列出来,不然rest会带过去
|
|
175
176
|
} = this.props
|
|
@@ -207,6 +208,7 @@ export class TextField extends Component<TextFieldProps, TextFieldState> {
|
|
|
207
208
|
focus,
|
|
208
209
|
password,
|
|
209
210
|
placeholderClass: 'text-field-placeholder',
|
|
211
|
+
alwaysEmbed: alwaysEmbed,
|
|
210
212
|
onConfirm,
|
|
211
213
|
})
|
|
212
214
|
} else {
|
package/src/less/bg.less
CHANGED
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
background: var(--m-color-bg-accent-light) !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.m-bg-transparent {
|
|
30
|
+
background: transparent !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
29
33
|
.m-bg-white-active-with {
|
|
30
34
|
.mBgWhiteActiveWith();
|
|
31
35
|
}
|
|
@@ -61,4 +65,7 @@ each(@colors,.(@color,@colorKey,@index){
|
|
|
61
65
|
.generate-colors(@opacity+1);
|
|
62
66
|
}
|
|
63
67
|
.generate-colors(0);
|
|
68
|
+
.m-bg-@{colorKey}{
|
|
69
|
+
background-color: @color!important;
|
|
70
|
+
}
|
|
64
71
|
});
|
package/src/less/distance.less
CHANGED
package/src/less/text.less
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
.m-text-20 {
|
|
2
|
-
font-size: var(--m-size-text-20) !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.m-text-18 {
|
|
6
|
-
font-size: var(--m-size-text-18) !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.m-text-16 {
|
|
10
|
-
font-size: var(--m-size-text-16) !important;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.m-text-14 {
|
|
14
|
-
font-size: var(--m-size-text-14) !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.m-text-12 {
|
|
18
|
-
font-size: var(--m-size-text-12) !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.m-text-10 {
|
|
22
|
-
font-size: var(--m-size-text-10) !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
1
|
.m-text-center {
|
|
26
2
|
text-align: center !important;
|
|
27
3
|
}
|
|
@@ -123,17 +99,20 @@ each(@colors,.(@color,@colorKey,@index){
|
|
|
123
99
|
.generate-colors(@opacity+1);
|
|
124
100
|
}
|
|
125
101
|
.generate-colors(0);
|
|
102
|
+
.m-text-@{colorKey}{
|
|
103
|
+
color: @color!important;
|
|
104
|
+
}
|
|
126
105
|
});
|
|
127
106
|
|
|
128
107
|
// 生成size, .m-text-{8-32}, --m-size-text-{8-32}
|
|
129
108
|
.generate-size(@size) when (@size<=32) {
|
|
130
109
|
:root,
|
|
131
110
|
page {
|
|
132
|
-
--m-size-text-@{size}: @{size}px;
|
|
111
|
+
--m-size-text-@{size}: ~'@{size}px';
|
|
133
112
|
}
|
|
134
113
|
.m-text-@{size} {
|
|
135
|
-
font-size: e(%(
|
|
114
|
+
font-size: e(%('var(--m-size-text-%s)!important', @size));
|
|
136
115
|
}
|
|
137
|
-
.generate-size(@size+2);
|
|
116
|
+
.generate-size(@size + 2);
|
|
138
117
|
}
|
|
139
118
|
.generate-size(8);
|