修复代码警告

pull/2/head
xingyu4j 2022-11-08 12:26:06 +08:00
parent fd30368628
commit d730c50dee
10 changed files with 34 additions and 38 deletions

View File

@ -167,7 +167,7 @@ export default {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
::v-deep .el-input__inner { :deep(.el-input__inner) {
border-radius: 0; border-radius: 0;
border: 0; border: 0;
padding-left: 0; padding-left: 0;

View File

@ -64,14 +64,14 @@ export default {
border-radius: 5px; border-radius: 5px;
background-color: #ebeef5; background-color: #ebeef5;
box-shadow: 0 0 5px 1px #ccc; box-shadow: 0 0 5px 1px #ccc;
::v-deep .el-image__inner { :deep(.el-image__inner) {
transition: all 0.3s; transition: all 0.3s;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
transform: scale(1.2); transform: scale(1.2);
} }
} }
::v-deep .image-slot { :deep(.image-slot) {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View File

@ -141,8 +141,7 @@ export default {
} }
isImg = this.fileType.some(type => { isImg = this.fileType.some(type => {
if (file.type.indexOf(type) > -1) return true; if (file.type.indexOf(type) > -1) return true;
if (fileExtension && fileExtension.indexOf(type) > -1) return true; return !!(fileExtension && fileExtension.indexOf(type) > -1);
return false;
}); });
} else { } else {
isImg = file.type.indexOf("image") > -1; isImg = file.type.indexOf("image") > -1;
@ -190,16 +189,15 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
// .el-upload--picture-card // .el-upload--picture-card
::v-deep.hide .el-upload--picture-card { :deep(.hide .el-upload--picture-card) {
display: none; display: none;
} }
// //
::v-deep .el-list-enter-active, :deep(.el-list-enter-active, .el-list-leave-active) {
::v-deep .el-list-leave-active {
transition: all 0s; transition: all 0s;
} }
::v-deep .el-list-enter, .el-list-leave-active { :deep(.el-list-enter, .el-list-leave-active) {
opacity: 0; opacity: 0;
transform: translateY(0); transform: translateY(0);
} }

View File

@ -75,13 +75,13 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-transfer__button { :deep(.el-transfer__button) {
border-radius: 50%; border-radius: 50%;
padding: 12px; padding: 12px;
display: block; display: block;
margin-left: 0px; margin-left: 0;
} }
::v-deep .el-transfer__button:first-child { :deep(.el-transfer__button:first-child) {
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>

View File

@ -346,13 +346,13 @@ export default {
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
} }
/deep/.highlight-todo.djs-connection > .djs-visual > path { :deep(.highlight-todo.djs-connection > .djs-visual > path) {
stroke: #1890ff !important; stroke: #1890ff !important;
stroke-dasharray: 4px !important; stroke-dasharray: 4px !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr); marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr);
} }
/deep/.highlight-todo.djs-shape .djs-visual > :nth-child(1) { :deep(.highlight-todo.djs-shape .djs-visual > :nth-child(1)) {
fill: #1890ff !important; fill: #1890ff !important;
stroke: #1890ff !important; stroke: #1890ff !important;
stroke-dasharray: 4px !important; stroke-dasharray: 4px !important;
@ -381,20 +381,20 @@ export default {
fill: green !important; /* color elements as green */ fill: green !important; /* color elements as green */
} }
/deep/.highlight.djs-shape .djs-visual > :nth-child(1) { :deep(.highlight.djs-shape .djs-visual > :nth-child(1)) {
fill: green !important; fill: green !important;
stroke: green !important; stroke: green !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
} }
/deep/.highlight.djs-shape .djs-visual > :nth-child(2) { :deep(.highlight.djs-shape .djs-visual > :nth-child(2)) {
fill: green !important; fill: green !important;
} }
/deep/.highlight.djs-shape .djs-visual > path { :deep(.highlight.djs-shape .djs-visual > path) {
fill: green !important; fill: green !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
stroke: green !important; stroke: green !important;
} }
/deep/.highlight.djs-connection > .djs-visual > path { :deep(.highlight.djs-connection > .djs-visual > path) {
stroke: green !important; stroke: green !important;
} }
@ -420,20 +420,20 @@ export default {
fill: red !important; /* color elements as green */ fill: red !important; /* color elements as green */
} }
/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(1) { :deep(.highlight-reject.djs-shape .djs-visual > :nth-child(1)) {
fill: red !important; fill: red !important;
stroke: red !important; stroke: red !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
} }
/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(2) { :deep(.highlight-reject.djs-shape .djs-visual > :nth-child(2)) {
fill: red !important; fill: red !important;
} }
/deep/.highlight-reject.djs-shape .djs-visual > path { :deep(.highlight-reject.djs-shape .djs-visual > path) {
fill: red !important; fill: red !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
stroke: red !important; stroke: red !important;
} }
/deep/.highlight-reject.djs-connection > .djs-visual > path { :deep(.highlight-reject.djs-connection > .djs-visual > path) {
stroke: red !important; stroke: red !important;
} }
@ -459,20 +459,20 @@ export default {
fill: grey !important; /* color elements as green */ fill: grey !important; /* color elements as green */
} }
/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(1) { :deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(1)) {
fill: grey !important; fill: grey !important;
stroke: grey !important; stroke: grey !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
} }
/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(2) { :deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(2)) {
fill: grey !important; fill: grey !important;
} }
/deep/.highlight-cancel.djs-shape .djs-visual > path { :deep(.highlight-cancel.djs-shape .djs-visual > path) {
fill: grey !important; fill: grey !important;
fill-opacity: 0.2 !important; fill-opacity: 0.2 !important;
stroke: grey !important; stroke: grey !important;
} }
/deep/.highlight-cancel.djs-connection > .djs-visual > path { :deep(.highlight-cancel.djs-connection > .djs-visual > path) {
stroke: grey !important; stroke: grey !important;
} }

