11import React , { useState } from 'react' ;
2+ import {
3+ CatalogFilled ,
4+ CloseOutlined ,
5+ DragOutlined ,
6+ EllipsisTableOutlined ,
7+ SearchOutlined ,
8+ } from '@dtinsight/react-icons' ;
29import { Dropdown , DropdownProps , Form , Input , Tabs } from 'antd' ;
310import { BlockHeader , EllipsisText } from 'dt-react-component' ;
411import { IBlockHeaderProps } from 'dt-react-component/blockHeader' ;
512
613import { ITreeNode } from '../useTreeData' ;
7- import { CatalogIcon , CloseIcon , DragIcon , EllipsisIcon , SearchIcon } from './icon' ;
814import CatalogueTree , { ICatalogueTree } from './tree' ;
915
1016interface Tab {
@@ -51,7 +57,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
5157) => {
5258 const {
5359 title,
54- addonBefore = < CatalogIcon style = { { fontSize : 20 } } /> ,
60+ addonBefore = < CatalogFilled style = { { fontSize : 20 } } /> ,
5561 tooltip = false ,
5662 showSearch = false ,
5763 placeholder = '搜索目录名称' ,
@@ -124,7 +130,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
124130 < div className = "dt-catalogue__search" >
125131 < Input . Search placeholder = { placeholder } onSearch = { onSearch } />
126132 { isTabMode ( props ) && (
127- < CloseIcon className = "close" style = { { } } onClick = { ( ) => setTabSearch ( false ) } />
133+ < CloseOutlined className = "close" onClick = { ( ) => setTabSearch ( false ) } />
128134 ) }
129135 </ div >
130136 ) ;
@@ -138,7 +144,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
138144 className = "dt-catalogue__tabs"
139145 size = "small"
140146 tabBarExtraContent = {
141- < SearchIcon className = "search" onClick = { ( ) => setTabSearch ( true ) } />
147+ < SearchOutlined className = "search" onClick = { ( ) => setTabSearch ( true ) } />
142148 }
143149 activeKey = { activeTabKey }
144150 onChange = { onTabChange }
@@ -177,10 +183,10 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
177183 triggerNode . parentElement as HTMLElement
178184 }
179185 >
180- < EllipsisIcon onClick = { ( e ) => e . stopPropagation ( ) } />
186+ < EllipsisTableOutlined onClick = { ( e ) => e . stopPropagation ( ) } />
181187 </ Dropdown >
182188 ) }
183- { draggable && < DragIcon /> }
189+ { draggable && < DragOutlined /> }
184190 </ div >
185191 ) ;
186192 } ;
0 commit comments