Skip to content

Commit 0259a15

Browse files
zhangtengjinwewoor
authored andcommitted
fix: premitter code format
premitter code format
1 parent 05098f3 commit 0259a15

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/components/tree/index.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export enum FileTypes {
1515
FILE = 'file',
1616
FOLDER = 'folder',
1717
ROOT = 'rootFolder',
18-
};
18+
}
1919
export type FileType = keyof typeof FileTypes;
2020

2121
export interface ITreeNodeItem {
@@ -51,11 +51,11 @@ export interface ITreeProps {
5151
expandedKeys?: Key[];
5252
defaultCheckedKeys?: Key[];
5353
checkedKeys?:
54-
| Key[]
55-
| {
56-
checked: Key[];
57-
halfChecked: Key[];
58-
};
54+
| Key[]
55+
| {
56+
checked: Key[];
57+
halfChecked: Key[];
58+
};
5959
defaultSelectedKeys?: Key[];
6060
selectedKeys?: Key[];
6161
titleRender?: (node: DataNode) => React.ReactNode;

src/controller/explorer/folderTree.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class FolderTreeController
3333
this.initView();
3434
}
3535

36-
private initView() { }
36+
private initView() {}
3737

3838
public readonly onSelectFile = (file: ITreeNodeItem) => {
3939
const tabData = {
@@ -75,7 +75,10 @@ export class FolderTreeController
7575
content: 'This action is irreversible!',
7676
onOk() {
7777
explorerService.delete(nodeId, () => {
78-
new EditorController().onCloseTab(`${nodeId}`, editorService.getState()?.current?.id);
78+
new EditorController().onCloseTab(
79+
`${nodeId}`,
80+
editorService.getState()?.current?.id
81+
);
7982
});
8083
},
8184
});

src/extensions/search/searchPane.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ import * as React from 'react';
22
import Toolbar from 'mo/components/toolbar';
33
import { prefixClaName } from 'mo/common/className';
44
import { Header, Content } from 'mo/workbench/sidebar';
5-
import {
6-
colorThemeService,
7-
explorerService,
8-
} from 'mo';
5+
import { colorThemeService, explorerService } from 'mo';
96
import { Select, Option } from 'mo/components/select';
107
import { IColorTheme } from 'mo/model/colorTheme';
118
import SearchTree from './searchTree';
129

13-
interface ISearchPaneToolBar { }
10+
interface ISearchPaneToolBar {}
1411

1512
const initialState = {
1613
input: '',
@@ -42,7 +39,7 @@ type State = typeof initialState;
4239
export default class SearchPane extends React.Component<
4340
ISearchPaneToolBar,
4441
State
45-
> {
42+
> {
4643
state: State;
4744

4845
constructor(props) {

0 commit comments

Comments
 (0)