File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,7 @@ import { APP_PREFIX } from 'mo/common/const';
10
10
export function prefixClaName ( name : string , prefix : string = APP_PREFIX ) {
11
11
return name ? `${ prefix } -${ name } ` : '' ;
12
12
}
13
+
14
+ export function classNames ( ...names ) {
15
+ return names . filter ( ( name ) => ! ! name ) . join ( ' ' ) ;
16
+ }
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import RcCollapse from 'rc-collapse' ;
3
- import classNames from 'classnames' ;
4
3
5
4
import './style.scss' ;
6
- import { prefixClaName } from 'mo/common/className' ;
5
+ import { prefixClaName , classNames } from 'mo/common/className' ;
7
6
8
7
interface ICollapseProps {
9
8
className ?: string ;
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import RcTree from 'rc-tree' ;
3
- import classNames from 'classnames' ;
4
3
5
4
import './style.scss' ;
6
- import { prefixClaName } from 'mo/common/className' ;
5
+ import { prefixClaName , classNames } from 'mo/common/className' ;
7
6
8
7
export interface ITree {
9
8
Original file line number Diff line number Diff line change 1
1
import './style.scss' ;
2
2
import * as React from 'react' ;
3
- import classNames from 'classnames' ;
4
3
import { Utils } from 'dt-utils' ;
5
4
import SplitPane from 'react-split-pane' ;
6
- import { prefixClaName } from 'mo/common/className' ;
5
+ import { classNames , prefixClaName } from 'mo/common/className' ;
7
6
import { APP_PREFIX } from 'mo/common/const' ;
8
7
9
8
import { EditorView } from 'mo/workbench/editor' ;
You can’t perform that action at this time.
0 commit comments