<jdy-goods-attr
:goods_sn="goods.goods_sn"
@goods_sn="(msg) => goods.goods_sn = msg"
v-model:goods_num="goods.goods_num"
></jdy-goods-attr>
const emit = defineEmits(['goods_sn','update:goods_num']);
//方法一
emit('goods_sn',sn.value)
//方法二
emit('update:goods_num',num.value)
标签:goods,update,修改,num,sn,vue3,组件,emit
From: https://www.cnblogs.com/douyuanjun/p/17834116.html