中英文切换 初始化
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Empty } from 'antd';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { t } from 'i18next';
|
||||
|
||||
interface EmptyDataProps {
|
||||
/** 自定义文案 */
|
||||
@@ -9,7 +11,7 @@ interface EmptyDataProps {
|
||||
}
|
||||
|
||||
const EmptyData: React.FC<EmptyDataProps> = ({
|
||||
description = '暂无数据',
|
||||
description = t('common.noData'),
|
||||
height = 220
|
||||
}) => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user