You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< a - card : bordered = "false" style = "width: 130%;text-align: center;margin-left:-10%" >
< a - steps class = "steps" : current = "currentTab" >
< a - step title = "手机验证" / >
< a - step title = "密码" / >
< a - step title = "完成" / >
< / a - steps >
< div class = "content" >
< step2 v - if = "currentTab === 0" @nextStep = "nextStep" / >
< step3 v - if = "currentTab === 1" @nextStep = "nextStep" @prevStep = "prevStep" : userList = "userList" / >
< step4 v - if = "currentTab === 2" @prevStep = "prevStep" @finish = "finish" : userList = "userList" / >
< / div >
< / a - card >
< / template >
< script >
import Step1 from ' . / Step1 '
import Step2 from ' . / Step2 '
import Step3 from ' . / Step3 '
import Step4 from ' . / Step4 '
export default {
name : "Alteration" ,
components : {
Step1 ,
Step2 ,
Step3 ,
Step4
} ,
data ( ) {
return {
description : ' 将 一 个 冗 长 或 用 户 不 熟 悉 的 表 单 任 务 分 成 多 个 步 骤 , 指 导 用 户 完 成 。 ' ,
currentTab : 0 ,
userList : { } ,
// form
form : null ,
}
} ,
methods : {
// handler
nextStep ( data ) {
this . userList = data ;
if ( this . currentTab < 4 ) {
this . currentTab + = 1
}
} ,
prevStep ( data ) {
this . userList = data ;
if ( this . currentTab > 0 ) {
this . currentTab - = 1
}
} ,
finish ( ) {
this . currentTab = 0
}
}
}
< / script >
< style lang = "less" scoped >
. steps {
max - width : 750 px ;
margin : 16 px auto ;
}
< / style >