前端vue记录,el-table使用了fixed,点击文本变为el-input,input无法获取焦点,解决方法
el-input 根据下标 动态绑定 :id="'自定义名称'+ scope.$index"
点击函数中添加获取焦点代码
this.$nextTick(() => { document.getElementById('自定义名称' + 对应下标).focus(); })
el-input 根据下标 动态绑定 :id="'自定义名称'+ scope.$index"
点击函数中添加获取焦点代码
this.$nextTick(() => { document.getElementById('自定义名称' + 对应下标).focus(); })