add Steps UI

add Steps UI
This commit is contained in:
梁灏 2016-09-23 15:22:37 +08:00
parent 93064e3b74
commit 45b672cad9
8 changed files with 442 additions and 11 deletions

View file

@ -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)) {