全文检索UI调整

This commit is contained in:
结发受长生 2019-07-08 15:11:34 +08:00
parent 4d4d47cb09
commit 78039c46d5
3 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@
</div>
<div class="search-result">
<div class="search-result-item" v-for="(item,index) in fullTextSearchItems" :key="index">
<a v-text="item.title" :href="item.href"></a>
<a v-text="item.title" :href="themeConfig.root + item.path"></a>
<div v-html="item.content"></div>
</div>
<div class="more-item" v-show="fullTextSearchItems.hasMore" @click="loadMoreSearchResult">

View File

@ -270,6 +270,7 @@ label.bui-switch-label {
}
.search-result {
height: 600px;
width: 500px;
overflow-y: auto;
.search-result-item {
text-align: left;

View File

@ -38,7 +38,8 @@ new Vue({
tip: null, // 提示语文字
tipOpacity: 0, // 提示语框透明度
showTools: false // 显示工具栏
}
},
themeConfig: window.themeConfig
},
methods: {
stop (event) {
@ -175,7 +176,8 @@ new Vue({
try {
if(night && eval(night)) document.querySelector('body').classList.add('night')
} catch (e){}
},
mounted() {
let hideModal = (function() {
let modals = document.querySelectorAll('.page-modal')
Array.prototype.forEach.call(modals, modal => {