mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Add GridBuffer component
This commit is contained in:
parent
4747a3396c
commit
752cb60b56
6 changed files with 75 additions and 10 deletions
|
|
@ -8,6 +8,8 @@ import {
|
|||
import CheapGlkOte from 'cheap-glkote'
|
||||
|
||||
import TextBuffer from './TextBuffer'
|
||||
import GridBuffer from './GridBuffer'
|
||||
|
||||
import InputBox from './InputBox'
|
||||
import Status from './Status'
|
||||
|
||||
|
|
@ -105,7 +107,7 @@ export default function ({ vmParts: { file, engine } }) {
|
|||
|
||||
return ({
|
||||
'buffer': <TextBuffer {...props} />,
|
||||
'grid': <div>GridView</div>
|
||||
'grid': <GridBuffer {...props} />
|
||||
})[currentWindow.type]
|
||||
}
|
||||
|
||||
|
|
@ -113,7 +115,7 @@ export default function ({ vmParts: { file, engine } }) {
|
|||
? (<Status {...status} />)
|
||||
: (<section className='ifplayer'>
|
||||
{ windows
|
||||
.filter(({id}) => id === currentWindowId)
|
||||
// .filter(({id}) => id === currentWindowId)
|
||||
.map(textWindow(inbox)) }
|
||||
<InputBox {...{
|
||||
inputType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue