diff --git a/components.d.ts b/components.d.ts index 961fde7..9ee79e6 100644 --- a/components.d.ts +++ b/components.d.ts @@ -35,6 +35,7 @@ declare module 'vue' { NSwitch: typeof import('naive-ui')['NSwitch'] NTooltip: typeof import('naive-ui')['NTooltip'] NVirtualList: typeof import('naive-ui')['NVirtualList'] + NVirtualListualList: typeof import('naive-ui')['NVirtualListualList'] PlayBottom: typeof import('./src/components/common/PlayBottom.vue')['default'] PlayListsItem: typeof import('./src/components/common/PlayListsItem.vue')['default'] PlaylistType: typeof import('./src/components/PlaylistType.vue')['default'] diff --git a/src/components/MusicList.vue b/src/components/MusicList.vue index d778f10..4c66acd 100644 --- a/src/components/MusicList.vue +++ b/src/components/MusicList.vue @@ -9,41 +9,72 @@ @mask-click="close" >
-
- +
+ +
+ {{ name }} +
+
+
+ +
-
{{ name }}
- -
- - - -
加载中...
- +
+ +
+
+ +
+
+
+ + {{ listInfo.creator.nickname }} +
+
+ + {{ listInfo.description }} + +
+
+
+ + +
+
+ +
+
+ +
+
加载更多...
+ +
+
+
+ +
diff --git a/src/views/list/index.vue b/src/views/list/index.vue index ae1e936..17a6172 100644 --- a/src/views/list/index.vue +++ b/src/views/list/index.vue @@ -21,7 +21,8 @@ const isLoadingMore = ref(false); // 计算每个项目的动画延迟 const getItemAnimationDelay = (index: number) => { - return setAnimationDelay(index, 30); + const currentPageIndex = index % TOTAL_ITEMS; + return setAnimationDelay(currentPageIndex, 30); }; const recommendItem = ref(); @@ -167,7 +168,7 @@ watch( &-list { @apply grid gap-x-8 gap-y-6 pb-28 pr-4; - grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } &-item { @apply flex flex-col; @@ -224,6 +225,7 @@ watch( .recommend-list { @apply px-4 gap-4; + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } } diff --git a/src/views/mv/index.vue b/src/views/mv/index.vue index 6a43cd3..2006eba 100644 --- a/src/views/mv/index.vue +++ b/src/views/mv/index.vue @@ -58,7 +58,7 @@ const initLoading = ref(false); const loadingMore = ref(false); const currentIndex = ref(0); const offset = ref(0); -const limit = ref(28); +const limit = ref(42); const hasMore = ref(true); const getItemAnimationDelay = (index: number) => { @@ -163,7 +163,7 @@ const isPrevDisabled = computed(() => currentIndex.value === 0); &-content { @apply grid gap-4 pb-28 mt-2 pr-4; - grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .mv-item { @@ -223,6 +223,7 @@ const isPrevDisabled = computed(() => currentIndex.value === 0); .mv-list-content { @apply px-4; + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }