1
1
import React , { useState } from 'react' ;
2
+ import {
3
+ CatalogFilled ,
4
+ CloseOutlined ,
5
+ DragOutlined ,
6
+ EllipsisTableOutlined ,
7
+ SearchOutlined ,
8
+ } from '@dtinsight/react-icons' ;
2
9
import { Dropdown , DropdownProps , Form , Input , Tabs } from 'antd' ;
3
10
import { BlockHeader , EllipsisText } from 'dt-react-component' ;
4
11
import { IBlockHeaderProps } from 'dt-react-component/blockHeader' ;
5
12
6
13
import { ITreeNode } from '../useTreeData' ;
7
- import { CatalogIcon , CloseIcon , DragIcon , EllipsisIcon , SearchIcon } from './icon' ;
8
14
import CatalogueTree , { ICatalogueTree } from './tree' ;
9
15
10
16
interface Tab {
@@ -51,7 +57,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
51
57
) => {
52
58
const {
53
59
title,
54
- addonBefore = < CatalogIcon style = { { fontSize : 20 } } /> ,
60
+ addonBefore = < CatalogFilled style = { { fontSize : 20 } } /> ,
55
61
tooltip = false ,
56
62
showSearch = false ,
57
63
placeholder = '搜索目录名称' ,
@@ -124,7 +130,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
124
130
< div className = "dt-catalogue__search" >
125
131
< Input . Search placeholder = { placeholder } onSearch = { onSearch } />
126
132
{ isTabMode ( props ) && (
127
- < CloseIcon className = "close" style = { { } } onClick = { ( ) => setTabSearch ( false ) } />
133
+ < CloseOutlined className = "close" onClick = { ( ) => setTabSearch ( false ) } />
128
134
) }
129
135
</ div >
130
136
) ;
@@ -138,7 +144,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
138
144
className = "dt-catalogue__tabs"
139
145
size = "small"
140
146
tabBarExtraContent = {
141
- < SearchIcon className = "search" onClick = { ( ) => setTabSearch ( true ) } />
147
+ < SearchOutlined className = "search" onClick = { ( ) => setTabSearch ( true ) } />
142
148
}
143
149
activeKey = { activeTabKey }
144
150
onChange = { onTabChange }
@@ -177,10 +183,10 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
177
183
triggerNode . parentElement as HTMLElement
178
184
}
179
185
>
180
- < EllipsisIcon onClick = { ( e ) => e . stopPropagation ( ) } />
186
+ < EllipsisTableOutlined onClick = { ( e ) => e . stopPropagation ( ) } />
181
187
</ Dropdown >
182
188
) }
183
- { draggable && < DragIcon /> }
189
+ { draggable && < DragOutlined /> }
184
190
</ div >
185
191
) ;
186
192
} ;
0 commit comments