jws-frontend/src/components/AllAroundBtn.vue

24 lines
467 B
Vue
Raw Normal View History

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