Commit acea18432024b6210ed3d447dacf05ac74e0601e
1 parent
0f44291c
chore: format code
Showing
51 changed files
with
151 additions
and
158 deletions
src/api/model/baseModel.ts
@@ -3,7 +3,7 @@ export interface BasicPageParams { | @@ -3,7 +3,7 @@ export interface BasicPageParams { | ||
3 | pageSize: number; | 3 | pageSize: number; |
4 | } | 4 | } |
5 | 5 | ||
6 | -export interface BasicFetchResult<T extends any> { | 6 | +export interface BasicFetchResult<T> { |
7 | items: T[]; | 7 | items: T[]; |
8 | total: number; | 8 | total: number; |
9 | } | 9 | } |
src/components/Application/src/AppDarkModeToggle.vue
src/components/Application/src/search/AppSearchFooter.vue
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | background-color: linear-gradient(-225deg, #d5dbe4, #f8f8f8); | 42 | background-color: linear-gradient(-225deg, #d5dbe4, #f8f8f8); |
43 | border-radius: 2px; | 43 | border-radius: 2px; |
44 | box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, | 44 | box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, |
45 | - 0 1px 2px 1px rgba(30, 35, 90, 0.4); | 45 | + 0 1px 2px 1px rgb(30 35 90 / 40%); |
46 | align-items: center; | 46 | align-items: center; |
47 | justify-content: center; | 47 | justify-content: center; |
48 | 48 |
src/components/Application/src/search/AppSearchModal.vue
@@ -125,7 +125,7 @@ | @@ -125,7 +125,7 @@ | ||
125 | width: 100%; | 125 | width: 100%; |
126 | height: 100%; | 126 | height: 100%; |
127 | padding-top: 50px; | 127 | padding-top: 50px; |
128 | - background-color: rgba(0, 0, 0, 0.25); | 128 | + background-color: rgb(0 0 0 / 25%); |
129 | justify-content: center; | 129 | justify-content: center; |
130 | 130 | ||
131 | &--mobile { | 131 | &--mobile { |
@@ -159,7 +159,7 @@ | @@ -159,7 +159,7 @@ | ||
159 | 159 | ||
160 | &__item { | 160 | &__item { |
161 | &-enter { | 161 | &-enter { |
162 | - opacity: 0 !important; | 162 | + opacity: 0% !important; |
163 | } | 163 | } |
164 | } | 164 | } |
165 | } | 165 | } |
@@ -168,16 +168,16 @@ | @@ -168,16 +168,16 @@ | ||
168 | &-content { | 168 | &-content { |
169 | position: relative; | 169 | position: relative; |
170 | width: 632px; | 170 | width: 632px; |
171 | - margin: 0 auto auto auto; | 171 | + margin: 0 auto auto; |
172 | background-color: @component-background; | 172 | background-color: @component-background; |
173 | border-radius: 16px; | 173 | border-radius: 16px; |
174 | - box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); | 174 | + box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); |
175 | flex-direction: column; | 175 | flex-direction: column; |
176 | } | 176 | } |
177 | 177 | ||
178 | &-input__wrapper { | 178 | &-input__wrapper { |
179 | display: flex; | 179 | display: flex; |
180 | - padding: 14px 14px 0 14px; | 180 | + padding: 14px 14px 0; |
181 | justify-content: space-between; | 181 | justify-content: space-between; |
182 | align-items: center; | 182 | align-items: center; |
183 | } | 183 | } |
@@ -245,7 +245,7 @@ | @@ -245,7 +245,7 @@ | ||
245 | background-color: @primary-color; | 245 | background-color: @primary-color; |
246 | 246 | ||
247 | .@{prefix-cls}-list__item-enter { | 247 | .@{prefix-cls}-list__item-enter { |
248 | - opacity: 1; | 248 | + opacity: 100%; |
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||
@@ -259,7 +259,7 @@ | @@ -259,7 +259,7 @@ | ||
259 | 259 | ||
260 | &-enter { | 260 | &-enter { |
261 | width: 30px; | 261 | width: 30px; |
262 | - opacity: 0; | 262 | + opacity: 0%; |
263 | } | 263 | } |
264 | } | 264 | } |
265 | } | 265 | } |
src/components/CodeEditor/src/codemirror/codemirror.css
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | .CodeMirror { | 3 | .CodeMirror { |
4 | --base: #545281; | 4 | --base: #545281; |
5 | - --comment: hsl(210, 25%, 60%); | 5 | + --comment: hsl(210deg 25% 60%); |
6 | --keyword: #af4ab1; | 6 | --keyword: #af4ab1; |
7 | --variable: #0055d1; | 7 | --variable: #0055d1; |
8 | --function: #c25205; | 8 | --function: #c25205; |
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | color: var(--comment); | 53 | color: var(--comment); |
54 | text-align: right; | 54 | text-align: right; |
55 | white-space: nowrap; | 55 | white-space: nowrap; |
56 | - opacity: 0.6; | 56 | + opacity: 60%; |
57 | } | 57 | } |
58 | 58 | ||
59 | .CodeMirror-guttermarker { | 59 | .CodeMirror-guttermarker { |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | display: inline-block; | 90 | display: inline-block; |
91 | font-size: 0.8em; | 91 | font-size: 0.8em; |
92 | content: '>'; | 92 | content: '>'; |
93 | - opacity: 0.8; | 93 | + opacity: 80%; |
94 | transform: rotate(90deg); | 94 | transform: rotate(90deg); |
95 | transition: transform 0.2s; | 95 | transition: transform 0.2s; |
96 | } | 96 | } |
@@ -125,9 +125,7 @@ | @@ -125,9 +125,7 @@ | ||
125 | } | 125 | } |
126 | 126 | ||
127 | .cm-fat-cursor-mark { | 127 | .cm-fat-cursor-mark { |
128 | - background-color: rgba(20, 255, 20, 0.5); | ||
129 | - -webkit-animation: blink 1.06s steps(1) infinite; | ||
130 | - -moz-animation: blink 1.06s steps(1) infinite; | 128 | + background-color: rgb(20 255 20 / 50%); |
131 | animation: blink 1.06s steps(1) infinite; | 129 | animation: blink 1.06s steps(1) infinite; |
132 | } | 130 | } |
133 | 131 | ||
@@ -135,16 +133,14 @@ | @@ -135,16 +133,14 @@ | ||
135 | width: auto; | 133 | width: auto; |
136 | background-color: #7e7; | 134 | background-color: #7e7; |
137 | border: 0; | 135 | border: 0; |
138 | - -webkit-animation: blink 1.06s steps(1) infinite; | ||
139 | - -moz-animation: blink 1.06s steps(1) infinite; | ||
140 | animation: blink 1.06s steps(1) infinite; | 136 | animation: blink 1.06s steps(1) infinite; |
141 | } | 137 | } |
142 | -@-moz-keyframes blink { | 138 | +@keyframes blink { |
143 | 50% { | 139 | 50% { |
144 | background-color: transparent; | 140 | background-color: transparent; |
145 | } | 141 | } |
146 | } | 142 | } |
147 | -@-webkit-keyframes blink { | 143 | +@keyframes blink { |
148 | 50% { | 144 | 50% { |
149 | background-color: transparent; | 145 | background-color: transparent; |
150 | } | 146 | } |
@@ -294,7 +290,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | @@ -294,7 +290,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | ||
294 | } | 290 | } |
295 | 291 | ||
296 | .CodeMirror-matchingtag { | 292 | .CodeMirror-matchingtag { |
297 | - background: rgba(255, 150, 0, 0.3); | 293 | + background: rgb(255 150 0 / 30%); |
298 | } | 294 | } |
299 | 295 | ||
300 | .CodeMirror-activeline-background { | 296 | .CodeMirror-activeline-background { |
@@ -394,7 +390,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | @@ -394,7 +390,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | ||
394 | background-color: transparent; | 390 | background-color: transparent; |
395 | } | 391 | } |
396 | 392 | ||
397 | -.CodeMirror-gutter-wrapper ::-moz-selection { | 393 | +.CodeMirrorwrapper ::selection { |
398 | background-color: transparent; | 394 | background-color: transparent; |
399 | } | 395 | } |
400 | 396 | ||
@@ -414,11 +410,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | @@ -414,11 +410,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | ||
414 | border-width: 0; | 410 | border-width: 0; |
415 | 411 | ||
416 | /* Reset some styles that the rest of the page might have set */ | 412 | /* Reset some styles that the rest of the page might have set */ |
417 | - -moz-border-radius: 0; | ||
418 | - -webkit-border-radius: 0; | ||
419 | border-radius: 0; | 413 | border-radius: 0; |
420 | -webkit-tap-highlight-color: transparent; | 414 | -webkit-tap-highlight-color: transparent; |
421 | - -webkit-font-variant-ligatures: contextual; | ||
422 | font-variant-ligatures: contextual; | 415 | font-variant-ligatures: contextual; |
423 | } | 416 | } |
424 | 417 | ||
@@ -457,7 +450,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | @@ -457,7 +450,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket { | ||
457 | .CodeMirror-gutter, | 450 | .CodeMirror-gutter, |
458 | .CodeMirror-gutters, | 451 | .CodeMirror-gutters, |
459 | .CodeMirror-linenumber { | 452 | .CodeMirror-linenumber { |
460 | - -moz-box-sizing: content-box; | ||
461 | box-sizing: content-box; | 453 | box-sizing: content-box; |
462 | } | 454 | } |
463 | 455 | ||
@@ -505,15 +497,9 @@ div.CodeMirror-dragcursors { | @@ -505,15 +497,9 @@ div.CodeMirror-dragcursors { | ||
505 | background: #d7d4f0; | 497 | background: #d7d4f0; |
506 | } | 498 | } |
507 | 499 | ||
508 | -.CodeMirror-line::-moz-selection, | ||
509 | -.CodeMirror-line > span::-moz-selection, | ||
510 | -.CodeMirror-line > span > span::-moz-selection { | ||
511 | - background: #d7d4f0; | ||
512 | -} | ||
513 | - | ||
514 | .cm-searching { | 500 | .cm-searching { |
515 | background-color: #ffa; | 501 | background-color: #ffa; |
516 | - background-color: rgba(255, 255, 0, 0.4); | 502 | + background-color: rgb(255 255 0 / 40%); |
517 | } | 503 | } |
518 | 504 | ||
519 | /* Used to force a border model for a node */ | 505 | /* Used to force a border model for a node */ |
src/components/ContextMenu/src/ContextMenu.vue
@@ -178,22 +178,22 @@ | @@ -178,22 +178,22 @@ | ||
178 | margin: 0; | 178 | margin: 0; |
179 | list-style: none; | 179 | list-style: none; |
180 | background-color: @component-background; | 180 | background-color: @component-background; |
181 | - border: 1px solid rgba(0, 0, 0, 0.08); | 181 | + border: 1px solid rgb(0 0 0 / 8%); |
182 | border-radius: 0.25rem; | 182 | border-radius: 0.25rem; |
183 | - box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.1), | ||
184 | - 0 1px 5px 0 rgba(0, 0, 0, 0.06); | 183 | + box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 10%), |
184 | + 0 1px 5px 0 rgb(0 0 0 / 6%); | ||
185 | background-clip: padding-box; | 185 | background-clip: padding-box; |
186 | user-select: none; | 186 | user-select: none; |
187 | 187 | ||
188 | .item-style(); | 188 | .item-style(); |
189 | 189 | ||
190 | .ant-divider { | 190 | .ant-divider { |
191 | - margin: 0 0; | 191 | + margin: 0; |
192 | } | 192 | } |
193 | 193 | ||
194 | &__popup { | 194 | &__popup { |
195 | .ant-divider { | 195 | .ant-divider { |
196 | - margin: 0 0; | 196 | + margin: 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | .item-style(); | 199 | .item-style(); |
src/components/Cropper/src/CopperModal.vue
@@ -234,17 +234,17 @@ | @@ -234,17 +234,17 @@ | ||
234 | background: #eee; | 234 | background: #eee; |
235 | background-image: linear-gradient( | 235 | background-image: linear-gradient( |
236 | 45deg, | 236 | 45deg, |
237 | - rgba(0, 0, 0, 0.25) 25%, | 237 | + rgb(0 0 0 / 25%) 25%, |
238 | transparent 0, | 238 | transparent 0, |
239 | transparent 75%, | 239 | transparent 75%, |
240 | - rgba(0, 0, 0, 0.25) 0 | 240 | + rgb(0 0 0 / 25%) 0 |
241 | ), | 241 | ), |
242 | linear-gradient( | 242 | linear-gradient( |
243 | 45deg, | 243 | 45deg, |
244 | - rgba(0, 0, 0, 0.25) 25%, | 244 | + rgb(0 0 0 / 25%) 25%, |
245 | transparent 0, | 245 | transparent 0, |
246 | transparent 75%, | 246 | transparent 75%, |
247 | - rgba(0, 0, 0, 0.25) 0 | 247 | + rgb(0 0 0 / 25%) 0 |
248 | ); | 248 | ); |
249 | background-position: 0 0, 12px 12px; | 249 | background-position: 0 0, 12px 12px; |
250 | background-size: 24px 24px; | 250 | background-size: 24px 24px; |
src/components/Cropper/src/CropperAvatar.vue
@@ -135,15 +135,14 @@ | @@ -135,15 +135,14 @@ | ||
135 | } | 135 | } |
136 | 136 | ||
137 | &-image-mask { | 137 | &-image-mask { |
138 | - opacity: 0; | 138 | + opacity: 0%; |
139 | position: absolute; | 139 | position: absolute; |
140 | width: inherit; | 140 | width: inherit; |
141 | height: inherit; | 141 | height: inherit; |
142 | border-radius: inherit; | 142 | border-radius: inherit; |
143 | border: inherit; | 143 | border: inherit; |
144 | - background: rgba(0, 0, 0, 0.4); | 144 | + background: rgb(0 0 0 / 40%); |
145 | cursor: pointer; | 145 | cursor: pointer; |
146 | - -webkit-transition: opacity 0.4s; | ||
147 | transition: opacity 0.4s; | 146 | transition: opacity 0.4s; |
148 | 147 | ||
149 | ::v-deep(svg) { | 148 | ::v-deep(svg) { |
@@ -152,7 +151,7 @@ | @@ -152,7 +151,7 @@ | ||
152 | } | 151 | } |
153 | 152 | ||
154 | &-image-mask:hover { | 153 | &-image-mask:hover { |
155 | - opacity: 40; | 154 | + opacity: 4000%; |
156 | } | 155 | } |
157 | 156 | ||
158 | &-upload-btn { | 157 | &-upload-btn { |
src/components/Loading/src/Loading.vue
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | height: 100%; | 57 | height: 100%; |
58 | justify-content: center; | 58 | justify-content: center; |
59 | align-items: center; | 59 | align-items: center; |
60 | - background-color: rgba(240, 242, 245, 0.4); | 60 | + background-color: rgb(240 242 245 / 40%); |
61 | 61 | ||
62 | &.absolute { | 62 | &.absolute { |
63 | position: absolute; | 63 | position: absolute; |
src/components/Markdown/src/MarkdownViewer.vue
src/components/Modal/src/index.less
src/components/Page/src/PageFooter.vue
@@ -39,8 +39,8 @@ | @@ -39,8 +39,8 @@ | ||
39 | line-height: 44px; | 39 | line-height: 44px; |
40 | background-color: @component-background; | 40 | background-color: @component-background; |
41 | border-top: 1px solid @border-color-base; | 41 | border-top: 1px solid @border-color-base; |
42 | - box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), | ||
43 | - 0 -12px 48px 16px rgba(0, 0, 0, 0.03); | 42 | + box-shadow: 0 -6px 16px -8px rgb(0 0 0 / 8%), 0 -9px 28px 0 rgb(0 0 0 / 5%), |
43 | + 0 -12px 48px 16px rgb(0 0 0 / 3%); | ||
44 | transition: width 0.2s; | 44 | transition: width 0.2s; |
45 | 45 | ||
46 | &__left { | 46 | &__left { |
src/components/Preview/src/Functional.vue
@@ -432,7 +432,7 @@ | @@ -432,7 +432,7 @@ | ||
432 | bottom: 0; | 432 | bottom: 0; |
433 | left: 0; | 433 | left: 0; |
434 | z-index: @preview-comp-z-index; | 434 | z-index: @preview-comp-z-index; |
435 | - background: rgba(0, 0, 0, 0.5); | 435 | + background: rgb(0 0 0 / 50%); |
436 | user-select: none; | 436 | user-select: none; |
437 | 437 | ||
438 | &-content { | 438 | &-content { |
@@ -458,7 +458,7 @@ | @@ -458,7 +458,7 @@ | ||
458 | overflow: hidden; | 458 | overflow: hidden; |
459 | color: @white; | 459 | color: @white; |
460 | cursor: pointer; | 460 | cursor: pointer; |
461 | - background-color: rgba(0, 0, 0, 0.5); | 461 | + background-color: rgb(0 0 0 / 50%); |
462 | border-radius: 50%; | 462 | border-radius: 50%; |
463 | transition: all 0.2s; | 463 | transition: all 0.2s; |
464 | 464 | ||
@@ -470,7 +470,7 @@ | @@ -470,7 +470,7 @@ | ||
470 | } | 470 | } |
471 | 471 | ||
472 | &:hover { | 472 | &:hover { |
473 | - background-color: rgba(0, 0, 0, 0.8); | 473 | + background-color: rgb(0 0 0 / 80%); |
474 | } | 474 | } |
475 | } | 475 | } |
476 | 476 | ||
@@ -480,7 +480,7 @@ | @@ -480,7 +480,7 @@ | ||
480 | left: 50%; | 480 | left: 50%; |
481 | padding: 0 22px; | 481 | padding: 0 22px; |
482 | font-size: 16px; | 482 | font-size: 16px; |
483 | - background: rgba(109, 109, 109, 0.6); | 483 | + background: rgb(109 109 109 / 60%); |
484 | border-radius: 15px; | 484 | border-radius: 15px; |
485 | transform: translateX(-50%); | 485 | transform: translateX(-50%); |
486 | } | 486 | } |
@@ -494,7 +494,7 @@ | @@ -494,7 +494,7 @@ | ||
494 | height: 44px; | 494 | height: 44px; |
495 | padding: 0 22px; | 495 | padding: 0 22px; |
496 | margin-left: -139px; | 496 | margin-left: -139px; |
497 | - background: rgba(109, 109, 109, 0.6); | 497 | + background: rgb(109 109 109 / 60%); |
498 | border-radius: 22px; | 498 | border-radius: 22px; |
499 | justify-content: center; | 499 | justify-content: center; |
500 | 500 | ||
@@ -526,12 +526,12 @@ | @@ -526,12 +526,12 @@ | ||
526 | height: 50px; | 526 | height: 50px; |
527 | font-size: 28px; | 527 | font-size: 28px; |
528 | cursor: pointer; | 528 | cursor: pointer; |
529 | - background-color: rgba(0, 0, 0, 0.5); | 529 | + background-color: rgb(0 0 0 / 50%); |
530 | border-radius: 50%; | 530 | border-radius: 50%; |
531 | transition: all 0.2s; | 531 | transition: all 0.2s; |
532 | 532 | ||
533 | &:hover { | 533 | &:hover { |
534 | - background-color: rgba(0, 0, 0, 0.8); | 534 | + background-color: rgb(0 0 0 / 80%); |
535 | } | 535 | } |
536 | 536 | ||
537 | &.left { | 537 | &.left { |
src/components/Preview/src/Preview.vue
src/components/Scrollbar/src/Scrollbar.vue
@@ -148,7 +148,7 @@ | @@ -148,7 +148,7 @@ | ||
148 | display: none; | 148 | display: none; |
149 | width: 0; | 149 | width: 0; |
150 | height: 0; | 150 | height: 0; |
151 | - opacity: 0; | 151 | + opacity: 0%; |
152 | } | 152 | } |
153 | } | 153 | } |
154 | } | 154 | } |
@@ -159,12 +159,12 @@ | @@ -159,12 +159,12 @@ | ||
159 | width: 0; | 159 | width: 0; |
160 | height: 0; | 160 | height: 0; |
161 | cursor: pointer; | 161 | cursor: pointer; |
162 | - background-color: rgba(144, 147, 153, 0.3); | 162 | + background-color: rgb(144 147 153 / 30%); |
163 | border-radius: inherit; | 163 | border-radius: inherit; |
164 | transition: 0.3s background-color; | 164 | transition: 0.3s background-color; |
165 | 165 | ||
166 | &:hover { | 166 | &:hover { |
167 | - background-color: rgba(144, 147, 153, 0.5); | 167 | + background-color: rgb(144 147 153 / 50%); |
168 | } | 168 | } |
169 | } | 169 | } |
170 | 170 | ||
@@ -174,8 +174,7 @@ | @@ -174,8 +174,7 @@ | ||
174 | bottom: 2px; | 174 | bottom: 2px; |
175 | z-index: 1; | 175 | z-index: 1; |
176 | border-radius: 4px; | 176 | border-radius: 4px; |
177 | - opacity: 0; | ||
178 | - -webkit-transition: opacity 80ms ease; | 177 | + opacity: 0%; |
179 | transition: opacity 80ms ease; | 178 | transition: opacity 80ms ease; |
180 | 179 | ||
181 | &.is-vertical { | 180 | &.is-vertical { |
@@ -201,7 +200,7 @@ | @@ -201,7 +200,7 @@ | ||
201 | .scrollbar:active > .scrollbar__bar, | 200 | .scrollbar:active > .scrollbar__bar, |
202 | .scrollbar:focus > .scrollbar__bar, | 201 | .scrollbar:focus > .scrollbar__bar, |
203 | .scrollbar:hover > .scrollbar__bar { | 202 | .scrollbar:hover > .scrollbar__bar { |
204 | - opacity: 1; | 203 | + opacity: 100%; |
205 | transition: opacity 340ms ease-out; | 204 | transition: opacity 340ms ease-out; |
206 | } | 205 | } |
207 | </style> | 206 | </style> |
src/components/SimpleMenu/src/components/menu.less
@@ -188,7 +188,7 @@ | @@ -188,7 +188,7 @@ | ||
188 | 188 | ||
189 | &-vertical&-collapse &-item, | 189 | &-vertical&-collapse &-item, |
190 | &-vertical&-collapse &-submenu-title { | 190 | &-vertical&-collapse &-submenu-title { |
191 | - padding: 0 0; | 191 | + padding: 0; |
192 | } | 192 | } |
193 | 193 | ||
194 | &-vertical &-submenu-title-icon { | 194 | &-vertical &-submenu-title-icon { |
src/components/StrengthMeter/src/StrengthMeter.vue
@@ -92,7 +92,7 @@ | @@ -92,7 +92,7 @@ | ||
92 | background-color: transparent; | 92 | background-color: transparent; |
93 | border-color: @white; | 93 | border-color: @white; |
94 | border-style: solid; | 94 | border-style: solid; |
95 | - border-width: 0 5px 0 5px; | 95 | + border-width: 0 5px; |
96 | content: ''; | 96 | content: ''; |
97 | } | 97 | } |
98 | 98 |
src/components/Table/src/BasicTable.vue
@@ -357,7 +357,7 @@ | @@ -357,7 +357,7 @@ | ||
357 | padding: 16px; | 357 | padding: 16px; |
358 | 358 | ||
359 | .ant-form { | 359 | .ant-form { |
360 | - padding: 12px 10px 6px 10px; | 360 | + padding: 12px 10px 6px; |
361 | margin-bottom: 16px; | 361 | margin-bottom: 16px; |
362 | background-color: @component-background; | 362 | background-color: @component-background; |
363 | border-radius: 2px; | 363 | border-radius: 2px; |
@@ -375,7 +375,7 @@ | @@ -375,7 +375,7 @@ | ||
375 | 375 | ||
376 | .ant-table-title { | 376 | .ant-table-title { |
377 | min-height: 40px; | 377 | min-height: 40px; |
378 | - padding: 0 0 8px 0 !important; | 378 | + padding: 0 0 8px !important; |
379 | } | 379 | } |
380 | 380 | ||
381 | .ant-table.ant-table-bordered .ant-table-title { | 381 | .ant-table.ant-table-bordered .ant-table-title { |
@@ -401,7 +401,7 @@ | @@ -401,7 +401,7 @@ | ||
401 | } | 401 | } |
402 | 402 | ||
403 | .ant-pagination { | 403 | .ant-pagination { |
404 | - margin: 10px 0 0 0; | 404 | + margin: 10px 0 0; |
405 | } | 405 | } |
406 | 406 | ||
407 | .ant-table-footer { | 407 | .ant-table-footer { |
src/components/Table/src/components/HeaderCell.vue
src/components/Table/src/components/settings/ColumnSetting.vue
src/components/Table/src/hooks/useDataSource.ts
@@ -241,8 +241,16 @@ export function useDataSource( | @@ -241,8 +241,16 @@ export function useDataSource( | ||
241 | } | 241 | } |
242 | 242 | ||
243 | async function fetch(opt?: FetchParams) { | 243 | async function fetch(opt?: FetchParams) { |
244 | - const { api, searchInfo, defSort, fetchSetting, beforeFetch, afterFetch, useSearchForm, pagination } = | ||
245 | - unref(propsRef); | 244 | + const { |
245 | + api, | ||
246 | + searchInfo, | ||
247 | + defSort, | ||
248 | + fetchSetting, | ||
249 | + beforeFetch, | ||
250 | + afterFetch, | ||
251 | + useSearchForm, | ||
252 | + pagination, | ||
253 | + } = unref(propsRef); | ||
246 | if (!api || !isFunction(api)) return; | 254 | if (!api || !isFunction(api)) return; |
247 | try { | 255 | try { |
248 | setLoading(true); | 256 | setLoading(true); |
src/components/Verify/src/DragVerify.vue
@@ -292,7 +292,7 @@ | @@ -292,7 +292,7 @@ | ||
292 | position: relative; | 292 | position: relative; |
293 | overflow: hidden; | 293 | overflow: hidden; |
294 | text-align: center; | 294 | text-align: center; |
295 | - background-color: rgb(238, 238, 238); | 295 | + background-color: rgb(238 238 238); |
296 | border: 1px solid #ddd; | 296 | border: 1px solid #ddd; |
297 | border-radius: @radius; | 297 | border-radius: @radius; |
298 | 298 | ||
@@ -313,7 +313,7 @@ | @@ -313,7 +313,7 @@ | ||
313 | position: absolute; | 313 | position: absolute; |
314 | top: 0; | 314 | top: 0; |
315 | font-size: 12px; | 315 | font-size: 12px; |
316 | - -webkit-text-size-adjust: none; | 316 | + text-size-adjust: none; |
317 | background-color: -webkit-gradient( | 317 | background-color: -webkit-gradient( |
318 | linear, | 318 | linear, |
319 | left top, | 319 | left top, |
src/components/Verify/src/ImgRotate.vue
src/design/ant/btn.less
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
67 | } | 67 | } |
68 | 68 | ||
69 | [data-theme='light'] &.ant-btn-link.is-disabled { | 69 | [data-theme='light'] &.ant-btn-link.is-disabled { |
70 | - color: rgba(0, 0, 0, 0.25); | 70 | + color: rgb(0 0 0 / 25%); |
71 | text-shadow: none; | 71 | text-shadow: none; |
72 | cursor: not-allowed !important; | 72 | cursor: not-allowed !important; |
73 | background-color: transparent !important; | 73 | background-color: transparent !important; |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | } | 76 | } |
77 | 77 | ||
78 | [data-theme='dark'] &.ant-btn-link.is-disabled { | 78 | [data-theme='dark'] &.ant-btn-link.is-disabled { |
79 | - color: rgba(255, 255, 255, 0.25) !important; | 79 | + color: rgb(255 255 255 / 25%) !important; |
80 | text-shadow: none; | 80 | text-shadow: none; |
81 | cursor: not-allowed !important; | 81 | cursor: not-allowed !important; |
82 | background-color: transparent !important; | 82 | background-color: transparent !important; |
src/design/ant/index.less
@@ -30,12 +30,12 @@ span.anticon:not(.app-iconify) { | @@ -30,12 +30,12 @@ span.anticon:not(.app-iconify) { | ||
30 | } | 30 | } |
31 | 31 | ||
32 | .ant-image-preview-operations { | 32 | .ant-image-preview-operations { |
33 | - background-color: rgba(0, 0, 0, 0.3); | 33 | + background-color: rgb(0 0 0 / 30%); |
34 | } | 34 | } |
35 | 35 | ||
36 | .ant-popover { | 36 | .ant-popover { |
37 | &-content { | 37 | &-content { |
38 | - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); | 38 | + box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%); |
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 |
src/design/index.less
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | @import './theme.less'; | 5 | @import './theme.less'; |
6 | 6 | ||
7 | input:-webkit-autofill { | 7 | input:-webkit-autofill { |
8 | - -webkit-box-shadow: 0 0 0 1000px white inset !important; | 8 | + box-shadow: 0 0 0 1000px white inset !important; |
9 | } | 9 | } |
10 | 10 | ||
11 | :-webkit-autofill { | 11 | :-webkit-autofill { |
@@ -14,7 +14,7 @@ input:-webkit-autofill { | @@ -14,7 +14,7 @@ input:-webkit-autofill { | ||
14 | 14 | ||
15 | html { | 15 | html { |
16 | overflow: hidden; | 16 | overflow: hidden; |
17 | - -webkit-text-size-adjust: 100%; | 17 | + text-size-adjust: 100%; |
18 | } | 18 | } |
19 | 19 | ||
20 | html, | 20 | html, |
src/design/public.less
@@ -17,15 +17,15 @@ | @@ -17,15 +17,15 @@ | ||
17 | // } | 17 | // } |
18 | 18 | ||
19 | ::-webkit-scrollbar-track { | 19 | ::-webkit-scrollbar-track { |
20 | - background-color: rgba(0, 0, 0, 0.05); | 20 | + background-color: rgb(0 0 0 / 5%); |
21 | } | 21 | } |
22 | 22 | ||
23 | ::-webkit-scrollbar-thumb { | 23 | ::-webkit-scrollbar-thumb { |
24 | // background: rgba(0, 0, 0, 0.6); | 24 | // background: rgba(0, 0, 0, 0.6); |
25 | - background-color: rgba(144, 147, 153, 0.3); | 25 | + background-color: rgb(144 147 153 / 30%); |
26 | // background-color: rgba(144, 147, 153, 0.3); | 26 | // background-color: rgba(144, 147, 153, 0.3); |
27 | border-radius: 2px; | 27 | border-radius: 2px; |
28 | - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2); | 28 | + box-shadow: inset 0 0 6px rgb(0 0 0 / 20%); |
29 | } | 29 | } |
30 | 30 | ||
31 | ::-webkit-scrollbar-thumb:hover { | 31 | ::-webkit-scrollbar-thumb:hover { |
@@ -46,6 +46,6 @@ | @@ -46,6 +46,6 @@ | ||
46 | width: 100%; | 46 | width: 100%; |
47 | height: 2px; | 47 | height: 2px; |
48 | background-color: @primary-color; | 48 | background-color: @primary-color; |
49 | - opacity: 0.75; | 49 | + opacity: 75%; |
50 | } | 50 | } |
51 | } | 51 | } |
src/design/theme.less
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | html[data-theme='light'] { | 5 | html[data-theme='light'] { |
6 | .text-secondary { | 6 | .text-secondary { |
7 | - color: rgba(0, 0, 0, 0.45); | 7 | + color: rgb(0 0 0 / 45%); |
8 | } | 8 | } |
9 | 9 | ||
10 | .ant-alert-success { | 10 | .ant-alert-success { |
@@ -43,10 +43,10 @@ html[data-theme='light'] { | @@ -43,10 +43,10 @@ html[data-theme='light'] { | ||
43 | } | 43 | } |
44 | 44 | ||
45 | .ant-calendar-selected-day .ant-calendar-date { | 45 | .ant-calendar-selected-day .ant-calendar-date { |
46 | - color: rgba(0, 0, 0, 0.8); | 46 | + color: rgb(0 0 0 / 80%); |
47 | } | 47 | } |
48 | 48 | ||
49 | .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected { | 49 | .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected { |
50 | - color: rgba(0, 0, 0, 0.9); | 50 | + color: rgb(0 0 0 / 90%); |
51 | } | 51 | } |
52 | } | 52 | } |
src/design/transition/fade.less
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | 5 | ||
6 | .fade-enter-from, | 6 | .fade-enter-from, |
7 | .fade-leave-to { | 7 | .fade-leave-to { |
8 | - opacity: 0; | 8 | + opacity: 0%; |
9 | } | 9 | } |
10 | 10 | ||
11 | /* fade-slide */ | 11 | /* fade-slide */ |
@@ -15,12 +15,12 @@ | @@ -15,12 +15,12 @@ | ||
15 | } | 15 | } |
16 | 16 | ||
17 | .fade-slide-enter-from { | 17 | .fade-slide-enter-from { |
18 | - opacity: 0; | 18 | + opacity: 0%; |
19 | transform: translateX(-30px); | 19 | transform: translateX(-30px); |
20 | } | 20 | } |
21 | 21 | ||
22 | .fade-slide-leave-to { | 22 | .fade-slide-leave-to { |
23 | - opacity: 0; | 23 | + opacity: 0%; |
24 | transform: translateX(30px); | 24 | transform: translateX(30px); |
25 | } | 25 | } |
26 | 26 | ||
@@ -35,12 +35,12 @@ | @@ -35,12 +35,12 @@ | ||
35 | } | 35 | } |
36 | 36 | ||
37 | .fade-bottom-enter-from { | 37 | .fade-bottom-enter-from { |
38 | - opacity: 0; | 38 | + opacity: 0%; |
39 | transform: translateY(-10%); | 39 | transform: translateY(-10%); |
40 | } | 40 | } |
41 | 41 | ||
42 | .fade-bottom-leave-to { | 42 | .fade-bottom-leave-to { |
43 | - opacity: 0; | 43 | + opacity: 0%; |
44 | transform: translateY(10%); | 44 | transform: translateY(10%); |
45 | } | 45 | } |
46 | 46 | ||
@@ -51,12 +51,12 @@ | @@ -51,12 +51,12 @@ | ||
51 | } | 51 | } |
52 | 52 | ||
53 | .fade-scale-enter-from { | 53 | .fade-scale-enter-from { |
54 | - opacity: 0; | 54 | + opacity: 0%; |
55 | transform: scale(1.2); | 55 | transform: scale(1.2); |
56 | } | 56 | } |
57 | 57 | ||
58 | .fade-scale-leave-to { | 58 | .fade-scale-leave-to { |
59 | - opacity: 0; | 59 | + opacity: 0%; |
60 | transform: scale(0.8); | 60 | transform: scale(0.8); |
61 | } | 61 | } |
62 | 62 | ||
@@ -71,11 +71,11 @@ | @@ -71,11 +71,11 @@ | ||
71 | } | 71 | } |
72 | 72 | ||
73 | .fade-top-enter-from { | 73 | .fade-top-enter-from { |
74 | - opacity: 0; | 74 | + opacity: 0%; |
75 | transform: translateY(8%); | 75 | transform: translateY(8%); |
76 | } | 76 | } |
77 | 77 | ||
78 | .fade-top-leave-to { | 78 | .fade-top-leave-to { |
79 | - opacity: 0; | 79 | + opacity: 0%; |
80 | transform: translateY(-8%); | 80 | transform: translateY(-8%); |
81 | } | 81 | } |
src/design/transition/scale.less
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | &-enter-from, | 4 | &-enter-from, |
5 | &-leave, | 5 | &-leave, |
6 | &-leave-to { | 6 | &-leave-to { |
7 | - opacity: 0; | 7 | + opacity: 0%; |
8 | transform: scale(0); | 8 | transform: scale(0); |
9 | } | 9 | } |
10 | } | 10 | } |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | &-enter-from, | 15 | &-enter-from, |
16 | &-leave, | 16 | &-leave, |
17 | &-leave-to { | 17 | &-leave-to { |
18 | - opacity: 0; | 18 | + opacity: 0%; |
19 | transform: scale(0) rotate(-45deg); | 19 | transform: scale(0) rotate(-45deg); |
20 | } | 20 | } |
21 | } | 21 | } |
src/design/transition/scroll.less
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | 3 | ||
4 | &-enter-from, | 4 | &-enter-from, |
5 | &-leave-to { | 5 | &-leave-to { |
6 | - opacity: 0; | 6 | + opacity: 0%; |
7 | } | 7 | } |
8 | 8 | ||
9 | &-enter-from { | 9 | &-enter-from { |
@@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
20 | 20 | ||
21 | &-enter-from, | 21 | &-enter-from, |
22 | &-leave-to { | 22 | &-leave-to { |
23 | - opacity: 0; | 23 | + opacity: 0%; |
24 | } | 24 | } |
25 | 25 | ||
26 | &-enter-from { | 26 | &-enter-from { |
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | 37 | ||
38 | &-enter-from, | 38 | &-enter-from, |
39 | &-leave-to { | 39 | &-leave-to { |
40 | - opacity: 0; | 40 | + opacity: 0%; |
41 | } | 41 | } |
42 | 42 | ||
43 | &-enter-from { | 43 | &-enter-from { |
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | 54 | ||
55 | &-enter-from, | 55 | &-enter-from, |
56 | &-leave-to { | 56 | &-leave-to { |
57 | - opacity: 0; | 57 | + opacity: 0%; |
58 | } | 58 | } |
59 | 59 | ||
60 | &-enter-from { | 60 | &-enter-from { |
src/design/transition/slide.less
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | 3 | ||
4 | &-enter-from, | 4 | &-enter-from, |
5 | &-leave-to { | 5 | &-leave-to { |
6 | - opacity: 0; | 6 | + opacity: 0%; |
7 | transform: translateY(-15px); | 7 | transform: translateY(-15px); |
8 | } | 8 | } |
9 | } | 9 | } |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | 13 | ||
14 | &-enter-from, | 14 | &-enter-from, |
15 | &-leave-to { | 15 | &-leave-to { |
16 | - opacity: 0; | 16 | + opacity: 0%; |
17 | transform: translateY(15px); | 17 | transform: translateY(15px); |
18 | } | 18 | } |
19 | } | 19 | } |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | 23 | ||
24 | &-enter-from, | 24 | &-enter-from, |
25 | &-leave-to { | 25 | &-leave-to { |
26 | - opacity: 0; | 26 | + opacity: 0%; |
27 | transform: translateX(-15px); | 27 | transform: translateX(-15px); |
28 | } | 28 | } |
29 | } | 29 | } |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | 33 | ||
34 | &-enter-from, | 34 | &-enter-from, |
35 | &-leave-to { | 35 | &-leave-to { |
36 | - opacity: 0; | 36 | + opacity: 0%; |
37 | transform: translateX(15px); | 37 | transform: translateX(15px); |
38 | } | 38 | } |
39 | } | 39 | } |
src/design/transition/zoom.less
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | .zoom-out-enter-from, | 7 | .zoom-out-enter-from, |
8 | .zoom-out-leave-to { | 8 | .zoom-out-leave-to { |
9 | - opacity: 0; | 9 | + opacity: 0%; |
10 | transform: scale(0); | 10 | transform: scale(0); |
11 | } | 11 | } |
12 | 12 | ||
@@ -17,11 +17,11 @@ | @@ -17,11 +17,11 @@ | ||
17 | } | 17 | } |
18 | 18 | ||
19 | .zoom-fade-enter-from { | 19 | .zoom-fade-enter-from { |
20 | - opacity: 0; | 20 | + opacity: 0%; |
21 | transform: scale(0.92); | 21 | transform: scale(0.92); |
22 | } | 22 | } |
23 | 23 | ||
24 | .zoom-fade-leave-to { | 24 | .zoom-fade-leave-to { |
25 | - opacity: 0; | 25 | + opacity: 0%; |
26 | transform: scale(1.06); | 26 | transform: scale(1.06); |
27 | } | 27 | } |
src/hooks/core/useLockFn.ts
1 | import { ref, unref } from 'vue'; | 1 | import { ref, unref } from 'vue'; |
2 | 2 | ||
3 | -export function useLockFn<P extends any[] = any[], V extends any = any>( | ||
4 | - fn: (...args: P) => Promise<V>, | ||
5 | -) { | 3 | +export function useLockFn<P extends any[] = any[], V = any>(fn: (...args: P) => Promise<V>) { |
6 | const lockRef = ref(false); | 4 | const lockRef = ref(false); |
7 | return async function (...args: P) { | 5 | return async function (...args: P) { |
8 | if (unref(lockRef)) return; | 6 | if (unref(lockRef)) return; |
src/layouts/default/header/components/Breadcrumb.vue
@@ -169,7 +169,7 @@ | @@ -169,7 +169,7 @@ | ||
169 | color: @breadcrumb-item-normal-color; | 169 | color: @breadcrumb-item-normal-color; |
170 | 170 | ||
171 | a { | 171 | a { |
172 | - color: rgba(0, 0, 0, 0.65); | 172 | + color: rgb(0 0 0 / 65%); |
173 | 173 | ||
174 | &:hover { | 174 | &:hover { |
175 | color: @primary-color; | 175 | color: @primary-color; |
@@ -184,10 +184,10 @@ | @@ -184,10 +184,10 @@ | ||
184 | 184 | ||
185 | &--dark { | 185 | &--dark { |
186 | .ant-breadcrumb-link { | 186 | .ant-breadcrumb-link { |
187 | - color: rgba(255, 255, 255, 0.6); | 187 | + color: rgb(255 255 255 / 60%); |
188 | 188 | ||
189 | a { | 189 | a { |
190 | - color: rgba(255, 255, 255, 0.8); | 190 | + color: rgb(255 255 255 / 80%); |
191 | 191 | ||
192 | &:hover { | 192 | &:hover { |
193 | color: @white; | 193 | color: @white; |
@@ -197,7 +197,7 @@ | @@ -197,7 +197,7 @@ | ||
197 | 197 | ||
198 | .ant-breadcrumb-separator, | 198 | .ant-breadcrumb-separator, |
199 | .anticon { | 199 | .anticon { |
200 | - color: rgba(255, 255, 255, 0.8); | 200 | + color: rgb(255 255 255 / 80%); |
201 | } | 201 | } |
202 | } | 202 | } |
203 | } | 203 | } |
src/layouts/default/header/components/lock/LockModal.vue
src/layouts/default/header/index.less
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
67 | .@{header-trigger-prefix-cls} { | 67 | .@{header-trigger-prefix-cls} { |
68 | display: flex; | 68 | display: flex; |
69 | height: 100%; | 69 | height: 100%; |
70 | - padding: 1px 10px 0 10px; | 70 | + padding: 1px 10px 0; |
71 | cursor: pointer; | 71 | cursor: pointer; |
72 | align-items: center; | 72 | align-items: center; |
73 | 73 |
src/layouts/default/menu/index.vue
src/layouts/default/setting/components/TypePicker.vue
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | cursor: pointer; | 66 | cursor: pointer; |
67 | background-color: #f0f2f5; | 67 | background-color: #f0f2f5; |
68 | border-radius: 4px; | 68 | border-radius: 4px; |
69 | - box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18); | 69 | + box-shadow: 0 1px 2.5px 0 rgb(0 0 0 / 18%); |
70 | 70 | ||
71 | &::before, | 71 | &::before, |
72 | &::after { | 72 | &::after { |
src/layouts/default/sider/DragBar.vue
src/layouts/default/sider/MixSider.vue
@@ -362,19 +362,19 @@ | @@ -362,19 +362,19 @@ | ||
362 | 362 | ||
363 | &.light { | 363 | &.light { |
364 | .@{prefix-cls}-logo { | 364 | .@{prefix-cls}-logo { |
365 | - border-bottom: 1px solid rgb(238, 238, 238); | 365 | + border-bottom: 1px solid rgb(238 238 238); |
366 | } | 366 | } |
367 | 367 | ||
368 | &.open { | 368 | &.open { |
369 | > .scrollbar { | 369 | > .scrollbar { |
370 | - border-right: 1px solid rgb(238, 238, 238); | 370 | + border-right: 1px solid rgb(238 238 238); |
371 | } | 371 | } |
372 | } | 372 | } |
373 | 373 | ||
374 | .@{prefix-cls}-module { | 374 | .@{prefix-cls}-module { |
375 | &__item { | 375 | &__item { |
376 | font-weight: normal; | 376 | font-weight: normal; |
377 | - color: rgba(0, 0, 0, 0.65); | 377 | + color: rgb(0 0 0 / 65%); |
378 | 378 | ||
379 | &--active { | 379 | &--active { |
380 | color: @primary-color; | 380 | color: @primary-color; |
@@ -384,15 +384,15 @@ | @@ -384,15 +384,15 @@ | ||
384 | } | 384 | } |
385 | .@{prefix-cls}-menu-list { | 385 | .@{prefix-cls}-menu-list { |
386 | &__content { | 386 | &__content { |
387 | - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1); | 387 | + box-shadow: 0 0 4px 0 rgb(0 0 0 / 10%); |
388 | } | 388 | } |
389 | 389 | ||
390 | &__title { | 390 | &__title { |
391 | .pushpin { | 391 | .pushpin { |
392 | - color: rgba(0, 0, 0, 0.35); | 392 | + color: rgb(0 0 0 / 35%); |
393 | 393 | ||
394 | &:hover { | 394 | &:hover { |
395 | - color: rgba(0, 0, 0, 0.85); | 395 | + color: rgb(0 0 0 / 85%); |
396 | } | 396 | } |
397 | } | 397 | } |
398 | } | 398 | } |
@@ -442,7 +442,7 @@ | @@ -442,7 +442,7 @@ | ||
442 | &__item { | 442 | &__item { |
443 | position: relative; | 443 | position: relative; |
444 | padding: 12px 0; | 444 | padding: 12px 0; |
445 | - color: rgba(255, 255, 255, 0.65); | 445 | + color: rgb(255 255 255 / 65%); |
446 | text-align: center; | 446 | text-align: center; |
447 | cursor: pointer; | 447 | cursor: pointer; |
448 | transition: all 0.3s ease; | 448 | transition: all 0.3s ease; |
@@ -487,7 +487,7 @@ | @@ -487,7 +487,7 @@ | ||
487 | left: 0; | 487 | left: 0; |
488 | width: 100%; | 488 | width: 100%; |
489 | font-size: 14px; | 489 | font-size: 14px; |
490 | - color: rgba(255, 255, 255, 0.65); | 490 | + color: rgb(255 255 255 / 65%); |
491 | text-align: center; | 491 | text-align: center; |
492 | cursor: pointer; | 492 | cursor: pointer; |
493 | background-color: @trigger-dark-bg-color; | 493 | background-color: @trigger-dark-bg-color; |
@@ -496,7 +496,7 @@ | @@ -496,7 +496,7 @@ | ||
496 | } | 496 | } |
497 | 497 | ||
498 | &.light &-trigger { | 498 | &.light &-trigger { |
499 | - color: rgba(0, 0, 0, 0.65); | 499 | + color: rgb(0 0 0 / 65%); |
500 | background-color: #fff; | 500 | background-color: #fff; |
501 | border-top: 1px solid #eee; | 501 | border-top: 1px solid #eee; |
502 | } | 502 | } |
@@ -515,21 +515,21 @@ | @@ -515,21 +515,21 @@ | ||
515 | // margin-left: -6px; | 515 | // margin-left: -6px; |
516 | font-size: 18px; | 516 | font-size: 18px; |
517 | color: @primary-color; | 517 | color: @primary-color; |
518 | - border-bottom: 1px solid rgb(238, 238, 238); | ||
519 | - opacity: 0; | 518 | + border-bottom: 1px solid rgb(238 238 238); |
519 | + opacity: 0%; | ||
520 | transition: unset; | 520 | transition: unset; |
521 | align-items: center; | 521 | align-items: center; |
522 | justify-content: space-between; | 522 | justify-content: space-between; |
523 | 523 | ||
524 | &.show { | 524 | &.show { |
525 | min-width: 130px; | 525 | min-width: 130px; |
526 | - opacity: 1; | 526 | + opacity: 100%; |
527 | transition: all 0.5s ease; | 527 | transition: all 0.5s ease; |
528 | } | 528 | } |
529 | 529 | ||
530 | .pushpin { | 530 | .pushpin { |
531 | margin-right: 6px; | 531 | margin-right: 6px; |
532 | - color: rgba(255, 255, 255, 0.65); | 532 | + color: rgb(255 255 255 / 65%); |
533 | cursor: pointer; | 533 | cursor: pointer; |
534 | 534 | ||
535 | &:hover { | 535 | &:hover { |
@@ -572,7 +572,7 @@ | @@ -572,7 +572,7 @@ | ||
572 | background-color: #f8f8f9; | 572 | background-color: #f8f8f9; |
573 | border-top: none; | 573 | border-top: none; |
574 | border-bottom: none; | 574 | border-bottom: none; |
575 | - box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.15); | 575 | + box-shadow: 0 0 4px 0 rgb(28 36 56 / 15%); |
576 | } | 576 | } |
577 | } | 577 | } |
578 | </style> | 578 | </style> |
src/layouts/default/tabs/index.less
@@ -50,7 +50,7 @@ html[data-theme='light'] { | @@ -50,7 +50,7 @@ html[data-theme='light'] { | ||
50 | 50 | ||
51 | &:hover { | 51 | &:hover { |
52 | .ant-tabs-close-x { | 52 | .ant-tabs-close-x { |
53 | - opacity: 1; | 53 | + opacity: 100%; |
54 | } | 54 | } |
55 | } | 55 | } |
56 | 56 | ||
@@ -59,7 +59,7 @@ html[data-theme='light'] { | @@ -59,7 +59,7 @@ html[data-theme='light'] { | ||
59 | height: 12px; | 59 | height: 12px; |
60 | font-size: 12px; | 60 | font-size: 12px; |
61 | color: inherit; | 61 | color: inherit; |
62 | - opacity: 0; | 62 | + opacity: 0%; |
63 | transition: none; | 63 | transition: none; |
64 | 64 | ||
65 | &:hover { | 65 | &:hover { |
@@ -95,7 +95,7 @@ html[data-theme='light'] { | @@ -95,7 +95,7 @@ html[data-theme='light'] { | ||
95 | transition: none; | 95 | transition: none; |
96 | 96 | ||
97 | .ant-tabs-close-x { | 97 | .ant-tabs-close-x { |
98 | - opacity: 1; | 98 | + opacity: 100%; |
99 | } | 99 | } |
100 | 100 | ||
101 | svg { | 101 | svg { |
@@ -135,7 +135,7 @@ html[data-theme='light'] { | @@ -135,7 +135,7 @@ html[data-theme='light'] { | ||
135 | 135 | ||
136 | &--hide-close { | 136 | &--hide-close { |
137 | .ant-tabs-close-x { | 137 | .ant-tabs-close-x { |
138 | - opacity: 0 !important; | 138 | + opacity: 0% !important; |
139 | } | 139 | } |
140 | } | 140 | } |
141 | 141 |
src/router/types.ts
@@ -2,7 +2,7 @@ import type { RouteRecordRaw, RouteMeta } from 'vue-router'; | @@ -2,7 +2,7 @@ import type { RouteRecordRaw, RouteMeta } from 'vue-router'; | ||
2 | import { RoleEnum } from '/@/enums/roleEnum'; | 2 | import { RoleEnum } from '/@/enums/roleEnum'; |
3 | import { defineComponent } from 'vue'; | 3 | import { defineComponent } from 'vue'; |
4 | 4 | ||
5 | -export type Component<T extends any = any> = | 5 | +export type Component<T = any> = |
6 | | ReturnType<typeof defineComponent> | 6 | | ReturnType<typeof defineComponent> |
7 | | (() => Promise<typeof import('*.vue')>) | 7 | | (() => Promise<typeof import('*.vue')>) |
8 | | (() => Promise<T>); | 8 | | (() => Promise<T>); |
src/views/demo/comp/lazy/Transition.vue
@@ -47,12 +47,12 @@ | @@ -47,12 +47,12 @@ | ||
47 | } | 47 | } |
48 | 48 | ||
49 | .custom-enter { | 49 | .custom-enter { |
50 | - opacity: 0; | 50 | + opacity: 0%; |
51 | transform: scale(0.4) translate(100%); | 51 | transform: scale(0.4) translate(100%); |
52 | } | 52 | } |
53 | 53 | ||
54 | .custom-enter-to { | 54 | .custom-enter-to { |
55 | - opacity: 1; | 55 | + opacity: 100%; |
56 | } | 56 | } |
57 | 57 | ||
58 | .custom-enter-active { | 58 | .custom-enter-active { |
@@ -63,11 +63,11 @@ | @@ -63,11 +63,11 @@ | ||
63 | } | 63 | } |
64 | 64 | ||
65 | .custom-leave { | 65 | .custom-leave { |
66 | - opacity: 1; | 66 | + opacity: 100%; |
67 | } | 67 | } |
68 | 68 | ||
69 | .custom-leave-to { | 69 | .custom-leave-to { |
70 | - opacity: 0; | 70 | + opacity: 0%; |
71 | transform: scale(0.4) translate(-100%); | 71 | transform: scale(0.4) translate(-100%); |
72 | } | 72 | } |
73 | 73 |
src/views/demo/comp/transition/index.vue
src/views/demo/page/account/center/Article.vue
@@ -70,17 +70,17 @@ | @@ -70,17 +70,17 @@ | ||
70 | } | 70 | } |
71 | 71 | ||
72 | &__content { | 72 | &__content { |
73 | - color: rgba(0, 0, 0, 0.65); | 73 | + color: rgb(0 0 0 / 65%); |
74 | } | 74 | } |
75 | 75 | ||
76 | &__action { | 76 | &__action { |
77 | display: inline-block; | 77 | display: inline-block; |
78 | padding: 0 16px; | 78 | padding: 0 16px; |
79 | - color: rgba(0, 0, 0, 0.45); | 79 | + color: rgb(0 0 0 / 45%); |
80 | 80 | ||
81 | &:nth-child(1), | 81 | &:nth-child(1), |
82 | &:nth-child(2) { | 82 | &:nth-child(2) { |
83 | - border-right: 1px solid rgba(206, 206, 206, 0.4); | 83 | + border-right: 1px solid rgb(206 206 206 / 40%); |
84 | } | 84 | } |
85 | 85 | ||
86 | &-icon { | 86 | &-icon { |
@@ -91,7 +91,7 @@ | @@ -91,7 +91,7 @@ | ||
91 | &__time { | 91 | &__time { |
92 | position: absolute; | 92 | position: absolute; |
93 | right: 20px; | 93 | right: 20px; |
94 | - color: rgba(0, 0, 0, 0.45); | 94 | + color: rgb(0 0 0 / 45%); |
95 | } | 95 | } |
96 | } | 96 | } |
97 | </style> | 97 | </style> |
src/views/demo/page/account/center/Project.vue
@@ -48,7 +48,7 @@ | @@ -48,7 +48,7 @@ | ||
48 | width: 100%; | 48 | width: 100%; |
49 | 49 | ||
50 | .ant-card-body { | 50 | .ant-card-body { |
51 | - padding: 0 0 24px 0; | 51 | + padding: 0 0 24px; |
52 | } | 52 | } |
53 | 53 | ||
54 | img { | 54 | img { |
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | margin: 5px 10px; | 60 | margin: 5px 10px; |
61 | font-size: 16px; | 61 | font-size: 16px; |
62 | font-weight: 500; | 62 | font-weight: 500; |
63 | - color: rgba(0, 0, 0, 0.85); | 63 | + color: rgb(0 0 0 / 85%); |
64 | } | 64 | } |
65 | 65 | ||
66 | &-content { | 66 | &-content { |
src/views/demo/page/account/center/index.vue
@@ -98,13 +98,13 @@ | @@ -98,13 +98,13 @@ | ||
98 | padding: 0 10px; | 98 | padding: 0 10px; |
99 | 99 | ||
100 | &:not(:last-child) { | 100 | &:not(:last-child) { |
101 | - border-right: 1px dashed rgb(206, 206, 206, 0.5); | 101 | + border-right: 1px dashed rgb(206 206 206 / 50%); |
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | &-top { | 105 | &-top { |
106 | padding: 10px; | 106 | padding: 10px; |
107 | - margin: 16px 16px 12px 16px; | 107 | + margin: 16px 16px 12px; |
108 | background-color: @component-background; | 108 | background-color: @component-background; |
109 | border-radius: 3px; | 109 | border-radius: 3px; |
110 | 110 | ||
@@ -147,7 +147,7 @@ | @@ -147,7 +147,7 @@ | ||
147 | 147 | ||
148 | &-bottom { | 148 | &-bottom { |
149 | padding: 10px; | 149 | padding: 10px; |
150 | - margin: 0 16px 16px 16px; | 150 | + margin: 0 16px 16px; |
151 | background-color: @component-background; | 151 | background-color: @component-background; |
152 | border-radius: 3px; | 152 | border-radius: 3px; |
153 | } | 153 | } |
src/views/demo/page/list/search/index.vue
src/views/sys/lock/LockPage.vue
@@ -210,7 +210,7 @@ | @@ -210,7 +210,7 @@ | ||
210 | display: flex; | 210 | display: flex; |
211 | width: 100%; | 211 | width: 100%; |
212 | height: 100%; | 212 | height: 100%; |
213 | - background-color: rgba(0, 0, 0, 0.5); | 213 | + background-color: rgb(0 0 0 / 50%); |
214 | backdrop-filter: blur(8px); | 214 | backdrop-filter: blur(8px); |
215 | justify-content: center; | 215 | justify-content: center; |
216 | align-items: center; | 216 | align-items: center; |
stylelint.config.js
1 | module.exports = { | 1 | module.exports = { |
2 | root: true, | 2 | root: true, |
3 | plugins: ['stylelint-order'], | 3 | plugins: ['stylelint-order'], |
4 | + customSyntax: 'postcss-less', | ||
4 | extends: ['stylelint-config-standard', 'stylelint-config-prettier'], | 5 | extends: ['stylelint-config-standard', 'stylelint-config-prettier'], |
5 | rules: { | 6 | rules: { |
7 | + 'selector-class-pattern': null, | ||
6 | 'selector-pseudo-class-no-unknown': [ | 8 | 'selector-pseudo-class-no-unknown': [ |
7 | true, | 9 | true, |
8 | { | 10 | { |