vue父子传值方式

34 阅读1分钟

$emit传值方式

props传值:

父组件:

方法一的popupMainTitle在data里面即可

子组件: