- 当前 Bug 的表现(可附上截图)
- 预期表现
不要严重抖动
- 复现路径
- 提供一个最简复现 Demo
<input type='text' class="mp-attendance__plan-work-detail-plan-name-input bd-1" placeholder="" value="{{shift.name}}" bindinput="bindInputTap" />
bindInputTap(e) {
let shift = this.data.shift;
let inputName = e.detail.value;
let name = shift.name;
if (name !== inputName) {
shift.name = inputName;
this.setData({
shift: shift
});
}
},