From 962f90de445d7935ad76ea7b74a98f12ce9a7498 Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期二, 01 十二月 2020 23:51:39 +0800 Subject: [PATCH] feat: support vscode i18n-ally plugin --- src/components/Table/src/hooks/useColumns.ts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Table/src/hooks/useColumns.ts b/src/components/Table/src/hooks/useColumns.ts index 3592e74..f188e88 100644 --- a/src/components/Table/src/hooks/useColumns.ts +++ b/src/components/Table/src/hooks/useColumns.ts @@ -6,7 +6,7 @@ import { useProps } from './useProps'; import { useI18n } from '/@/hooks/web/useI18n'; -const { t } = useI18n('component.table'); +const { t } = useI18n(); export function useColumns( refProps: ComputedRef<BasicTableProps>, getPaginationRef: ComputedRef<false | PaginationProps> @@ -44,7 +44,7 @@ columns.unshift({ flag: 'INDEX', width: 50, - title: t('index'), + title: t('component.table.index'), align: 'center', customRender: ({ index }) => { const getPagination = unref(getPaginationRef); -- Gitblit v1.8.0