Commit 47ec3a79 by chenwq

style(searchBar): 调整搜索框组件样式与左侧图标

替换默认搜索图标为自定义外部图标,修改搜索框内容区域的背景与边框样式,新增并配置van-cell的样式参数
1 parent d7563cea
......@@ -3,6 +3,7 @@
<van-search
v-model="keyword"
:placeholder="placeholder"
left-icon="https://img02.glsx.com.cn/weapp/resource/supervise-wecom/icon-search.png"
shape="round"
background="transparent"
@search="onSearch"
......@@ -62,8 +63,14 @@ export default {
padding: 8px 12px;
}
:deep(.van-search__content) {
background-color: #FFFFFF;
border: 1px solid #E5E5E5;
background-color: #f2f3f7;
border: 1px solid #DCDDE1;
}
:deep(.van-cell) {
height: 40px;
font-size: 16px;
color: #00000066;
padding: 8px 12px 8px 0;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!