22 lines
605 B
Vue
22 lines
605 B
Vue
<template>
|
|
<div class="media-upload" @drop.prevent @dragover.prevent="fileDrag" @drop="fileDrop">
|
|
<label class="btn btn-default" :title="$t('tool_tip.media_upload')">
|
|
<i class="icon-spin4 animate-spin" v-if="uploading"></i>
|
|
<i class="icon-upload" v-if="!uploading"></i>
|
|
<input type="file" v-if="uploadReady" @change="change" style="position: fixed; top: -100em" multiple="true"></input>
|
|
</label>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./media_upload.js" ></script>
|
|
|
|
<style>
|
|
.media-upload {
|
|
font-size: 26px;
|
|
flex: 1;
|
|
}
|
|
|
|
.icon-upload {
|
|
cursor: pointer;
|
|
}
|
|
</style>
|