新增网易云、酷狗排行榜音乐直接试听下载

This commit is contained in:
lyswhut
2019-08-20 01:19:01 +08:00
parent b8d07b365b
commit 78d2541c14
18 changed files with 266 additions and 43 deletions
+8 -1
View File
@@ -1,5 +1,5 @@
<template lang="pug">
button(:class="[$style.btn, min ? $style.min : '']" @click="$emit('click', $event)")
button(:class="[$style.btn, min ? $style.min : '']" :disabled="disabled" @click="$emit('click', $event)")
slot
</template>
@@ -9,6 +9,10 @@ export default {
min: {
type: Boolean,
},
disabled: {
type: Boolean,
default: false,
},
},
}
</script>
@@ -27,6 +31,9 @@ export default {
outline: none;
transition: background-color 0.2s ease;
background-color: @color-btn-background;
&[disabled] {
opacity: .4;
}
&:hover {
background-color: @color-theme_2-hover;