diff --git a/src/common/utils/vueTools.ts b/src/common/utils/vueTools.ts index 4d0eb758..db1aa2b4 100644 --- a/src/common/utils/vueTools.ts +++ b/src/common/utils/vueTools.ts @@ -22,6 +22,7 @@ import { defineComponent, shallowReactive, defineExpose, + withDefaults, } from 'vue' // import { useStore } from 'vuex' @@ -82,4 +83,5 @@ export { defineComponent, shallowReactive, defineExpose, + withDefaults, } diff --git a/src/renderer/views/Search/SongListList/index.vue b/src/renderer/views/Search/SongListList/index.vue index 2d8e4814..7184556b 100644 --- a/src/renderer/views/Search/SongListList/index.vue +++ b/src/renderer/views/Search/SongListList/index.vue @@ -1,6 +1,6 @@ @@ -61,6 +61,7 @@ const togglePage = (page: number) => { top: 0; width: 100%; height: 100%; + padding-top: 5px; } // .list { diff --git a/src/renderer/views/songList/List/components/SongList.vue b/src/renderer/views/songList/List/components/SongList.vue index 95d503ec..15863701 100644 --- a/src/renderer/views/songList/List/components/SongList.vue +++ b/src/renderer/views/songList/List/components/SongList.vue @@ -9,11 +9,12 @@

{{ item.name }}

+

{{ item.author }}

{{ item.total }} {{ item.play_count }} + {{ item.source }}
-

{{ item.author }}

@@ -38,9 +39,12 @@ import { ListInfo, ListInfoItem } from '@renderer/store/songList/state' import { useRoute, useRouter } from '@common/utils/vueRouter' -const props = defineProps<{ +const props = withDefaults(defineProps<{ listInfo: ListInfo -}>() + visibleSource: boolean +}>(), { + visibleSource: false, +}) const router = useRouter() const route = useRoute() @@ -175,7 +179,7 @@ defineExpose({ font-size: 12px; .mixin-ellipsis-1; text-align: justify; - line-height: 1.2; + line-height: 1.3; // text-indent: 24px; color: var(--color-font-label); }