<script> import FormEdit from './FormEdit.vue'; import FormCreate from…
- User
<el-button @click="loadData">Load data <el-button @click="handleCreate">Add new product
<form-edit ref="formEdit" @cancel="handleFormEditCancel" @confirm="handleFormEditConfirm">
<form-create ref="formCreate" @confirm="handleFormCreateConfirm">
can you add price times in stock?
- Assistant
To add a new column for the total value of products, calculated as
unitPrice * unitsInStock, you can modify the component in your template. Here's how you can add the new column to your Vue component: