实现el-table的可编辑表格如图所示:
以下展示部分代码:
<el-table-column label="价格" min-width="20" align="center">
<template slot-scope="scope">
<el-input
v-if="scope.row.edit"
v-model="scope.row.price"
placeholder="价格"
></el-input>
<span v-else>{
{
scope.row.price }}</span>
</template>
</el-table-column>
<el-table-column label="库存" min-width="20" align=