update Upload Icons
This commit is contained in:
parent
e71a795e38
commit
a2d36d2131
1 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
<Icon :type="format(file)"></Icon> {{ file.name }}
|
<Icon :type="format(file)"></Icon> {{ file.name }}
|
||||||
</span>
|
</span>
|
||||||
<Icon
|
<Icon
|
||||||
type="ios-close-empty"
|
type="ios-close"
|
||||||
:class="[prefixCls + '-list-remove']"
|
:class="[prefixCls + '-list-remove']"
|
||||||
v-show="file.status === 'finished'"
|
v-show="file.status === 'finished'"
|
||||||
@click.native="handleRemove(file)"></Icon>
|
@click.native="handleRemove(file)"></Icon>
|
||||||
|
@ -63,10 +63,10 @@
|
||||||
},
|
},
|
||||||
format (file) {
|
format (file) {
|
||||||
const format = file.name.split('.').pop().toLocaleLowerCase() || '';
|
const format = file.name.split('.').pop().toLocaleLowerCase() || '';
|
||||||
let type = 'document';
|
let type = 'ios-document-outline';
|
||||||
|
|
||||||
if (['gif','jpg','jpeg','png','bmp','webp'].indexOf(format) > -1) {
|
if (['gif','jpg','jpeg','png','bmp','webp'].indexOf(format) > -1) {
|
||||||
type = 'image';
|
type = 'ios-image';
|
||||||
}
|
}
|
||||||
if (['mp4','m3u8','rmvb','avi','swf','3gp','mkv','flv'].indexOf(format) > -1) {
|
if (['mp4','m3u8','rmvb','avi','swf','3gp','mkv','flv'].indexOf(format) > -1) {
|
||||||
type = 'ios-film';
|
type = 'ios-film';
|
||||||
|
@ -75,10 +75,10 @@
|
||||||
type = 'ios-musical-notes';
|
type = 'ios-musical-notes';
|
||||||
}
|
}
|
||||||
if (['doc','txt','docx','pages','epub','pdf'].indexOf(format) > -1) {
|
if (['doc','txt','docx','pages','epub','pdf'].indexOf(format) > -1) {
|
||||||
type = 'document-text';
|
type = 'md-document';
|
||||||
}
|
}
|
||||||
if (['numbers','csv','xls','xlsx'].indexOf(format) > -1) {
|
if (['numbers','csv','xls','xlsx'].indexOf(format) > -1) {
|
||||||
type = 'stats-bars';
|
type = 'ios-stats';
|
||||||
}
|
}
|
||||||
if (['keynote','ppt','pptx'].indexOf(format) > -1) {
|
if (['keynote','ppt','pptx'].indexOf(format) > -1) {
|
||||||
type = 'ios-videocam';
|
type = 'ios-videocam';
|
||||||
|
|
Loading…
Add table
Reference in a new issue