File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 8
8
font-size : $input-font-size ;
9
9
box-sizing : border-box ;
10
10
11
+ .nut-input-native .weui-input ::placeholder ,
12
+ & -placeholder {
13
+ color : rgb (117 , 117 , 117 );
14
+ font-size : $input-font-size ;
15
+ }
16
+
11
17
.nut-icon {
12
18
color : $color-text-disabled ;
13
19
width : 14px ;
52
58
-webkit-text-fill-color : $color-text-disabled ;
53
59
}
54
60
}
55
-
56
- .nut-input-clear {
57
- // flex: 0;
58
- }
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ export const Input = forwardRef(
77
77
> ,
78
78
ref
79
79
) => {
80
+ const classPrefix = 'nut-input'
81
+
80
82
const rtl = useRtl ( )
81
83
const { locale } = useConfig ( )
82
84
const {
@@ -135,7 +137,6 @@ export const Input = forwardRef(
135
137
} )
136
138
137
139
const inputClass = useCallback ( ( ) => {
138
- const classPrefix = 'nut-input'
139
140
return [
140
141
classPrefix ,
141
142
`${ disabled ? `${ classPrefix } -disabled` : '' } ` ,
@@ -222,6 +223,7 @@ export const Input = forwardRef(
222
223
placeholder = {
223
224
placeholder === undefined ? locale . placeholder : placeholder
224
225
}
226
+ placeholderClass = { `${ classPrefix } -placeholder` }
225
227
disabled = { disabled || readOnly }
226
228
value = { value }
227
229
focus = { autoFocus }
You can’t perform that action at this time.
0 commit comments