mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
uploader
This commit is contained in:
parent
c1e1abd158
commit
b235b9ac7b
@ -28,9 +28,11 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onValueChange (event) {
|
onValueChange (event) {
|
||||||
|
|
||||||
if (this.disabled) {
|
if (this.disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var files = event.target.files;
|
var files = event.target.files;
|
||||||
var file = files[0];
|
var file = files[0];
|
||||||
if (!file) return;
|
if (!file) return;
|
||||||
@ -55,7 +57,7 @@
|
|||||||
} else if (this.resultType == 'text') {
|
} else if (this.resultType == 'text') {
|
||||||
reader.readAsText(file);
|
reader.readAsText(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user