工作单位组件样式调整

This commit is contained in:
mengxiaolong
2021-01-13 13:48:26 +08:00
parent ef79a081c0
commit 13007bc551
2 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="search_box">
<div class="search_box" ref="search_box">
<van-field :label="label">
<template #input>
<input
@@ -7,7 +7,7 @@
type="text"
:placeholder="placeholder"
:value="searchContent"
@focus="onInputFocus"
@click="onInputFocus"
@blur="onInputBlur"
@input="onInput"
/>
@@ -82,6 +82,10 @@ export default {
},
onInputFocus() {
this.showCustomer = true
this.$refs.search_box.scrollTo({
top: 0,
behavior: 'smooth'
})
this.$nextTick(() => {
this.$refs.picker.scrollTo({
top: 0,
@@ -121,10 +125,10 @@ export default {
background: white;
border-radius: 0 0 6px 6px;
top: 34px;
max-height: 180px;
max-height: 150px;
overflow: scroll;
box-shadow: 0 1px 1px 1px #eee;
z-index: 10000;
z-index: 10;
}
/deep/ .van-cell {