<template>
<view>
<input class="my-input" type="text":focus="testFocus1" @confirm="input1confirm">
<input class="my-input" type="text" :focus="testFocus2" @confirm="input2confirm">
<input class="my-input" type="text" :focus="testFocus3">
</view>
</template>
<script>
export default {
data() {
return {
testFocus1: true,
testFocus2: false,
testFocus3: false
}
},
methods: {
input1confirm(){
this.testFocus1 = false
this.testFocus2 = true
},
input2confirm(){
this.testFocus2 = false
this.testFocus3 = true
}
}
}
</script>
1 个回复
DCloud_UNI_Anne
请升级至HBuilderX3.6.10-alpha版本试下
【bug优先处理规则】https://ask.dcloud.net.cn/article/38139