mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
feat(Uploader): add chooseFile method (#5818)
This commit is contained in:
@@ -247,6 +247,17 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
// @exposed-api
|
||||
chooseFile() {
|
||||
if (this.disabled) {
|
||||
return;
|
||||
}
|
||||
/* istanbul ignore else */
|
||||
if (this.$refs.input) {
|
||||
this.$refs.input.click();
|
||||
}
|
||||
},
|
||||
|
||||
genPreviewMask(item) {
|
||||
const { status } = item;
|
||||
|
||||
|
Reference in New Issue
Block a user