使用了fastclick之后,在输入框上绑定click事件,然后自动focus就可以了。
<textarea class="input-content" @click="focus" :placeholder="placeholderText"v-model="inputText" :maxlength="maxInputTexLength"></textarea>
focus(e) {e.target.focus();},
不实用fackclick就直接touchstart就可以了
<textarea class="input-content"@touchstart="focus" :placeholder="placeholderText"v-model="inputText" :maxlength="maxInputTexLength"></textarea>
focus(e) {e.target.focus();},