@@ -2,12 +2,9 @@ import React, { forwardRef, ReactNode, RefAttributes, useImperativeHandle, useRe
22import classNames from 'classnames' ;
33import { get } from 'lodash-es' ;
44
5+ import type { TableTreeDataMap } from '@tdesign/common-js/table/tree-store' ;
56
6- import { TableTreeDataMap } from '@tdesign/common-js/table/tree-store' ;
7- import { CheckboxGroupValue } from '../checkbox' ;
8- import { StyledProps } from '../common' ;
97import useDefaultProps from '../hooks/useDefaultProps' ;
10- import { PageInfo , PaginationProps } from '../pagination' ;
118import BaseTable from './BaseTable' ;
129import { primaryTableDefaultProps } from './defaultProps' ;
1310import EditableCell , { type EditableCellProps } from './EditableCell' ;
@@ -23,6 +20,9 @@ import useSorter from './hooks/useSorter';
2320import useStyle from './hooks/useStyle' ;
2421import useTableHeader , { renderTitle } from './hooks/useTableHeader' ;
2522
23+ import type { CheckboxGroupValue } from '../checkbox' ;
24+ import type { StyledProps } from '../common' ;
25+ import type { PageInfo , PaginationProps } from '../pagination' ;
2626import type { BaseTableProps , PrimaryTableProps , PrimaryTableRef } from './interface' ;
2727import type { PrimaryTableCellParams , PrimaryTableCol , TableRowData , TdPrimaryTableProps } from './type' ;
2828
@@ -35,7 +35,7 @@ export interface InternalPrimaryTableProps extends PrimaryTableProps, StyledProp
3535const PrimaryTable = forwardRef < PrimaryTableRef , InternalPrimaryTableProps > ( ( originalProps , ref ) => {
3636 const props = useDefaultProps < InternalPrimaryTableProps > ( originalProps , primaryTableDefaultProps ) ;
3737 const { columns, columnController, editableRowKeys, style, className } = props ;
38-
38+
3939 const primaryTableRef = useRef ( null ) ;
4040 const innerPagination = useRef < PaginationProps > ( props . pagination ) ;
4141 const { classPrefix, tableDraggableClasses, tableBaseClass, tableSelectedClasses, tableSortClasses } = useClassName ( ) ;
0 commit comments