Commit 5e3ae658 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复 intl未引入报错的问题

parent bc03c580
......@@ -6,6 +6,7 @@
* @Description: 可以带查询的表格,内置 formily,如果需要其他Form可以传入 customRenderSearchForm 配合 reload() 实现查询
*/
import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
import { useIntl } from 'umi';
import { Table, Pagination } from 'antd';
import { PaginationProps } from 'antd/lib/pagination';
import classNames from 'classnames';
......@@ -37,6 +38,8 @@ const NormalTable: React.ForwardRefRenderFunction<NormalTableRefHandleType, Norm
...restProps
} = props;
const intl = useIntl();
const initialCurrent = defaultCurrent || 1;
const initialPageSize = defaultPageSize || PAGE_SIZE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment