From a716a1150b104acc0ff659a8d87df91e67a576fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zarach?= Date: Fri, 5 Jul 2024 12:00:22 +0200 Subject: [PATCH 1/2] Fixed icon types --- .../src/components/VDataTable/VDataTableFooter.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx b/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx index b75b8cf6200..93c33692e3f 100644 --- a/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx +++ b/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx @@ -8,6 +8,7 @@ import { VSelect } from '@/components/VSelect' // Composables import { usePagination } from './composables/paginate' import { useLocale } from '@/composables/locale' +import { IconValue } from '@/composables/icons' // Utilities import { computed } from 'vue' @@ -18,19 +19,19 @@ import type { PropType } from 'vue' export const makeVDataTableFooterProps = propsFactory({ prevIcon: { - type: String, + type: IconValue, default: '$prev', }, nextIcon: { - type: String, + type: IconValue, default: '$next', }, firstIcon: { - type: String, + type: IconValue, default: '$first', }, lastIcon: { - type: String, + type: IconValue, default: '$last', }, itemsPerPageText: { From a0e2a8bab91894b0a154c923287413ee7454276a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zarach?= Date: Fri, 5 Jul 2024 12:12:58 +0200 Subject: [PATCH 2/2] Fix eslint error --- packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx b/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx index 93c33692e3f..6c2737e8292 100644 --- a/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx +++ b/packages/vuetify/src/components/VDataTable/VDataTableFooter.tsx @@ -7,8 +7,8 @@ import { VSelect } from '@/components/VSelect' // Composables import { usePagination } from './composables/paginate' -import { useLocale } from '@/composables/locale' import { IconValue } from '@/composables/icons' +import { useLocale } from '@/composables/locale' // Utilities import { computed } from 'vue'