File tree Expand file tree Collapse file tree 6 files changed +40
-80
lines changed Expand file tree Collapse file tree 6 files changed +40
-80
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
</div >
7
7
<div class =" void-page-left-main" >
8
8
<div class =" void-page-left-main-img" >
9
- <img src = " ../../../assets/img/void_page.png " alt = " 空页面 " />
9
+ <SvgIcon icon-class = " empty " width = " 200px " height = " 200px " />
10
10
</div >
11
11
<div class =" void-page-left-main-tip" >
12
12
<span >无打开的工作流,可点击下方按钮添加</span >
@@ -99,7 +99,6 @@ export default {
99
99
min-width : 240px ;
100
100
margin-right : 106px ;
101
101
& -title {
102
- margin-bottom : 40px ;
103
102
height : 33px ;
104
103
line-height : 33px ;
105
104
text-align : left ;
@@ -113,7 +112,7 @@ export default {
113
112
& -main {
114
113
& -img {
115
114
text-align : left ;
116
- height : 130 px ;
115
+ @include font-color ( #ebebeb , #3f434c ) ;
117
116
}
118
117
& -tip {
119
118
font-family : PingFangSC- Regular;
@@ -124,7 +123,7 @@ export default {
124
123
line-height : 28px ;
125
124
height : 28px ;
126
125
font-weight : 400 ;
127
- margin : 16px 0 px ;
126
+ margin-bottom : 16px ;
128
127
@include font-color ($light-text-color , $dark-text-color );
129
128
}
130
129
& -button {
Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ export default {
37
37
verticalAlign: {
38
38
type: String ,
39
39
default: ' '
40
+ },
41
+ width: {
42
+ type: String ,
43
+ default: ' '
44
+ },
45
+ height: {
46
+ type: String ,
47
+ default: ' '
40
48
}
41
49
},
42
50
computed: {
@@ -70,8 +78,17 @@ export default {
70
78
}
71
79
},
72
80
svgVerticalAlign () {
73
- return {
74
- ' vertical-align' : this .verticalAlign
81
+ if (this .width && this .height ) {
82
+ // 某些特殊svg需要定制宽高
83
+ return {
84
+ ' vertical-align' : this .verticalAlign ,
85
+ ' width' : this .width ,
86
+ ' height' : this .height
87
+ }
88
+ } else {
89
+ return {
90
+ ' vertical-align' : this .verticalAlign
91
+ }
75
92
}
76
93
}
77
94
}
You can’t perform that action at this time.
0 commit comments