jws-frontend/src/components/NoData.vue

31 lines
571 B
Vue
Raw Normal View History

<script setup lang="ts">
defineProps<{
size?: number;
2024-08-22 16:36:56 +07:00
text?: string;
2024-06-18 11:45:45 +00:00
useField?: boolean;
2024-06-28 02:37:37 +00:00
notFound?: boolean;
}>();
</script>
<template>
<div>
<q-img
src="no-data.png"
:style="{
height: size ? `${size}px` : '120px',
width: size ? `${size + 2}px` : '123px',
}"
/>
2024-06-18 11:45:45 +00:00
<div class="app-text-muted text-center">
2024-08-22 16:36:56 +07:00
{{
text
? text
: notFound
? $t('notFound')
: useField
? $t('noField')
: $t('noData')
}}
2024-06-18 11:45:45 +00:00
</div>
</div>
</template>