- Project needs to wrap the newly appended data in table
- some related codes
<el-table style="width: 100%" :data="tableData">
<el-table-column prop="dishName" label="" width="200px"></el-table-column>
<el-table-column prop="amount" label="" width="50px"></el-table-column>
<el-table-column prop="money" label="" width=50px></el-table-column>
</el-table>
<script>
export default {
data() {
return {
tableData: [{
dishName: "ewqewqe",
amount: 1,
money: 30
}, {
dishName: "",
amount: 2,
money: 60
}]
};
}
};
</script>
- expected effect
- tried to add rn to the dishName string, but failed to achieve the effect