vue in contenteditable = "true" solution after adding editable properties v-model two-way binding failure

In the project will meet the need to edit the cell-way binding problem, v-model two-way binding will add contenteditable = "true" after the property failed 
to resolve as follows, pro-test is easy to use (v-html and @blur realization) :
<td class="width90" contenteditable="true" v-html="name3.LastProduct" @blur="name3.LastProduct=$event.target.innerText"></td>

Perfect easy to use!

Guess you like

Origin www.cnblogs.com/zhoushuang0426/p/11422421.html