-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploadMore.css
214 lines (182 loc) · 4.3 KB
/
uploadMore.css
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*!
* @Title: uploadMore 多文件上传组件
* @Version: 1.0.0
* @Description:支持多文件上传,拖拽排序,拖拽上传,图片预览
* @Author: vartruexuan
* @License:Apache License 2.0
*/
/* 容器 */
.uploadMore-container {
display: flex;
flex-wrap: wrap;
/*border: 1px solid black;*/
gap: 10px;
padding: 10px;
}
/* 成员 */
.uploadMore-item {
position: relative;
width: 120px;
height: 120px;
border: 1px solid gray;
text-align: center;
line-height: 80px;
padding: 4px;
border-radius: 4px;
}
/* 图片展示 */
.uploadMore-img-preview {
width: 100%;
height: 100%
}
.uploadMore-img-preview img {
max-width: 100%;
max-height: 100%
}
/*拖拽排序按钮*/
.uploadMore-drag {
background: rgba(236, 221, 221, 0.5);
border-bottom-left-radius: 4px;
cursor: pointer;
position: absolute;
z-index: 2;
right: 0;
top: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center
}
/*************************** 上传按钮 start ***************************/
/* 上传按钮 */
.uploadMore-uploadBtn {
position: relative;
width: 120px;
height: 120px;
text-align: center;
line-height: 80px;
padding: 4px;
border-radius: 4px;
border: 1px dashed #d9d9d9;
}
/* 上传按钮-文件数量 */
.uploadMore-uploadBtn .uploadMore-fileNum {
background: rgba(239, 235, 235, 0.5);
border-bottom-left-radius: 4px;
position: absolute;
z-index: 2;
right: 0;
top: 0;
height: 30px;
display: flex;
align-items: center;
justify-content: center
}
/* 上传按钮-上传图标 */
.uploadMore-uploadBtn .uploadMore-icon-box {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
align-items: center;
background-color: #fafafa;
cursor: pointer;
}
/*************************** 上传按钮 end ***************************/
/*************************** 操作按钮蒙版 start ***************************/
/*操作按钮蒙版*/
.uploadMore-operation {
position: absolute;
z-index: 1;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.4);
font-size: 30px;
opacity: 0;
transition: all 0.3s ease 0s;
}
/*操作按钮容器*/
.uploadMore-operation-box {
width: 60%;
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
font-weight: bold
}
/*************************** 操作按钮蒙版 start ***************************/
/*************************** 进度条 start ***************************/
.uploadMore-progress {
position: absolute;
z-index: 2;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
}
.uploadMore-progress-box {
z-index: 3;
width: 100%;
height: 100%;
color: #fff;
}
/*************************** 进度条 end ***************************/
/*************************** 进度条 start ***************************/
.uploadMore-message {
position: absolute;
z-index: 2;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
}
.uploadMore-message-box {
z-index: 4;
width: 100%;
height: 100%;
color: #fff;
}
.uploadMore-message-content {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex-direction: row-reverse;
align-content: center;
}
/*************************** 进度条 end ***************************/
/************************* 错误消息 ***************************************/
.uploadMore-message-content span {
line-height: 36px;
display: inline-flex;
flex-direction: row;
flex-wrap: wrap;
align-content: space-around;
justify-content: flex-start;
align-items: center;
cursor: pointer;
}
.uploadMore-message-content span:hover {
color: #2c2cc6;
font-weight: bold;
}
.uploadMore-message-content .uploadMore-retryUpload {
}
.uploadMore-message-content .uploadMore-error{
}
.uploadMore-message-content .uploadMore-operation-action-delete:hover {
color: red;
}