一、vue组件传参 1.父子传参 父传子:子组件通过props接收 props: { 参数名: { type: Object, default: function () { return { }; }, }, }, 子传父 子组件通过 @click=