View File

@ -82,13 +82,11 @@ export default {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
::v-deep { :deep(.el-scrollbar__bar) {
.el-scrollbar__bar { bottom: 0;
bottom: 0px;
} }
.el-scrollbar__wrap { :deep(.el-scrollbar__wrap) {
height: 49px; height: 49px;
} }
} }
}
</style> </style>

View File

@ -84,7 +84,7 @@ import {
} from '@/components/generator/html' } from '@/components/generator/html'
import { makeUpJs } from '@/components/generator/js' import { makeUpJs } from '@/components/generator/js'
import { makeUpCss } from '@/components/generator/css' import { makeUpCss } from '@/components/generator/css'
import { exportDefault, beautifierConf, titleCase } from '@/utils/index' import { exportDefault, beautifierConf } from '@/utils'
import ResourceDialog from './ResourceDialog' import ResourceDialog from './ResourceDialog'
import loadMonaco from '@/utils/loadMonaco' import loadMonaco from '@/utils/loadMonaco'
import loadBeautifier from '@/utils/loadBeautifier' import loadBeautifier from '@/utils/loadBeautifier'
@ -325,7 +325,7 @@ export default {
} }
} }
@include action-bar; @include action-bar;
::v-deep .el-drawer__header { :deep(.el-drawer__header) {
display: none; display: none;
} }
</style> </style>

View File

@ -101,7 +101,7 @@ export default {
} }
} }
.icon-dialog { .icon-dialog {
::v-deep .el-dialog { :deep(.el-dialog) {
border-radius: 8px; border-radius: 8px;
margin-bottom: 0; margin-bottom: 0;
margin-top: 4vh !important; margin-top: 4vh !important;

View File

@ -25,7 +25,7 @@
</template> </template>
<script> <script>
import { beautifierConf } from '@/utils/index' import { beautifierConf } from '@/utils'
import ClipboardJS from 'clipboard' import ClipboardJS from 'clipboard'
import { saveAs } from 'file-saver' import { saveAs } from 'file-saver'
import loadMonaco from '@/utils/loadMonaco' import loadMonaco from '@/utils/loadMonaco'
@ -133,7 +133,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/mixin.scss'; @import '@/styles/mixin.scss';
::v-deep .el-drawer__header { :deep(.el-drawer__header) {
display: none; display: none;
} }
@include action-bar; @include action-bar;

View File

@ -1021,7 +1021,7 @@ export default {
.el-date-editor { .el-date-editor {
width: 227px; width: 227px;
} }
::v-deep .el-icon-time { :deep(.el-icon-time) {
display: none; display: none;
} }
} }