uniapp的input或者textarea再苹果机上面输入框被顶到上面,不在对应位置方法

网址:https://opendocs.alipay.com/mini/component/input

给对应的textarea或者inpout的输入框加个属性

:enableNative="false"。设置为true或者false看下,就能搞定

<textarea v-model="remark" class="textarea" placeholder="请输入其他信息" maxlength="30" :enableNative="false" @input="remarkSpaceFilter"></textarea>

注意点:uniapp的表单标签

input标签,切记,不要使用number类型或者data类型,无用。。。,用text类型,然后在加一个正则匹配来进行

猜你喜欢

转载自blog.csdn.net/m0_64207574/article/details/127977708