Merge branch '1.x' into 'dev'

This commit is contained in:
陈嘉涵
2019-05-05 11:23:22 +08:00
11 changed files with 67 additions and 24 deletions

View File

@@ -5,7 +5,9 @@ const [sfc, bem] = use('step');
export default sfc({
beforeCreate() {
this.$parent.steps.push(this);
const { steps } = this.$parent;
const index = this.$parent.slots().indexOf(this.$vnode);
steps.splice(index === -1 ? steps.length : index, 0, this);
},
beforeDestroy() {