clarms-plugins-upload.vue
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
<div>
<div class="clarms-container">
<div class="clarms-box">
<div class="clarms-tips" v-if="tipsVisible">
<div class="cont">{{options.toast}}</div>
</div>
<div class="clarms-header">
<div class="clarms-header-2">
<div @mouseover="onShowTipsOverHandler($event)" @mouseout="onShowTipsOutHandler($event)">
<img class="clarms-icon" :src='icon'>
</div>
<div class="clarms-title-container">
<div class="clarms-t1" :class="{clarmsActivty:images && images.length > 0}">{{options.name}}</div>
<div class="clarms-t2">{{$t('clarms.step2.uploadFile')}}{{uploadFiles}}</div>
</div>
</div>
<div class="clarms-btn" :class="{disabled:uploading}" @click="selectMutilFile">
{{$t('clarms.step2.btnUpload')}}
</div>
</div>
<div v-if="images && images.length > 0">
<hr>
<div class="clarms-img-group">
<div class="clarms-img-item-plugin" @mouseover="onOverHandler($event,item,index)" v-for="(item,index) in images" :key="index">
<div class="clarms-img-item">
<img class="clarms-img-cont" :src="item.data">
<div class="clarms-img-mask" v-if="item.showMask && !item.intervial && !item.err">
<img src="@/assets/images/clarms/close.png">
</div>
<div class="clarms-img-mask" v-if="item.showMask && !item.intervial && !item.err" @mouseout="onOutHandler($event,item,index)" @click="removeItem(index)">
</div>
<div class="clarms-img-mask mask-bg-2" v-if="item.intervial">
Uploading{{item.tips}}
</div>
<div class="clarms-img-mask mask-bg-2" v-if="item.err" @click="removeItem(index)">
Uploading{{item.err}}
</div>
</div>
</div>
</div>
<div class="clarms-empty-line"></div>
</div>
</div>
</div>
</div>
</template>
<script src="./clarms-plugins-upload.js"></script>
<style lang="scss" scoped>
@import "./clarms-plugins-upload.scss";
</style>