在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/網絡營銷  HTML/ input 組件在iOS下,彈出無法彈出第三方鍵盤

input 組件在iOS下,彈出無法彈出第三方鍵盤

問題描述

input 組件在iOS下,彈出無法彈出第三方鍵盤

問題出現的環(huán)境背景及自己嘗試過哪些方法

input聚焦后,輸入文字時,只能切換系統自動的鍵盤,無法切換到第三方鍵盤,有解決的辦法嗎?

相關代碼

// 請把代碼文本粘貼到下方(請勿用圖片代替代碼)
<template>

<div class="wrapper">
    <input class="username"
       type="text"
       autofocus="true"
       placeholder="用戶名"
       value="" >
    </input>
    <input class="password"
       type="password"
       placeholder="密碼"
       value="">
    </input>
    <wxc-button text="登錄" type="blue"
        @wxcButtonClicked="wxcButtonClicked"></wxc-button>
</div>

</template>

<style scoped>
.wrapper{

flex-direction: column;
align-items: center;
justify-content: center;

}
.username{

width: 600px;
height: 88px;
font-size: 30px;
margin-bottom: 20px;
border-style: solid;
border-width: 2px;
border-color: rgb(63, 140, 225);
text-align: center;

}
.password{

width: 600px;
height: 88px;
font-size: 30px;
margin-bottom: 20px;
border-style: solid;
border-width: 2px;
border-color: rgb(63, 140, 225);;
text-align: center;

}
</style>

<script>

import { WxcButton } from 'weex-ui'
export default {
    components: {WxcButton},
    data: () =>({
        password: '',
        username: ''
    }),
    methods: {
        wxcButtonClicked (e) {
        console.log(e)
    }
}
}

</script>

你期待的結果是什么?實際看到的錯誤信息又是什么?

回答
編輯回答
傻叼

發(fā)現原生寫的app,只有是設置了setSecureTextEntry的類型是password,都會禁用第三方的鍵盤。所以這個問題不是weex的問題,是iOS系統的問題。

2017年9月27日 17:19