Commit f1989b9b by zhaochengxiang

修改svg选中样式

parent 9ae16bc5
......@@ -301,7 +301,7 @@ tr.drop-over-upward td {
}
.anticon {
&:not(.customStyle) {
&.default {
svg {
fill: @icon-color !important;
}
......@@ -313,7 +313,7 @@ tr.drop-over-upward td {
}
}
&.anticon-disable {
&.disable {
svg {
fill: @icon-disable-color !important;
}
......
......@@ -362,12 +362,12 @@ const AssetAction = (props) => {
type='text'
style={{ padding: 0 }}
onClick={() => { onFoldButtonClick(attribute, false) }}
icon={<DownOutlined />}
icon={<DownOutlined className='default' />}
/> : <Button
type='text'
style={{ padding: 0 }}
onClick={() => { onFoldButtonClick(attribute, true) }}
icon={<UpOutlined />}
icon={<UpOutlined className='default' />}
/>
)
}
......
......@@ -595,21 +595,21 @@ const AssetTree = (props) => {
}}
>
<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 title="刷新目录">
<ReloadOutlined onClick={refreshTree} style={{ fontSize:16,cursor:'pointer' }} />
<ReloadOutlined className='default' onClick={refreshTree} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
<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>
<Dropdown overlay={exportMenu} placement="bottomCenter" >
<Tooltip title="导出目录">
<ExportOutlined style={{ fontSize:16,cursor:'pointer' }} />
<ExportOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
</Dropdown>
<Tooltip title="自定义目录">
<SettingOutlined onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
<SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
</div>
)}
......
......@@ -968,7 +968,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={record.needAttention ? <HeartFilled className='customStyle' style={{ color: 'red' }} /> : <HeartOutlined />}
icon={record.needAttention ? <HeartFilled style={{ color: 'red' }} /> : <HeartOutlined />}
onClick={(event) => {
event.stopPropagation();
if (record.needAttention === null) {
......@@ -992,7 +992,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={<PlusOutlined />}
icon={<PlusOutlined className='default' />}
onClick={(event) => {
event.stopPropagation();
insertToFront(record);
......@@ -1003,7 +1003,7 @@ const ImportActionTable = (props) => {
className='mr-3'
size='small'
type='text'
icon={<DeleteOutlined className='customStyle' style={{ color: 'red' }} />}
icon={<DeleteOutlined style={{ color: 'red' }} />}
onClick={(event) => {
event.stopPropagation();
remove(record);
......
......@@ -444,41 +444,41 @@ const ModelTree = (props) => {
>
<Dropdown overlay={exportMenu} placement="bottomLeft">
<Tooltip title="视角">
<UnorderedListOutlined style={{ fontSize:16,cursor:'pointer' }} />
<UnorderedListOutlined className='default' style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
</Dropdown>
{
viewSelectedKey==='dir' && (
<Tooltip title="新增目录" className='ml-2'>
<PlusOutlined onClick={add} style={{ fontSize:16,cursor:'pointer' }} />
<PlusOutlined className='default' onClick={add} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
)
}
{
viewSelectedKey==='dir' && (
<Tooltip title="修改目录" className='ml-2'>
<EditOutlined onClick={update} style={{ fontSize:16,cursor:'pointer' }} />
<EditOutlined className='default' onClick={update} style={{ fontSize:16,cursor:'pointer' }} />
</Tooltip>
)
}
{
viewSelectedKey==='dir' && (
<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 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>
{
(viewSelectedKey==='dir') && !isSetRootId && (
<Dropdown overlay={syncMenu} placement="bottomLeft">
<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>
</Dropdown>
)
......@@ -487,7 +487,7 @@ const ModelTree = (props) => {
{
(viewSelectedKey==='dir') && isSetRootId && (
<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>
)
}
......@@ -495,7 +495,7 @@ const ModelTree = (props) => {
{
viewSelectedKey==='dir' && (
<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>
)
}
......@@ -503,7 +503,7 @@ const ModelTree = (props) => {
{
viewSelectedKey==='dir' && (
<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>
)
}
......@@ -511,7 +511,7 @@ const ModelTree = (props) => {
{
viewSelectedKey==='dir' && (
<Tooltip title="删除目录" className='ml-2'>
<DeleteOutlined onClick={deleteNode} style={{ fontSize:16,cursor:'pointer' }} />
<DeleteOutlined className='default' onClick={deleteNode} style={{ fontSize:16,cursor:'pointer' }} />
</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