美文网首页
element ui step步骤条使用插槽为某一步骤后面显示操

element ui step步骤条使用插槽为某一步骤后面显示操

作者: O人心 | 来源:发表于2021-07-09 15:24 被阅读0次
image.png
只要是物业审核的进度,后面就要显示操作按钮
element ui step组件提供了三种插槽分别是icontitledescription,下面我就是使用了description插槽来处理这个问题的
<el-step
    v-for="(item, index) in applicationProgressList"
    :key="index"
    :title="item.lable"
    :description="item.startTime"
    >
    <template slot="description">
        <div
        class="downloadList"
        v-if="item.lable.indexOf('物业') != -1"
        @click="downLoadSheet"
        >
        <el-button type="primary">下载清单</el-button>
        </div>
    </template>
</el-step>

相关文章

网友评论

      本文标题:element ui step步骤条使用插槽为某一步骤后面显示操

      本文链接:https://www.haomeiwen.com/subject/oqufpltx.html