File tree Expand file tree Collapse file tree 4 files changed +32
-18
lines changed Expand file tree Collapse file tree 4 files changed +32
-18
lines changed Original file line number Diff line number Diff line change 2
2
<el-card shadow =" hover" class =" card-box" @mouseenter =" cardEnter()" @mouseleave =" cardLeave()" >
3
3
<div class =" card-header" >
4
4
<slot name =" header" >
5
- <div class =" title flex align-center" >
5
+ <div class =" title flex" :class = " slots.subTitle ? '' : ' align-center' " >
6
6
<slot name =" icon" >
7
7
<AppAvatar v-if =" showIcon" class =" mr-12 avatar-blue" shape =" square" :size =" 32" >
8
8
<img src =" @/assets/icon_document.svg" style =" width : 58% " alt =" " />
9
9
</AppAvatar >
10
10
</slot >
11
- <div >
11
+ <div style = " width : 90 % " >
12
12
<auto-tooltip :content =" title" style =" width : 65% ; height : 22px " >
13
13
{{ title }}
14
14
</auto-tooltip >
15
- <span class =" lighter mr-8" >
16
- <auto-tooltip
17
- :content =" username"
18
- style =" display : inline-block ; width : 100% ; font-size : 12px ; height : 20px "
19
- >
20
- 创建人: {{ username }}
21
- </auto-tooltip ></span
22
- >
15
+ <slot name =" subTitle" > </slot >
23
16
</div >
24
17
</div >
25
18
</slot >
26
19
</div >
27
- <div class =" description break-all mt-12" v-if =" $slots.description || description" >
20
+ <div
21
+ class =" description break-all"
22
+ :class =" slots.subTitle ? 'mt-24' : 'mt-12'"
23
+ v-if =" $slots.description || description"
24
+ >
28
25
<slot name =" description" >
29
26
<div class =" content" >
30
27
{{ description }}
@@ -59,7 +56,6 @@ const props = withDefaults(
59
56
* 是否展示icon
60
57
*/
61
58
showIcon? : boolean
62
- username? : string
63
59
}>(),
64
60
{ title: ' 标题' , description: ' ' , showIcon: true , border: true }
65
61
)
Original file line number Diff line number Diff line change 49
49
>
50
50
<CardBox
51
51
:title =" item.name"
52
- :username =" item.username"
53
52
:description =" item.desc"
54
53
class =" application-card cursor"
55
54
@click =" router.push({ path: `/application/${item.id}/${item.type}/overview` })"
73
72
class =" mr-8"
74
73
/>
75
74
</template >
75
+ <template #subTitle >
76
+ <el-text class =" lighter mr-8" size =" small" >
77
+ <auto-tooltip :content =" item.username" >
78
+ 创建人: {{ item.username }}
79
+ </auto-tooltip >
80
+ </el-text >
81
+ </template >
76
82
<div class =" status-tag" >
77
83
<el-tag type =" warning" v-if =" isWorkFlow(item.type)" style =" height : 22px "
78
84
>高级编排</el-tag
@@ -296,7 +302,7 @@ onMounted(() => {
296
302
.status-tag {
297
303
position : absolute ;
298
304
right : 16px ;
299
- top : 3 px ;
305
+ top : 15 px ;
300
306
}
301
307
}
302
308
.dropdown-custom-switch {
Original file line number Diff line number Diff line change 38
38
<el-col :xs =" 24" :sm =" 12" :md =" 8" :lg =" 6" :xl =" 4" class =" mb-16" >
39
39
<CardBox
40
40
:title =" item.name"
41
- :username =" item.username"
42
41
:description =" item.desc"
43
42
class =" cursor"
44
43
@click =" router.push({ path: `/dataset/${item.id}/document` })"
56
55
<img src =" @/assets/icon_document.svg" style =" width : 58% " alt =" " />
57
56
</AppAvatar >
58
57
</template >
58
+ <template #subTitle >
59
+ <el-text class =" lighter mr-8" size =" small" >
60
+ <auto-tooltip :content =" item.username" >
61
+ 创建人: {{ item.username }}
62
+ </auto-tooltip >
63
+ </el-text >
64
+ </template >
59
65
<div class =" delete-button" >
60
66
<el-tag class =" blue-tag" v-if =" item.type === '0'" style =" height : 22px "
61
67
>通用型</el-tag
@@ -281,7 +287,7 @@ onMounted(() => {
281
287
.delete-button {
282
288
position : absolute ;
283
289
right : 12px ;
284
- top : 3 px ;
290
+ top : 15 px ;
285
291
height : auto ;
286
292
}
287
293
.footer-content {
Original file line number Diff line number Diff line change 51
51
<CardBox
52
52
:title =" item.name"
53
53
:description =" item.desc"
54
- :username =" item.username"
55
54
class =" function-lib-card"
56
55
@click =" openCreateDialog(item)"
57
56
:class =" item.permission_type === 'PUBLIC' && !canEdit(item) ? '' : 'cursor'"
61
60
<img src =" @/assets/icon_function_outlined.svg" style =" width : 58% " alt =" " />
62
61
</AppAvatar >
63
62
</template >
63
+ <template #subTitle >
64
+ <el-text class =" lighter mr-8" size =" small" >
65
+ <auto-tooltip :content =" item.username" >
66
+ 创建人: {{ item.username }}
67
+ </auto-tooltip >
68
+ </el-text >
69
+ </template >
64
70
<div class =" status-button" >
65
71
<el-tag
66
72
class =" info-tag"
@@ -287,7 +293,7 @@ onMounted(() => {
287
293
.status-button {
288
294
position : absolute ;
289
295
right : 12px ;
290
- top : 3 px ;
296
+ top : 15 px ;
291
297
height : auto ;
292
298
}
293
299
}
You can’t perform that action at this time.
0 commit comments