其实这个升级版有点投机取巧的感觉,原因是上个版本有人说会有性能问题,我自己想了想确实会存在多次循环的问题,而这个升级版,本质只是修改了input的样式所以不存在js性能的问题。 下面就是代码:
HTML:
<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;
}
网友评论