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 22 <el-card shadow =" hover" class =" card-box" @mouseenter =" cardEnter()" @mouseleave =" cardLeave()" >
33 <div class =" card-header" >
44 <slot name =" header" >
5- <div class =" title flex align-center" >
5+ <div class =" title flex" :class = " slots.subTitle ? '' : ' align-center' " >
66 <slot name =" icon" >
77 <AppAvatar v-if =" showIcon" class =" mr-12 avatar-blue" shape =" square" :size =" 32" >
88 <img src =" @/assets/icon_document.svg" style =" width : 58% " alt =" " />
99 </AppAvatar >
1010 </slot >
11- <div >
11+ <div style = " width : 90 % " >
1212 <auto-tooltip :content =" title" style =" width : 65% ; height : 22px " >
1313 {{ title }}
1414 </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 >
2316 </div >
2417 </div >
2518 </slot >
2619 </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+ >
2825 <slot name =" description" >
2926 <div class =" content" >
3027 {{ description }}
@@ -59,7 +56,6 @@ const props = withDefaults(
5956 * 是否展示icon
6057 */
6158 showIcon? : boolean
62- username? : string
6359 }>(),
6460 { title: ' 标题' , description: ' ' , showIcon: true , border: true }
6561)
Original file line number Diff line number Diff line change 4949 >
5050 <CardBox
5151 :title =" item.name"
52- :username =" item.username"
5352 :description =" item.desc"
5453 class =" application-card cursor"
5554 @click =" router.push({ path: `/application/${item.id}/${item.type}/overview` })"
7372 class =" mr-8"
7473 />
7574 </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 >
7682 <div class =" status-tag" >
7783 <el-tag type =" warning" v-if =" isWorkFlow(item.type)" style =" height : 22px "
7884 >高级编排</el-tag
@@ -296,7 +302,7 @@ onMounted(() => {
296302 .status-tag {
297303 position : absolute ;
298304 right : 16px ;
299- top : 3 px ;
305+ top : 15 px ;
300306 }
301307}
302308.dropdown-custom-switch {
Original file line number Diff line number Diff line change 3838 <el-col :xs =" 24" :sm =" 12" :md =" 8" :lg =" 6" :xl =" 4" class =" mb-16" >
3939 <CardBox
4040 :title =" item.name"
41- :username =" item.username"
4241 :description =" item.desc"
4342 class =" cursor"
4443 @click =" router.push({ path: `/dataset/${item.id}/document` })"
5655 <img src =" @/assets/icon_document.svg" style =" width : 58% " alt =" " />
5756 </AppAvatar >
5857 </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 >
5965 <div class =" delete-button" >
6066 <el-tag class =" blue-tag" v-if =" item.type === '0'" style =" height : 22px "
6167 >通用型</el-tag
@@ -281,7 +287,7 @@ onMounted(() => {
281287 .delete-button {
282288 position : absolute ;
283289 right : 12px ;
284- top : 3 px ;
290+ top : 15 px ;
285291 height : auto ;
286292 }
287293 .footer-content {
Original file line number Diff line number Diff line change 5151 <CardBox
5252 :title =" item.name"
5353 :description =" item.desc"
54- :username =" item.username"
5554 class =" function-lib-card"
5655 @click =" openCreateDialog(item)"
5756 :class =" item.permission_type === 'PUBLIC' && !canEdit(item) ? '' : 'cursor'"
6160 <img src =" @/assets/icon_function_outlined.svg" style =" width : 58% " alt =" " />
6261 </AppAvatar >
6362 </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 >
6470 <div class =" status-button" >
6571 <el-tag
6672 class =" info-tag"
@@ -287,7 +293,7 @@ onMounted(() => {
287293 .status-button {
288294 position : absolute ;
289295 right : 12px ;
290- top : 3 px ;
296+ top : 15 px ;
291297 height : auto ;
292298 }
293299}
You can’t perform that action at this time.
0 commit comments