mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Merge branch 'dev' into next
This commit is contained in:
commit
1f4ae70062
@ -113,6 +113,12 @@ export default createComponent({
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
||||
// hide bottom field when use search && detail get focused
|
||||
hideBottomFields() {
|
||||
const { searchResult } = this;
|
||||
return searchResult && searchResult.length && this.detailFocused;
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
@ -290,13 +296,9 @@ export default createComponent({
|
||||
},
|
||||
|
||||
render(h) {
|
||||
const { data, errorInfo, searchResult, disableArea } = this;
|
||||
const { data, errorInfo, disableArea, hideBottomFields } = this;
|
||||
const onFocus = (name) => () => this.onFocus(name);
|
||||
|
||||
// hide bottom field when use search && detail get focused
|
||||
const hideBottomFields =
|
||||
searchResult && searchResult.length && this.detailFocused;
|
||||
|
||||
return (
|
||||
<div class={bem()}>
|
||||
<div class={bem('fields')}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user