File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const TreeView: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
62
62
*/
63
63
useEffect ( ( ) => {
64
64
const { contextMenu, id, fileType } = activeData ;
65
- const moContextMenu : IMenuItem [ ] =
65
+ const moContextMenu : IMenuItem [ ] | undefined =
66
66
contextMenu || renderContextMenu ?.( fileType , activeData ) ;
67
67
let contextViewMenu ;
68
68
if ( moContextMenu && moContextMenu . length > 0 ) {
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ const FolderTree: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
51
51
const { data, ...restProps } = props ;
52
52
return (
53
53
< Tree
54
- prefixCls = "rc-tree"
55
54
data = { data }
56
55
draggable
57
56
onSelectFile = { serviceProps . onSelectFile }
@@ -79,11 +78,11 @@ const FolderTree: React.FunctionComponent<ITreeProps> = (props: ITreeProps) => {
79
78
index
80
79
) ;
81
80
} }
82
- onChange = { ( e ) => { } }
81
+ onChange = { ( e ) => { } }
83
82
/>
84
83
) : (
85
- name
86
- ) ;
84
+ name
85
+ ) ;
87
86
} }
88
87
{ ...restProps }
89
88
/>
Original file line number Diff line number Diff line change 6
6
prefixClaName ,
7
7
getBEMElement ,
8
8
getBEMModifier ,
9
- classNames ,
10
9
} from 'mo/common/className' ;
11
10
export interface SearchTreeProps extends ITreeProps {
12
11
searchValue ?: string ;
@@ -32,7 +31,6 @@ const SearchTree: React.FunctionComponent<SearchTreeProps> = (
32
31
const { data, searchValue, ...restProps } = props ;
33
32
return (
34
33
< Tree
35
- prefixCls = "rc-tree"
36
34
data = { data }
37
35
renderTitle = { ( node , index ) => {
38
36
const { name } = node ;
@@ -49,8 +47,8 @@ const SearchTree: React.FunctionComponent<SearchTreeProps> = (
49
47
{ afterStr }
50
48
</ span >
51
49
) : (
52
- name
53
- ) ;
50
+ name
51
+ ) ;
54
52
return title ;
55
53
} }
56
54
onSelectFile = { serviceProps . onSelectFile }
You can’t perform that action at this time.
0 commit comments