fix: search not found message

This commit is contained in:
puriphatt 2024-06-28 02:37:37 +00:00
parent 32449e7c4c
commit f183216a1f
4 changed files with 5 additions and 2 deletions

View file

@ -2,6 +2,7 @@
defineProps<{
size?: number;
useField?: boolean;
notFound?: boolean;
}>();
</script>
<template>
@ -14,7 +15,7 @@ defineProps<{
}"
/>
<div class="app-text-muted text-center">
{{ useField ? $t('noField') : $t('noData') }}
{{ notFound ? $t('notFound') : useField ? $t('noField') : $t('noData') }}
</div>
</div>
</template>

View file

@ -26,6 +26,7 @@ export default {
telephone: 'Telephone',
viewDetail: 'View Detail',
noData: 'No Data',
notFound: 'Data Not Found',
code: 'Code',
status: 'Status',
type: 'Type',

View file

@ -26,6 +26,7 @@ export default {
telephone: 'เบอร์โทรศัพท์',
viewDetail: 'ดูรายละเอียด',
noData: 'ยังไม่มีข้อมูล',
notFound: 'ไม่พบข้อมูล',
code: 'รหัส',
type: 'ประเภท',
status: 'สถานะ',

View file

@ -1403,7 +1403,7 @@ watch(currentPageService, async () => {
class="flex justify-center items-center q-mt-lg"
style="min-height: 70vh; background-color: var(--surface-2)"
>
<NoData />
<NoData notFound />
</div>
<div