mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 09:02:52 +08:00
工作单位组件样式调整
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user