@gm-mobile/c-react 3.9.3-beta.6 → 3.9.3-beta.8
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
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.8",
|
|
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.8",
|
|
25
|
+
"@gm-mobile/c-tool": "^3.9.3-beta.8",
|
|
26
|
+
"@gm-mobile/locales": "^3.9.3-beta.8"
|
|
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": "1a399bd891e2971777a509ddf1968d77dcd514a7"
|
|
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
|
}
|
|
@@ -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/text.less
CHANGED
|
@@ -99,15 +99,19 @@ each(@colors,.(@color,@colorKey,@index){
|
|
|
99
99
|
.generate-colors(@opacity+1);
|
|
100
100
|
}
|
|
101
101
|
.generate-colors(0);
|
|
102
|
+
.m-text-@{colorKey}{
|
|
103
|
+
color: @color!important;
|
|
104
|
+
}
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
// 生成size, .m-text-{8-32}, --m-size-text-{8-32}
|
|
105
108
|
.generate-size(@size) when (@size<=32) {
|
|
106
|
-
:root,
|
|
107
|
-
|
|
109
|
+
:root,
|
|
110
|
+
page {
|
|
111
|
+
--m-size-text-@{size}: ~'@{size}px';
|
|
108
112
|
}
|
|
109
113
|
.m-text-@{size} {
|
|
110
|
-
font-size: e(%(
|
|
114
|
+
font-size: e(%('var(--m-size-text-%s)!important', @size));
|
|
111
115
|
}
|
|
112
116
|
.generate-size(@size + 2);
|
|
113
117
|
}
|