From 99b0595e501009f42cbefdd97945e21f495cfaee Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 21 Sep 2019 20:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=A5=E5=8F=A3=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/views/Search.vue | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/renderer/views/Search.vue b/src/renderer/views/Search.vue index 8b010fbc..2648e49f 100644 --- a/src/renderer/views/Search.vue +++ b/src/renderer/views/Search.vue @@ -29,7 +29,10 @@ td.break(style="width: 20%;") {{item.singer}} td.break(style="width: 25%;") {{item.albumName}} td(style="width: 15%;") - material-list-buttons(:index="index" :remove-btn="false" @btn-click="handleListBtnClick") + material-list-buttons(:index="index" :remove-btn="false" :class="$style.listBtn" + :play-btn="item.source == 'kw' || (!isAPITemp && item.source != 'tx' && item.source != 'wy')" + :download-btn="item.source == 'kw' || (!isAPITemp && item.source != 'tx' && item.source != 'wy')" + @btn-click="handleListBtnClick") td(style="width: 10%;") {{item.interval}} div(:class="$style.pagination") material-pagination(:count="listInfo.total" :limit="listInfo.limit" :page="page" @btn-click="handleTogglePage") @@ -37,7 +40,7 @@ p 搜我所想~~😉 material-download-modal(:show="isShowDownload" :musicInfo="musicInfo" @select="handleAddDownload" @close="isShowDownload = false") material-download-multiple-modal(:show="isShowDownloadMultiple" :list="selectdData" @select="handleAddDownloadMultiple" @close="isShowDownloadMultiple = false") - material-flow-btn(:show="isShowEditBtn" :remove-btn="false" @btn-click="handleFlowBtnClick") + material-flow-btn(:show="isShowEditBtn && (searchSourceId == 'kw' || searchSourceId == 'all' || !isAPITemp)" :remove-btn="false" @btn-click="handleFlowBtnClick") @@ -260,6 +270,9 @@ export default { } } } +.listBtn { + min-height: 24px; +} .pagination { text-align: center; padding: 15px 0;