import {Component, Prop, Vue, Emit} from 'vue-property-decorator'; @Component export default class EflyUpload extends Vue { @Prop({default: () => ''}) private size!: any[]; @Prop({default: () => 'auto'}) private width!: any[]; private input: any; private file: any = ''; private mounted() { this.input = this.$el.getElementsByClassName('efly-upload-input')[0]; } private getFile($event: any) { this.file = this.input.files[0]; this.$emit('change', this.file) } private select($event: any){ } }