2016-11-07 05:28:37 +11:00
|
|
|
<template>
|
2017-02-22 23:53:05 +11:00
|
|
|
<div class="media-upload" @drop.prevent @dragover.prevent="fileDrag" @drop="fileDrop">
|
2018-12-04 04:12:43 +11:00
|
|
|
<label class="btn btn-default" :title="$t('tool_tip.media_upload')">
|
2018-04-02 05:07:25 +10:00
|
|
|
<i class="icon-spin4 animate-spin" v-if="uploading"></i>
|
2018-04-01 04:14:36 +10:00
|
|
|
<i class="icon-upload" v-if="!uploading"></i>
|
2019-02-05 02:45:26 +11:00
|
|
|
<input type="file" v-if="uploadReady" @change="change" style="position: fixed; top: -100em" multiple="true"></input>
|
2016-11-07 05:28:37 +11:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./media_upload.js" ></script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.media-upload {
|
|
|
|
font-size: 26px;
|
|
|
|
flex: 1;
|
|
|
|
}
|
2016-11-23 09:58:25 +11:00
|
|
|
|
|
|
|
.icon-upload {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2016-11-07 05:28:37 +11:00
|
|
|
</style>
|