实现效果:

代码:
1.html:在表格的其中一列为进度条展示,需要绑定“progress”
<template>
<el-table
:data="tableData"
height="600"
style="width: 100%"
:cell-style="rowClass"
:header-cell-style="headClass"
>
<el-table-column prop="name" label="姓名" width="200" />
<el-table-column label="学习进度" prop="progress">
<template #default="scope">
<el-progress
type="line"
:text-inside="true"
:stroke-width="20"
:percentage="scope.row.progress"
status="success"

本文展示了如何在Vue3应用中使用Element UI的el-table组件嵌入进度条。通过在表格单元格内绑定进度条组件,并赋予固定值或动态从后端获取的值来显示进度。
最低0.47元/天 解锁文章
2192

被折叠的 条评论
为什么被折叠?



