|
|
@ -1,5 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="cover-row">
|
|
|
|
<div class="cover-row" :style="rowStyles">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="item"
|
|
|
|
class="item"
|
|
|
|
v-for="item in items"
|
|
|
|
v-for="item in items"
|
|
|
@ -47,6 +47,16 @@ export default {
|
|
|
|
type: { type: String, required: true },
|
|
|
|
type: { type: String, required: true },
|
|
|
|
subText: { type: String, default: "null" },
|
|
|
|
subText: { type: String, default: "null" },
|
|
|
|
showPlayCount: { type: Boolean, default: false },
|
|
|
|
showPlayCount: { type: Boolean, default: false },
|
|
|
|
|
|
|
|
columnNumber: { type: Number, default: 5 },
|
|
|
|
|
|
|
|
gap: { type: String, default: "44px 24px" },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
rowStyles() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
"grid-template-columns": `repeat(${this.columnNumber}, 1fr)`,
|
|
|
|
|
|
|
|
gap: this.gap,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getSubText(item) {
|
|
|
|
getSubText(item) {
|
|
|
@ -93,7 +103,8 @@ export default {
|
|
|
|
return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512x512";
|
|
|
|
return "https://p2.music.126.net/VnZiScyynLG7atLIZ2YPkw==/18686200114669622.jpg?param=512x512";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return item.img1v1Url || item.picUrl || item.coverImgUrl;
|
|
|
|
let img = item.img1v1Url || item.picUrl || item.coverImgUrl;
|
|
|
|
|
|
|
|
return `${img}?param=512x512`;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -102,8 +113,6 @@ export default {
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.cover-row {
|
|
|
|
.cover-row {
|
|
|
|
display: grid;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(5, 1fr);
|
|
|
|
|
|
|
|
gap: 44px 24px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
.item {
|
|
|
@ -134,7 +143,6 @@ export default {
|
|
|
|
.item.artist {
|
|
|
|
.item.artist {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
.cover {
|
|
|
|
.cover {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|