Commit e2aaf708 by zhaochengxiang

样式调整

parent 1cc1346c
...@@ -230,6 +230,8 @@ const AssetTree = (props) => { ...@@ -230,6 +230,8 @@ const AssetTree = (props) => {
} }
const deleteDir = () => { const deleteDir = () => {
if (currentDirType === 'custom') return;
if (currentDirId) { if (currentDirId) {
modal.confirm({ modal.confirm({
title: '提示', title: '提示',
...@@ -386,7 +388,7 @@ const AssetTree = (props) => { ...@@ -386,7 +388,7 @@ const AssetTree = (props) => {
</Tooltip> </Tooltip>
</Dropdown> </Dropdown>
<Tooltip title="删除" className='ml-3'> <Tooltip title="删除" className='ml-3'>
<DeleteOutlined onClick={deleteDir} style={{ fontSize:16,cursor:'pointer' }} disabled={currentDirType==='custom'} /> <DeleteOutlined onClick={deleteDir} style={{ fontSize:16,cursor:(currentDirType==='custom')?'not-allowed':'pointer', color: (currentDirType==='custom')?'#bfbfbf': '' }} />
</Tooltip> </Tooltip>
<Tooltip title="自定义" className='ml-3'> <Tooltip title="自定义" className='ml-3'>
<SettingOutlined onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} /> <SettingOutlined onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
......
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