子传父值,值传不过来

子组件

img


父组件

img

img


<uploads-img
       :custom-fiLeName="onCustomFileName
       id="0"
       imaeUrL="
       Class="uploads-img"
 /uploads-img>

this.$emit("customFileName",response.fileName); $emit 触发的event用驼峰,不要用 横线分割