Skip to content

Commit c6d37b0

Browse files
committed
整理开发中心和知识库noData图片dark问题
1 parent bd5285b commit c6d37b0

File tree

6 files changed

+40
-80
lines changed

6 files changed

+40
-80
lines changed
-9.81 KB
Binary file not shown.

web/src/apps/workflows/module/common/voidPage/index.vue

Lines changed: 0 additions & 69 deletions
This file was deleted.

web/src/apps/workflows/module/common/voidPage/void.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77
<div class="void-page-left-main">
88
<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" />
1010
</div>
1111
<div class="void-page-left-main-tip">
1212
<span>无打开的工作流,可点击下方按钮添加</span>
@@ -99,7 +99,6 @@ export default {
9999
min-width: 240px;
100100
margin-right: 106px;
101101
&-title {
102-
margin-bottom: 40px;
103102
height: 33px;
104103
line-height: 33px;
105104
text-align: left;
@@ -113,7 +112,7 @@ export default {
113112
&-main {
114113
&-img {
115114
text-align: left;
116-
height: 130px;
115+
@include font-color(#ebebeb, #3f434c);
117116
}
118117
&-tip {
119118
font-family: PingFangSC-Regular;
@@ -124,7 +123,7 @@ export default {
124123
line-height: 28px;
125124
height: 28px;
126125
font-weight: 400;
127-
margin: 16px 0px;
126+
margin-bottom: 16px;
128127
@include font-color($light-text-color, $dark-text-color);
129128
}
130129
&-button {

web/src/components/svgIcon/index.vue

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ export default {
3737
verticalAlign: {
3838
type: String,
3939
default: ''
40+
},
41+
width: {
42+
type: String,
43+
default: ''
44+
},
45+
height: {
46+
type: String,
47+
default: ''
4048
}
4149
},
4250
computed: {
@@ -70,8 +78,17 @@ export default {
7078
}
7179
},
7280
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+
}
7592
}
7693
}
7794
}

0 commit comments

Comments
 (0)