问题:
Event “fatherChange” is emitted in component but the handler is registered for “fatherChange”. Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use “listen-to-child-event” instead of “fatherChange”
在子组件中绑定的事件如果使用的是驼峰式的格式,在子组件的组件标签中进行监听事件的时候,要写成短横线格式
子组件向父组件传值
最新推荐文章于 2023-02-20 13:55:32 发布