2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
2022-09-11 08:06:34 +00:00
|
|
|
<label v-if="isMobile.phone" class="text-highlight">
|
|
|
|
<input type="checkbox" v-model="value"/>
|
|
|
|
<icon :icon="value ? faAngleUp : faAngleDown" class="toggle"/>
|
|
|
|
<span>Toggle the song list controls</span>
|
|
|
|
</label>
|
2022-04-15 14:24:30 +00:00
|
|
|
</template>
|
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
<script lang="ts" setup>
|
2022-07-15 07:23:55 +00:00
|
|
|
import { faAngleDown, faAngleUp } from '@fortawesome/free-solid-svg-icons'
|
2022-04-15 14:24:30 +00:00
|
|
|
import isMobile from 'ismobilejs'
|
2022-09-11 08:06:34 +00:00
|
|
|
import { computed } from 'vue'
|
2022-04-15 14:24:30 +00:00
|
|
|
|
2022-09-11 08:06:34 +00:00
|
|
|
const props = withDefaults(defineProps<{ modelValue?: boolean }>(), { modelValue: false })
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue'])
|
|
|
|
|
|
|
|
const value = computed({
|
|
|
|
get: () => props.modelValue,
|
|
|
|
set: value => emit('update:modelValue', value)
|
|
|
|
})
|
2022-04-15 14:24:30 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-09-11 08:06:34 +00:00
|
|
|
label {
|
2022-04-15 14:24:30 +00:00
|
|
|
font-size: 1rem;
|
2022-09-11 08:06:34 +00:00
|
|
|
display: inline-block;
|
2022-04-15 14:24:30 +00:00
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2022-09-11 08:06:34 +00:00
|
|
|
|
|
|
|
input, span {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-04-15 14:24:30 +00:00
|
|
|
</style>
|