File tree 3 files changed +14
-14
lines changed
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export enum FileTypes {
15
15
FILE = 'file' ,
16
16
FOLDER = 'folder' ,
17
17
ROOT = 'rootFolder' ,
18
- } ;
18
+ }
19
19
export type FileType = keyof typeof FileTypes ;
20
20
21
21
export interface ITreeNodeItem {
@@ -51,11 +51,11 @@ export interface ITreeProps {
51
51
expandedKeys ?: Key [ ] ;
52
52
defaultCheckedKeys ?: Key [ ] ;
53
53
checkedKeys ?:
54
- | Key [ ]
55
- | {
56
- checked : Key [ ] ;
57
- halfChecked : Key [ ] ;
58
- } ;
54
+ | Key [ ]
55
+ | {
56
+ checked : Key [ ] ;
57
+ halfChecked : Key [ ] ;
58
+ } ;
59
59
defaultSelectedKeys ?: Key [ ] ;
60
60
selectedKeys ?: Key [ ] ;
61
61
titleRender ?: ( node : DataNode ) => React . ReactNode ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class FolderTreeController
33
33
this . initView ( ) ;
34
34
}
35
35
36
- private initView ( ) { }
36
+ private initView ( ) { }
37
37
38
38
public readonly onSelectFile = ( file : ITreeNodeItem ) => {
39
39
const tabData = {
@@ -75,7 +75,10 @@ export class FolderTreeController
75
75
content : 'This action is irreversible!' ,
76
76
onOk ( ) {
77
77
explorerService . delete ( nodeId , ( ) => {
78
- new EditorController ( ) . onCloseTab ( `${ nodeId } ` , editorService . getState ( ) ?. current ?. id ) ;
78
+ new EditorController ( ) . onCloseTab (
79
+ `${ nodeId } ` ,
80
+ editorService . getState ( ) ?. current ?. id
81
+ ) ;
79
82
} ) ;
80
83
} ,
81
84
} ) ;
Original file line number Diff line number Diff line change @@ -2,15 +2,12 @@ import * as React from 'react';
2
2
import Toolbar from 'mo/components/toolbar' ;
3
3
import { prefixClaName } from 'mo/common/className' ;
4
4
import { Header , Content } from 'mo/workbench/sidebar' ;
5
- import {
6
- colorThemeService ,
7
- explorerService ,
8
- } from 'mo' ;
5
+ import { colorThemeService , explorerService } from 'mo' ;
9
6
import { Select , Option } from 'mo/components/select' ;
10
7
import { IColorTheme } from 'mo/model/colorTheme' ;
11
8
import SearchTree from './searchTree' ;
12
9
13
- interface ISearchPaneToolBar { }
10
+ interface ISearchPaneToolBar { }
14
11
15
12
const initialState = {
16
13
input : '' ,
@@ -42,7 +39,7 @@ type State = typeof initialState;
42
39
export default class SearchPane extends React . Component <
43
40
ISearchPaneToolBar ,
44
41
State
45
- > {
42
+ > {
46
43
state : State ;
47
44
48
45
constructor ( props ) {
You can’t perform that action at this time.
0 commit comments