其實這個升級版有點投機取巧的感受,緣由是上個版本有人說會有性能問題,我本身想了想確實會存在屢次循環的問題,而這個升級版,本質只是修改了input的樣式因此不存在js性能的問題。 下面就是代碼:css
HTML:bash
<el-table-column header-align='center' label="實際投入人數" width="140">
<template slot-scope="{row}">
<input v-model="row.biz_real_person_count"></input>
</template>
</el-table-column>
複製代碼
css:性能
input {
outline: none;
border: none;
padding: 3px;
margin: 10px;
}
input:focus {
border: 1px solid #333;
}
複製代碼