鍍金池/ 問(wèn)答/HTML/ el-table的自定義列,怎么把行數(shù)據(jù)和自定義組件中原本要傳的數(shù)據(jù)傳出來(lái)?

el-table的自定義列,怎么把行數(shù)據(jù)和自定義組件中原本要傳的數(shù)據(jù)傳出來(lái)?

如下所示,change事件原本要傳遞的是,input中的數(shù)值大小。我想在這個(gè)事件中把scope.row的數(shù)據(jù)也傳出來(lái),但是不知道怎么同時(shí)把這倆數(shù)據(jù)一起傳出來(lái)。下面的寫法會(huì)把row數(shù)據(jù)傳出來(lái),但是原先的input中的數(shù)值大小就出不來(lái)了

  <el-table-column prop="quantity" label="數(shù)量">
    <div slot-scope="scope">
      <div class="biz-customcol">
        <el-input-number :value="scope.row.quantity" @change="handleChange(scope.row)" :min="1" label="描述文字"></el-input-number>
      </div>
    </div>
  </el-table-column>
回答
編輯回答
念初

handleChange($event,scope.row)

2017年12月24日 01:10
編輯回答
悶油瓶

難道就不可以傳多個(gè)參數(shù)嗎?????????????

2017年4月27日 10:56