macOS/Chrome 55.0.2883.95 (64-bit)
<!--模版-->
<template>
<div>
<el-button type="primary" @click="add">默认按钮</el-button>
<el-steps :space="100" :active="active" finish-status="success">
<el-step v-for="item in steps" :title="item.title"></el-step>
</el-steps>
</div>
</template>
<!--脚本-->
<script>
export default {
data: function () {
return {
steps: [{
title: '1111',
}, {
title: '222',
}, {
title: '333',
}, ]
}
},
methods: {
add: function () {
this.steps.push({
title: '444'
})
}
}
}
</script>
期望动态添加steps节点, 期望流程数是自增的
动态往steps里添加节点,流程不断增加0
Most helpful comment
能否让直接使得step的icon支持绑定@click 事件,自己按钮老是不能对齐