CN-1479 fix: 搜索组件添加showHint自动完成提示

This commit is contained in:
刘洪洪
2023-12-07 10:03:31 +08:00
parent 5106f23c2b
commit 8cd3f87c3e
33 changed files with 8954 additions and 89 deletions

View File

@@ -824,7 +824,7 @@ export default {
if (q && q.indexOf('+') > -1) {
q = q.replace('+', '')
}
if (q && q.indexOf('%') > 0 && (str1 !== '%20' || str1 === '%25')) {
if (q && q.indexOf('%') > 0 && (str1 === '%20' || str1 === '%25')) {
q = decodeURI(q)
}
this.initSearch(q)

View File

@@ -10,6 +10,7 @@
:default-mode="defaultMode"
:full-text="true"
:show-list="showList"
showHint
:class="{'advanced-search--show-list': showList}"
@search="search"
></advanced-search>