|
|
@ -37,27 +37,25 @@ export class CommandComponent extends React.Component<{ commandStore?: CommandSt
|
|
|
|
render()
|
|
|
|
render()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Provider commandStore={this.props.commandStore}>
|
|
|
|
<div id="commands" className="win"
|
|
|
|
<div id="commands" className="win"
|
|
|
|
style={this.style}
|
|
|
|
style={this.style}
|
|
|
|
>
|
|
|
|
|
|
|
|
<div className="tool-caption">命令栏</div>
|
|
|
|
|
|
|
|
<div className="content panel"
|
|
|
|
|
|
|
|
style={{ padding: 0 }}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div className="tool-caption">命令栏</div>
|
|
|
|
<CommandLineContainer />
|
|
|
|
<div className="content panel"
|
|
|
|
<div className='terminal-input'>
|
|
|
|
style={{ padding: 0 }}
|
|
|
|
<input type="text" id="command-input"
|
|
|
|
>
|
|
|
|
ref={input => { this.input = input }}
|
|
|
|
<CommandLineContainer />
|
|
|
|
placeholder="请输入命令:"
|
|
|
|
<div className='terminal-input'>
|
|
|
|
onKeyDown={this.onInputKeyDown}
|
|
|
|
<input type="text" id="command-input"
|
|
|
|
onChange={this.onInputChange}
|
|
|
|
ref={input => { this.input = input }}
|
|
|
|
/>
|
|
|
|
placeholder="请输入命令:"
|
|
|
|
|
|
|
|
onKeyDown={this.onInputKeyDown}
|
|
|
|
|
|
|
|
onChange={this.onInputChange}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<DevTools />
|
|
|
|
</div>
|
|
|
|
</div >
|
|
|
|
<DevTools />
|
|
|
|
</Provider>
|
|
|
|
</div >
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onInputChange = (e: React.FormEvent<HTMLInputElement>) =>
|
|
|
|
onInputChange = (e: React.FormEvent<HTMLInputElement>) =>
|
|
|
|