2016-11-07 05:28:37 +11:00
|
|
|
<template>
|
|
|
|
<div class="media-upload">
|
|
|
|
<label class="btn btn-default">
|
2016-11-14 04:26:10 +11:00
|
|
|
<i class="fa icon-spin4 animate-spin" v-if="uploading"></i>
|
|
|
|
<i class="fa icon-upload" v-if="!uploading"></i>
|
2016-11-07 05:28:37 +11:00
|
|
|
<input type=file style="position: fixed; top: -100em"></input>
|
|
|
|
</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>
|