angularjs ui-grid 行编辑数字的时候, type: 'number',当光标在编辑框时,鼠标滚动不会改变内容,但是可以通过键盘输入数字

代码:
{
field: 'approve_reim_amount',
displayName: '金额',
type: 'number',
cellFilter: 'number: 2',
enableInfiniteScroll: false,
cellEditableCondition: function ($scope) {
return $scope.row.entity.canEdit;
}
},
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
其实就是用了ui-grid会改变h5的input 滚轮事件,添加上这个就好了,禁止滚动事件