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
| <script lang="ts" setup>
| import icon_excel from '@/assets/svg/icon_excel.svg'
| withDefaults(
| defineProps<{
| name?: string
| size?: number
| showDel?: boolean
| }>(),
| {
| name: '',
| size: 0
| }
| )
| </script>
|
| <template>
| <div class="excel-info_base">
| <el-icon class="excel">
| <Icon name="icon_excel"><icon_excel class="svg-icon" /></Icon>
| </el-icon>
| <p :title="name" class="name ellipsis">{{ name || '-' }}</p>
| <p class="size">{{ size || '-' }}</p>
| </div>
| </template>
|
| <style lang="less" scoped>
| .excel-info_base {
| display: flex;
| align-items: center;
| width: 100%;
| height: 24px;
| padding: 0 0 0 0;
| border-radius: 4px;
| font-weight: 400;
| .excel {
| font-size: 24px;
| margin-right: 4px;
| }
|
| .name {
| color: #1f2329;
| font-size: 14px;
| max-width: calc(100% - 112px);
| margin-right: 12px;
| line-height: 22px;
| }
|
| .size {
| color: #8f959e;
| font-size: 14px;
| line-height: 22px;
| }
| }
| </style>
|
|