Commit 77e00537 authored by 前端-许佳敏's avatar 前端-许佳敏

feat:新增注册页步骤

parent f76f8c29
import React from 'react' import React, { useState } from 'react'
import { Input, Form } from 'antd' import { Input, Form, Steps } from 'antd'
import styles from './index.less'
import globalStyles from '@/global.less'
import cx from 'classnames'
import { FormPage } from 'god' import { FormPage } from 'god'
const Step = Steps.Step
const stepList = [
{ title: '填写信息', key: 'message' },
{ title: '完善资料', key: 'over' },
{ title: '等待审核', key: 'wait' },
{ title: '注册成功', key: 'success' },
]
const UserRegistry = () => { const UserRegistry = () => {
const [current, setCurrent] = useState(0)
return ( return (
<div> <div className={cx(styles.register, globalStyles.lingxiBusinessContent1024)}>
<FormPage <h3>欢迎您注册数商云账号</h3>
renderFormLists={ <div className={styles.registerBox}>
[ <Steps current={current} className={styles.stepWrap} size='small'>
{ {
type: 'Input', stepList.map(v => <Step title={v.title} key={v.key}/>)
name: 'demo', }
size: 'large', </Steps>
}, </div>
{
type: 'Input',
name: 'fuck',
size: 'large'
},
{
type: 'Input',
name: 'a',
size: 'large'
},
]
}
>
</FormPage>
</div> </div>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment