Vue + element-UI可编辑表格的使用
<el-table>
<el-table-column label="金额(万元)" align="center" prop="amountmoney">
<template slot-scope="scope">
<el-input class="input-with-select" slot-size="small" @blur="numblur(scope.$index,scope.row,$event,3)"
@input="onInput3(scope.$index, scope.row,$event)" :value="formatNum(scope.row.amountmoney)"
placeholder="请输入内容" @change="purposeEdit(scope.$index, scope.row)">
</el-input>
<span>{{formatNum(scope.row.amountmoney)}}</span>
</template>
</el-table-column>
</el-table>



本文介绍如何在Vue项目中使用Element-UI组件库实现可编辑的表格功能,详细展示了表格列中金额字段的编辑操作,包括输入框的使用、事件监听及数据格式化。
1万+

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



