父级:
<chooseAudit v-model="personal" ></chooseAudit>
data() {
return {
personal:‘1233’
}
}
</view>
</view>
</template>
<script>
export default {
name: "chooseAudit",
data() {
return {
newVal: null
};
},
model: {
prop: 'value',
event: 'input'
},
methods: {
inputChange (val) {
this.newVal = val
console.log('------',val)
this.$emit('input', val)
}
}
</script>