mirror of https://github.com/openspug/spug
fix issue
parent
68b5647e85
commit
36f16592f6
|
@ -142,11 +142,13 @@ function Ext2Console(props) {
|
||||||
</div>
|
</div>
|
||||||
]}>
|
]}>
|
||||||
<Skeleton loading={fetching} active>
|
<Skeleton loading={fetching} active>
|
||||||
|
{sActions.length > 0 && (
|
||||||
<Collapse defaultActiveKey={['0']} className={styles.collapse}>
|
<Collapse defaultActiveKey={['0']} className={styles.collapse}>
|
||||||
<Collapse.Panel header={(
|
<Collapse.Panel header={(
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<b className={styles.title}/>
|
<b className={styles.title}/>
|
||||||
<Steps size="small" className={styles.step} current={outputs.local.step} status={outputs.local.status}>
|
<Steps size="small" className={styles.step} current={outputs.local.step}
|
||||||
|
status={outputs.local.status}>
|
||||||
<StepItem title="建立连接" item={outputs.local} step={0}/>
|
<StepItem title="建立连接" item={outputs.local} step={0}/>
|
||||||
{sActions.map((item, index) => (
|
{sActions.map((item, index) => (
|
||||||
<StepItem key={index} title={item.title} item={outputs.local} step={index + 1}/>
|
<StepItem key={index} title={item.title} item={outputs.local} step={index + 1}/>
|
||||||
|
@ -157,12 +159,14 @@ function Ext2Console(props) {
|
||||||
<OutView setTerm={term => handleSetTerm(term, 'local')}/>
|
<OutView setTerm={term => handleSetTerm(term, 'local')}/>
|
||||||
</Collapse.Panel>
|
</Collapse.Panel>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
)}
|
||||||
|
|
||||||
{hostOutputs.length > 0 && (
|
{hostOutputs.length > 0 && (
|
||||||
<Collapse
|
<Collapse
|
||||||
accordion
|
accordion
|
||||||
defaultActiveKey="0"
|
defaultActiveKey="0"
|
||||||
className={styles.collapse}
|
className={styles.collapse}
|
||||||
style={{marginTop: 24}}
|
style={{marginTop: sActions.length > 0 ? 24 : 0}}
|
||||||
expandIcon={({isActive}) => <CaretRightOutlined style={{fontSize: 16}} rotate={isActive ? 90 : 0}/>}>
|
expandIcon={({isActive}) => <CaretRightOutlined style={{fontSize: 16}} rotate={isActive ? 90 : 0}/>}>
|
||||||
{hostOutputs.map((item, index) => (
|
{hostOutputs.map((item, index) => (
|
||||||
<Collapse.Panel
|
<Collapse.Panel
|
||||||
|
|
Loading…
Reference in New Issue