render upload components in render in parent component
render: (h, params) => {
return h("div", [
h(upload, {
props: {
uploadId: "upload_"+params.index+"_img",
defaultData: [],
fileList: [],
},
})
])
}
use the $emit passing method in the subcomponent
this.$emit ("getUploadDatas",datas)
excuse me, how to receive the getUploadDatas method in the parent component? many methods are useless. Thank you for the answer
.