feat: no data use field

This commit is contained in:
puriphatt 2024-06-18 11:45:45 +00:00
parent 583fdad68b
commit e07f764bf6

View file

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
defineProps<{ defineProps<{
size?: number; size?: number;
useField?: boolean;
}>(); }>();
</script> </script>
<template> <template>
@ -12,6 +13,8 @@ defineProps<{
width: size ? `${size + 2}px` : '123px', width: size ? `${size + 2}px` : '123px',
}" }"
/> />
<div class="app-text-muted text-center">{{ $t('noData') }}</div> <div class="app-text-muted text-center">
{{ useField ? $t('noField') : $t('noData') }}
</div>
</div> </div>
</template> </template>