bug現象:
ios的input輸入框喚出鍵盤後,鍵盤消失頁面卻不回彈問題,安卓無此現象
vue寫法解決方案:
<mt-field label="姓名" placeholder="請輸入姓名" v-model="username" class="br-bt i-label" @blur.native.capture="handleBug"></mt-field>
handleBug() {
let scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0
window.scrollTo(0, Math.max(scrollHeight - 1, 0))
}