🐛 搜索面板优化

Former-commit-id: 954c685d9c6a7928a9f6b8c8f36879d6e8210e5a
This commit is contained in:
liyang
2019-05-09 11:38:33 +08:00
parent 353229517e
commit 6803334b33
4 changed files with 19 additions and 7 deletions
@@ -122,7 +122,9 @@ export default {
focus () {
this.input = ''
setTimeout(() => {
this.$refs.input.focus()
if (this.$refs.input) {
this.$refs.input.focus()
}
// 还原
this.searchText = ''
this.results = []
@@ -185,6 +187,7 @@ export default {
<style lang="scss" scoped>
.panel-search {
margin: 20px;
width: 100%;
.panel-search__input-group {
height: 240px;
.panel-search__logo {
@@ -212,6 +215,7 @@ export default {
}
.panel-search__results-group {
overflow: auto;
margin-bottom: -20px;
.panel-search__results-group-inner {
margin: -20px;
}