add Steps UI
add Steps UI
This commit is contained in:
parent
93064e3b74
commit
45b672cad9
8 changed files with 442 additions and 11 deletions
|
@ -50,9 +50,14 @@
|
|||
},
|
||||
methods: {
|
||||
updateChildProps (isInit) {
|
||||
const total = this.$children.length;
|
||||
this.$children.forEach((child, index) => {
|
||||
child.stepNumber = index + 1;
|
||||
|
||||
if (this.direction === 'horizontal') {
|
||||
child.total = total;
|
||||
}
|
||||
|
||||
// 如果已存在status,且在初始化时,则略过
|
||||
// todo 如果当前是error,在current改变时需要处理
|
||||
if (!(isInit && child.status)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue