0
点赞
收藏
分享

微信扫一扫

Element UI中Steps 步骤条description描述换行展示

干自闭 2022-01-04 阅读 83

突然要求加了个显示字段,之前的代码只能显示一行,于是乎找到了解决办法,代码如下:其中的属性自行到官网查看释义吧:Element UI官网传送门

<el-table>
    <!-- 可展开的表格 -->
    <el-table-column type="expand">
        <template slot-scope="props">
            <el-steps :active="props.row.progressBar" align-center finish-status="success">
                <el-step title="展示测试" description="props.row.submitDate">
                    <template slot="description" >
                        <span>{{props.row.submitterName}}<br/>{{props.row.submitDate}}</span>
                    </template>
                </el-step>
            </el-steps>
        </template>
    </el-table-column>
</el-table>

借鉴地址:vue element ui中el-step description 换行展示 - 简书

举报

相关推荐

0 条评论