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';
38
38
import * as React from 'react' ;
39
39
import Body from './Body' ;
40
40
import ColGroup from './ColGroup' ;
41
- import { EXPAND_COLUMN } from './constant' ;
41
+ import { EXPAND_COLUMN , INTERNAL_HOOKS } from './constant' ;
42
42
import TableContext from './context/TableContext' ;
43
43
import type { FixedHeaderProps } from './FixedHolder' ;
44
44
import FixedHolder from './FixedHolder' ;
@@ -82,8 +82,6 @@ const EMPTY_DATA = [];
82
82
// Used for customize scroll
83
83
const EMPTY_SCROLL_TARGET = { } ;
84
84
85
- export const INTERNAL_HOOKS = 'rc-table-internal-hook' ;
86
-
87
85
export interface TableProps < RecordType = unknown >
88
86
extends Omit < LegacyExpandableProps < RecordType > , 'showExpandColumn' > {
89
87
prefixCls ?: string ;
Original file line number Diff line number Diff line change 1
1
export 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 1
1
import warning from 'rc-util/lib/warning' ;
2
2
import * as React from 'react' ;
3
+ import { INTERNAL_HOOKS } from '../constant' ;
3
4
import type {
4
5
ExpandableConfig ,
5
6
ExpandableType ,
@@ -9,7 +10,6 @@ import type {
9
10
TriggerEventHandler ,
10
11
} from '../interface' ;
11
12
import type { TableProps } from '../Table' ;
12
- import { INTERNAL_HOOKS } from '../Table' ;
13
13
import { findAllChildrenKeys , renderExpandIcon } from '../utils/expandUtil' ;
14
14
import { getExpandableProps } from '../utils/legacyUtil' ;
15
15
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
1
import { mount } from 'enzyme' ;
2
+ import React from 'react' ;
3
3
import Table from '../src' ;
4
- import { INTERNAL_HOOKS } from '../src/Table ' ;
4
+ import { INTERNAL_HOOKS } from '../src/constant ' ;
5
5
6
6
// All follow test is only for internal usage which should be removed when refactor
7
7
describe ( 'Table.Internal' , ( ) => {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import React from 'react';
4
4
import Table , { INTERNAL_COL_DEFINE } from '../src' ;
5
5
import BodyRow from '../src/Body/BodyRow' ;
6
6
import Cell from '../src/Cell' ;
7
- import { INTERNAL_HOOKS } from '../src/Table ' ;
7
+ import { INTERNAL_HOOKS } from '../src/constant ' ;
8
8
9
9
describe ( 'Table.Basic' , ( ) => {
10
10
const data = [
You can’t perform that action at this time.
0 commit comments