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
| <script lang="ts" setup>
| import icon_dashboard from '@/assets/svg/icon_dashboard.svg'
| defineProps({
| label: {
| type: String,
| default: ''
| },
| time: {
| type: String,
| default: ''
| }
| })
|
| const emits = defineEmits(['click'])
| const handleClick = () => {
| emits('click')
| }
| </script>
|
| <template>
| <div class="workbranch-cell" @click="handleClick">
| <el-icon>
| <Icon name="icon_dashboard"><icon_dashboard class="svg-icon" /></Icon>
| </el-icon>
| <div class="label">
| <div class="text ellipsis">
| {{ label }}
| </div>
| <div class="time">
| {{ time }}
| </div>
| </div>
| </div>
| </template>
|
| <style lang="less" scoped>
| .workbranch-cell {
| width: 100%;
| height: 68px;
| position: relative;
| display: flex;
| padding: 12px 16px;
| background: #fff;
| &::after {
| content: '';
| background: #e4e5e7;
| height: 1px;
| width: calc(100% - 62px);
| transform: scaleY(0.5);
| position: absolute;
| left: 46px;
| bottom: 0;
| }
|
| .ed-icon {
| font-size: 22px;
| margin-right: 8px;
| }
|
| .label {
| font-size: 16px;
| font-weight: 400;
| line-height: 22px;
| max-width: calc(100% - 54px);
|
| .text {
| width: 100%;
| }
|
| .time {
| font-size: 14px;
| font-weight: 400;
| line-height: 20px;
| color: #8f959e;
| margin-top: 2px;
| }
| }
|
| &:nth-child(1) {
| &::after {
| display: none;
| }
| }
| }
| </style>
|
|