实现效果:
代码:
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