Commit f1989b9b by zhaochengxiang

修改svg选中样式

parent 9ae16bc5
...@@ -301,7 +301,7 @@ tr.drop-over-upward td { ...@@ -301,7 +301,7 @@ tr.drop-over-upward td {
} }
.anticon { .anticon {
&:not(.customStyle) { &.default {
svg { svg {
fill: @icon-color !important; fill: @icon-color !important;
} }
...@@ -313,7 +313,7 @@ tr.drop-over-upward td { ...@@ -313,7 +313,7 @@ tr.drop-over-upward td {
} }
} }
&.anticon-disable { &.disable {
svg { svg {
fill: @icon-disable-color !important; fill: @icon-disable-color !important;
} }
......
...@@ -362,12 +362,12 @@ const AssetAction = (props) => { ...@@ -362,12 +362,12 @@ const AssetAction = (props) => {
type='text' type='text'
style={{ padding: 0 }} style={{ padding: 0 }}
onClick={() => { onFoldButtonClick(attribute, false) }} onClick={() => { onFoldButtonClick(attribute, false) }}
icon={<DownOutlined />} icon={<DownOutlined className='default' />}
/> : <Button /> : <Button
type='text' type='text'
style={{ padding: 0 }} style={{ padding: 0 }}
onClick={() => { onFoldButtonClick(attribute, true) }} onClick={() => { onFoldButtonClick(attribute, true) }}
icon={<UpOutlined />} icon={<UpOutlined className='default' />}
/> />
) )
} }
......
...@@ -595,21 +595,21 @@ const AssetTree = (props) => { ...@@ -595,21 +595,21 @@ const AssetTree = (props) => {
}} }}
> >
<Tooltip title="新增目录"> <Tooltip title="新增目录">
<PlusOutlined className={(currentDirType==='custom-root'||currentDirType==='custom')?'anticon-disable': ''} onClick={addDir} style={{ fontSize:16,cursor: (currentDirType==='custom-root'||currentDirType==='custom')?'not-allowed':'pointer' }}/> <PlusOutlined className={(currentDirType==='custom-root'||currentDirType==='custom')?'disable': 'default'} onClick={addDir} style={{ fontSize:16,cursor: (currentDirType==='custom-root'||currentDirType==='custom')?'not-allowed':'pointer' }}/>
</Tooltip> </Tooltip>
<Tooltip title="刷新目录"> <Tooltip title="刷新目录">
<ReloadOutlined onClick={refreshTree} style={{ fontSize:16,cursor:'pointer' }} /> <ReloadOutlined className='default' onClick={refreshTree} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
<Tooltip title="导入目录"> <Tooltip title="导入目录">
<ImportOutlined className={(currentDirType==='custom-root'||currentDirType==='custom')?'#anticon-disable': ''} onClick={importDir} style={{ fontSize:16,cursor:(currentDirType==='custom-root'||currentDirType==='custom')?'not-allowed':'pointer' }} /> <ImportOutlined className={(currentDirType==='custom-root'||currentDirType==='custom')?'#disable': 'default'} onClick={importDir} style={{ fontSize:16,cursor:(currentDirType==='custom-root'||currentDirType==='custom')?'not-allowed':'pointer' }} />
</Tooltip> </Tooltip>
<Dropdown overlay={exportMenu} placement="bottomCenter" > <Dropdown overlay={exportMenu} placement="bottomCenter" >
<Tooltip title="导出目录"> <Tooltip title="导出目录">
<ExportOutlined style={{ fontSize:16,cursor:'pointer' }} /> <ExportOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
</Dropdown> </Dropdown>
<Tooltip title="自定义目录"> <Tooltip title="自定义目录">
<SettingOutlined onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} /> <SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
</div> </div>
)} )}
......
...@@ -968,7 +968,7 @@ const ImportActionTable = (props) => { ...@@ -968,7 +968,7 @@ const ImportActionTable = (props) => {
className='mr-3' className='mr-3'
size='small' size='small'
type='text' type='text'
icon={record.needAttention ? <HeartFilled className='customStyle' style={{ color: 'red' }} /> : <HeartOutlined />} icon={record.needAttention ? <HeartFilled style={{ color: 'red' }} /> : <HeartOutlined />}
onClick={(event) => { onClick={(event) => {
event.stopPropagation(); event.stopPropagation();
if (record.needAttention === null) { if (record.needAttention === null) {
...@@ -992,7 +992,7 @@ const ImportActionTable = (props) => { ...@@ -992,7 +992,7 @@ const ImportActionTable = (props) => {
className='mr-3' className='mr-3'
size='small' size='small'
type='text' type='text'
icon={<PlusOutlined />} icon={<PlusOutlined className='default' />}
onClick={(event) => { onClick={(event) => {
event.stopPropagation(); event.stopPropagation();
insertToFront(record); insertToFront(record);
...@@ -1003,7 +1003,7 @@ const ImportActionTable = (props) => { ...@@ -1003,7 +1003,7 @@ const ImportActionTable = (props) => {
className='mr-3' className='mr-3'
size='small' size='small'
type='text' type='text'
icon={<DeleteOutlined className='customStyle' style={{ color: 'red' }} />} icon={<DeleteOutlined style={{ color: 'red' }} />}
onClick={(event) => { onClick={(event) => {
event.stopPropagation(); event.stopPropagation();
remove(record); remove(record);
......
...@@ -444,41 +444,41 @@ const ModelTree = (props) => { ...@@ -444,41 +444,41 @@ const ModelTree = (props) => {
> >
<Dropdown overlay={exportMenu} placement="bottomLeft"> <Dropdown overlay={exportMenu} placement="bottomLeft">
<Tooltip title="视角"> <Tooltip title="视角">
<UnorderedListOutlined style={{ fontSize:16,cursor:'pointer' }} /> <UnorderedListOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
</Dropdown> </Dropdown>
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="新增目录" className='ml-2'> <Tooltip title="新增目录" className='ml-2'>
<PlusOutlined onClick={add} style={{ fontSize:16,cursor:'pointer' }} /> <PlusOutlined className='default' onClick={add} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="修改目录" className='ml-2'> <Tooltip title="修改目录" className='ml-2'>
<EditOutlined onClick={update} style={{ fontSize:16,cursor:'pointer' }} /> <EditOutlined className='default' onClick={update} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="存量模型导入" className='ml-2'> <Tooltip title="存量模型导入" className='ml-2'>
<ImportOutlined onClick={() => { importStockModel && importStockModel() }} style={{ fontSize:16,cursor:'pointer' }} /> <ImportOutlined className='default' onClick={() => { importStockModel && importStockModel() }} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
<Tooltip title="刷新目录" className='ml-2'> <Tooltip title="刷新目录" className='ml-2'>
<Button type='text' icon={<ReloadOutlined />} size='small' onClick={refresh} /> <Button type='text' icon={<ReloadOutlined className='default' />} size='small' onClick={refresh} />
</Tooltip> </Tooltip>
{ {
(viewSelectedKey==='dir') && !isSetRootId && ( (viewSelectedKey==='dir') && !isSetRootId && (
<Dropdown overlay={syncMenu} placement="bottomLeft"> <Dropdown overlay={syncMenu} placement="bottomLeft">
<Tooltip title="同步目录" className='ml-2'> <Tooltip title="同步目录" className='ml-2'>
<SyncOutlined className='ml-2' style={{ fontSize:16,cursor:'pointer' }} /> <SyncOutlined className='default' className='ml-2' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
</Dropdown> </Dropdown>
) )
...@@ -487,7 +487,7 @@ const ModelTree = (props) => { ...@@ -487,7 +487,7 @@ const ModelTree = (props) => {
{ {
(viewSelectedKey==='dir') && isSetRootId && ( (viewSelectedKey==='dir') && isSetRootId && (
<Tooltip title="同步目录" className='ml-2'> <Tooltip title="同步目录" className='ml-2'>
<Button type='text' icon={<SyncOutlined />} size='small' onClick={sync} /> <Button type='text' icon={<SyncOutlined className='default' />} size='small' onClick={sync} />
</Tooltip> </Tooltip>
) )
} }
...@@ -495,7 +495,7 @@ const ModelTree = (props) => { ...@@ -495,7 +495,7 @@ const ModelTree = (props) => {
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="上移目录" className='ml-2'> <Tooltip title="上移目录" className='ml-2'>
<ArrowUpOutlined onClick={() => { moveNode(-1); }} style={{ fontSize:16,cursor:'pointer' }} /> <ArrowUpOutlined className='default' onClick={() => { moveNode(-1); }} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
...@@ -503,7 +503,7 @@ const ModelTree = (props) => { ...@@ -503,7 +503,7 @@ const ModelTree = (props) => {
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="下移目录" className='ml-2'> <Tooltip title="下移目录" className='ml-2'>
<ArrowDownOutlined onClick={() => { moveNode(1); }} style={{ fontSize:16,cursor:'pointer' }} /> <ArrowDownOutlined className='default' onClick={() => { moveNode(1); }} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
...@@ -511,7 +511,7 @@ const ModelTree = (props) => { ...@@ -511,7 +511,7 @@ const ModelTree = (props) => {
{ {
viewSelectedKey==='dir' && ( viewSelectedKey==='dir' && (
<Tooltip title="删除目录" className='ml-2'> <Tooltip title="删除目录" className='ml-2'>
<DeleteOutlined onClick={deleteNode} style={{ fontSize:16,cursor:'pointer' }} /> <DeleteOutlined className='default' onClick={deleteNode} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip> </Tooltip>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment