<FormItem label="上傳頭像" prop="image"> <uploadImg :width="150" :height="150" :name="'avatar'" size="150px*150px" ref="uploadImg"></uploadImg></FormItem><FormItem label="上傳營業(yè)執(zhí)照" prop="businessLicence"> <uploadImg :width="350" :height="200" :name="'license'" size="350px*200px"></uploadImg></FormItem>我把上傳圖片封裝成了一個子組件,請問在父組件這里,我如何可以獲取到子組件inputfile的圖片地址?
vue如何獲取子組件的input file的圖片url
holdtom
2018-12-11 17:15:24