代码回归

pull/292/MERGE
ChenX 6 years ago
parent 263d03f8fa
commit 26a00f0c97

@ -19,25 +19,29 @@ export class CommandInput extends React.Component<Props, null>
let store = this.props.commandStore; let store = this.props.commandStore;
return ( return (
<div className="command-input-area" style={{ display: "flex" }}> <div className="command-input-area" style={{ display: "flex" }}>
<div className="drag-area" data-id="dragArea" /> <div style={{ display: "flex", width: "100%", position: "relative" }}>
<Button <div className="drag-area" data-id="dragArea" />
icon="wrench" <Button
minimal={true} icon="wrench"
small={true} minimal={true}
/> small={true}
<Button />
icon={true ? "maximize" : "minimize"} <Button
minimal={true} icon={true ? "maximize" : "minimize"}
small={true} minimal={true}
/> small={true}
<InputHint />
cmdList={store.cmdList} <div style={{ position: "absolute", left: 60, bottom: 0, width: `calc( 100% - ${60}px)` }}>
keyWordList={store.keyWordList} <InputHint
cmdPrompt={store.commandPrompt} cmdList={store.cmdList}
handleInputCallback={store.HandleInput} keyWordList={store.keyWordList}
historyCmdList={store.historyCmdList} cmdPrompt={store.commandPrompt}
commandStore={this.props.commandStore} handleInputCallback={store.HandleInput}
/> historyCmdList={store.historyCmdList}
commandStore={this.props.commandStore}
/>
</div>
</div>
<Icon icon="caret-up" onClick={this.props.ShowOutput} /> <Icon icon="caret-up" onClick={this.props.ShowOutput} />
</div> </div>
) )

@ -253,7 +253,7 @@ export class InputHint extends React.Component<InputHintProps, InputHitState>
public render() public render()
{ {
return ( return (
<div id="input-hint" style={{ flex: "1" }}> <div id="input-hint" >
<div className="input" style={{ display: "flex", alignItems: "center" }}> <div className="input" style={{ display: "flex", alignItems: "center" }}>
<ul className="recommend-command"> <ul className="recommend-command">
{ {

Loading…
Cancel
Save