1,写一个标签,如下:
<uni-easyinput v-model="formData.code" placeholder="请扫码" suffixIcon="scan" :trim="true" @confirm="handleFouce"></uni-easyinput>
2,写另外一个标签,设置fouce属性,如下:
const skuFocus = ref(false)
<uni-easyinput v-model="formData.code2" placeholder="请扫码" suffixIcon="scan" :trim="true" :focus="skuFocus "></uni-easyinput>
3, 触发handleFouce事件,设置skuFocus.value=true