<template>
<view>
<view v-for="(item,index) in father.child" :key="item.id" class="item">
<input v-model='item.value' type="text">
</view>
<view @click="sub" class="btn">
提交
</view>
</view>
</template>
<script>
export default {
data() {
return {
father:{
child:[{
id: 1,
value:''
},{
id: 2,
value:''
}]
}
}
},
onLoad() {
},
methods: {
sub(){
console.log(this.father)
}
}
}
</script>
<style>
.btn{
width: 120rpx;
height: 120rpx;
background: #999;
line-height: 120rpx;
text-align: center;
}
.item{
border: 2rpx solid #999;
}
</style>
LV007 (作者)
测试 ios 和 红米k40 无问题 但是本人手机小米10s miui版本12.5.7 预览编译后的小程序确实如上图所示 值绑定不上的情况
2022-10-24 14:59
DCloud_UNI_WZF
回复 LV007: 微信小程序原生开发是否有同样问题?部分机型可以,说明uniapp到微信小程序的编译没有问题
2022-10-24 15:03
LV007 (作者)
回复 DCloud_UNI_WZF: 非常感谢 我们去原生排查一下问题
2022-10-24 16:27