feat: nodata product i18n
This commit is contained in:
parent
3f916bb4c3
commit
446015a795
3 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
size?: number;
|
||||
text?: string;
|
||||
useField?: boolean;
|
||||
notFound?: boolean;
|
||||
}>();
|
||||
|
|
@ -15,7 +16,15 @@ defineProps<{
|
|||
}"
|
||||
/>
|
||||
<div class="app-text-muted text-center">
|
||||
{{ notFound ? $t('notFound') : useField ? $t('noField') : $t('noData') }}
|
||||
{{
|
||||
text
|
||||
? text
|
||||
: notFound
|
||||
? $t('notFound')
|
||||
: useField
|
||||
? $t('noField')
|
||||
: $t('noData')
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -219,6 +219,7 @@ export default {
|
|||
showTotalPrice: 'Show Total Price',
|
||||
},
|
||||
product: {
|
||||
noProduct: 'No Product',
|
||||
allProduct: 'All Product',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -217,6 +217,7 @@ export default {
|
|||
showTotalPrice: 'แสดงราคารวม',
|
||||
},
|
||||
product: {
|
||||
noProduct: 'ยังไม่มีสินค้า',
|
||||
allProduct: 'สินค้าทั้งหมด',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue