Skip to content

Commit ef6f858

Browse files
committed
修复代码警告
1 parent b097625 commit ef6f858

File tree

10 files changed

+34
-38
lines changed

10 files changed

+34
-38
lines changed

src/components/HeaderSearch/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default {
167167
display: inline-block;
168168
vertical-align: middle;
169169
170-
::v-deep .el-input__inner {
170+
:deep(.el-input__inner) {
171171
border-radius: 0;
172172
border: 0;
173173
padding-left: 0;

src/components/ImagePreview/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ export default {
6464
border-radius: 5px;
6565
background-color: #ebeef5;
6666
box-shadow: 0 0 5px 1px #ccc;
67-
::v-deep .el-image__inner {
67+
:deep(.el-image__inner) {
6868
transition: all 0.3s;
6969
cursor: pointer;
7070
&:hover {
7171
transform: scale(1.2);
7272
}
7373
}
74-
::v-deep .image-slot {
74+
:deep(.image-slot) {
7575
display: flex;
7676
justify-content: center;
7777
align-items: center;

src/components/ImageUpload/index.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ export default {
141141
}
142142
isImg = this.fileType.some(type => {
143143
if (file.type.indexOf(type) > -1) return true;
144-
if (fileExtension && fileExtension.indexOf(type) > -1) return true;
145-
return false;
144+
return !!(fileExtension && fileExtension.indexOf(type) > -1);
146145
});
147146
} else {
148147
isImg = file.type.indexOf("image") > -1;
@@ -190,16 +189,15 @@ export default {
190189
</script>
191190
<style scoped lang="scss">
192191
// .el-upload--picture-card 控制加号部分
193-
::v-deep.hide .el-upload--picture-card {
192+
:deep(.hide .el-upload--picture-card) {
194193
display: none;
195194
}
196195
// 去掉动画效果
197-
::v-deep .el-list-enter-active,
198-
::v-deep .el-list-leave-active {
196+
:deep(.el-list-enter-active, .el-list-leave-active) {
199197
transition: all 0s;
200198
}
201199
202-
::v-deep .el-list-enter, .el-list-leave-active {
200+
:deep(.el-list-enter, .el-list-leave-active) {
203201
opacity: 0;
204202
transform: translateY(0);
205203
}

src/components/RightToolbar/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ export default {
7575
};
7676
</script>
7777
<style lang="scss" scoped>
78-
::v-deep .el-transfer__button {
78+
:deep(.el-transfer__button) {
7979
border-radius: 50%;
8080
padding: 12px;
8181
display: block;
82-
margin-left: 0px;
82+
margin-left: 0;
8383
}
84-
::v-deep .el-transfer__button:first-child {
84+
:deep(.el-transfer__button:first-child) {
8585
margin-bottom: 10px;
8686
}
8787
</style>

src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,13 @@ export default {
346346
fill-opacity: 0.2 !important;
347347
}
348348
349-
/deep/.highlight-todo.djs-connection > .djs-visual > path {
349+
:deep(.highlight-todo.djs-connection > .djs-visual > path) {
350350
stroke: #1890ff !important;
351351
stroke-dasharray: 4px !important;
352352
fill-opacity: 0.2 !important;
353353
marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr);
354354
}
355-
/deep/.highlight-todo.djs-shape .djs-visual > :nth-child(1) {
355+
:deep(.highlight-todo.djs-shape .djs-visual > :nth-child(1)) {
356356
fill: #1890ff !important;
357357
stroke: #1890ff !important;
358358
stroke-dasharray: 4px !important;
@@ -381,20 +381,20 @@ export default {
381381
fill: green !important; /* color elements as green */
382382
}
383383
384-
/deep/.highlight.djs-shape .djs-visual > :nth-child(1) {
384+
:deep(.highlight.djs-shape .djs-visual > :nth-child(1)) {
385385
fill: green !important;
386386
stroke: green !important;
387387
fill-opacity: 0.2 !important;
388388
}
389-
/deep/.highlight.djs-shape .djs-visual > :nth-child(2) {
389+
:deep(.highlight.djs-shape .djs-visual > :nth-child(2)) {
390390
fill: green !important;
391391
}
392-
/deep/.highlight.djs-shape .djs-visual > path {
392+
:deep(.highlight.djs-shape .djs-visual > path) {
393393
fill: green !important;
394394
fill-opacity: 0.2 !important;
395395
stroke: green !important;
396396
}
397-
/deep/.highlight.djs-connection > .djs-visual > path {
397+
:deep(.highlight.djs-connection > .djs-visual > path) {
398398
stroke: green !important;
399399
}
400400
@@ -420,20 +420,20 @@ export default {
420420
fill: red !important; /* color elements as green */
421421
}
422422
423-
/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(1) {
423+
:deep(.highlight-reject.djs-shape .djs-visual > :nth-child(1)) {
424424
fill: red !important;
425425
stroke: red !important;
426426
fill-opacity: 0.2 !important;
427427
}
428-
/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(2) {
428+
:deep(.highlight-reject.djs-shape .djs-visual > :nth-child(2)) {
429429
fill: red !important;
430430
}
431-
/deep/.highlight-reject.djs-shape .djs-visual > path {
431+
:deep(.highlight-reject.djs-shape .djs-visual > path) {
432432
fill: red !important;
433433
fill-opacity: 0.2 !important;
434434
stroke: red !important;
435435
}
436-
/deep/.highlight-reject.djs-connection > .djs-visual > path {
436+
:deep(.highlight-reject.djs-connection > .djs-visual > path) {
437437
stroke: red !important;
438438
}
439439
@@ -459,20 +459,20 @@ export default {
459459
fill: grey !important; /* color elements as green */
460460
}
461461
462-
/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(1) {
462+
:deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(1)) {
463463
fill: grey !important;
464464
stroke: grey !important;
465465
fill-opacity: 0.2 !important;
466466
}
467-
/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(2) {
467+
:deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(2)) {
468468
fill: grey !important;
469469
}
470-
/deep/.highlight-cancel.djs-shape .djs-visual > path {
470+
:deep(.highlight-cancel.djs-shape .djs-visual > path) {
471471
fill: grey !important;
472472
fill-opacity: 0.2 !important;
473473
stroke: grey !important;
474474
}
475-
/deep/.highlight-cancel.djs-connection > .djs-visual > path {
475+
:deep(.highlight-cancel.djs-connection > .djs-visual > path) {
476476
stroke: grey !important;
477477
}
478478
@@ -484,4 +484,4 @@ export default {
484484
color: #fafafa;
485485
width: 200px;
486486
}
487-
</style>
487+
</style>

src/layout/components/TagsView/ScrollPane.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ export default {
8282
position: relative;
8383
overflow: hidden;
8484
width: 100%;
85-
::v-deep {
86-
.el-scrollbar__bar {
87-
bottom: 0px;
85+
:deep(.el-scrollbar__bar) {
86+
bottom: 0;
8887
}
89-
.el-scrollbar__wrap {
88+
:deep(.el-scrollbar__wrap) {
9089
height: 49px;
9190
}
92-
}
9391
}
9492
</style>

src/views/infra/build/FormDrawer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import {
8484
} from '@/components/generator/html'
8585
import { makeUpJs } from '@/components/generator/js'
8686
import { makeUpCss } from '@/components/generator/css'
87-
import { exportDefault, beautifierConf, titleCase } from '@/utils/index'
87+
import { exportDefault, beautifierConf } from '@/utils'
8888
import ResourceDialog from './ResourceDialog'
8989
import loadMonaco from '@/utils/loadMonaco'
9090
import loadBeautifier from '@/utils/loadBeautifier'
@@ -325,7 +325,7 @@ export default {
325325
}
326326
}
327327
@include action-bar;
328-
::v-deep .el-drawer__header {
328+
:deep(.el-drawer__header) {
329329
display: none;
330330
}
331331
</style>

src/views/infra/build/IconsDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default {
101101
}
102102
}
103103
.icon-dialog {
104-
::v-deep .el-dialog {
104+
:deep(.el-dialog) {
105105
border-radius: 8px;
106106
margin-bottom: 0;
107107
margin-top: 4vh !important;

src/views/infra/build/JsonDrawer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</template>
2626

2727
<script>
28-
import { beautifierConf } from '@/utils/index'
28+
import { beautifierConf } from '@/utils'
2929
import ClipboardJS from 'clipboard'
3030
import { saveAs } from 'file-saver'
3131
import loadMonaco from '@/utils/loadMonaco'
@@ -133,7 +133,7 @@ export default {
133133
<style lang="scss" scoped>
134134
@import '@/styles/mixin.scss';
135135
136-
::v-deep .el-drawer__header {
136+
:deep(.el-drawer__header) {
137137
display: none;
138138
}
139139
@include action-bar;

src/views/infra/build/RightPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ export default {
10211021
.el-date-editor {
10221022
width: 227px;
10231023
}
1024-
::v-deep .el-icon-time {
1024+
:deep(.el-icon-time) {
10251025
display: none;
10261026
}
10271027
}

0 commit comments

Comments
 (0)