update 种子
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
import { Anchor, Card, Col, Row, Spin } from 'antd'
|
import { Anchor, Card, Col, Divider, Row, Spin } from 'antd'
|
||||||
import { AntIcon, ComponentDynamic, Container } from 'components'
|
import { AntIcon, ComponentDynamic, Container } from 'components'
|
||||||
import { isEqual } from 'lodash'
|
import { isEqual } from 'lodash'
|
||||||
|
|
||||||
@@ -86,22 +86,27 @@ export default class index extends Component {
|
|||||||
<div className="yo-adorn--house-top" />
|
<div className="yo-adorn--house-top" />
|
||||||
<Card className="yo-form-page--body">
|
<Card className="yo-form-page--body">
|
||||||
{parts.map((item, i) => (
|
{parts.map((item, i) => (
|
||||||
<section key={i} id={`form-${i}-${id}`}>
|
<>
|
||||||
{item.title && <h5>{item.title}</h5>}
|
<section key={i} id={`form-${i}-${id}`}>
|
||||||
<Spin
|
{item.title && <h5>{item.title}</h5>}
|
||||||
spinning={loading}
|
<Spin
|
||||||
indicator={<AntIcon type="loading" />}
|
spinning={loading}
|
||||||
wrapperClassName={loading && 'h-400-min'}
|
indicator={<AntIcon type="loading" />}
|
||||||
>
|
wrapperClassName={loading && 'h-400-min'}
|
||||||
{!loading && (
|
>
|
||||||
<ComponentDynamic
|
{!loading && (
|
||||||
is={item.component}
|
<ComponentDynamic
|
||||||
record={record}
|
is={item.component}
|
||||||
onRef={child => this.call(child, i)}
|
record={record}
|
||||||
/>
|
onRef={child => this.call(child, i)}
|
||||||
)}
|
/>
|
||||||
</Spin>
|
)}
|
||||||
</section>
|
</Spin>
|
||||||
|
</section>
|
||||||
|
{i < parts.length - 1 && (
|
||||||
|
<Divider key={i.toString().padStart(3, '0')} />
|
||||||
|
)}
|
||||||
|
</>
|
||||||
))}
|
))}
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
import { Anchor, Button, Card, Col, Row, Spin } from 'antd'
|
import { Anchor, Button, Card, Col, Divider, Row, Spin } from 'antd'
|
||||||
import { AntIcon, ComponentDynamic, Container } from 'components'
|
import { AntIcon, ComponentDynamic, Container } from 'components'
|
||||||
import { isEqual } from 'lodash'
|
import { isEqual } from 'lodash'
|
||||||
|
|
||||||
@@ -105,22 +105,27 @@ export default class index extends Component {
|
|||||||
<div className="yo-adorn--house-top" />
|
<div className="yo-adorn--house-top" />
|
||||||
<Card className="yo-form-page--body">
|
<Card className="yo-form-page--body">
|
||||||
{parts.map((item, i) => (
|
{parts.map((item, i) => (
|
||||||
<section key={i} id={`form-${i}-${id}`}>
|
<>
|
||||||
{item.title && <h5>{item.title}</h5>}
|
<section key={i} id={`form-${i}-${id}`}>
|
||||||
<Spin
|
{item.title && <h5>{item.title}</h5>}
|
||||||
spinning={loading}
|
<Spin
|
||||||
indicator={<AntIcon type="loading" />}
|
spinning={loading}
|
||||||
wrapperClassName={loading && 'h-400-min'}
|
indicator={<AntIcon type="loading" />}
|
||||||
>
|
wrapperClassName={loading && 'h-400-min'}
|
||||||
{!loading && (
|
>
|
||||||
<ComponentDynamic
|
{!loading && (
|
||||||
is={item.component}
|
<ComponentDynamic
|
||||||
record={record}
|
is={item.component}
|
||||||
onRef={child => this.call(child, i)}
|
record={record}
|
||||||
/>
|
onRef={child => this.call(child, i)}
|
||||||
)}
|
/>
|
||||||
</Spin>
|
)}
|
||||||
</section>
|
</Spin>
|
||||||
|
</section>
|
||||||
|
{i < parts.length - 1 && (
|
||||||
|
<Divider key={i.toString().padStart(3, '0')} />
|
||||||
|
)}
|
||||||
|
</>
|
||||||
))}
|
))}
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
Reference in New Issue
Block a user