I solved this by
this.$refs.uploader.addFiles([file])
I solved this by
this.$refs.uploader.addFiles([file])
Hi there,
Do you have any sample on how to manually add files? I have successfully uploaded the images but repopulating it seems confusing.
My code:
mounted(){
if (this.locProduct.images != null) {
for (var i = 0; i < this.locProduct.images.length; i++) {
let fileName = this.locProduct.images[i].name
let url = this.locProduct.images[i].path_url
// Add file size to the database images
let file = {
id: this.locProduct.images[i].id,
size: 123,
type: fileName.split('.').pop(),
name: fileName,
__img: {
src: url
}
}
console.log(file)
this.added([file])
}
}
}
methods: {
added (files) {
console.log(files)
this.selectedFile.push(files[0])
},
}
`computed: {
selectedProvince: {
get () {
return _.find(this.provinces, {
value: this.user.address.province_id
})
},
set (val) {
this.setProvinceId(val)
}
},
}`
Hi everyone,
I have a very simple q-select that works in 0.17.* but is doesn’t work now in 1.0.beta
<q-select v-model="user.address.province_id" :options="provinces" label="Province" class="q-ma-md" />
The options="provinces"
works fine it displays all the provinces however it doesn’t select automatically on the provinces array.
Here is the picture.
Before it works fine on the previous version. Thanks.