template
<view v-for="(item,index) in flags" :key="index">
<uni-easyinput v-model="formData[item.name]" />
<view>{{someMethod(item)}}</view>
</view>
script:
export default {
data() {
return {
flags: [{
name: 'date1'
},{
name: 'date2'
}],
formData: {
date1: '2030-02-16',
date2: '2030-02-17'
},
}
},
methods: {
someMethod(){},
}
}
zmhaodiao
重大bug 原生的没问题,唉 这框架恶心
2022-07-14 18:27