清理代码 修改错误.fuck

pull/7/head
cx 7 years ago
parent 0cd2ebb250
commit 67e9f7091c

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

@ -9,7 +9,6 @@ import { App } from './UI/App';
import { commandStore } from './UI/Store/CommandStore';
import { autorun } from 'mobx';
import { Provider } from "mobx-react";
function createRootElement()
{
var root = document.createElement('div');
@ -41,7 +40,9 @@ function renderCommand()
window.onload = () =>
{
ReactDOM.render(
<CommandComponent commandStore={commandStore} />,
<Provider commandStore={commandStore}>
<CommandComponent />
</Provider>,
createRootElement()
)
}

Loading…
Cancel
Save