最近用了elementui做項(xiàng)目,遇到一些問題。需求:選中提示內(nèi)容之后 給datatable對(duì)應(yīng)行row的id賦值,(后臺(tái)要求傳id,不傳input的值)。問題:自定義table嵌套 帶提示的input,select函數(shù)api上自帶一個(gè)參數(shù),我額外添加一個(gè)參數(shù)row之后,就獲取不到當(dāng)前的選中的數(shù)據(jù)?<el-table-column align="center" prop="futuresContractId" label="采購合約" width="120"> <template scope="scope"> <el-autocomplete class="inline-input1" v-model="scope.row.id" :value="scope.row.futuresContractId" :fetch-suggestions="querySearch" placeholder="請(qǐng)輸入" :trigger-on-focus="false" @select="handleSelect(scope.row)" > </el-autocomplete> </template> </el-table-column>
elementui input帶提示框 選中傳參問題
肥皂起泡泡
2018-11-21 18:15:06