mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
编辑和删除按钮。
This commit is contained in:
parent
07d3d9f34c
commit
96020f2b20
@ -1,5 +1,5 @@
|
||||
import './css/ScriptPanel.css';
|
||||
import { Tree, IconButton } from '../../ui/index';
|
||||
import { Tree, IconButton, ToolbarSeparator } from '../../ui/index';
|
||||
import ScriptWindow from './window/ScriptWindow.jsx';
|
||||
|
||||
/**
|
||||
@ -77,6 +77,13 @@ class ScriptPanel extends React.Component {
|
||||
title={_t('Refresh')}
|
||||
onClick={this.handleRefresh}
|
||||
/>
|
||||
<ToolbarSeparator />
|
||||
<IconButton icon={'edit'}
|
||||
title={_t('Edit')}
|
||||
/>
|
||||
<IconButton icon={'delete'}
|
||||
title={_t('Delete')}
|
||||
/>
|
||||
</div>
|
||||
<div className={'content'}>
|
||||
<Tree
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.ScriptPanel>.toolbar>.ToolbarSeparator {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.ScriptPanel>.content {
|
||||
position: relative;
|
||||
width: calc(100% - 8px);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user