File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
web/src/apps/workflows/view/workflow Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 35
35
/>
36
36
</div> -->
37
37
</div >
38
+ <div class =" list-container" v-if =" modeOfKey === DEVPROCESS.OPERATIONCENTER" >
39
+ <div
40
+ class =" list-item"
41
+ v-for =" item in projectsTree"
42
+ :key =" item.id"
43
+ >
44
+ <div class =" list-content" :class =" { 'list-content-active': currentTreeId == item.id }" >
45
+ <div class =" list-name" @click =" handleTreeClick(item)" >
46
+ {{ item.name }}
47
+ </div >
48
+ </div >
49
+ </div >
50
+ </div >
38
51
<Tree
52
+ v-else
39
53
class =" tree-container"
40
54
ref =" projectTree"
41
55
:nodes =" projectsTree"
@@ -1255,6 +1269,7 @@ export default {
1255
1269
</script >
1256
1270
<style lang="scss" scoped>
1257
1271
@import " @/apps/workflows/assets/styles/workflow.scss" ;
1272
+ @import " @/common/style/variables.scss" ;
1258
1273
.item-header {
1259
1274
font-size : $font-size-base ;
1260
1275
margin : 10px 25px ;
@@ -1292,4 +1307,31 @@ export default {
1292
1307
}
1293
1308
}
1294
1309
}
1310
+ .list-item {
1311
+ white-space : nowrap ;
1312
+ outline : none ;
1313
+ .list-content {
1314
+ display : flex ;
1315
+ align-items : center ;
1316
+ cursor : pointer ;
1317
+ padding : 0 10px ;
1318
+ @include font-color ($light-text-color , $dark-text-color );
1319
+ & :hover {
1320
+ @include bg-color (#edf1f6 , $dark-active-menu-item );
1321
+ }
1322
+ & -active {
1323
+ @include bg-color (#edf1f6 , $dark-active-menu-item );
1324
+ @include font-color ($primary-color , $dark-primary-color );
1325
+ }
1326
+ .list-name {
1327
+ display : block ;
1328
+ flex : 1 ;
1329
+ line-height : 32px ;
1330
+ padding : 0 6px ;
1331
+ white-space : nowrap ;
1332
+ text-overflow : ellipsis ;
1333
+ overflow : hidden ;
1334
+ }
1335
+ }
1336
+ }
1295
1337
</style >
You can’t perform that action at this time.
0 commit comments