n20-common-lib 3.2.5 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/css/_coreLib.scss +1 -0
- package/src/assets/css/approve-card.scss +87 -0
- package/src/assets/css/info-card.scss +168 -0
- package/src/components/AIButton/index.vue +2 -2
- package/src/components/ApprovalCard/index.vue +38 -21
- package/src/components/AttachmentPass/index.vue +0 -2
- package/src/components/InfoCard/index.vue +0 -166
- package/src/components/Pivot/index.vue +1 -5
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -18,7 +18,90 @@
|
|
|
18
18
|
cursor: default;
|
|
19
19
|
}
|
|
20
20
|
.result-left-name {
|
|
21
|
+
flex: 0 0 20%;
|
|
21
22
|
width: 20%;
|
|
23
|
+
min-width: 80px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.approval-info-grid {
|
|
27
|
+
--approval-info-job-column: minmax(0, 0.9fr);
|
|
28
|
+
--approval-info-app-column: minmax(0, 0.8fr);
|
|
29
|
+
--approval-info-cost-column: minmax(170px, max-content);
|
|
30
|
+
--approval-info-detail-column: minmax(70px, max-content);
|
|
31
|
+
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns:
|
|
34
|
+
minmax(0, 1.1fr)
|
|
35
|
+
minmax(0, 1.1fr)
|
|
36
|
+
var(--approval-info-job-column)
|
|
37
|
+
minmax(0, 1.4fr)
|
|
38
|
+
minmax(0, 0.8fr)
|
|
39
|
+
var(--approval-info-app-column)
|
|
40
|
+
var(--approval-info-cost-column)
|
|
41
|
+
var(--approval-info-detail-column);
|
|
42
|
+
align-items: center;
|
|
43
|
+
column-gap: 0;
|
|
44
|
+
width: 80%;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.approval-info-grid > * {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
padding-right: 20px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.approval-info-grid--no-job {
|
|
55
|
+
--approval-info-job-column: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.approval-info-grid--no-app {
|
|
59
|
+
--approval-info-app-column: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.approval-info-grid--no-cost {
|
|
63
|
+
--approval-info-cost-column: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.approval-info-grid--no-detail {
|
|
67
|
+
--approval-info-detail-column: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.approval-info-member {
|
|
71
|
+
grid-column: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.approval-info-dept {
|
|
75
|
+
grid-column: 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.approval-info-job {
|
|
79
|
+
grid-column: 3;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.approval-info-role {
|
|
83
|
+
grid-column: 4;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.approval-info-assignee {
|
|
87
|
+
grid-column: 5;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.approval-info-app {
|
|
91
|
+
grid-column: 6;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.approval-info-cost {
|
|
95
|
+
grid-column: 7;
|
|
96
|
+
justify-self: start;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.approval-info-detail {
|
|
101
|
+
grid-column: 8;
|
|
102
|
+
justify-self: start;
|
|
103
|
+
padding-right: 0;
|
|
104
|
+
white-space: nowrap;
|
|
22
105
|
}
|
|
23
106
|
|
|
24
107
|
.n20-time {
|
|
@@ -40,6 +123,10 @@
|
|
|
40
123
|
color: $--color-text-primary;
|
|
41
124
|
}
|
|
42
125
|
|
|
126
|
+
.appOrPc-item {
|
|
127
|
+
margin-right: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
43
130
|
.worker-icon {
|
|
44
131
|
margin-right: 4px;
|
|
45
132
|
color: $--color-text-placeholder;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfoCard 模块样式
|
|
3
|
+
* 信息卡片组件,支持折叠展开、装饰logo等
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.info-card + .info-card {
|
|
7
|
+
margin-top: 8px;
|
|
8
|
+
}
|
|
9
|
+
.info-card {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 12px 16px;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
|
|
20
|
+
// 右下角装饰logo - 相对于整个卡片定位
|
|
21
|
+
.corner-logo {
|
|
22
|
+
position: absolute;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
right: -16px;
|
|
25
|
+
width: 120px;
|
|
26
|
+
height: 120px;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
z-index: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.info-card-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 12px;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
position: relative;
|
|
37
|
+
width: 100%;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
|
|
41
|
+
.header-left {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 4px;
|
|
45
|
+
position: relative;
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
|
|
48
|
+
.header-logo {
|
|
49
|
+
width: 16px;
|
|
50
|
+
height: 16px;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.header-title {
|
|
56
|
+
font-family: 'PingFang SC', 'Medium', sans-serif;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
line-height: 22px;
|
|
60
|
+
color: #1d2129;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
position: relative;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.header-right {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
right: 0;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
padding: 4px;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
border-radius: 2px;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
transition: background-color 0.2s;
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
background-color: rgba(0, 122, 255, 0.06);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.collapse-text {
|
|
85
|
+
font-family: 'PingFang SC', 'Regular', sans-serif;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
line-height: 22px;
|
|
89
|
+
color: #007aff;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.collapse-arrow {
|
|
94
|
+
width: 14px;
|
|
95
|
+
height: 14px;
|
|
96
|
+
position: relative;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
transition: transform 0.3s ease;
|
|
99
|
+
|
|
100
|
+
&::before,
|
|
101
|
+
&::after {
|
|
102
|
+
content: '';
|
|
103
|
+
position: absolute;
|
|
104
|
+
width: 8px;
|
|
105
|
+
height: 2px;
|
|
106
|
+
background-color: #007aff;
|
|
107
|
+
border-radius: 1px;
|
|
108
|
+
top: 50%;
|
|
109
|
+
left: 50%;
|
|
110
|
+
transition: all 0.3s ease;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&::before {
|
|
114
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
115
|
+
margin-left: -2px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::after {
|
|
119
|
+
transform: translate(-50%, -50%) rotate(-45deg);
|
|
120
|
+
margin-left: 2px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.expanded {
|
|
124
|
+
&::before {
|
|
125
|
+
transform: translate(-50%, -50%) rotate(-45deg);
|
|
126
|
+
margin-left: -3px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&::after {
|
|
130
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
131
|
+
margin-left: 3px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.info-card-content {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-wrap: wrap;
|
|
141
|
+
align-items: flex-start;
|
|
142
|
+
position: relative;
|
|
143
|
+
width: 100%;
|
|
144
|
+
flex: 1;
|
|
145
|
+
z-index: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 折叠动画(Vue 2.6 transition 类名:无 -from/-to 后缀)
|
|
149
|
+
.collapse-enter-active,
|
|
150
|
+
.collapse-leave-active {
|
|
151
|
+
transition: all 0.3s ease;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.collapse-enter,
|
|
156
|
+
.collapse-leave-to {
|
|
157
|
+
max-height: 0;
|
|
158
|
+
opacity: 0;
|
|
159
|
+
transform: translateY(-10px);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.collapse-enter-to,
|
|
163
|
+
.collapse-leave {
|
|
164
|
+
max-height: 2000px;
|
|
165
|
+
opacity: 1;
|
|
166
|
+
transform: translateY(0);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
|
+
import axios from '../../utils/axios.js'
|
|
26
27
|
import Dialog from '../Dialog/index.vue'
|
|
27
28
|
import clUpload from '../Upload/index.vue'
|
|
28
|
-
|
|
29
|
+
|
|
29
30
|
let dayjs = undefined
|
|
30
31
|
import('../../index.js').then((res) => {
|
|
31
32
|
dayjs = res.dayjs
|
|
@@ -99,4 +100,3 @@ export default {
|
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
</script>
|
|
102
|
-
<style lang="scss" scoped></style>
|
|
@@ -24,22 +24,26 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
<div
|
|
26
26
|
v-title="item.assignee"
|
|
27
|
-
class="flex-
|
|
27
|
+
class="flex-item n20-worker m-r-s approval-info-grid"
|
|
28
|
+
:class="{
|
|
29
|
+
'approval-info-grid--no-job': !item.job,
|
|
30
|
+
'approval-info-grid--no-app':
|
|
31
|
+
item.result === 0 || item.appOrPc === null || item.appOrPc === '' || item.appOrPc === undefined,
|
|
32
|
+
'approval-info-grid--no-detail': item.showConnect !== '1'
|
|
33
|
+
}"
|
|
28
34
|
:show-overflow-tooltip="true"
|
|
29
35
|
>
|
|
30
36
|
<div
|
|
31
37
|
v-title="item.memberName"
|
|
32
38
|
:show-overflow-tooltip="true"
|
|
33
|
-
class="
|
|
34
|
-
style="width: 250px"
|
|
39
|
+
class="n20-worker text-ellipsis approval-info-member"
|
|
35
40
|
>
|
|
36
41
|
{{ item.memberName }}
|
|
37
42
|
</div>
|
|
38
43
|
<div
|
|
39
44
|
v-title="item.deptName"
|
|
40
45
|
:show-overflow-tooltip="true"
|
|
41
|
-
class="
|
|
42
|
-
style="width: 250px"
|
|
46
|
+
class="n20-worker text-ellipsis approval-info-dept"
|
|
43
47
|
>
|
|
44
48
|
{{ item.deptName }}
|
|
45
49
|
</div>
|
|
@@ -47,37 +51,39 @@
|
|
|
47
51
|
v-if="item.job"
|
|
48
52
|
v-title="item.job"
|
|
49
53
|
:show-overflow-tooltip="true"
|
|
50
|
-
class="
|
|
51
|
-
style="width: 250px"
|
|
54
|
+
class="n20-worker text-ellipsis approval-info-job"
|
|
52
55
|
>
|
|
53
56
|
{{ item.job }}
|
|
54
57
|
</div>
|
|
55
58
|
<div
|
|
56
59
|
v-title="item.roleName"
|
|
57
|
-
class="
|
|
60
|
+
class="n20-worker text-ellipsis approval-info-role"
|
|
58
61
|
:show-overflow-tooltip="true"
|
|
59
|
-
style="width: 250px"
|
|
60
62
|
>
|
|
61
63
|
{{ item.roleName }}
|
|
62
64
|
</div>
|
|
63
65
|
<div
|
|
64
66
|
v-if="item.result !== 0"
|
|
65
67
|
v-title="item.assignee"
|
|
66
|
-
class="n20-worker text-ellipsis"
|
|
67
|
-
style="width: 180px"
|
|
68
|
+
class="n20-worker text-ellipsis approval-info-assignee"
|
|
68
69
|
:show-overflow-tooltip="true"
|
|
69
70
|
>
|
|
70
71
|
<span class="worker-icon n20-icon-user"></span>{{ item.assignee }}
|
|
71
72
|
</div>
|
|
72
73
|
<div
|
|
73
74
|
v-if="item.result !== 0 && item.appOrPc !== null && item.appOrPc !== '' && item.appOrPc !== undefined"
|
|
75
|
+
class="n20-worker text-ellipsis appOrPc-item approval-info-app"
|
|
74
76
|
>
|
|
75
77
|
<span v-if="item.outTitle">{{ item.outTitle }}</span>
|
|
76
78
|
<span v-else>
|
|
77
79
|
{{ item.appOrPc === '1' ? 'PC端审批' : item.appOrPc === '2' ? '外部系统审批' : 'App端审批' | $lc }}
|
|
78
80
|
</span>
|
|
79
81
|
</div>
|
|
80
|
-
<div
|
|
82
|
+
<div class="approval-info-cost">
|
|
83
|
+
<span>审批时长:</span>
|
|
84
|
+
<span>{{ item.approvalCost }}</span>
|
|
85
|
+
</div>
|
|
86
|
+
<div v-if="item.showConnect === '1'" class="approval-info-detail">
|
|
81
87
|
<span class="pointer color-ccc f-s-s" @click="seeDetail(item)"
|
|
82
88
|
>{{ '查看详情' | $lc }} <i class="el-icon-arrow-right"></i
|
|
83
89
|
></span>
|
|
@@ -132,38 +138,48 @@
|
|
|
132
138
|
</div>
|
|
133
139
|
<div
|
|
134
140
|
v-title="row.assignee"
|
|
135
|
-
class="flex-
|
|
141
|
+
class="flex-item n20-worker m-r-s approval-info-grid"
|
|
142
|
+
:class="{
|
|
143
|
+
'approval-info-grid--no-job': !row.job,
|
|
144
|
+
'approval-info-grid--no-app': true,
|
|
145
|
+
'approval-info-grid--no-cost': true,
|
|
146
|
+
'approval-info-grid--no-detail': true
|
|
147
|
+
}"
|
|
136
148
|
:show-overflow-tooltip="true"
|
|
137
149
|
>
|
|
138
150
|
<div
|
|
139
151
|
v-title="row.memberName"
|
|
140
152
|
:show-overflow-tooltip="true"
|
|
141
|
-
class="
|
|
142
|
-
style="width: 250px"
|
|
153
|
+
class="n20-worker text-ellipsis approval-info-member"
|
|
143
154
|
>
|
|
144
155
|
{{ row.memberName }}
|
|
145
156
|
</div>
|
|
146
157
|
<div
|
|
147
158
|
v-title="row.deptName"
|
|
148
159
|
:show-overflow-tooltip="true"
|
|
149
|
-
class="
|
|
150
|
-
style="width: 250px"
|
|
160
|
+
class="n20-worker text-ellipsis approval-info-dept"
|
|
151
161
|
>
|
|
152
162
|
{{ row.deptName }}
|
|
153
163
|
</div>
|
|
164
|
+
<div
|
|
165
|
+
v-if="row.job"
|
|
166
|
+
v-title="row.job"
|
|
167
|
+
:show-overflow-tooltip="true"
|
|
168
|
+
class="n20-worker text-ellipsis approval-info-job"
|
|
169
|
+
>
|
|
170
|
+
{{ row.job }}
|
|
171
|
+
</div>
|
|
154
172
|
<div
|
|
155
173
|
v-title="row.roleName"
|
|
156
|
-
class="
|
|
174
|
+
class="n20-worker text-ellipsis approval-info-role"
|
|
157
175
|
:show-overflow-tooltip="true"
|
|
158
|
-
style="width: 250px"
|
|
159
176
|
>
|
|
160
177
|
{{ row.roleName }}
|
|
161
178
|
</div>
|
|
162
179
|
<div
|
|
163
180
|
v-if="row.result !== 0"
|
|
164
181
|
v-title="row.assignee"
|
|
165
|
-
class="n20-worker text-ellipsis"
|
|
166
|
-
style="width: 180px"
|
|
182
|
+
class="n20-worker text-ellipsis approval-info-assignee"
|
|
167
183
|
:show-overflow-tooltip="true"
|
|
168
184
|
>
|
|
169
185
|
<span class="worker-icon n20-icon-user"></span>{{ row.assignee }}
|
|
@@ -518,6 +534,7 @@ export default {
|
|
|
518
534
|
let approvalData = []
|
|
519
535
|
data?.forEach((item) => {
|
|
520
536
|
let _item = {
|
|
537
|
+
approvalCost: item.approvalCost || '--',
|
|
521
538
|
job: item.job || '',
|
|
522
539
|
isShow: item.isShow, //是否显示
|
|
523
540
|
endTime: item.endTime || '',
|
|
@@ -81,169 +81,3 @@ export default {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
</script>
|
|
84
|
-
|
|
85
|
-
<style lang="scss" scoped>
|
|
86
|
-
.info-card + .info-card {
|
|
87
|
-
margin-top: 8px;
|
|
88
|
-
}
|
|
89
|
-
.info-card {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
align-items: flex-start;
|
|
93
|
-
position: relative;
|
|
94
|
-
width: 100%;
|
|
95
|
-
height: 100%;
|
|
96
|
-
padding: 12px 16px;
|
|
97
|
-
border-radius: 4px;
|
|
98
|
-
box-sizing: border-box;
|
|
99
|
-
|
|
100
|
-
// 右下角装饰logo - 相对于整个卡片定位
|
|
101
|
-
.corner-logo {
|
|
102
|
-
position: absolute;
|
|
103
|
-
bottom: 0;
|
|
104
|
-
right: -16px;
|
|
105
|
-
width: 120px;
|
|
106
|
-
height: 120px;
|
|
107
|
-
pointer-events: none;
|
|
108
|
-
z-index: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.info-card-header {
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
gap: 12px;
|
|
115
|
-
align-items: flex-start;
|
|
116
|
-
position: relative;
|
|
117
|
-
width: 100%;
|
|
118
|
-
flex-shrink: 0;
|
|
119
|
-
z-index: 1;
|
|
120
|
-
|
|
121
|
-
.header-left {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
gap: 4px;
|
|
125
|
-
position: relative;
|
|
126
|
-
flex-shrink: 0;
|
|
127
|
-
|
|
128
|
-
.header-logo {
|
|
129
|
-
width: 16px;
|
|
130
|
-
height: 16px;
|
|
131
|
-
flex-shrink: 0;
|
|
132
|
-
position: relative;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.header-title {
|
|
136
|
-
font-family: 'PingFang SC', 'Medium', sans-serif;
|
|
137
|
-
font-size: 14px;
|
|
138
|
-
font-weight: 500;
|
|
139
|
-
line-height: 22px;
|
|
140
|
-
color: #1d2129;
|
|
141
|
-
white-space: nowrap;
|
|
142
|
-
position: relative;
|
|
143
|
-
flex-shrink: 0;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.header-right {
|
|
148
|
-
position: absolute;
|
|
149
|
-
top: 0;
|
|
150
|
-
right: 0;
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
gap: 4px;
|
|
154
|
-
padding: 4px;
|
|
155
|
-
cursor: pointer;
|
|
156
|
-
border-radius: 2px;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
transition: background-color 0.2s;
|
|
159
|
-
|
|
160
|
-
&:hover {
|
|
161
|
-
background-color: rgba(0, 122, 255, 0.06);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.collapse-text {
|
|
165
|
-
font-family: 'PingFang SC', 'Regular', sans-serif;
|
|
166
|
-
font-size: 14px;
|
|
167
|
-
font-weight: 400;
|
|
168
|
-
line-height: 22px;
|
|
169
|
-
color: #007aff;
|
|
170
|
-
white-space: nowrap;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.collapse-arrow {
|
|
174
|
-
width: 14px;
|
|
175
|
-
height: 14px;
|
|
176
|
-
position: relative;
|
|
177
|
-
flex-shrink: 0;
|
|
178
|
-
transition: transform 0.3s ease;
|
|
179
|
-
|
|
180
|
-
&::before,
|
|
181
|
-
&::after {
|
|
182
|
-
content: '';
|
|
183
|
-
position: absolute;
|
|
184
|
-
width: 8px;
|
|
185
|
-
height: 2px;
|
|
186
|
-
background-color: #007aff;
|
|
187
|
-
border-radius: 1px;
|
|
188
|
-
top: 50%;
|
|
189
|
-
left: 50%;
|
|
190
|
-
transition: all 0.3s ease;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&::before {
|
|
194
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
195
|
-
margin-left: -2px;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&::after {
|
|
199
|
-
transform: translate(-50%, -50%) rotate(-45deg);
|
|
200
|
-
margin-left: 2px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&.expanded {
|
|
204
|
-
&::before {
|
|
205
|
-
transform: translate(-50%, -50%) rotate(-45deg);
|
|
206
|
-
margin-left: -3px;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&::after {
|
|
210
|
-
transform: translate(-50%, -50%) rotate(45deg);
|
|
211
|
-
margin-left: 3px;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.info-card-content {
|
|
219
|
-
display: flex;
|
|
220
|
-
flex-wrap: wrap;
|
|
221
|
-
align-items: flex-start;
|
|
222
|
-
position: relative;
|
|
223
|
-
width: 100%;
|
|
224
|
-
flex: 1;
|
|
225
|
-
z-index: 1;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// 折叠动画(Vue 2.6 transition 类名:无 -from/-to 后缀)
|
|
229
|
-
.collapse-enter-active,
|
|
230
|
-
.collapse-leave-active {
|
|
231
|
-
transition: all 0.3s ease;
|
|
232
|
-
overflow: hidden;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.collapse-enter,
|
|
236
|
-
.collapse-leave-to {
|
|
237
|
-
max-height: 0;
|
|
238
|
-
opacity: 0;
|
|
239
|
-
transform: translateY(-10px);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.collapse-enter-to,
|
|
243
|
-
.collapse-leave {
|
|
244
|
-
max-height: 2000px;
|
|
245
|
-
opacity: 1;
|
|
246
|
-
transform: translateY(0);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</style>
|