为了使录入input更流畅,所以使用了vxe-table组件,一直用chrome测试(360是ok的),所以没看到问题,今天告诉我火狐的input框录入后没有调接口,代码如下
<vxe-table borderheight\="660" :data\="list" :mouse-config\="{selected:true}"show-overflow :loading\="loadTable"highlight-current-rowhighlight-hover-row @cell-click\="celledit" :cell-class-name\="cellClassName"class\="mytable-style" :keyboard-config\="{isArrow:true, isDel:true, isEnter:true, isTab:true, isEdit:true}" :edit-config\="{trigger:'click',mode:'cell'}" :span-method\="rowspanMethod"\>
<vxe-table-column v-if\="this.autoNumber"field\="autoValue"title\="码表读数" :edit-render\="{name:'input'}"\>
<template v-slot:edit="scope">
<el-inputauto complete\="off"v-if\="!scope.row.handmade&&!scope.row.resetValue"v-model\="scope.row.autoValue" @input\="checkautoNum(scope.row)" @change\="e\=>onInput(scope.row, e)"\></el-input\>
</template\>
</vxe-table-column\>
</vxe-table>
看控制台发现,@change无效,@blur也无效,只有@input有效,但是数据量大所以不能使用@input
所以各位大佬,用过这个组件的给个小意见,感谢感谢
使用 keydown 事件去监听就可以全部兼容了