vue-office icon indicating copy to clipboard operation
vue-office copied to clipboard

移动端excel组件加载完毕后会自动聚焦第一个格子弹出键盘

Open Boo-PiG opened this issue 1 year ago • 5 comments

"@vue-office/excel": "^1.4.5",

Boo-PiG avatar Oct 25 '23 07:10 Boo-PiG

同问+1

CGGoodNight avatar Oct 30 '23 03:10 CGGoodNight

ios没问题,android会弹出

CGGoodNight avatar Oct 30 '23 03:10 CGGoodNight

在excelRenderedHandler里加这个ios上可以解决,但安卓加载慢时会闪一下键盘 还是期望从源头上解决吧 document.activeElement.blur(); const inputElements = myDiv.querySelectorAll("input, textarea"); inputElements.forEach(function (element) { element.disabled = true; })

Boo-PiG avatar Nov 01 '23 09:11 Boo-PiG

还是要源头解决这个问题,增加更多的配置项,可以在xlsx渲染完毕前自行增加loading模块,渲染完毕的回掉中处理完后再展示预览区域 const inputs = document.querySelectorAll("input") for (var i = 0; i < inputs.length; i++) { inputs[i].readOnly = true; }

hluxiao avatar Jan 09 '24 02:01 hluxiao

滑动也会触发 怎么解决 和上面提供的方法一样吗?

Jack-Jang avatar Mar 12 '24 13:03 Jack-Jang