Commit d730c50dee7bf09be480a2e30cf864958587979e
1 parent
fd303686
修复代码警告
Showing
10 changed files
with
34 additions
and
38 deletions
yudao-ui-admin/src/components/HeaderSearch/index.vue
| @@ -167,7 +167,7 @@ export default { | @@ -167,7 +167,7 @@ export default { | ||
| 167 | display: inline-block; | 167 | display: inline-block; |
| 168 | vertical-align: middle; | 168 | vertical-align: middle; |
| 169 | 169 | ||
| 170 | - ::v-deep .el-input__inner { | 170 | + :deep(.el-input__inner) { |
| 171 | border-radius: 0; | 171 | border-radius: 0; |
| 172 | border: 0; | 172 | border: 0; |
| 173 | padding-left: 0; | 173 | padding-left: 0; |
yudao-ui-admin/src/components/ImagePreview/index.vue
| @@ -64,14 +64,14 @@ export default { | @@ -64,14 +64,14 @@ export default { | ||
| 64 | border-radius: 5px; | 64 | border-radius: 5px; |
| 65 | background-color: #ebeef5; | 65 | background-color: #ebeef5; |
| 66 | box-shadow: 0 0 5px 1px #ccc; | 66 | box-shadow: 0 0 5px 1px #ccc; |
| 67 | - ::v-deep .el-image__inner { | 67 | + :deep(.el-image__inner) { |
| 68 | transition: all 0.3s; | 68 | transition: all 0.3s; |
| 69 | cursor: pointer; | 69 | cursor: pointer; |
| 70 | &:hover { | 70 | &:hover { |
| 71 | transform: scale(1.2); | 71 | transform: scale(1.2); |
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | - ::v-deep .image-slot { | 74 | + :deep(.image-slot) { |
| 75 | display: flex; | 75 | display: flex; |
| 76 | justify-content: center; | 76 | justify-content: center; |
| 77 | align-items: center; | 77 | align-items: center; |
yudao-ui-admin/src/components/ImageUpload/index.vue
| @@ -141,8 +141,7 @@ export default { | @@ -141,8 +141,7 @@ export default { | ||
| 141 | } | 141 | } |
| 142 | isImg = this.fileType.some(type => { | 142 | isImg = this.fileType.some(type => { |
| 143 | if (file.type.indexOf(type) > -1) return true; | 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 | } else { | 146 | } else { |
| 148 | isImg = file.type.indexOf("image") > -1; | 147 | isImg = file.type.indexOf("image") > -1; |
| @@ -190,16 +189,15 @@ export default { | @@ -190,16 +189,15 @@ export default { | ||
| 190 | </script> | 189 | </script> |
| 191 | <style scoped lang="scss"> | 190 | <style scoped lang="scss"> |
| 192 | // .el-upload--picture-card 控制加号部分 | 191 | // .el-upload--picture-card 控制加号部分 |
| 193 | -::v-deep.hide .el-upload--picture-card { | 192 | +:deep(.hide .el-upload--picture-card) { |
| 194 | display: none; | 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 | transition: all 0s; | 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 | opacity: 0; | 201 | opacity: 0; |
| 204 | transform: translateY(0); | 202 | transform: translateY(0); |
| 205 | } | 203 | } |
yudao-ui-admin/src/components/RightToolbar/index.vue
| @@ -75,13 +75,13 @@ export default { | @@ -75,13 +75,13 @@ export default { | ||
| 75 | }; | 75 | }; |
| 76 | </script> | 76 | </script> |
| 77 | <style lang="scss" scoped> | 77 | <style lang="scss" scoped> |
| 78 | -::v-deep .el-transfer__button { | 78 | +:deep(.el-transfer__button) { |
| 79 | border-radius: 50%; | 79 | border-radius: 50%; |
| 80 | padding: 12px; | 80 | padding: 12px; |
| 81 | display: block; | 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 | margin-bottom: 10px; | 85 | margin-bottom: 10px; |
| 86 | } | 86 | } |
| 87 | </style> | 87 | </style> |
yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue
| @@ -346,13 +346,13 @@ export default { | @@ -346,13 +346,13 @@ export default { | ||
| 346 | fill-opacity: 0.2 !important; | 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 | stroke: #1890ff !important; | 350 | stroke: #1890ff !important; |
| 351 | stroke-dasharray: 4px !important; | 351 | stroke-dasharray: 4px !important; |
| 352 | fill-opacity: 0.2 !important; | 352 | fill-opacity: 0.2 !important; |
| 353 | marker-end: url(#sequenceflow-end-_E7DFDF-_E7DFDF-803g1kf6zwzmcig1y2ulm5egr); | 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 | fill: #1890ff !important; | 356 | fill: #1890ff !important; |
| 357 | stroke: #1890ff !important; | 357 | stroke: #1890ff !important; |
| 358 | stroke-dasharray: 4px !important; | 358 | stroke-dasharray: 4px !important; |
| @@ -381,20 +381,20 @@ export default { | @@ -381,20 +381,20 @@ export default { | ||
| 381 | fill: green !important; /* color elements as green */ | 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 | fill: green !important; | 385 | fill: green !important; |
| 386 | stroke: green !important; | 386 | stroke: green !important; |
| 387 | fill-opacity: 0.2 !important; | 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 | fill: green !important; | 390 | fill: green !important; |
| 391 | } | 391 | } |
| 392 | -/deep/.highlight.djs-shape .djs-visual > path { | 392 | +:deep(.highlight.djs-shape .djs-visual > path) { |
| 393 | fill: green !important; | 393 | fill: green !important; |
| 394 | fill-opacity: 0.2 !important; | 394 | fill-opacity: 0.2 !important; |
| 395 | stroke: green !important; | 395 | stroke: green !important; |
| 396 | } | 396 | } |
| 397 | -/deep/.highlight.djs-connection > .djs-visual > path { | 397 | +:deep(.highlight.djs-connection > .djs-visual > path) { |
| 398 | stroke: green !important; | 398 | stroke: green !important; |
| 399 | } | 399 | } |
| 400 | 400 | ||
| @@ -420,20 +420,20 @@ export default { | @@ -420,20 +420,20 @@ export default { | ||
| 420 | fill: red !important; /* color elements as green */ | 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 | fill: red !important; | 424 | fill: red !important; |
| 425 | stroke: red !important; | 425 | stroke: red !important; |
| 426 | fill-opacity: 0.2 !important; | 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 | fill: red !important; | 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 | fill: red !important; | 432 | fill: red !important; |
| 433 | fill-opacity: 0.2 !important; | 433 | fill-opacity: 0.2 !important; |
| 434 | stroke: red !important; | 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 | stroke: red !important; | 437 | stroke: red !important; |
| 438 | } | 438 | } |
| 439 | 439 | ||
| @@ -459,20 +459,20 @@ export default { | @@ -459,20 +459,20 @@ export default { | ||
| 459 | fill: grey !important; /* color elements as green */ | 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 | fill: grey !important; | 463 | fill: grey !important; |
| 464 | stroke: grey !important; | 464 | stroke: grey !important; |
| 465 | fill-opacity: 0.2 !important; | 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 | fill: grey !important; | 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 | fill: grey !important; | 471 | fill: grey !important; |
| 472 | fill-opacity: 0.2 !important; | 472 | fill-opacity: 0.2 !important; |
| 473 | stroke: grey !important; | 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 | stroke: grey !important; | 476 | stroke: grey !important; |
| 477 | } | 477 | } |
| 478 | 478 | ||
| @@ -484,4 +484,4 @@ export default { | @@ -484,4 +484,4 @@ export default { | ||
| 484 | color: #fafafa; | 484 | color: #fafafa; |
| 485 | width: 200px; | 485 | width: 200px; |
| 486 | } | 486 | } |
| 487 | -</style> | ||
| 488 | \ No newline at end of file | 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,13 +82,11 @@ export default { | ||
| 82 | position: relative; | 82 | position: relative; |
| 83 | overflow: hidden; | 83 | overflow: hidden; |
| 84 | width: 100%; | 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 | height: 49px; | 89 | height: 49px; |
| 91 | } | 90 | } |
| 92 | - } | ||
| 93 | } | 91 | } |
| 94 | </style> | 92 | </style> |
yudao-ui-admin/src/views/infra/build/FormDrawer.vue
| @@ -84,7 +84,7 @@ import { | @@ -84,7 +84,7 @@ import { | ||
| 84 | } from '@/components/generator/html' | 84 | } from '@/components/generator/html' |
| 85 | import { makeUpJs } from '@/components/generator/js' | 85 | import { makeUpJs } from '@/components/generator/js' |
| 86 | import { makeUpCss } from '@/components/generator/css' | 86 | import { makeUpCss } from '@/components/generator/css' |
| 87 | -import { exportDefault, beautifierConf, titleCase } from '@/utils/index' | 87 | +import { exportDefault, beautifierConf } from '@/utils' |
| 88 | import ResourceDialog from './ResourceDialog' | 88 | import ResourceDialog from './ResourceDialog' |
| 89 | import loadMonaco from '@/utils/loadMonaco' | 89 | import loadMonaco from '@/utils/loadMonaco' |
| 90 | import loadBeautifier from '@/utils/loadBeautifier' | 90 | import loadBeautifier from '@/utils/loadBeautifier' |
| @@ -325,7 +325,7 @@ export default { | @@ -325,7 +325,7 @@ export default { | ||
| 325 | } | 325 | } |
| 326 | } | 326 | } |
| 327 | @include action-bar; | 327 | @include action-bar; |
| 328 | -::v-deep .el-drawer__header { | 328 | +:deep(.el-drawer__header) { |
| 329 | display: none; | 329 | display: none; |
| 330 | } | 330 | } |
| 331 | </style> | 331 | </style> |
yudao-ui-admin/src/views/infra/build/IconsDialog.vue
| @@ -101,7 +101,7 @@ export default { | @@ -101,7 +101,7 @@ export default { | ||
| 101 | } | 101 | } |
| 102 | } | 102 | } |
| 103 | .icon-dialog { | 103 | .icon-dialog { |
| 104 | - ::v-deep .el-dialog { | 104 | + :deep(.el-dialog) { |
| 105 | border-radius: 8px; | 105 | border-radius: 8px; |
| 106 | margin-bottom: 0; | 106 | margin-bottom: 0; |
| 107 | margin-top: 4vh !important; | 107 | margin-top: 4vh !important; |
yudao-ui-admin/src/views/infra/build/JsonDrawer.vue
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | </template> | 25 | </template> |
| 26 | 26 | ||
| 27 | <script> | 27 | <script> |
| 28 | -import { beautifierConf } from '@/utils/index' | 28 | +import { beautifierConf } from '@/utils' |
| 29 | import ClipboardJS from 'clipboard' | 29 | import ClipboardJS from 'clipboard' |
| 30 | import { saveAs } from 'file-saver' | 30 | import { saveAs } from 'file-saver' |
| 31 | import loadMonaco from '@/utils/loadMonaco' | 31 | import loadMonaco from '@/utils/loadMonaco' |
| @@ -133,7 +133,7 @@ export default { | @@ -133,7 +133,7 @@ export default { | ||
| 133 | <style lang="scss" scoped> | 133 | <style lang="scss" scoped> |
| 134 | @import '@/styles/mixin.scss'; | 134 | @import '@/styles/mixin.scss'; |
| 135 | 135 | ||
| 136 | -::v-deep .el-drawer__header { | 136 | +:deep(.el-drawer__header) { |
| 137 | display: none; | 137 | display: none; |
| 138 | } | 138 | } |
| 139 | @include action-bar; | 139 | @include action-bar; |
yudao-ui-admin/src/views/infra/build/RightPanel.vue
| @@ -1021,7 +1021,7 @@ export default { | @@ -1021,7 +1021,7 @@ export default { | ||
| 1021 | .el-date-editor { | 1021 | .el-date-editor { |
| 1022 | width: 227px; | 1022 | width: 227px; |
| 1023 | } | 1023 | } |
| 1024 | - ::v-deep .el-icon-time { | 1024 | + :deep(.el-icon-time) { |
| 1025 | display: none; | 1025 | display: none; |
| 1026 | } | 1026 | } |
| 1027 | } | 1027 | } |