mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bug fix] Search: 优化搜索显示 (#191)
This commit is contained in:
parent
8477157684
commit
96cbef9edd
@ -6,7 +6,7 @@
|
||||
<div class="van-search__input-wrap">
|
||||
<van-icon name="search"></van-icon>
|
||||
<input
|
||||
type="text"
|
||||
type="search"
|
||||
:placeholder="placeholder"
|
||||
class="van-search__input"
|
||||
v-model="value"
|
||||
|
@ -30,7 +30,9 @@
|
||||
&__input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
color: $gray-darker;
|
||||
border: none;
|
||||
@ -38,6 +40,13 @@
|
||||
&::placeholder {
|
||||
color: $gray-dark;
|
||||
}
|
||||
|
||||
&::-webkit-search-decoration,
|
||||
&::-webkit-search-cancel-button,
|
||||
&::-webkit-search-results-button,
|
||||
&::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
|
Loading…
x
Reference in New Issue
Block a user