song detail page is ready

This commit is contained in:
RockYang
2024-07-26 19:12:44 +08:00
parent f6f8748521
commit 2129f7a8b7
22 changed files with 718 additions and 82 deletions

View File

@@ -6,20 +6,19 @@
</template>
<script>
export default {
name: 'BlackSwitch',
props: {
value : Boolean,
size: {
type: String,
default: 'default',
}
},
data() {
return {
model: this.value
}
<script setup>
import {ref, watch} from "vue";
const props = defineProps({
value : Boolean,
size: {
type: String,
default: 'default',
}
}
});
const model = ref(props.value)
watch(() => props.value, (newValue) => {
model.value = newValue
})
</script>