From 05d3bb9e229cf2f41101b453e5a473f031977c5c Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 12 Nov 2025 15:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Table/index.d.ts | 8 ++++---- components/Table/index.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/Table/index.d.ts b/components/Table/index.d.ts index 3443372..5d096d3 100644 --- a/components/Table/index.d.ts +++ b/components/Table/index.d.ts @@ -1,11 +1,11 @@ import type { ProTableProps } from "@ant-design/pro-table"; -import type { TableProps } from "antd"; +import type { TableProps as AntdTableProps } from "antd"; import type { FC } from "react"; /** * TablePro 组件属性 */ -export type TableProProps = Omit & ProTableProps & { +export type TableProps = Omit & ProTableProps & { /** 当一个路由下存在多个表格的情况下 需要给每一个表格设置一个唯一存储索引 若没有设置则使用默认索引,请注意缓存数据会被覆盖 */ storeIndex?: string; /** 是否禁用内容区滚动,默认 false */ @@ -21,5 +21,5 @@ export type TableProProps = Omit(props: TableProProps) => ReturnType; -export default TablePro; +declare const Table: (props: TableProps) => ReturnType; +export default Table; diff --git a/components/Table/index.js b/components/Table/index.js index 22230a6..ff4f95d 100644 --- a/components/Table/index.js +++ b/components/Table/index.js @@ -2,7 +2,7 @@ import Table from "@cqsjjb/jjb-react-admin-component/Table"; import { getIndexColumn } from "../../utils/index"; import "./index.less"; -function TablePro(props) { +function Table(props) { const { columns = [], showIndexColumn = true, @@ -18,4 +18,4 @@ function TablePro(props) { return ; } -export default TablePro; +export default Table;