jws-frontend/src/components/AllAroundBtn.vue
2024-06-11 11:59:22 +07:00

23 lines
467 B
Vue

<script setup lang="ts">
defineProps<{
label: string;
color?: string;
}>();
</script>
<template>
<div
class="q-pl-md q-pr-sm row items-center justify-between rounded hover-item"
:style="`border:1px solid ${color};color:${color}`"
@click.stop="$emit('viewDetail')"
>
{{ $t(label) }}
<q-icon name="mdi-arrow-right" class="q-ml-md" />
</div>
</template>
<style scoped>
.hover-item:hover {
background-color: var(--surface-3);
}
</style>