File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import warning from 'rc-util/lib/warning';
3838import * as React from 'react' ;
3939import Body from './Body' ;
4040import ColGroup from './ColGroup' ;
41- import { EXPAND_COLUMN } from './constant' ;
41+ import { EXPAND_COLUMN , INTERNAL_HOOKS } from './constant' ;
4242import TableContext from './context/TableContext' ;
4343import type { FixedHeaderProps } from './FixedHolder' ;
4444import FixedHolder from './FixedHolder' ;
@@ -82,8 +82,6 @@ const EMPTY_DATA = [];
8282// Used for customize scroll
8383const EMPTY_SCROLL_TARGET = { } ;
8484
85- export const INTERNAL_HOOKS = 'rc-table-internal-hook' ;
86-
8785export interface TableProps < RecordType = unknown >
8886 extends Omit < LegacyExpandableProps < RecordType > , 'showExpandColumn' > {
8987 prefixCls ?: string ;
Original file line number Diff line number Diff line change 11export const EXPAND_COLUMN = { } as const ;
2+
3+ export const INTERNAL_HOOKS = 'rc-table-internal-hook' ;
Original file line number Diff line number Diff line change 11import warning from 'rc-util/lib/warning' ;
22import * as React from 'react' ;
3+ import { INTERNAL_HOOKS } from '../constant' ;
34import type {
45 ExpandableConfig ,
56 ExpandableType ,
@@ -9,7 +10,6 @@ import type {
910 TriggerEventHandler ,
1011} from '../interface' ;
1112import type { TableProps } from '../Table' ;
12- import { INTERNAL_HOOKS } from '../Table' ;
1313import { findAllChildrenKeys , renderExpandIcon } from '../utils/expandUtil' ;
1414import { getExpandableProps } from '../utils/legacyUtil' ;
1515
Original file line number Diff line number Diff line change 1- import React from 'react' ;
21import { mount } from 'enzyme' ;
2+ import React from 'react' ;
33import Table from '../src' ;
4- import { INTERNAL_HOOKS } from '../src/Table ' ;
4+ import { INTERNAL_HOOKS } from '../src/constant ' ;
55
66// All follow test is only for internal usage which should be removed when refactor
77describe ( 'Table.Internal' , ( ) => {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import React from 'react';
44import Table , { INTERNAL_COL_DEFINE } from '../src' ;
55import BodyRow from '../src/Body/BodyRow' ;
66import Cell from '../src/Cell' ;
7- import { INTERNAL_HOOKS } from '../src/Table ' ;
7+ import { INTERNAL_HOOKS } from '../src/constant ' ;
88
99describe ( 'Table.Basic' , ( ) => {
1010 const data = [
You can’t perform that action at this time.
0 commit comments