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