mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
Merge branch '1.x' into 'dev'
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user