mirror of https://github.com/ElemeFE/element
fix picture file list style
parent
65f61e0eba
commit
b14b0ef8ac
|
@ -33,6 +33,7 @@
|
||||||
height: @width;
|
height: @width;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
line-height: calc(@height - 2);
|
line-height: calc(@height - 2);
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
|
@ -193,8 +194,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@m picture-card {
|
@m picture-card {
|
||||||
float: left;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
display: inline;
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
.el-upload-list__item {
|
.el-upload-list__item {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -272,6 +274,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.el-progress {
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
bottom: auto;
|
||||||
|
width: 126px;
|
||||||
|
|
||||||
|
.el-progress__text {
|
||||||
|
top: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@m picture {
|
@m picture {
|
||||||
.el-upload-list__item {
|
.el-upload-list__item {
|
||||||
|
|
|
@ -227,13 +227,14 @@ export default {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
{ this.listType === 'picture-card' ? uploadList : ''}
|
||||||
{
|
{
|
||||||
this.$slots.trigger
|
this.$slots.trigger
|
||||||
? [uploadComponent, this.$slots.default]
|
? [uploadComponent, this.$slots.default]
|
||||||
: uploadComponent
|
: uploadComponent
|
||||||
}
|
}
|
||||||
{this.$slots.tip}
|
{this.$slots.tip}
|
||||||
{uploadList}
|
{ this.listType !== 'picture-card' ? uploadList : ''}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
</span>
|
</span>
|
||||||
<el-progress
|
<el-progress
|
||||||
v-if="file.status === 'uploading'"
|
v-if="file.status === 'uploading'"
|
||||||
:stroke-width="2"
|
:type="listType === 'picture-card' ? 'circle' : 'line'"
|
||||||
|
:stroke-width="listType === 'picture-card' ? 6 : 2"
|
||||||
:percentage="parsePercentage(file.percentage)">
|
:percentage="parsePercentage(file.percentage)">
|
||||||
</el-progress>
|
</el-progress>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue