mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-07 22:01:15 +08:00
[bugfix] Field: input text color (#1143)
This commit is contained in:
parent
3b130445ae
commit
9d03d94aa3
@ -20,13 +20,14 @@
|
|||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
min-height: 24px;
|
min-height: 24px;
|
||||||
|
color: @text-color;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
&--disabled {
|
&--disabled {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
color: @gray-darker;
|
color: @gray-dark;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +44,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__placeholder {
|
||||||
|
color: @gray-dark;
|
||||||
|
}
|
||||||
|
|
||||||
&__clear-root {
|
&__clear-root {
|
||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
auto-height="{{ autosize }}"
|
auto-height="{{ autosize }}"
|
||||||
placeholder="{{ placeholder }}"
|
placeholder="{{ placeholder }}"
|
||||||
placeholder-style="{{ placeholderStyle }}"
|
placeholder-style="{{ placeholderStyle }}"
|
||||||
placeholder-class="{{ error ? 'van-field__input--error' : '' }}"
|
placeholder-class="{{ error ? 'van-field__input--error' : 'van-field__placeholder' }}"
|
||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
adjust-position="{{ adjustPosition }}"
|
adjust-position="{{ adjustPosition }}"
|
||||||
show-confirm-bar="{{ showConfirmBar }}"
|
show-confirm-bar="{{ showConfirmBar }}"
|
||||||
@ -44,7 +44,7 @@
|
|||||||
maxlength="{{ maxlength }}"
|
maxlength="{{ maxlength }}"
|
||||||
placeholder="{{ placeholder }}"
|
placeholder="{{ placeholder }}"
|
||||||
placeholder-style="{{ placeholderStyle }}"
|
placeholder-style="{{ placeholderStyle }}"
|
||||||
placeholder-class="{{ error ? 'van-field__input--error' : '' }}"
|
placeholder-class="{{ error ? 'van-field__input--error' : 'van-field__placeholder' }}"
|
||||||
confirm-type="{{ confirmType }}"
|
confirm-type="{{ confirmType }}"
|
||||||
confirm-hold="{{ confirmHold }}"
|
confirm-hold="{{ confirmHold }}"
|
||||||
cursor-spacing="{{ cursorSpacing }}"
|
cursor-spacing="{{ cursorSpacing }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user