fix: fixed search item

master
guoranred 4 years ago
parent 4c7c5c1da1
commit e2e92e9df9
  1. 1
      src/layouts/header/HeaderSearch.vue

@ -3,6 +3,7 @@
<a-icon type="search" class="search-icon" @click="enterSearchMode"/> <a-icon type="search" class="search-icon" @click="enterSearchMode"/>
<a-auto-complete <a-auto-complete
ref="input" ref="input"
:getPopupContainer="e => {return e.parentNode || document.body}"
:dataSource="dataSource" :dataSource="dataSource"
:class="['search-input', searchMode ? 'enter' : 'leave']" :class="['search-input', searchMode ? 'enter' : 'leave']"
placeholder="站内搜索" placeholder="站内搜索"

Loading…
Cancel
Save