index.less 1.13 KB
Newer Older
1
@import '~antd/es/style/themes/default.less';
2
@imgSrc: '../../../../assets/images/file';
3 4
.uploadBox,
.uploadBoxImg {
田翔's avatar
田翔 committed
5
  .iconImg {
田翔's avatar
田翔 committed
6
    width: 45px;
田翔's avatar
田翔 committed
7 8
    height: 45px;
    margin: 0 auto;
田翔's avatar
田翔 committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
    &[type='通用'] {
      background: url('@{imgSrc}/通用.png');
      background-size: 100% 100%;
    }
    &[type='jpg'] {
      background: url('@{imgSrc}/JPG.png');
      background-size: 100% 100%;
    }
    &[type='png'] {
      background: url('@{imgSrc}/PNG.png');
      background-size: 100% 100%;
    }
    &[type="mp3"] {
      background: url('@{imgSrc}/音乐.png');
      background-size: 100% 100%;
    }
    &[type="mp4"] {
      background: url('@{imgSrc}/视频.png');
      background-size: 100% 100%;
    }
田翔's avatar
田翔 committed
29 30 31 32
    &[type='docx'] {
      background: url('@{imgSrc}/Word.png');
      background-size: 100% 100%;
    }
33 34
    &[type='xlsx'],
    &[type='xls'] {
田翔's avatar
田翔 committed
35 36 37
      background: url('@{imgSrc}/Excel.png');
      background-size: 100% 100%;
    }
田翔's avatar
田翔 committed
38 39 40 41
    &[type='PDF'] {
      background: url('@{imgSrc}/PDF.png');
      background-size: 100% 100%;
    }
田翔's avatar
田翔 committed
42
  }
43 44 45
}

.uploadBoxImg {
46
  .@{ant-prefix}-upload-list-item-name {
47
    display: none !important;
48
  }
田翔's avatar
田翔 committed
49
}