0π
β
- Declare uploaders as an array of objects that contain all needed props for creation of MultipleFileUploaderPart.
- Use v-for on MultipleFileUploaderPart in the main MultipleFileUploader to reactively generate MultipleFileUploaderPart components
- Use $emit from MultipleFileUploaderPart to MultipleFileUploader to emit creation and deletion events so that MultipleFileUploader can add or remove elements in the uploaders array.
- Please donβt delete or create elements from DOM directly, let the VueJs do this work.
Source:stackexchange.com