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 useLocale from '../../locale/useLocale' ;
714import { ITreeNode } from '../useTreeData' ;
8- import { CatalogIcon , CloseIcon , DragIcon , EllipsisIcon , SearchIcon } from './icon' ;
915import CatalogueTree , { ICatalogueTree } from './tree' ;
1016
1117interface Tab {
@@ -53,7 +59,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
5359 const locale = useLocale ( 'Catalogue' ) ;
5460 const {
5561 title,
56- addonBefore = < CatalogIcon style = { { fontSize : 20 } } /> ,
62+ addonBefore = < CatalogFilled style = { { fontSize : 20 } } /> ,
5763 tooltip = false ,
5864 showSearch = false ,
5965 placeholder = locale . searchPlaceholder ,
@@ -126,7 +132,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
126132 < div className = "dt-catalogue__search" >
127133 < Input . Search placeholder = { placeholder } onSearch = { onSearch } />
128134 { isTabMode ( props ) && (
129- < CloseIcon className = "close" style = { { } } onClick = { ( ) => setTabSearch ( false ) } />
135+ < CloseOutlined className = "close" onClick = { ( ) => setTabSearch ( false ) } />
130136 ) }
131137 </ div >
132138 ) ;
@@ -140,7 +146,7 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
140146 className = "dt-catalogue__tabs"
141147 size = "small"
142148 tabBarExtraContent = {
143- < SearchIcon className = "search" onClick = { ( ) => setTabSearch ( true ) } />
149+ < SearchOutlined className = "search" onClick = { ( ) => setTabSearch ( true ) } />
144150 }
145151 activeKey = { activeTabKey }
146152 onChange = { onTabChange }
@@ -179,10 +185,10 @@ const Catalogue = <U extends Record<string, any> = {}, T extends readOnlyTab = a
179185 triggerNode . parentElement as HTMLElement
180186 }
181187 >
182- < EllipsisIcon onClick = { ( e ) => e . stopPropagation ( ) } />
188+ < EllipsisTableOutlined onClick = { ( e ) => e . stopPropagation ( ) } />
183189 </ Dropdown >
184190 ) }
185- { draggable && < DragIcon /> }
191+ { draggable && < DragOutlined /> }
186192 </ div >
187193 ) ;
188194 } ;
0 commit comments