如下代码已实践不能实现目的,请问该怎么实现?
<el-steps :space="200" :active="1" finish-status="success" >
<el-step v-for="(item,index) in stepList" :key="index" :title="item.title" >
<el-popover
placement="top-start"
title="标题"
width="200"
trigger="hover">
<template>
<el-button slot="reference">{{item.title}}</el-button>
</template>
</el-popover>
</el-step>
</el-steps>
使用
title
属性的slot
插槽插入一个<el-popover>
组件就行了。