在Vue js-> v-model中我如何整合vlaue?

时间:2018-12-10 07:51:06

标签: html vue.js vue-component

<table class="table table-sm m-table table-bordered borderless">
       <thead class="thead-inverse" >
          <tr>
            <th>Sl</th>
            <th>Product Name</th>
            <th>Oepning Stock </th>
            <th>Current Stock</th>
         </tr>
      </thead>
      <tbody>
         <tr v-for="(details, index) in product_lists">
           <td scope="row">
             {{ index +1 }}
           </td>
           <td>
              {{details.product_name}}
           </td>
           <td>
              <span v-model="details.inventory_stocks_open_qty"></span>
          </td>
          <td>
                <input type="hidden" v-model="details.inventory_current_stocks_product_id" :value='details.id'   >
                <input type="number" v-model="details.inventory_stocks_current_qty" class="form-control form-control-sm m-input" placeholder="">
          </td>
       </tr>
   </tbody>
</table>

  • 我们如何将v-bind或:value放入由vue js填充的隐藏中
  • 我无法将商品ID值放在:value ='details.id'

0 个答案:

没有答案