Commit d730c50dee7bf09be480a2e30cf864958587979e
1 parent
fd303686
修复代码警告
Showing
10 changed files
with
34 additions
and
38 deletions
yudao-ui-admin/src/components/HeaderSearch/index.vue
yudao-ui-admin/src/components/ImagePreview/index.vue
| ... | ... | @@ -64,14 +64,14 @@ export default { |
| 64 | 64 | border-radius: 5px; |
| 65 | 65 | background-color: #ebeef5; |
| 66 | 66 | box-shadow: 0 0 5px 1px #ccc; |
| 67 | - ::v-deep .el-image__inner { | |
| 67 | + :deep(.el-image__inner) { | |
| 68 | 68 | transition: all 0.3s; |
| 69 | 69 | cursor: pointer; |
| 70 | 70 | &:hover { |
| 71 | 71 | transform: scale(1.2); |
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | - ::v-deep .image-slot { | |
| 74 | + :deep(.image-slot) { | |
| 75 | 75 | display: flex; |
| 76 | 76 | justify-content: center; |
| 77 | 77 | align-items: center; | ... | ... |
yudao-ui-admin/src/components/ImageUpload/index.vue
| ... | ... | @@ -141,8 +141,7 @@ export default { |
| 141 | 141 | } |
| 142 | 142 | isImg = this.fileType.some(type => { |
| 143 | 143 | 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); | |
| 146 | 145 | }); |
| 147 | 146 | } else { |
| 148 | 147 | isImg = file.type.indexOf("image") > -1; |
| ... | ... | @@ -190,16 +189,15 @@ export default { |
| 190 | 189 | </script> |
| 191 | 190 | <style scoped lang="scss"> |
| 192 | 191 | // .el-upload--picture-card 控制加号部分 |
| 193 | -::v-deep.hide .el-upload--picture-card { | |
| 192 | +:deep(.hide .el-upload--picture-card) { | |
| 194 | 193 | display: none; |
| 195 | 194 | } |
| 196 | 195 | // 去掉动画效果 |
| 197 | -::v-deep .el-list-enter-active, | |
| 198 | -::v-deep .el-list-leave-active { | |
| 196 | +:deep(.el-list-enter-active, .el-list-leave-active) { | |
| 199 | 197 | transition: all 0s; |
| 200 | 198 | } |
| 201 | 199 | |
| 202 | -::v-deep .el-list-enter, .el-list-leave-active { | |
| 200 | +:deep(.el-list-enter, .el-list-leave-active) { | |
| 203 | 201 | opacity: 0; |
| 204 | 202 | transform: translateY(0); |
| 205 | 203 | } | ... | ... |
yudao-ui-admin/src/components/RightToolbar/index.vue
| ... | ... | @@ -75,13 +75,13 @@ export default { |
| 75 | 75 | }; |
| 76 | 76 | </script> |
| 77 | 77 | <style lang="scss" scoped> |
| 78 | -::v-deep .el-transfer__button { | |
| 78 | +:deep(.el-transfer__button) { | |
| 79 | 79 | border-radius: 50%; |
| 80 | 80 | padding: 12px; |
| 81 | 81 | display: block; |
| 82 | - margin-left: 0px; | |
| 82 | + margin-left: 0; | |
| 83 | 83 | } |
| 84 | -::v-deep .el-transfer__button:first-child { | |
| 84 | +:deep(.el-transfer__button:first-child) { | |
| 85 | 85 | margin-bottom: 10px; |
| 86 | 86 | } |
| 87 | 87 | </style> | ... | ... |
yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue
| ... | ... | @@ -346,13 +346,13 @@ export default { |
| 346 | 346 | fill-opacity: 0.2 !important; |
| 347 | 347 | } |
| 348 | 348 | |
| 349 | -/deep/.highlight-todo.djs-connection > .djs-visual > path { | |
| 349 | +:deep(.highlight-todo.djs-connection > .djs-visual > path) { | |
| 350 | 350 | stroke: #1890ff !important; |
| 351 | 351 | stroke-dasharray: 4px !important; |
| 352 | 352 | fill-opacity: 0.2 !important; |
| 353 | 353 | marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr); |
| 354 | 354 | } |
| 355 | -/deep/.highlight-todo.djs-shape .djs-visual > :nth-child(1) { | |
| 355 | +:deep(.highlight-todo.djs-shape .djs-visual > :nth-child(1)) { | |
| 356 | 356 | fill: #1890ff !important; |
| 357 | 357 | stroke: #1890ff !important; |
| 358 | 358 | stroke-dasharray: 4px !important; |
| ... | ... | @@ -381,20 +381,20 @@ export default { |
| 381 | 381 | fill: green !important; /* color elements as green */ |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | -/deep/.highlight.djs-shape .djs-visual > :nth-child(1) { | |
| 384 | +:deep(.highlight.djs-shape .djs-visual > :nth-child(1)) { | |
| 385 | 385 | fill: green !important; |
| 386 | 386 | stroke: green !important; |
| 387 | 387 | fill-opacity: 0.2 !important; |
| 388 | 388 | } |
| 389 | -/deep/.highlight.djs-shape .djs-visual > :nth-child(2) { | |
| 389 | +:deep(.highlight.djs-shape .djs-visual > :nth-child(2)) { | |
| 390 | 390 | fill: green !important; |
| 391 | 391 | } |
| 392 | -/deep/.highlight.djs-shape .djs-visual > path { | |
| 392 | +:deep(.highlight.djs-shape .djs-visual > path) { | |
| 393 | 393 | fill: green !important; |
| 394 | 394 | fill-opacity: 0.2 !important; |
| 395 | 395 | stroke: green !important; |
| 396 | 396 | } |
| 397 | -/deep/.highlight.djs-connection > .djs-visual > path { | |
| 397 | +:deep(.highlight.djs-connection > .djs-visual > path) { | |
| 398 | 398 | stroke: green !important; |
| 399 | 399 | } |
| 400 | 400 | |
| ... | ... | @@ -420,20 +420,20 @@ export default { |
| 420 | 420 | fill: red !important; /* color elements as green */ |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | -/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(1) { | |
| 423 | +:deep(.highlight-reject.djs-shape .djs-visual > :nth-child(1)) { | |
| 424 | 424 | fill: red !important; |
| 425 | 425 | stroke: red !important; |
| 426 | 426 | fill-opacity: 0.2 !important; |
| 427 | 427 | } |
| 428 | -/deep/.highlight-reject.djs-shape .djs-visual > :nth-child(2) { | |
| 428 | +:deep(.highlight-reject.djs-shape .djs-visual > :nth-child(2)) { | |
| 429 | 429 | fill: red !important; |
| 430 | 430 | } |
| 431 | -/deep/.highlight-reject.djs-shape .djs-visual > path { | |
| 431 | +:deep(.highlight-reject.djs-shape .djs-visual > path) { | |
| 432 | 432 | fill: red !important; |
| 433 | 433 | fill-opacity: 0.2 !important; |
| 434 | 434 | stroke: red !important; |
| 435 | 435 | } |
| 436 | -/deep/.highlight-reject.djs-connection > .djs-visual > path { | |
| 436 | +:deep(.highlight-reject.djs-connection > .djs-visual > path) { | |
| 437 | 437 | stroke: red !important; |
| 438 | 438 | } |
| 439 | 439 | |
| ... | ... | @@ -459,20 +459,20 @@ export default { |
| 459 | 459 | fill: grey !important; /* color elements as green */ |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | -/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(1) { | |
| 462 | +:deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(1)) { | |
| 463 | 463 | fill: grey !important; |
| 464 | 464 | stroke: grey !important; |
| 465 | 465 | fill-opacity: 0.2 !important; |
| 466 | 466 | } |
| 467 | -/deep/.highlight-cancel.djs-shape .djs-visual > :nth-child(2) { | |
| 467 | +:deep(.highlight-cancel.djs-shape .djs-visual > :nth-child(2)) { | |
| 468 | 468 | fill: grey !important; |
| 469 | 469 | } |
| 470 | -/deep/.highlight-cancel.djs-shape .djs-visual > path { | |
| 470 | +:deep(.highlight-cancel.djs-shape .djs-visual > path) { | |
| 471 | 471 | fill: grey !important; |
| 472 | 472 | fill-opacity: 0.2 !important; |
| 473 | 473 | stroke: grey !important; |
| 474 | 474 | } |
| 475 | -/deep/.highlight-cancel.djs-connection > .djs-visual > path { | |
| 475 | +:deep(.highlight-cancel.djs-connection > .djs-visual > path) { | |
| 476 | 476 | stroke: grey !important; |
| 477 | 477 | } |
| 478 | 478 | |
| ... | ... | @@ -484,4 +484,4 @@ export default { |
| 484 | 484 | color: #fafafa; |
| 485 | 485 | width: 200px; |
| 486 | 486 | } |
| 487 | -</style> | |
| 488 | 487 | \ No newline at end of file |
| 488 | +</style> | ... | ... |
yudao-ui-admin/src/layout/components/TagsView/ScrollPane.vue
| ... | ... | @@ -82,13 +82,11 @@ export default { |
| 82 | 82 | position: relative; |
| 83 | 83 | overflow: hidden; |
| 84 | 84 | width: 100%; |
| 85 | - ::v-deep { | |
| 86 | - .el-scrollbar__bar { | |
| 87 | - bottom: 0px; | |
| 85 | + :deep(.el-scrollbar__bar) { | |
| 86 | + bottom: 0; | |
| 88 | 87 | } |
| 89 | - .el-scrollbar__wrap { | |
| 88 | + :deep(.el-scrollbar__wrap) { | |
| 90 | 89 | height: 49px; |
| 91 | 90 | } |
| 92 | - } | |
| 93 | 91 | } |
| 94 | 92 | </style> | ... | ... |
yudao-ui-admin/src/views/infra/build/FormDrawer.vue
| ... | ... | @@ -84,7 +84,7 @@ import { |
| 84 | 84 | } from '@/components/generator/html' |
| 85 | 85 | import { makeUpJs } from '@/components/generator/js' |
| 86 | 86 | import { makeUpCss } from '@/components/generator/css' |
| 87 | -import { exportDefault, beautifierConf, titleCase } from '@/utils/index' | |
| 87 | +import { exportDefault, beautifierConf } from '@/utils' | |
| 88 | 88 | import ResourceDialog from './ResourceDialog' |
| 89 | 89 | import loadMonaco from '@/utils/loadMonaco' |
| 90 | 90 | import loadBeautifier from '@/utils/loadBeautifier' |
| ... | ... | @@ -325,7 +325,7 @@ export default { |
| 325 | 325 | } |
| 326 | 326 | } |
| 327 | 327 | @include action-bar; |
| 328 | -::v-deep .el-drawer__header { | |
| 328 | +:deep(.el-drawer__header) { | |
| 329 | 329 | display: none; |
| 330 | 330 | } |
| 331 | 331 | </style> | ... | ... |
yudao-ui-admin/src/views/infra/build/IconsDialog.vue
yudao-ui-admin/src/views/infra/build/JsonDrawer.vue
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | </template> |
| 26 | 26 | |
| 27 | 27 | <script> |
| 28 | -import { beautifierConf } from '@/utils/index' | |
| 28 | +import { beautifierConf } from '@/utils' | |
| 29 | 29 | import ClipboardJS from 'clipboard' |
| 30 | 30 | import { saveAs } from 'file-saver' |
| 31 | 31 | import loadMonaco from '@/utils/loadMonaco' |
| ... | ... | @@ -133,7 +133,7 @@ export default { |
| 133 | 133 | <style lang="scss" scoped> |
| 134 | 134 | @import '@/styles/mixin.scss'; |
| 135 | 135 | |
| 136 | -::v-deep .el-drawer__header { | |
| 136 | +:deep(.el-drawer__header) { | |
| 137 | 137 | display: none; |
| 138 | 138 | } |
| 139 | 139 | @include action-bar; | ... | ... |
yudao-ui-admin/src/views/infra/build/RightPanel.vue