html部分: <el-table-column v-for="(item,index) in table3.tableTitle" :lable="item.label" :key="index" :prop="item.prop" align="center"> <template slot-scope="{row, index}"> <el-input size="small" type="number" v-model="row[item.prop]" style="text-align:center"></el-input> </template> </el-table-column>
data部分: table3: { total: null,//总条数 page: 1,//页码 page_count: 30,//每页条数 //表头样式 table_header: { 'background-color': '#f8f8f9', 'height': '20px!important', 'color': '#515a6e', }, //表格数据 table_data: [{ id: '1', name: '重', unit:'KG', }, { id: '2', name: '长', unit:'CM', }, { id: '3', name: '宽', unit:'CM',