<template>
	<div class="efly-upload"
		 :style="'width:'+width"
		 :class="{
		     'efly-upload-small': size === 'small',
		     'efly-upload-mini': size === 'mini',
		 }"
	>
		<div class="efly-upload-label">
			上传文件
		</div>
		<div class="efly-upload-file">
			<span class="text-secondary" v-if="!file">未选择文件</span>
			<span v-if="file">{{file.name}}</span>
			<input class="efly-upload-input" type="file" @change="getFile($event)" @click="select($event)">

		</div>
	</div>
</template>

<script>
    import EflyUpload from "./upload";

    export default EflyUpload;
</script>

<style lang="scss" scoped>
</style>
