<el-table-column prop="yourProp" label="糟糕程度" width="160">
<template v-slot:default="scope">
<p>
{{ scope.row.star }}
</p>
<el-rate
v-model="tableData[scope.$index].star"
:show-text="false"
allow-half>
</el-rate>
</template>
</el-table-column>
<el-table-column
ElementUI: el-table中动态绑定el-rate
最新推荐文章于 2024-02-28 15:39:52 发布