Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
supervise-wecom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47ec3a79
authored
May 22, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style(searchBar): 调整搜索框组件样式与左侧图标
替换默认搜索图标为自定义外部图标,修改搜索框内容区域的背景与边框样式,新增并配置van-cell的样式参数
1 parent
d7563cea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
src/components/searchBar/index.vue
src/components/searchBar/index.vue
View file @
47ec3a7
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<van-search
<van-search
v-model=
"keyword"
v-model=
"keyword"
:placeholder=
"placeholder"
:placeholder=
"placeholder"
left-icon=
"https://img02.glsx.com.cn/weapp/resource/supervise-wecom/icon-search.png"
shape=
"round"
shape=
"round"
background=
"transparent"
background=
"transparent"
@
search=
"onSearch"
@
search=
"onSearch"
...
@@ -62,8 +63,14 @@ export default {
...
@@ -62,8 +63,14 @@ export default {
padding
:
8px
12px
;
padding
:
8px
12px
;
}
}
:deep
(
.van-search__content
)
{
:deep
(
.van-search__content
)
{
background-color
:
#FFFFFF
;
background-color
:
#f2f3f7
;
border
:
1px
solid
#E5E5E5
;
border
:
1px
solid
#DCDDE1
;
}
:deep
(
.van-cell
)
{
height
:
40px
;
font-size
:
16px
;
color
:
#00000066
;
padding
:
8px
12px
8px
0
;
}
}
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment